1SIGISMEMBER(P) POSIX Programmer's Manual SIGISMEMBER(P)
2
3
4
6 sigismember - test for a signal in a signal set
7
9 #include <signal.h>
10
11 int sigismember(const sigset_t *set, int signo);
12
13
15 The sigismember() function shall test whether the signal specified by
16 signo is a member of the set pointed to by set.
17
18 Applications should call either sigemptyset() or sigfillset() at least
19 once for each object of type sigset_t prior to any other use of that
20 object. If such an object is not initialized in this way, but is none‐
21 theless supplied as an argument to any of pthread_sigmask(), sigac‐
22 tion(), sigaddset(), sigdelset(), sigismember(), sigpending(), sigproc‐
23 mask(), sigsuspend(), sigtimedwait(), sigwait(), or sigwaitinfo(), the
24 results are undefined.
25
27 Upon successful completion, sigismember() shall return 1 if the speci‐
28 fied signal is a member of the specified set, or 0 if it is not. Other‐
29 wise, it shall return -1 and set errno to indicate the error.
30
32 The sigismember() function may fail if:
33
34 EINVAL The signo argument is not a valid signal number, or is an unsup‐
35 ported signal number.
36
37
38 The following sections are informative.
39
41 None.
42
44 None.
45
47 None.
48
50 None.
51
53 Signal Concepts , sigaction() , sigaddset() , sigdelset() , sig‐
54 fillset() , sigemptyset() , sigpending() , sigprocmask() , sigsuspend()
55 , the Base Definitions volume of IEEE Std 1003.1-2001, <signal.h>
56
58 Portions of this text are reprinted and reproduced in electronic form
59 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
60 -- Portable Operating System Interface (POSIX), The Open Group Base
61 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
62 Electrical and Electronics Engineers, Inc and The Open Group. In the
63 event of any discrepancy between this version and the original IEEE and
64 The Open Group Standard, the original IEEE and The Open Group Standard
65 is the referee document. The original Standard can be obtained online
66 at http://www.opengroup.org/unix/online.html .
67
68
69
70IEEE/The Open Group 2003 SIGISMEMBER(P)