From 7cb86289c99aae8cc0279f0f66e3b1c8bd5790f3 Mon Sep 17 00:00:00 2001 From: gnezdo Date: Wed, 26 Apr 2023 06:52:45 +0000 Subject: [PATCH] Declare sendsyslog to match its man page This simplifies syzkaller revival after the removal of __syscall. OK bluhm, millert, deraadt --- lib/libc/hidden/syslog.h | 6 ++---- 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 * @@ -20,9 +20,6 @@ #include_next -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 */ -- 2.20.1