1libpthread(3LIB) Interface Libraries libpthread(3LIB)
2
3
4
6 libpthread - POSIX threads library
7
9 cc -mt [ flag... ] file... -lpthread [ -lrt library... ]
10
11
13 Historically, functions in this library provided POSIX threading sup‐
14 port. See standards(5). This functionality now resides in libc(3LIB).
15
16
17 This library is maintained to provide backward compatibility for both
18 runtime and compilation environments. The shared object is implemented
19 as a filter on libc.so.1. New application development needs to specify
20 -lpthread only to obtain POSIX semantics for fork(2) that assumes the
21 behavior of fork1(2) rather than the default behavior that forks all
22 threads.
23
25 The shared object libpthread.so.1 provides the public interfaces
26 defined below. See Intro(3) for additional information on shared object
27 interfaces.
28
29
30
31
32 __pthread_cleanup_pop __pthread_cleanup_push
33 pthread_attr_destroy pthread_attr_getdetachstate
34 pthread_attr_getguardsize pthread_attr_getinheritsched
35 pthread_attr_getschedparam pthread_attr_getschedpolicy
36 pthread_attr_getscope pthread_attr_getstackaddr
37 pthread_attr_getstacksize pthread_attr_init
38 pthread_attr_setdetachstate pthread_attr_setguardsize
39 pthread_attr_setinheritsched pthread_attr_setschedparam
40 pthread_attr_setschedpolicy pthread_attr_setscope
41 pthread_attr_setstackaddr pthread_attr_setstacksize
42 pthread_cancel pthread_cond_broadcast
43 pthread_cond_destroy pthread_cond_init
44 pthread_cond_reltimedwait_np pthread_cond_signal
45 pthread_cond_timedwait pthread_cond_wait
46 pthread_condattr_destroy pthread_condattr_getpshared
47 pthread_condattr_init pthread_condattr_setpshared
48 pthread_create pthread_detach
49 pthread_equal pthread_exit
50 pthread_getconcurrency pthread_getschedparam
51 pthread_getspecific pthread_join
52 pthread_key_create pthread_key_delete
53 pthread_kill pthread_mutex_consistent_np
54 pthread_mutex_destroy pthread_mutex_getprioceiling
55 pthread_mutex_init pthread_mutex_lock
56 pthread_mutex_setprioceiling pthread_mutex_trylock
57 pthread_mutex_unlock pthread_mutexattr_destroy
58 pthread_mutexattr_getprioceiling pthread_mutexattr_getprotocol
59 pthread_mutexattr_getpshared pthread_mutexattr_getrobust_np
60 pthread_mutexattr_gettype pthread_mutexattr_init
61 pthread_mutexattr_setprioceiling pthread_mutexattr_setprotocol
62 pthread_mutexattr_setpshared pthread_mutexattr_setrobust_np
63 pthread_mutexattr_settype pthread_once
64 pthread_rwlock_destroy pthread_rwlock_init
65 pthread_rwlock_rdlock pthread_rwlock_tryrdlock
66
67 pthread_rwlock_trywrlock pthread_rwlock_unlock
68 pthread_rwlock_wrlock pthread_rwlockattr_destroy
69 pthread_rwlockattr_getpshared pthread_rwlockattr_init
70 pthread_rwlockattr_setpshared pthread_self
71 pthread_setcancelstate pthread_setcanceltype
72 pthread_setconcurrency pthread_setschedparam
73 pthread_setspecific pthread_sigmask
74 pthread_testcancel
75
76
78 /lib/libpthread.so.1 a filter on /lib/libc.so.1
79
80
81 /lib/64/libpthread.so.1 a filter on /lib/64/libc.so.1
82
83
85 See attributes(5) for descriptions of the following attributes:
86
87
88
89
90 ┌─────────────────────────────┬─────────────────────────────┐
91 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
92 ├─────────────────────────────┼─────────────────────────────┤
93 │Availability │SUNWcsl (32-bit) │
94 ├─────────────────────────────┼─────────────────────────────┤
95 │ │SUNWcslx (64-bit) │
96 ├─────────────────────────────┼─────────────────────────────┤
97 │MT-Level │Safe │
98 └─────────────────────────────┴─────────────────────────────┘
99
101 pvs(1), Intro(2), Intro(3), libc(3LIB), libc_db(3LIB), libthread(3LIB),
102 attributes(5), standards(5), threads(5)
103
104
105
106SunOS 5.11 24 Mar 2004 libpthread(3LIB)