diff options
author | Greg Steuck <gnezdo@cvs.openbsd.org> | 2023-04-26 06:52:46 +0000 |
---|---|---|
committer | Greg Steuck <gnezdo@cvs.openbsd.org> | 2023-04-26 06:52:46 +0000 |
commit | fade9c51acd9fad6e1fffa15137350a1f0c8ce54 (patch) | |
tree | 81d9a1cc1b48ec37b0523be77c60ae990e7efc2c | |
parent | 65813f89835114b94a42e5fa40e1c9a13d96d7d7 (diff) |
Declare sendsyslog to match its man page
This simplifies syzkaller revival after the removal of __syscall.
OK bluhm, millert, deraadt
-rw-r--r-- | lib/libc/hidden/syslog.h | 6 | ||||
-rw-r--r-- | sys/sys/syslog.h | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/hidden/syslog.h b/lib/libc/hidden/syslog.h index d0c3ae9ea1c..387a92a4dcb 100644 --- a/lib/libc/hidden/syslog.h +++ b/lib/libc/hidden/syslog.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syslog.h,v 1.4 2016/03/21 22:41:28 bluhm Exp $ */ +/* $OpenBSD: syslog.h,v 1.5 2023/04/26 06:52:45 gnezdo Exp $ */ /* * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> * @@ -20,9 +20,6 @@ #include_next <syslog.h> -int sendsyslog(const char *, __size_t, int); -PROTO_NORMAL(sendsyslog); - __BEGIN_HIDDEN_DECLS void __vsyslog_r(int, struct syslog_data *, int, const char *, __va_list); @@ -32,6 +29,7 @@ PROTO_DEPRECATED(closelog); PROTO_NORMAL(closelog_r); PROTO_DEPRECATED(openlog); PROTO_NORMAL(openlog_r); +PROTO_NORMAL(sendsyslog); PROTO_DEPRECATED(setlogmask); PROTO_NORMAL(setlogmask_r); PROTO_NORMAL(syslog); diff --git a/sys/sys/syslog.h b/sys/sys/syslog.h index a20651eb813..063105952b1 100644 --- a/sys/sys/syslog.h +++ b/sys/sys/syslog.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syslog.h,v 1.17 2020/05/21 01:39:56 visa Exp $ */ +/* $OpenBSD: syslog.h,v 1.18 2023/04/26 06:52:45 gnezdo Exp $ */ /* $NetBSD: syslog.h,v 1.14 1996/04/03 20:46:44 christos Exp $ */ /* @@ -204,6 +204,7 @@ int setlogmask_r(int, struct syslog_data *); void syslog_r(int, struct syslog_data *, const char *, ...) __attribute__((__format__(__syslog__,3,4))); void vsyslog_r(int, struct syslog_data *, const char *, __va_list); +int sendsyslog(const char *, size_t, int); __END_DECLS #else /* !_KERNEL */ |