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