1SIGSETOPS(3) Linux Programmer's Manual SIGSETOPS(3)
2
3
4
6 sigemptyset, sigfillset, sigaddset, sigdelset, sigismember - POSIX sig‐
7 nal set operations.
8
9
11 #include <signal.h>
12
13 int sigemptyset(sigset_t *set);
14
15 int sigfillset(sigset_t *set);
16
17 int sigaddset(sigset_t *set, int signum);
18
19 int sigdelset(sigset_t *set, int signum);
20
21 int sigismember(const sigset_t *set, int signum);
22
23
25 The sigsetops(3) functions allow the manipulation of POSIX signal sets.
26
27 sigemptyset() initializes the signal set given by set to empty, with
28 all signals excluded from the set.
29
30 sigfillset() initializes set to full, including all signals.
31
32 sigaddset() and sigdelset() add and delete respectively signal signum
33 from set.
34
35 sigismember() tests whether signum is a member of set.
36
38 sigemptyset(), sigfillset(), sigaddset(), and sigdelset() return 0 on
39 success and -1 on error.
40
41 sigismember() returns 1 if signum is a member of set, 0 if signum is
42 not a member, and -1 on error.
43
45 EINVAL sig is not a valid signal.
46
48 POSIX.1-2001.
49
51 If the _GNU_SOURCE feature test macro is defined, then <signal.h>
52 exposes three other functions for manipulating signal sets.
53
54 int sigisemptyset(sigset_t *set);
55 returns 1 if set contains no signals, and 0 otherwise.
56
57 int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right);
58 places the union of the sets left and right in dest.
59
60 int sigandset(sigset_t *dest, sigset_t *left, sigset_t *right);
61 places the intersection of the sets left and right in dest.
62
63 sigorset() and sigandset() return 0 on success, and -1 on failure.
64
65 These functions are non-standard (a few other systems provide similar
66 functions) and their use should be avoided in portable applications.
67
69 sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2)
70
71
72
73Linux 2.6.14 2005-11-17 SIGSETOPS(3)