lwpa
0.1.0
LightWeight Platform Abstraction (lwpa)
|
View other versions:
|
Platform-neutral error codes.
#include "lwpa_error.h"
Macros | |
#define | LWPA_NUM_ERROR_CODES 27 |
#define | lwpa_strerror(errcode) (((int)errcode <= 0 && (int)errcode > -LWPA_NUM_ERROR_CODES) ? lwpa_error_strings[-((int)errcode)] : NULL) |
Get a string representation of an error code. More... | |
Enumerations | |
enum | lwpa_error_t { LWPA_OK = 0 , LWPA_NOTFOUND = -1 , LWPA_NOMEM = -2 , LWPA_BUSY = -3 , LWPA_EXIST = -4 , LWPA_INVALID = -5 , LWPA_WOULDBLOCK = -6 , LWPA_NODATA = -7 , LWPA_PROTERR = -8 , LWPA_MSGSIZE = -9 , LWPA_ADDRINUSE = -10 , LWPA_ADDRNOTAVAIL = -11 , LWPA_NETERR = -12 , LWPA_CONNRESET = -13 , LWPA_CONNCLOSED = -14 , LWPA_ISCONN = -15 , LWPA_NOTCONN = -16 , LWPA_SHUTDOWN = -17 , LWPA_TIMEDOUT = -18 , LWPA_CONNREFUSED = -19 , LWPA_ALREADY = -20 , LWPA_INPROGRESS = -21 , LWPA_BUFSIZE = -22 , LWPA_NOTINIT = -23 , LWPA_NOIFACES = -24 , LWPA_NOTIMPL = -25 , LWPA_SYSERR = -26 } |
A set of error codes that can be returned by library functions. More... | |
Variables | |
const char * | lwpa_error_strings [LWPA_NUM_ERROR_CODES] |
#define lwpa_strerror | ( | errcode | ) | (((int)errcode <= 0 && (int)errcode > -LWPA_NUM_ERROR_CODES) ? lwpa_error_strings[-((int)errcode)] : NULL) |
Get a string representation of an error code.
errcode | lwpa error code. |
enum lwpa_error_t |
A set of error codes that can be returned by library functions.