Added some comments and fixed LOG_AUTHPRIV.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5333 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-11-12 16:33:11 +00:00
parent fb4dcd08dc
commit fa2f787a47

View File

@ -5,6 +5,8 @@
#define _SYSLOG_H_
/**options for openlog() **/
#define LOG_PID (1 << 12) /* log the process (thread/team) ID with each message */
#define LOG_CONS (2 << 12) /* log to the system console on error */
#define LOG_ODELAY (4 << 12) /* delay open until syslog() is called */
@ -13,6 +15,9 @@
#define LOG_PERROR (32 << 12)
#define LOG_NOWAIT (64 << 12) /* do not wait for child processes */
/** facilities **/
#define LOG_KERN (0 << 3) /* messages generated by the kernel */
#define LOG_USER (1 << 3) /* by user processes */
#define LOG_MAIL (2 << 3)
@ -23,8 +28,9 @@
#define LOG_NEWS (7 << 3)
#define LOG_UUCP (8 << 3)
#define LOG_CRON (9 << 3)
#define LOG_AUTHPRIV (4 << 3)
#define LOG_AUTHPRIV (10 << 3)
/* these are for local use: */
#define LOG_LOCAL0 (16 << 3)
#define LOG_LOCAL1 (17 << 3)
#define LOG_LOCAL2 (18 << 3)
@ -34,8 +40,8 @@
#define LOG_LOCAL6 (22 << 3)
#define LOG_LOCAL7 (23 << 3)
/* turns a priority into a mask usable for setlogmask() */
#define LOG_MASK(pri) (1 << (pri))
/** priorities **/
#define LOG_EMERG 0 /* a panic condition */
#define LOG_PANIC LOG_EMERG
@ -47,6 +53,9 @@
#define LOG_INFO 6
#define LOG_DEBUG 7
/* turns a priority into a mask usable for setlogmask() */
#define LOG_MASK(pri) (1 << (pri))
#ifdef __cplusplus
extern "C" {