home *** CD-ROM | disk | FTP | other *** search
- /*++
- /* NAME
- /* syslog 5
- /* SUMMARY
- /* surrogate BSD4.3 syslog facility
- /* PROJECT
- /* pc-mail
- /* PACKAGE
- /* nfs
- /* SYNOPSIS
- /* include "syslog.h"
- /* DESCRIPTION
- /* .nf
-
- /* Do nothing if we already have <syslog.h> */
-
- #ifndef SYSLOG
-
- /* various constants */
-
- #define LOG_KERN (0<<3) /* kernel messages */
- #define LOG_USER (1<<3) /* random user-level messages */
- #define LOG_MAIL (2<<3) /* mail system */
- #define LOG_DAEMON (3<<3) /* system daemons */
- #define LOG_AUTH (4<<3) /* security/authorization messages */
- #define LOG_SYSLOG (5<<3) /* messages generated internally by syslogd */
- #define LOG_LPR (6<<3) /* line printer subsystem */
- #define LOG_NEWS (7<<3) /* netnews subsystem */
- #define LOG_UUCP (8<<3) /* uucp subsystem */
- #define LOG_CRON (15<<3) /* cron/at subsystem */
-
- #define LOG_EMERG 0 /* system is unusable */
- #define LOG_ALERT 1 /* action must be taken immediately */
- #define LOG_CRIT 2 /* critical conditions */
- #define LOG_ERR 3 /* error conditions */
- #define LOG_WARNING 4 /* warning conditions */
- #define LOG_NOTICE 5 /* normal but signification condition */
- #define LOG_INFO 6 /* informational */
- #define LOG_DEBUG 7 /* debug-level messages */
-
- #define LOG_PID 0x01 /* log the pid with each message */
- #define LOG_CONS 0x02 /* log on the console if errors in sending */
- #define LOG_ODELAY 0x04 /* delay open until syslog() is called */
- #define LOG_NDELAY 0x08 /* don't delay open */
- #define LOG_NOWAIT 0x10 /* if forking to log on console, don't wait() */
-
- /* functions */
-
- extern openlog();
- extern syslog();
- extern closelog();
-
- #endif
- /* AUTHOR(S)
- /* Wietse Z. Venema
- /* Eindhoven University of Technology
- /* Department of Mathematics and Computer Science
- /* Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
- /* CREATION DATE
- /* Sun Oct 29 15:12:57 MET 1989
- /* LAST MODIFICATION
- /* 10/29/89 22:29:50
- /* VERSION/RELEASE
- /* 1.1
- /*--*/
-
-