2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

common/ec.c File Reference


Detailed Description

Error-checking support functions [Sec. 1.4.2].

Definition in file ec.c.

Go to the source code of this file.

Compounds

struct  ec_node

Defines

#define SEP1   " ["
#define SEP2   ":"
#define SEP3   "] "

Functions

void ec_mutex (bool lock)
void ec_atexit_fcn (void)
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

ec_node * ec_head
ec_node ec_node_emergency
char ec_s_emergency [100]
const bool ec_in_cleanup = false


Define Documentation

#define SEP1   " ["
 

Definition at line 61 of file ec.c.

Referenced by ec_push().

#define SEP2   ":"
 

Definition at line 62 of file ec.c.

Referenced by ec_push().

#define SEP3   "] "
 

Definition at line 63 of file ec.c.

Referenced by ec_push().


Function Documentation

void ec_atexit_fcn void   )  [static]
 

Definition at line 46 of file ec.c.

References ec_print().

Referenced by ec_push().

void ec_mutex bool  lock  )  [static]
 

Definition at line 24 of file ec.c.

References exit(), lock(), pthread_mutex_lock(), and pthread_mutex_unlock().

Referenced by ec_print(), ec_push(), and ec_reinit().

void ec_print void   ) 
 

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().

void ec_push const char *  fcn,
const char *  file,
int  line,
const char *  str,
int  errno_arg,
EC_ERRTYPE  type
 

Definition at line 65 of file ec.c.

References atexit(), ec_atexit_fcn(), ec_node::ec_context, ec_node::ec_errno, 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.

void ec_reinit void   ) 
 

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().

void ec_warn void   ) 
 

Definition at line 149 of file ec.c.


Variable Documentation

struct ec_node * ec_head [static]
 

Referenced by ec_print(), ec_push(), and ec_reinit().

const bool ec_in_cleanup = false
 

Definition at line 59 of file ec.c.

struct ec_node ec_node_emergency [static]
 

Referenced by ec_print(), ec_push(), and ec_reinit().

char ec_s_emergency[100] [static]
 

Definition at line 57 of file ec.c.

Referenced by ec_push(), and ec_reinit().


Generated on Fri Apr 23 10:57:11 2004 for AUP2 Example Source by doxygen 1.3.1