1 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined XPG42
2 constant PTHREAD_CANCEL_ASYNCHRONOUS
3 constant PTHREAD_CANCEL_ENABLE
4 constant PTHREAD_CANCEL_DEFERRED
5 constant PTHREAD_CANCEL_DISABLE
6 constant PTHREAD_CANCELED
7 macro PTHREAD_COND_INITIALIZER
8 constant PTHREAD_CREATE_DETACHED
9 constant PTHREAD_CREATE_JOINABLE
10 constant PTHREAD_EXPLICIT_SCHED
11 constant PTHREAD_INHERIT_SCHED
12 constant PTHREAD_ONCE_INIT
13 optional-constant PTHREAD_PRIO_INHERIT
14 optional-constant PTHREAD_PRIO_NONE
15 optional-constant PTHREAD_PRIO_PROTECT
16 constant PTHREAD_PROCESS_SHARED
17 constant PTHREAD_PROCESS_PRIVATE
18 constant PTHREAD_SCOPE_PROCESS
19 constant PTHREAD_SCOPE_SYSTEM
20 macro PTHREAD_MUTEX_INITIALIZER
22 constant PTHREAD_MUTEX_DEFAULT
23 constant PTHREAD_MUTEX_ERRORCHECK
24 constant PTHREAD_MUTEX_NORMAL
25 constant PTHREAD_MUTEX_RECURSIVE
26 macro PTHREAD_RWLOCK_INITIALIZER
28 # if defined XOPEN2K8 || defined POSIX2008
29 constant PTHREAD_MUTEX_ROBUST
30 constant PTHREAD_MUTEX_STALLED
36 type pthread_barrier_t
37 type pthread_barrierattr_t
40 type pthread_condattr_t
43 type pthread_mutexattr_t
46 type pthread_rwlockattr_t
48 type pthread_spinlock_t
53 function int pthread_atfork (void (*) (void), void (*) (void), void (*) (void))
54 function int pthread_attr_destroy (pthread_attr_t*)
55 function int pthread_attr_getdetachstate (const pthread_attr_t*, int*)
57 function int pthread_attr_getguardsize (const pthread_attr_t*, size_t*)
59 function int pthread_attr_getinheritsched (const pthread_attr_t*, int*)
60 function int pthread_attr_getschedparam (const pthread_attr_t*, struct sched_param*)
61 function int pthread_attr_getschedpolicy (const pthread_attr_t*, int*)
62 function int pthread_attr_getscope (const pthread_attr_t*, int*)
63 function int pthread_attr_getstackaddr (const pthread_attr_t*, void**)
64 function int pthread_attr_getstacksize (const pthread_attr_t*, size_t*)
65 function int pthread_attr_init (pthread_attr_t*)
66 function int pthread_attr_setdetachstate (pthread_attr_t*, int)
68 function int pthread_attr_setguardsize (pthread_attr_t*, size_t)
70 function int pthread_attr_setinheritsched (pthread_attr_t*, int)
71 function int pthread_attr_setschedparam (pthread_attr_t*, const struct sched_param*)
72 function int pthread_attr_setschedpolicy (pthread_attr_t*, int)
73 function int pthread_attr_setscope (pthread_attr_t*, int)
74 function int pthread_attr_setstackaddr (pthread_attr_t*, void*)
75 function int pthread_attr_setstacksize (pthread_attr_t*, size_t)
76 # if !defined POSIX && !defined UNIX98
77 function int pthread_barrier_destroy (pthread_barrier_t*)
78 function int pthread_barrier_init (pthread_barrier_t*, const pthread_barrierattr_t*, unsigned int)
79 function int pthread_barrier_wait (pthread_barrier_t*)
80 function int pthread_barrierattr_destroy (pthread_barrierattr_t*)
81 function int pthread_barrierattr_getpshared (const pthread_barrierattr_t*, int*)
82 function int pthread_barrierattr_init (pthread_barrierattr_t*)
83 function int pthread_barrierattr_setpshared (pthread_barrierattr_t*, int)
85 function int pthread_cancel (pthread_t)
86 // function int pthread_cleanup_push (void (*) (void*), void*)
87 macro pthread_cleanup_push
88 // function int pthread_cleanup_pop (int)
89 macro pthread_cleanup_pop
90 function int pthread_cond_broadcast (pthread_cond_t*)
91 function int pthread_cond_destroy (pthread_cond_t*)
92 function int pthread_cond_init (pthread_cond_t*, const pthread_condattr_t*)
93 function int pthread_cond_signal (pthread_cond_t*)
94 function int pthread_cond_timedwait (pthread_cond_t*, pthread_mutex_t*, const struct timespec*)
95 function int pthread_cond_wait (pthread_cond_t*, pthread_mutex_t*)
96 function int pthread_condattr_destroy (pthread_condattr_t*)
97 #if !defined POSIX && !defined UNIX98 && !defined XOPEN2K
98 optional-function int pthread_condattr_getclock (const pthread_condattr_t*, clockid_t*)
100 function int pthread_condattr_getpshared (const pthread_condattr_t*, int*)
101 function int pthread_condattr_init (pthread_condattr_t*)
102 #if !defined POSIX && !defined UNIX98 && !defined XOPEN2K
103 optional-function int pthread_condattr_setclock (pthread_condattr_t*, clockid_t)
105 function int pthread_condattr_setpshared (pthread_condattr_t*, int)
106 function int pthread_create (pthread_t*, const pthread_attr_t*, void *(*) (void*), void*)
107 function int pthread_detach (pthread_t)
108 function int pthread_equal (pthread_t, pthread_t)
109 function void pthread_exit (void*)
110 # if !defined POSIX && !defined POSIX2008
111 function int pthread_getconcurrency (void)
113 # if !defined POSIX && !defined UNIX98
114 function int pthread_getcpuclockid (pthread_t, clockid_t*)
116 function int pthread_getschedparam (pthread_t, int*, struct sched_param*)
117 function {void*} pthread_getspecific (pthread_key_t)
118 function int pthread_join (pthread_t, void**)
119 function int pthread_key_create (pthread_key_t*, void (*)(void*))
120 function int pthread_key_delete (pthread_key_t)
121 function int pthread_mutex_destroy (pthread_mutex_t*)
122 optional-function int pthread_mutex_getprioceiling (const pthread_mutex_t*, int*)
123 function int pthread_mutex_init (pthread_mutex_t*, const pthread_mutexattr_t*)
124 function int pthread_mutex_lock (pthread_mutex_t*)
125 optional-function int pthread_mutex_setprioceiling (pthread_mutex_t*, int, int*)
126 # if !defined POSIX && !defined UNIX98
127 function int pthread_mutex_timedlock (pthread_mutex_t*, const struct timespec*)
129 function int pthread_mutex_trylock (pthread_mutex_t*)
130 function int pthread_mutex_unlock (pthread_mutex_t*)
131 function int pthread_mutexattr_destroy (pthread_mutexattr_t*)
132 optional-function int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t*, int*)
133 optional-function int pthread_mutexattr_getprotocol (const pthread_mutexattr_t*, int*)
134 function int pthread_mutexattr_getpshared (const pthread_mutexattr_t*, int*)
136 function int pthread_mutexattr_gettype (const pthread_mutexattr_t*, int*)
138 function int pthread_mutexattr_init (pthread_mutexattr_t*)
139 optional-function int pthread_mutexattr_setprioceiling (pthread_mutexattr_t*, int)
140 optional-function int pthread_mutexattr_setprotocol (pthread_mutexattr_t*, int)
141 function int pthread_mutexattr_setpshared (pthread_mutexattr_t*, int)
143 function int pthread_mutexattr_settype (pthread_mutexattr_t*, int)
145 function int pthread_once (pthread_once_t*, void (*) (void))
147 function int pthread_rwlock_init (pthread_rwlock_t*, const pthread_rwlockattr_t*)
148 function int pthread_rwlock_rdlock (pthread_rwlock_t*)
150 # if !defined POSIX && !defined UNIX98
151 function int pthread_rwlock_timedrdlock (pthread_rwlock_t*, const struct timespec*)
152 function int pthread_rwlock_timedwrlock (pthread_rwlock_t*, const struct timespec*)
155 function int pthread_rwlock_tryrdlock (pthread_rwlock_t*)
156 function int pthread_rwlock_trywrlock (pthread_rwlock_t*)
157 function int pthread_rwlock_unlock (pthread_rwlock_t*)
158 function int pthread_rwlock_wrlock (pthread_rwlock_t*)
159 function int pthread_rwlockattr_destroy (pthread_rwlockattr_t*)
160 function int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t*, int*)
161 function int pthread_rwlockattr_init (pthread_rwlockattr_t*)
162 function int pthread_rwlockattr_setpshared (pthread_rwlockattr_t*, int)
164 function pthread_t pthread_self (void)
165 function int pthread_setcancelstate (int, int*)
166 function int pthread_setcanceltype (int, int*)
167 # if !defined POSIX && !defined POSIX2008
168 function int pthread_setconcurrency (int)
170 function int pthread_setschedparam (pthread_t, int, const struct sched_param*)
171 function int pthread_setspecific (pthread_key_t, const void*)
172 # if !defined POSIX && !defined UNIX98 && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
173 function int pthread_sigmask (int, const sigset_t*, sigset_t*)
175 # if !defined POSIX && !defined UNIX98
176 function int pthread_spin_destroy (pthread_spinlock_t*)
177 function int pthread_spin_init (pthread_spinlock_t*, int)
178 function int pthread_spin_lock (pthread_spinlock_t*)
179 function int pthread_spin_trylock (pthread_spinlock_t*)
180 function int pthread_spin_unlock (pthread_spinlock_t*)
182 function void pthread_testcancel (void)
183 # if defined XOPEN2K8 || defined POSIX2008
184 function int pthread_mutex_consistent (pthread_mutex_t *)
185 function int pthread_mutexattr_getrobust (const pthread_mutexattr_t*, int*)
186 function int pthread_mutexattr_setrobust (pthread_mutexattr_t*, int)