libre  0.5.0
Macros
re_types.h File Reference

Defines basic types. More...

#include <sys/types.h>
#include <inttypes.h>
#include <stdbool.h>
#include <errno.h>
Include dependency graph for re_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NULL   ((void *)0)
 Defines the NULL pointer.
#define ARRAY_SIZE(a)   ((sizeof(a))/(sizeof((a)[0])))
 Get number of elements in an array.
#define ALIGN_MASK(x, mask)   (((x)+(mask))&~(mask))
 Align a value to the boundary of mask.
#define MIN(a, b)   (((a)<(b)) ? (a) : (b))
 Get the minimal value.
#define MAX(a, b)   (((a)>(b)) ? (a) : (b))
 Get the maximal value.
#define min(x, y)   MIN(x, y)
 Get the minimal value.
#define max(x, y)   MAX(x, y)
 Get the maximal value.
#define BREAKPOINT
 Defines a soft breakpoint.
#define ENODATA   200
 No data available.
#define EPROTO   201
 Protocol error.
#define EBADMSG   202
 Not a data message.
#define EOVERFLOW   203
 Value too large for defined data type.
#define ELIBBAD   204
 Accessing a corrupted shared library.
#define EDESTADDRREQ   205
 Destination address required.
#define EPROTONOSUPPORT   206
 Protocol not supported.
#define ENOTSUP   207
 Operation not supported.
#define EAFNOSUPPORT   208
 Address family not supported by protocol.
#define EADDRNOTAVAIL   209
 Cannot assign requested address.
#define ECONNABORTED   210
 Software caused connection abort.
#define ECONNRESET   211
 Connection reset by peer.
#define ENOTCONN   212
 Transport endpoint is not connected.
#define ETIMEDOUT   213
 Connection timed out.
#define ECONNREFUSED   214
 Connection refused.
#define EALREADY   215
 Operation already in progress.
#define EINPROGRESS   216
 Operation now in progress.
#define EAUTH   217
 Authentication error.
#define ENOSR   218
 No STREAM resources.

Detailed Description

Defines basic types.

Copyright (C) 2010 Creytiv.com

Definition in file re_types.h.