aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2019-12-12 01:41:55 +0000
committerKyle Evans <kevans@FreeBSD.org>2019-12-12 01:41:55 +0000
commit7dc859a5f3cf2ccee2b5faf855648c3e1da4e215 (patch)
tree538908982c9fe54ac78a9e672eb38bd4406701e2 /include
parentbf471326054965ef4a8210b2719d30eaf844c5d1 (diff)
downloadsrc-7dc859a5f3cf2ccee2b5faf855648c3e1da4e215.tar.gz
src-7dc859a5f3cf2ccee2b5faf855648c3e1da4e215.zip
Add sigsetop extensions commonly found in musl libc and glibc
These functions (sigandset, sigisemptyset, sigorset) are commonly available in at least musl libc and glibc; sigorset, at least, has proven quite useful in qemu-bsd-user work for tracking the current process signal mask in a more self-documenting/aesthetically pleasing manner. Reviewed by: bapt, jilles, pfg MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D22187
Notes
Notes: svn path=/head/; revision=355641
Diffstat (limited to 'include')
-rw-r--r--include/signal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/signal.h b/include/signal.h
index 56d1b82e87a9..3b20875290d6 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -122,7 +122,10 @@ void psignal(int, const char *);
#endif
#if __BSD_VISIBLE
+int sigandset(sigset_t *dest, const sigset_t *left, const sigset_t *right);
int sigblock(int);
+int sigisemptyset(const sigset_t *set);
+int sigorset(sigset_t *dest, const sigset_t *left, const sigset_t *right);
int sigreturn(const struct __ucontext *);
int sigsetmask(int);
int sigstack(const struct sigstack *, struct sigstack *);