Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sigset(3) [minix man page]

SIGSET(3)						     Library Functions Manual							 SIGSET(3)

NAME
sigset, sigaddset, sigdelset, sigemptyset, sigfillset, sigismember - manipulate signal sets SYNOPSIS
#include <signal.h> int sigaddset(sigset_t *set, int sig) int sigdelset(sigset_t *set, int sig) int sigemptyset(sigset_t *set) int sigfillset(sigset_t *set) int sigismember(const sigset_t *set, int sig) DESCRIPTION
The system calls that handle signals, such as sigaction(2) and sigprocmask(2) use sets of signals to keep a process from being interrupted by those signals while executing a signal handler or a critical code segment. These signal sets are manipulated by the following func- tions: int sigaddset(sigset_t *set, int sig) Add signal sig to the signal set referenced by set. int sigdelset(sigset_t *set, int sig) Remove signal sig from the signal set referenced by set. int sigemptyset(sigset_t *set) Initialize the signal set referenced by set to an empty set. int sigfillset(sigset_t *set) Initialize the signal set referenced by set to an full set, i.e. all signals are in the set. int sigismember(const sigset_t *set, int sig) Return 1 if the signal sig is present in the set referenced by set, 0 otherwise. SEE ALSO
sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2). DIAGNOSTICS
All functions except sigismember return 0 on success. Sigismember returns 0 or 1 on success. They return -1 with error code EINVAL for an invalid signal number. (They do not use EFAULT for a bad set address, but will simply cause a segmentation violation.) AUTHOR
Kees J. Bot (kjb@cs.vu.nl) SIGSET(3)

Check Out this Related Man Page

SIGSETOPS(3)						     Linux Programmer's Manual						      SIGSETOPS(3)

NAME
sigemptyset, sigfillset, sigaddset, sigdelset, sigismember - POSIX signal set operations. SYNOPSIS
#include <signal.h> int sigemptyset(sigset_t *set); int sigfillset(sigset_t *set); int sigaddset(sigset_t *set, int signum); int sigdelset(sigset_t *set, int signum); int sigismember(const sigset_t *set, int signum); DESCRIPTION
The sigsetops(3) functions allow the manipulation of POSIX signal sets. sigemptyset initializes the signal set given by set to empty, with all signals excluded from the set. sigfillset initializes set to full, including all signals. sigaddset and sigdelset add and delete respectively signal signum from set. sigismember tests whether signum is a member of set. RETURN VALUE
sigemptyset, sigfillset, sigaddset and sigdelset return 0 on success and -1 on error. sigismember returns 1 if signum is a member of set, 0 if signum is not a member, and -1 on error. ERRORS
EINVAL sig is not a valid signal. CONFORMING TO
POSIX SEE ALSO
sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2) Linux 1.0 1994-09-24 SIGSETOPS(3)
Man Page