#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);
sigfillset- initialize signal set to all signals
sigaddset- add to signal set
sigdelset- delete from signal set
sigismember- query signal set
These functions manipulate sigset_t data types, representing the set of signals supported by the implementation.
sigemptyset initializes the set pointed to by set to exclude all signals defined by the system.
sigfillset initializes the set pointed to by set to include all signals defined by the system.
sigaddset adds the individual signal specified by the value of signo to the set pointed to by set.
sigdelset deletes the individual signal specified by the value of signo from the set pointed to by set.
sigismember checks whether the signal specified by the value of signo is a member of the set pointed to by set.
Any object of type sigset_t must be initialized by applying either sigemptyset or sigfillset before applying any other operation.
In the following conditions, sigaddset, sigdelset and sigismember will fail and set errno to: