diff options
author | 2015-11-25 00:01:21 +0000 | |
---|---|---|
committer | 2015-11-25 00:01:21 +0000 | |
commit | c96b83afdd79382f9cb6af574ddea3e1bdf764f4 (patch) | |
tree | d6e719a0fd2e2bc595ede16f5d138ff5cc8ab59f /lib/libc/hidden/syslog.h | |
parent | Add sendsyslog2(), which accepts the syslog/openlog "logopt" flag (diff) | |
download | wireguard-openbsd-c96b83afdd79382f9cb6af574ddea3e1bdf764f4.tar.xz wireguard-openbsd-c96b83afdd79382f9cb6af574ddea3e1bdf764f4.zip |
Add a syscall stub for sendsyslog2(2), and use it in syslog_r(3), passing
LOG_CONS to the kernel. As a result, the /dev/console opening code can
be removed.
ok kettenis millert beck
Diffstat (limited to 'lib/libc/hidden/syslog.h')
-rw-r--r-- | lib/libc/hidden/syslog.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/hidden/syslog.h b/lib/libc/hidden/syslog.h index 1773baaef26..256120d48f5 100644 --- a/lib/libc/hidden/syslog.h +++ b/lib/libc/hidden/syslog.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syslog.h,v 1.2 2015/10/31 02:57:16 deraadt Exp $ */ +/* $OpenBSD: syslog.h,v 1.3 2015/11/25 00:01:21 deraadt Exp $ */ /* * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> * @@ -23,6 +23,9 @@ int sendsyslog(const char *, __size_t); PROTO_NORMAL(sendsyslog); +int sendsyslog2(const char *, __size_t, int); +PROTO_NORMAL(sendsyslog2); + __BEGIN_HIDDEN_DECLS void __vsyslog_r(int, struct syslog_data *, int, const char *, __va_list); |