Hi,
The 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.
As the semantics are different, we should not expose our sigpause(3)
to POSIX sources.
ok?
bluhm
Index: include/signal.h
===================================================================
RCS file: /data/mirror/openbsd/cvs/src/include/signal.h,v
retrieving revision 1.25
diff -u -p -r1.25 signal.h
--- include/signal.h 9 May 2016 23:55:52 -0000 1.25
+++ include/signal.h 30 Apr 2018 18:32:11 -0000
@@ -117,11 +117,11 @@ __only_inline int sigfillset(sigset_t *_
#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);
+int sigpause(int);
int sigsetmask(int);
int sigvec(int, struct sigvec *, struct sigvec *);
int thrkill(pid_t _tid, int _signum, void *_tcb);