1#include <sys/types.h>
2#include <sys/syslog.h>
3#include <stdio.h>
4#include <stdarg.h>
5
6void
7openlog(const char *path, int opt, int fac)
8{
9}
10
11void
12closelog(void)
13{
14}
15
16int
17setlogmask(int mask)
18{
19	return 0xff;
20}
21
22__strong_alias(_syslog, syslog)
23void
24syslog(int fac, const char *fmt, ...)
25{
26	va_list ap;
27	va_start(ap, fmt);
28	(void)vfprintf(stderr, fmt, ap);
29	va_end(ap);
30	(void)fprintf(stderr, "\n");
31	fflush(stderr);
32}
33
34__strong_alias(_vsyslog, vsyslog)
35void
36vsyslog(int fac, const char *fmt, va_list ap)
37{
38	(void)vfprintf(stderr, fmt, ap);
39	(void)fprintf(stderr, "\n");
40	fflush(stderr);
41}
42
43void syslog_ss(int, struct syslog_data *, const char *, ...);
44__strong_alias(_syslog_ss, syslog_ss)
45void
46syslog_ss(int priority, struct syslog_data *data, const char *fmt, ...)
47{
48	va_list ap;
49	va_start(ap, fmt);
50	vsyslog(priority, fmt, ap);
51	va_end(ap);
52}
53
54void vsyslog_ss(int, struct syslog_data *, const char *, va_list);
55__strong_alias(_vsyslog_ss, vsyslog_ss)
56void
57vsyslog_ss(int priority, struct syslog_data *data, const char *fmt, va_list ap)
58{
59	vsyslog(priority, fmt, ap);
60}
61
62__strong_alias(_syslog_r, syslog_r)
63void
64syslog_r(int priority, struct syslog_data *data, const char *fmt, ...)
65{
66	va_list ap;
67	va_start(ap, fmt);
68	vsyslog(priority, fmt, ap);
69	va_end(ap);
70}
71
72__strong_alias(_vsyslog_r, vsyslog_r)
73void
74vsyslog_r(int priority, struct syslog_data *data, const char *fmt, va_list ap)
75{
76	vsyslog(priority, fmt, ap);
77}
78
79__strong_alias(_closelog_r, closelog_r)
80void
81closelog_r(struct syslog_data *data)
82{
83}
84
85__strong_alias(_setlogmask_r, setlogmask_r)
86int
87setlogmask_r(int maskpri, struct syslog_data *data)
88{
89	return 0xff;
90}
91
92__strong_alias(_openlog_r, openlog_r)
93void
94openlog_r(const char *id, int logopt, int facility, struct syslog_data *data)
95{
96}
97