1SIGISMEMBER(3P) POSIX Programmer's Manual SIGISMEMBER(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
11
13 sigismember — test for a signal in a signal set
14
16 #include <signal.h>
17
18 int sigismember(const sigset_t *set, int signo);
19
21 The sigismember() function shall test whether the signal specified by
22 signo is a member of the set pointed to by set.
23
24 Applications should call either sigemptyset() or sigfillset() at least
25 once for each object of type sigset_t prior to any other use of that
26 object. If such an object is not initialized in this way, but is none‐
27 theless supplied as an argument to any of pthread_sigmask(), sigac‐
28 tion(), sigaddset(), sigdelset(), sigismember(), sigpending(), sigproc‐
29 mask(), sigsuspend(), sigtimedwait(), sigwait(), or sigwaitinfo(), the
30 results are undefined.
31
33 Upon successful completion, sigismember() shall return 1 if the speci‐
34 fied signal is a member of the specified set, or 0 if it is not. Other‐
35 wise, it shall return −1 and set errno to indicate the error.
36
38 The sigismember() function may fail if:
39
40 EINVAL The signo argument is not a valid signal number, or is an unsup‐
41 ported signal number.
42
43 The following sections are informative.
44
46 None.
47
49 None.
50
52 None.
53
55 None.
56
58 Section 2.4, Signal Concepts, pthread_sigmask(), sigaction(),
59 sigaddset(), sigdelset(), sigfillset(), sigemptyset(), sigpending(),
60 sigsuspend()
61
62 The Base Definitions volume of POSIX.1‐2008, <signal.h>
63
65 Portions of this text are reprinted and reproduced in electronic form
66 from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
67 -- Portable Operating System Interface (POSIX), The Open Group Base
68 Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
69 cal and Electronics Engineers, Inc and The Open Group. (This is
70 POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
71 event of any discrepancy between this version and the original IEEE and
72 The Open Group Standard, the original IEEE and The Open Group Standard
73 is the referee document. The original Standard can be obtained online
74 at http://www.unix.org/online.html .
75
76 Any typographical or formatting errors that appear in this page are
77 most likely to have been introduced during the conversion of the source
78 files to man page format. To report such errors, see https://www.ker‐
79 nel.org/doc/man-pages/reporting_bugs.html .
80
81
82
83IEEE/The Open Group 2013 SIGISMEMBER(3P)