summaryrefslogtreecommitdiff
path: root/lib/libpthread/man
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>2000-02-10 11:45:36 +0000
committerDavid Leonard <d@cvs.openbsd.org>2000-02-10 11:45:36 +0000
commit2b59d3811f65ae0485d4250da561fb8f4644b5bd (patch)
tree64d3fcc9e51ca997ae5aaf40f3ef9861e80d7de7 /lib/libpthread/man
parent8840080fa50ce98ef770b3275bd033b1765139b8 (diff)
document existence of pthread_setcancelstate and pthread_setcanceltype
Diffstat (limited to 'lib/libpthread/man')
-rw-r--r--lib/libpthread/man/pthread_cancel.319
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/libpthread/man/pthread_cancel.3 b/lib/libpthread/man/pthread_cancel.3
index f43dbe6bcd1..a7b95eb5beb 100644
--- a/lib/libpthread/man/pthread_cancel.3
+++ b/lib/libpthread/man/pthread_cancel.3
@@ -1,14 +1,20 @@
-.\" $OpenBSD: pthread_cancel.3,v 1.5 2000/01/22 13:59:29 aaron Exp $
+.\" $OpenBSD: pthread_cancel.3,v 1.6 2000/02/10 11:45:35 d Exp $
.Dd January 17, 1999
.Dt PTHREAD_CANCEL 3
.Os
.Sh NAME
-.Nm pthread_cancel
+.Nm pthread_cancel ,
+.Nm pthread_setcancelstate ,
+.Nm pthread_setcanceltype
.Nd cancel execution of a thread
.Sh SYNOPSIS
.Fd #include <pthread.h>
.Ft int
.Fn pthread_cancel "pthread_t thread"
+.Ft int
+.Fn pthread_setcancelstate "int state" "int *oldstate"
+.Ft int
+.Fn pthread_setcanceltype "int type" "int *oldtype"
.Sh DESCRIPTION
The
.Fn pthread_cancel
@@ -35,7 +41,7 @@ is made available to any threads joining with the target. The symbolic
constant
.Dv PTHREAD_CANCELED
expands to a constant expression of type
-.Ft "(void *)" ,
+.Ft "(void *)"
whose value matches no pointer to an object in memory nor the value
.Dv NULL .
.Sh RETURN VALUES
@@ -60,7 +66,10 @@ thread ID.
.Xr pthread_setcanceltype 3 ,
.Xr pthread_testcancel 3
.Sh STANDARDS
-.Fn pthread_cancel
-conforms to ISO/IEC 9945-1 ANSI/IEEE
+.Fn pthread_cancel ,
+.Fn pthread_setcancelstate ,
+and
+.Fn pthread_setcanceltype
+conform to ISO/IEC 9945-1 ANSI/IEEE
.Pq Dq Tn POSIX
Std 1003.1 Second Edition 1996-07-12.