home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
stg_v4.lzh
/
syslog.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-11
|
1KB
|
51 lines
/*
* syslog codes - semi unix compatible
*
* 92/10/28 StG - initial version
*/
#ifdef _OSK
/* error levels */
#define LOG_EMERG '!' /* system is unusable */
#define LOG_ALERT 'A' /* action must be taken now */
#define LOG_CRIT 'C' /* critical conditions */
#define LOG_ERR 'E' /* error conditions */
#define LOG_WARNING 'W' /* warning conditions */
#define LOG_NOTICE 'N' /* normal but significant */
#define LOG_INFO 'I' /* informational */
#define LOG_DEBUG 'D' /* debug messages */
/* following are StG Net specific */
#define LOG_LOGIN 'L' /* user has logged in */
#define LOG_BADPW 'P' /* user has entered a bad password */
#define LOG_SMON 'm' /* smon modem message */
#define LOG_BUG 'B' /* software bug has been detected */
#define LOG_DAEMON 0
#define LOG_PID 0
#define LOG_CONS 0
#define LOG_NDELAY 0
#define LOG_AUTH 0
#define LOG_MAIL 0
#define LOG_STGNET 0
#else
/* unix, msdos, etc */
#include <syslog.h>
#define LOG_BADPW LOG_ALERT
#define LOG_LOGIN LOG_INFO
#define LOG_BUG LOG_CRIT
#define LOG_SMON LOG_INFO
/* facility code - map to LOCAL7 for unix */
#define LOG_STGNET LOG_LOCAL7
#endif