SIGSETOPS
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
sigsetops
sigemptyset
sigfillset
sigaddset
sigdelset
sigismember
- manipulate signal masks
SYNOPSIS
Fd #include <signal.h>
Fn sigemptyset sigset_t *set
Fn sigfillset sigset_t *set
Fn sigaddset sigset_t *set int signo
Fn sigdelset sigset_t *set int signo
Fn sigismember sigset_t *set int signo
DESCRIPTION
These functions manipulate signal mask stored in a
Fa sigset_t .
They are provided as macros, but actual functions are available
if their names are undefined (with #undef
name )
The
Fn sigemptyset
function initializes a signal set to be empty.
The
Fn sigfillset
function initializes a signal set to contain all of the known signals.
One of these routines must be used to initialize a signal set
before its use by the other functions.
The
Fn sigaddset
function adds a specified signal
Fa signo
to a signal set.
The
Fn sigdelset
function deletes a specified signal
Fa signo
from a signal set.
The
Fn sigismember
function tests whether a specified signal
Fa signo
is contained in a signal set.
RETURN VALUES
The
Fn sigismember
function returnes 1
if the signal is a member of the set,
a 0 otherwise.
The other functions return 0 upon success.
A -1 return value
indicates an error occurred and the global variable
errno
is set to indicated the reason.
The current implementation does not detect any errors.
ERRORS
These functions could fail if one of the following occurs:
- Bq Er EINVAL
-
Fa signo
has an invalid value.
SEE ALSO
kill(2),
sigaction(2),
sigsetops(2),
sigsuspend(2)
STANDARDS
The
These functions are defined by
St -p1003.1-88 .
HISTORY
These functions are
Ud .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- ERRORS
-
- SEE ALSO
-
- STANDARDS
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 06:42:25 GMT, May 19, 2025