Remove some dead code
[mono-project.git] / support / syslog.c
blob1e93e0e219a76236756f36846fe70b0dc766520b
1 /*
2 * <syslog.h> wrapper functions.
4 * Authors:
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2005 Jonathan Pryor
8 */
10 #include <stdarg.h>
11 #include <syslog.h>
12 #include <errno.h>
14 #include "map.h"
15 #include "mph.h"
16 #include <glib.h>
18 G_BEGIN_DECLS
20 int
21 Mono_Posix_Syscall_openlog (void* ident, int option, int facility)
23 openlog ((const char*) ident, option, facility);
24 return 0;
27 int
28 Mono_Posix_Syscall_closelog (void)
30 closelog ();
31 return 0;
34 int
35 Mono_Posix_Syscall_syslog (int priority, const char* message)
37 syslog (priority, "%s", message);
38 return 0;
41 /* vararg version of syslog(3). */
42 gint32
43 Mono_Posix_Syscall_syslog2 (int priority, const char *format, ...)
45 va_list ap;
47 va_start (ap, format);
48 vsyslog (priority, format, ap);
49 va_end (ap);
51 return 0;
55 G_END_DECLS
58 * vim: noexpandtab