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
)
23 openlog ((const char*) ident
, option
, facility
);
28 Mono_Posix_Syscall_closelog (void)
35 #pragma GCC diagnostic push
36 #pragma GCC diagnostic ignored "-Wformat-security"
39 Mono_Posix_Syscall_syslog (int priority
, const char* message
)
41 syslog (priority
, message
);
46 #pragma GCC diagnostic pop
49 /* vararg version of syslog(3). */
51 Mono_Posix_Syscall_syslog2 (int priority
, const char *format
, ...);
54 Mono_Posix_Syscall_syslog2 (int priority
, const char *format
, ...)
59 va_start (ap
, format
);
60 vsyslog (priority
, format
, ap
);
63 /* some OSes like AIX lack vsyslog; simulate with vsprintf */
66 va_start (ap
, format
);
67 vsnprintf(message
, 256, format
, ap
);
70 syslog(priority
, message
);