get thread-specific data
cc [options] -Kthread file
int thr_getspecific(thread_key_t key, void **value);
thr_getspecific obtains the value
currently bound to the specified key on behalf of the calling thread.
key whose value is to be returned
pointer to a location in which thr_getspecific will
store the value associated by the calling thread with the
key is a key obtained with a previous
The effect of calling thr_getspecific with a key
value not obtained with thr_keycreate
or after key has been deleted with thr_keydelete
If a value is bound to the specified key by the calling thread,
that value is placed in the location pointed to by value.
If no value is bound to the specified key for the calling
thread, the location pointed to by value is set to NULL.
thr_getspecific is not guaranteed to detect an invalid key.
If thr_getspecific returns 0 and sets the location pointed
to by value to NULL, either no value is currently
bound to key, the value bound to key is NULL,
or key is invalid.
In this case, the caller can determine whether key is invalid
to get the applicable error number.
thr_getspecific returns zero for success and an error number
for failure as described below.
If any of the following conditions is detected, thr_getspecific
returns the corresponding value and the contents of the location
pointed to by value are unchanged:
key is not a valid key
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005