1 /* Beginning of modification history */
2 /* Written 02-08-13 by PG */
3 /* End of modification history */
5 /* This header conforms to IEEE Std 1003.1-2001 */
7 #ifndef _INCLUDED_SYSLOG_H
8 #define _INCLUDED_SYSLOG_H
10 /* values of the "logopt" option of openlog */
18 /* values of the "facility" argument of openlog
19 and of the "priority" argument of syslog */
22 #define LOG_USER (1<<3)
23 #define LOG_MAIL (2<<3)
24 #define LOG_NEWS (3<<3)
25 #define LOG_UUCP (4<<3)
26 #define LOG_DAEMON (5<<3)
27 #define LOG_AUTH (6<<3)
28 #define LOG_CRON (7<<3)
29 #define LOG_LPR (8<<3)
30 #define LOG_LOCAL0 (9<<3)
31 #define LOG_LOCAL1 (10<<3)
32 #define LOG_LOCAL2 (11<<3)
33 #define LOG_LOCAL3 (12<<3)
34 #define LOG_LOCAL4 (13<<3)
35 #define LOG_LOCAL5 (14<<3)
36 #define LOG_LOCAL6 (15<<3)
37 #define LOG_LOCAL7 (16<<3)
39 /* macro for constructing "maskpri" arg to setlogmask */
41 #define LOG_MASK(p) (1 << (p))
43 /* values of the "priority" argument of syslog */
56 #define __P(args) args
65 extern void closelog __P((void));
66 extern void openlog __P((const char *ident, int logopt,
68 extern int setlogmask __P((int maskpri));
69 extern void syslog __P((int priority, const char * message, ...));
75 #endif /* _INCLUDED_SYSLOG_H */