$Revision: 1.19 $
Error reporting (er) erroutines.h - header file for error reporting.
Status: NOT REVUED, TESTED,
Design and implementation by: Marek Bukowy
#define EXTDEF extern
#define EXTINI( a, b )
fatal error
#define ER_SEV_F 0x20000000
error
#define ER_SEV_E 0x10000000
warning
#define ER_SEV_W 0x08000000
information
#define ER_SEV_I 0x04000000
debug message
#define ER_SEV_D 0x02000000
library error
#define ER_SEV_L 0x01000000
#define ER_ERRLEN 2048
#define DEFFAC( a, b )
#define ERDUP( a )
#define ER_dbg_eq( mod, asp, typ, expr )
#define ERR( a )
enum | |
{ | |
ER_PATH_SOCK; | |
ER_PATH_BUFPTR; | |
ER_PATH_NAME; | |
ER_PATH_EXEC; | |
ER_PATH_SYSLOG; | |
ER_PATH_CIRC; | |
} |
union | |
{ | |
struct | |
{ | |
int fd; | |
} | |
sock; | |
struct | |
{ | |
FILE* fp; | |
} | |
bufptr; | |
struct | |
{ | |
char filename[80]; | |
int date; | |
} | |
name; | |
struct | |
{ | |
int usepath; | |
char** argv; | |
} | |
exec; | |
struct | |
{ | |
int facility; | |
int logopt; | |
char ident[32]; | |
} | |
syslog; | |
} |
struct | |
{ | |
char name[32]; | |
char active; | |
int format; | |
pthread_mutex_t mutex; | |
er_path_mt type; | |
er_path_descr_t descr; | |
GList* filters; | |
} |
struct | |
{ | |
mask_t fac_mask; | |
er_mask_t asp_mask; | |
int sev_min; | |
int sev_max; | |
pthread_t thr_id; | |
} |
struct | |
{ | |
char errtxt[1024]; | |
int errpos; | |
char* token; | |
er_path_t path; | |
er_filter_t curfilt; | |
int sock; | |
} |
struct | |
{ | |
er_ret_t code; | |
char mnem[16]; | |
char text[80]; | |
} |
struct | |
{ | |
er_ret_t code; | |
char name[4]; | |
char desc[80]; | |
er_list_t* errs; | |
} |
struct | |
{ | |
int sev; | |
char chr[2]; | |
char txt[20]; | |
} |
Defined in: | modules/er/er.c |
er_level_a
extern er_level_t er_level_a[]
Defined in: | modules/er/er.c |
er_pathlist
extern GList* er_pathlist
Defined in: | modules/er/er.c |
er_asparray
extern er_mask_t er_asparray[FAC_LAST]
Defined in: | modules/er/er.c |
er_paths_lock
extern rw_lock_t er_paths_lock
Defined in: | modules/er/er.c |
er_macro_hash
extern GHashTable* er_macro_hash
Defined in: | modules/er/er.c |