Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (n - p) pthread_key_create(2)
RETURN VALUES
If an error condition occurs, this function returns an integer value indicating the type of error.
Possible return values are:
0 Successful completion.
[EAGAIN] The system lacked the necessary resources to create another thread-specific data
key, or the limit on the total number of keys for a process
(PTHREAD_KEYS_MAX) has been exceeded.
[ENOMEM] Insufficient memory exists to create the key.
RELATED INFORMATION
Functions: pthread_getspecific(2), pthread_key_delete(2)
, pthread_once(2),
pthread_setspecific(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specification. Interfaces documented on this
reference page conform to the following industry standards:
• IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header file spthread.h is an HP exception to the POSIX standard.
527186-003 Hewlett-Packard Company 5−71