@@ -204,62 +204,60 @@ else version( FreeBSD )
204204}
205205else version ( DragonFlyBSD )
206206{
207- // http://fxr.watson.org/fxr/source/sys/syslog.h
208-
209207 // PRIORITY
210208 enum {
211- LOG_EMERG = 0 , /* system is unusable */
212- LOG_ALERT = 1 , /* action must be taken immediately */
213- LOG_CRIT = 2 , /* critical conditions */
214- LOG_ERR = 3 , /* error conditions */
215- LOG_WARNING = 4 , /* warning conditions */
216- LOG_NOTICE = 5 , /* normal but significant condition */
217- LOG_INFO = 6 , /* informational */
218- LOG_DEBUG = 7 , /* debug-level messages */
209+ LOG_EMERG = 0 , /* system is unusable */
210+ LOG_ALERT = 1 , /* action must be taken immediately */
211+ LOG_CRIT = 2 , /* critical conditions */
212+ LOG_ERR = 3 , /* error conditions */
213+ LOG_WARNING = 4 , /* warning conditions */
214+ LOG_NOTICE = 5 , /* normal but significant condition */
215+ LOG_INFO = 6 , /* informational */
216+ LOG_DEBUG = 7 , /* debug-level messages */
219217 };
220218
221219 // OPTIONS
222220 enum {
223- LOG_PID = 0x01 , /* log the pid with each message */
224- LOG_CONS = 0x02 , /* log on the console if errors in sending */
225- LOG_ODELAY = 0x04 , /* delay open until first syslog() (default) */
226- LOG_NDELAY = 0x08 , /* don't delay open */
227- LOG_NOWAIT = 0x10 , /* don't wait for console forks: DEPRECATED */
228- LOG_PERROR = 0x20 , /* log to stderr as well */
221+ LOG_PID = 0x01 , /* log the pid with each message */
222+ LOG_CONS = 0x02 , /* log on the console if errors in sending */
223+ LOG_ODELAY = 0x04 , /* delay open until first syslog() (default) */
224+ LOG_NDELAY = 0x08 , /* don't delay open */
225+ LOG_NOWAIT = 0x10 , /* don't wait for console forks: DEPRECATED */
226+ LOG_PERROR = 0x20 , /* log to stderr as well */
229227 };
230228
231229 // FACILITY
232230 enum {
233- LOG_KERN = (0 << 3 ), /* kernel messages */
234- LOG_USER = (1 << 3 ), /* random user-level messages */
235- LOG_MAIL = (2 << 3 ), /* mail system */
236- LOG_DAEMON = (3 << 3 ), /* system daemons */
237- LOG_AUTH = (4 << 3 ), /* security/authorization messages */
238- LOG_SYSLOG = (5 << 3 ), /* messages generated internally by syslogd */
239- LOG_LPR = (6 << 3 ), /* line printer subsystem */
240- LOG_NEWS = (7 << 3 ), /* network news subsystem */
241- LOG_UUCP = (8 << 3 ), /* UUCP subsystem */
242- LOG_CRON = (9 << 3 ), /* clock daemon */
243- LOG_AUTHPRIV = (10 << 3 ), /* security/authorization messages (private), */
244- LOG_FTP = (11 << 3 ), /* ftp daemon */
245- LOG_NTP = (12 << 3 ), /* NTP subsystem */
246- LOG_SECURITY = (13 << 3 ), /* security subsystems (firewalling, etc.) */
247- LOG_CONSOLE = (14 << 3 ), /* /dev/console output */
231+ LOG_KERN = (0 << 3 ), /* kernel messages */
232+ LOG_USER = (1 << 3 ), /* random user-level messages */
233+ LOG_MAIL = (2 << 3 ), /* mail system */
234+ LOG_DAEMON = (3 << 3 ), /* system daemons */
235+ LOG_AUTH = (4 << 3 ), /* security/authorization messages */
236+ LOG_SYSLOG = (5 << 3 ), /* messages generated internally by syslogd */
237+ LOG_LPR = (6 << 3 ), /* line printer subsystem */
238+ LOG_NEWS = (7 << 3 ), /* network news subsystem */
239+ LOG_UUCP = (8 << 3 ), /* UUCP subsystem */
240+ LOG_CRON = (9 << 3 ), /* clock daemon */
241+ LOG_AUTHPRIV = (10 << 3 ), /* security/authorization messages (private), */
242+ LOG_FTP = (11 << 3 ), /* ftp daemon */
243+ LOG_NTP = (12 << 3 ), /* NTP subsystem */
244+ LOG_SECURITY = (13 << 3 ), /* security subsystems (firewalling, etc.) */
245+ LOG_CONSOLE = (14 << 3 ), /* /dev/console output */
248246
249247 /* other codes through 15 reserved for system use */
250- LOG_LOCAL0 = (16 << 3 ), /* reserved for local use */
251- LOG_LOCAL1 = (17 << 3 ), /* reserved for local use */
252- LOG_LOCAL2 = (18 << 3 ), /* reserved for local use */
253- LOG_LOCAL3 = (19 << 3 ), /* reserved for local use */
254- LOG_LOCAL4 = (20 << 3 ), /* reserved for local use */
255- LOG_LOCAL5 = (21 << 3 ), /* reserved for local use */
256- LOG_LOCAL6 = (22 << 3 ), /* reserved for local use */
257- LOG_LOCAL7 = (23 << 3 ), /* reserved for local use */
248+ LOG_LOCAL0 = (16 << 3 ), /* reserved for local use */
249+ LOG_LOCAL1 = (17 << 3 ), /* reserved for local use */
250+ LOG_LOCAL2 = (18 << 3 ), /* reserved for local use */
251+ LOG_LOCAL3 = (19 << 3 ), /* reserved for local use */
252+ LOG_LOCAL4 = (20 << 3 ), /* reserved for local use */
253+ LOG_LOCAL5 = (21 << 3 ), /* reserved for local use */
254+ LOG_LOCAL6 = (22 << 3 ), /* reserved for local use */
255+ LOG_LOCAL7 = (23 << 3 ), /* reserved for local use */
258256
259257 LOG_NFACILITIES = 24 , /* current number of facilities */
260258 };
261259
262- int LOG_MASK (int pri) { return 1 << pri; } /* mask for one priority */
260+ int LOG_MASK (int pri) { return 1 << pri; } /* mask for one priority */
263261 int LOG_UPTO (int pri) { return (1 << (pri+ 1 )) - 1 ; } /* all priorities through pri */
264262
265263 void openlog (const char * , int __option, int __facility);
0 commit comments