United States-English |
|
|
HP-UX Reference > Ssigsetops(3C)HP-UX 11i Version 3: February 2007 |
|
NAMEsigemptyset(), sigfillset(), sigaddset(), sigdelset(), sigismember() — initialize, manipulate, and test signal sets SYNOPSIS#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); DESCRIPTIONsigemptyset() initializes the signal set pointed to by set, to exclude all signals supported by HP-UX. sigfillset() initializes the signal set pointed to by set, to include all signals supported by HP-UX. Applications must call either sigemptyset() or sigfillset() at least once for each object of type sigset_t before using that object for anything else, including cases where the object is returned from a function (for example, the oset argument to sigprocmask() — see sigprocmask(2)). sigaddset() adds the signal specified by signo to the signal set pointed to by set. sigdelset() deletes the signal specified by signo from the signal set pointed to by set. sigismember() tests whether the signal specified by signo is a member of the signal set pointed to by set. RETURN VALUEUpon successful completion, sigismember() returns a value of 1 if the specified signal is a member of the specified set, or a value of 0 if it is not. The other functions return a value of 0 upon successful completion. For all of the above functions, if an error is detected, a value of -1 is returned and errno is set to indicate the error. ERRORSsigaddset(), sigdelset(), and sigismember() fail if the following is true:
WARNINGSThe above functions do not detect a bad address passed in for the set argument. A segmentation fault is the most likely result. AUTHORsigfillset(), sigemptyset(), sigaddset(), sigdelset(), and sigismember() were derived from the IEEE Standard POSIX 1003.1-1988. STANDARDS CONFORMANCEsigaddset(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1 sigdelset(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1 sigemptyset(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1 sigfillset(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1 sigismember(): AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1 |
Printable version | ||
|