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

Table 20 Thread Functions With Changes to Return Values Only (continued)
Return Values in Standard POSIX ThreadsFunction
EPERM The current thread does not own the mutex.
None.pthread_once()
Table 21 lists the return values for new thread functions and for thread functions whose return
values have changed in addition to other changes listed in this appendix.
Table 21 Thread Functions With Changes to Return Values Among Other Changes
Return Values in Standard POSIX ThreadsFunction
pthread_atfork() 0 = successful
ENOMEM Insufficient table space exists to record the fork
handler addresses.
0 = successfulpthread_attr_destroy()
pthread_attr_getdetachstate() 0 = successful
EINVAL The value of detachstate is invalid.
pthread_attr_getguardsize_np() 0 = successful
EINVAL Invalid attribute passed in.
pthread_attr_getinheritsched() 0 = successful
EINVAL The value of the attribute being set is invalid.
ENOTSUP An attempt was made to set the attribute to an
unsupported value.
pthread_attr_getschedparam() 0 = successful
EINVAL The value of the attribute being set is invalid.
ENOTSUP An attempt was made to set the attribute to an
unsupported value.
pthread_attr_getschedpolicy() 0 = successful
EINVAL The value of the attribute being set is invalid.
ENOTSUP An attempt was made to set the attribute to an
unsupported value.
0 = successfulpthread_attr_getstacksize()
pthread_attr_init() 0 = successful
ENOMEM Insufficient table space exists to record the fork
handler addresses.
pthread_attr_setdetachstate() 0 = successful
EINVAL The value of detachstate is invalid.
pthread_attr_setguardsize_np() 0 = successful
EINVAL Invalid attribute passed in.
pthread_attr_setinheritsched() 0 = successful
EINVAL The value of the attribute being set is invalid.
ENOTSUP An attempt was made to set the attribute to an
unsupported value.
pthread_attr_setschedparam() 0 = successful
EINVAL The value of the attribute being set is invalid.
ENOTSUP An attempt was made to set the attribute to an
unsupported value.
pthread_attr_setschedpolicy() 0 = successful
EINVAL The value of the attribute being set is invalid.
Changed Thread Functions 209