From 45e07ff62959dd0c68f708d74dea1787f004f350 Mon Sep 17 00:00:00 2001 From: bluhm <> Date: Wed, 30 May 2018 13:20:38 +0000 Subject: [PATCH] The open POSIX test suite reveals that sigpause(int sigmask) from 4.2 BSD takes a signal mask as argument while POSIX sigpause(int sig) expects a single signal. Do not expose our traditional BSD sigpause(3) to XPG/POSIX sources. OK guenther@ --- src/include/signal.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/include/signal.h b/src/include/signal.h index 24978c90..07982bd7 100644 --- a/src/include/signal.h +++ b/src/include/signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: signal.h,v 1.25 2016/05/09 23:55:52 guenther Exp $ */ +/* $OpenBSD: signal.h,v 1.26 2018/05/30 13:20:38 bluhm Exp $ */ /* $NetBSD: signal.h,v 1.8 1996/02/29 00:04:57 jtc Exp $ */ /*- @@ -117,11 +117,12 @@ __only_inline int sigfillset(sigset_t *__set) #if __BSD_VISIBLE || __XPG_VISIBLE >= 420 int killpg(pid_t, int); int siginterrupt(int, int); -int sigpause(int); int sigaltstack(const struct sigaltstack *__restrict, struct sigaltstack *__restrict); #if __BSD_VISIBLE int sigblock(int); +/* This is the traditional BSD sigpause() and not the XPG/POSIX sigpause(). */ +int sigpause(int); int sigsetmask(int); int sigvec(int, struct sigvec *, struct sigvec *); int thrkill(pid_t _tid, int _signum, void *_tcb);