Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
Standard POSIX Threads Functions: Differences
Between the Previous and Current Standards
Open System Services Porting Guide520573-006
E-9
Changed Thread Functions
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.
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.
pthread_cleanup_pop() None
pthread_cleanup_push() None
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.)
Table E-5. Thread Functions With Changes to Return Values Among Other
Changes (page 2 of 5)
Function Return Values in Standard POSIX Threads