aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/posix/syslog.h
blob: aabd0e475eeaf21c39c8deecd12be4e2c4d4c681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _POSIX_SYSLOG_H
#define _POSIX_SYSLOG_H

#include <stdarg.h>

#define LOG_PID 0
#define LOG_CONS 0
#define LOG_NDELAY 0
#define LOG_ODELAY 0
#define LOG_NOWAIT 0

#define LOG_KERN 0
#define LOG_USER 0
#define LOG_MAIL 0
#define LOG_NEWS 0
#define LOG_UUCP 0
#define LOG_DAEMON 0
#define LOG_AUTH 0
#define LOG_CRON 0
#define LOG_LPR 0

/* TODO: support */
#define LOG_EMERG 0
#define LOG_ALERT 1
#define LOG_CRIT 2
#define LOG_ERR 3
#define LOG_WARNING 4
#define LOG_NOTICE 5
#define LOG_INFO 6
#define LOG_DEBUG 7

void openlog(const char *ident, int option, int facility);
void syslog(int priority, const char *format, ...);
void closelog(void);
void vsyslog(int priority, const char *format, va_list ap);

#endif /* _POSIX_SYSLOG_H */