error/error.h File Reference

#include <stdio.h>
#include <errno.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  nps_domain_t
struct  nps_errorType_t
struct  nps_error_t

Defines

#define NPS_ERROR_LKG   static inline
#define NPS_ERROR_MSG_LENGTH   512
#define NPS_ERROR_SET(e, d, t, fmt...)
#define NPS_ERROR_SET0(e, d, t)

Variables

nps_errorType_t Nps_ENOENT
nps_errorType_t Nps_EIO
nps_errorType_t Nps_EBADF
nps_errorType_t Nps_ENOMEM
nps_errorType_t Nps_EACCES
nps_errorType_t Nps_EBUSY
nps_errorType_t Nps_EEXIST
nps_errorType_t Nps_ENOTDIR
nps_errorType_t Nps_EISDIR
nps_errorType_t Nps_EINVAL
nps_errorType_t Nps_ENVAL
nps_errorType_t Nps_EMVAL
nps_errorType_t Nps_ENOTTY
nps_errorType_t Nps_ETXTBSY
nps_errorType_t Nps_EFBIG
nps_errorType_t Nps_ENOSPC
nps_errorType_t Nps_ESPIPE
nps_errorType_t Nps_EROFS
nps_errorType_t Nps_EMLINK
nps_errorType_t Nps_EPIPE
nps_errorType_t Nps_EDOM
nps_errorType_t Nps_ERANGE

Define Documentation

#define NPS_ERROR_LKG   static inline
#define NPS_ERROR_MSG_LENGTH   512
#define NPS_ERROR_SET ( e,
d,
t,
fmt...   ) 
Value:
{                   \
        (e)->domain    = &d;                             \
        (e)->errorType = &t;                             \
        snprintf((e)->msg,sizeof(e->msg),fmt);           \
    }
#define NPS_ERROR_SET0 ( e,
d,
 ) 
Value:
{                         \
        (e)->domain    = &d;                             \
        (e)->errorType = &t;                             \
        *(e)->msg       = 0;                             \
    }

Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sun Sep 11 09:40:46 2011 for NPSML by  doxygen 1.6.3