.\" 2007-10-26 mdw added wording that a sigset_t must be initialized
.\" prior to use
.\"
-.TH SIGSETOPS 3 2008-09-01 "Linux" "Linux Programmer's Manual"
+.TH SIGSETOPS 3 2014-04-14 "Linux" "Linux Programmer's Manual"
.SH NAME
sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX
-signal set operations.
+signal set operations
.SH SYNOPSIS
.B #include <signal.h>
.sp
0 if
.I signum
is not a member, and \-1 on error.
+On error, these functions set
+.I errno
+to indicate the cause.
.SH ERRORS
.TP
.B EINVAL
.I sig
is not a valid signal.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR sigemptyset (),
+.BR sigfillset (),
+.BR sigaddset (),
+.BR sigdelset (),
+.BR sigismember (),
+.BR sigisemptyset (),
+.BR sigorset (),
+and
+.BR sigandset ()
+functions are thread-safe.
.SH CONFORMING TO
POSIX.1-2001.
.SH NOTES
.B _GNU_SOURCE
feature test macro is defined, then \fI<signal.h>\fP
exposes three other functions for manipulating signal
-sets.
-.TP
-.BI "int sigisemptyset(sigset_t *" set );
+sets:
+
+.nf
+.BI "int sigisemptyset(const sigset_t *" set );
+.BI "int sigorset(sigset_t *" dest ", const sigset_t *" left ,
+.BI " const sigset_t *" right );
+.BI "int sigandset(sigset_t *" dest ", const sigset_t *" left ,
+.BI " const sigset_t *" right );
+.fi
+
+.BR sigisemptyset ()
returns 1 if
.I set
contains no signals, and 0 otherwise.
-.TP
-.BI "int sigorset(sigset_t *" dest ", sigset_t *" left \
-", sigset_t *" right );
+
+.BR sigorset ()
places the union of the sets
.I left
and
.I right
in
.IR dest .
-.TP
-.BI "int sigandset(sigset_t *" dest ", sigset_t *" left \
-", sigset_t *" right );
+.BR sigandset ()
places the intersection of the sets
.I left
and
.I right
in
.IR dest .
-.PP
-.BR sigorset ()
-and
-.BR sigandset ()
-return 0 on success, and \-1 on failure.
+Both functions return 0 on success, and \-1 on failure.
.PP
These functions are nonstandard (a few other systems provide similar
functions) and their use should be avoided in portable applications.
.BR sigpending (2),
.BR sigprocmask (2),
.BR sigsuspend (2)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.