diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-25 00:01:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-25 00:01:22 +0000 |
commit | 3f8ca6d02aaae7b0bae728f1880a8fcf03de655f (patch) | |
tree | 68b63b2bc3552c29ebae5ddd7c2b079ab1bb281c /lib/libc/hidden | |
parent | ff87ec7efd0aa6a5bc200248da60dfcae7a604c7 (diff) |
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')
-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); |