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); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): sigemptyset(), sigfillset(), sigaddset(), sigdelset(), sigismember(): _POSIX_C_SOURCE
DESCRIPTION
These 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. Objects of type sigset_t must be initialized by a call to either sigemptyset() or sigfillset() before being passed to the functions sigaddset(), sigdelset() and sigismember() or the additional glibc functions described below (sigisemptyset(), sigandset(), and sigorset()). The results are undefined if this is not done.
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. On error, these functions set errno to indicate the cause of the error.
ERRORS
EINVAL sig is not a valid signal.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). ┌────────────────────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├────────────────────────────────┼───────────────┼─────────┤ │sigemptyset(), sigfillset(), │ Thread safety │ MT-Safe │ │sigaddset(), sigdelset(), │ │ │ │sigismember(), sigisemptyset(), │ │ │ │sigorset(), sigandset() │ │ │ └────────────────────────────────┴───────────────┴─────────┘
CONFORMING TO
POSIX.1-2001, POSIX.1-2008.
NOTES
When creating a filled signal set, the glibc sigfillset() function does not include the two real-time signals used internally by the NPTL threading implementation. See nptl(7) for details. Glibc extensions If the _GNU_SOURCE feature test macro is defined, then <signal.h> exposes three other functions for manipulating signal sets: int sigisemptyset(const sigset_t *set); int sigorset(sigset_t *dest, const sigset_t *left, const sigset_t *right); int sigandset(sigset_t *dest, const sigset_t *left, const sigset_t *right); sigisemptyset() returns 1 if set contains no signals, and 0 otherwise. sigorset() places the union of the sets left and right in dest. sigandset() places the intersection of the sets left and right in dest. Both functions return 0 on success, and -1 on failure. These functions are nonstandard (a few other systems provide similar functions) and their use should be avoided in portable applications.
SEE ALSO
sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2)
COLOPHON
This page is part of release 4.09 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
More Linux Commands
manpages/Tcl_MakeFileChannel.3.html
Tcl_MakeFileChannel(3) - buffered I/O facilities using chann
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f
manpages/Cyrus::IMAP.3pm.html
Cyrus::IMAP(3pm) - Interface to Cyrus imclient library......
The Cyrus::IMAP module provides an interface to the Cyrus imclient library. These are primarily useful for implementing cyradm operations within a Perl script;
manpages/XtCallCallbacks.3.html
XtCallCallbacks(3) - process callbacks - Linux manual page
The XtCallCallbacks function calls each procedure that is registered in the specified widgets callback list. If callbacks is not NULL, XtCallCallbackList calls
manpages/sqrt.3.html
sqrt(3) - square root function (Library - Linux man page)...
The sqrt() function returns the nonnegative square root of x. RETURN VALUE On success, these functions return the square root of x. If x is a NaN, a NaN is retu
manpages/gluQuadricCallback.3gl.html
gluQuadricCallback(3gl) - define a callback for a quadrics o
gluQuadricCallback is used to define a new callback to be used by a quadrics object. If the specified callback is already defined, then it is replaced. If CallB
manpages/XkbAllocDeviceInfo.3.html
XkbAllocDeviceInfo(3) - Obtain an XkbDeviceInfoRec structure
XkbAllocDeviceInfo allocates space for an XkbDeviceInfoRec structure and initializes that structures device_spec field with the device ID specified by device_sp
manpages/unix_update.8.html
unix_update(8) - Helper binary that updates the password of
unix_update is a helper program for the pam_unix module that updates the password of a given user. It is not intended to be run directly from the command line a
manpages/perlsource.1.html
perlsource(1) - A guide to the Perl source tree (Man Page)
This document describes the layout of the Perl source tree. If youre hacking on the Perl core, this will help you find what youre looking for. FINDING YOUR WAY
manpages/XFillRectangles.3.html
XFillRectangles(3) - fill rectangles, polygons, or arcs.....
The XFillRectangle and XFillRectangles functions fill the specified rectangle or rectangles as if a four-point FillPolygon protocol request were specified for e
manpages/XCheckIfEvent.3.html
XCheckIfEvent(3) - check the event queue with a predicate pr
The XIfEvent function completes only when the specified predicate procedure returns True for an event, which indicates an event in the queue matches. XIfEvent f
manpages/alphasort.3.html
alphasort(3) - scan a directory for matching entries........
alphasort.3 - The scandir() function scans the directory dirp, calling filter() on each directory entry. Entries for which filter() returns nonzero are stored i
manpages/podofocolor.1.html
podofocolor(1) modify colors in a PDF file. - Linux man page
podofocolor.1 - podofocolor is one of the command line tools from the PoDoFo library that provide several useful operations to work with colors in PDF files. It
