#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 NPS_ERROR_LKG static inline |
| #define NPS_ERROR_MSG_LENGTH 512 |
| #define NPS_ERROR_SET | ( | e, | |||
| d, | |||||
| t, | |||||
| fmt... | ) |
{ \
(e)->domain = &d; \
(e)->errorType = &t; \
snprintf((e)->msg,sizeof(e->msg),fmt); \
}
| #define NPS_ERROR_SET0 | ( | e, | |||
| d, | |||||
| t | ) |
{ \
(e)->domain = &d; \
(e)->errorType = &t; \
*(e)->msg = 0; \
}
1.6.3