This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5133delta: Note the commit range for "MacOS Classic"
[perl5.git] / vos / syslog.h
1 /* Beginning of modification history */
2 /* Written 02-08-13 by PG */
3 /* End of modification history */
4
5 /* This header conforms to IEEE Std 1003.1-2001 */
6
7 #ifndef   _INCLUDED_SYSLOG_H
8 #define   _INCLUDED_SYSLOG_H
9
10 /* values of the "logopt" option of openlog */
11
12 #define   LOG_PID         1
13 #define   LOG_CONS        2
14 #define   LOG_NDELAY      4
15 #define   LOG_ODELAY      8
16 #define   LOG_NOWAIT     16
17
18 /* values of the "facility" argument of openlog
19       and of the "priority" argument of syslog */
20
21 #define   LOG_KERN    0
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)
38
39 /* macro for constructing "maskpri" arg to setlogmask */
40
41 #define   LOG_MASK(p) (1 << (p))
42
43 /* values of the "priority" argument of syslog */
44
45 #define   LOG_EMERG      0
46 #define   LOG_ALERT      1
47 #define   LOG_CRIT       2
48 #define   LOG_ERR        3
49 #define   LOG_WARNING    4
50 #define   LOG_NOTICE     5
51 #define   LOG_INFO       6
52 #define   LOG_DEBUG      7
53
54 #undef __P
55 #ifdef __PROTOTYPES__
56 #define __P(args) args
57 #else
58 #define __P(args) ()
59 #endif
60
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64
65 extern void    closelog __P((void));
66 extern void    openlog __P((const char *ident, int logopt,
67                     int facility));
68 extern int     setlogmask __P((int maskpri));
69 extern void    syslog __P((int priority, const char * message, ...));
70
71 #ifdef __cplusplus
72 }
73 #endif
74
75 #endif /* _INCLUDED_SYSLOG_H */