diff options
author | 2017-03-16 23:55:19 +0000 | |
---|---|---|
committer | 2017-03-16 23:55:19 +0000 | |
commit | bafa06e13c64d79e0329683d43a2c2c06cde1b8c (patch) | |
tree | 01af73d39aa2411fbd5e45cfb18b2e0abdbf9d5e /usr.sbin/syslogd/syslogd.h | |
parent | Print PCIe Extended Capabilities, from Simon Mages (diff) | |
download | wireguard-openbsd-bafa06e13c64d79e0329683d43a2c2c06cde1b8c.tar.xz wireguard-openbsd-bafa06e13c64d79e0329683d43a2c2c06cde1b8c.zip |
Start to replace the home grown syslogd(8) internal debug and logging
functions with a more common log.c implementation. Of course
openlog(3) cannot be used, so adapt the log.[ch] initially copied
from ospfd(8) to syslogd's special needs. As the messages are
limited to ERRBUFSIZE anyway, malloc(3) in the error logging code
can be avoided. Changing all log calls to the new API will be done
in a separate step.
OK millert@
Diffstat (limited to 'usr.sbin/syslogd/syslogd.h')
-rw-r--r-- | usr.sbin/syslogd/syslogd.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.h b/usr.sbin/syslogd/syslogd.h index 2dd444d117b..c5d33c6b275 100644 --- a/usr.sbin/syslogd/syslogd.h +++ b/usr.sbin/syslogd/syslogd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.h,v 1.26 2016/10/17 11:19:55 bluhm Exp $ */ +/* $OpenBSD: syslogd.h,v 1.27 2017/03/16 23:55:19 bluhm Exp $ */ /* * Copyright (c) 2003 Anil Madhavapeddy <anil@recoil.org> @@ -20,6 +20,8 @@ #include <sys/socket.h> #include <sys/uio.h> +#include <stdarg.h> + /* Privilege separation */ void priv_init(int, int, int, char **); __dead void priv_exec(char *, int, int, int, char **); @@ -49,6 +51,8 @@ extern char *path_ctlsock; #define MAXLINE 8192 /* maximum line length */ #define ERRBUFSIZE 256 void logdebug(const char *, ...) __attribute__((__format__ (printf, 1, 2))); +void vlogmsg(int pri, const char *, const char *, va_list); +__dead void die(int); extern int Debug; extern int Startup; |