54#define LOG_PRIMASK 0x07
56#define LOG_PRI(p) ((p) & LOG_PRIMASK)
57#define LOG_MAKEPRI(fac, pri) (((fac) << 3) | (pri))
60#define INTERNAL_NOPRI 0x10
62#define INTERNAL_MARK LOG_MAKEPRI(LOG_NFACILITIES, 0)
77 {
"none", INTERNAL_NOPRI },
87#define LOG_KERN (0<<3)
88#define LOG_USER (1<<3)
89#define LOG_MAIL (2<<3)
90#define LOG_DAEMON (3<<3)
91#define LOG_AUTH (4<<3)
92#define LOG_SYSLOG (5<<3)
94#define LOG_NEWS (7<<3)
95#define LOG_UUCP (8<<3)
96#define LOG_CRON (9<<3)
97#define LOG_AUTHPRIV (10<<3)
98#define LOG_FTP (11<<3)
101#define LOG_LOCAL0 (16<<3)
102#define LOG_LOCAL1 (17<<3)
103#define LOG_LOCAL2 (18<<3)
104#define LOG_LOCAL3 (19<<3)
105#define LOG_LOCAL4 (20<<3)
106#define LOG_LOCAL5 (21<<3)
107#define LOG_LOCAL6 (22<<3)
108#define LOG_LOCAL7 (23<<3)
110#define LOG_NFACILITIES 24
111#define LOG_FACMASK 0x03f8
113#define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3)
116CODE facilitynames[] =
126 {
"mark", INTERNAL_MARK },
147#define LOG_MASK(pri) (1 << (pri))
148#define LOG_UPTO(pri) ((1 << ((pri)+1)) - 1)
158#define LOG_ODELAY 0x04
159#define LOG_NDELAY 0x08
160#define LOG_NOWAIT 0x10
161#define LOG_PERROR 0x20
163#define SYSLOG_PORT 514
173extern void openlog (
char *__ident,
int __option,
int __facility);
179extern void syslog (
int __pri,
char *__fmt, ...);
void openlog(char *__ident, int __option, int __facility)
void syslog(int __pri, char *__fmt,...)
const char * set_syslog_conf_dir(const char *dir)
int setlogmask(int __mask)
void vsyslog(int __pri, char *__fmt, va_list __ap)