Usermode/libpsocket - Header wrapping, byte ordering functions
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / syslog.h
1 /*
2  * Acess2 POSIX Emulation
3  * - By John Hodge (thePowersGang)
4  *
5  * syslog.h
6  * - Central Logging
7  */
8 #ifndef _LIBPOSIX__SYSLOG_H_
9 #define _LIBPOSIX__SYSLOG_H_
10
11 // openlog(logopt)
12 #define LOG_PID         0x01
13 #define LOG_CONS        0x02
14 #define LOG_NDELAY      0x04
15 #define LOG_ODELAY      0x08
16 #define LOG_NOWAIT      0x10
17
18 // openlog(facility)
19 enum {
20         LOG_KERN,
21         LOG_USER,
22         LOG_MAIL,
23         LOG_NEWS,
24         LOG_UUCP,
25         LOG_DAEMON,
26         LOG_AUTH,
27         LOG_CRON,
28         LOG_LPR,
29         LOG_LOCAL0,
30         LOG_LOCAL1,
31         LOG_LOCAL2,
32         LOG_LOCAL3,
33         LOG_LOCAL4,
34         LOG_LOCAL5,
35         LOG_LOCAL6,
36         LOG_LOCAL7
37 };
38
39 // setlogmask(maskpri)
40 #define LOG_MASK(pri)   pri
41
42 // syslog(priority)
43 enum {
44         LOG_EMERG,
45         LOG_ALERT,
46         LOG_CRIT,
47         LOG_ERR,
48         LOG_WARNING,
49         LOG_NOTICE,
50         LOG_INFO,
51         LOG_DEBUG
52 };
53
54 extern void     closelog(void);
55 extern void     openlog(const char *, int, int);
56 extern int      setlogmask(int);
57 extern void     syslog(int, const char *, ...);
58
59 #endif
60

UCC git Repository :: git.ucc.asn.au