Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

lemur-platform.h File Reference

#include <stddef.h>
#include <limits.h>
#include <float.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>

Go to the source code of this file.

Defines

#define HAS_READDIR_R
#define INADDR_NONE   INADDR_BROADCAST
#define LEMUR_ALIGN   16
#define LEMUR_PREALIGN
#define LEMUR_POSTALIGN   __attribute__ ((aligned))
#define PTR_TO_SIZET(s)   ( (size_t) ( (void*) (s) ) )
#define PTR_TO_INT(s)   ( (int) ( (size_t) ( (void*) (s) ) ) )
#define MAX_UINT64   ( ~ ((UINT64) 0) )
#define MAX_INT64   ( (INT64) ( MAX_UINT64 >> 1 ) )
#define MIN_INT64   ( (INT64) ( MAX_UINT64 ^ ( (UINT64) MAX_INT64 ) ) )
#define MAX_UINT32   ( ~ ((UINT32) 0) )
#define MAX_INT32   ( (INT32) (MAX_UINT32 >> 1) )
#define MIN_INT32   ( (INT32) ( MAX_UINT32 ^ ( (UINT32) MAX_INT32 ) ) )

Typedefs

typedef long long INT64
typedef unsigned long long UINT64
typedef signed int INT32
typedef unsigned int UINT32
typedef signed short INT16
typedef unsigned short UINT16
typedef off_t FILE_OFFSET
typedef int socket_t


Define Documentation

#define HAS_READDIR_R
 

#define INADDR_NONE   INADDR_BROADCAST
 

#define LEMUR_ALIGN   16
 

#define LEMUR_POSTALIGN   __attribute__ ((aligned))
 

#define LEMUR_PREALIGN
 

#define MAX_INT32   ( (INT32) (MAX_UINT32 >> 1) )
 

#define MAX_INT64   ( (INT64) ( MAX_UINT64 >> 1 ) )
 

#define MAX_UINT32   ( ~ ((UINT32) 0) )
 

#define MAX_UINT64   ( ~ ((UINT64) 0) )
 

#define MIN_INT32   ( (INT32) ( MAX_UINT32 ^ ( (UINT32) MAX_INT32 ) ) )
 

#define MIN_INT64   ( (INT64) ( MAX_UINT64 ^ ( (UINT64) MAX_INT64 ) ) )
 

#define PTR_TO_INT s       ( (int) ( (size_t) ( (void*) (s) ) ) )
 

#define PTR_TO_SIZET s       ( (size_t) ( (void*) (s) ) )
 


Typedef Documentation

typedef off_t FILE_OFFSET
 

typedef signed short INT16
 

typedef signed int INT32
 

typedef long long INT64
 

lemur-platform.h

The point of this header is to contain the kinds of things that are stored in platform.h on Unix: * endian constants * type size constants * typedefs

typedef int socket_t
 

typedef unsigned short UINT16
 

typedef unsigned int UINT32
 

typedef unsigned long long UINT64
 


Generated on Wed Nov 3 12:59:14 2004 for Lemur Toolkit by doxygen1.2.18