9 #include <klibc/extern.h>
22 #define LOG_PRI(x) ((x) & LOG_PRIMASK)
25 /* Facilities; not actually used */
29 #define LOG_DAEMON 0030
31 #define LOG_SYSLOG 0050
36 #define LOG_AUTHPRIV 0120
38 #define LOG_LOCAL0 0200
39 #define LOG_LOCAL1 0210
40 #define LOG_LOCAL2 0220
41 #define LOG_LOCAL3 0230
42 #define LOG_LOCAL4 0240
43 #define LOG_LOCAL5 0250
44 #define LOG_LOCAL6 0260
45 #define LOG_LOCAL7 0270
47 #define LOG_FACMASK 01770
48 #define LOG_FAC(x) (((x) >> 3) & (LOG_FACMASK >> 3))
50 /* openlog() flags; only LOG_PID and LOG_PERROR supported */
51 #define LOG_PID 0x01 /* include pid with message */
52 #define LOG_CONS 0x02 /* write to console on logger error */
53 #define LOG_ODELAY 0x04 /* delay connection until syslog() */
54 #define LOG_NDELAY 0x08 /* open connection immediately */
55 #define LOG_NOWAIT 0x10 /* wait for child processes (unused on linux) */
56 #define LOG_PERROR 0x20 /* additional logging to stderr */
59 __extern void openlog(const char *, int, int);
60 __extern void syslog(int, const char *, ...);
61 __extern void vsyslog(int, const char *, va_list);
62 __extern void closelog(void);
64 #endif /* _SYSLOG_H */