]> git.saurik.com Git - apple/libc.git/blobdiff - pthreads/pthread_getspecific.3
Libc-498.tar.gz
[apple/libc.git] / pthreads / pthread_getspecific.3
index d53ba46918db6bb0a5556dbc91a1c8497a69cc85..642aed82ca89e359f00e4ff74547592c92f1b8ed 100644 (file)
 .Sh SYNOPSIS
 .Fd #include <pthread.h>
 .Ft void *
-.Fn pthread_getspecific "pthread_key_t key"
+.Fo pthread_getspecific
+.Fa "pthread_key_t key"
+.Fc
 .Sh DESCRIPTION
 The
 .Fn pthread_getspecific
-function returns the value currently bound to the specified
-.Fa key
+function returns the value that is currently bound to the specified
+.Fa key ,
 on behalf of the calling thread.
 .Pp
 The effect of calling
 .Fn pthread_getspecific
 with a
 .Fa key
-value not obtained from
-.Fn pthread_key_create
-or after
+value that was not obtained from
+.Fn pthread_key_create ,
+or after a
 .Fa key
 has been deleted with
-.Fn pthread_key_delete
+.Fn pthread_key_delete ,
 is undefined.
 .Pp
 .Fn pthread_getspecific
@@ -68,7 +70,7 @@ function will return the thread-specific data value associated with the given
 .Fa key .
 If no thread-specific data value is associated with
 .Fa key ,
-then the value NULL is returned.
+the value NULL is returned.
 .Sh ERRORS
 None.
 .Sh SEE ALSO