1SIGSETOPS(3) Library Functions Manual SIGSETOPS(3)
2
3
4
6 sigemptyset, sigfillset, sigaddset, sigdelset, sigismember - manipulate
7 signal sets
8
10 #include <signal.h>
11
12 sigemptyset(set)
13 sigset_t *set;
14
15 sigfillset(set)
16 sigset_t *set;
17
18 sigaddset(set, signo)
19 sigset_t *set;
20 int signo;
21
22 sigdelset(set, signo)
23 sigset_t *set;
24 int signo;
25
26 sigismember(set, signo)
27 sigset_t *set;
28 int signo;
29
31 These functions manipulate signal sets stored in a sigset_t . Either
32 sigemptyset or sigfillset must be called for every object of type
33 sigset_t before any other use of the object.
34
35 The sigemptyset function initializes a signal set to be empty.
36
37 The sigfillset function initializes a signal set to contain all sig‐
38 nals.
39
40 The sigaddset function adds the specified signal signo to the signal
41 set.
42
43 The sigdelset function deletes the specified signal signo from the sig‐
44 nal set.
45
46 The sigismember function returns whether a specified signal signo is
47 contained in the signal set.
48
49 These functions are provided as macros in the include file <signal.h>.
50 Actual functions are available if their names are undefined (with
51 #undef name).
52
54 The sigismember function returns 1 if the signal is a member of the
55 set, 0 otherwise. The other functions return 0.
56
58 Currently no errors are detected.
59
61 kill(2), sigaction(2), sigsuspend(2)
62
64 These functions are defined by IEEE Std1003.1-1988 (``POSIX'').
65
66
67
684.4 Berkeley Distribution September 3, 1997 SIGSETOPS(3)