Some <syslog.h> fixes.
This whole file is bogus, but if we're going to have it, we may as well make an effort. Add LOG_NFACILITIES. Also stop using octal like it's 1970, and so I can have some confidence that these constants are actually right. Bug: N/A Test: built inetutils with a modified standalone toolchain Change-Id: Ifd6f661f87845bcc5843d68474cb836afb698058
This commit is contained in:
parent
316a44f33c
commit
f517288924
1 changed files with 22 additions and 21 deletions
|
@ -50,28 +50,29 @@ __BEGIN_DECLS
|
|||
#define LOG_MAKEPRI(fac, pri) ((fac) | (pri))
|
||||
|
||||
/* Facilities are currently ignored on Android. */
|
||||
#define LOG_KERN 0000
|
||||
#define LOG_USER 0010
|
||||
#define LOG_MAIL 0020
|
||||
#define LOG_DAEMON 0030
|
||||
#define LOG_AUTH 0040
|
||||
#define LOG_SYSLOG 0050
|
||||
#define LOG_LPR 0060
|
||||
#define LOG_NEWS 0070
|
||||
#define LOG_UUCP 0100
|
||||
#define LOG_CRON 0110
|
||||
#define LOG_AUTHPRIV 0120
|
||||
#define LOG_FTP 0130
|
||||
#define LOG_LOCAL0 0200
|
||||
#define LOG_LOCAL1 0210
|
||||
#define LOG_LOCAL2 0220
|
||||
#define LOG_LOCAL3 0230
|
||||
#define LOG_LOCAL4 0240
|
||||
#define LOG_LOCAL5 0250
|
||||
#define LOG_LOCAL6 0260
|
||||
#define LOG_LOCAL7 0270
|
||||
#define LOG_KERN (0<<3)
|
||||
#define LOG_USER (1<<3)
|
||||
#define LOG_MAIL (2<<3)
|
||||
#define LOG_DAEMON (3<<3)
|
||||
#define LOG_AUTH (4<<3)
|
||||
#define LOG_SYSLOG (5<<3)
|
||||
#define LOG_LPR (6<<3)
|
||||
#define LOG_NEWS (7<<3)
|
||||
#define LOG_UUCP (8<<3)
|
||||
#define LOG_CRON (9<<3)
|
||||
#define LOG_AUTHPRIV (10<<3)
|
||||
#define LOG_FTP (11<<3)
|
||||
#define LOG_LOCAL0 (16<<3)
|
||||
#define LOG_LOCAL1 (17<<3)
|
||||
#define LOG_LOCAL2 (18<<3)
|
||||
#define LOG_LOCAL3 (19<<3)
|
||||
#define LOG_LOCAL4 (20<<3)
|
||||
#define LOG_LOCAL5 (21<<3)
|
||||
#define LOG_LOCAL6 (22<<3)
|
||||
#define LOG_LOCAL7 (23<<3)
|
||||
|
||||
#define LOG_FACMASK 01770
|
||||
#define LOG_NFACILITIES 24
|
||||
#define LOG_FACMASK 0x3f8
|
||||
#define LOG_FAC(x) (((x) >> 3) & (LOG_FACMASK >> 3))
|
||||
|
||||
#define LOG_MASK(pri) (1 << (pri))
|
||||
|
|
Loading…
Reference in a new issue