SIGSETOPS
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
sigemptyset
sigfillset
sigaddset
sigdelset
sigismember
- manipulate signal sets
SYNOPSIS
Fd #include <signal.h>
Ft int
Fn sigemptyset sigset_t *set
Ft int
Fn sigfillset sigset_t *set
Ft int
Fn sigaddset sigset_t *set int signo
Ft int
Fn sigdelset sigset_t *set int signo
Ft int
Fn sigismember sigset_t *set int signo
DESCRIPTION
These functions manipulate signal sets stored in a
Fa sigset_t .
Either
Fn sigemptyset
or
Fn sigfillset
must be called for every object of type
Fa sigset_t
before any other use of the object.
Fn sigemptyset
and
Fn sigfillset
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 signals.
The
Fn sigaddset
function adds the specified signal
Fa signo
to the signal set.
The
Fn sigdelset
function deletes the specified signal
Fa signo
from the signal set.
The
Fn sigismember
function returns whether a specified signal
Fa signo
is contained in the signal set.
These functions
are provided as macros in the include file <signal.h>.
Actual functions are available
if their names are undefined (with #undef
name )
RETURN VALUES
The
Fn sigismember
function returns 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.
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),
sigsuspend(2)
STANDARDS
These functions are defined by
St -p1003.1-90 .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- ERRORS
-
- SEE ALSO
-
- STANDARDS
-
This document was created by
man2html,
using the manual pages.
Time: 15:52:52 GMT, January 15, 2023