chiark / gitweb /
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[elogind.git] / klibc / klibc / include / syslog.h
1 /*
2  * syslog.h
3  */
4
5 #ifndef _SYSLOG_H
6 #define _SYSLOG_H
7
8 #include <klibc/extern.h>
9
10 /* Alert levels */
11 #define LOG_EMERG       0
12 #define LOG_ALERT       1
13 #define LOG_CRIT        2
14 #define LOG_ERR         3
15 #define LOG_WARNING     4
16 #define LOG_NOTICE      5
17 #define LOG_INFO        6
18 #define LOG_DEBUG       7
19
20 #define LOG_PRIMASK     7
21 #define LOG_PRI(x)      ((x) & LOG_PRIMASK)
22
23
24 /* Facilities; not actually used */
25 #define LOG_KERN        0000
26 #define LOG_USER        0010
27 #define LOG_MAIL        0020
28 #define LOG_DAEMON      0030
29 #define LOG_AUTH        0040
30 #define LOG_SYSLOG      0050
31 #define LOG_LPR         0060
32 #define LOG_NEWS        0070
33 #define LOG_UUCP        0100
34 #define LOG_CRON        0110
35 #define LOG_AUTHPRIV    0120
36 #define LOG_FTP         0130
37 #define LOG_LOCAL0      0200
38 #define LOG_LOCAL1      0210
39 #define LOG_LOCAL2      0220
40 #define LOG_LOCAL3      0230
41 #define LOG_LOCAL4      0240
42 #define LOG_LOCAL5      0250
43 #define LOG_LOCAL6      0260
44 #define LOG_LOCAL7      0270
45
46 #define LOG_FACMASK     01770
47 #define LOG_FAC(x)      (((x) >> 3) & (LOG_FACMASK >> 3))
48
49 __extern void openlog(const char *, int, int);
50 __extern void syslog(int, const char *, ...);
51 __extern void closelog(void);
52
53 #endif /* _SYSLOG_H */