OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / sigsetops.3
index a586718..00ec86c 100644 (file)
 .\" 2007-10-26 mdw   added wording that a sigset_t must be initialized
 .\"                  prior to use
 .\"
-.TH SIGSETOPS 3 2013-04-19 "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
@@ -120,14 +120,28 @@ is a member of
 0 if
 .I signum
 is not a member, and \-1 on error.
+
 On error, these functions set
 .I errno
-to indicate the cause.
+to indicate the cause of the error.
 .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
@@ -136,35 +150,36 @@ If the
 .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.
@@ -173,3 +188,12 @@ 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.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.