1 .\" Copyright (c) 1994 Mike Battersby
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Modified by aeb, 960721
24 .\" 2005-11-21, mtk, added descriptions of sigisemptyset(), sigandset(),
27 .TH SIGSETOPS 3 2005-11-17 "Linux 2.6.14" "Linux Programmer's Manual"
29 sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX
30 signal set operations.
32 .B #include <signal.h>
34 .BI "int sigemptyset(sigset_t *" set );
36 .BI "int sigfillset(sigset_t *" set );
38 .BI "int sigaddset(sigset_t *" set ", int " signum );
40 .BI "int sigdelset(sigset_t *" set ", int " signum );
42 .BI "int sigismember(const sigset_t *" set ", int " signum );
46 functions allow the manipulation of POSIX signal sets.
49 initializes the signal set given by
51 to empty, with all signals excluded from the set.
56 to full, including all signals.
61 add and delete respectively signal
77 return 0 on success and \-1 on error.
86 is not a member, and \-1 on error.
91 is not a valid signal.
95 If the _GNU_SOURCE feature test macro is defined, then <signal.h>
96 exposes three other functions for manipulating signal
99 .BI "int sigisemptyset(sigset_t *" set );
102 contains no signals, and 0 otherwise.
104 .BI "int sigorset(sigset_t *" dest ", sigset_t *" left \
105 ", sigset_t *" right );
106 places the union of the sets
113 .BI "int sigandset(sigset_t *" dest ", sigset_t *" left \
114 ", sigset_t *" right );
115 places the intersection of the sets
125 return 0 on success, and \-1 on failure.
127 These functions are non-standard (a few other systems provide similar
128 functions) and their use should be avoided in portable applications.