diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-08-27 09:45:42 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-08-27 09:45:42 +0100 |
commit | 6c5aecbf0114c11723431333656516913f976a4c (patch) | |
tree | 33ce7f4d5bb61da84bfebd1481452a14a57d17f3 /extras/mini-os/include | |
parent | dcd49135032e57a57512b40b5351617131d099c5 (diff) | |
download | xen-6c5aecbf0114c11723431333656516913f976a4c.tar.gz xen-6c5aecbf0114c11723431333656516913f976a4c.tar.bz2 xen-6c5aecbf0114c11723431333656516913f976a4c.zip |
stubdom: add syslog functions
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include')
-rw-r--r-- | extras/mini-os/include/posix/syslog.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/extras/mini-os/include/posix/syslog.h b/extras/mini-os/include/posix/syslog.h new file mode 100644 index 0000000000..aabd0e475e --- /dev/null +++ b/extras/mini-os/include/posix/syslog.h @@ -0,0 +1,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 */ |