summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc_r/man/pthread_testcancel.312
-rw-r--r--lib/libpthread/man/pthread_testcancel.312
-rw-r--r--share/man/man3/pthread_testcancel.312
3 files changed, 30 insertions, 6 deletions
diff --git a/lib/libc_r/man/pthread_testcancel.3 b/lib/libc_r/man/pthread_testcancel.3
index 95672fa..6467ac6 100644
--- a/lib/libc_r/man/pthread_testcancel.3
+++ b/lib/libc_r/man/pthread_testcancel.3
@@ -23,7 +23,11 @@ The
function atomically both sets the calling thread's cancelability state
to the indicated
.Fa state
-and returns the previous cancelability state at the location referenced by
+and, if
+.Fa oldstate
+is not
+.Dv NULL ,
+returns the previous cancelability state at the location referenced by
.Fa oldstate .
Legal values for
.Fa state
@@ -37,7 +41,11 @@ The
function atomically both sets the calling thread's cancelability type
to the indicated
.Fa type
-and returns the previous cancelability type at the location referenced by
+and, if
+.Fa oldtype
+is not
+.Dv NULL ,
+returns the previous cancelability type at the location referenced by
.Fa oldtype .
Legal values for
.Fa type
diff --git a/lib/libpthread/man/pthread_testcancel.3 b/lib/libpthread/man/pthread_testcancel.3
index 95672fa..6467ac6 100644
--- a/lib/libpthread/man/pthread_testcancel.3
+++ b/lib/libpthread/man/pthread_testcancel.3
@@ -23,7 +23,11 @@ The
function atomically both sets the calling thread's cancelability state
to the indicated
.Fa state
-and returns the previous cancelability state at the location referenced by
+and, if
+.Fa oldstate
+is not
+.Dv NULL ,
+returns the previous cancelability state at the location referenced by
.Fa oldstate .
Legal values for
.Fa state
@@ -37,7 +41,11 @@ The
function atomically both sets the calling thread's cancelability type
to the indicated
.Fa type
-and returns the previous cancelability type at the location referenced by
+and, if
+.Fa oldtype
+is not
+.Dv NULL ,
+returns the previous cancelability type at the location referenced by
.Fa oldtype .
Legal values for
.Fa type
diff --git a/share/man/man3/pthread_testcancel.3 b/share/man/man3/pthread_testcancel.3
index 95672fa..6467ac6 100644
--- a/share/man/man3/pthread_testcancel.3
+++ b/share/man/man3/pthread_testcancel.3
@@ -23,7 +23,11 @@ The
function atomically both sets the calling thread's cancelability state
to the indicated
.Fa state
-and returns the previous cancelability state at the location referenced by
+and, if
+.Fa oldstate
+is not
+.Dv NULL ,
+returns the previous cancelability state at the location referenced by
.Fa oldstate .
Legal values for
.Fa state
@@ -37,7 +41,11 @@ The
function atomically both sets the calling thread's cancelability type
to the indicated
.Fa type
-and returns the previous cancelability type at the location referenced by
+and, if
+.Fa oldtype
+is not
+.Dv NULL ,
+returns the previous cancelability type at the location referenced by
.Fa oldtype .
Legal values for
.Fa type
OpenPOWER on IntegriCloud