PARA_ERROR(NO_ATTRIBUTES, "no attributes defined yet"), \
PARA_ERROR(ATT_TABLE_FULL, "no more space left in attribute table"), \
PARA_ERROR(NO_ATTRIBUTES, "no attributes defined yet"), \
PARA_ERROR(ATT_TABLE_FULL, "no more space left in attribute table"), \
#define BLOB_ERRORS \
PARA_ERROR(BLOB_SYNTAX, "blob syntax error"), \
PARA_ERROR(DUMMY_ROW, "attempted to access blob dummy object"), \
#define BLOB_ERRORS \
PARA_ERROR(BLOB_SYNTAX, "blob syntax error"), \
PARA_ERROR(DUMMY_ROW, "attempted to access blob dummy object"), \
#define CLIENT_COMMON_ERRORS \
PARA_ERROR(CLIENT_SYNTAX, "syntax error"), \
PARA_ERROR(INVALID_CHALLENGE, "did not receive valid challenge"), \
#define CLIENT_COMMON_ERRORS \
PARA_ERROR(CLIENT_SYNTAX, "syntax error"), \
PARA_ERROR(INVALID_CHALLENGE, "did not receive valid challenge"), \
#define NET_ERRORS \
PARA_ERROR(CONNECT, "connect error"), \
PARA_ERROR(NAME_TOO_LONG, "name too long for struct sockaddr_un"), \
#define NET_ERRORS \
PARA_ERROR(CONNECT, "connect error"), \
PARA_ERROR(NAME_TOO_LONG, "name too long for struct sockaddr_un"), \
PARA_ERROR(CHMOD, "failed to set socket mode"), \
PARA_ERROR(SENDMSG, "sendmsg() failed"), \
PARA_ERROR(RECVMSG, "recvmsg() failed"), \
PARA_ERROR(CHMOD, "failed to set socket mode"), \
PARA_ERROR(SENDMSG, "sendmsg() failed"), \
PARA_ERROR(RECVMSG, "recvmsg() failed"), \
PARA_ERROR(HTTP_RECV_EOF, "http_recv: end of file"), \
PARA_ERROR(HTTP_RECV_OVERRUN, "http_recv: output buffer overrun"), \
PARA_ERROR(HTTP_RECV_EOF, "http_recv: end of file"), \
PARA_ERROR(HTTP_RECV_OVERRUN, "http_recv: output buffer overrun"), \
#define RECV_COMMON_ERRORS \
PARA_ERROR(RECV_SYNTAX, "recv syntax error"), \
#define RECV_COMMON_ERRORS \
PARA_ERROR(RECV_SYNTAX, "recv syntax error"), \
PARA_ERROR(DCCP_RECV_EOF, "dccp_recv: end of file"), \
#define DCCP_SEND_ERRORS \
PARA_ERROR(DCCP_RECV_EOF, "dccp_recv: end of file"), \
#define DCCP_SEND_ERRORS \
#define CHUNK_QUEUE_ERRORS \
PARA_ERROR(QUEUE, "packet queue overrun"), \
#define CHUNK_QUEUE_ERRORS \
PARA_ERROR(QUEUE, "packet queue overrun"), \
*
* As zero should not be an error, we define a dummy enum entry with value
* 2**ss. That lets the real errors start at 2**ss + 1.
*
* As zero should not be an error, we define a dummy enum entry with value
* 2**ss. That lets the real errors start at 2**ss + 1.
*
* Easy, it's just \a num / 2**8.
*/
#define ERRNUM_TO_SS(num) ((num) >> SS_SHIFT)
/**
*
* Easy, it's just \a num / 2**8.
*/
#define ERRNUM_TO_SS(num) ((num) >> SS_SHIFT)
/**
*/
#define PARA_STRERROR(num) IS_SYSTEM_ERROR(num)? \
strerror((num) & ((1 << SYSTEM_ERROR_BIT) - 1)) : \
para_errlist[ERRNUM_TO_SS(num)] [ERRNUM_TO_INDEX(num)]
/**
*/
#define PARA_STRERROR(num) IS_SYSTEM_ERROR(num)? \
strerror((num) & ((1 << SYSTEM_ERROR_BIT) - 1)) : \
para_errlist[ERRNUM_TO_SS(num)] [ERRNUM_TO_INDEX(num)]
/**
*
* Each executable needs only the error lists of those subsystems it is
* actually linked with. We always reserve space for NUM_SS char pointers,
*
* Each executable needs only the error lists of those subsystems it is
* actually linked with. We always reserve space for NUM_SS char pointers,