13.9. Interfaces for libpthread

Table 13-37 defines the library name and shared object name for the libpthread library

Table 13-37. libpthread Definition

Library:libpthread
SONAME:libpthread.so.0

The behavior of the interfaces in this library is specified by the following specifications:

[LFS] Large File Support
[LSB] This Specification
[SUSv3] ISO POSIX (2003)

13.9.1. Realtime Threads

13.9.1.1. Interfaces for Realtime Threads

An LSB conforming implementation shall provide the generic functions for Realtime Threads specified in Table 13-38, with the full mandatory functionality as described in the referenced underlying specification.

Table 13-38. libpthread - Realtime Threads Function Interfaces

pthread_attr_getinheritsched [SUSv3]pthread_attr_getschedpolicy [SUSv3]pthread_attr_getscope [SUSv3]pthread_attr_setinheritsched [SUSv3]
pthread_attr_setschedpolicy [SUSv3]pthread_attr_setscope [SUSv3]pthread_getschedparam [SUSv3]pthread_setschedparam [SUSv3]
pthread_setschedprio(GLIBC_2.3.4) [SUSv3]   

13.9.2. Advanced Realtime Threads

13.9.2.1. Interfaces for Advanced Realtime Threads

An LSB conforming implementation shall provide the generic functions for Advanced Realtime Threads specified in Table 13-39, with the full mandatory functionality as described in the referenced underlying specification.

Table 13-39. libpthread - Advanced Realtime Threads Function Interfaces

pthread_barrier_destroy [SUSv3]pthread_barrier_init [SUSv3]pthread_barrier_wait [SUSv3]pthread_barrierattr_destroy [SUSv3]
pthread_barrierattr_getpshared(GLIBC_2.3.3) [SUSv3]pthread_barrierattr_init [SUSv3]pthread_barrierattr_setpshared [SUSv3]pthread_getcpuclockid [SUSv3]
pthread_spin_destroy [SUSv3]pthread_spin_init [SUSv3]pthread_spin_lock [SUSv3]pthread_spin_trylock [SUSv3]
pthread_spin_unlock [SUSv3]   

13.9.3. Posix Threads

13.9.3.1. Interfaces for Posix Threads

An LSB conforming implementation shall provide the generic functions for Posix Threads specified in Table 13-40, with the full mandatory functionality as described in the referenced underlying specification.

Table 13-40. libpthread - Posix Threads Function Interfaces

_pthread_cleanup_pop [LSB]_pthread_cleanup_push [LSB]pthread_attr_destroy [SUSv3]pthread_attr_getdetachstate [SUSv3]
pthread_attr_getguardsize [SUSv3]pthread_attr_getschedparam [SUSv3]pthread_attr_getstack [SUSv3]pthread_attr_getstackaddr [SUSv3]
pthread_attr_getstacksize [SUSv3]pthread_attr_init [SUSv3]pthread_attr_setdetachstate [SUSv3]pthread_attr_setguardsize [SUSv3]
pthread_attr_setschedparam [SUSv3]pthread_attr_setstack [SUSv3]pthread_attr_setstackaddr [SUSv3]pthread_attr_setstacksize [SUSv3]
pthread_cancel [SUSv3]pthread_cond_broadcast [SUSv3]pthread_cond_destroy [SUSv3]pthread_cond_init [SUSv3]
pthread_cond_signal [SUSv3]pthread_cond_timedwait [SUSv3]pthread_cond_wait [SUSv3]pthread_condattr_destroy [SUSv3]
pthread_condattr_getpshared [SUSv3]pthread_condattr_init [SUSv3]pthread_condattr_setpshared [SUSv3]pthread_create [SUSv3]
pthread_detach [SUSv3]pthread_equal [SUSv3]pthread_exit [SUSv3]pthread_getconcurrency [SUSv3]
pthread_getspecific [SUSv3]pthread_join [SUSv3]pthread_key_create [SUSv3]pthread_key_delete [SUSv3]
pthread_kill [SUSv3]pthread_mutex_destroy [SUSv3]pthread_mutex_init [SUSv3]pthread_mutex_lock [SUSv3]
pthread_mutex_timedlock [SUSv3]pthread_mutex_trylock [SUSv3]pthread_mutex_unlock [SUSv3]pthread_mutexattr_destroy [SUSv3]
pthread_mutexattr_getpshared [SUSv3]pthread_mutexattr_gettype [SUSv3]pthread_mutexattr_init [SUSv3]pthread_mutexattr_setpshared [SUSv3]
pthread_mutexattr_settype [SUSv3]pthread_once [SUSv3]pthread_rwlock_destroy [SUSv3]pthread_rwlock_init [SUSv3]
pthread_rwlock_rdlock [SUSv3]pthread_rwlock_timedrdlock [SUSv3]pthread_rwlock_timedwrlock [SUSv3]pthread_rwlock_tryrdlock [SUSv3]
pthread_rwlock_trywrlock [SUSv3]pthread_rwlock_unlock [SUSv3]pthread_rwlock_wrlock [SUSv3]pthread_rwlockattr_destroy [SUSv3]
pthread_rwlockattr_getpshared [SUSv3]pthread_rwlockattr_init [SUSv3]pthread_rwlockattr_setpshared [SUSv3]pthread_self [SUSv3]
pthread_setcancelstate [SUSv3]pthread_setcanceltype [SUSv3]pthread_setconcurrency [SUSv3]pthread_setspecific [SUSv3]
pthread_sigmask [SUSv3]pthread_testcancel [SUSv3]sem_close [SUSv3]sem_destroy [SUSv3]
sem_getvalue [SUSv3]sem_init [SUSv3]sem_open [SUSv3]sem_post [SUSv3]
sem_timedwait [SUSv3]sem_trywait [SUSv3]sem_unlink [SUSv3]sem_wait [SUSv3]

An LSB conforming implementation shall provide the generic deprecated functions for Posix Threads specified in Table 13-41, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 13-41. libpthread - Posix Threads Deprecated Function Interfaces

pthread_attr_getstackaddr [SUSv3]pthread_attr_setstackaddr [SUSv3]  

13.9.4. Thread aware versions of libc interfaces

13.9.4.1. Interfaces for Thread aware versions of libc interfaces

An LSB conforming implementation shall provide the generic functions for Thread aware versions of libc interfaces specified in Table 13-42, with the full mandatory functionality as described in the referenced underlying specification.

Table 13-42. libpthread - Thread aware versions of libc interfaces Function Interfaces

lseek64 [LFS]open64 [LFS]pread [SUSv3]pread64 [LFS]
pwrite [SUSv3]pwrite64 [LFS]