sigemptyset, sigfillset, sigaddset, sigdelset, sigismember - POSIX signal set operations
int sigemptyset(sigset_t *
int sigfillset(sigset_t *
int sigaddset(sigset_t *
int sigdelset(sigset_t *
int sigismember(const sigset_t *
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
These functions allow the manipulation of POSIX signal sets.
sigemptyset() initializes the signal set given by
set to empty, with all signals excluded from the set.
set to full, including all signals.
sigismember() tests whether
signum is a member of
Objects of type
sigset_t must be initialized by a call to either sigemptyset() or sigfillset() before being passed to the functions sigaddset(), sigdelset() and sigismember() or the additional glibc functions described below (sigisemptyset(), sigandset(), and sigorset()). The results are undefined if this is not done.
signum is not a valid signal.
When creating a filled signal set, the glibc sigfillset() function does not include the two real-time signals used internally by the NPTL threading implementation. See nptl(7) for details. If the _GNU_SOURCE feature test macro is defined, then
<signal.h> exposes three other functions for manipulating signal sets:
int sigisemptyset(const sigset_t *set); int sigorset(sigset_t *dest, const sigset_t *left, const sigset_t *right); int sigandset(sigset_t *dest, const sigset_t *left, const sigset_t *right);
sigisemptyset() returns 1 if
set contains no signals, and 0 otherwise.
These functions are nonstandard (a few other systems provide similar functions) and their use should be avoided in portable applications.
This page is part of release 4.15 of the Linux
man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.