Contents of /trunk/mkinitrd-magellan/klibc/usr/include/syslog.h
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 1631 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 1631 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | /* |
2 | * syslog.h |
3 | */ |
4 | |
5 | #ifndef _SYSLOG_H |
6 | #define _SYSLOG_H |
7 | |
8 | #include <stdio.h> |
9 | #include <klibc/extern.h> |
10 | |
11 | /* Alert levels */ |
12 | #define LOG_EMERG 0 |
13 | #define LOG_ALERT 1 |
14 | #define LOG_CRIT 2 |
15 | #define LOG_ERR 3 |
16 | #define LOG_WARNING 4 |
17 | #define LOG_NOTICE 5 |
18 | #define LOG_INFO 6 |
19 | #define LOG_DEBUG 7 |
20 | |
21 | #define LOG_PRIMASK 7 |
22 | #define LOG_PRI(x) ((x) & LOG_PRIMASK) |
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 | /* openlog() flags; only LOG_PID and LOG_PERROR supported */ |
50 | #define LOG_PID 0x01 /* include pid with message */ |
51 | #define LOG_CONS 0x02 /* write to console on logger error */ |
52 | #define LOG_ODELAY 0x04 /* delay connection until syslog() */ |
53 | #define LOG_NDELAY 0x08 /* open connection immediately */ |
54 | #define LOG_NOWAIT 0x10 /* wait for child processes (unused on linux) */ |
55 | #define LOG_PERROR 0x20 /* additional logging to stderr */ |
56 | |
57 | __extern void openlog(const char *, int, int); |
58 | __extern void syslog(int, const char *, ...); |
59 | __extern void vsyslog(int, const char *, va_list); |
60 | __extern void closelog(void); |
61 | |
62 | #endif /* _SYSLOG_H */ |