sigsetops(3C)
NAME
sigemptyset(), 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);
DESCRIPTION
sigemptyset() 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 VALUE
Upon 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.
ERRORS
sigaddset(), sigdelset(), and sigismember() fail if the following is true:
[EINVAL] The value of the signo argument is out of range. The reliable detection of this error is not guaranteed.
WARNINGS
The above functions do not detect a bad address passed in for the set argument. A segmentation fault is the most likely result.
AUTHOR
sigfillset(), sigemptyset(), sigaddset(), sigdelset(), and sigismember() were derived from the IEEE Standard POSIX 1003.1-1988 .
SEE ALSO
sigaction(2), sigsuspend(2), sigpending(2), sigprocmask(2), signal(5).
STANDARDS CONFORMANCE
sigaddset(): AES, XPG3, XPG4, FIPS 151-2, POSIX.1
sigdelset(): AES, XPG3, XPG4, FIPS 151-2, POSIX.1
sigemptyset(): AES, XPG3, XPG4, FIPS 151-2, POSIX.1
sigfillset(): AES, XPG3, XPG4, FIPS 151-2, POSIX.1
sigismember(): AES, XPG3, XPG4, FIPS 151-2, POSIX.1
Hewlett-Packard Company — HP-UX Release 9.0: August 1992