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-12
Changed Thread Functions
Table E-6 lists the thread functions that have miscellaneous changes in Standard
POSIX Threads.
Table E-7
lists the thread functions that are unchanged from Draft 4.
pthread_setspecific() 0 = successful
EINVAL The key value is invalid.
ENOMEM Insufficient memory exists to associate the value
with the key.
pthread_sigmask() 0 = successful
EINVAL The value of the how parameter is not equal to
one of the allowed values.
pthread_signal_to_
cancel_np()
0 = successful
-1 = error (Check errno for last error, such as EINVAL.)
pthread_testcancel() None
pthread_unlock_
global_np()
None
sched_yield() 0 = successful
Table E-6. Thread Functions With Miscellaneous Changes
Function Change in Standard POSIX Threads
pthread_join() Now detaches the thread.
pthread_cleanup_pop() Type has changed from int to void.
Table E-7. Thread Functions With No Changes
Unchanged Function
pthread_exit()
pthread_equal()
pthread_self()
pthread_testcancel()
Table E-5. Thread Functions With Changes to Return Values Among Other
Changes (page 5 of 5)
Function Return Values in Standard POSIX Threads