author | koda |
Wed, 21 Apr 2010 10:22:06 +0000 | |
changeset 3362 | 8d3b4d19ce27 |
parent 3353 | a767dd3786b5 |
permissions | -rw-r--r-- |
3353 | 1 |
/* |
3362
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
2 |
|
3353 | 3 |
module: errlib.h |
3362
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
4 |
|
3353 | 5 |
purpose: definitions of function sin errlib.c |
3362
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
6 |
|
3353 | 7 |
reference: Stevens, Unix network programming (2ed), p.922 |
3362
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
8 |
|
3353 | 9 |
*/ |
10 |
||
11 |
#ifndef _ERRLIB_H |
|
12 |
#define _ERRLIB_H |
|
13 |
||
14 |
#include "globals.h" |
|
15 |
||
3362
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
16 |
extern int daemon_proc; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
17 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
18 |
void err_msg (const char *fmt, ...); |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
19 |
void err_quit (const char *fmt, ...); |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
20 |
void err_ret (const char *fmt, ...); |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
21 |
void err_sys (const char *fmt, ...); |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
22 |
void err_dump (const char *fmt, ...); |
3353 | 23 |
|
24 |
#endif /*_ERRLIB_H*/ |
|
25 |
||
26 |
/* |
|
27 |
suggested error string ( PROG ) LEVEL - TEXT : ERRNO |
|
3362
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
28 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
29 |
errno? closeprog? log level |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
30 |
err_msg no no LOG_INFO |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
31 |
err_quit no exit(1) LOG_ERR |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
32 |
err_ret si no LOG_INFO |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
33 |
err_sys si exit(1) LOG_ERR |
3353 | 34 |
err_dump si abort( ) LOG_ERR |
3362
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
3353
diff
changeset
|
35 |
*/ |