Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sigismember(3c) [hpux man page]

sigsetops(3C)															     sigsetops(3C)

NAME
sigemptyset(), sigfillset(), sigaddset(), sigdelset(), sigismember() - initialize, manipulate, and test signal sets SYNOPSIS
DESCRIPTION
initializes the signal set pointed to by set, to exclude all signals supported by HP-UX. initializes the signal set pointed to by set, to include all signals supported by HP-UX. Applications must call either or at least once for each object of type before using that object for anything else, including cases where the object is returned from a function (for example, the oset argument to -- see sigprocmask(2)). adds the signal specified by signo to the signal set pointed to by set. deletes the signal specified by signo from the signal set pointed to by set. tests whether the signal specified by signo is a member of the signal set pointed to by set. RETURN VALUE
Upon successful completion, 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 is set to indicate the error. ERRORS
and fail if the following is true: [EINVAL] The value of the signo argument is out of range. 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
and were derived from the SEE ALSO
sigaction(2), sigsuspend(2), sigpending(2), sigprocmask(2), signal(5). STANDARDS CONFORMANCE
sigsetops(3C)

Check Out this Related Man Page

sigsetops(3C)						   Standard C Library Functions 					     sigsetops(3C)

NAME
sigsetops, sigemptyset, sigfillset, sigaddset, sigdelset, sigismember - manipulate sets of signals 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(sigset_t *set, int signo); DESCRIPTION
These functions manipulate sigset_t data types, representing the set of signals supported by the implementation. The sigemptyset() function initializes the set pointed to by set to exclude all signals defined by the system. The sigfillset() function initializes the set pointed to by set to include all signals defined by the system. The sigaddset() function adds the individual signal specified by the value of signo to the set pointed to by set. The sigdelset() function deletes the individual signal specified by the value of signo from the set pointed to by set. The sigismember() function 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. RETURN VALUES
Upon successful completion, the sigismember() function returns 1 if the specified signal is a member of the specified set, or 0 if it is not. Upon successful completion, the other functions return 0. Otherwise -1 is returned and errno is set to indicate the error. ERRORS
The sigaddset(), sigdelset(), and sigismember() functions will fail if: EINVAL The value of the signo argument is not a valid signal number. The sigfillset() function will fail if: EFAULT The set argument specifies an invalid address. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Async-Signal-Safe | +-----------------------------+-----------------------------+ SEE ALSO
sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2), signal.h(3HEAD), attributes(5), standards(5) SunOS 5.11 19 Dec 2003 sigsetops(3C)
Man Page