14.9. Interfaces for libpthread

Table 14-42 defines the library name and shared object name for the libpthread library

Table 14-42. 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] POSIX 1003.1-2001 (ISO/IEC 9945-2003)
[SUSv4] POSIX 1003.1-2008 (ISO/IEC 9945-2009)

14.9.1. Realtime Threads

14.9.1.1. Interfaces for Realtime Threads

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

Table 14-43. libpthread - Realtime Threads Function Interfaces

pthread_attr_getinheritsched [SUSv4]pthread_attr_getschedpolicy [SUSv4]pthread_attr_getscope [SUSv4]pthread_attr_setinheritsched [SUSv4]
pthread_attr_setschedpolicy [SUSv4]pthread_attr_setscope [SUSv4]pthread_getschedparam [SUSv4]pthread_mutex_getprioceiling(GLIBC_2.4) [SUSv4]
pthread_mutex_setprioceiling(GLIBC_2.4) [SUSv4]pthread_mutexattr_getprioceiling(GLIBC_2.4) [SUSv4]pthread_mutexattr_getprotocol(GLIBC_2.4) [SUSv4]pthread_mutexattr_setprioceiling(GLIBC_2.4) [SUSv4]
pthread_mutexattr_setprotocol(GLIBC_2.4) [SUSv4]pthread_setschedparam [SUSv4]pthread_setschedprio(GLIBC_2.3.4) [SUSv4] 

14.9.2. Advanced Realtime Threads

14.9.2.1. Interfaces for Advanced Realtime Threads

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

Table 14-44. libpthread - Advanced Realtime Threads Function Interfaces

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

14.9.3. Posix Threads

14.9.3.1. Interfaces for Posix Threads

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

Table 14-45. libpthread - Posix Threads Function Interfaces

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

An LSB conforming implementation shall provide the generic deprecated functions for Posix Threads specified in Table 14-46, 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 14-46. libpthread - Posix Threads Deprecated Function Interfaces

pthread_attr_getstackaddr [SUSv3]pthread_attr_setstackaddr [SUSv3]  

14.9.4. Thread aware versions of libc interfaces

14.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 14-47, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-47. libpthread - Thread aware versions of libc interfaces Function Interfaces

lseek64 [LFS]open64 [LFS]pread [SUSv4]pread64 [LSB]
pwrite [SUSv4]pwrite64 [LSB]  

14.9.5. GNU Extensions for libpthread

14.9.5.1. Interfaces for GNU Extensions for libpthread

An LSB conforming implementation shall provide the generic functions for GNU Extensions for libpthread specified in Table 14-48, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-48. libpthread - GNU Extensions for libpthread Function Interfaces

pthread_getattr_np [LSB]pthread_mutex_consistent_np [LSB]pthread_mutexattr_getrobust_np [LSB]pthread_mutexattr_setrobust_np [LSB]
pthread_rwlockattr_getkind_np [LSB]pthread_rwlockattr_setkind_np [LSB]  

14.9.6. System Calls

14.9.6.1. Interfaces for System Calls

An LSB conforming implementation shall provide the generic functions for System Calls specified in Table 14-49, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-49. libpthread - System Calls Function Interfaces

close [SUSv4]fcntl [LSB]fork [SUSv4]fsync [SUSv4]
lseek [SUSv4]msync [SUSv4]nanosleep [SUSv4]open [SUSv4]
pause [SUSv4]read [SUSv4]vfork [SUSv3]wait [SUSv4]
waitpid [LSB]write [SUSv4]  

14.9.7. Standard I/O

14.9.7.1. Interfaces for Standard I/O

An LSB conforming implementation shall provide the generic functions for Standard I/O specified in Table 14-50, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-50. libpthread - Standard I/O Function Interfaces

flockfile [SUSv4]   

14.9.8. Signal Handling

14.9.8.1. Interfaces for Signal Handling

An LSB conforming implementation shall provide the generic functions for Signal Handling specified in Table 14-51, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-51. libpthread - Signal Handling Function Interfaces

__libc_current_sigrtmax [LSB]__libc_current_sigrtmin [LSB]raise [SUSv4]sigaction [SUSv4]
siglongjmp [SUSv4]sigwait [SUSv4]  

14.9.9. Standard Library

14.9.9.1. Interfaces for Standard Library

An LSB conforming implementation shall provide the generic functions for Standard Library specified in Table 14-52, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-52. libpthread - Standard Library Function Interfaces

__errno_location [LSB]ftrylockfile [SUSv4]funlockfile [SUSv4]longjmp [SUSv4]
system [LSB]   

14.9.10. Socket Interface

14.9.10.1. Interfaces for Socket Interface

An LSB conforming implementation shall provide the generic functions for Socket Interface specified in Table 14-53, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-53. libpthread - Socket Interface Function Interfaces

__h_errno_location [LSB]accept [SUSv4]connect [SUSv4]recv [SUSv4]
recvfrom [SUSv4]recvmsg [SUSv4]send [SUSv4]sendmsg [SUSv4]
sendto [SUSv4]   

14.9.11. Terminal Interface Functions

14.9.11.1. Interfaces for Terminal Interface Functions

An LSB conforming implementation shall provide the generic functions for Terminal Interface Functions specified in Table 14-54, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-54. libpthread - Terminal Interface Functions Function Interfaces

tcdrain [SUSv4]