OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / sigvec.3
index 918a21b..dc6b186 100644 (file)
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH SIGVEC 3 2012-09-06 "Linux" "Linux Programmer's Manual"
+.TH SIGVEC 3 2014-12-31 "Linux" "Linux Programmer's Manual"
 .SH NAME
 sigvec, sigblock, sigsetmask, siggetmask, sigmask \- BSD signal API
 .SH SYNOPSIS
 .B #include <signal.h>
 .sp
-.BI "int sigvec(int " sig ", struct sigvec *" vec ", struct sigvec *" ovec );
+.BI "int sigvec(int " sig ", const struct sigvec *" vec ", struct sigvec *" ovec );
 .sp
 .BI "int sigmask(int " signum );
 .sp
@@ -76,7 +76,7 @@ To obtain the current disposition of
 .I sig
 without changing it, specify NULL for
 .IR vec ,
-and a non-NULL pointer for
+and a non-null pointer for
 .IR ovec .
 
 The dispositions for
@@ -155,7 +155,7 @@ function; the POSIX replacement is
 .PP
 The
 .BR sigmask ()
-function constructs and returns a "signal mask" for
+macro constructs and returns a "signal mask" for
 .IR signum .
 For example, we can initialize the
 .I vec.sv_mask
@@ -164,7 +164,7 @@ field given to
 using code such as the following:
 .nf
 
-    vec.sv_mask = sigmask(SIGQUIT) | sigpause(SIGABRT);
+    vec.sv_mask = sigmask(SIGQUIT) | sigmask(SIGABRT);
                 /* Block SIGQUIT and SIGABRT during
                    handler execution */
 .fi
@@ -211,13 +211,33 @@ functions return the previous signal mask.
 
 The
 .BR sigmask ()
-function returns the signal mask for
+macro returns the signal mask for
 .IR signum .
 .SH ERRORS
 See the ERRORS under
 .BR sigaction (2)
 and
 .BR sigprocmask (2).
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR sigvec (),
+.BR sigblock (),
+.BR sigsetmask (),
+and
+.BR siggetmask ()
+functions are thread-safe.
+.LP
+The
+.BR sigmask ()
+macro is thread-safe.
+.SH VERSIONS
+Starting with version 2.21, the GNU C library no longer exports the
+.BR sigvec ()
+function as part of the ABI.
+(To ensure backward compatibility,
+the glibc symbol versioning scheme continues to export the interface
+to binaries linked against older versions of the library.)
 .SH CONFORMING TO
 All of these functions were in
 4.3BSD, except
@@ -259,3 +279,12 @@ for details.
 .BR sigpause (3),
 .BR sigset (3),
 .BR signal (7)
+.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/.