2 * <syslog.h> wrapper functions.
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2005 Jonathan Pryor
21 Mono_Posix_Syscall_openlog (void* ident
, int option
, int facility
)
24 openlog ((const char*) ident
, option
, facility
);
25 return errno
== 0 ? 0 : -1;
29 Mono_Posix_Syscall_closelog (void)
33 return errno
== 0 ? 0 : -1;
37 Mono_Posix_Syscall_syslog (int priority
, const char* message
)
40 syslog (priority
, message
);
41 return errno
== 0 ? 0 : -1;
44 /* vararg version of syslog(3). */
46 Mono_Posix_Syscall_syslog2 (int priority
, const char *format
, ...)
52 va_start (ap
, format
);
53 vsyslog (priority
, format
, ap
);