OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man3 / pthread_testcancel.3
index 45c2862..6b24505 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk
 .\"     <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -20,8 +21,9 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
-.TH PTHREAD_TESTCANCEL 3 2008-11-17 "Linux" "Linux Programmer's Manual"
+.TH PTHREAD_TESTCANCEL 3 2014-05-19 "Linux" "Linux Programmer's Manual"
 .SH NAME
 pthread_testcancel \- request delivery of any pending cancellation request
 .SH SYNOPSIS
@@ -31,6 +33,7 @@ pthread_testcancel \- request delivery of any pending cancellation request
 .B void pthread_testcancel(void);
 .sp
 Compile and link with \fI\-pthread\fP.
+.fi
 .SH DESCRIPTION
 Calling
 .BR pthread_testcancel ()
@@ -42,7 +45,7 @@ If cancelability is disabled (using
 .BR pthread_setcancelstate (3)),
 or no cancellation request is pending,
 then a call to
-.BR pthread_cancel ()
+.BR pthread_testcancel ()
 has no effect.
 .SH RETURN VALUE
 This function does not return a value.
@@ -52,6 +55,11 @@ to this function, then the function does not return.
 This function always succeeds.
 .\" SH VERSIONS
 .\" Available since glibc 2.0
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR pthread_testcancel ()
+function is thread-safe.
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH EXAMPLE
@@ -62,3 +70,12 @@ See
 .BR pthread_cleanup_push (3),
 .BR pthread_setcancelstate (3),
 .BR pthreads (7)
+.SH COLOPHON
+This page is part of release 3.68 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/.