2004-06-06 11:03:53 +04:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/syslog.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
void
|
|
|
|
openlog(const char *path, int opt, int fac)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
closelog(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2004-06-06 22:13:45 +04:00
|
|
|
int
|
|
|
|
setlogmask(int mask)
|
|
|
|
{
|
2005-03-31 17:03:34 +04:00
|
|
|
return 0xff;
|
2004-06-06 22:13:45 +04:00
|
|
|
}
|
|
|
|
|
2004-10-17 15:57:14 +04:00
|
|
|
__strong_alias(_syslog, syslog)
|
2004-06-06 11:03:53 +04:00
|
|
|
void
|
|
|
|
syslog(int fac, const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
va_start(ap, fmt);
|
|
|
|
(void)vfprintf(stderr, fmt, ap);
|
|
|
|
va_end(ap);
|
2004-10-17 15:57:14 +04:00
|
|
|
(void)fprintf(stderr, "\n");
|
|
|
|
fflush(stderr);
|
2004-06-06 11:03:53 +04:00
|
|
|
}
|
|
|
|
|
2004-10-17 15:57:14 +04:00
|
|
|
__strong_alias(_vsyslog, vsyslog)
|
2004-06-06 11:03:53 +04:00
|
|
|
void
|
|
|
|
vsyslog(int fac, const char *fmt, va_list ap)
|
|
|
|
{
|
|
|
|
(void)vfprintf(stderr, fmt, ap);
|
2004-10-17 15:57:14 +04:00
|
|
|
(void)fprintf(stderr, "\n");
|
|
|
|
fflush(stderr);
|
2004-06-06 11:03:53 +04:00
|
|
|
}
|
2006-11-06 20:33:56 +03:00
|
|
|
|
2007-02-03 22:49:21 +03:00
|
|
|
void syslog_ss(int, struct syslog_data *, const char *, ...);
|
2006-11-06 20:33:56 +03:00
|
|
|
__strong_alias(_syslog_ss, syslog_ss)
|
|
|
|
void
|
|
|
|
syslog_ss(int priority, struct syslog_data *data, const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
va_start(ap, fmt);
|
|
|
|
vsyslog(priority, fmt, ap);
|
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
|
2007-02-03 22:49:21 +03:00
|
|
|
void vsyslog_ss(int, struct syslog_data *, const char *, va_list);
|
2006-11-06 20:33:56 +03:00
|
|
|
__strong_alias(_vsyslog_ss, vsyslog_ss)
|
|
|
|
void
|
|
|
|
vsyslog_ss(int priority, struct syslog_data *data, const char *fmt, va_list ap)
|
|
|
|
{
|
|
|
|
vsyslog(priority, fmt, ap);
|
|
|
|
}
|
|
|
|
|
|
|
|
__strong_alias(_syslog_r, syslog_r)
|
|
|
|
void
|
|
|
|
syslog_r(int priority, struct syslog_data *data, const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
va_start(ap, fmt);
|
|
|
|
vsyslog(priority, fmt, ap);
|
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
|
|
|
|
__strong_alias(_vsyslog_r, vsyslog_r)
|
|
|
|
void
|
|
|
|
vsyslog_r(int priority, struct syslog_data *data, const char *fmt, va_list ap)
|
|
|
|
{
|
|
|
|
vsyslog(priority, fmt, ap);
|
|
|
|
}
|
|
|
|
|
|
|
|
__strong_alias(_closelog_r, closelog_r)
|
|
|
|
void
|
|
|
|
closelog_r(struct syslog_data *data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
__strong_alias(_setlogmask_r, setlogmask_r)
|
|
|
|
int
|
|
|
|
setlogmask_r(int maskpri, struct syslog_data *data)
|
|
|
|
{
|
|
|
|
return 0xff;
|
|
|
|
}
|
|
|
|
|
|
|
|
__strong_alias(_openlog_r, openlog_r)
|
|
|
|
void
|
|
|
|
openlog_r(const char *id, int logopt, int facility, struct syslog_data *data)
|
|
|
|
{
|
|
|
|
}
|