Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class 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 <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <inttypes.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 uint8_t UINT8
typedef int8_t INT8
typedef uint16_t UINT16
typedef int16_t INT16
typedef uint32_t UINT32
typedef int32_t INT32
typedef uint64_t UINT64
typedef int64_t INT64
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  )     ( (int) ( (size_t) ( (void*) (s) ) ) )
 

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


Typedef Documentation

typedef off_t FILE_OFFSET
 

typedef int16_t INT16
 

typedef int32_t INT32
 

typedef int64_t INT64
 

typedef int8_t INT8
 

typedef int socket_t
 

typedef uint16_t UINT16
 

typedef uint32_t UINT32
 

typedef uint64_t UINT64
 

typedef uint8_t UINT8
 

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


Generated on Tue Jun 15 11:02:57 2010 for Lemur by doxygen 1.3.4