FENIX_libc/include/syslog.h
2020-12-01 17:40:03 -06:00

48 lines
1,018 B
C

#ifndef _SYSLOG_H
#define _SYSLOG_H
/* logopt option for openlog() */
#define LOG_PID 001
#define LOG_CONS 002
#define LOG_NDELAY 004
#define LOG_ODELAY 010
#define LOG_NOWAIT 020
/* facility argument for openlog() */
#define LOG_KERN 1
#define LOG_USER 2
#define LOG_MAIL 3
#define LOG_NEWS 4
#define LOG_UUCP 5
#define LOG_DAEMON 6
#define LOG_AUTH 7
#define LOG_CRON 8
#define LOG_LPR 9
#define LOG_LOCAL0 10
#define LOG_LOCAL1 11
#define LOG_LOCAL2 12
#define LOG_LOCAL3 13
#define LOG_LOCAL4 14
#define LOG_LOCAL5 15
#define LOG_LOCAL6 16
#define LOG_LOCAL7 17
/* priority argument for syslog() */
#define LOG_EMERG 1
#define LOG_CRIT 2
#define LOG_ALERT 3
#define LOG_ERROR 4
#define LOG_WARNING 5
#define LOG_NOTICE 6
#define LOG_INFO 7
#define LOG_DEBUG 8
/* I'm not 100% sure how this is supposed to work -Kat */
#define LOG_MASK(pri) (pri)
void closelog(void);
void openlog(const char *, int, int);
int setlogmask(int);
void syslog(int, const char *, ...);
#endif