xref: /netbsd-src/distrib/utils/libhack/syslog.c (revision 4b896b232495b7a9b8b94a1cf1e21873296d53b8)
1 #include <sys/types.h>
2 #include <sys/syslog.h>
3 #include <stdio.h>
4 #include <stdarg.h>
5 
6 void
7 openlog(const char *path, int opt, int fac)
8 {
9 }
10 
11 void
12 closelog(void)
13 {
14 }
15 
16 void
17 syslog(int fac, const char *fmt, ...)
18 {
19 	va_list ap;
20 	va_start(ap, fmt);
21 	(void)vfprintf(stderr, fmt, ap);
22 	va_end(ap);
23 }
24 
25 void
26 vsyslog(int fac, const char *fmt, va_list ap)
27 {
28 	(void)vfprintf(stderr, fmt, ap);
29 }
30 
31 void
32 _syslog(int fac, const char *fmt, ...)
33 {
34 	va_list ap;
35 	va_start(ap, fmt);
36 	(void)vfprintf(stderr, fmt, ap);
37 	va_end(ap);
38 }
39 
40 void
41 _vsyslog(int fac, const char *fmt, va_list ap)
42 {
43 	(void)vfprintf(stderr, fmt, ap);
44 }
45