#include <errno.h>
#include <stdlib.h>
#include "error.h"
Go to the source code of this file.
|
#define | err_sys(w, e) logmsg(w,e,FATAL,"") |
|
#define | err_sys_plus(w, e, m) logmsg(w,e,FATAL,m) |
|
#define | err_tmp(w, e, m) logmsg(w,e,WARN,m) |
|
#define | err_tmp_plus(w, e, m) logmsg(w,e,WARN,m) |
|
#define | err_int(w, e, c) logmsg(w,e,c,"") |
|
#define | err_int_plus(w, e, c, m) logmsg(w,e,c,m) |
|
#define | log_who(w, m) logmsg(w,0,LOG,m) |
|
#define | log_anon(m) logmsg("",0,LOG,m) |
|
#define | log_cat(n) logmsg("",0,CAT,m) |
|
#define | B(...) build_log_msg((const char *[]){__VA_ARGS__,NULL}) |
|
|
void | logmsg (const char *who, int ecode, unsigned int class, const char *msg) |
|
char * | build_log_msg (const char *[]) |
|
#define B |
( |
|
... | ) |
build_log_msg((const char *[]){__VA_ARGS__,NULL}) |
◆ err_int
#define err_int |
( |
|
w, |
|
|
|
e, |
|
|
|
c |
|
) |
| logmsg(w,e,c,"") |
◆ err_int_plus
#define err_int_plus |
( |
|
w, |
|
|
|
e, |
|
|
|
c, |
|
|
|
m |
|
) |
| logmsg(w,e,c,m) |
◆ err_sys
◆ err_sys_plus
◆ err_tmp
◆ err_tmp_plus
#define err_tmp_plus |
( |
|
w, |
|
|
|
e, |
|
|
|
m |
|
) |
| logmsg(w,e,WARN,m) |
◆ log_anon
◆ log_cat
◆ log_who
◆ build_log_msg()
char * build_log_msg |
( |
const char * |
x[] | ) |
|
◆ logmsg()
void logmsg |
( |
const char * |
who, |
|
|
int |
ecode, |
|
|
unsigned int |
class, |
|
|
const char * |
msg |
|
) |
| |