Open System Services Porting Guide (G06.29+, H06.06+, J06.03+)

Table 21 Thread Functions With Changes to Return Values Among Other Changes (continued)
Return Values in Standard POSIX ThreadsFunction
ENOTSUP An attempt was made to set the attribute to an
unsupported value.
pthread_attr_setstacksize() 0 = successful
EINVAL The value of stacksize is less than
PTHREAD_STACK_MIN or exceeds a system-imposed limit.
Nonepthread_cleanup_pop()
Nonepthread_cleanup_push()
pthread_condattr_destroy() 0 = successful
EINVAL The value specified by attr is invalid.
pthread_condattr_ init() 0 = successful
ENOMEM Insufficient memory exists to initialize the condition
variable attributes object.
pthread_cond_init() 0 = successful
EINVAL The value specified by attr is invalid.
ENOMEM Insufficient memory exists to initialize the condition
variable.
pthread_cond_signal_int_np() 0 = successful
-1 = error (Check errno for last error, such as EINVAL.)
pthread_create() 0 = successful
EAGAIN The system lacked the necessary resources to
create another thread, or the system-imposed limit on the
total number of threads in a process
(PTHREAD_THREADS_MAX) would be exceeded.
EINVAL The value specified by attr is invalid.
pthread_delay_unsigned_np() 0 = successful
-1 = error (Check errno for last error, such as EINVAL.)
pthread_detach() 0 = successful
EINVAL The implementation has detected that the value
specified by thread does not refer to a thread that can
be joined.
ESRCH No thread could be found corresponding to that
specified by the given thread ID.
0 = the two threads t1 and t2 are equal.pthread_equal()
Nonepthread_exit()
pthread_get_expiration_np() 0 = successful
-1 = error (Check errno for last error, such as EINVAL.)
pthread_ getschedparam() 0 = successful
EINVAL The key value specified by policy or one of the
scheduling parameters associated with the scheduling
policy policy is invalid.
ENOTSUP An attempt was made to set the policy or
scheduling parameters to an unsupported value.
ESRCH The value specified by thread does not refer to
an existing thread.
pthread_getspecific() 0 = successful
EINVAL The key value is invalid.
ENOMEM Insufficient memory exists to associate the value
with the key.
210 Standard POSIX Thread Functions: Differences Between the Draft 4 and IEEE 1003.1c 1995 Standards