summaryrefslogtreecommitdiff
path: root/lib/libc_r/man/pthread_key_delete.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/man/pthread_key_delete.3')
-rw-r--r--lib/libc_r/man/pthread_key_delete.316
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/libc_r/man/pthread_key_delete.3 b/lib/libc_r/man/pthread_key_delete.3
index 02c1ee952a1..121c2d87253 100644
--- a/lib/libc_r/man/pthread_key_delete.3
+++ b/lib/libc_r/man/pthread_key_delete.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_key_delete.3,v 1.7 2002/04/30 16:31:42 mpech Exp $
+.\" $OpenBSD: pthread_key_delete.3,v 1.8 2002/05/01 08:03:30 mpech Exp $
.\"
.\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>.
.\" All rights reserved.
@@ -51,12 +51,14 @@ The thread-specific data values associated with
.Fa key
need not be NULL at the time that
.Fn pthread_key_delete
-is called. It is the responsibility of the application to free any
+is called.
+It is the responsibility of the application to free any
application storage or perform any cleanup actions for data structures
related to the deleted key or associated thread-specific data in any threads;
this cleanup can be done either before or after
.Fn pthread_key_delete
-is called. Any attempt to use
+is called.
+Any attempt to use
.Fa key
following the call to
.Fn pthread_key_delete
@@ -64,8 +66,8 @@ results in undefined behavior.
.Pp
The
.Fn pthread_key_delete
-function is callable from within destructor functions. Destructor functions
-are not invoked by
+function is callable from within destructor functions.
+Destructor functions are not invoked by
.Fn pthread_key_delete .
Any destructor function that may have been associated with
.Fa key
@@ -73,8 +75,8 @@ will no longer be called upon thread exit.
.Sh RETURN VALUES
If successful, the
.Fn pthread_key_delete
-function will return zero. Otherwise an error number will be returned to
-indicate the error.
+function will return zero.
+Otherwise an error number will be returned to indicate the error.
.Sh ERRORS
.Fn pthread_key_delete
will fail if: