]> git.ipfire.org Git - thirdparty/glibc.git/blame - nptl/ChangeLog
2003-03-13 Jakub Jelinek <jakub@redhat.com>
[thirdparty/glibc.git] / nptl / ChangeLog
CommitLineData
b5ec5617
UD
12003-03-13 Jakub Jelinek <jakub@redhat.com>
2
3 * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
4 ctid to match kernel.
5
d0369fb8
UD
62003-03-12 Ulrich Drepper <drepper@redhat.com>
7
7588880f
UD
8 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
9 libc_multiple_threads.
10 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
11 __libc_multiple_threads to...
12 * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
13
14 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
15 versioning.
16 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
17 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
18
19 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
20 (__pthread_once_internal): Define.
21
22 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
23 macros instead of .symver directly.
24 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
25 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
26
d0369fb8
UD
27 * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
28 * sysdeps/x86_64/tcb-offsets.sym: New file.
29 * sysdeps/x86_64/Makefile: New file.
30
31 * sysdeps/i386/tcb-offsets.sym: Add SELF.
32 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
33 to access own pthread_t in TCB.
34 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
35 Likewise.
36 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
37 Likewise.
38 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
39
0bb2ac85
RM
402003-03-12 Roland McGrath <roland@redhat.com>
41
42 * pthread-errnos.sym: New file.
43 * Makefile (gen-as-const-headers): New variable, list that file.
44 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
45 header <pthread-errnos.h> instead of defining errno values here.
46 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
47 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
48 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
49 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
50 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
51 Likewise.
52 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
53 Likewise.
54 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
55 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
56 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
57 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
58 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
59 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
60 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
61 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
62 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
63 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
64 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
65 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
66 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
67 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
68 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
69 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
70 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
71 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
72 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
73 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
74 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
75 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
76 * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
77 * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
78 * sysdeps/sh/pthread_spin_trylock.S: Likewise.
79 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
80 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
81
82 * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
83 CLONE_CHILD_SETTID worked.
84
35e148cb
UD
852003-03-12 Ulrich Drepper <drepper@redhat.com>
86
d0369fb8
UD
87 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
88 file.
89 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
90 file.
91
92 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
93 (pthread_cond_t): Add padding.
94
da49194d
UD
95 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
96 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
97 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
98
35e148cb
UD
99 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
100 (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
101 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
102 (__pthread_rwlock_timedrdlock): Likewise.
103 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
104 (__pthread_rwlock_wrlock): Likewise.
105 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
106 (__pthread_rwlock_rdlock): Likewise.
107
108 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
109
110 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
111 result of lock re-get if it fails.
112
3e976b96
UD
1132003-03-11 Ulrich Drepper <drepper@redhat.com>
114
5a03acfe
UD
115 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
116 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
117 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
118 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
119 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
120 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
121 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
122 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
123 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
124 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
125
126 * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
127 THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
128
129 * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
130 Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
131 * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
132 (create_thread): Likewise.
133 Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
134 * init.c (__pthread_initialize_minimal_internal): Initialize
135 __libc_multiple_threads_ptr if necessary.
136 * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
137 __pthread_multiple_threads and __libc_multiple_threads_ptr.
138 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
139 __libc_multiple_threads.
140 (__libc_pthread_init): Return pointer to __libc_pthread_init if
141 necessary.
142
143 * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
144 (THREAD_SETMEM_NC): Likewise.
145
146 * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
147 * sysdeps/x86_64/pthread_spin_trylock.S: New file.
148 * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
149 * sysdeps/x86_64/pthread_spin_unlock.S: New file.
150
151 * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
152 Eliminate one entire instruction.
153
32a589b1
UD
154 * cancellation.c (__pthread_enable_asynccancel_2): New function.
155 * pthreadP.h: Declare __pthread_enable_asynccancel_2.
156 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
157 (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
158 instead of __pthread_enable_asynccancel.
159 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
160 (__pthread_cond_wait): Likewise.
161 * sysdeps/pthread/pthread_cond_timedwait.c
162 (__pthread_cond_timedwait): Likewise.
163 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
164
3e976b96
UD
165 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
166 (__condvar_cleanup): Wake up all waiters in case we got signaled
167 after being woken up but before disabling asynchronous
168 cancellation.
169 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
170 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
171 (__condvar_cleanup): Likewise.
172
173 * init.c (__NR_set_tid_address): If already defined, don't redefine.
174 Make it an error if architecture has no #if case. Add x86-64.
175
176 * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
177 pt-initfini.s generation.
178
179 * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
180 (TLS_INIT_TP): Fix typo.
181
6c477888
UD
1822003-03-11 Jakub Jelinek <jakub@redhat.com>
183
184 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
185 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
186
187 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
188 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
189 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
190 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
191 * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
192 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
193 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
194 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
195
ea694823
UD
1962003-03-11 Ulrich Drepper <drepper@redhat.com>
197
6c477888
UD
198 * sysdeps/pthread/pthread_cond_timedwait.c
199 (__pthread_cond_timedwait): Return the result of the final
200 locking. If it succeeds, the regular function return value.
201
202 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
203 Return result of the final locking.
204 * version.c (__nptl_main): Work around problems with the strange
205 INTERNAL_SYSCALL macro on ppc32.
206 * init.c (__pthread_initialize_minimal_internal): Unblock
207 SIGCANCEL in case the parent blocked it.
208 Reported by Paul Mackerras <paulus@samba.org>.
209
ea694823
UD
210 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
211 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
212 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
213
b33e6163
RM
2142003-03-11 Jakub Jelinek <jakub@redhat.com>
215
216 * sysdeps/pthread/pthread_cond_timedwait.c
217 (__pthread_cond_timedwait): Unlock and fail if
218 __pthread_mutex_unlock_internal failed.
219
220 * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
221 (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
222 Use ARCH_CLONE.
223 * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
224 [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
225 STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
226 ALLOCATE_STACK): New macros.
227 (TLS_TPADJ): New macro.
228 (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
229 (allocate_stack): Handle TLS_DTV_AT_TP and
230 NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
231 * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
232 Don't set PD->self.
233 * init.c [__ia64__] (__NR_set_tid_address): Define.
234
235 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
236 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
237 * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
238 * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
239 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
240 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
241 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
242 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
243 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
244 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
245 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
246 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
247 * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
248 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
249 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
250 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
251 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
252 * sysdeps/ia64/bits/atomic.h: New file.
253 * sysdeps/ia64/Makefile: New file.
254 * sysdeps/ia64/pthread_spin_init.c: New file.
255 * sysdeps/ia64/pthread_spin_lock.c: New file.
256 * sysdeps/ia64/pthread_spin_trylock.c: New file.
257 * sysdeps/ia64/pthread_spin_unlock.c: New file.
258 * sysdeps/ia64/pthreaddef.h: New file.
259 * sysdeps/ia64/tcb-offsets.sym: New file.
260 * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
261 * sysdeps/ia64/tls.h: New file.
262
263 * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
264 to syscall instead of no arguments.
265
2b30b2e5
UD
2662003-03-10 Ulrich Drepper <drepper@redhat.com>
267
db5f2fc9
UD
268 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
269 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
270 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
271 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
272
273 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
274 unused code.
275
6a4263e3
UD
276 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
277
3de7c2a9
UD
278 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
279 lowlevelbarrier.sym.
280 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
281 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
282 Include lowlevelbarrier.h and don't define offsets locally.
6a4263e3 283 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
3de7c2a9 284
2a544d82
UD
285 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
286 (__lll_mutex_lock_wait): Reverse order of first two parameters.
287 (__lll_mutex_timedlock_wait): Likewise.
288 (lll_mutex_lock): Adjust asm for that.
289 (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
290 (lll_lock): Adjust asm for operand order change.
291 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
292 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
293
ec06436c
UD
294 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
295 Reverse order of parameters.
296 (__lll_timedwait_tid): Remove regparms attribute.
297 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
298 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
299
3273832c
UD
300 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
301 (__lll_timedwait_tid): Remove one unnecessary instruction.
302
51f32ab8
UD
303 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
304 __lll_mutex_timedlock_wait only for NOT_IN_libc.
305 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
306 lowlevelmutex.S.
307
308 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
309 lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
310 for NOT_IN_libc.
311 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
312 lowlevellock.S.
313
fad48d9e
UD
314 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
315 LOCK is already defined. Don't define __lll_mutex_timedlock_wait
316 for libc.so.
317 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
318 define LOCK here (if UP is not defined). The actual code is in
319 lowlevelmutex.S.
320
9356d063
UD
321 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
322 LOCK is already defined. Don't define lll_unlock_wake_cb and
323 __lll_timedwait_tid for libc.so.
324 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
325 define LOCK here (if UP is not defined). The actual code is in
326 lowlevellock.S.
327
ebf0cbc5 328 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
106f6f9d
UD
329 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
330 * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
331 instead of lowlevelsem.h.
332 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
333 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
334 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
0be8ee21 335
c915e5ad
UD
336 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
337 lowlevelrwlock.sym.
338 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
339 * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
146fa1ee 340 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
c915e5ad 341
4c3c2e8a
UD
342 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
343 register loading.
344 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
345 last changed. D'oh.
346
2b30b2e5
UD
347 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
348
349 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
350 of __libc_locking_needed.
351 (lll_trylock): Initialize %eax to zero.
352
2b30b2e5
UD
353 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
354 pthread_cond_t definition.
355
e48f9638
RM
3562003-03-10 Roland McGrath <roland@redhat.com>
357
358 * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
359 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
360 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
361 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
362 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
363
364 * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
365 Instead of setting PD->multiple_threads, set globals
366 __pthread_multiple_threads and __libc_multiple_threads.
367 * sysdeps/pthread/createthread.c (create_thread): Likewise.
368 * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
369 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
370
371 * descr.h (struct pthread): Conditionalize first member on
372 [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
373 containing an anonymous tcbhead_t. Move `list' member out.
374 [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
375 * allocatestack.c: Remove use of `header.data.' prefix.
376 * pthread_create.c: Likewise.
377 * init.c (__pthread_initialize_minimal_internal): Likewise.
378 * sysdeps/pthread/createthread.c (create_thread): Likewise.
379 * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
380 (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
381 * sysdeps/x86_64/tls.h: Likewise.
382 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
383 (SINGLE_THREAD_P): Likewise.
384 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
385 (SINGLE_THREAD_P): Likewise.
386 * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
387 * sysdeps/s390/tls.h (tcbhead_t): Likewise.
388
c37cae9e
UD
3892003-03-09 Ulrich Drepper <drepper@redhat.com>
390
d38c777e
RM
391 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
392
7b44a5e0 393 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
2b30b2e5 394 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
7b44a5e0 395
c2e5e085
UD
396 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
397 leftovers from the ia32 code.
398
399 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
400 memory load.
401 (clear_once_control): Don't load %esi.
402
403 * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
404 handling.
405
406 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
407
cd4b2a55
UD
408 * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
409 * sysdeps/unix/sysv/linux/createthread.c: ...here.
410
c37cae9e
UD
411 * Makefile (tests): Add tst-cond10.
412 * tst-cond10.c: New file.
413
d130a341
UD
4142003-03-08 Ulrich Drepper <drepper@redhat.com>
415
ccf1d573
UD
416 * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
417 * tst-signal3.c (do_test): Likewise.
418 * tst-sem5.c (do_test): Likewise.
419 * tst-kill6.c (do_test): Likewise.
420 * tst-tls3.c (do_test): Likewise. Include <errno.h>.
421
422 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
423 of inc/dec.
424 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
425 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
426 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
427 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
428 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
429 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
430 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
431 Likewise.
432 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
433 Likewise.
434 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
435 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
436 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
437 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
438 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
439 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
440 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
441 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
442
d130a341
UD
443 * allocatestack.c (allocate_stack): If mprotect() fails free the
444 TLS memory.
445
bc6389ad
UD
4462003-03-07 Ulrich Drepper <drepper@redhat.com>
447
41d4d223
UD
448 * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
449
450 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
451 lll_wake_tid. This was used only to work around kernel limits in
452 the early days.
453 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
454 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
455 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
456 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
457
bc6389ad
UD
458 * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
459 (__pthread_initialize_minimal_internal): Change initialization of
460 __static_tls_align_m1 appropriately.
461 * pthreadP.h (__static_tls_align_m1): Renamed from
462 __static_tls_align.
463 * allocatestack.c (allocate_stack): Use __static_tls_align_m1
464 instead of __static_tls_align-1.
465
cc775edf
UD
4662003-03-04 Ulrich Drepper <drepper@redhat.com>
467
0de28d5c 468 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6245b6ae 469
518b5308
UD
470 * pthread_create.c: Define __pthread_keys using nocommon
471 attribute, not by placing it explicitly in bss.
472 Remove DEFINE_DEALLOC definition. Not needed anymore.
473
474 * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
475 Use it in mmap call to allocate stacks.
476
477 * sysdeps/pthread/createthread.c (create_thread): Fix comment.
478
cc775edf
UD
479 * pthread_create.c (start_thread): Use THREAD_SETMEM to store
480 result of the thread function.
481
4f6f0a8f
UD
4822003-03-03 Ulrich Drepper <drepper@redhat.com>
483
f04a2721
UD
484 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
485 version is just fine.
486
4f6f0a8f
UD
487 * sysdeps/unix/sysv/linux/libc_pthread_init.c
488 (__pthread_child_handler): Renamed from pthread_child_handler,
489 exported, and marked hidden. Change all users.
490 * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
491 free __pthread_child_handler from child list.
492
7ce5c164
UD
4932003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
494
495 * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
496
497 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
498 Fix handling of cancellation and failing pthread_mutex_unlock call.
499 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
500 (__pthread_cond_wait): Likewise.
501
502 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
503 (pthread_rwlock_timedrdlock): Fix clobber of result variable by
504 lll_futex_timed_wait call.
505 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
506 (pthread_rwlock_timedwrlock): Likewise.
507
508 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
509 Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
510 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
511
512 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
513 check of lll_futex_wake return value.
514
ea6a015b
RM
5152003-03-03 Roland McGrath <roland@redhat.com>
516
517 * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
518
519 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
520 Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
521 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
522
4adacf57
UD
5232003-03-02 Ulrich Drepper <drepper@redhat.com>
524
1be3d664
UD
525 * sysdeps/pthread/timer_create.c (timer_create): Return correct
526 error for CPU clocks.
527
885bafa1
UD
528 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
529 _POSIX_MONOTONIC_CLOCK.
530 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
531
4adacf57
UD
532 * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
533 recent kernels.
534
86bfff4d
UD
5352003-03-01 Ulrich Drepper <drepper@redhat.com>
536
537 * descr.h (struct pthread): Move cleanup field to the front.
538
d1149385
RM
5392003-03-01 Roland McGrath <roland@redhat.com>
540
541 * sem_open.c (sem_open): Braino fix.
542
bd8bb78b
UD
5432003-03-01 Ulrich Drepper <drepper@redhat.com>
544
748bec08
UD
545 * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
546 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
547 __pthread_cleanup_pop functionality.
548 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
549
bd8bb78b
UD
550 * descr.h (struct pthread): Move tid field to the front now that
551 it is often used.
552
553 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
554 (__lll_mutex_timedlock_wait): Remove.
555 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
556 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
557 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
558 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
559 (lll_unlock_wake_cb): Don't save and restore %esi.
560 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
561 %esi.
562 (__lll_timedwait_tid): Add alignment.
563 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
564 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
565 %esi.
566 (__lll_timedwait_tid): Removed.
567 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
568 (__pthread_cond_broadcast): Don't save, load, and restore %esi.
569 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
570 (pthread_barrier_wait): Don't save, load, and restore %esi for
571 last thread.
572 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
573 (__pthread_cond_signal): Don't save, load, and restore %esi.
574 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
575 (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
576 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
577 Don't save, load, and restore %esi.
578
d2637c70
UD
5792003-02-27 Ulrich Drepper <drepper@redhat.com>
580
567fb22a
UD
581 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
582 Release lock before waking up the waiters.
583
427f5fa1
UD
584 * tst-exit1.c (do_test): Don't start more than one thread in parallel.
585
a2d83cfb
UD
586 * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
587 (reader_thread): Likewise.
588
d2637c70
UD
589 * sysdeps/pthread/pthread_rwlock_unlock.c
590 (__pthread_rwlock_unlock): Release internal lock early. Don't try
591 to wake up readers if there are none.
592
593 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
594 Release internal lock before wake threads.
595
b1531183
UD
5962003-02-26 Ulrich Drepper <drepper@redhat.com>
597
dbf6131c
UD
598 * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
599 * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
600 predefined.
601 * tst-rwlock9.c: Likewise.
602 * tst-rwlock10.c: New file.
603 * tst-rwlock11.c: New file.
604
695799fe
UD
605 * Makefile (tests): Add tst-dlsym1.
606 * tst-dlsym1.c: New file.
607
b1531183
UD
608 * init.c (__pthread_initialize_minimal_internal): Set
609 GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
610 * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
611
3724f268
UD
6122003-02-24 Ulrich Drepper <drepper@redhat.com>
613
3857ca78
UD
614 * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
615
80d80779
UD
616 * tst-cond2.c: Fix sychronization with child.
617
86371308
UD
618 * tst-rwlock8.c (reader_thread): Remove unused variable.
619
ffeb4481
UD
620 * Makefile: Add rules to build and run tst-tls3.
621 * tst-tls3.c: New file.
622 * tst-tls3mod.c: New file.
623
3724f268
UD
624 * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
625 * tst-rwlock8.c: New file.
626 * tst-rwlock9.c: New file.
627 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
628 complete broken rwlock implementation.
629 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
630 Likewise.
631 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
632 Likewise.
633 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
634 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
18a53579
UD
635 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
636 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
637 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
638 * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
639 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
3724f268 640
8915cc40
RM
6412003-02-23 Roland McGrath <roland@redhat.com>
642
643 * Makefile (nptl-version): Change regexp so case sensitivity is ok.
644
fd1a0d0c
UD
6452003-02-23 Ulrich Drepper <drepper@redhat.com>
646
ecf28959
UD
647 * Makefile (tests): Add tst-context1.
648 * tst-context1.c: New file.
649
5e47b76b
UD
650 * Makefile (tests): Add tst-tls1 and tst-tls2.
651 * tst-tls1.c: New file.
652 * tst-tls2.c: New file.
653
5a6bbb41
UD
654 * libc-cancellation.c (__libc_enable_asynccancel): Correct test
655 for failed cmpxchg.
656
fd1a0d0c
UD
657 * pthread_create.c (start_thread): Set EXITING_BIT early.
658
659 * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
660 (THREAD_GETMEM_NC): Likewise.
661
757f9fcb
UD
6622003-02-22 Ulrich Drepper <drepper@redhat.com>
663
b1b8e747
UD
664 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
665 off 3 more bytes by using offset-less instructions when possible.
666
c780aa21 667 * Makefile: Add dependency for $(objpfx)version.d.
757f9fcb
UD
668
669 * eintr.c (eintr_source): Add unnecessary return but the compiler
670 insists.
671
672 * tst-kill3.c: Include <unistd.h>.
673
5148559c
RM
6742003-02-21 Roland McGrath <roland@redhat.com>
675
676 * pthread_create.c (start_thread): Call __libc_thread_freeres.
677
ab2d98e3
UD
6782003-02-21 Ulrich Drepper <drepper@redhat.com>
679
71028edd
UD
680 * Makefile (tests): Add tst-eintr1.
681 (distribute): Add eintr.c.
682 * tst-eintr1.c: New file.
683 * eintr.c: New file.
684
e814f748
UD
685 * pthread_cancel.c (pthread_cancel): Use tkill directly.
686
687 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
688 Disallow sending SIGCANCEL.
689
ab2d98e3 690 * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
9c03686d 691 tst-kill3, tst-kill4, tst-kill5, tst-kill6.
e814f748
UD
692 * tst-kill1.c: New file.
693 * tst-kill2.c: New file.
694 * tst-kill3.c: New file.
695 * tst-kill5.c: New file.
9c03686d 696 * tst-kill6.c: New file.
e814f748
UD
697 * tst-basic7.c: Renamed to...
698 * tst-kill4.c: ...this.
ab2d98e3 699
59fed0e2
RM
7002003-02-21 Roland McGrath <roland@redhat.com>
701
702 * Makefile (install-lib-ldscripts): New variable.
703
49dc759f
UD
7042003-02-21 Ulrich Drepper <drepper@redhat.com>
705
8c2e9a29
UD
706 * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
707 * pthread_cancel.c: Use INVALID_TD_P.
708 * pthread_detach.c: Likewise.
709 * pthread_getschedparam.c: Likewise.
710 * pthread_setschedparam.c: Likewise.
711 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
712 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
713 * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
714 * pthread_timedjoin.c: Likewise.
715
716 * tst-basic7.c: Include <signal.h>.
717
49dc759f
UD
718 * pthread_join.c (pthread_join): Limited checking for invalid
719 descriptors.
720 * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
721
df5803bf
UD
7222003-02-20 Ulrich Drepper <drepper@redhat.com>
723
c5acd3d7
UD
724 * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
725 beginning of the loop. Clear the entire first block of TSD.
df5803bf
UD
726 * Makefile (tests): Add tst-key4.
727 * tst-key4.c: New file.
728
729924a0
UD
7292003-02-18 Ulrich Drepper <drepper@redhat.com>
730
2f7dc594
UD
731 * Makefile (tests): Add tst-basic7.
732 * tst-basic7.c: New file.
733
ba25bb0f
UD
734 * pthread_create.c (deallocate_tsd): Mark as internal_function.
735 Add some more __builtin_expect.
736
12fd3c5f 737 * pthreadP.h: Define dummy version of DEBUGGING_P.
729924a0 738
5430d926
UD
7392003-02-17 Ulrich Drepper <drepper@redhat.com>
740
b0db7fbe
UD
741 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
742 _POSIX_THREAD_PRIORITY_SCHEDULING.
743 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
744 _XOPEN_REALTIME_THREADS.
745 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
746
747 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
748 kernel returns EINVAL for PID <= 0, work around it.
749
ecfda9bd
UD
750 * Makefile (tests): Add tst-signal5.
751 * tst-signal5.c: New file.
752
7d78ab99
UD
753 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
754 and LOGIN_NAME_MAX.
755
371a2972
UD
756 * tst-cancel1.c (tf): Block all signals.
757
5430d926
UD
758 * Makefile (tests): Add tst-basic6.
759 * tst-basic6.c: New file.
760
761 * tst-basic1.c: Add test for process ID.
762
763 * Makefile (tests): Add tst-cancel10.
764 * tst-cancel10.c: New file.
765
766 * Makefile (tests): Add tst-signal4.
767 * tst-signal4.c: New file.
768
769 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
770 __sigismember instead of sigismember. Add __builtin_expect.
771
1564916a
UD
7722003-02-16 Ulrich Drepper <drepper@redhat.com>
773
179ff175
UD
774 * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
775 pthread_setcancelstate, and pthread_rwlock_setpshared.
776
e4335f9a
UD
777 * tst-cancel7.c (do_test): Make sure the pid file exists before
778 canceling the thread.
779
0a37669a
UD
780 * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
781 pthread_rwlock_timedrdlock tests.
782 * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
783 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
784 Check for invalid tv_nsec field.
785 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
786 Likewise.
787
788 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
789 recursive mutex of overflow.
790
791 * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
792
e4335f9a 793 * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
1564916a
UD
794 going into an endless loop.
795 * Makefile (tests): Add tst-cancel9.
796 * tst-cancel9.c: New file.
797
798 * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
799
b270b548
UD
8002003-02-15 Ulrich Drepper <drepper@redhat.com>
801
1c82b97f
UD
802 * tst-mutex5.c (do_test): Add more timedlock tests.
803
b2f05465 804 * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
c3bb9ee1
UD
805 * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
806
e798b60f
UD
807 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
808 use INLINE_SYSCALL. Error number is returned, not -1.
809
90491dc4
UD
810 * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
811 and __deallocate_stack with internal_function.
812 * pthread_create.c: Adjust definitions appropriately.
813 * allocatestack.c: Likewise.
814
815 * pthread_join.c: Add one more __builtin_expect.
816 * pthread_timedjoin.c: Likewise.
817
818 * pthread_getspecific.c (__pthread_getspecific): Clear data->data
819 not data of sequence number does not match.
820 Add one __builtin_expect.
821
c6247c9d
UD
822 * Makefile (tests): Add tst-clock1.
823 * tst-clock1.c: New file.
824
b270b548
UD
825 * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
826 negative arguments.
827 * Makefile (tests): Add tst-basic5.
828 * tst-basic5.c: New file.
829
700bf7af
UD
8302003-02-14 Ulrich Drepper <drepper@redhat.com>
831
757de559
UD
832 * Makefile (tests): Add tst-basic4.
833 * tst-basic4.c: New file.
834
47202270
UD
835 * pthreadP.h: Add declaraction for __nptl_nthreads.
836 * pthread_create.c: Define __nptl_nthreads
837 (start_thread): Increment __nptl_nthreads at beginning. Decrement
b270b548 838 after thread is done. If then zero, call exit(0).
47202270
UD
839 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
840 Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
841 * init.c (pthread_functions): Initialize ptr_nthreads.
842 * allocatestack.c (nptl_nthreads): Remove definition and all uses.
843 (__reclaim_stacks): Decrement __nptl_nthreads.
844 * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
845 Define.
846 * Makefile (tests): Add tst-basic3.
847 * tst-basic3.c: New file.
848
e320ef46
UD
849 * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
850 after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
851 * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
852 * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
853 if asynchronous canceling is enabled.
854 * pthread_join.c (pthread_join): When recognizing circular joins,
855 take into account the other thread might be already canceled.
856 * Makefile (tests): Add tst-join5.
857 * tst-join5.c: New file.
858
700bf7af
UD
859 * Makefile (tests): Add tst-join4.
860 * tst-join4.c: New file.
861
8622003-02-13 Ulrich Drepper <drepper@redhat.com>
863
864 * tst-cond4.c (main): Add test of pthread_attr_getpshared.
865
dac0f772
UD
8662003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
867
868 * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
869 THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
870 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
871 warning.
872 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
873 to avoid warning.
874 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
875 error if lll_futex_wake failed.
876
e8cda341
UD
8772003-02-13 Ulrich Drepper <drepper@redhat.com>
878
a7720b5e
UD
879 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
880 handling of cancellation and failung pthread_mutex_unlock call.
881 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
882 * Makefile (tests): Add tst-cond8 and tst-cond9.
883 * tst-cond8.c: New file.
884 * tst-cond9.c: New file.
885
a1ea4c06
UD
886 * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
887
888 * sysdeps/pthread/pthread.h: Add missing initializers. Protect
889 non-standard initializers with __USE_GNU.
890
e8cda341
UD
891 * Makefile (tests): Add tst-cleanup3.
892 * tst-cleanup3.c: New file.
893
2067577c
UD
8942003-02-12 Ulrich Drepper <drepper@redhat.com>
895
89e78a95
UD
896 * Makefile (tests): Add tst-attr1 and tst-attr2.
897 * tst-attr1.c: New file.
898 * tst-attr2.c: New file.
899
dfdd294a
UD
900 * Makefile: Add rules to build and run tst-atfork2 test.
901 * tst-atfork2.c: New file.
902 * tst-atfork2mod.c: New file.
903
904 * sysdeps/unix/sysv/linux/unregister-atfork.c
905 (__unregister_atfork): Free the memory allocated for the handlers
906 after removing them from the lists.
907
908 * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
909 cleanup function.
910
911 * tst-atfork1.c (do_test): Wait for the child we forked.
912 Report error in child.
913
914 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
915
2067577c
UD
916 * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
917
2a8a8a84
UD
9182003-02-10 Ulrich Drepper <drepper@redhat.com>
919
d9dd121e
UD
920 * Makefile (tests): Add tst-cancel8.
921 * tst-cancel8.c: New file.
922
2a8a8a84
UD
923 * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
924 clearing of control variable.
defd1870 925 * Makefile (tests): Add tst-once3 and tst-once4.
2a8a8a84 926 * tst-once3.c: New file.
defd1870 927 * tst-once4.c: New file.
2a8a8a84 928
a54e8d33
UD
9292003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
930
931 * sysdeps/sh/Makefile: New file.
932 * sysdeps/sh/bits/atomic.h: New file.
933 * sysdeps/sh/pthread_spin_init.c: New file.
934 * sysdeps/sh/pthread_spin_lock.c: New file.
935 * sysdeps/sh/pthread_spin_trylock.S: New file.
936 * sysdeps/sh/pthread_spin_unlock.S: New file.
937 * sysdeps/sh/pthreaddef.h: New file.
938 * sysdeps/sh/tcb-offsets.sym: New file.
939 * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
940 * sysdeps/sh/tls.h: New file.
941 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
942 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
943 * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
944 * sysdeps/unix/sysv/linux/sh/fork.c: New file.
945 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
946 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
947 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
948 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
949 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
950 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
951 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
952 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
953 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
954 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
955 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
956 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
957 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
958 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
959 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
960 * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
961 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
962 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
963 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
964 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
965 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
966 * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
967 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
968 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
969 * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
970 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
971
696e556e
UD
9722003-02-08 Ulrich Drepper <drepper@redhat.com>
973
974 * tst-cond2.c: Rearrange code to not rely on behavior undefined
975 according to POSIX.
976
977 * tst-basic2.c (do_test): Lock mutex before creating the thread.
978
fef710d6
UD
9792003-02-07 Ulrich Drepper <drepper@redhat.com>
980
c6180643
UD
981 * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
982 (TLS_GET_FS): New #define.
983 (TLS_SET_FS): New #define.
984 Correct value of __NR_set_thread_area.
985
fef710d6
UD
986 * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
987
11090a99
UD
9882003-02-06 Ulrich Drepper <drepper@redhat.com>
989
65c68990
UD
990 * Makefile (tests): Add tst-popen1.
991 * tst-popen1.c: New file.
992
11090a99
UD
993 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
994 but inactive generalization.
995 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
996 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
997 Minor optimization, remove one instruction.
998 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
999
a88c9263
UD
10002003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
1001
1002 * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
1003
10042003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
1005
1006 * init.c (__NR_set_tid_address): Add #ifdef for s390.
1007 * sysdeps/pthread/pthread_barrier_wait.c: New file.
1008 * sysdeps/pthread/pthread_cond_broadcast.c: New file.
1009 * sysdeps/pthread/pthread_cond_signal.c: New file.
1010 * sysdeps/pthread/pthread_cond_timedwait.c: New file.
1011 * sysdeps/pthread/pthread_cond_wait.c: New file.
1012 * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
1013 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
1014 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
1015 * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
1016 * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
1017 * sysdeps/s390/Makefile: New file.
1018 * sysdeps/s390/bits/atomic.h: New file.
1019 * sysdeps/s390/pthread_spin_init.c: New file.
1020 * sysdeps/s390/pthread_spin_lock.c: New file.
1021 * sysdeps/s390/pthread_spin_trylock.c: New file.
1022 * sysdeps/s390/pthread_spin_unlock.c: New file.
1023 * sysdeps/s390/pthreaddef.h: New file.
1024 * sysdeps/s390/tcb-offsets.sym: New file.
1025 * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
1026 * sysdeps/s390/tls.h: New file.
1027 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
1028 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
1029 * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
1030 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
1031 * sysdeps/unix/sysv/linux/s390/fork.c: New file.
1032 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
1033 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
1034 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
1035 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
1036 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
1037 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
1038 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
1039 * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
1040 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
1041 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
1042 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
1043 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
1044 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
1045 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
1046 * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
1047 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
1048 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
1049 * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
1050
6f1cff95
UD
10512003-02-04 Ulrich Drepper <drepper@redhat.com>
1052
ec609a8e
UD
1053 * atomic.h: Add a couple more default implementations.
1054 (atomic_compare_and_exchange_acq): Use
d45e8740
UD
1055 __arch_compare_and_exchange_32_acq in return value definition. It
1056 always exists.
1057 (atomic_bit_set): Renamed from atomic_set_bit.
0289bef9 1058 Add missing atomic_ prefixes.
e3ec8904 1059
6f1cff95
UD
1060 * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
1061 thread library is available, use correct value to mark initialized
1062 once variable.
1063
4f088329
UD
10642003-02-03 Ulrich Drepper <drepper@redhat.com>
1065
6f1cff95
UD
1066 * allocatestack.c (allocate_stack): Use __getpagesize instead of
1067 __sysconf to determine pagesize.
1068
3e4fc359 1069 * pthread_create.c: Include <atomic.h>.
4f088329
UD
1070 * allocatestack.c (allocate_stack): Implement coloring of the
1071 allocated stack memory. Rename pagesize to pagesize_m1. It's the
1072 size minus one. Adjust users.
3e4fc359 1073 * sysdeps/i386/i686/Makefile: New file.
4f088329 1074
2f42e8be
UD
10752003-02-02 Ulrich Drepper <drepper@redhat.com>
1076
4301f7e2
UD
1077 * allocatestack.c: Improve comment throughout the file.
1078
2f42e8be 1079 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
a37818b3 1080 (__lll_lock_wait): Add branch prediction.
2f42e8be
UD
1081 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
1082 (__lll_lock_wait): Likewise.
1083 (lll_unlock_wake_cb): Removed.
1084
4a7d6545
UD
10852003-01-31 Ulrich Drepper <drepper@redhat.com>
1086
1087 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
1088 _POSIX_THREAD_PRIORITY_SCHEDULING.
1089
886d5973
UD
10902003-01-30 Jakub Jelinek <jakub@redhat.com>
1091
1092 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
1093 Fix return type of ptr___pthread_getspecific.
1094
e474ca78
UD
10952003-01-29 Ulrich Drepper <drepper@redhat.com>
1096
1097 * Makefile (tests): Add tst-umask1.
1098 (tst-umask1-ARGS): Define.
1099 * tst-umask1.c: New file.
1100
e6ebd2e4
UD
11012003-01-28 Ulrich Drepper <drepper@redhat.com>
1102
6cf26f41
UD
1103 * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
1104 pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
1105 pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
1106 pthread_rwlock_unlock.
1107 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
1108 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
1109 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
1110 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
1111 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1112 New file.
1113 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
1114 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1115 New file.
1116 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
1117 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
1118 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
1119 New file.
1120 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
1121 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
1122 New file.
1123 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
1124 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
1125 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
1126 New file.
1127 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
1128 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
1129 New file.
1130 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
1131
1d087a7e
UD
1132 * Makefile (libpthread-routines): Remove lowlevelcond and
1133 lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
1134 pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
1135 and pthread_cond_broadcast.
4a99d160
UD
1136 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
1137 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
1138 * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
1139 * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
1140 * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
1141 * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
1142 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
1143 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
1144 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
1145 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
1146 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
1147 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
1148 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
1149 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
1150 * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
1151 * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
1152 * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
1153 * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
1154 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
1155 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
1156 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
1157 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
1158 * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
1159 * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
1160 * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
1161 * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
1162 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
1163 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
1164 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
1165 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
1166 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
1d087a7e 1167
e6ebd2e4
UD
1168 * sysdeps/unix/sysv/linux/i386/createthread.c: Define
1169 PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
1170 of the code is moved to ...
1171 * sysdeps/pthread/createthread.c: ...here. New file.
1172
a15698cb
UD
11732003-01-27 Ulrich Drepper <drepper@redhat.com>
1174
0566b130
UD
1175 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
1176 (__new_sem_post): Clear %eax before returning.
1177 Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
1178
e6fb8846
UD
1179 * Makefile (tests): Add tst-cleanup2.
1180 * tst-cleanup2.c: New file.
1181
a15698cb
UD
1182 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
1183 Interpret first parameter correctly.
1184
8824b0a1
UD
11852003-01-17 Ulrich Drepper <drepper@redhat.com>
1186
1187 * Makefile (headers): Add bits/semaphore.h.
1188
850dcfca
UD
11892003-01-16 Jakub Jelinek <jakub@redhat.com>
1190
1191 * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
1192 if not SHARED.
1193
574b892e
UD
11942003-01-14 Ulrich Drepper <drepper@redhat.com>
1195
a8d87c92
UD
1196 * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
1197 must be used and mapping failed.
1198 Reported by Luke Elliott <luke.elliott@activfinancial.com>.
1199
574b892e
UD
1200 * Makefile (CFLAGS-pthread_self.os): Define this, not
1201 CFLAGS-pthread_self.c.
1202
fb48047a
UD
12032003-01-13 Ulrich Drepper <drepper@redhat.com>
1204
47805511
UD
1205 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
1206 lll_unlock_wake_cb.
1207
fb48047a
UD
1208 * Makefile (libpthread-routines): Add version. Add rules to build
1209 version.os and banner.h.
1210 * version.c: New file.
1211
115bb61d
UD
12122003-01-13 Jakub Jelinek <jakub@redhat.com>
1213
1214 * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
1215 the alias unconditional.
1216 * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
1217
12182003-01-13 Ulrich Drepper <drepper@redhat.com>
1219
1220 * Makefile (CFLAGS-pthread_self.c): New definition.
1221
6aca81bb
UD
12222003-01-06 Jakub Jelinek <jakub@redhat.com>
1223
1224 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
1225 INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
1226 * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
1227 * init.c (__pthread_initialize_minimal_internal): Likewise.
1228
e9c7764e
UD
12292003-01-07 Jakub Jelinek <jakub@redhat.com>
1230
b5facfda
UD
1231 * pthreadP.h (__pthread_cond_timedwait): Add prototype.
1232
e9c7764e
UD
1233 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
1234 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
1235 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
1236 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
1237 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
1238 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
1239
bef1e42f
UD
12402003-01-06 Jakub Jelinek <jakub@redhat.com>
1241
1242 * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
1243 * pt-system.c (LIBC_CANCEL_HANDLED): Add.
1244 * tst-cancel-wrappers.sh: Remove all exceptions.
1245
bbd17455
UD
12462003-01-05 Ulrich Drepper <drepper@redhat.com>
1247
a73ab6df
UD
1248 * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
1249 features. Reported by Marijn Ros <marijn@mad.scientist.com>.
1250
bbd17455
UD
1251 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
1252 Use __libc_pthread_functions array if SHARED.
1253
1254 * pthreadP.h: Move pthread_cond_2_0_t definition to...
1255 * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
1256
1257 * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
1258 (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
1259 __libc_key_create, __libc_getspecific, __libc_setspecific): Use
1260 __libc_ptf_call instead of __libc_maybe_call.
1261 (PTF): New #define.
1262 (__libc_cleanup_region_start): Wrap function name with PTF call.
1263 (__libc_cleanup_region_end): Likewise.
1264 (__libc_cleanup_end): Likewise.
1265
1266 * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
1267 * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
1268 * pthread_key_create.c: Add __pthread_key_create_internal alias.
1269 * pthreadP.h: Add prototypes.
1270
1271 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
1272 __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
1273 __pthread_rwlock_unlock aliases.
1274 * pthreadP.h: Add prototypes for new aliases.
1275
1276 * pthreadP.h (struct pthead_functions): Moved to...
1277 * sysdeps/pthread/pthread-functions.h: ...here. New file.
1278 * init.c (pthread_functions): Add initializers for new elements.
1279
1280 * cleanup_defer.c: Add __pthread_cleanup_push_defer and
1281 __pthread_cleanup_pop_restore aliases.
1282 * pthreadP.h: Add prototypes.
1283
1284 * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
1285 and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
1286 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
1287 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
1288 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
1289 * pthreadP.h: Adjust prototypes and callers.
1290
d27a78be
UD
12912003-01-04 Ulrich Drepper <drepper@redhat.com>
1292
b74121ae
UD
1293 * Makefile (tests): Add tst-cancel7.
1294 (tst-cancel7-ARGS): New variable.
bbd17455 1295 * tst-cancel7.c: New file.
b74121ae 1296
29bc410c
UD
1297 * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
1298 around gcc defficiencies.
1299 * old_pthread_cond_signal.c: Likewise.
1300 * old_pthread_cond_timedwait.c: Likewise.
1301 * old_pthread_cond_wait.c: Likewise.
1302
d27a78be
UD
1303 * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
1304
733f25e6
UD
13052003-01-03 Ulrich Drepper <drepper@redhat.com>
1306
7edb2ae3
UD
1307 * Makefile (tests): Add tst-cond7.
1308 * tst-cond7.c: New file.
1309
b1151300
UD
1310 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
1311 (condvar_cleanup): Get condvar address from the right place.
1312
733f25e6
UD
1313 * atomic.h: Correct definitions of atomic_full_barrier,
1314 atomic_read_barrier, atomic_write_barrier.
1315
1316 * old_pthread_cond_broadcast.c: Make memory allocate and initialization
1317 race-free.
1318 * old_pthread_cond_signal.c: Likewise.
1319 * old_pthread_cond_timedwait.c: Likewise.
1320 * old_pthread_cond_wait.c: Likewise.
1321
686b7223
UD
13222003-01-03 Jakub Jelinek <jakub@redhat.com>
1323
1324 * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
1325
0e07706e
UD
13262003-01-03 Ulrich Drepper <drepper@redhat.com>
1327
997256dd
UD
1328 * pthreadP.h (pthread_cond_2_0_t): New type.
1329 (struct pthread_functions): Use new type for 2.0 condvar callbacks.
1330 Use new type for the 2.0 condvar function prototypes.
1331 * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
1332 * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
1333 parameter.
1334 * old_pthread_cond_destroy.c: Likewise.
1335 * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
1336 * old_pthread_cond_signal.c: Likewise.
1337 * old_pthread_cond_timedwait.c: Likewise.
1338 * old_pthread_cond_wait.c: Likewise.
1339
842d2817
UD
1340 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
1341 (__pthread_cond_wait): Don't save cancellation mode and seq value
1342 in same location.
1343
0e07706e
UD
1344 * herrno.c (__h_errno_location): Don't define as weak.
1345
bf293afe
UD
13462003-01-02 Jakub Jelinek <jakub@redhat.com>
1347
1348 * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
1349 pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
1350 and pthread_cond_wait.
1351 * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
1352 Renamed to...
1353 (__pthread_cond_broadcast_2_0): ... this.
1354 * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
1355 Renamed to...
1356 (__pthread_cond_destroy_2_0): ... this.
1357 * old_pthread_cond_init.c (__old_pthread_cond_init):
1358 Renamed to...
1359 (__pthread_cond_init_2_0): ... this.
1360 * old_pthread_cond_signal.c (__old_pthread_cond_signal):
1361 Renamed to...
1362 (__pthread_cond_signal_2_0): ... this.
1363 * old_pthread_cond_wait.c (__old_pthread_cond_wait):
1364 Renamed to...
1365 (__pthread_cond_wait_2_0): ... this.
1366 * pthread_cond_destroy.c: Include shlib-compat.h.
1367 (pthread_cond_destroy): Change strong_alias into versioned_symbol.
1368 * pthread_cond_init.c: Include shlib-compat.h.
1369 (pthread_cond_init): Change strong_alias into versioned_symbol.
1370 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
1371 fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
1372 fields.
1373 (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
1374 __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
1375 __pthread_cond_wait_2_0): New prototypes.
1376 (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
1377 __old_pthread_cond_init, __old_pthread_cond_signal,
1378 __old_pthread_cond_wait): Removed.
1379 * init.c: Include shlib-compat.h.
1380 (pthread_functions): Guard ptr___pthread_attr_init_2_0
1381 initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
1382 Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
1383 ptr___pthread_cond_*_2_0 fields.
1384 * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
1385 pthread_cond_*@GLIBC_2.0 compatibility symbols.
1386
1387 * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
1388 LIBC_SIGACTION was not yet defined.
1389 [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
1390 [!defined LIBC_SIGACTION] (__sigaction): New function and
1391 libc_hidden_weak.
1392 [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
1393 [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
1394
13952003-01-02 Jakub Jelinek <jakub@redhat.com>
1396
1397 * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
1398
05df18c3
UD
13992003-01-02 Ulrich Drepper <drepper@redhat.com>
1400
1401 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
1402 New, larger type definition.
1403 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
1404 implementation.
1405 * Versions [libpthread]: Add definitions for new pthread_cond_*
1406 interfaces for version GLIBC_2.3.2.
1407 * pthread_cond_init.c: Update initialization for new type definition.
1408 * Makefile (libpthread-routines): Remove pthread_cond_wait,
1409 pthread_cond_timedwait, pthread_cond_signal, and
1410 pthread_cond_broadcast. Add old_pthread_cond_init,
1411 old_pthread_cond_destroy, old_pthread_cond_wait,
1412 old_pthread_cond_timedwait, old_pthread_cond_signal, and
1413 old_pthread_cond_broadcast.
1414 * old_pthread_cond_broadcast.c: New file.
1415 * old_pthread_cond_destroy.c: New file.
1416 * old_pthread_cond_init.c: New file.
1417 * old_pthread_cond_signal.c: New file.
1418 * old_pthread_cond_timedwait.c: New file.
1419 * old_pthread_cond_wait.c: New file.
1420 * pthreadP.h: Add prototypes for the compatibility interfaces.
1421
1422 * pthread_cond_destroy.c: Don't include <errno.h>.
1423
fd8979e4
UD
14242003-01-01 Ulrich Drepper <drepper@redhat.com>
1425
1426 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
1427 unnecessary zero offset when addressing MUTEX.
1428
6d6ee629
UD
14292002-12-31 Ulrich Drepper <drepper@redhat.com>
1430
1431 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
1432 __register_atfork.
1433 * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
1434 for __register_atfork.
1435
a4baf360
UD
14362002-12-31 Jakub Jelinek <jakub@redhat.com>
1437
1438 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
1439 instead of ASSEMBLER test macro.
1440
1441 * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
1442 __libc_current_sigrtmax): Add libc_hidden_def.
1443
1444 * sysdeps/pthread/list.h: Remove assert.h include.
1445
e9395a94
UD
14462002-12-31 Ulrich Drepper <drepper@redhat.com>
1447
1448 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
1449 __pthread_initialize_minimal_internal not
1450 __pthread_initialize_minimal.
1451
89d6e444
UD
14522002-12-30 Ulrich Drepper <drepper@redhat.com>
1453
416d2de6
UD
1454 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
1455 __pthread_initialize_minimal as hidden.
1456
89d6e444
UD
1457 * init.c (__pthread_initialize_minimal_internal): Don't mark as
1458 constructor.
1459
14602002-12-31 Jakub Jelinek <jakub@redhat.com>
1461
1462 * Makefile ($(inst_libdir)/libpthread.so): Depend on
1463 $(common-objpfx)format.lds, include that into the output script.
1464 Fix comment.
1465 (extra-B-pthread.so): Change linuxthreads/ into nptl/.
1466
8cac677c
UD
14672002-12-28 Andreas Jaeger <aj@suse.de>
1468
1469 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
1470 nsec resolution changes.
1471 (xstat64_conv): Likewise.
1472 (xstat32_conv): Likewise.
1473 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
1474 struct kernel_stat.
1475 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
1476 structs stat and stat64.
1477 * time/time.h (__timespec_defined): Define for __USE_MISC.
89d6e444 1478 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
8cac677c 1479
49e9f864
UD
14802002-12-30 Jakub Jelinek <jakub@redhat.com>
1481
1482 * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
1483 argument.
1484 (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
1485 (pthread_exit): Use strong_alias to avoid warnings.
1486 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
1487 and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
1488 ptr___pthread_attr_init_2_*.
1489 * init.c (pthread_functions): Adjust.
1490
bab09b26
UD
14912002-12-29 Ulrich Drepper <drepper@redhat.com>
1492
598d7a42
UD
1493 * forward.c: Make all functions available by default again. It
1494 caused too much trouble.
1495
bab09b26
UD
1496 * pt-siglongjmp.c: Removed.
1497
3b7ed871
UD
14982002-12-28 Jakub Jelinek <jakub@redhat.com>
1499
1500 * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
1501 (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
1502 * sysdeps/i386/Makefile: New file.
1503 * sysdeps/i386/tcb-offsets.sym: New file.
1504 * sysdeps/pthread/tcb-offsets.h: New file.
1505 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
1506 Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
1507
1508 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
1509 __register_atfork...
1510 (GLIBC_2.3.2): ...here.
1511
15122002-12-28 Ulrich Drepper <drepper@redhat.com>
1513
1514 * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
1515 pthread_attr_setstackaddr with __attribute_deprecated__.
1516
270d9d47
UD
15172002-12-27 Jakub Jelinek <jakub@redhat.com>
1518
1519 * pt-system.c (system): Remove cancellation handling.
1520 * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
1521 cancellation routines.
1522
131fd126
UD
15232002-12-28 Ulrich Drepper <drepper@redhat.com>
1524
afb2e954
UD
1525 * descr.h: Include <dl-sysdep.h>.
1526 (struct pthread): Move header.data.list to the back of the struct.
131fd126
UD
1527 * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
1528 (MULTIPLE_THREADS_OFFSET): Adjust offset.
1529 (SYSINFO_OFFSEET): Likewise.
1530
15312002-12-27 Jakub Jelinek <jakub@redhat.com>
1532
1533 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
1534 Define.
1535 (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
1536 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
1537 DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
1538 (USE_DL_SYSINFO): Undef.
1539
15402002-12-22 Jakub Jelinek <jakub@redhat.com>
1541
1542 * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
1543 $(common-objpfx)libc.so.
1544 * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
1545 it is bigger than pipe buffer size even on arches with bigger
1546 page size.
1547 (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
1548
a218c9cf
UD
15492002-12-25 Ulrich Drepper <drepper@redhat.com>
1550
1551 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
1552 correct errno access for case that USE___THREAD is not defined.
1553
015a2dc9
UD
15542002-12-24 Ulrich Drepper <drepper@redhat.com>
1555
1556 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
1557 Patch by Marijn Ros <marijn@mad.scientist.com>.
1558
5220f9ac
RM
15592002-12-22 Roland McGrath <roland@redhat.com>
1560
1561 * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
1562
1561bf63
UD
15632002-12-20 Ulrich Drepper <drepper@redhat.com>
1564
1565 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
1566
3325198e
UD
15672002-12-19 Ulrich Drepper <drepper@redhat.com>
1568
057c823f
UD
1569 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
1570 NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
1571 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
1572
097eca29
UD
1573 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
1574 of int $0x80.
1575 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
1576 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
1577 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
1578 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
1579 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
1580 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
1581 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
1582 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
1583
1584 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
1585 sysenter.
1586 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
1587
1588 * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
1589
5f5843e3
UD
1590 * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
1591 in new TCB.
1592 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
1593 that sysinfo is properly initialized.
1594 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
1595 to 1 only for ld.so.
1596
3325198e
UD
1597 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
1598 RTLD_CORRECT_DYNAMIC_WEAK.
1599
74e8f2dc
UD
16002002-12-19 Jakub Jelinek <jakub@redhat.com>
1601
1602 * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
1603 Use return 0 as 6th argument to FORWARD4.
1604 * pthread_equal.c: Include pthreadP.h instead of pthread.h.
1605
df45b31e
UD
16062002-12-18 Ulrich Drepper <drepper@redhat.com>
1607
1608 * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
1609 * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
1610 Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
1611 (INIT_SYSINFO): New #define.
1612 (TLS_TP_INIT): Use INIT_SYSINFO.
1613 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
1614 At test to make sure SYSINFO_OFFSET value is correct.
1615 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
1616
3d539579
UD
16172002-12-18 Jakub Jelinek <jakub@redhat.com>
1618
1619 * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
1620 * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
1621 * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
1622 [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
1623 __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
1624 __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
1625 __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
1626
d7913e0e
UD
16272002-12-18 Ulrich Drepper <drepper@redhat.com>
1628
f051627f
UD
1629 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
1630 macro instead of using int $0x80 directly.
1631
d7913e0e
UD
1632 * sysdeps/pthread/bits/stdio-lock.h: New file.
1633 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
1634 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
1635 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
1636 * Makefile (routines): Add libc-lowlevelmutex.
1637
1638 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
1639 __i686.get_pc_thunk.dx.
1640
f077a4a9
UD
16412002-12-17 Jakub Jelinek <jakub@redhat.com>
1642
1643 * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
1644 (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
1645 ($(objpfx)tst-cancel-wrappers.out): New rule.
1646 * tst-cancel-wrappers.sh: New test.
1647 * tst-locale1.c: Include signal.h.
1648 (uselocale): Test static linking of __libc_current_sigrt*.
1649
16502002-12-17 Ulrich Drepper <drepper@redhat.com>
1651
1652 * Makefile (tests): Add tst-cancel6.
1653 * tst-cancel6.c: New file
1654
bd499a3b
UD
16552002-12-17 Jakub Jelinek <jakub@redhat.com>
1656
1657 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
1658 Define meaningfully for assembler as well.
1659 * pthreadP.h (struct pthread_functions): Remove
1660 ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
1661 and ptr_pthread_attr_init_2_1 fields.
1662 * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
1663 and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
1664 * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
1665 (FORWARD3): Define using FORWARD4.
1666 (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
1667 versions.
1668 * pt-system.c: Remove duplicate stdlib.h include.
1669
0a1063f4
UD
16702002-12-16 Ulrich Drepper <drepper@redhat.com>
1671
87d60668
UD
1672 * sem_init.c: Define sem_init@GLIBC_2.0.
1673 * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
1674 * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
1675
0a1063f4
UD
1676 * flockfile.c: Moved to...
1677 * sysdeps/pthread/flockfile.c: ...here. New file.
1678 * funlockfile.c: Moved to...
1679 * sysdeps/pthread/funlockfile.c: ...here. New file.
1680 * ftrylockfile.c: Moved to...
1681 * sysdeps/pthread/ftrylockfile.c: ...here. New file.
1682
9634cf9d
UD
16832002-12-16 Jakub Jelinek <jakub@redhat.com>
1684
1685 * libc-cancellation.c: Guard both function with
1686 #if !defined NOT_IN_libc.
1687 * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
1688 automatically provided pthread wrappers.
1689 * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
1690 CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
1691 nor in libpthread.
1692 * pt-open.c: Removed.
1693 * pt-fcntl.c: Removed.
1694 * pt-fsync.c: Removed.
1695 * pt-lseek.c: Removed.
1696 * pt-msgrcv.c: Removed.
1697 * pt-msgsnd.c: Removed.
1698 * pt-msync.c: Removed.
1699 * pt-nanosleep.c: Removed.
1700 * pt-open64.c: Removed.
1701 * pt-pause.c: Removed.
1702 * pt-pread.c: Removed.
1703 * pt-pread64.c: Removed.
1704 * pt-pwrite.c: Removed.
1705 * pt-pwrite64.c: Removed.
1706 * pt-read.c: Removed.
1707 * pt-recv.c: Removed.
1708 * pt-recvfrom.c: Removed.
1709 * pt-recvmsg.c: Removed.
1710 * pt-send.c: Removed.
1711 * pt-sendto.c: Removed.
1712 * pt-sigtimedwait.c: Removed.
1713 * pt-sigwait.c: Removed.
1714 * pt-wait.c: Removed.
1715 * pt-waitpid.c: Removed.
1716 * pt-write.c: Removed.
1717 * pt-accept.c: Removed.
1718 * pt-close.c: Removed.
1719 * pt-connect.c: Removed.
1720 * pt-lseek64.c: Removed.
1721 * pt-sendmsg.c: Removed.
1722 * pt-tcdrain.c: Removed.
1723
6ee8d334
UD
17242002-12-15 Ulrich Drepper <drepper@redhat.com>
1725
81fa9371
UD
1726 * init.c (__pthread_initialize_minimal_internal): Renamed from
1727 __pthread_initialize_minimal. Make old name an alias. This
1728 converts a normal relocation into a relative relocation.
1729
f3015aa5
UD
1730 * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
1731
4cbc1950
UD
1732 * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
1733 readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
1734 * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
1735 pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
1736 pt-sigwaitinfo, pt-waitid, and pt-writev.
1737 * pt-creat.c: Removed.
1738 * pt-poll.c: Removed.
1739 * pt-pselect.c: Removed.
1740 * pt-readv.c: Removed.
1741 * pt-select.c: Removed.
1742 * pt-sigpause.c: Removed.
1743 * pt-sigsuspend.c: Removed.
1744 * pt-sigwaitinfo.c: Removed.
1745 * pt-waitid.c: Removed.
1746 * pt-writev.c: Removed.
1747
8454830b
UD
1748 * init.c (pthread_functions): New variable.
1749 (__pthread_initialize_minimal): Pass pointer to pthread_functions
1750 (or NULL) to __libc_pthread_init.
1751 * forward.c: Rewrite to use __libc:pthread_functions array to get
1752 function addresses.
1753 * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
1754 prototype.
1755 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
1756 Take new parameter. Copy content of variable pointed to by it
1757 to __libc_pthread_init.
1758
1759 * pthreadP.h (struct pthread_functions): New type.
1760 (__libc_pthread_init): Declare.
1761
1762 * pthread_attr_destroy.c: Add namespace protected alias.
1763 * pthread_attr_getdetachstate.c: Likewise.
1764 * pthread_attr_getinheritsched.c: Likewise.
1765 * pthread_attr_getschedparam.c: Likewise.
1766 * pthread_attr_getschedpolicy.c: Likewise.
1767 * pthread_attr_getscope.c: Likewise.
1768 * pthread_attr_setdetachstate.c: Likewise.
1769 * pthread_attr_setinheritsched.c: Likewise.
1770 * pthread_attr_setschedparam.c: Likewise.
1771 * pthread_attr_setschedpolicy.c: Likewise.
1772 * pthread_attr_setscope.c: Likewise.
1773 * pthread_cond_broadcast.c: Likewise.
1774 * pthread_cond_destroy.c: Likewise.
1775 * pthread_cond_init.c: Likewise.
1776 * pthread_cond_signal.c: Likewise.
1777 * pthread_cond_wait.c: Likewise.
1778 * pthread_condattr_destroy.c: Likewise.
1779 * pthread_condattr_init.c: Likewise.
1780 * pthread_equal.c: Likewise.
1781 * pthread_exit.c: Likewise.
1782 * pthread_getschedparam.c: Likewise.
1783 * pthread_self.c: Likewise.
1784 * pthread_setcancelstate.c: Likewise.
1785 * pthread_setschedparam.c: Likewise.
1786 * pthread_mutex_destroy.c: Likewise.
1787 * pthread_mutex_init.c: Likewise.
1788 * pthreadP.h: Add prototypes for the aliases.
1789
0d5f4929
UD
1790 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
1791 multiple_threads member in correct TCB to 1.
1792
6ee8d334
UD
1793 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
1794 SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
1795 member of thread decriptor, otherwise return unconditionally 1.
1796
2fb6444d
UD
17972002-12-14 Ulrich Drepper <drepper@redhat.com>
1798
1799 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
1800 regular Linux version. Remove file.
1801 * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
1802 * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
1803 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
1804 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
1805 * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
1806 * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
1807 * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
1808 * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
1809 * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
1810 * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
1811 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
1812 * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
1813 * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
1814 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
1815 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
1816 * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
1817 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
1818 * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
1819 * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
1820 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
1821 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
1822 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
1823 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
1824 * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
1825 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
1826 * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
1827 * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
1828 * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
1829 * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
1830 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
1831
86b2dc40
UD
18322002-12-14 Jakub Jelinek <jakub@redhat.com>
1833
1834 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
1835 * sysdeps/unix/sysv/linux/open.c: Removed.
1836 * sysdeps/unix/sysv/linux/fsync.c: Removed.
1837 * sysdeps/unix/sysv/linux/lseek.c: Removed.
1838 * sysdeps/unix/sysv/linux/msync.c: Removed.
1839 * sysdeps/unix/sysv/linux/read.c: Removed.
1840 * sysdeps/unix/sysv/linux/close.c: Removed.
1841 * sysdeps/unix/sysv/linux/creat.c: Removed.
1842 * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
1843 * sysdeps/unix/sysv/linux/pause.c: Removed.
1844 * sysdeps/unix/sysv/linux/select.c: Removed.
1845 * sysdeps/unix/sysv/linux/write.c: Removed.
1846
9d263d72
UD
18472002-12-14 Ulrich Drepper <drepper@redhat.com>
1848
1849 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
1850 element in TCB to see whether locking is needed.
1851
1852 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
1853 MULTIPLE_THREADS_OFFSET value is correct.
1854
1855 * sysdeps/unix/sysv/linux/close.c: New file.
1856 * sysdeps/unix/sysv/linux/connect.S: New file.
1857 * sysdeps/unix/sysv/linux/creat.c: New file.
1858 * sysdeps/unix/sysv/linux/fsync.c: New file.
1859 * sysdeps/unix/sysv/linux/llseek.c: New file.
1860 * sysdeps/unix/sysv/linux/lseek.c: New file.
1861 * sysdeps/unix/sysv/linux/msgrcv.c: New file.
1862 * sysdeps/unix/sysv/linux/msgsnd.c: New file.
1863 * sysdeps/unix/sysv/linux/msync.c: New file.
1864 * sysdeps/unix/sysv/linux/nanosleep.c: New file.
1865 * sysdeps/unix/sysv/linux/open.c: New file.
1866 * sysdeps/unix/sysv/linux/open64.c: New file.
1867 * sysdeps/unix/sysv/linux/pause.c: New file.
1868 * sysdeps/unix/sysv/linux/poll.c: New file.
1869 * sysdeps/unix/sysv/linux/pread.c: New file.
1870 * sysdeps/unix/sysv/linux/pread64.c: New file.
1871 * sysdeps/unix/sysv/linux/pselect.c: New file.
1872 * sysdeps/unix/sysv/linux/pwrite.c: New file.
1873 * sysdeps/unix/sysv/linux/pwrite64.c: New file.
1874 * sysdeps/unix/sysv/linux/readv.c: New file.
1875 * sysdeps/unix/sysv/linux/recv.S: New file.
1876 * sysdeps/unix/sysv/linux/recvfrom.S: New file.
1877 * sysdeps/unix/sysv/linux/recvmsg.S: New file.
1878 * sysdeps/unix/sysv/linux/select.c: New file.
1879 * sysdeps/unix/sysv/linux/send.S: New file.
1880 * sysdeps/unix/sysv/linux/sendmsg.S: New file.
1881 * sysdeps/unix/sysv/linux/sendto.S: New file.
1882 * sysdeps/unix/sysv/linux/sigpause.c: New file.
1883 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
1884 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
1885 * sysdeps/unix/sysv/linux/sigwait.c: New file.
1886 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
1887 * sysdeps/unix/sysv/linux/system.c: New file.
1888 * sysdeps/unix/sysv/linux/tcdrain.c: New file.
1889 * sysdeps/unix/sysv/linux/wait.c: New file.
1890 * sysdeps/unix/sysv/linux/waitid.c: New file.
1891 * sysdeps/unix/sysv/linux/waitpid.c: New file.
1892 * sysdeps/unix/sysv/linux/writev.c: New file.
1893 * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
1894
1895 * pt-readv.c: Fix comment.
1896
18972002-12-14 Jakub Jelinek <jakub@redhat.com>
1898
1899 * tst-cleanup1.c: Include stdlib.h.
1900
1901 * tst-cancel5.c: New test.
1902 * Makefile (tests): Add tst-cancel5.
1903 (tst-cancel5): Link against libc.so libpthread.so in that order.
1904
9ae0909b
UD
19052002-12-13 Ulrich Drepper <drepper@redhat.com>
1906
b7bdd9c4
UD
1907 * forward.c (test_loaded): Prevent recursive calls.
1908
9ae0909b
UD
1909 * Makefile (routines): Add libc-cancellation.
1910 * libc-cancellation.c: New file.
1911 * descr.h (struct pthread): Add multiple_threads field.
1912 * allocatestack.c (allocate_stack): Initialize multiple_header field of
1913 new thread descriptor to 1.
1914 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
1915 Initialize multiple_thread field after successful thread creation.
1916 * cancellation.c (__do_cancel): Move to pthreadP.h.
1917 (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
1918 (__pthread_disable_asynccancel): Add internal_function attribute.
1919 * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
1920 * pthread_setcancelstate.c: Likewise.
1921 * pthread_setcanceltype.c: Likewise.
1922 * pthread_exit.c: Likewise.
1923 * pthreadP.h (CANCELLATION_P): Likewise.
1924 (__do_cancel): Define as static inline.
1925 (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
1926 (__libc_enable_asynccancel, __libc_disable_asynccancel): New
1927 declarations.
1928 * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
1929 fields. Define MULTIPLE_THREADS_OFFSET.
1930 * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
1931 declaration.
1932 * sysdeps/unix/sysv/linux/accept.S: New file.
1933 * sysdeps/unix/sysv/linux/read.c: New file.
1934 * sysdeps/unix/sysv/linux/write.c: New file.
1935 * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
1936 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
1937 initialization of __libc_locking_needed.
1938 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
1939 __libc_locking_needed, use multiple_threads field in TCB.
1940 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
1941
22f20674
UD
19422002-12-12 Ulrich Drepper <drepper@redhat.com>
1943
2ad2e1e7
UD
1944 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
1945 version.
1946 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
1947
22f20674
UD
1948 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
1949 access to __libc_locking_needed for PIC.
1950
aa80bf86
UD
19512002-12-12 Jakub Jelinek <jakub@redhat.com>
1952
1953 * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
1954 declare for libc.so.
1955 (__libc_lock_init, __libc_lock_init_recursive): Change into comma
1956 expression.
1957 (__libc_lock_lock): Put into statement expression.
1958 (__libc_lock_unlock): Remove trailing semicolon.
1959 * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
1960
24021373
RM
19612002-12-12 Roland McGrath <roland@redhat.com>
1962
1963 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
1964 "m" constraint to refer to __libc_locking_needed. Declare it here.
1965
14e7aece
UD
19662002-12-12 Ulrich Drepper <drepper@redhat.com>
1967
1968 * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
1969 * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
1970 Initialize __libc_locking_needed.
1971 * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
1972 instead of __register_pthread_fork_handler.
1973 * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
1974 * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
1975 fork-gen with libc_pthread_init.
1976 * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
1977 of __register_pthread_fork_handler.
1978 * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
1979 of __register_pthread_fork_handler.
1980 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
1981 __libc_locking_needed to determine whether lock prefix can be avoided.
1982 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
1983
85631c8e
UD
19842002-12-11 Ulrich Drepper <drepper@redhat.com>
1985
da63009e
UD
1986 * Makefile (tests): Add tst-cleanup1.
1987 * tst-cleanup1.c: New file.
1988 * cancellation.c (__cleanup_thread): Removed.
1989 (__do_cancel): Remove call to __cleanup_thread.
1990 * pthreadP.h: Remove __cleanup_thread prorotype.
1991
000160a2
UD
1992 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
1993 Remember function and argument even if cancellation handler
1994 function is not available.
1995 (__libc_cleanup_region_end): Execute registered function directly if
1996 pthread functions are not available.
1997 (__libc_cleanup_end): Likewise.
1998
85631c8e
UD
1999 * init.c (__pthread_initialize_minimal): Fix initialization in
2000 static lib by preventing gcc from being too clever.
2001
dce8f2b6
UD
20022002-12-10 Ulrich Drepper <drepper@redhat.com>
2003
34a075be
UD
2004 * init.c (__pthread_initialize_minimal): Remove unneccesary
2005 sigaddset call.
2006
dce8f2b6
UD
2007 * Makefile (tests): We can run tst-locale2 now.
2008
e5e45b53
UD
20092002-12-09 Ulrich Drepper <drepper@redhat.com>
2010
2011 * Versions: Remove duplicated sigwait entry.
2012
bdb04f92
UD
20132002-12-08 Ulrich Drepper <drepper@redhat.com>
2014
1e506629
UD
2015 * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
2016 inside libpthread.
2017
a3957dd5
UD
2018 * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
2019
bdb04f92
UD
2020 * pthreadP.h: Declare __pthread_enable_asynccancel and
2021 __pthread_disable_asynccancel.
2022 (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
2023 (CANCEL_RESET): Use __pthread_disable_asynccancel.
2024 * cancellation.c (__pthread_enable_asynccancel): New function.
2025 (__pthread_disable_asynccancel): New function.
2026 * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
2027 * pt-close.c: Likewise.
2028 * pt-connect.c: Likewise.
2029 * pt-creat.c: Likewise.
2030 * pt-fcntl.c: Likewise.
2031 * pt-fsync.c: Likewise.
2032 * pt-lseek.c: Likewise.
2033 * pt-lseek64.c: Likewise.
2034 * pt-msgrcv.c: Likewise.
2035 * pt-msgsnd.c: Likewise.
2036 * pt-msync.c: Likewise.
2037 * pt-nanosleep.c: Likewise.
2038 * pt-open.c: Likewise.
2039 * pt-open64.c: Likewise.
2040 * pt-pause.c: Likewise.
2041 * pt-poll.c: Likewise.
2042 * pt-pread.c: Likewise.
2043 * pt-pread64.c: Likewise.
2044 * pt-pselect.c: Likewise.
2045 * pt-pwrite.c: Likewise.
2046 * pt-pwrite64.c: Likewise.
2047 * pt-read.c: Likewise.
2048 * pt-readv.c: Likewise.
2049 * pt-recv.c: Likewise.
2050 * pt-recvfrom.c: Likewise.
2051 * pt-recvmsg.c: Likewise.
2052 * pt-select.c: Likewise.
2053 * pt-send.c: Likewise.
2054 * pt-sendmsg.c: Likewise.
2055 * pt-sendto.c: Likewise.
2056 * pt-sigpause.c: Likewise.
2057 * pt-sigsuspend.c: Likewise.
2058 * pt-sigtimedwait.c: Likewise.
2059 * pt-sigwait.c: Likewise.
2060 * pt-sigwaitinfo.c: Likewise.
2061 * pt-system.c: Likewise.
2062 * pt-tcdrain.c: Likewise.
2063 * pt-wait.c: Likewise.
2064 * pt-waitid.c: Likewise.
2065 * pt-waitpid.c: Likewise.
2066 * pt-write.c: Likewise.
2067 * pt-writev.c: Likewise.
a3957dd5
UD
2068 * pthread_join.c: Likewise.
2069 * pthread_timedjoin.c: Likewise.
bdb04f92
UD
2070
2071 * pt-sigpause.c (sigsuspend): Call __sigsuspend.
2072 (__xpg_sigpause): New function.
2073 * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
2074
6ccb3834
UD
20752002-12-07 Ulrich Drepper <drepper@redhat.com>
2076
09efc3ba
UD
2077 * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
2078
2079 * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
2080 _GI_pthread_cleanup_pop to pthreadP.h.
2081
2082 * ftrylockfile.c: Use _IO_lock_trylock instead of
2083 pthread_mutex_trylock.
2084
2085 * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
2086 (CANCEL_RESET): Likewise.
2087 (__pthread_setcanceltype_): Declare.
2088 (__pthread_mutex_lock_internal): Declare.
2089 (__pthread_mutex_unlock_internal): Declare.
2090 (__pthread_once_internal): Declare.
2091 (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
2092 (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
2093
2094 * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
2095 and pthread_mutex_unlock.
2096 * pthread_cond_wait.c: Likewise.
2097 * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
2098 * pthread_mutex_unlock.c: Likewise.
2099
2100 * pthread_setcanceltype.c: Add additional alias
2101 __pthread_setcanceltype.
2102
2103 * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
2104 * sem_open.c (sem_open): Likewise.
2105 Use __libc_open, __libc_write, and __libc_close instead of
2106 open, write, and close respectively.
2107
2108 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
2109 Rewrite as statement expression since it must return a value.
2110
2111 * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
2112 * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
2113 __pthread_kill.
2114
2115 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
2116 alias __pthread_once_internal.
2117
6ccb3834
UD
2118 * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
2119
d3c9f895
UD
21202002-12-06 Ulrich Drepper <drepper@redhat.com>
2121
4614167a
UD
2122 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
2123 * tst-stdio1.c: New file.
2124 * tst-stdio2.c: New file.
2125
a4548cea
UD
2126 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
2127
d3c9f895
UD
2128 * Makefile (tests): Comment out tst-locale2 for now.
2129 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
2130
2131 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
2132 -D_IO_MTSAFE_IO.
2133 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
2134 Use _IO_lock_init instead of explicit assignment.
2135
2136 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
2137 Define __libc_lock_* and __libc_lock_recursive macros with
2138 lowlevellock macros, not pthread mutexes.
2139
2140 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
2141 of pthread_mutex_lock.
2142 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
2143 instead of pthread_mutex_unlock.
2144
fde89ad0
RM
21452002-12-06 Roland McGrath <roland@redhat.com>
2146
2147 * allocatestack.c (__stack_user): Use uninitialized defn.
2148 * init.c (__pthread_initialize_minimal): Initialize it here.
2149
11767d47
RM
21502002-12-05 Roland McGrath <roland@redhat.com>
2151
fde89ad0
RM
2152 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
2153 string.
2154 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2155
11767d47
RM
2156 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
2157 missing & here too.
2158
440d8bc2
UD
21592002-12-05 Ulrich Drepper <drepper@redhat.com>
2160
2161 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2162 lowlevellock.
2163 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
2164 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
2165 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
2166 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
2167 for __libc_lock_* macros.
2168 * Makefile (routines): Add libc-lowlevellock.
2169
21702002-10-09 Roland McGrath <roland@redhat.com>
2171
2172 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
2173 Under [__PIC__], call the function via the pointer fetched for
2174 comparison rather than a call by name that uses the PLT.
2175 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
2176 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
2177 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
2178 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
2179 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
2180
d5ed0118
RM
21812002-12-04 Roland McGrath <roland@redhat.com>
2182
2183 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
2184
2185 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
2186 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
2187
2188 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
2189
eaa4099f
UD
21902002-12-04 Ulrich Drepper <drepper@redhat.com>
2191
2192 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
2193 a completely opaque, non-integer type.
2194 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
2195
33b5d0cc
UD
21962002-12-05 Jakub Jelinek <jakub@redhat.com>
2197
2198 * sysdeps/i386/tls.h: Include stdlib.h.
2199 * sysdeps/x86_64/tls.h: Likewise.
2200
7a5cdb30
UD
22012002-12-04 Ulrich Drepper <drepper@redhat.com>
2202
c4a6d859
UD
2203 * Makefile (tests): Add tst-locale2.
2204 (tests-static): Likewise.
2205 * tst-locale2.c: New file.
2206
7a5cdb30
UD
2207 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
2208 volatile and add memory clobbers to lock operations.
2209
d82d5d12
UD
22102002-12-03 Ulrich Drepper <drepper@redhat.com>
2211
69cae3cf
UD
2212 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
2213 * sysdeps/i386/i486/bits/atomic.h: New file.
2214 * sysdeps/i386/i586/bits/atomic.h: New file.
2215 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
2216 include i486 version.
2217 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
2218 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
c97c64de 2219 Patch by Marijn Ros <marijn@mad.scientist.com>.
69cae3cf 2220
e4044c01
UD
2221 * allocatestack.c (get_cached_stack): Don't crash if we first
2222 found a stack with a larger size then needed.
2223 Reported by Hui Huang <hui.huang@sun.com>.
2224
d82d5d12
UD
2225 * Makefile (tests): Add tst-sysconf.
2226 * tst-sysconf.c: New file.
2227
2228 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
2229 PTHREAD_THREADS_MAX.
2230
fa9a4ff0
RM
22312002-12-02 Roland McGrath <roland@redhat.com>
2232
2233 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
2234 Declare using hidden_proto instead of attribute_hidden, so there are
2235 non-.hidden static symbols for gdb to find.
2236 (__pthread_keys): Likewise.
2237 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
2238 * allocatestack.c (__stack_user): Likewise.
2239 * pthread_create.c (__pthread_keys): Likewise.
2240 (__nptl_threads_events, __nptl_last_event): Make these static instead
2241 of hidden.
2242 * pthread_key_create.c (__pthread_pthread_keys_max,
2243 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
2244
91949a33
UD
22452002-12-02 Ulrich Drepper <drepper@redhat.com>
2246
c22b52fa
UD
2247 * Makefile (tests): Add tst-locale1. If buid-static is yes link
2248 statically.
2249 * tst-locale1.c: New file.
2250
beb6aa41
UD
2251 * pthread_cond_timedwait.c: Include <stdlib.h>.
2252
91949a33
UD
2253 * Makefile (tests): Add tst-fork2 and tst-fork3.
2254 * tst-fork2.c: New file.
2255 * tst-fork3.c: New file.
2256
654dff90
UD
22572002-11-28 Ulrich Drepper <drepper@redhat.com>
2258
cb0e76b4
UD
2259 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
2260
2261 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
2262 require it to 200112L.
2263
2264 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
2265 instruction only if HAVE_CMOV is defined.
2266 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
2267
975aa229
UD
2268 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
2269
654dff90
UD
2270 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
2271
2272 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
2273
2274 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
2275
a3931336
UD
22762002-11-27 Ulrich Drepper <drepper@redhat.com>
2277
c10c099c
UD
2278 * sysdeps/x86_64/bits/atomic.h: New file.
2279
2280 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
2281 16-bit operations.
2282
dca99d27
UD
2283 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
2284 possible since gettid cannot fail.
2285
f78deea6
UD
2286 * sysdeps/x86_64/pthreaddef.h: New file.
2287
2288 * sysdeps/i386/pthreaddef.h (gettid): Removed.
2289
2290 * sysdeps/x86_64/pthread_spin_init.c: New file.
2291 * sysdeps/x86_64/pthread_spin_lock.c: New file.
2292 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
2293 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
2294
2295 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
2296 Add missing lock prefix. Minute optimization.
2297
2298 * tst-spin2.c (main): Also check successful trylock call.
2299
2300 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
2301 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
2302
2303 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
2304 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
2305
2306 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
2307 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
2308 value in case of an error. Add support for INTERNAL_SYSCALL.
b54e18eb
UD
2309
2310 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
2311 value in case of an error.
2312
a3931336
UD
2313 * sysdeps/x86_64/tls.h: New file.
2314
76a50749
UD
23152002-11-26 Ulrich Drepper <drepper@redhat.com>
2316
117c452c
UD
2317 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
2318 takes the array member name and the index as parameters.
2319 (THREAD_SETMEM_NC): Likewise.
2320 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
2321 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
2322 interfaces.
2323
2324 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
2325 to decide which code to use.
2326 (THREAD_SETMEM_NC): Likewise.
2327
76a50749
UD
2328 * allocatestack.c (queue_stack): Don't remove stack from list here.
2329 Do it in the caller. Correct condition to prematurely terminate
2330 loop to free stacks.
2331 (__deallocate_stack): Remove stack from list here.
2332
23332002-11-26 Ulrich Drepper <drepper@redhat.com>
2334
2335 * Makefile (tests): Add tst-stack1.
2336 * tst-stack1.c: New file.
2337
2338 * allocatestack.c (allocate_stack): Initialize the TCB on a user
2339 provided stack.
2340
2341 * pthread_attr_getstack.c: Return bottom of the thread area.
2342
23432002-11-25 Ulrich Drepper <drepper@redhat.com>
2344
2345 * Makefile (libpthread-routines): Add pt-allocrtsig and
2346 pthread_kill_other_threads.
2347 * pt-allocrtsig.c: New file.
2348 * pthread_kill_other_threads.c: New file.
2349 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
2350 all three functions.
2351 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2352 allocrtsig.
2353 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
2354 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
2355 and __libc_allocate_rtsig_private.
2356 * Versions (libpthread): Export pthread_kill_other_threads_np,
2357 __libc_current_sigrtmin, and __libc_current_sigrtmax.
2358
23592002-11-24 Ulrich Drepper <drepper@redhat.com>
2360
2361 * allocatestack.c (allocate_stack): stackaddr in attribute points to
2362 the end of the stack. Adjust computations.
2363 When mprotect call fails dequeue stack and free it.
2364 * pthread_attr_setstack.c: Store top of the stack in stackaddr
2365 attribute.
2366 * pthread_getattr_np.c: Likewise.
2367
2368 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
2369 surprises.
2370
23712002-11-23 Ulrich Drepper <drepper@redhat.com>
2372
2373 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
2374 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
2375
23762002-11-22 Ulrich Drepper <drepper@redhat.com>
2377
2378 * pthread_getspecific.c: Optimize access to first 2nd-level array.
2379 * pthread_setspecific.c: Likewise.
2380
23812002-11-21 Ulrich Drepper <drepper@redhat.com>
2382
2383 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
2384 definitions. Get them from the official place.
2385 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
2386
2387 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
2388 Use new CLONE_ flags in clone() calls.
2389
2390 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
2391 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
2392
2393 * Versions: Add pthread_* functions for libc.
2394 * forward.c: New file.
2395
2396 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
2397 errno-loc.
2398 * herrno.c: New file.
2399 * res.c: New file.
2400
2401 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
2402 sem_trywait, and sem_timedwait. Add herrno and res.
2403 * sem_init.c: Don't initialize lock and waiters members.
2404 * sem_open.c: Likewise.
2405 * sem_post.c: Removed.
2406 * sem_wait.c: Removed.
2407 * sem_trywait.c: Removed.
2408 * sem_timedwait.c: Removed.
2409 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
2410 Includes full implementations of sem_post, sem_wait, sem_trywait,
2411 and sem_timedwait.
2412 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
2413 for new implementation.
2414 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
2415 and waiters fields.
2416
2417 * tst-sem3.c: Improve error message.
2418 * tst-signal3.c: Likewise.
2419
2420 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
2421 to tell the kernel about the termination futex and to initialize tid
2422 member. Don't initialize main_thread.
2423 * descr.h (struct pthread): Remove main_thread member.
2424 * cancelllation.c (__do_cancel): Remove code handling main thread.
2425 The main thread is not special anymore.
2426
2427 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
2428 size of the stacks to stack_cache_actsize.
2429
2430 * pt-readv.c: Add missing "defined".
2431 * pt-sigwait.c: Likewise.
2432 * pt-writev.c: Likewise.
2433
24342002-11-09 Ulrich Drepper <drepper@redhat.com>
2435
2436 * Versions: Export __connect from libpthread.
2437 Patch by Luca Barbieri <ldb@ldb.ods.org>.
2438
2439 * Makefile (libpthread-routines): Add pt-raise.
2440 * sysdeps/unix/sysv/linux/raise.c: New file.
2441 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
2442 * sysdeps/generic/pt-raise.c: New file.
2443
2444 * pthread_cond_init.c: Initialize all data elements of the condvar
2445 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
2446
2447 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
2448 * pthread_create.c: Likewise.
2449
2450 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
2451 * tst-key1.c: New file.
2452 * tst-key2.c: New file.
2453 * tst-key3.c: New file.
2454
2455 * Versions: Export pthread_detach for version GLIBC_2.0.
2456 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
2457
24582002-11-08 Ulrich Drepper <drepper@redhat.com>
2459
2460 * pthread_key_create.c: Terminate search after an unused key was found.
2461 Patch by Luca Barbieri <ldb@ldb.ods.org>.
2462
2463 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
2464 Patch by Luca Barbieri <ldb@ldb.ods.org>.
2465
24662002-10-10 Ulrich Drepper <drepper@redhat.com>
2467
2468 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
2469 dynamic lookup for errno in PIC.
2470
2471 * allocatestack.c (get_cached_stack): Rearrange code slightly to
2472 release the stack lock as soon as possible.
2473 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
2474 the static TLS block.
2475 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
2476
2477 * cancellation.c: Renamed from cancelation.c.
2478 * Makefile: Adjust accordingly.
2479 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
2480 * cleanup_defer.c: Use CANCELLATION_P.
2481 * pthread_testcancel.c: Likewise.
2482 * descr.h: Fix spelling in comments.
2483 * init.c: Likewise.
2484 * pthread_getattr_np.c: Likewise.
2485 * pthread_getschedparam.c: Likewise.
2486 * pthread_setschedparam.c: Likewise.
2487 * Versions: Likewise.
2488
2489 * pt-pselect.c: New file.
2490 * Makefile (libpthread-routines): Add pt-pselect.
2491 * Versions: Add pselect.
2492
2493 * tst-cancel4.c: New file.
2494 * Makefile (tests): Add tst-cancel4.
2495
24962002-10-09 Ulrich Drepper <drepper@redhat.com>
2497
2498 * pthread_mutex_lock.c: Always record lock ownership.
2499 * pthread_mutex_timedlock.c: Likewise.
2500 * pthread_mutex_trylock.c: Likewise.
2501
2502 * pt-readv.c: New file.
2503 * pt-writev.c: New file.
2504 * pt-creat.c: New file.
2505 * pt-msgrcv.c: New file.
2506 * pt-msgsnd.c: New file.
2507 * pt-poll.c: New file.
2508 * pt-select.c: New file.
2509 * pt-sigpause.c: New file.
2510 * pt-sigsuspend.c: New file.
2511 * pt-sigwait.c: New file.
2512 * pt-sigwaitinfo.c: New file.
2513 * pt-waitid.c: New file.
2514 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
2515 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
2516 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
2517 * Versions: Add all the new functions.
2518
2519 * tst-exit1.c: New file.
2520 * Makefile (tests): Add tst-exit1.
2521
2522 * sem_timedwait.c: Minor optimization for more optimal fastpath.
2523
25242002-10-08 Ulrich Drepper <drepper@redhat.com>
2525
2526 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
2527
2528 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
2529 call. pthread_join is an official cancellation point.
2530 * pthread_timedjoin.c: Likewise.
2531
2532 * pthread_cond_wait.c: Revert order in which internal lock are dropped
2533 and the condvar's mutex are retrieved.
2534 * pthread_cond_timedwait.c: Likewise.
2535 Reported by dice@saros.East.Sun.COM.
2536
25372002-10-07 Ulrich Drepper <drepper@redhat.com>
2538
2539 * pthreadP.h: Cut out all type definitions and move them...
2540 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
2541 * pthreadP.h: Include <internaltypes.h>.
2542
2543 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
2544 performance tweaks.
2545
2546 * sem_trywait.c: Shuffle #includes around to get right order.
2547 * sem_timedwait.c: Likewise.
2548 * sem_post.c: Likewise.
2549 * sem_wait.c: Likewise.
2550
2551 * nptl 0.3 released.
2552
2553 * Makefile (tests): Add tst-signal3.
2554 * tst-signal3.c: New file.
2555
25562002-10-05 Ulrich Drepper <drepper@redhat.com>
2557
2558 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
2559 the asms modify the sem object.
2560 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
2561
2562 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
2563 the actual members.
2564 * pthreadP.h (struct sem): New type. Actual semaphore type.
2565 * semaphoreP.h: Include pthreadP.h.
2566 * sem_getvalue.c: Adjust to sem_t change.
2567 * sem_init.c: Likewise.
2568 * sem_open.c: Likewise.
2569 * sem_post.c: Likewise.
2570 * sem_timedwait.c: Likewise.
2571 * sem_trywait.c: Likewise.
2572 * sem_wait.c: Likewise.
2573
25742002-10-04 Ulrich Drepper <drepper@redhat.com>
2575
2576 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
2577 * tst-basic2.c: New file.
2578 * tst-exec1.c: New file.
2579 * tst-exec2.c: New file.
2580 * tst-exec3.c: New file.
2581
2582 * tst-fork1.c: Remove extra */.
2583
2584 * nptl 0.2 released. The API for IA-32 is complete.