#include <signal.h> int sigemptyset(sigset_t *set); int sigfillset(sigset_t *set); int sigaddset(sigset_t *set, int signo); int sigdelset(sigset_t *set, int signo); int sigismember(const sigset_t *set, int signo);
The sigsetops primitives manipulate sets of signals. They operate on data objects addressable by the application, not on any set of signals known to the system, such as the set blocked from delivery to a process or the set pending for a process.
The sigemptyset function initializes the signal set pointed to by the argument set, such that all signals are excluded.
The sigfillset function initializes the signal set pointed to by the argument set, such that all signals are included.
The sigaddset and sigdelset functions respectively add or delete the individual signal specified by the value of the argument signo to or from the signal set pointed to by the argument set.
The sigismember function tests whether the signal specified by the value of the argument signo is a member of the set pointed to by the argument set.