2 * <syslog.h> wrapper functions.
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2005 Jonathan Pryor
15 #include <glib/gtypes.h>
20 Mono_Posix_Syscall_openlog (void* ident, int option, int facility)
23 openlog ((const char*) ident, option, facility);
24 return errno == 0 ? 0 : -1;
28 Mono_Posix_Syscall_closelog (void)
32 return errno == 0 ? 0 : -1;
36 Mono_Posix_Syscall_syslog (int priority, const char* message)
39 syslog (priority, message);
40 return errno == 0 ? 0 : -1;
43 /* vararg version of syslog(3). */
45 Mono_Posix_Syscall_syslog2 (int priority, const char *format, ...)
51 va_start (ap, format);
52 vsyslog (priority, format, ap);