author | unc0rr |
Thu, 15 Oct 2009 04:58:06 +0000 | |
changeset 2448 | 30b4a7c8e9b2 |
parent 2444 | ace11b7d8eab |
child 2529 | 51e5df1c8462 |
permissions | -rw-r--r-- |
2418 | 1 |
/* |
2 |
||
3 |
module: errlib.h |
|
4 |
||
5 |
purpose: definitions of function sin errlib.c |
|
6 |
||
7 |
reference: Stevens, Unix network programming (2ed), p.922 |
|
8 |
||
9 |
*/ |
|
10 |
||
11 |
#ifndef _ERRLIB_H |
|
12 |
#define _ERRLIB_H |
|
13 |
||
2443
fececcbc2189
Smaxx patch for fixing all sound related issues on any system
koda
parents:
2421
diff
changeset
|
14 |
#include "common.h" |
2418 | 15 |
|
2444 | 16 |
extern int daemon_proc; |
2418 | 17 |
|
2444 | 18 |
void err_msg (const char *fmt, ...); |
19 |
void err_quit (const char *fmt, ...); |
|
20 |
void err_ret (const char *fmt, ...); |
|
21 |
void err_sys (const char *fmt, ...); |
|
22 |
void err_dump (const char *fmt, ...); |
|
2418 | 23 |
|
24 |
#endif /*_ERRLIB_H*/ |
|
25 |
||
26 |
/* |
|
27 |
suggested error string ( PROG ) LEVEL - TEXT : ERRNO |
|
28 |
||
29 |
errno? closeprog? log level |
|
30 |
err_msg no no LOG_INFO |
|
31 |
err_quit no exit(1) LOG_ERR |
|
32 |
err_ret si no LOG_INFO |
|
33 |
err_sys si exit(1) LOG_ERR |
|
34 |
err_dump si abort( ) LOG_ERR |
|
35 |
*/ |