#include <signal.h>
int sigaddset(set, signo) sigset_t *set; int signo;
int sigdelset(set, signo) sigset_t *set; int signo;
int sigfillset(set) sigset_t *set;
int sigemptyset(set) sigset_t *set;
int sigismember(set, signo) sigset_t *set int signo;
The sigsetops primitives manipulate sets of signals. They operate on data objects addressable by the application. They do not operate 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.
sigaddset() and sigdelset() respectively add and delete the individual signal specified by the value of signo from the signal set pointed to by set.
sigemptyset() initializes the signal set pointed to by set such that all signals defined in this standard are excluded.
sigfillset() initializes the signal set pointed to by set such that all signals defined in this standard are included.
Applications shall call either sigemptyset() or sigfillset() at least once for each object of type sigset_t prior to any other use of that object. If such an object is not initialized in this way, but is nonetheless supplied as an argument to any of sigaddset(), sigdelset(), sigismember(), sigaction(), sigprocmask(), sigpending(), or sigsuspend() the results are undefined.
sigismember() tests whether the signal specified by the value of signo is a member of the set pointed to by set.
sigismember() returns:
The other functions return:
For each of the following conditions, if the condition is detected, sigaddset(), sigdelset(), and sigismember() set errno to:
sigaction.3v sigpending.2v sigprocmask.2v
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97