Definition in file ec.h.
Go to the source code of this file.
Defines | |
#define | EC_CLEANUP_BGN |
#define | EC_CLEANUP_END } |
#define | ec_cmp(var, errrtn) |
#define | ec_rv(var) |
#define | ec_ai(var) |
#define | ec_neg1(x) ec_cmp(x, -1) |
#define | ec_null(x) ec_cmp(x, 0) |
#define | ec_zero(x) ec_null(x) |
#define | ec_false(x) ec_cmp(x, false) |
#define | ec_eof(x) ec_cmp(x, EOF) |
#define | ec_nzero(x) |
#define | EC_FAIL ec_cmp(0, 0) |
#define | EC_CLEANUP goto ec_cleanup_bgn; |
#define | EC_FLUSH(str) |
#define | EC_EINTERNAL INT_MAX |
Enumerations | |
enum | EC_ERRTYPE { EC_ERRNO = 0, EC_EAI = 1, EC_GETDATE = 2, EC_NONE = 3 } |
Functions | |
void | ec_push (const char *fcn, const char *file, int line, const char *str, int errno_arg, EC_ERRTYPE type) |
void | ec_print (void) |
void | ec_reinit (void) |
void | ec_warn (void) |
Variables | |
const bool | ec_in_cleanup |
|
Value: {\ int errrtn;\ assert(!ec_in_cleanup);\ if ((errrtn = (var)) != 0) {\ ec_push(__func__, __FILE__, __LINE__, #var, errrtn, EC_EAI);\ goto ec_cleanup_bgn;\ }\ } Definition at line 44 of file ec.h. Referenced by getnameinfo_ex(), main(), and make_sockaddr(). |
|
Definition at line 70 of file ec.h. Referenced by do_dir(), getcwdx(), main(), playback(), readany_test(), readany_test2(), readany_test3(), readdir_r_test(), and readdir_test(). |
|
|
|
Value: {\ assert(!ec_in_cleanup);\ if ((intptr_t)(var) == (intptr_t)(errrtn)) {\ ec_push(__func__, __FILE__, __LINE__, #var, errno, EC_ERRNO);\ goto ec_cleanup_bgn;\ }\ } Definition at line 25 of file ec.h. Referenced by get_client(), main(), smi_open_mq(), and smi_open_pshm(). |
|
Definition at line 78 of file ec.h. Referenced by syserrmsgline(), and syserrmsgtype(). |
|
Definition at line 61 of file ec.h. Referenced by backward_test(), copy4(), edsnd(), handle_request(), and turnaround(). |
|
|
|
|
|
|
Value: {\ if ((x) != 0)\ EC_FAIL\ } Definition at line 62 of file ec.h. Referenced by readdir_test(). |
|
Value: {\ int errrtn;\ assert(!ec_in_cleanup);\ if ((errrtn = (var)) != 0) {\ ec_push(__func__, __FILE__, __LINE__, #var, errrtn, EC_ERRNO);\ goto ec_cleanup_bgn;\ }\ } Definition at line 34 of file ec.h. Referenced by asynchronous(), dequeue_event(), get_and_incr_x(), handle_signals(), main(), queue_event(), readdir_r_test(), sig_thread(), sorter(), thread_fdset(), thread_func(), try5(), uem_bgn(), uem_register_fdset(), uem_register_heartbeat(), uem_register_process(), uem_register_signal(), uem_register_svmsg(), uem_register_svsem(), uem_unregister(), and uem_wait(). |
|
|
|
Definition at line 13 of file ec.h. Referenced by Ux::Error::get_type(). |
|
Definition at line 110 of file ec.c. References ec_node::ec_context, ec_node::ec_errno, ec_head, ec_mutex(), ec_node::ec_next, ec_node_emergency, ec_node::ec_type, logfmt(), and syserrmsgtype(). Referenced by ec_atexit_fcn(), and ec_push(). |
|
Definition at line 65 of file ec.c. References atexit(), ec_atexit_fcn(), ec_node::ec_context, EC_ERRNO, ec_node::ec_errno, ec_head, ec_mutex(), ec_node::ec_next, ec_node_emergency, ec_print(), ec_s_emergency, ec_node::ec_type, errno, SEP1, SEP2, and SEP3. |
|
Definition at line 131 of file ec.c. References ec_node::ec_context, ec_head, ec_mutex(), ec_node::ec_next, ec_node_emergency, and ec_s_emergency. Referenced by testlock(). |
|
|
|
|