1 2012-11-26 H.J. Lu <hongjiu.lu@intel.com>
3 * unwind.c (__pthread_unwind): Pass address of unwind_cleanup
5 * sysdeps/i386/tls.h: Include <libc-internal.h>.
6 (THREAD_SETMEM): Use cast_to_integer before casting to uint64_t.
7 (THREAD_SETMEM_NC): Likewise.
8 * sysdeps/x86_64/tls.h: Include <libc-internal.h>.
9 (THREAD_SETMEM): Use cast_to_integer before casting to uint64_t.
10 (THREAD_SETMEM_NC): Likewise.
12 2012-11-21 Joseph Myers <joseph@codesourcery.com>
14 * sysdeps/unix/sysv/linux/sem_post.c (__old_sem_post): Cast result
15 of atomic_increment_val to (void) instead of storing in
16 otherwise-unused variable.
18 * pthread_cond_timedwait.c (__pthread_cond_timedwait)
19 [__NR_clock_gettime]: Cast result of INTERNAL_VSYSCALL to void
20 instead of storing in otherwise-unused variable.
22 2012-11-14 Marcus Shawcroft <marcus.shawcroft@linaro.org>
24 * Makefile (CFLAGS-open.c, CFLAGS-open64.c, CFLAGS-pause.c)
25 (CFLAGS-recv.c, CFLAGS-send.c): Define.
27 2012-11-06 Chris Metcalf <cmetcalf@tilera.com>
29 * tst-sem14.c (TIMEOUT): Set timeout to 10 seconds.
30 * tst-cond24.c (TIMEOUT): Increase from 10 to 20 seconds.
32 2012-11-05 Siddhesh Poyarekar <siddhesh@redhat.com>
34 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Time out
35 if absolute timeout is negative.
36 [__ASSUME_FUTEX_CLOCK_REALTIME &&
37 lll_futex_timed_wait_bitset]: Use lll_futex_timed_wait_bitset.
38 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
40 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
42 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
43 (__lll_robust_timedlock_wait): Likewise.
44 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
45 (lll_futex_timed_wait_bitset): New macro.
46 * sysdeps/unix/sysv/linux/s390/lowlevellock.h
47 (lll_futex_timed_wait_bitset): Likewise.
49 2012-11-03 David S. Miller <davem@davemloft.net>
51 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
53 (__cpu_relax): Likewise.
55 2012-11-02 H.J. Lu <hongjiu.lu@intel.com>
57 * sysdeps/x86_64/tls.h: Don't include <xmmintrin.h>.
58 (__128bits): New struct typedef.
59 (tcbhead_t): Replace __m128 with __128bits.
61 2012-10-30 Aurelien Jarno <aurelien@aurel32.net>
62 Joseph Myers <joseph@codesourcery.com>
64 * Makefile (tst-cancel7-ARGS): Use exec in --command argument.
66 2012-10-28 David S. Miller <davem@davemloft.net>
68 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
69 Define when we have v9 instructions available.
70 * sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: New file.
71 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S: New
73 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile: New
75 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: Add cpu_relax
76 to libpthread-routines.
78 2012-10-25 Roland McGrath <roland@hack.frob.com>
80 * tst-cond-except.c (TEST_FUNCTION): New macro.
82 2012-10-25 Joseph Myers <joseph@codesourcery.com>
84 * Makefile ($(objpfx)tst-tls6.out): Use $(BASH) not $(SHELL) to
86 * tst-tls6.sh: Use /bin/bash not /bin/sh.
88 2012-10-25 Roland McGrath <roland@hack.frob.com>
90 * tst-basic2.c (do_test): Return RESULT, not always zero.
92 * tst-cond25.c: Include <stdint.h>
93 (waiter): Add casts to uintptr_t between casting integer<->pointer.
94 (timed_waiter): Likewise.
95 (do_test_wait): Likewise.
96 * tst-cond-except.c (thr): Likewise.
97 (do_test): Use prototype definition.
99 2012-10-24 Joseph Myers <joseph@codesourcery.com>
100 Jim Blandy <jimb@codesourcery.com>
102 * Makefile ($(objpfx)tst-tls6.out): Pass $(test-wrapper-env) to
104 * tst-tls6.sh (test_wrapper_env): New variable. Use it to run
105 programs with LD_PRELOAD set.
107 2012-10-24 Roland McGrath <roland@hack.frob.com>
109 * Makefile ($(objpfx)tst-cond11, $(objpfx)tst-cond19): Targets removed.
110 ($(objpfx)tst-sem5, $(objpfx)tst-cancel18): Likewise.
111 ((objpfx)tst-cancelx18, $(objpfx)tst-clock2): Likewise.
112 ($(objpfx)tst-rwlock14): Likewise.
114 2012-10-24 Joseph Myers <joseph@codesourcery.com>
116 * Makefile (tests): Remove tst-oddstacklimit.
117 (test-srcs): New variable.
118 (tst-oddstacklimit-ENV): Remove.
119 [$(run-built-tests) = yes] (tests): Depend on
120 $(objpfx)tst-oddstacklimit.out.
121 [$(run-built-tests) = yes] ($(objpfx)tst-oddstacklimit.out): New
123 * tst-oddstacklimit.c: Do not include "tst-basic1.c". Use
124 setrlimit before executing tst-basic1 test passed to --command.
126 2012-10-23 Joseph Myers <joseph@codesourcery.com>
128 * Makefile [$(cross-compiling) = no]: Change condition to
129 [$(run-built-tests) = yes].
131 2012-10-23 Jim Blandy <jimb@codesourcery.com>
132 Joseph Myers <joseph@codesourcery.com>
134 * Makefile (tst-cancel7-ARGS): Use $(host-built-program-cmd).
135 (tst-exec4-ARGS): Likewise.
136 (tst-stackguard1-ARGS): Likewise.
138 2012-10-21 Jim Blandy <jimb@codesourcery.com>
139 Joseph Myers <joseph@codesourcery.com>
141 * Makefile ($(objpfx)tst-cancel-wrappers.out): Pass $(NM) to
142 tst-cancel-wrappers.sh.
143 * tst-cancel-wrappers.sh: Use nm program given as first argument,
146 2012-10-17 Siddhesh Poyarekar <siddhesh@redhat.com>
148 * tst-cond25.c (do_test_wait): Don't check for return value from
151 2012-10-16 Siddhesh Poyarekar <siddhesh@redhat.com>
154 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
155 (__condvar_tw_cleanup): Adjust the mutex data structure if it
156 was locked by FUTEX_WAIT_REQUEUE_PI.
157 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait
158 (__condvar_w_cleanup): Likewise.
159 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
160 (__condvar_cleanup2): Likewise.
161 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
162 (__condvar_cleanup1): Likewise.
164 2012-10-10 Carlos O'Donell <carlos@systemhalted.org>
166 * sysdeps/pthread/pthread.h [!(defined __GNUC__ &&
167 defined __EXCEPTIONS) && defined __USE_GNU]
168 (pthread_cleanup_push_defer_np): Fix formatting.
170 2012-10-10 Siddhesh Poyarekar <siddhesh@redhat.com>
173 * Makefile (tests): New test case tst-cond25.
174 (LDFLAGS-tst-cond25): Link tst-cond25 against librt.
175 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
176 (__condvar_tw_cleanup): Lock mutex only if we don't already
178 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
179 (__condvar_w_cleanup): Likewise.
180 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add TID_MASK.
181 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
182 (__condvar_cleanup2): Lock mutex only if we don't already
184 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
185 (__condvar_cleanup1): Likewise.
186 * tst-cond25.c: New test case.
188 2012-10-09 Roland McGrath <roland@hack.frob.com>
190 * sysdeps/pthread/configure: Regenerated.
191 * sysdeps/x86_64/configure: Regenerated.
193 2012-10-05 David S. Miller <davem@davemloft.net>
196 * sysdeps/sparc/tls.h (DB_THREAD_SELF_INCLUDE): Delete.
197 (DB_THREAD_SELF): Use constants for the register offsets. Correct
198 the case of a 64-bit debugger with a 32-bit inferior.
200 2012-10-05 H.J. Lu <hongjiu.lu@intel.com>
203 * Makefile (tests-static): Add tst-cancel24-static,
204 tst-cond8-static tst-mutex8-static, tst-mutexpi8-static,
205 tst-sem11-static and tst-sem12-static.
207 (LDLIBS-tst-cancel24-static): New macro.
208 * tst-cancel24-static.cc: New file.
209 * tst-cond8-static.c: Likewise.
210 * tst-mutex8-static.c: Likewise.
211 * tst-mutexpi8-static.c: Likewise.
212 * tst-sem11-static.c: Likewise.
213 * tst-sem12-static.c: Likewise.
215 2012-10-05 Siddhesh Poyarekar <siddhesh@redhat.com>
218 * Makefile (tests): New test case tst-cond24.
219 (LDFLAGS-tst-cond24): Link tst-cond24 against librt.
220 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
221 (__pthread_cond_timedwait): Unlock mutex before going back to
223 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
224 (__pthread_cond_wait): Likewise. Revert handling of EAGAIN
225 return from futex_wait.
226 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
227 (__pthread_cond_timedwait): Unlock mutex before going back to
228 wait in PI case. Set requeue_pi flag only if wait returned 0.
229 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
230 (__pthread_cond_wait): Likewise. Revert handling of EAGAIN
231 return from futex_wait.
232 * tst-cond24.c: New test case.
234 2012-10-04 Roland McGrath <roland@hack.frob.com>
236 * pthread_create.c (start_thread): Use __madvise, not madvise.
238 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
240 * sysdeps/i386/tls.h: Update copyright years.
242 2012-10-02 Siddhesh Poyarekar <siddhesh@redhat.com>
244 * pthread_create.c (start_thread): Fix clone flag name in
245 comment to CLONE_CHILD_CLEARTID.
246 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
247 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
248 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
249 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
250 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
251 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
253 2012-10-01 Siddhesh Poyarekar <siddhesh@redhat.com>
256 * Makefile (tests): Add tst-cond-except.
257 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
258 (__pthread_cond_timedwait): Mark instructions where %ebx is
259 incremented in PI case.
260 (.gcc_except_table): Add entry to jump to __condvar_tw_cleanup2
261 for the marked PI case instructions.
262 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
263 (__pthread_cond_wait): Mark instructions where %ebx is
264 incremented in PI case.
265 (.gcc_except_table): Add entry to jump to __condvar_w_cleanup2
266 for the marked PI case instructions.
267 * tst-cond-except.c: New test case.
269 2012-09-24 Dmitry V. Levin <ldv@altlinux.org>
271 * tst-tls6.sh: Add "set -e".
272 * Makefile: Do not specify -e option when running testsuite
275 * tst-tls6.sh: Add copyright header.
277 2012-09-24 H.J. Lu <hongjiu.lu@intel.com>
279 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Add "()" when casting
280 to uint64_t for 64-bit store.
281 (THREAD_SETMEM_NC): Likewise.
283 2012-09-19 H.J. Lu <hongjiu.lu@intel.com>
285 * sysdeps/i386/tls.h (THREAD_SETMEM): Cast to uint64_t for
287 (THREAD_SETMEM_NC): Likewise.
289 2012-09-14 Jeff Law <law@redhat.com>
292 * sysdeps/pthread/pthread.h: Fix prototype of __sigsetjmp.
294 2012-09-13 H.J. Lu <hongjiu.lu@intel.com>
297 * sysdeps/pthread/bits/libc-lockP.h (__rtld_lock_init_recursive):
300 2012-09-07 H.J. Lu <hongjiu.lu@intel.com>
302 * Makefile (LDFLAGS-tst-cancel24): Renamed to ...
303 (LDLIBS-tst-cancel24): This.
305 2012-09-06 H.J. Lu <hongjiu.lu@intel.com>
308 * Makefile (tests-static): Add tst-cancel21-static.
310 * tst-cancel21-static.c: New file.
312 2012-09-01 Joseph Myers <joseph@codesourcery.com>
314 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
315 [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
316 [__NR_clock_getres]: Make code unconditional.
317 (pthread_getcpuclockid): Remove code left unreachable by removal
320 2012-08-31 Joseph Myers <joseph@codesourcery.com>
323 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Use
324 atomic_compare_and_exchange_bool_rel.
325 * tst-sem14.c: New file.
326 * Makefile (tests): Add tst-sem14.
328 2012-08-15 Roland McGrath <roland@hack.frob.com>
330 * Makefile (CFLAGS-flockfile.c): Use $(libio-mtsafe) instead
332 (CFLAGS-ftrylockfile.c, CFLAGS-funlockfile.c): Likewise.
333 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-fork.c): Likewise.
335 2012-08-16 Joseph Myers <joseph@codesourcery.com>
337 * pthread_cond_timedwait.c (__pthread_cond_timedwait)
338 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
339 * pthread_condattr_setclock.c (pthread_condattr_setclock)
340 [!__ASSUME_POSIX_TIMERS]: Likewise.
341 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
342 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Likewise.
343 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
344 [!__ASSUME_POSIX_TIMERS]: Likewise.
345 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
346 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Likewise.
347 * sysdeps/unix/sysv/linux/timer_create.c [__NR_timer_create]: Make
349 [!__NR-timer_create]: Remove conditional code.
350 (timer_create) [!__ASSUME_POSIX_TIMERS]: Likewise.
351 * sysdeps/unix/sysv/linux/timer_delete.c [__NR_timer_delete]: Make
353 [!__NR_timer_delete]: Remove conditional code.
354 (timer_delete) [!__ASSUME_POSIX_TIMERS]: Likewise.
355 * sysdeps/unix/sysv/linux/timer_getoverr.c
356 [__NR_timer_getoverrun]: Make code unconditional.
357 [!__NR_timer_getoverrun]: Remove conditional code.
358 (timer_getoverrun) [!__ASSUME_POSIX_TIMERS]: Likewise.
359 * sysdeps/unix/sysv/linux/timer_gettime.c [__NR_timer_gettime]:
360 Make code unconditional.
361 [!__NR_timer_gettime]: Remove conditional code.
362 (timer_gettime) [!__ASSUME_POSIX_TIMERS]: Likewise.
363 * sysdeps/unix/sysv/linux/timer_routines.c [__NR_timer_create]:
364 Make code unconditional.
365 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
366 * sysdeps/unix/sysv/linux/timer_settime.c [__NR_timer_settime]:
367 Make code unconditional.
368 [!__NR_timer_settime]: Remove conditional code.
369 (timer_settime) [!__ASSUME_POSIX_TIMERS]: Likewise.
370 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
371 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Remove
374 2012-08-15 Tom de Vries <vries@codesourcery.com>
375 Maxim Kuvyrkov <maxim@codesourcery.com>
377 * sysdeps/pthread/bits/libc-lockP.h (__libc_lock_lock)
378 (__libc_lock_trylock): Allow pre-existing definitions.
380 2012-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
382 * pthread_spin_lock.c: New file.
383 * pthread_spin_trylock.c: New file.
385 2012-08-08 Joseph Myers <joseph@codesourcery.com>
387 * allocatestack.c (setxid_signal_thread) [__ASSUME_TGKILL]: Make
389 (setxid_signal_thread) [!__ASSUME_TGKILL]: Remove conditional code.
390 * pthread_cancel.c (pthread_cancel) [__ASSUME_TGKILL]: Make code
392 (pthread_cancel) [!__ASSUME_TGKILL]: Remove conditional code.
393 * sysdeps/pthread/createthread.c (do_clone) [__ASSUME_TGKILL]:
394 Make code unconditional.
395 (do_clone) [!__ASSUME_TGKILL]: Remove conditional code.
396 * sysdeps/unix/sysv/linux/pt-raise.c (raise) [__ASSUME_TGKILL ||
397 __NR_tgkill]: Make code unconditional.
398 (raise) [__ASSUME_TGKILL]: Likewise.
399 (raise) [!__ASSUME_TGKILL]: Remove conditional code.
400 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill)
401 [__ASSUME_TGKILL]: Make code unconditional.
402 (__pthread_kill) [!__ASSUME_TGKILL]: Remove conditional code.
403 * sysdeps/unix/sysv/linux/raise.c (raise) [__ASSUME_TGKILL ||
404 __NR_tgkill]: Make code unconditional.
405 (raise) [__ASSUME_TGKILL]: Likewise.
406 (raise) [!__ASSUME_TGKILL]: Remove conditional code.
408 2012-08-07 Joseph Myers <joseph@codesourcery.com>
410 * sysdeps/pthread/createthread.c (create_thread)
411 [!__ASSUME_NO_CLONE_DETACHED]: Remove conditional code.
413 2012-08-03 Joseph Myers <joseph@codesourcery.com>
415 * nptl-init.c (sigcancel_handler) [__ASSUME_CORRECT_SI_PID]: Make
417 (sighandler_setxid) [__ASSUME_CORRECT_SI_PID]: Likewise.
419 2012-07-28 Siddhesh Poyarekar <siddhesh@redhat.com>
421 * tst-pthread-getattr.c (MAX_STACK_SIZE): New macro.
422 (pagesize): New static variable.
423 (allocate_and_test): Return MEM. Rename parameter to TARGET.
424 (check_stack_top): New local variables MEM and PAGEMASK. Cap
425 stack size to MAX_STACK_SIZE. Call allocate_and_test for
426 halfway up the stack top page. Verify that the top page was
428 (do_test): Get pagesize using sysconf.
430 2012-07-25 Andreas Schwab <schwab@linux-m68k.org>
432 * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Remove pseudo_end
434 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Likewise.
435 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO):
438 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
440 * tst-pthread-getattr.c: Revert last change.
442 2012-07-20 Siddhesh Poyarekar <siddhesh@redhat.com>
444 * tst-pthread-getattr.c (MAX_STACK_SIZE): New max cap for stack
447 (allocate_and_test): Return STACKADDR. Access STACKADDR instead
449 (check_stack_top): Read valued written into STACKADDR in
450 allocate_and_test. Cap stack size to MAX_STACK_SIZE.
452 2012-07-19 Siddhesh Poyarekar <siddhesh@redhat.com>
454 * nptl-init.c (sighandler_setxid): Fix the comment that
457 2012-06-23 Thomas Schwinge <thomas@codesourcery.com>
459 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
460 (__lll_robust_timedlock_wait): Simplify CFI directives.
462 2012-06-20 Siddhesh Poyarekar <siddhesh@redhat.com>
465 * Makefile (tests): Add test case.
466 * pthread_getattr_np.c (pthread_getattr_np): Deduct pages below
467 the __libc_stack_end page from stacksize. Truncate stacksize to
468 make it page aligned when it is computed from RLIMIT_STACK.
469 * tst-pthread-getattr.c: New test case. Verify that stackaddr is
472 2012-06-07 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
475 * sysdeps/sparc/sparc32/pthread_spin_lock.S: Do not use v9
478 2012-06-04 Siddhesh Poyarekar <siddhesh@redhat.com>
479 Jakub Jelinek <jakub@redhat.com>
482 * sysdeps/pthread/pthread.h
483 [!(defined __GNUC__ && defined __EXCEPTIONS)]
484 (pthread_cleanup_push, pthread_cleanup_push_defer_np): Use
485 __libc_unlikely instead of __builtin_expect.
487 2012-05-30 H.J. Lu <hongjiu.lu@intel.com>
490 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Removed.
491 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
492 * sysdeps/unix/sysv/linux/i386/Implies: New file.
493 * sysdeps/unix/sysv/linux/x86_64/Implies: Likewise.
494 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Renamed
496 * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: This.
497 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Renamed
499 * sysdeps/unix/sysv/linux/x86/bits/semaphore.h: This.
501 2012-05-30 Andreas Schwab <schwab@linux-m68k.org>
504 * nptl-init.c (pthread_functions): Remove use of INTUSE and
506 (__pthread_initialize_minimal_internal): Likewise.
507 * sem_open.c: Likewise.
508 * sem_unlink.c: Likewise.
509 * pthreadP.h: Replace _internal aliases by hidden_proto
511 * pthread_getspecific.c: Replace _internal alias by hidden_def.
512 * pthread_key_create.c: Likewise.
513 * pthread_mutex_destroy.c: Likewise.
514 * pthread_mutex_init.c: Likewise.
515 * pthread_mutex_lock.c: Likewise.
516 * pthread_mutex_unlock.c: Likewise.
517 * pthread_once.c: Likewise.
518 * pthread_rwlock_rdlock.c: Likewise.
519 * pthread_rwlock_unlock.c: Likewise.
520 * pthread_rwlock_wrlock.c: Likewise.
521 * pthread_setspecific.c: Likewise.
522 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
524 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
526 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
528 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
529 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
530 * sysdeps/unix/sysv/linux/s390/pthread_once.c: Likewise.
531 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Likewise.
532 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
533 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
534 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
535 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
536 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
537 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
539 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
541 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
544 2012-05-27 Chung-Lin Tang <cltang@codesourcery.com>
546 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO, LOAD_ARGS_1)
547 (LOAD_ARGS_2 ,LOAD_ARGS_3 ,LOAD_ARGS_4): Add CFI restores.
549 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_lock_wait_private)
550 (__lll_lock_wait, __lll_timedlock_wait, __lll_timedwait_tid): Add CFI
552 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
553 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Likewise.
554 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
555 (pthread_barrier_wait): Likewise.
556 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
557 (__pthread_cond_broadcast): Likewise.
558 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
559 (__pthread_cond_signal): Likewise.
560 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
561 (__pthread_cond_timedwait): Likewise.
562 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S (__pthread_cond_wait):
564 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S
565 (__pthread_rwlock_rdlock): Likewise.
566 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
567 (pthread_rwlock_timedrdlock): Likewise.
568 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
569 (pthread_rwlock_timedwrlock): Likewise.
570 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S
571 (__pthread_rwlock_unlock): Likewise.
572 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S
573 (__pthread_rwlock_wrlock): Likewise.
574 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post): Likewise.
575 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Likewise.
576 * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
578 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
580 2012-05-26 Siddhesh Poyarekar <siddhesh@redhat.com>
583 * nptl/pthread_getattr_np.c (pthread_getattr_np): Use
584 __libc_stack_end rounded to the end of containing page as the
587 2012-05-25 Rayson Ho <rho@redhat.com>
589 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Low-level SystemTap
591 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
592 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
593 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
594 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
595 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
596 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
597 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
598 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
600 2012-05-25 Rayson Ho <rho@redhat.com>
601 Roland McGrath <roland@hack.frob.com>
603 * DESIGN-systemtap-probes.txt: New file.
604 * pthread_cond_broadcast.c: SystemTap probes.
605 * pthread_cond_init.c: Likewise.
606 * pthread_cond_signal.c: Likewise.
607 * pthread_cond_wait.c: Likewise.
608 * pthread_cond_destroy.c: Likewise.
609 * pthread_create.c: Likewise.
610 * pthread_join.c: Likewise.
611 * pthread_mutex_destroy.c: Likewise.
612 * pthread_mutex_init.c: Likewise.
613 * pthread_mutex_lock.c: Likewise.
614 * pthread_mutex_timedlock.c: Likewise.
615 * pthread_mutex_unlock.c: Likewise.
616 * pthread_rwlock_destroy.c: Likewise.
617 * pthread_rwlock_rdlock.c: Likewise.
618 * pthread_rwlock_unlock.c: Likewise.
619 * pthread_rwlock_wrlock.c: Likewise.
620 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
621 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
622 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
623 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
624 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
625 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
626 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
627 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
629 2012-05-24 Roland McGrath <roland@hack.frob.com>
631 * pthread_create.c (start_thread): Define pthread_start LIBC_PROBE.
633 2012-05-17 Andreas Jaeger <aj@suse.de>
635 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
636 (HAVE_DL_DISCOVER_OSVERSION): Don't declare _dl_discover_osversion
637 only for older kernels.
639 2012-05-15 Joseph Myers <joseph@codesourcery.com>
641 * pthreadP.h [!__NR_set_robust_list] (__NR_set_robust_list): Do
644 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
646 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock): Load
647 futex pointer into RDI_LP. Use RSP_LP to operate on stack.
648 (lll_robust_lock): Likewise.
649 (lll_cond_lock): Likewise.
650 (lll_robust_cond_lock): Likewise.
651 (lll_timedlock): Likewise.
652 (lll_robust_timedlock): Likewise.
653 (lll_unlock): Likewise.
654 (lll_robust_unlock): Likewise.
656 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
658 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use
659 LP_OP(cmp) and RCX_LP on dep_mutex pointer.
661 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
663 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Use LP_OP(op)
665 (__gcc_personality_v0): Replace 8-byte data alignment with
666 LP_SIZE alignment and .quad with ASM_ADDR.
668 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
670 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Use LP_OP(op)
672 (__gcc_personality_v0): Replace 8-byte data alignment with
673 LP_SIZE alignment and .quad with ASM_ADDR.
675 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
677 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Use LP_OP(cmp) on
678 NWAITERS, which is unsigned long int.
680 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
682 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
683 (__gcc_personality_v0): Replace 8-byte data alignment with
684 LP_SIZE alignment and .quad with ASM_ADDR.
686 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
688 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Use
689 LP_OP(cmp), RSI_LP and R8_LP on dep_mutex pointer. Load
690 __vdso_clock_gettime pointer into RAX_LP.
691 (__gcc_personality_v0): Replace 8-byte data alignment with
692 LP_SIZE alignment and .quad with ASM_ADDR.
694 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
696 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Use
697 LP_OP(cmp), RSI_LP and R8_LP on dep_mutex pointer. Load
698 __vdso_clock_gettime pointer into RAX_LP.
699 (__gcc_personality_v0): Replace 8-byte data alignment with
700 LP_SIZE alignment and .quad with ASM_ADDR.
702 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
704 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Use
705 LP_OP(cmp) and R8_LP on dep_mutex pointer.
707 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
709 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Use LP_OP(mov)
710 to update pointer in memory. Load pointer into RDI_LP.
712 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
714 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
715 (LLL_STUB_UNWIND_INFO_START): Align label to LP_SIZE instead
717 (LLL_STUB_UNWIND_INFO_END): Likewise.
718 (lll_timedlock): Load timeout pointer into RDX_LP.
719 (lll_robust_timedlock): Likewise.
721 2012-05-15 Siddhesh Poyarekar <siddhesh@redhat.com>
722 Jakub Jelinek <jakub@redhat.com>
725 * Makefile (tests): Add test cases.
726 * descr.h (struct pthread): Add a comment describing multiple_threads.
727 * pthreadP.h (__pthread_multiple_threads): Expand comment to include
729 * pthread_cancel.c (pthread_cancel): Enable multiple_threads
730 before setting cancelstate of the thread.
731 * sysdeps/unix/sysv/linux/libc_multiple_threads.c
732 (__libc_multiple_threads): Add explanatory comment.
733 * tst-cancel-self-cancelstate.c: New test case.
734 * tst-cancel-self-canceltype.c: Likewise.
735 * tst-cancel-self-cleanup.c: Supporting file for test cases.
736 * tst-cancel-self-testcancel.c: New test case.
737 * tst-cancel-self.c: Likewise.
738 * vars.c: Expand comment to include single-process case.
740 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
742 * sysdeps/x86_64/tls.h: Don't include <bits/wordsize.h>.
743 (tcbhead_t): Remove __x86_64__ check. Align rtld_savespace_sse
746 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
748 * sysdeps/pthread/pthread.h (__PTHREAD_RWLOCK_INT_FLAGS_SHARED):
750 (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Check
751 __PTHREAD_RWLOCK_INT_FLAGS_SHARED instead of __WORDSIZE.
753 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
755 * shlib-versions: Move x86_64-.*-linux.* entry to ...
756 * sysdeps/x86_64/64/shlib-versions: Here. New file.
757 * sysdeps/x86_64/x32/shlib-versions: New file.
759 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
761 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Define x32
762 __SIZEOF_PTHREAD_XXX_T.
763 (__pthread_internal_list): Check __x86_64__ instead of __WORDSIZE.
764 (pthread_mutex_t): Likewise.
765 (pthread_rwlock_t): Likewise.
766 (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New. Defined if __x86_64__
769 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
771 * sysdeps/x86_64/x32/tls.h: New file.
773 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
775 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Use uint64_t on 64-bit
777 (THREAD_SETMEM_NC): Likewise.
779 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
781 * sysdeps/x86_64/tls.h (THREAD_SELF): Replace movq/%q0 with
784 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
786 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
787 (__cleanup_fct_attribute): Check __x86_64__ instead of
790 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
792 * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER): Check
793 __PTHREAD_MUTEX_HAVE_PREV instead of __WORDSIZE.
794 (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Likewise.
795 (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
796 (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
798 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
800 * pthread_create.c (start_thread): Check __PTHREAD_MUTEX_HAVE_PREV
801 instead of __WORDSIZE.
803 2012-05-10 Thomas Schwinge <thomas@schwinge.name>
806 * sysdeps/pthread/bits/libc-lockP.h (__libc_once_get): New macro.
808 2012-05-09 Chung-Lin Tang <cltang@codesourcery.com>
810 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
811 (__pthread_cond_timedwait): Use CFI directives.
812 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
813 (__pthread_cond_wait): Likewise.
814 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Likewise.
815 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
817 2012-05-03 David S. Miller <davem@davemloft.net>
819 * sysdeps/sparc/sparc64/pthread_spin_unlock.S: Fix thinko, we
820 always have to return 0, especially for the pthread_spin_init
822 * sysdeps/sparc/sparc32/pthread_spin_lock.S: Add missing trailing
824 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
825 * sysdeps/sparc/sparc64/pthread_spin_lock.S: Likewise.
827 2012-05-02 David S. Miller <davem@davemloft.net>
829 * sysdeps/sparc/sparc64/pthread_spin_lock.S: New.
830 * sysdeps/sparc/sparc64/pthread_spin_lock.c: Delete.
831 * sysdeps/sparc/sparc64/pthread_spin_unlock.S: New.
832 * sysdeps/sparc/sparc64/pthread_spin_unlock.c: Delete.
833 * sysdeps/sparc/sparc64/pthread_spin_trylock.S: New.
834 * sysdeps/sparc/sparc64/pthread_spin_trylock.c: Delete.
835 * sysdeps/sparc/sparc64/pthread_spin_init.c: New.
836 * sysdeps/sparc/sparc32/pthread_spin_lock.S: New.
837 * sysdeps/sparc/sparc32/pthread_spin_lock.c: Delete.
838 * sysdeps/sparc/sparc32/pthread_spin_trylock.S: New.
839 * sysdeps/sparc/sparc32/pthread_spin_trylock.c: Delete.
840 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: New.
841 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: Delete.
842 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: New.
843 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: Delete.
844 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: New.
845 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: Delete.
846 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: New.
848 2012-05-02 Allan McRae <allan@archlinux.org>
850 * Makefile: (LDFLAGS-tst-tls5): Use $(no-as-needed).
851 (LDFLAGS-tst-cancel24): Likewise.
853 2012-05-02 Paul Pluzhnikov <ppluzhnikov@google.com>
855 * sysdeps/i386/pthread_spin_lock.S: New.
856 * sysdeps/i386/pthread_spin_lock.c: Delete.
857 * sysdeps/x86_64/pthread_spin_lock.S: New.
858 * sysdeps/x86_64/pthread_spin_lock.c: Delete.
860 2012-04-28 Andreas Schwab <schwab@linux-m68k.org>
862 * Makefile ($(objpfx)tst-stack3-mem, $(objpfx)tst-tls6.out): Don't
863 run when cross-compiling.
865 2012-04-26 Siddhesh Poyarekar <siddhesh@redhat.com>
867 * sysdeps/pthread/unwind-forcedunwind.c: Include gnu/lib-names.h
868 instead of libgcc_s.h.
870 2012-04-20 Paul Pluzhnikov <ppluzhnikov@google.com>
872 * sysdeps/x86_64/tls.h (TLS_GET_FS, TLS_SET_FS): Delete.
874 2012-03-27 David S. Miller <davem@davemloft.net>
876 * tst-cond16.c (do_test): Use a thread stack size which is either
877 PTHREAD_STACK_MIN or the page size, whichever is larger.
878 * tst-cond18.c (do_test): Likewise.
880 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
882 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Use
883 register char * __asm__("rsp") to get stack frame.
885 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
887 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (SYS_futex): Use
890 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
892 * unwind.c (unwind_stop): Cast _Unwind_GetCFA return to
895 2012-03-16 David S. Miller <davem@davemloft.net>
898 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: Include using <..>
900 * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c:
903 2012-03-15 David S. Miller <davem@davemloft.net>
906 * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: New file.
908 2012-03-09 Paul Eggert <eggert@cs.ucla.edu>
911 * pt-crti.S: Replace FSF snail mail address with URL.
913 2012-03-09 Joseph Myers <joseph@codesourcery.com>
915 * sysdeps/pthread/pthread.h (__need_clockid_t, __need_timespec):
916 Do not define before including <time.h>.
918 2012-03-08 David S. Miller <davem@davemloft.net>
920 * sysdeps/unix/sysv/linux/sparc/sem_post.c: Update copyright year.
922 2012-03-08 Thomas Schwinge <thomas@codesourcery.com>
924 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
925 Check for timestamp before the Epoch.
927 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Fix
930 * tst-sem13.c (do_test): Add another test case.
931 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
932 Fix updating nwaiters.
934 2012-03-07 Joseph Myers <joseph@codesourcery.com>
937 * sysdeps/pthread/configure.in (libc_cv_forced_unwind): Change
938 link test to a compile test.
939 (libc_cv_c_cleanup): Likewise. Declare puts rather than including
941 * sysdeps/pthread/configure: Regenerated.
943 2012-03-07 Ulrich Drepper <drepper@gmail.com>
945 * Makefile (distribute): Remove variable.
947 2012-01-23 Thomas Schwinge <thomas@codesourcery.com>
949 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Get rid of
950 superfluous assignment.
951 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c (sem_timedwait):
953 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
954 (sem_timedwait): Likewise.
956 2012-03-06 Ulrich Drepper <drepper@gmail.com>
958 * sysdeps/pthread/bits/libc-lock.h: Move information not needed in
959 installed headers to...
960 * sysdeps/pthread/bits/libc-lockP.h: ...here. New file.
962 2012-03-06 David S. Miller <davem@davemloft.net>
964 * sysdeps/unix/sysv/linux/sparc/sem_post.c (__new_sem_post): Use
965 atomic_increment and remove unused local variable.
966 (__old_sem_post): Likewise.
968 2012-02-27 David S. Miller <davem@davemloft.net>
970 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Don't refer to
971 non-existing __pthread_attr.
972 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
973 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
974 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
975 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
976 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
978 2012-02-26 Ulrich Drepper <drepper@gmail.com>
980 * sysdeps/pthread/pthread.h: Define __need_clockid_t for __USE_XOPEN2K.
982 * sysdeps/pthread/pthread.h: Define __need_timespec before including
984 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Name pthread_attr_t
986 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
987 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
988 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
989 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
990 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
992 2012-02-21 Joseph Myers <joseph@codesourcery.com>
995 * Makefile (generated): Remove crti.S, crtn.S, defs.h and
997 [crti.S not in sysdirs] (omit-deps): Do not append.
998 [crti.S not in sysdirs] (CFLAGS-pt-initfini.s): Remove variable.
999 [crti.S not in sysdirs] (pt-initfini.c): Remove vpath directive.
1000 [crti.S not in sysdirs] ($(objpfx)crti.S): Remove rule.
1001 [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
1002 [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
1003 [crti.S not in sysdirs] ($(objpfx)crti.o): Likewise.
1004 [crti.S not in sysdirs] ($(objpfx)crtn.o): Likewise.
1005 [crti.S in sysdirs] (extra-objs): Append unconditionally.
1006 [crti.S in sysdirs] ($(objpfx)crti.o): Define rule
1008 * sysdeps/pthread/pt-initfini.c: Remove file.
1010 2012-02-16 Richard Henderson <rth@twiddle.net>
1012 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: Remove file.
1013 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: Remove file.
1015 2012-02-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1017 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: Remove file.
1019 2012-02-16 David S. Miller <davem@davemloft.net>
1021 * sysdeps/sparc/Makefile: Add -fPIC when building pt-crti.S and crtn.S
1023 2012-02-15 Marek Polacek <polacek@redhat.com>
1025 * sysdeps/unix/sysv/linux/x86_64/Makefile: Remove file.
1027 2012-02-09 Paul Eggert <eggert@cs.ucla.edu>
1029 Replace FSF snail mail address with URLs, as per GNU coding standards.
1031 2012-02-08 Andreas Schwab <schwab@linux-m68k.org>
1033 * Makefile (extra-objs) [crti.S in sysdirs]: Add pt-crti.o.
1035 2012-02-08 Joseph Myers <joseph@codesourcery.com>
1037 Support crti.S and crtn.S provided directly by architectures.
1038 * Makefile [crti.S in sysdirs] (omit-deps): Do not append.
1039 [crti.S in sysdirs] (CFLAGS-pt-initfini.s): Do not define variable.
1040 [crti.S in sysdirs] ($(objpfx)pt-initfini.s): Disable rule.
1041 [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
1042 [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
1043 [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
1044 [crti.S in sysdirs] ($(objpfx)crti.o): Likewise.
1045 [crti.S in sysdirs] ($(objpfx)crtn.o): Likewise.
1046 [crti.S in sysdirs] (pt-initfini.c): Remove vpath directive.
1047 [crti.S in sysdirs] ($(objpfx)crti.o): New rule.
1048 * pt-crti.S: New file.
1049 * sysdeps/unix/sysv/linux/i386/Makefile: Remove file.
1051 2012-02-03 Joseph Myers <joseph@codesourcery.com>
1053 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
1054 macros for PIC register setup.
1055 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
1056 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
1057 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
1058 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
1059 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
1061 2012-01-11 Marek Polacek <polacek@redhat.com>
1063 * forward.c (FORWARD_NORETURN): Define macro.
1064 (__pthread_unwind): Use FORWARD_NORETURN macro to avoid warning.
1065 (__pthread_exit): Likewise.
1067 2012-01-10 Ulrich Drepper <drepper@gmail.com>
1069 * sysdeps/pthread/pthread.h: Add const attribute to pthread_equal.
1071 * pthreadP.h: Add noreturn to __pthread_exit.
1072 * sysdeps/pthread/pthread-functions.h: Likewise for ptr___pthread_exit.
1074 2011-12-30 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1076 * sysdeps/unix/sysv/linux/aio_misc.h (__aio_create_helper_thread):
1077 Call pthread_attr_setstacksize() with result of
1078 __pthread_get_minstack() to account for application TLS usage.
1080 2012-01-08 Marek Polacek <polacek@redhat.com>
1082 * sysdeps/unix/sysv/linux/mq_notify.c: Include <nptl/pthreadP.h>.
1084 2012-01-07 Ulrich Drepper <drepper@gmail.com>
1087 * pthreadP.h: Use const instead of __const.
1088 * semaphore.h: Likewise.
1089 * sysdeps/pthread/bits/libc-lock.h: Likewise.
1090 * sysdeps/pthread/bits/sigthread.h: Likewise.
1091 * sysdeps/pthread/pthread.h: Likewise.
1093 * Makefile: Remove elf=yes test, only ELF is supported.
1095 * shlib-versions: Remove entries for ports architectures.
1097 In case anyone cares, the IA-64 architecture could move to ports.
1098 * sysdeps/ia64/*: Removed.
1099 * sysdeps/unix/sysv/linux/ia64/*: Removed.
1101 2011-12-22 Ulrich Drepper <drepper@gmail.com>
1103 * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread): Use
1104 __pthread_get_minstack.
1105 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
1108 * sysdeps/unix/sysv/linux/timer_routines.c: Get minimum stack size
1109 through __pthread_get_minstack.
1110 * nptl-init.c (__pthread_initialize_minimal_internal): Get page size
1111 directly from _rtld_global_ro.
1112 (__pthread_get_minstack): New function.
1113 * pthreadP.h: Declare __pthread_get_minstack.
1114 * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_get_minstack.
1116 2011-12-21 Ulrich Drepper <drepper@gmail.com>
1119 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1120 Correct reading name from file.
1122 2011-12-14 Carlos O'Donell <carlos@systemhalted.org>
1124 * allocatestack.c (allocate_stack): Return errno on failure.
1126 2011-12-14 Jeff Law <law@redhat.com>
1129 * pthread_create.c (__pthread_create_2_1): Translate ENOMEM to EAGAIN.
1131 2011-11-28 Andreas Schwab <schwab@redhat.com>
1133 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Handle
1134 EAGAIN from FUTEX_WAIT_REQUEUE_PI.
1135 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1137 2011-11-15 Ulrich Drepper <drepper@gmail.com>
1139 * pthread_getattr_np.c (pthread_getattr_np): Set FD_CLOEXEC for
1142 2011-10-29 Ulrich Drepper <drepper@gmail.com>
1145 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1146 (__pthread_cond_timedwait): Initialize %r15 correctly also for code
1147 path for kernels with FUTEX_CLOCK_REALTIME.
1148 Debugged by H.J. Lu <hjl.tools@gmail.com>.
1150 2011-10-27 Andreas Schwab <schwab@redhat.com>
1153 * sysdeps/pthread/pthread.h: Use __THREADNL instead of __THREAD
1154 for memory synchronization functions.
1155 * semaphore.h: Likewise.
1157 2011-10-24 Ulrich Drepper <drepper@gmail.com>
1159 * tst-cancel7.c: Avoid warning.
1160 * tst-mutex6.c: Likewise.
1161 * tst-mutex9.c: Likewise.
1162 * tst-mutexpi6.c: Likewise.
1164 2011-10-23 Ulrich Drepper <drepper@gmail.com>
1166 * sysdeps/i386/tls.h: Remove #include <list.h>.
1168 2011-10-15 Ulrich Drepper <drepper@gmail.com>
1170 * pthread_create.c (start_thread): Call __ctype_init.
1172 2011-09-15 Andreas Schwab <schwab@redhat.com>
1174 * sysdeps/pthread/list.h: Define only list_t if __need_list_t is
1176 (list_add): Add atomic_write_barrier.
1177 * descr.h: Define __need_list_t before including <list.h>.
1178 * nptl-init.c: Include <list.h>
1179 * allocatestack.c: Likewise.
1181 2011-09-11 Ulrich Drepper <drepper@gmail.com>
1183 * sysdeps/i386/tls.h: Remove HAVE_TLS_SUPPORT test.
1184 * sysdeps/ia64/tls.h: Likewise.
1185 * sysdeps/powerpc/tls.h: Likewise.
1186 * sysdeps/s390/tls.h: Likewise.
1187 * sysdeps/sh/tls.h: Likewise.
1188 * sysdeps/sparc/tls.h: Likewise.
1189 * sysdeps/x86_64/tls.h: Likewise.
1191 2011-09-10 Ulrich Drepper <drepper@gmail.com>
1193 * sysdeps/pthread/malloc-machine.h: Define MUTEX_INITIALIZER.
1195 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Don't handle
1197 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
1198 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
1199 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
1200 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
1201 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
1202 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
1203 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
1204 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
1205 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
1206 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
1207 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
1208 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
1210 * tst-tls1.c: Support for __thread is now mandatory.
1211 * tst-tls2.c: Likewise.
1212 * tst-tls3.c: Likewise.
1213 * tst-tls3mod.c: Likewise.
1214 * tst-tls4.c: Likewise.
1215 * tst-tls4moda.c: Likewise.
1216 * tst-tls4modb.c: Likewise.
1217 * tst-tls5.h: Likewise.
1219 2011-09-08 Ulrich Drepper <drepper@gmail.com>
1222 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
1223 (pthread_rwlock_timedwrlock): Use correct macro in test.
1224 Patch by H.J. Lu <hongjiu.lu@intel.com>.
1226 2011-09-06 Ulrich Drepper <drepper@gmail.com>
1228 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait): Don't
1229 use gettimeofday vsyscall, just call gettimeofday.
1230 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1231 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
1232 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
1234 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
1236 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1237 Simplify __vdso_clock_gettime use.
1239 2011-09-05 David S. Miller <davem@davemloft.net>
1241 * sysdeps/unix/sysv/linux/sem_timedwait.c (do_futex_timed_wait):
1243 (sem_timedwait): Call it to force an exception region around
1244 the async cancel enable and the futex operation.
1245 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Likewise.
1246 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Likewise.
1247 * sysdeps/unix/sysv/linux/sem_wait.c (do_futex_wait): New function.
1248 (__new_sem_wait): Call it to force an exception region around
1249 the async cancel enable and the futex operation.
1250 * sysdeps/unix/sysv/linux/sparc/sem_wait.c: Likewise.
1251 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Likewise.
1253 2011-08-31 Andreas Schwab <schwab@redhat.com>
1255 * allocatestack.c (setxid_mark_thread): Ensure that the exiting
1258 2011-08-20 David S. Miller <davem@davemloft.net>
1260 * Makefile (tst-cleanup0.out): Fix typo in output redirection.
1262 2011-08-14 Roland McGrath <roland@hack.frob.com>
1264 * sysdeps/i386/pthreaddef.h (TCB_ALIGNMENT): Set to 64, optimal on Atom.
1265 * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Likewise.
1267 2011-08-08 Andreas Schwab <schwab@redhat.com>
1269 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Maintain aligned
1271 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1272 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1274 2011-07-22 Ulrich Drepper <drepper@gmail.com>
1276 * sysdeps/pthread/unwind-forcedunwind.c (_Unwind_Resume): Add read
1278 (__gcc_personality_v0): Likewise.
1279 (_Unwind_ForcedUnwind): Likewise.
1280 (_Unwind_GetCFA): Likewise.
1282 2011-07-14 Roland McGrath <roland@hack.frob.com>
1284 * allocatestack.c (__reclaim_stacks): Use uintptr_t cast rather than
1287 2011-06-30 Ulrich Drepper <drepper@gmail.com>
1289 * nptl-init.c (__nptl_set_robust): New function.
1290 (pthread_functions): Add reference.
1291 * npthreadP.h: Declare __nptl_set_robust.
1292 * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
1293 ptr_set_robust member.
1294 * sysdeps/unix/sysv/linux/fork.c: Call set_robust_list syscall in
1295 child if threads are used.
1297 2011-06-14 Andreas Jaeger <aj@suse.de>
1299 * pthread_rwlock_init.c: Include <string.h> for memset declaration.
1301 2011-05-11 Ulrich Drepper <drepper@gmail.com>
1304 * allocatestack.c (allocate_stack): Convert ENOMEM error to EAGAIN.
1306 2011-04-10 Ulrich Drepper <drepper@gmail.com>
1309 * allocatestack.c (get_cached_stack): Deallocate DTV entries before
1311 Patch partly by Robert Rex <robert.rex@exasol.com>.
1313 2011-01-19 Roland McGrath <roland@redhat.com>
1315 * pthread_cond_wait.c (__pthread_cond_wait): Fix comment typo.
1316 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
1317 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Likewise.
1318 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
1319 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise.
1320 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Likewise.
1322 2011-01-16 Andreas Schwab <schwab@linux-m68k.org>
1324 * Makefile (test-extras): Add tst-cleanup4aux.
1326 2011-01-14 Ulrich Drepper <drepper@gmail.com>
1329 * sysdeps/pthread/setxid.h (__SETXID_1): Add cast to assignment.
1330 (__SETXID_2): Likewise.
1331 (__SETXID_3): Likewise.
1333 2011-01-13 Ulrich Drepper <drepper@gmail.com>
1336 * Versions [libc] (GLIBC_PRIVATE): Export __libc_alloca_cutoff.
1337 * alloca_cutoff.c: Add libc_hidden_def.
1339 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
1342 * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Changed to 32.
1343 * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Defined with alignment
1344 of "struct pthread".
1346 2010-09-21 Andreas Schwab <schwab@redhat.com>
1348 * sysdeps/pthread/pthread.h (pthread_cleanup_push)
1349 [!__EXCEPTIONS]: Mangle local variable not_first_call.
1350 (pthread_cleanup_push_defer_np): Likewise.
1352 2010-09-03 Ulrich Drepper <drepper@redhat.com>
1354 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Expect blocks are
1357 2010-08-10 Dinakar Guniguntala <dino@in.ibm.com>
1358 Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
1360 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: If
1361 FUTEX_WAKE_OP fails make sure to call FUTEX_WAKE instead.
1363 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
1365 * sysdeps/unix/sysv/linux/i386/Makefile: New file.
1367 2010-05-01 Alan Modra <amodra@gmail.com>
1369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
1370 (PSEUDO): Use correct cr save. Don't use wrong parm save area
1371 to save temps. Correct cfi for possible later frame manipulation.
1372 (DOCARGS_1, UNDOCARGS_1): Use the correct parm save area.
1373 (DOCARGS_2, UNDOCARGS_2, DOCARGS_3, UNDOCARGS_3): Likewise.
1374 (DOCARGS_4, UNDOCARGS_4, DOCARGS_5, UNDOCARGS_5): Likewise.
1375 (DOCARGS_6, UNDOCARGS_6): Likewise.
1376 (CENABLE, CDISABLE): Add nops for non-shared calls.
1378 2010-07-06 Andreas Schwab <schwab@redhat.com>
1380 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1383 2010-07-03 Ulrich Drepper <drepper@redhat.com>
1385 * tst-abstime.c (do_test): Some more cleanups
1387 2010-07-02 Ulrich Drepper <drepper@redhat.com>
1389 * tst-abstime.c: Correct testing and add test for sem_timedwait.
1391 2010-07-01 Andreas Schwab <schwab@redhat.com>
1392 Ulrich Drepper <drepper@redhat.com>
1394 * Makefile (tests): Add tst-abstime.
1395 * tst-abstime.c: New file.
1396 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1397 (__lll_timedlock_wait): Check for timestamp before the Epoch.
1398 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
1399 (__lll_timedlock_wait): Likewise.
1400 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
1401 (__lll_robust_timedlock_wait): Likewise.
1402 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1403 (__pthread_cond_timedwait): Likewise.
1404 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
1405 (pthread_rwlock_timedrdlock): Likewise.
1406 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
1407 (pthread_rwlock_timedwrlock): Likewise.
1408 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
1411 2010-07-01 Ulrich Drepper <drepper@redhat.com>
1413 * Makefile (tst-_res1): Add tst-_res1mod1 to dependency list.
1415 2010-06-01 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
1417 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Fix incorrect
1418 location of ifndef __ASSUME_FUTEX_CLOCK_REALTIME.
1420 2010-04-09 Ulrich Drepper <drepper@redhat.com>
1423 * sysdeps/unix/sysv/linux/pthread_getname.c: New file.
1424 * sysdeps/unix/sysv/linux/pthread_setname.c: New file.
1425 * nptl/sysdeps/pthread/pthread.h: Declare pthread_getname and
1427 * Makefile (libpthread-routines): Add pthread_getname and
1429 * Versions: Export pthread_getname and pthread_setname for GLIBC_2.12.
1431 2010-04-05 Thomas Schwinge <thomas@schwinge.name>
1433 * sysdeps/pthread/unwind-resume.c: Moved to main tree sysdeps/gnu/.
1434 * sysdeps/pthread/rt-unwind-resume.c: Likewise.
1435 * sysdeps/pthread/Makefile: Remove csu section and rt section's
1436 unwind-resume bits, now in main tree sysdeps/gnu/Makefile instead.
1438 2010-03-23 Luis Machado <luisgpm@br.ibm.com>
1440 * pthread_cond_timedwait.c: Add check for
1441 HAVE_CLOCK_GETTIME_VSYSCALL to use VDSO whenever possible.
1442 (pthread_cond_timedwait): Use INTERNAL_VSYSCALL instead of
1445 2010-03-09 Ulrich Drepper <drepper@redhat.com>
1447 * pthread_create.c (__pthread_create_2_1): If priorities are incorrect
1448 and the call fails wake eventually waiting setxid threads. Don't free
1449 stack here if we try starting a thread.
1450 * sysdeps/pthread/createthread.c (do_clone): Only wake setxid waiter
1451 if the clone call failed.
1453 2010-03-08 Andreas Schwab <schwab@redhat.com>
1455 * pthread_create.c (__pthread_create_2_1): Don't set setxid_futex.
1456 * allocatestack.c (get_cached_stack): Set setxid_futex.
1457 (allocate_stack): Likewise.
1459 2010-03-05 Andreas Schwab <schwab@redhat.com>
1460 Ulrich Drepper <drepper@redhat.com>
1462 * allocatestack.c (setxid_mark_thread): Delay handling of thread if
1463 it is creating a thread or it is just being created.
1464 * pthread_create.c (start_thread): Wake setxid thread if it is
1466 (__pthread_create_2_1): Initialize setxid_futex.
1467 * sysdeps/pthread/createthread.c (do_clone): Wake setxid thread if it
1470 2010-01-15 Ulrich Drepper <drepper@redhat.com>
1472 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
1474 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
1476 2010-01-15 Michal Schmidt <mschmidt@redhat.com>
1478 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
1479 Fix pthread_cond_timedwait with requeue-PI.
1480 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
1481 Fix pthread_cond_wait with requeue-PI.
1483 2010-01-14 Ulrich Drepper <drepper@redhat.com>
1485 * Versions: Add pthread_mutex_consistent, pthread_mutexattr_getrobust,
1486 and pthread_mutexattr_setrobust for GLIBC_2.12.
1487 * pthread_mutex_consistent.c: Define alias pthread_mutex_consistent.
1488 * pthread_mutexattr_getrobust.c: Define alias
1489 pthread_mutexattr_getrobust.
1490 * pthread_mutexattr_setrobust.c: Define alias
1491 pthread_mutexattr_setrobust.
1493 2010-01-12 Ulrich Drepper <drepper@redhat.com>
1495 * sysdeps/pthread/pthread.h: Cleanup. Fix up for XPG7.
1497 2010-01-08 Ulrich Drepper <drepper@redhat.com>
1499 * sysdeps/pthread/pthread.h: Fix pthread_mutex_consistent declaration.
1501 2009-12-18 Thomas Schwinge <thomas@codesourcery.com>
1503 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c (_init): Don't
1504 call __gmon_start__.
1505 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c (_init): Likewise.
1507 2009-12-17 Ulrich Drepper <drepper@redhat.com>
1509 * pthread_rwlock_init.c (__pthread_rwlock_init): Simplify code by
1512 2009-12-01 Dinakar Guniguntala <dino@in.ibm.com>
1514 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.h: Define
1515 FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
1516 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: If mutex
1517 is a non robust PI mutex, then use FUTEX_CMP_REQUEUE_PI.
1518 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
1519 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: If mutex
1520 is a non robust PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
1521 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
1523 2009-12-12 Ulrich Drepper <drepper@redhat.com>
1525 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
1526 Don't update nwaiters after invalid timeout is recognized.
1528 2009-11-27 Thomas Schwinge <thomas@codesourcery.com>
1530 * sysdeps/unix/sysv/linux/sh/pt-initfini.c (_init): Don't call
1533 2009-11-27 Andreas Schwab <schwab@redhat.com>
1535 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Reload
1536 THREAD_SELF->cancelhandling after returning from futex call.
1538 2009-11-24 Ulrich Drepper <drepper@redhat.com>
1540 * tst-sem13.c: New file.
1541 * Makefile (tests): Add tst-sem13.
1543 2009-11-22 Roland McGrath <roland@redhat.com>
1545 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: # include "i686/dl-sysdep.h"
1546 instead of recapitulating its contents.
1548 2009-11-18 Ulrich Drepper <drepper@redhat.com>
1550 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Minor
1551 optimizations and cleanups.
1553 2009-11-18 Dinakar Guniguntala <dino@in.ibm.com>
1555 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
1556 Remove redundant code. Fix cfi offsets.
1557 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
1560 2009-11-17 Ulrich Drepper <drepper@redhat.com>
1562 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Minimally
1563 reduce size of unwind info.
1565 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Convert to use
1567 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1568 Based on a patch by Dinakar Guniguntala <dino@in.ibm.com>.
1570 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
1573 * sysdeps/pthread/unwind-resume.c: Include <libgcc_s.h> and use
1575 * sysdeps/pthread/unwind-forcedunwind.c: Likewise.
1577 2009-10-30 Ulrich Drepper <drepper@redhat.com>
1579 * tst-sem11.c (main): Rewrite to avoid aliasing problems.
1582 * allocatestack.c (__nptl_setxid): Perform the operation in multiple
1583 steps to avoid races with creation and terminations.
1584 * nptl-init.c (sighandler_setxid): Adjust.
1585 Patch by Daniel Jacobowitz.
1587 2009-09-07 Andreas Schwab <schwab@redhat.com>
1589 * sysdeps/pthread/bits/libc-lock.h (BP_SYM): Remove space before paren.
1591 2009-09-02 Suzuki K P <suzuki@in.ibm.com>
1592 Joseph Myers <joseph@codesourcery.com>
1595 * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
1596 Initialize the sigev_notify field for newly created timer to make sure
1597 the timer gets deleted from the active timer's list upon timer_delete.
1599 2009-08-27 Andrew Stubbs <ams@codesourcery.com>
1601 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
1602 Correct a logic error.
1604 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1606 * sysdeps/x86_64/tls.h (RTLD_ENABLE_FOREIGN_CALL): Store old value
1607 of the field in local variables.
1608 (RTLD_FINALIZE_FOREIGN_CALL): Restore rtld_must_xmm_save from local
1609 variable and don't unconditionally clear it.
1611 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1613 * pthread_create.c (start_thread): Hint to the kernel that memory for
1614 the stack can be reused. We do not mark all the memory. The part
1615 still in use and some reserve are kept.
1617 2009-08-23 Ulrich Drepper <drepper@redhat.com>
1619 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Clean up namespace.
1621 2009-08-11 Ulrich Drepper <drepper@redhat.com>
1623 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Add CFI
1626 2009-08-10 Ulrich Drepper <drepper@redhat.com>
1628 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Add CFI
1630 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
1632 2009-08-10 Andreas Schwab <schwab@redhat.com>
1634 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
1635 (__pthread_cond_signal): Don't clobber register used for syscall
1638 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1640 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
1641 Optimize code path used when FUTEX_CLOCK_REALTIME is supported.
1643 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1644 (__pthread_cond_wait): Optimize by avoiding use of callee-safe
1647 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1649 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Little optimizations
1650 enabled by the special *_asynccancel functions.
1651 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1652 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1654 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include lowlevellock.h.
1656 2009-08-04 Ulrich Drepper <drepper@redhat.com>
1658 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: New file.
1659 * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: New file.
1660 * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: New file.
1661 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Optimize
1662 since we can assume the special __*_{en,dis}able_asynccancel
1664 (PUSHARGS_*, POPARGS_*, SAVESTK_*, RESTSTK_*): Removed.
1665 * sysdeps/x86_64/tcb-offsets.sym: Add cancellation-related bits
1666 and PTHREAD_CANCELED.
1668 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1670 * descr.h: Better definition of *_BITMASK macros for cancellation.
1672 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1674 * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Define explicitly to 32.
1676 * sysdeps/x86_64/tls.h (tcbhead_t): Add room for SSE registers the
1677 dynamic linker might have to save.
1678 Define RTLD_CHECK_FOREIGN_CALL, RTLD_ENABLE_FOREIGN_CALL,
1679 RTLD_PREPARE_FOREIGN_CALL, and RTLD_FINALIZE_FOREIGN_CALL. Pretty
1682 * sysdeps/x86_64/tcb-offsets.sym: Add RTLD_SAVESPACE_SSE.
1684 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1686 * pthread_mutex_lock.c [NO_INCR] (__pthread_mutex_cond_lock_adjust):
1688 * pthreadP.h: Declare __pthread_mutex_cond_lock_adjust.
1689 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add ROBUST_BIT.
1690 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Don't use
1691 requeue_pi for robust mutexes.
1692 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
1693 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1694 Don't only skip __pthread_mutex_cond_lock. Call instead
1695 __pthread_mutex_cond_lock_adjust.
1696 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1698 * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Minor
1699 optimization of PI mutex handling.
1701 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1704 * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Use _rel
1705 instead of of _acq variants of cmpxchg.
1707 2009-07-23 Ulrich Drepper <drepper@redhat.com>
1709 * sysdeps/x86_64/configure.in: New file.
1711 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix error
1712 path when not using absolute timeout futex.
1714 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1716 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Minor
1717 optimizations of last changes.
1718 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1720 2009-07-19 Ulrich Drepper <drepper@redhat.com>
1722 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
1723 FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
1724 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: If mutex
1725 is a PI mutex, then use FUTEX_CMP_REQUEUE_PI.
1726 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
1727 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: If mutex
1728 is a PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
1729 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1731 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1732 (__pthread_cond_timedwait): Make more robust.
1734 2009-07-18 Ulrich Drepper <drepper@redhat.com>
1736 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
1737 (__lll_robust_timedlock_wait): If possible use FUTEX_WAIT_BITSET to
1738 directly use absolute timeout.
1740 * tst-sem5.c (do_test): Add test for premature timeout.
1741 * Makefile: Linu tst-sem5 with librt.
1743 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
1744 (pthread_rwlock_timedwrlock): If possible use FUTEX_WAIT_BITSET to
1745 directly use absolute timeout.
1746 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
1747 (pthread_rwlock_timedrdlock): Likewise.
1749 * tst-cond11.c (run_test): Add test to check that the timeout is
1752 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1753 (__pthread_cond_timedwait): If possible use FUTEX_WAIT_BITSET to
1754 directly use absolute timeout.
1756 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1757 (__pthread_cond_wait): Convert to using exception handler instead of
1758 registered unwind buffer.
1759 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1760 (__pthread_cond_timedwait): Likewise.
1762 2009-07-17 Ulrich Drepper <drepper@redhat.com>
1764 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
1765 If possible use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME to directly
1766 use absolute timeout.
1768 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Optimize
1769 handling of uncontested semaphore.
1771 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1772 (__condvar_cleanup): Rewrite to use cfi directives instead of
1773 hand-coded unwind tables.
1774 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S (__pthread_once):
1776 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
1777 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
1780 2009-06-12 Ulrich Drepper <drepper@redhat.com>
1782 * Makefile (libpthread-routines): Add pthread_sigqueue.
1783 * Versions: Add pthread_sigqueue for GLIBC_2.11.
1784 * sysdeps/pthread/bits/sigthread.h: Declare pthread_sigqueue.
1785 * sysdeps/unix/sysv/linux/pthread_sigqueue.c: New file.
1787 2009-06-11 Ulrich Drepper <drepper@redhat.com>
1790 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1791 (LOAD_FUTEX_WAIT_ABS): Fix futex parameter in case private futexes
1793 Patch by Bryan Kadzban <bz-glibc@kdzbn.homelinux.net>.
1795 2009-05-16 Ulrich Drepper <drepper@redhat.com>
1797 * libc-cancellation.c: Move __libc_cleanup_routine to...
1798 * libc-cleanup.c: ...here. New file.
1799 * Makefile (routines): Add libc-cleanup.
1801 * cancellation.c (__pthread_disable_asynccancel): Remove unnecessary
1803 * libc-cancellation.c: Use <nptl/cancellation.c: to define the code.
1804 * sysdeps/pthread/librt-cancellation.c: Likewise.
1807 * nptl-init.c: Renamed from init.c.
1808 * Makefile: Change all occurences of init.c to nptl-init.c.
1810 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1812 * cancellation.c (__pthread_disable_asynccancel): Correct the bits
1813 to test when deciding on the delay.
1814 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
1815 * pthread_cancel.c: Close race between deciding on sending a signal
1816 and setting the CANCELING_BIT bit.
1818 * cancellation.c (__pthread_disable_asynccancel): Don't return if
1820 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
1822 2009-04-27 Ulrich Drepper <drepper@redhat.com>
1824 * cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND
1826 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
1827 * sysdeps/x86_64/tls.h: Define THREAD_ATOMIC_AND.
1828 * sysdeps/i386/tls.h: Likewise.
1829 (tcbhead_t): Add __private_tm member.
1831 2009-04-26 Ulrich Drepper <drepper@redhat.com>
1833 * sem_open.c (sem_open): Rewrite initialization of initsem to
1836 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
1837 Avoid warning by using may_alias attribute on ptrhack.
1839 2009-04-22 Ulrich Drepper <drepper@redhat.com>
1842 * pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
1843 Check policy and priority for validity.
1844 Patch mostly by Zhang Xiliang <zhangxiliang@cn.fujitsu.com>.
1846 2009-03-15 Ulrich Drepper <drepper@redhat.com>
1848 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1849 (__pthread_cond_timedwait): Change to use cfi directives instead of
1850 hand-coded unwind sections.
1852 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1854 * init.c (nptl_freeres): Compile only for SHARED.
1856 2009-03-09 Jakub Jelinek <jakub@redhat.com>
1858 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define
1859 FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME and
1860 FUTEX_BITSET_MATCH_ANY.
1862 2009-02-27 Roland McGrath <roland@redhat.com>
1864 * init.c (__nptl_initial_report_events): Mark __attribute_used__.
1865 * pthread_create.c (__nptl_threads_events, __nptl_last_event): Likewise.
1867 2009-02-26 Ulrich Drepper <drepper@redhat.com>
1869 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1870 _POSIX_THREAD_ROBUST_PRIO_INHERIT and
1871 _POSIX_THREAD_ROBUST_PRIO_PROTECT. Reset value of macros from
1874 2009-02-25 Ulrich Drepper <drepper@redhat.com>
1876 * sysdeps/pthread/pthread.h: The robust mutex functions are in
1879 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1881 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_BITS_POSIX_OPT_H):
1882 Unify name of include protector macro.
1884 2009-02-14 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1886 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
1887 LOAD_FUTEX_WAIT_ABS even if (FUTEX_WAIT == 0).
1889 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1891 * sysdeps/pthread/unwind-forcedunwind.c: Encrypt all function
1894 * allocatestack.c (__free_stacks): Renamed from free_stacks.
1895 (__free_stack_cache): Removed. Change callers to call __free_stacks.
1896 * init.c (nptl_freeres): New function.
1897 (pthread_functions): Initialize ptr_freeres to nptl_freeres.
1898 * pthreadP.h: Don't declare __free_stack_cache. Declare __free_stacks.
1899 * sysdeps/pthread/unwind-forcedunwind.c (libgcc_s_handle): New
1901 (pthread_cancel_init): Depend in libgcc_s_handle for decision to
1902 load DSO. Assign last.
1903 (__unwind_freeres): New function.
1905 * allocatestack.c (__reclaim_stacks): Reset in_flight_stack later
1906 for better debugging. No need to use stack_list_add here.
1908 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1910 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
1911 (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
1912 instead of computing relative timeout.
1913 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
1914 FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
1916 2009-01-25 Ulrich Drepper <drepper@redhat.com>
1918 * pthread_mutex_lock.c (__pthread_mutex_lock): Remove unused label out.
1920 2009-01-08 Ulrich Drepper <drepper@redhat.com>
1922 * sysdeps/pthread/list.h (list_add): Initialize new element first.
1923 (list_add_tail): Removed.
1925 2009-01-07 Ulrich Drepper <drepper@redhat.com>
1927 * (in_flight_stack): New variable.
1928 (stack_list_del): New function. Use instead of list_del.
1929 (stack_list_add): New function. Use instead of list_add when adding to
1930 stack_cache and stack_used lists.
1931 (__reclaim_stacks): Complete operations on stack_cache and stack_used lists
1932 when the fork call interrupted another thread.
1934 2009-01-04 Ulrich Drepper <drepper@redhat.com>
1936 * init.c (__pthread_initialize_minimal_internal): Optimize test
1937 FUTEX_CLOCK_REALTIME a bit.
1939 2009-01-03 Ulrich Drepper <drepper@redhat.com>
1941 * init.c (__pthread_initialize_minimal_internal): Cheat a bit by
1942 only passing five parameters to FUTEX_WAIT_BITSET call.
1944 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1945 (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
1946 instead of computing relative timeout.
1948 2009-01-02 Ulrich Drepper <drepper@redhat.com>
1950 * init.c (__pthread_initialize_minimal_internal): Check for
1951 FUTEX_CLOCK_REALTIME flag.
1952 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
1953 Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME instead of computing
1956 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
1957 FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
1958 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1959 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
1960 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
1961 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1963 2008-12-09 Ulrich Drepper <drepper@redhat.com>
1965 * sysdeps/pthread/pthread.h (pthread_cleanup_pop): Use { } as empty
1966 loop body instead of ; to avoid gcc warnings.
1967 (pthread_cleanup_pop_restore_np): Likewise.
1968 Patch by Caolán McNamara <caolanm@redhat.com>.
1970 2008-12-09 Jakub Jelinek <jakub@redhat.com>
1972 * pthread_mutex_lock.c (__pthread_mutex_lock): Handle only the
1973 fast path here, for robust/PI/PP mutexes call
1974 __pthread_mutex_lock_full. Don't use switch, instead use a series
1975 of ifs according to their probability.
1976 (__pthread_mutex_lock_full): New function.
1977 * pthread_mutex_unlock.c: Include assert.h.
1978 (__pthread_mutex_unlock_usercnt): Handle only the
1979 fast path here, for robust/PI/PP mutexes call
1980 __pthread_mutex_unlock_full. Don't use switch, instead use a series
1981 of ifs according to their probability.
1982 (__pthread_mutex_unlock_full): New function.
1983 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
1984 (__pthread_mutex_lock_full): Define.
1986 2008-12-08 Ulrich Drepper <drepper@redhat.com>
1988 * sysdeps/x86_64/tls.h (tcbhead_t): Add fields reserved for TM
1989 implementation. Add necessary padding and.
1990 * descr.h (struct pthread): Increase padding for tcbhead_t to 24
1993 2008-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1995 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define FUTEX_WAIT_BITSET
1996 and FUTEX_WAKE_BITSET.
1998 2008-12-02 Ulrich Drepper <drepper@redhat.com>
2000 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_WAIT_BITSET
2001 and FUTEX_WAKE_BITSET.
2002 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2003 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2004 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2005 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2007 2008-11-25 Roland McGrath <roland@redhat.com>
2009 * sysdeps/alpha, sysdeps/unix/sysv/linux/alpha:
2010 Subdirectories moved to ports repository as
2011 sysdeps/.../nptl subdirectories.
2013 2008-11-12 Jakub Jelinek <jakub@redhat.com>
2016 * pthread_condattr_setclock.c (pthread_condattr_setclock): Fix masking
2018 * pthread_cond_init.c (__pthread_cond_init): Fix
2019 cond->__data.__nwaiters initialization.
2020 * Makefile (tests): Add tst-cond23.
2021 * tst-cond23.c: New test.
2023 2008-11-07 Jakub Jelinek <jakub@redhat.com>
2025 * sysdeps/pthread/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2027 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2030 2008-11-01 Ulrich Drepper <drepper@redhat.com>
2033 * pthread_mutex_lock.c: Add support for private PI mutexes.
2034 * pthread_mutex_timedlock.c: Likewise.
2035 * pthread_mutex_trylock.c: Likewise.
2036 * pthread_mutex_unlock.c: Likewise.
2037 Patch mostly by Ben Jackson <ben@ben.com>.
2039 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2042 * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread):
2043 Increase stack size for helper thread.
2045 2008-10-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2047 * sysdeps/s390/tls.h (THREAD_SET_STACK_GUARD): Add empty inline
2048 assembly with a clobber list for access registers a0 and a1.
2050 2008-09-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
2052 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
2053 to force runp->refcntr to be read from memory.
2055 2008-09-08 Richard Guenther <rguenther@suse.de>
2057 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock,
2058 lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
2059 lll_timedlock, lll_robust_timedlock, lll_unlock,
2060 lll_robust_unlock): Promote private to int.
2062 2008-08-15 Ulrich Drepper <drepper@redhat.com>
2064 * sysdeps/x86_64/pthreaddef.h: Remove ARCH_MAP_FLAGS and
2065 ARCH_RETRY_MMAP definitions.
2066 * allocatestack.c: Remove definition of ARCH_MAP_FLAGS.
2067 Define MAP_STACK when not defined.
2068 (allocate_stack): Use MAP_STACK instead of ARCH_MAP_FLAGS. Remove
2069 handling of ARCH_RETRY_MMAP.
2071 2008-07-30 Ulrich Drepper <drepper@redhat.com>
2073 * tst-align2.c (f): Print message that f is reached.
2075 2008-04-28 Hiroki Kaminaga <kaminaga@sm.sony.co.jp>
2078 * sysdeps/powerpc/tcb-offsets.sym (PRIVATE_FUTEX_OFFSET): Guard symbol
2079 definition with #ifndef __ASSUME_PRIVATE_FUTEX.
2081 2008-07-25 Ulrich Drepper <drepper@redhat.com>
2083 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Use
2084 SOCK_CLOEXEC if possible.
2086 2008-05-29 Ulrich Drepper <drepper@redhat.com>
2088 * Makefile (tests): Add tst-rwlock2a.
2089 * tst-rwlock2.c: Use TYPE macro to decide what rwlock type to use.
2090 * tst-rwlock2a.c: New file.
2092 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2094 * sysdeps/pthread/pthread.h: Remove inadvertant checkin.
2096 2008-05-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2098 * sysdeps/pthread/pthread.h: Fix typo in comment.
2100 2008-05-28 Ulrich Drepper <drepper@redhat.com>
2102 * sysdeps/pthread/createthread.c (do_clone): Pass accurate length
2103 of CPU set to the kernel.
2105 2008-05-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2107 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Add
2109 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
2110 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
2111 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
2112 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
2113 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
2114 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
2116 2008-05-22 Paul Pluzhnikov <ppluzhnikov@google.com>
2118 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: Add
2120 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2122 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2124 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2127 2008-05-26 Ulrich Drepper <drepper@redhat.com>
2129 * tst-typesizes.c: Explicitly check __SIZEOF_PTHREAD_* constants.
2131 2008-05-20 Jakub Jelinek <jakub@redhat.com>
2133 David S. Miller <davem@davemloft.net>
2135 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
2137 2008-05-10 Ulrich Drepper <drepper@redhat.com>
2139 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Access
2140 __pshared correctly.
2141 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2143 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2145 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2147 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2149 Reported by Clemens Kolbitsch <clemens.kol@gmx.at>.
2151 2008-04-14 David S. Miller <davem@davemloft.net>
2153 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
2154 (__old_sem_wait): Fix argument to lll_futex_wait().
2156 2007-11-26 Daniel Jacobowitz <dan@codesourcery.com>
2158 * pthread_create.c: Require pthread_mutex_trylock and
2159 pthread_key_delete for libgcc.
2161 2008-04-08 Jakub Jelinek <jakub@redhat.com>
2164 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
2165 (lll_futex_wake_unlock): Add private argument to the pre-v9 macro.
2166 Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>.
2168 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2170 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine ARG_MAX if
2171 <linux/limits.h> has defined it.
2172 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
2173 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
2174 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
2175 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
2177 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2179 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Use __ASSEMBLER__ instead
2181 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
2182 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Likewise.
2184 2008-03-14 Ulrich Drepper <drepper@redhat.com>
2186 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
2187 HAVE_DL_DISCOVER_OSVERSION.
2188 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
2189 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Likewise.
2191 2008-03-07 Ulrich Drepper <drepper@redhat.com>
2194 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2195 _POSIX_CHOWN_RESTRICTED value to zero.
2197 2008-01-31 Roland McGrath <roland@redhat.com>
2199 * Makefile (omit-deps): Variable removed.
2201 2008-01-30 Ulrich Drepper <drepper@redhat.com>
2203 * sysdeps/unix/sysv/linux/x86_64/sem_post.S (sem_post): Avoid
2204 unnecessary addr32 prefix.
2206 2008-01-29 Roland McGrath <roland@redhat.com>
2208 * Makeconfig (ptw-CPPFLAGS, sysd-rules-patterns): New variables.
2210 2008-01-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2212 * sysdeps/unix/sysv/linux/sh/sem_post.S: Don't overflow value field.
2214 2008-01-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2216 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XADD): Use
2218 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
2219 (__lll_lock_wait_private): Fix typo.
2220 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
2221 (pthread_barrier_wait): Likewise. Adjust XADD use.
2222 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
2224 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
2225 (pthread_rwlock_timedrdlock): Return correct return value.
2226 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
2227 (pthread_rwlock_timedwrlock): Likewise.
2229 2008-01-15 Ulrich Drepper <drepper@redhat.com>
2231 * tst-eintr2.c (do_test): make sure that if mutex_lock in main
2232 thread returns the program exits with an error code.
2234 2008-01-10 Ulrich Drepper <drepper@redhat.com>
2236 * pthread-errnos.sym: Add EOVERFLOW.
2237 * sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX.
2238 * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field.
2239 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
2240 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
2242 2007-12-14 Ulrich Drepper <drepper@redhat.com>
2244 * sysdeps/x86_64/pthreaddef.h (ARCH_RETRY_MMAP): Take additional
2245 parameter. Passed it as permission to mmap.
2246 * allocatestack.c (allocate_stack): Pass prot as second parameter
2249 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2251 * tst-basic7.c: Allocate memory for the stack.
2254 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S [!SHARED]
2255 (__pthread_cond_timedwait): Don't use VDSO.
2256 Patch by Michal Januszewski.
2258 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2261 * sysdeps/pthread/pthread.h [!__EXCEPTIONS] (pthread_cleanup_pop):
2262 Allow label before pthread_cleanup_pop.
2263 (pthread_cleanup_pop_restore_np): Likewise.
2265 2007-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2267 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
2268 Store 2 before returning ETIMEDOUT.
2270 2007-11-23 Ulrich Drepper <drepper@redhat.com>
2272 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
2273 Store 2 before returning ETIMEDOUT.
2274 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise
2275 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
2276 (__lll_lock_wait_private): Optimize.
2277 (__lll_lock_wait): Likewise.
2279 2007-11-20 Jakub Jelinek <jakub@redhat.com>
2281 * sysdeps/pthread/pthread.h (pthread_cleanup_push,
2282 pthread_cleanup_push_defer_np): Add extra (void *) cast to shut up
2283 g++ 4.1 and 4.2 -Wstrict-aliasing warnings.
2285 2007-11-08 Ulrich Drepper <drepper@redhat.com>
2288 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
2289 If we time out, try one last time to lock the futex to avoid
2290 losing a wakeup signal.
2291 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
2292 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2295 * sysdeps/pthread/createthread.c (do_clone): Translate clone error
2298 2007-11-07 Ulrich Drepper <drepper@redhat.com>
2301 * allocatestack.c (allocate_stack): Change ENOMEM error in case
2302 mmap failed to EAGAIN.
2303 * Makefile (tests): Add tst-basic7.
2304 * tst-basic7.c: New file.
2306 2007-11-05 Ulrich Drepper <drepper@redhat.com>
2308 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
2309 Use __linkin_atfork.
2311 2007-11-03 Mike Frysinger <vapier@gentoo.org>
2313 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (LOAD_FUTEX_WAIT): Add
2314 missing line continuations.
2315 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S (LOAD_FUTEX_WAIT,
2316 LOAD_FUTEX_WAKE): Likewise. Also add missing 3rd parameter.
2318 2007-10-28 Ulrich Drepper <drepper@redhat.com>
2321 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Declare
2322 __active_timer_sigev_thread and __active_timer_sigev_thread_lock.
2323 (struct timer): Add next element.
2324 * sysdeps/unix/sysv/linux/timer_create.c: For SIGEV_THREAD timers,
2325 enqueue timer structure into __active_timer_sigev_thread list.
2326 * sysdeps/unix/sysv/linux/timer_delete.c: For SIGEV_THREAD timers,
2327 remove timer struct from __active_timer_sigev_thread.
2328 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
2329 Before using timer structure make sure it is still on the
2330 __active_timer_sigev_thread list. Keep lock until done.
2331 Define __active_timer_sigev_thread and
2332 __active_timer_sigev_thread_lock.
2334 2007-10-27 Ulrich Drepper <drepper@redhat.com>
2336 * sysdeps/pthread/malloc-machine.h: Define ATFORK_MEM.
2337 Redefine thread_atfork for use of ATFORK_MEM.
2338 * sysdeps/unix/sysv/linux/fork.h: Define __linkin_atfork.
2339 * sysdeps/unix/sysv/linux/register-atfork.c (__linkin_atfork): New
2341 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
2342 Use atomic operation when removing first element of list.
2344 2007-10-17 Jakub Jelinek <jakub@redhat.com>
2346 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__old_sem_post): New
2347 routine instead of an alias to __new_sem_post.
2349 2007-10-15 Jakub Jelinek <jakub@redhat.com>
2351 * init.c (__pthread_initialize_minimal): Initialize word to appease
2354 2007-10-10 Jakub Jelinek <jakub@redhat.com>
2356 * sysdeps/pthread/bits/libc-lock.h (__libc_rwlock_init): Inside of
2357 libc.so just clear NAME.
2358 (__libc_rwlock_fini): Nop inside of libc.so.
2359 * tst-initializers1.c (main): Test if PTHREAD_RWLOCK_INITIALIZER is
2362 2007-09-02 Ulrich Drepper <drepper@redhat.com>
2364 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2365 (__pthread_cond_wait): Fix unlocking of internal lock after mutex
2367 Patch by Luca Barbieri <luca.barbieri@gmail.com>.
2369 2007-08-21 Ulrich Drepper <drepper@redhat.com>
2372 * allocatestack.c (__reclaim_stacks): Clear the TSD in the
2373 reclaimed stack if necessary.
2374 * Makefile (tests): Add tst-tsd6.
2375 * tst-tsd6.c: New file.
2377 2007-08-21 Jakub Jelinek <jakub@redhat.com>
2379 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_dead):
2380 Add private argument.
2382 2007-08-20 Ulrich Drepper <drepper@redhat.com>
2384 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2385 (__pthread_cond_timedwait): Use clock_gettime from VDSO if possible.
2387 2007-08-16 Jakub Jelinek <jakub@redhat.com>
2389 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h
2390 (__lll_robust_timedlock): Pass private as last argument to
2391 __lll_robust_timedlock_wait.
2392 (__lll_unlock): Fix a pasto.
2394 2007-08-15 Jakub Jelinek <jakub@redhat.com>
2396 * sysdeps/unix/sysv/linux/sparc/internaltypes.h (sparc_new_sem,
2397 sparc_old_sem): New structs.
2398 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
2399 (__sem_wait_cleanup): New function.
2400 (__new_sem_wait): Use sparc_new_sem structure. Bump and afterwards
2401 decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
2402 Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2404 (__old_sem_wait): New function.
2405 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: Include
2406 nptl/sysdeps/unix/sysv/linux/sparc version.
2407 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
2409 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: Likewise.
2410 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c
2411 (__new_sem_trywait): Use sparc_old_sem structure.
2412 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
2413 (sem_timedwait): Use sparc_new_sem structure. Bump and afterwards
2414 decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
2415 Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2416 lll_futex_timed_wait.
2417 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c (__new_sem_post):
2418 Use sparc_new_sem structure. Only wake if nwaiters > 0. Pass
2419 isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2421 (__old_sem_post): New function.
2422 * sysdeps/unix/sysv/linux/sparc/sem_wait.c: New file.
2423 * sysdeps/unix/sysv/linux/sparc/sem_init.c: New file.
2424 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: New file.
2425 * sysdeps/unix/sysv/linux/sparc/sem_post.c: New file.
2426 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: Remove.
2427 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: Remove.
2429 2007-08-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2431 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
2432 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
2433 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2434 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
2435 * sysdeps/unix/sysv/linux/shpthread_cond_signal.S
2436 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
2437 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2439 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
2440 kernel-features.h and tcb-offsets.h.
2441 (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
2442 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2444 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
2446 (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE
2447 to lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2449 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use #ifdef
2450 __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
2451 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
2452 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
2453 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
2454 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
2455 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
2457 2007-08-14 Jakub Jelinek <jakub@redhat.com>
2459 * sysdeps/unix/sysv/linux/lowlevellock.c: Comment fix.
2460 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
2461 (__lll_timedwait_tid): Pass LLL_SHARED as 4th argument to
2462 lll_futex_timed_wait.
2464 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (__lll_unlock,
2465 __lll_robust_unlock): Rewrite as macros instead of inline functions.
2466 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_unlock,
2467 __lll_robust_unlock, __lll_wait_tid): Likewise.
2469 2007-08-13 Jakub Jelinek <jakub@redhat.com>
2471 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
2473 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
2474 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
2475 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2476 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
2477 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
2478 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
2479 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2480 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Include
2482 (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
2483 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2484 process private. Switch DW_CFA_advance_loc1 and some
2485 DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
2486 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
2487 (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE to
2488 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2489 process private. Switch DW_CFA_advance_loc{1,2} and some
2490 DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
2491 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use
2492 #ifdef __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
2493 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2495 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
2496 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
2497 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2499 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
2500 (__pthread_cond_broadcast): Compare %r8 instead of
2501 dep_mutex-cond_*(%rdi) with $-1.
2502 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
2503 (__pthread_cond_signal): Xor FUTEX_WAKE_OP with FUTEX_WAKE instead
2506 2007-08-13 Ulrich Drepper <drepper@redhat.com>
2508 * sysdeps/unix/sysv/linux/i386/i786/Implies: New file.
2510 2007-08-13 Jakub Jelinek <jakub@redhat.com>
2512 * allocatestack.c: Include kernel-features.h.
2513 * pthread_create.c: Likewise.
2514 * pthread_mutex_init.c: Likewise.
2516 * pthread_cond_timedwait.c: Likewise.
2517 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
2518 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2519 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
2520 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
2521 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
2522 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
2523 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2525 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2527 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2528 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2529 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2530 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
2532 2007-08-12 Jakub Jelinek <jakub@redhat.com>
2534 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
2535 [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
2536 byte elements. One of them is the new __shared element.
2537 [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
2538 adjust names of other padding elements.
2539 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
2540 [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
2541 byte elements. One of them is the new __shared element.
2542 [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
2543 adjust names of other padding elements.
2544 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_rwlock_t):
2545 Renamed __pad1 element to __shared, adjust names of other padding
2547 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
2548 (pthread_rwlock_t): Likewise.
2549 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock): Fix a
2552 2007-08-09 Anton Blanchard <anton@samba.org>
2554 * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: New file.
2556 2007-08-12 Ulrich Drepper <drepper@redhat.com>
2558 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Include
2559 <kernel-features.h>.
2560 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2562 2007-08-11 Ulrich Drepper <drepper@redhat.com>
2564 * pthreadP.h (PTHREAD_ROBUST_MUTEX_PSHARED): Define.
2565 * pthread_mutex_lock.c: Use it instead of PTHREAD_MUTEX_PSHARED when
2566 dealing with robust mutexes.
2567 * pthread_mutex_timedlock.c: Likewise.
2568 * pthread_mutex_trylock.c: Likewise.
2569 * pthread_mutex_unlock.c: Likewise.
2570 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
2572 2007-08-06 Jakub Jelinek <jakub@redhat.com>
2574 * pthreadP.h (PTHREAD_MUTEX_PSHARED_BIT): Define.
2575 (PTHREAD_MUTEX_TYPE): Mask __kind with 127.
2576 (PTHREAD_MUTEX_PSHARED): Define.
2577 * pthread_mutex_init.c (__pthread_mutex_init): Set
2578 PTHREAD_MUTEX_PSHARED_BIT for pshared or robust
2580 * pthread_mutex_lock.c (LLL_MUTEX_LOCK): Take mutex as argument
2581 instead of its __data.__lock field, pass PTHREAD_MUTEX_PSHARED
2582 as second argument to lll_lock.
2583 (LLL_MUTEX_TRYLOCK): Take mutex as argument
2584 instead of its __data.__lock field.
2585 (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
2586 __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
2588 (__pthread_mutex_lock): Update LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
2589 LLL_ROBUST_MUTEX_LOCK users, use PTHREAD_MUTEX_TYPE (mutex)
2590 instead of mutex->__data.__kind directly, pass
2591 PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock and lll_futex_wait.
2592 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
2593 PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
2594 directly, pass PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock.
2595 (pthread_mutex_timedlock): Pass PTHREAD_MUTEX_PSHARED (mutex)
2596 to lll_timedlock, lll_robust_timedlock, lll_unlock and
2597 lll_futex_timed_wait. Use PTHREAD_MUTEX_TYPE (mutex) instead
2598 of mutex->__data.__kind directly.
2599 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Pass
2600 PTHREAD_MUTEX_PSHARED (mutex) to lll_timedlock,
2601 lll_robust_timedlock, lll_unlock and lll_futex_timed_wait. Use
2602 PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind directly.
2603 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Pass
2604 PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock, lll_robust_unlock
2606 * pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling): Pass
2607 PTHREAD_MUTEX_PSHARED (mutex) to lll_futex_wait and lll_futex_wake.
2608 Use PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
2610 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK):
2611 Take mutex as argument instead of its __data.__lock field, pass
2612 PTHREAD_MUTEX_PSHARED as second argument to lll_cond_lock.
2613 (LLL_MUTEX_TRYLOCK): Take mutex as argument instead of its
2614 __data.__lock field.
2615 (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
2616 __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
2617 to lll_robust_cond_lock.
2618 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Add pshared
2619 variable, pass it to lll_lock, lll_unlock, lll_futex_requeue and
2620 lll_futex_wake. Don't use lll_futex_requeue if dependent mutex
2621 has PTHREAD_MUTEX_PSHARED_BIT bit set in its __data.__kind.
2622 * pthread_cond_destroy.c (__pthread_cond_destroy): Add pshared
2623 variable, pass it to lll_lock, lll_unlock, lll_futex_wake and
2625 * pthread_cond_signal.c (__pthread_cond_signal): Add pshared
2626 variable, pass it to lll_lock, lll_unlock, lll_futex_wake_unlock and
2628 * pthread_cond_timedwait.c (__pthread_cond_wait): Add
2629 pshared variable, pass it to lll_lock, lll_unlock,
2630 lll_futex_timedwait and lll_futex_wake.
2631 * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait): Add
2632 pshared variable, pass it to lll_lock, lll_unlock, lll_futex_wait
2634 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_requeue,
2635 lll_futex_wake_unlock): Add private argument, use __lll_private_flag
2637 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue,
2638 lll_futex_wake_unlock): Likewise.
2639 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_requeue):
2641 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_requeue,
2642 lll_futex_wake_unlock): Likewise.
2643 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_requeue):
2645 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue,
2646 lll_futex_wake_unlock): Likewise.
2647 (lll_futex_wake): Fix a typo.
2648 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym (PS_BIT): Add.
2649 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
2650 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
2651 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2652 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
2653 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
2654 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
2655 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2656 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2657 (__pthread_cond_timedwait): Likewise.
2658 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
2659 (__condvar_cleanup, __pthread_cond_wait): Likewise.
2661 2007-08-05 Jakub Jelinek <jakub@redhat.com>
2663 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
2664 Don't use CGOTSETUP and CGOTRESTORE macros.
2665 (CGOTSETUP, CGOTRESTORE): Remove.
2666 <IS_IN_rtld> (CENABLE, CDISABLE): Don't use JUMPTARGET, branch to
2669 2007-08-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2671 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove
2672 definitions for private futexes.
2673 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Include
2674 kernel-features.h and lowlevellock.h. Use private futexes if
2676 (__lll_lock_wait_private, __lll_unlock_wake_private): New.
2677 (__lll_mutex_lock_wait): Rename to
2678 (__lll_lock_wait): ... this. Don't compile in for libc.so.
2679 (__lll_mutex_timedlock_wait): Rename to ...
2680 (__lll_timedlock_wait): ... this. Use __NR_gettimeofday.
2681 Don't compile in for libc.so.
2682 (__lll_mutex_unlock_wake): Rename to ...
2683 (__lll_unlock_wake): ... this. Don't compile in for libc.so.
2684 (__lll_timedwait_tid): Use __NR_gettimeofday.
2685 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Allow including
2686 the header from assembler. Renamed all lll_mutex_* resp.
2687 lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
2688 Renamed all LLL_MUTEX_LOCK_* macros to LLL_LOCK_*.
2689 (FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE):
2691 (__lll_lock_wait_private): Add prototype.
2692 (__lll_lock_wait, __lll_timedlock_wait, __lll_robust_lock_wait,
2693 __lll_robust_timedlock_wait, __lll_unlock_wake_private,
2694 __lll_unlock_wake): Likewise.
2695 (lll_lock): Add private argument. Call __lll_lock_wait_private
2696 if private is constant LLL_PRIVATE.
2697 (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
2698 lll_timedlock, lll_robust_timedlock): Add private argument.
2699 (lll_unlock): Add private argument. Call __lll_unlock_wake_private
2700 if private is constant LLL_PRIVATE.
2701 (lll_robust_unlock, lll_robust_dead): Add private argument.
2702 (lll_lock_t): Remove.
2703 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
2704 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
2705 lll_cond_wake, lll_cond_broadcast): Remove.
2706 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Include
2707 kernel-features.h and lowlevellock.h.
2708 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
2709 (LOAD_FUTEX_WAIT): Define.
2710 (__lll_robust_mutex_lock_wait): Rename to ...
2711 (__lll_robust_lock_wait): ... this. Add private argument.
2712 Use LOAD_FUTEX_WAIT macro.
2713 (__lll_robust_mutex_timedlock_wait): Rename to ...
2714 (__lll_robust_timedlock_wait): ... this. Add private argument.
2715 Use __NR_gettimeofday. Use LOAD_FUTEX_WAIT macro.
2716 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Include
2718 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
2719 (pthread_barrier_wait): Use __lll_{lock,unlock}_* instead of
2720 __lll_mutex_{lock,unlock}_*.
2721 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Include
2722 lowlevellock.h and pthread-errnos.h.
2723 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
2724 FUTEX_CMP_REQUEUE, EINVAL): Remove.
2725 (__pthread_cond_broadcast): Use __lll_{lock,unlock}_* instead of
2726 __lll_mutex_{lock,unlock}_*.
2727 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Include
2728 lowlevellock.h and pthread-errnos.h.
2729 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE, EINVAL): Remove.
2730 (__pthread_cond_signal): Use __lll_{lock,unlock}_* instead of
2731 __lll_mutex_{lock,unlock}_*.
2732 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
2734 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE): Remove.
2735 (__pthread_cond_timedwait): Use __lll_{lock,unlock}_* instead of
2736 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
2737 (__condvar_tw_cleanup): Likewise.
2738 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
2740 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
2741 (__pthread_cond_wait): Use __lll_{lock,unlock}_* instead of
2742 __lll_mutex_{lock,unlock}_*.
2743 ( __condvar_w_cleanup): Likewise.
2744 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Include lowlevellock.h.
2745 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
2746 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Include
2748 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
2749 (__pthread_rwlock_rdlock): Use __lll_{lock,unlock}_* instead of
2750 __lll_mutex_{lock,unlock}_*.
2751 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Include
2753 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
2754 FUTEX_PRIVATE_FLAG): Remove.
2755 (pthread_rwlock_timedrdlock): Use __lll_{lock,unlock}_* instead of
2756 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
2757 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Include
2759 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
2760 FUTEX_PRIVATE_FLAG): Remove.
2761 (pthread_rwlock_timedwrlock): Use __lll_{lock,unlock}_* instead of
2762 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
2763 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Include
2765 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
2766 (__pthread_rwlock_unlock): Use __lll_{lock,unlock}_* instead of
2767 __lll_mutex_{lock,unlock}_*.
2768 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Include
2770 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
2771 (__pthread_rwlock_wrlock): Use __lll_{lock,unlock}_* instead of
2772 __lll_mutex_{lock,unlock}_*.
2773 * sysdeps/unix/sysv/linux/sh/sem_post.S: Include lowlevellock.h.
2774 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
2775 (__new_sem_post): Use standard initial exec code sequences.
2776 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Include
2778 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
2779 FUTEX_PRIVATE_FLAG): Remove.
2780 (sem_timedwait): Use __NR_gettimeofday. Use standard initial
2781 exec code sequences.
2782 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Include lowlevellock.h.
2783 (__new_sem_trywait): Use standard initial exec code sequences.
2784 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Include lowlevellock.h.
2785 (__new_sem_wait): Use standard initial exec code sequences.
2787 2007-07-31 Anton Blanchard <anton@samba.org>
2789 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
2790 Use __asm __volatile (__lll_acq_instr ::: "memory") instead of
2791 atomic_full_barrier.
2793 2007-07-31 Jakub Jelinek <jakub@redhat.com>
2795 * allocatestack.c (stack_cache_lock): Change type to int.
2796 (get_cached_stack, allocate_stack, __deallocate_stack,
2797 __make_stacks_executable, __find_thread_by_id, __nptl_setxid,
2798 __pthread_init_static_tls, __wait_lookup_done): Add LLL_PRIVATE
2799 as second argument to lll_lock and lll_unlock macros on
2801 * pthread_create.c (__find_in_stack_list): Likewise.
2802 (start_thread): Similarly with pd->lock. Use lll_robust_dead
2803 macro instead of lll_robust_mutex_dead, pass LLL_SHARED to it
2805 * descr.h (struct pthread): Change lock and setxid_futex field
2807 * old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0): Use
2808 LLL_LOCK_INITIALIZER instead of LLL_MUTEX_LOCK_INITIALIZER.
2809 * old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
2810 * old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
2812 * old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
2813 * pthread_cond_init.c (__pthread_cond_init): Likewise.
2814 * pthreadP.h (__attr_list_lock): Change type to int.
2815 * pthread_attr_init.c (__attr_list_lock): Likewise.
2816 * pthread_barrier_destroy.c (pthread_barrier_destroy): Pass
2817 ibarrier->private ^ FUTEX_PRIVATE_FLAG as second argument to
2819 * pthread_barrier_wait.c (pthread_barrier_wait): Likewise and
2820 also for lll_futex_{wake,wait}.
2821 * pthread_barrier_init.c (pthread_barrier_init): Make iattr
2823 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Pass
2824 LLL_SHARED as second argument to lll_{,un}lock.
2825 * pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
2826 * pthread_cond_signal.c (__pthread_cond_singal): Likewise.
2827 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
2828 * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait):
2830 * pthread_getattr_np.c (pthread_getattr_np): Add LLL_PRIVATE
2831 as second argument to lll_{,un}lock macros on pd->lock.
2832 * pthread_getschedparam.c (__pthread_getschedparam): Likewise.
2833 * pthread_setschedparam.c (__pthread_setschedparam): Likewise.
2834 * pthread_setschedprio.c (pthread_setschedprio): Likewise.
2835 * tpp.c (__pthread_tpp_change_priority, __pthread_current_priority):
2837 * sysdeps/pthread/createthread.c (do_clone, create_thread):
2839 * pthread_once.c (once_lock): Change type to int.
2840 (__pthread_once): Pass LLL_PRIVATE as second argument to
2841 lll_{,un}lock macros on once_lock.
2842 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Use
2843 lll_{,un}lock macros instead of lll_mutex_{,un}lock, pass
2844 rwlock->__data.__shared as second argument to them and similarly
2846 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2848 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2850 * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Likewise.
2851 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Likewise.
2852 * pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
2853 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
2854 * sem_close.c (sem_close): Pass LLL_PRIVATE as second argument
2855 to lll_{,un}lock macros on __sem_mappings_lock.
2856 * sem_open.c (check_add_mapping): Likewise.
2857 (__sem_mappings_lock): Change type to int.
2858 * semaphoreP.h (__sem_mappings_lock): Likewise.
2859 * pthread_mutex_lock.c (LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
2860 LLL_ROBUST_MUTEX_LOCK): Use lll_{,try,robust_}lock macros
2861 instead of lll_*mutex_*, pass LLL_SHARED as last
2863 (__pthread_mutex_lock): Use lll_unlock instead of lll_mutex_unlock,
2864 pass LLL_SHARED as last argument.
2865 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK,
2866 LLL_MUTEX_TRYLOCK, LLL_ROBUST_MUTEX_LOCK): Use
2867 lll_{cond_,cond_try,robust_cond}lock macros instead of lll_*mutex_*,
2868 pass LLL_SHARED as last argument.
2869 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
2870 lll_{timed,try,robust_timed,un}lock instead of lll_*mutex*, pass
2871 LLL_SHARED as last argument.
2872 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Similarly.
2873 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2875 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_lock,
2876 __libc_lock_lock_recursive, __libc_lock_unlock,
2877 __libc_lock_unlock_recursive): Pass LLL_PRIVATE as second
2878 argument to lll_{,un}lock.
2879 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_lock,
2880 _IO_lock_unlock): Likewise.
2881 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Don't use
2883 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
2884 Pass LLL_PRIVATE as second argument to lll_{,un}lock macros on
2886 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork,
2887 free_mem): Likewise.
2888 (__fork_lock): Change type to int.
2889 * sysdeps/unix/sysv/linux/fork.h (__fork_lock): Likewise.
2890 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Pass
2891 isem->private ^ FUTEX_PRIVATE_FLAG as second argument to
2893 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
2894 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Likewise.
2895 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait_private):
2897 (__lll_lock_wait, __lll_timedlock_wait): Add private argument and
2898 pass it through to lll_futex_*wait, only compile in when
2900 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
2901 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Add private
2902 argument and pass it through to lll_futex_*wait.
2903 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Renamed all
2904 lll_mutex_* resp. lll_robust_mutex_* macros to lll_* resp.
2905 lll_robust_*. Renamed all __lll_mutex_* resp. __lll_robust_mutex_*
2906 inline functions to __lll_* resp. __lll_robust_*.
2907 (LLL_MUTEX_LOCK_INITIALIZER): Remove.
2908 (lll_mutex_dead): Add private argument.
2909 (__lll_lock_wait_private): New prototype.
2910 (__lll_lock_wait, __lll_robust_lock_wait, __lll_lock_timedwait,
2911 __lll_robust_lock_timedwait): Add private argument to prototypes.
2912 (__lll_lock): Add private argument, if it is constant LLL_PRIVATE,
2913 call __lll_lock_wait_private, otherwise pass private to
2915 (__lll_robust_lock, __lll_cond_lock, __lll_timedlock,
2916 __lll_robust_timedlock): Add private argument, pass it to
2917 __lll_*wait functions.
2918 (__lll_unlock): Add private argument, if it is constant LLL_PRIVATE,
2919 call __lll_unlock_wake_private, otherwise pass private to
2921 (__lll_robust_unlock): Add private argument, pass it to
2922 __lll_robust_unlock_wake.
2923 (lll_lock, lll_robust_lock, lll_cond_lock, lll_timedlock,
2924 lll_robust_timedlock, lll_unlock, lll_robust_unlock): Add private
2925 argument, pass it through to __lll_* inline function.
2926 (__lll_mutex_unlock_force, lll_mutex_unlock_force): Remove.
2927 (lll_lock_t): Remove.
2928 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
2929 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
2930 lll_cond_wake, lll_cond_broadcast): Remove.
2931 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2932 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2933 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2934 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2935 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Allow including
2936 the header from assembler. Renamed all lll_mutex_* resp.
2937 lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
2938 (LOCK, FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP,
2939 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
2940 (LLL_MUTEX_LOCK_INITIALIZER, LLL_MUTEX_LOCK_INITIALIZER_LOCKED,
2941 LLL_MUTEX_LOCK_INITIALIZER_WAITERS): Remove.
2942 (__lll_mutex_lock_wait, __lll_mutex_timedlock_wait,
2943 __lll_mutex_unlock_wake, __lll_lock_wait, __lll_unlock_wake):
2945 (__lll_trylock_asm, __lll_lock_asm_start, __lll_unlock_asm): Define.
2946 (lll_robust_trylock, lll_cond_trylock): Use LLL_LOCK_INITIALIZER*
2947 rather than LLL_MUTEX_LOCK_INITIALIZER* macros.
2948 (lll_trylock): Likewise, use __lll_trylock_asm, pass
2949 MULTIPLE_THREADS_OFFSET as another asm operand.
2950 (lll_lock): Add private argument, use __lll_lock_asm_start, pass
2951 MULTIPLE_THREADS_OFFSET as last asm operand, call
2952 __lll_lock_wait_private if private is constant LLL_PRIVATE,
2953 otherwise pass private as another argument to __lll_lock_wait.
2954 (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
2955 lll_timedlock, lll_robust_timedlock): Add private argument, pass
2956 private as another argument to __lll_*lock_wait call.
2957 (lll_unlock): Add private argument, use __lll_unlock_asm, pass
2958 MULTIPLE_THREADS_OFFSET as another asm operand, call
2959 __lll_unlock_wake_private if private is constant LLL_PRIVATE,
2960 otherwise pass private as another argument to __lll_unlock_wake.
2961 (lll_robust_unlock): Add private argument, pass private as another
2962 argument to __lll_unlock_wake.
2963 (lll_robust_dead): Add private argument, use __lll_private_flag
2965 (lll_islocked): Use LLL_LOCK_INITIALIZER instead of
2966 LLL_MUTEX_LOCK_INITIALIZER.
2967 (lll_lock_t): Remove.
2968 (LLL_LOCK_INITIALIZER_WAITERS): Define.
2969 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
2970 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
2971 lll_cond_wake, lll_cond_broadcast): Remove.
2972 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2973 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Revert
2974 2007-05-2{3,9} changes.
2975 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Include
2976 kernel-features.h and lowlevellock.h.
2977 (LOAD_PRIVATE_FUTEX_WAIT): Define.
2978 (LOAD_FUTEX_WAIT): Rewritten.
2979 (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
2981 (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
2982 (__lll_mutex_lock_wait): Rename to ...
2983 (__lll_lock_wait): ... this. Take futex addr from %edx instead of
2984 %ecx, %ecx is now private argument. Don't compile in for libc.so.
2985 (__lll_mutex_timedlock_wait): Rename to ...
2986 (__lll_timedlock_wait): ... this. Use __NR_gettimeofday. %esi
2987 contains private argument. Don't compile in for libc.so.
2988 (__lll_mutex_unlock_wake): Rename to ...
2989 (__lll_unlock_wake): ... this. %ecx contains private argument.
2990 Don't compile in for libc.so.
2991 (__lll_timedwait_tid): Use __NR_gettimeofday.
2992 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Include
2993 kernel-features.h and lowlevellock.h.
2994 (LOAD_FUTEX_WAIT): Define.
2995 (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
2997 (__lll_robust_mutex_lock_wait): Rename to ...
2998 (__lll_robust_lock_wait): ... this. Futex addr is now in %edx
2999 argument, %ecx argument contains private. Use LOAD_FUTEX_WAIT
3001 (__lll_robust_mutex_timedlock_wait): Rename to ...
3002 (__lll_robust_timedlock_wait): ... this. Use __NR_gettimeofday.
3003 %esi argument contains private, use LOAD_FUTEX_WAIT macro.
3004 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Include
3006 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3007 (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
3008 PRIVATE(%ebx) ^ LLL_SHARED as private argument in %ecx to
3009 __lll_lock_wait and __lll_unlock_wake, pass MUTEX(%ebx) address
3010 to __lll_lock_wait in %edx.
3011 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
3012 Include lowlevellock.h and pthread-errnos.h.
3013 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
3014 FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
3015 (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*, pass
3016 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3017 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3019 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
3020 Include lowlevellock.h and pthread-errnos.h.
3021 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
3022 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
3023 (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*, pass
3024 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3025 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3027 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
3028 Include lowlevellock.h.
3029 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3031 (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*, pass
3032 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3033 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3034 __lll_unlock_wake. Use __NR_gettimeofday.
3035 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
3036 Include lowlevellock.h.
3037 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3038 (__pthread_cond_wait, __condvar_w_cleanup): Rename __lll_mutex_*
3039 to __lll_*, pass cond_lock address in %edx rather than %ecx to
3040 __lll_lock_wait, pass LLL_SHARED in %ecx to both __lll_lock_wait
3041 and __lll_unlock_wake.
3042 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
3043 Include lowlevellock.h.
3044 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3045 (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*, pass
3046 MUTEX(%ebx) address in %edx rather than %ecx to
3047 __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
3048 and __lll_unlock_wake. Move return value from %ecx to %edx
3050 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3051 Include lowlevellock.h.
3052 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3054 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3055 MUTEX(%ebp) address in %edx rather than %ecx to
3056 __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
3057 and __lll_unlock_wake. Move return value from %ecx to %edx
3058 register. Use __NR_gettimeofday.
3059 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3060 Include lowlevellock.h.
3061 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3063 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3064 MUTEX(%ebp) address in %edx rather than %ecx to
3065 __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
3066 and __lll_unlock_wake. Move return value from %ecx to %edx
3067 register. Use __NR_gettimeofday.
3068 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
3069 Include lowlevellock.h.
3070 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3071 (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*, pass
3072 MUTEX(%edi) address in %edx rather than %ecx to
3073 __lll_lock_wait, pass PSHARED(%edi) in %ecx to both __lll_lock_wait
3074 and __lll_unlock_wake.
3075 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
3076 Include lowlevellock.h.
3077 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3078 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3079 MUTEX(%ebx) address in %edx rather than %ecx to
3080 __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
3081 and __lll_unlock_wake. Move return value from %ecx to %edx
3083 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Include
3085 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
3087 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Include lowlevellock.h.
3088 (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
3089 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Include
3091 (LOCK, SYS_futex, SYS_gettimeofday, FUTEX_WAIT): Don't define.
3092 (sem_timedwait): Use __NR_gettimeofday.
3093 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Include
3095 (LOCK): Don't define.
3096 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include
3098 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3099 * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Wake only when there
3101 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Revert
3102 2007-05-2{3,9} changes.
3103 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Include
3104 kernel-features.h and lowlevellock.h.
3105 (LOAD_PRIVATE_FUTEX_WAIT): Define.
3106 (LOAD_FUTEX_WAIT): Rewritten.
3107 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
3108 (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
3109 (__lll_mutex_lock_wait): Rename to ...
3110 (__lll_lock_wait): ... this. %esi is now private argument.
3111 Don't compile in for libc.so.
3112 (__lll_mutex_timedlock_wait): Rename to ...
3113 (__lll_timedlock_wait): ... this. %esi contains private argument.
3114 Don't compile in for libc.so.
3115 (__lll_mutex_unlock_wake): Rename to ...
3116 (__lll_unlock_wake): ... this. %esi contains private argument.
3117 Don't compile in for libc.so.
3118 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Include
3119 kernel-features.h and lowlevellock.h.
3120 (LOAD_FUTEX_WAIT): Define.
3121 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
3122 (__lll_robust_mutex_lock_wait): Rename to ...
3123 (__lll_robust_lock_wait): ... this. %esi argument contains private.
3124 Use LOAD_FUTEX_WAIT macro.
3125 (__lll_robust_mutex_timedlock_wait): Rename to ...
3126 (__lll_robust_timedlock_wait): ... this. %esi argument contains
3127 private, use LOAD_FUTEX_WAIT macro.
3128 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Include
3130 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3131 (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
3132 PRIVATE(%rdi) ^ LLL_SHARED as private argument in %esi to
3133 __lll_lock_wait and __lll_unlock_wake.
3134 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3135 Include lowlevellock.h and pthread-errnos.h.
3136 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
3137 FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
3138 (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*,
3139 pass LLL_SHARED in %esi to both __lll_lock_wait and
3141 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S:
3142 Include lowlevellock.h and pthread-errnos.h.
3143 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
3144 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
3145 (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*,
3146 pass LLL_SHARED in %esi to both __lll_lock_wait and
3148 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3149 Include lowlevellock.h.
3150 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3151 (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*,
3152 pass LLL_SHARED in %esi to both __lll_lock_wait and
3154 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
3155 Include lowlevellock.h.
3156 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3157 (__pthread_cond_wait, __condvar_cleanup): Rename __lll_mutex_*
3158 to __lll_*, pass LLL_SHARED in %esi to both __lll_lock_wait
3159 and __lll_unlock_wake.
3160 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
3161 Include lowlevellock.h.
3162 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3164 (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*,
3165 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3166 and __lll_unlock_wake.
3167 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3168 Include lowlevellock.h.
3169 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3171 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3172 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3173 and __lll_unlock_wake.
3174 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3175 Include lowlevellock.h.
3176 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3178 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3179 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3180 and __lll_unlock_wake.
3181 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
3182 Include lowlevellock.h.
3183 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3185 (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*,
3186 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3187 and __lll_unlock_wake.
3188 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
3189 Include lowlevellock.h.
3190 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3192 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3193 pass PSHARED(%rdi) in %ecx to both __lll_lock_wait
3194 and __lll_unlock_wake.
3195 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Include
3197 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
3199 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Include lowlevellock.h.
3200 (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
3201 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Include
3203 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3204 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Include
3206 (LOCK): Don't define.
3207 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Include
3209 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3210 * sysdeps/unix/sysv/linux/sparc/internaltypes.h: New file.
3211 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c: New file.
3212 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: New file.
3213 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: New file.
3214 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
3215 (__lll_lock_wait_private): New function.
3216 (__lll_lock_wait, __lll_timedlock_wait): Add private argument, pass
3217 it to lll_futex_*wait. Don't compile in for libc.so.
3218 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c:
3220 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c
3221 (struct sparc_pthread_barrier): Remove.
3222 (pthread_barrier_wait): Use union sparc_pthread_barrier instead of
3223 struct sparc_pthread_barrier. Pass
3224 ibarrier->s.pshared ? LLL_SHARED : LLL_PRIVATE to lll_{,un}lock
3225 and lll_futex_wait macros.
3226 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
3228 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
3229 Include sparc pthread_barrier_wait.c instead of generic one.
3231 2007-07-30 Jakub Jelinek <jakub@redhat.com>
3233 * tst-rwlock14.c (do_test): Avoid warnings on 32-bit arches.
3235 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
3236 (pthread_rwlock_timedrdlock): Copy futex retval to %esi rather than
3238 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
3239 (pthread_rwlock_timedwrlock): Likewise.
3240 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
3241 (__pthread_rwlock_unlock): Fix MUTEX != 0 args to __lll_*.
3243 2007-07-31 Jakub Jelinek <jakub@redhat.com>
3245 * sysdeps/sparc/tls.h (tcbhead_t): Add private_futex field.
3247 2007-07-26 Jakub Jelinek <jakub@redhat.com>
3249 * tst-locale2.c (useless): Add return statement.
3251 2007-07-24 Jakub Jelinek <jakub@redhat.com>
3253 * allocatestack.c (__nptl_setxid, __wait_lookup_done): Replace
3254 lll_private_futex_* (*) with lll_futex_* (*, LLL_PRIVATE).
3255 * pthread_create.c (start_thread): Likewise.
3256 * init.c (sighandler_setxid): Likewise.
3257 * sysdeps/alpha/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3258 * sysdeps/ia64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3259 * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3260 * sysdeps/s390/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3261 * sysdeps/powerpc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3262 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3263 * sysdeps/sparc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3264 * sysdeps/sh/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3265 * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT):
3267 * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT):
3269 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
3271 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_waitzero,
3272 __rtld_notify): Likewise.
3273 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Likewise.
3274 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (clear_once_control,
3275 __pthread_once): Likewise.
3276 * sysdeps/unix/sysv/linux/alpha/pthread_once.c (clear_once_control,
3277 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3278 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3279 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3280 (lll_futex_wait): Add private argument, define as wrapper around
3281 lll_futex_timed_wait.
3282 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3283 use __lll_private_flag macro.
3284 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3285 __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
3286 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (clear_once_control,
3287 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3288 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3289 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3290 (lll_futex_wait): Add private argument, define as wrapper around
3291 lll_futex_timed_wait.
3292 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3293 use __lll_private_flag macro.
3294 (__lll_mutex_unlock, __lll_robust_mutex_unlock, lll_wait_tid,
3295 __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
3296 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
3298 (lll_futex_timed_wait, lll_futex_wake): Use it.
3299 (lll_private_futex_wait, lll_private_futex_timed_wait,
3300 lll_private_futex_wake): Removed.
3301 * sysdeps/unix/sysv/linux/s390/pthread_once.c (clear_once_control,
3302 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3303 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3304 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3305 (lll_futex_wait): Add private argument, define as wrapper around
3306 lll_futex_timed_wait.
3307 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3308 use __lll_private_flag macro.
3309 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3310 lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
3312 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3313 (lll_private_futex_wait, lll_private_futex_timed_wait,
3314 lll_private_futex_wake): Removed.
3315 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_private_flag):
3316 Fix !__ASSUME_PRIVATE_FUTEX non-constant private case.
3317 (lll_private_futex_wait, lll_private_futex_timed_wait,
3318 lll_private_futex_wake): Removed.
3319 * sysdeps/unix/sysv/linux/sparc/pthread_once.c (clear_once_control,
3320 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3321 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3322 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3323 (lll_futex_wait): Add private argument, define as wrapper around
3324 lll_futex_timed_wait.
3325 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3326 use __lll_private_flag macro.
3327 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3328 lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
3330 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (__lll_private_flag):
3332 (lll_futex_timed_wait, lll_futex_wake): Use it.
3333 (lll_private_futex_wait, lll_private_futex_timed_wait,
3334 lll_private_futex_wake): Removed.
3336 2007-07-27 Jakub Jelinek <jakub@redhat.com>
3338 * sysdeps/sparc/tls.h (tcbhead_t): Move gscope_flag to the end
3339 of the structure for sparc32.
3341 2007-07-26 Aurelien Jarno <aurelien@aurel32.net>
3343 * sysdeps/sparc/tls.h (tcbhead_t): Add gscope_flag.
3345 2007-07-23 Ulrich Drepper <drepper@redhat.com>
3347 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
3348 code used when private futexes are assumed.
3349 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3352 2007-07-23 Jakub Jelinek <jakub@redhat.com>
3354 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3355 (__lll_private_flag): Define.
3356 (lll_futex_wait): Define as a wrapper around lll_futex_timed_wait.
3357 (lll_futex_timed_wait, lll_futex_wake, lll_futex_wake_unlock): Use
3359 (lll_private_futex_wait, lll_private_futex_timedwait,
3360 lll_private_futex_wake): Define as wrapper around non-_private
3362 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
3363 (__lll_private_flag): Define.
3364 (lll_futex_timed_wait, lll_futex_wake): Use __lll_private_flag.
3365 (lll_private_futex_wait, lll_private_futex_timedwait,
3366 lll_private_futex_wake): Define as wrapper around non-_private
3369 2007-07-10 Steven Munroe <sjmunroe@us.ibm.com>
3371 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add LLL_SHARED
3372 parameter to lll_futex_wait call.
3373 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
3375 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
3376 Replace lll_futex_wait with lll_private_futex_wait.
3377 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
3378 Add LLL_SHARED parameter to lll_futex_wake().
3380 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define LLL_PRIVATE
3381 LLL_SHARED, lll_private_futex_wait, lll_private_futex_timed_wait and
3382 lll_private_futex_wake.
3383 (lll_futex_wait): Add private parameter. Adjust FUTEX_PRIVATE_FLAG
3384 bit from private parm before syscall.
3385 (lll_futex_timed_wait): Likewise.
3386 (lll_futex_wake): Likewise.
3387 (lll_futex_wake_unlock): Likewise.
3388 (lll_mutex_unlock): Add LLL_SHARED parm to lll_futex_wake call.
3389 (lll_robust_mutex_unlock): Likewise.
3390 (lll_mutex_unlock_force): Likewise.
3391 (lll_wait_tid): Add LLL_SHARED parm to lll_futex_wait call.
3393 2007-07-23 Ulrich Drepper <drepper@redhat.com>
3395 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
3396 compilation when unconditionally using private futexes.
3397 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
3398 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3400 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
3401 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
3403 2007-07-17 Jakub Jelinek <jakub@redhat.com>
3405 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
3408 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3410 * sysdeps/sh/tls.h: Include stdlib.h, list.h, sysdep.h and
3413 2007-05-16 Roland McGrath <roland@redhat.com>
3415 * init.c (__nptl_initial_report_events): New variable.
3416 (__pthread_initialize_minimal_internal): Initialize pd->report_events
3419 2007-06-22 Jakub Jelinek <jakub@redhat.com>
3421 * pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
3422 cpusetsize if pthread_getaffinity_np failed with ENOSYS.
3424 2007-06-19 Ulrich Drepper <drepper@redhat.com>
3426 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Remove mrlock
3429 2007-06-18 Ulrich Drepper <drepper@redhat.com>
3431 * pthreadP.h: Define PTHREAD_MUTEX_TYPE.
3432 * phtread_mutex_lock.c: Use PTHREAD_MUTEX_TYPE.
3433 * pthread_mutex_timedlock.c: Likewise.
3434 * pthread_mutex_trylock.c: Likewise.
3435 * pthread_mutex_unlock.c: Likewise.
3437 2007-06-17 Andreas Schwab <schwab@suse.de>
3439 * sysdeps/pthread/pt-initfini.c: Tell gcc about the nonstandard
3442 2007-06-17 Ulrich Drepper <drepper@redhat.com>
3444 * allocatestack.c (allocate_stack): Make code compile if
3445 __ASSUME_PRIVATE_FUTEX is set.
3447 2007-06-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3449 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S:
3450 (__pthread_rwlock_rdlock): Don't use non SH-3/4 instruction.
3451 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S:
3452 (__pthread_rwlock_wrlock): Likewise.
3453 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
3454 (pthread_rwlock_timedrdlock): Likewise.
3455 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
3456 (pthread_rwlock_timedwrlock): Likewise.
3457 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S:
3458 (__pthread_rwlock_unlock): Likewise.
3460 2007-06-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3462 * sysdeps/sh/tcb-offsets.sym: Add PRIVATE_FUTEX.
3463 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Include endian.h.
3464 Split __flags into __flags, __shared, __pad1 and __pad2.
3465 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Use private
3466 futexes if they are available.
3467 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Adjust so that change
3468 in libc-lowlevellock.S allow using private futexes.
3469 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
3470 FUTEX_PRIVATE_FLAG. Add additional parameter to lll_futex_wait,
3471 lll_futex_timed_wait and lll_futex_wake. Change lll_futex_wait
3472 to call lll_futex_timed_wait. Add lll_private_futex_wait,
3473 lll_private_futex_timed_wait and lll_private_futex_wake.
3474 (lll_robust_mutex_unlock): Fix typo.
3475 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Use private
3476 field in futex command setup.
3477 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Use
3478 COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.
3479 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
3480 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use private futexes
3481 if they are available. Remove clear_once_control.
3482 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Use private
3483 futexes if they are available.
3484 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
3485 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
3486 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
3487 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
3488 * sysdeps/unix/sysv/linux/sh/sem_post.S: Add private futex support.
3489 Wake only when there are waiters.
3490 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add private futex
3491 support. Indicate that there are waiters. Remove unnecessary
3492 extra cancellation test.
3493 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise. Removed
3494 left-over duplication of __sem_wait_cleanup.
3496 2007-06-07 Ulrich Drepper <drepper@redhat.com>
3498 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Add additional
3499 parameter to lll_futex_wait, lll_futex_timed_wait, and
3500 lll_futex_wake. Change lll_futex_wait to call lll_futex_timed_wait.
3501 Add lll_private_futex_wait, lll_private_futex_timed_wait, and
3502 lll_private_futex_wake.
3503 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3504 * allocatestack.c: Adjust use of lll_futex_* macros.
3506 * lowlevellock.h: Likewise.
3507 * pthread_barrier_wait.c: Likewise.
3508 * pthread_cond_broadcast.c: Likewise.
3509 * pthread_cond_destroy.c: Likewise.
3510 * pthread_cond_signal.c: Likewise.
3511 * pthread_cond_timedwait.c: Likewise.
3512 * pthread_cond_wait.c: Likewise.
3513 * pthread_create.c: Likewise.
3514 * pthread_mutex_lock.c: Likewise.
3515 * pthread_mutex_setprioceiling.c: Likewise.
3516 * pthread_mutex_timedlock.c: Likewise.
3517 * pthread_mutex_unlock.c: Likewise.
3518 * pthread_rwlock_timedrdlock.c: Likewise.
3519 * pthread_rwlock_timedwrlock.c: Likewise.
3520 * pthread_rwlock_unlock.c: Likewise.
3521 * sysdeps/alpha/tls.h: Likewise.
3522 * sysdeps/i386/tls.h: Likewise.
3523 * sysdeps/ia64/tls.h: Likewise.
3524 * sysdeps/powerpc/tls.h: Likewise.
3525 * sysdeps/pthread/aio_misc.h: Likewise.
3526 * sysdeps/pthread/gai_misc.h: Likewise.
3527 * sysdeps/s390/tls.h: Likewise.
3528 * sysdeps/sh/tls.h: Likewise.
3529 * sysdeps/sparc/tls.h: Likewise.
3530 * sysdeps/unix/sysv/linux/fork.c: Likewise.
3531 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
3532 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
3533 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Likewise.
3534 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
3535 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
3536 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
3537 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
3538 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
3539 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
3541 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Likewise.
3542 * sysdeps/x86_64/tls.h: Likewise.
3544 2007-05-29 Ulrich Drepper <drepper@redhat.com>
3546 * pthread_getattr_np.c: No need to install a cancellation handler,
3547 this is no cancellation point.
3548 * pthread_getschedparam.c: Likewise.
3549 * pthread_setschedparam.c: Likewise.
3550 * pthread_setschedprio.c: Likewise.
3551 * sysdeps/unix/sysv/linux/lowlevellock.c: Remove all traces of
3553 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
3554 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3555 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
3556 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
3557 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
3558 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
3559 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
3560 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
3561 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3562 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Likewise.
3563 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3564 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3566 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Checking
3567 whether there are more than one thread makes no sense here since
3568 we only call the slow path if the locks are taken.
3569 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
3571 * sysdeps/unix/sysv/linux/internaltypes.h: Introduce
3572 COND_NWAITERS_SHIFT.
3573 * pthread_cond_destroy.c: Use COND_NWAITERS_SHIFT instead of
3575 * pthread_cond_init.c: Likewise.
3576 * pthread_cond_timedwait.c: Likewise.
3577 * pthread_cond_wait.c: Likewise.
3578 * pthread_condattr_getclock.c: Likewise.
3579 * pthread_condattr_setclock.c: Likewise.
3580 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Likewise.
3581 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
3582 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
3583 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
3584 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
3586 2007-05-28 Jakub Jelinek <jakub@redhat.com>
3588 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: Include
3591 * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Use explicit
3593 (THREAD_GSCOPE_GET_FLAG): Remove.
3594 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Remove.
3595 * allocatestack.c (__wait_lookup_done): Revert 2007-05-24
3597 * sysdeps/powerpc/tls.h (tcbhead_t): Remove gscope_flag.
3598 (THREAD_GSCOPE_GET_FLAG): Remove.
3599 (THREAD_GSCOPE_RESET_FLAG): Use THREAD_SELF->header.gscope_flag
3600 instead of THREAD_GSCOPE_GET_FLAG.
3601 (THREAD_GSCOPE_SET_FLAG): Likewise. Add atomic_write_barrier after
3603 * sysdeps/s390/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
3604 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
3605 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
3606 THREAD_GSCOPE_WAIT): Define.
3607 * sysdeps/sparc/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
3608 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
3609 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
3610 THREAD_GSCOPE_WAIT): Define.
3611 * sysdeps/sh/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
3612 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
3613 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
3614 THREAD_GSCOPE_WAIT): Define.
3615 * sysdeps/ia64/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
3616 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
3617 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
3618 THREAD_GSCOPE_WAIT): Define.
3620 2007-05-24 Richard Henderson <rth@redhat.com>
3622 * descr.h (struct pthread): Add header.gscope_flag.
3623 * sysdeps/alpha/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
3624 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
3625 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
3626 THREAD_GSCOPE_WAIT): Define.
3628 2007-05-27 Ulrich Drepper <drepper@redhat.com>
3630 * init.c: Make it compile with older kernel headers.
3632 * tst-initializers1.c: Show through exit code which test failed.
3634 * pthread_rwlock_init.c: Also initialize __shared field.
3635 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Split __flags
3636 element in rwlock structure into four byte elements. One of them is
3637 the new __shared element.
3638 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h [__WORDSIZE=32]:
3640 [__WORDSIZE=64]: Renamed __pad1 element int rwlock structure to
3641 __shared, adjust names of other padding elements.
3642 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
3643 * sysdeps/pthread/pthread.h: Adjust rwlock initializers.
3644 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Add PSHARED.
3645 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define
3647 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Change main
3648 futex to use private operations if possible.
3649 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3651 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3653 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
3654 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
3655 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
3656 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3658 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3660 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
3661 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
3663 2007-05-26 Ulrich Drepper <drepper@redhat.com>
3665 * pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Define.
3666 * pthread_rwlock_rdlock.c: Use PTHREAD_RWLOCK_PREFER_READER_P.
3667 * pthread_rwlock_timedrdlock.c: Likewise.
3668 * pthread_rwlock_tryrdlock.c: Likewise.
3670 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S (sem_trywait): Tiny
3673 * sysdeps/unix/sysv/linux/sem_wait.c: Add missing break.
3674 * sysdeps/unix/sysv/linux/sem_timedwait.c: Removed left-over
3675 duplication of __sem_wait_cleanup.
3677 * allocatestack.c: Revert last change.
3679 * sysdeps/i386/tls.h: Likewise.
3680 * sysdeps/x86_64/tls.h: Likewise.
3681 * descr.h [TLS_DTV_AT_TP] (struct pthread): Add private_futex field to
3683 * sysdeps/powerpc/tcb-offsets.sym: Add PRIVATE_FUTEX_OFFSET.
3685 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_barrier):
3687 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Add PRIVATE definition.
3688 * pthread_barrier_init.c: Set private flag if pshared and private
3689 futexes are supported.
3690 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Use
3691 private field in futex command setup.
3692 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
3694 2007-05-25 Ulrich Drepper <drepper@redhat.com>
3696 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Add private futex
3698 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
3699 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
3700 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
3701 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
3702 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
3704 * semaphoreP.h: Declare __old_sem_init and __old_sem_wait.
3705 * sem_init.c (__new_sem_init): Rewrite to initialize all three
3706 fields in the structure.
3707 (__old_sem_init): New function.
3708 * sem_open.c: Initialize all fields of the structure.
3709 * sem_getvalue.c: Adjust for renamed element.
3710 * sysdeps/unix/sysv/linux/Makefile [subdir=nptl]
3711 (gen-as-const-headers): Add structsem.sym.
3712 * sysdeps/unix/sysv/linux/structsem.sym: New file.
3713 * sysdeps/unix/sysv/linux/internaltypes.h: Rename struct sem to
3714 struct new_sem. Add struct old_sem.
3715 * sysdeps/unix/sysv/linux/sem_post.c: Wake only when there are waiters.
3716 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
3717 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
3718 * sysdeps/unix/sysv/linux/sem_wait.c: Indicate that there are waiters.
3719 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
3720 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
3721 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
3722 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
3723 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
3724 * Makefile (tests): Add tst-sem10, tst-sem11, tst-sem12.
3725 * tst-sem10.c: New file.
3726 * tst-sem11.c: New file.
3727 * tst-sem12.c: New file.
3728 * tst-typesizes.c: Test struct new_sem and struct old_sem instead
3731 2007-05-25 Ulrich Drepper <drepper@redhat.com>
3732 Jakub Jelinek <jakub@redhat.com>
3734 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
3735 Move __pthread_enable_asynccancel right before futex syscall.
3736 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
3739 2007-05-24 Jakub Jelinek <jakub@redhat.com>
3741 * sysdeps/i386/tls.h (THREAD_SET_PRIVATE_FUTEX,
3742 THREAD_COPY_PRIVATE_FUTEX): Define.
3743 * sysdeps/x86_64/tls.h (THREAD_SET_PRIVATE_FUTEX,
3744 THREAD_COPY_PRIVATE_FUTEX): Define.
3745 * allocatestack.c (allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX.
3746 * init.c (__pthread_initialize_minimal_internal): Use
3747 THREAD_SET_PRIVATE_FUTEX.
3749 * sysdeps/powerpc/tls.h (tcbhead_t): Add gscope_flag.
3750 (THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED,
3751 THREAD_GSCOPE_FLAG_WAIT): Define.
3752 (THREAD_GSCOPE_GET_FLAG, THREAD_GSCOPE_SET_FLAG,
3753 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_WAIT): Define.
3754 * sysdeps/i386/tls.h (THREAD_GSCOPE_WAIT): Don't use
3756 (THREAD_GSCOPE_GET_FLAG): Define.
3757 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Define.
3758 * allocatestack.c (__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG
3759 instead of ->header.gscope_flag directly.
3761 2007-05-23 Ulrich Drepper <drepper@redhat.com>
3763 * init.c (__pthread_initialize_minimal_internal): Check whether
3764 private futexes are available.
3765 * allocatestack.c (allocate_stack): Copy private_futex field from
3766 current thread into the new stack.
3767 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Use private
3768 futexes if they are available.
3769 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise
3770 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Adjust so that change
3771 in libc-lowlevellock.S allow using private futexes.
3772 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
3773 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
3775 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3776 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use private futexes
3777 if they are available.
3778 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
3779 * sysdeps/x86_64/tcb-offsets.sym: Add PRIVATE_FUTEX.
3780 * sysdeps/i386/tcb-offsets.sym: Likewise.
3781 * sysdeps/x86_64/tls.h (tcbhead_t): Add private_futex field.
3782 * sysdeps/i386/tls.h (tcbhead_t): Likewise.
3784 2007-05-21 Ulrich Drepper <drepper@redhat.com>
3786 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
3787 Remove ptr_wait_lookup_done again.
3788 * init.c (pthread_functions): Don't add .ptr_wait_lookup_done here.
3789 (__pthread_initialize_minimal_internal): Initialize
3790 _dl_wait_lookup_done pointer in _rtld_global directly.
3791 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
3792 Remove code to code _dl_wait_lookup_done.
3793 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_WAIT): The pointer is not
3796 2007-05-21 Jakub Jelinek <jakub@redhat.com>
3798 * tst-robust9.c (do_test): Don't fail if ENABLE_PI and
3799 pthread_mutex_init failed with ENOTSUP.
3801 2007-05-19 Ulrich Drepper <drepper@redhat.com>
3803 * allocatestack.c (__wait_lookup_done): New function.
3804 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
3805 Add ptr_wait_lookup_done.
3806 * init.c (pthread_functions): Initialize .ptr_wait_lookup_done.
3807 * pthreadP.h: Declare __wait_lookup_done.
3808 * sysdeps/i386/tls.h (tcbhead_t): Add gscope_flag.
3809 Define macros to implement reference handling of global scope.
3810 * sysdeps/x86_64/tls.h: Likewise.
3811 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
3812 Initialize GL(dl_wait_lookup_done).
3814 2007-05-17 Ulrich Drepper <drepper@redhat.com>
3817 * pthread_mutex_lock.c: Preserve FUTEX_WAITERS bit when dead owner
3819 * pthread_mutex_timedlock.c: Likewise.
3820 * pthread_mutex_trylock.c: Likewise.
3821 Patch in part by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
3823 * Makefile (tests): Add tst-robust9 and tst-robustpi9.
3824 * tst-robust9.c: New file.
3825 * tst-robustpi9.c: New file.
3827 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Remove
3828 unnecessary extra cancellation test.
3830 2007-05-14 Ulrich Drepper <drepper@redhat.com>
3832 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove unnecessary
3833 extra cancellation test.
3834 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
3836 2007-05-10 Ulrich Drepper <drepper@redhat.com>
3838 * descr.h (struct pthread): Rearrange members to fill hole in
3841 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
3842 (__pthread_setaffinity_new): If syscall was successful and
3843 RESET_VGETCPU_CACHE is defined, use it before returning.
3844 * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: New file.
3846 2007-05-10 Jakub Jelinek <jakub@redhat.com>
3849 * tst-align2.c: Include stackinfo.h.
3850 * tst-getpid1.c: Likewise.
3852 2007-05-02 Carlos O'Donell <carlos@systemhalted.org>
3855 * tst-align2.c (do_test): Add _STACK_GROWS_UP case.
3856 * tst-getpid1.c (do_test): Likewise.
3859 * allocatestack.c (change_stack_perm): Add _STACK_GROWS_UP case.
3860 (allocate_stack): Likewise.
3862 2007-05-07 Ulrich Drepper <drepper@redhat.com>
3864 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
3865 (__lll_robust_lock_wait): Fix race caused by reloading of futex value.
3866 (__lll_robust_timedlock_wait): Likewise.
3867 Reported by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
3869 2007-05-06 Mike Frysinger <vapier@gentoo.org>
3872 * tst-cancel-wrappers.sh: Set C["fdatasync"] to 1.
3873 * tst-cancel4.c (tf_fdatasync): New test.
3875 2007-04-27 Ulrich Drepper <drepper@redhat.com>
3878 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Treat error
3879 check mutexes like normal mutexes.
3882 * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
3883 Initialize the whole sigevent structure to appease valgrind.
3885 2007-04-25 Ulrich Drepper <drepper@redhat.com>
3887 * sysdeps/x86_64/tls.h (tcbhead_t): Add vgetcpu_cache.
3888 * sysdeps/x86_64/tcb-offsets.sym: Add VGETCPU_CACHE_OFFSET.
3890 2007-04-06 Ulrich Drepper <drepper@redhat.com>
3892 * tst-locale1.c: Avoid warnings.
3893 * tst-locale2.c: Likewise.
3895 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
3897 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3898 (__lll_robust_trylock): Add MUTEX_HINT_ACQ to lwarx instruction.
3900 2007-03-16 Jakub Jelinek <jakub@redhat.com>
3902 * sysdeps/pthread/bits/libc-lock.h: Use __extern_inline and
3903 __extern_always_inline where appropriate.
3904 * sysdeps/pthread/pthread.h: Likewise.
3906 2007-03-13 Richard Henderson <rth@redhat.com>
3908 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use two
3909 separate cfi regions for the two subsections.
3911 2007-02-25 Ulrich Drepper <drepper@redhat.com>
3913 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in
3914 new thread, don't just decrement it.
3915 Patch by Suzuki K P <suzuki@in.ibm.com>.
3917 2007-02-21 Ulrich Drepper <drepper@redhat.com>
3919 * sysdeps/pthread/pthread-functions.h: Correct last patch, correct
3920 PTHFCT_CALL definition.
3922 2007-02-18 Ulrich Drepper <drepper@redhat.com>
3924 * sysdeps/pthread/pthread-functions.h: If PTR_DEMANGLE is not
3925 available, don't use it.
3927 2007-02-09 Jakub Jelinek <jakub@redhat.com>
3929 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
3930 (__lll_mutex_timedlock_wait): Use correct pointer when we don't
3931 call into the kernel to delay.
3933 2007-01-18 Ulrich Drepper <drepper@redhat.com>
3935 * tst-initializers1.c: We want to test the initializers as seen
3936 outside of libc, so undefined _LIBC.
3938 * pthread_join.c (cleanup): Avoid warning.
3940 2007-01-17 Ulrich Drepper <drepper@redhat.com>
3942 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
3943 (__lll_timedwait_tid): Add unwind info.
3945 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Don't just copy the
3946 function table, mangle the pointers.
3947 * sysdeps/pthread/pthread-functions.h: Define PTHFCT_CALL.
3948 * forward.c: Use PTHFCT_CALL and __libc_pthread_functions_init.
3949 * sysdeps/pthread/bits/libc-lock.h: When using __libc_pthread_functions
3950 demangle pointers before use.
3951 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Use PTHFCT_CALL to
3953 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
3954 * sysdeps/pthread/setxid.h: Likewise.
3956 2007-01-12 Ulrich Drepper <drepper@redhat.com>
3958 * tst-rwlock7.c: Show some more information in case of correct
3961 2007-01-11 Ulrich Drepper <drepper@redhat.com>
3963 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
3964 (lll_futex_timed_wait): Undo part of last change, don't negate
3967 2007-01-10 Ulrich Drepper <drepper@redhat.com>
3969 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Cleanups. Define
3970 FUTEX_CMP_REQUEUE and lll_futex_requeue.
3972 2006-12-28 David S. Miller <davem@davemloft.net>
3974 * shlib-versions: Fix sparc64 linux target specification.
3976 2007-01-10 Jakub Jelinek <jakub@redhat.com>
3978 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
3979 Adjust include path for pthread_barrier_wait.c move.
3981 2006-12-21 Jakub Jelinek <jakub@redhat.com>
3983 * sysdeps/unix/sysv/linux/pthread_kill.c (pthread_kill): Make sure
3984 tid isn't reread from pd->tid in between ESRCH test and the syscall.
3986 2006-12-06 Jakub Jelinek <jakub@redhat.com>
3988 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Handle
3989 6 argument cancellable syscalls.
3990 (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
3991 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Handle
3992 6 argument cancellable syscalls.
3993 (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
3995 2006-12-09 Ulrich Drepper <drepper@redhat.com>
3997 * sysdeps/unix/sysv/linux/rtld-lowlevel.h
3998 (__rtld_mrlock_initialize): Add missing closing parenthesis.
4000 2006-10-30 Jakub Jelinek <jakub@redhat.com>
4002 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
4003 __sync_lock_release instead of __sync_lock_release_si.
4005 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4007 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (RTLD_SINGLE_THREAD_P):
4009 (SINGLE_THREAD_P): Define to 1 if IS_IN_rtld.
4010 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
4011 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
4012 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
4013 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
4014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
4015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
4016 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
4017 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
4018 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
4019 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
4021 2006-10-27 Ulrich Drepper <drepper@redhat.com>
4023 * sysdeps/pthread/pthread_barrier_wait.c: Move to...
4024 * pthread_barrier_wait.c: ...here.
4025 * sysdeps/pthread/pthread_cond_broadcast.c: Move to...
4026 * pthread_cond_broadcast.c: ...here.
4027 * sysdeps/pthread/pthread_cond_signal.c: Move to...
4028 * pthread_cond_signal.c: ...here.
4029 * sysdeps/pthread/pthread_cond_timedwait.c: Move to...
4030 * pthread_cond_timedwait.c: ...here.
4031 * sysdeps/pthread/pthread_cond_wait.c: Move to...
4032 * pthread_cond_wait.c: ...here.
4033 * sysdeps/pthread/pthread_once.c: Move to...
4034 * pthread_once.c: ...here.
4035 * sysdeps/pthread/pthread_rwlock_rdlock.c: Move to...
4036 * pthread_rwlock_rdlock.c: ...here.
4037 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Move to...
4038 * pthread_rwlock_timedrdlock.c: ...here.
4039 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Move to...
4040 * pthread_rwlock_timedwrlock.c: ...here.
4041 * sysdeps/pthread/pthread_rwlock_unlock.c: Move to...
4042 * pthread_rwlock_unlock.c: ...here.
4043 * sysdeps/pthread/pthread_rwlock_wrlock.c: Move to...
4044 * pthread_rwlock_wrlock.c: ...here.
4045 * sysdeps/pthread/pthread_spin_destroy.c: Move to...
4046 * pthread_spin_destroy.c: ...here.
4047 * sysdeps/pthread/pthread_spin_init.c: Move to...
4048 * pthread_spin_init.c: ...here.
4049 * sysdeps/pthread/pthread_spin_unlock.c: Move to...
4050 * pthread_spin_unlock.c: ...here.
4051 * sysdeps/pthread/pthread_getcpuclockid.c: Move to...
4052 * pthread_getcpuclockid.c: ...here.
4054 * init.c: USE_TLS support is now always enabled.
4055 * tst-tls5.h: Likewise.
4056 * sysdeps/alpha/tls.h: Likewise.
4057 * sysdeps/i386/tls.h: Likewise.
4058 * sysdeps/ia64/tls.h: Likewise.
4059 * sysdeps/powerpc/tls.h: Likewise.
4060 * sysdeps/s390/tls.h: Likewise.
4061 * sysdeps/sh/tls.h: Likewise.
4062 * sysdeps/sparc/tls.h: Likewise.
4063 * sysdeps/x86_64/tls.h: Likewise.
4065 2006-10-27 Jakub Jelinek <jakub@redhat.com>
4067 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
4068 __rtld_mrlock_change): Update oldval if atomic compare and exchange
4071 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
4072 Define to THREAD_SELF->header.multiple_threads.
4073 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
4075 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
4077 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
4078 (SINGLE_THREAD_P): Likewise.
4079 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
4080 (SINGLE_THREAD_P): Likewise.
4081 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
4082 (SINGLE_THREAD_P): Likewise.
4083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
4084 (SINGLE_THREAD_P): Likewise.
4085 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (SINGLE_THREAD_P):
4087 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
4088 (SINGLE_THREAD_P): Likewise.
4089 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
4090 (SINGLE_THREAD_P): Likewise.
4091 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (SINGLE_THREAD_P):
4094 2006-10-26 Jakub Jelinek <jakub@redhat.com>
4096 * pthread_attr_setstacksize.c (NEW_VERNUM): Define to GLIBC_2_3_3
4097 by default rather than 2_3_3.
4099 2006-10-17 Jakub Jelinek <jakub@redhat.com>
4101 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
4102 __rtld_mrlock_unlock, __rtld_mrlock_change, __rtld_mrlock_done): Use
4103 atomic_* instead of catomic_* macros.
4105 2006-10-12 Ulrich Drepper <drepper@redhat.com>
4108 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add SEM_VALUE_MAX.
4109 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
4110 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
4111 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
4112 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
4113 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Remove SEM_VALUE_MAX.
4114 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
4115 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
4116 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
4117 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: Likewise.
4118 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
4119 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
4120 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
4122 2006-10-11 Ulrich Drepper <drepper@redhat.com>
4124 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add support for
4125 cancelable syscalls with six parameters.
4127 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Use catomic_*
4128 operations instead of atomic_*.
4130 2006-10-09 Ulrich Drepper <drepper@redhat.com>
4132 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: New file..
4134 2006-10-07 Ulrich Drepper <drepper@redhat.com>
4136 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: New file.
4137 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: New file.
4138 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
4140 * pthread_attr_setstack.c: Allow overwriting the version number of the
4142 * pthread_attr_setstacksize.c: Likewise.
4143 (__old_pthread_attr_setstacksize): If STACKSIZE_ADJUST is defined use
4145 * sysdeps/unix/sysv/linux/powerpc/Versions (libpthread): Add
4146 pthread_attr_setstack and pthread_attr_setstacksize to GLIBC_2.6.
4148 2006-09-24 Ulrich Drepper <drepper@redhat.com>
4151 * descr.h (ENQUEUE_MUTEX_BOTH): Add cast to avoid warning.
4152 Patch by Petr Baudis.
4154 2006-09-18 Jakub Jelinek <jakub@redhat.com>
4156 * tst-kill4.c (do_test): Explicitly set tf thread's stack size.
4158 * tst-cancel2.c (tf): Loop as long as something was written.
4160 2006-09-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4162 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: For PI
4163 mutexes wake all mutexes.
4164 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Don't increment
4165 WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
4166 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
4168 2006-09-12 Ulrich Drepper <drepper@redhat.com>
4170 * tst-cond22.c (tf): Slight changes to the pthread_cond_wait use
4171 to guarantee the thread is always canceled.
4173 2006-09-08 Jakub Jelinek <jakub@redhat.com>
4175 * tst-cond22.c: Include pthread.h instead of pthreadP.h.
4177 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Only
4178 increase FUTEX if increasing WAKEUP_SEQ. Fix comment typo.
4179 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
4180 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
4181 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4183 2006-09-08 Ulrich Drepper <drepper@redhat.com>
4186 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Don't
4187 increment WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
4188 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
4189 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
4190 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4191 * Makefile (tests): Add tst-cond22.
4192 * tst-cond22.c: New file.
4194 2006-09-05 Ulrich Drepper <drepper@redhat.com>
4197 * descr.h (struct pthread): Add parent_cancelhandling.
4198 * sysdeps/pthread/createthread.c (create_thread): Pass parent
4199 cancelhandling value to child.
4200 * pthread_create.c (start_thread): If parent thread was canceled
4201 reset the SIGCANCEL mask.
4202 * Makefile (tests): Add tst-cancel25.
4203 * tst-cancel25.c: New file.
4205 2006-09-05 Jakub Jelinek <jakub@redhat.com>
4206 Ulrich Drepper <drepper@redhat.com>
4208 * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY): Don't decrement
4209 counterp if it is already zero.
4210 * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY): Likewise..
4212 2006-03-04 Jakub Jelinek <jakub@redhat.com>
4213 Roland McGrath <roland@redhat.com>
4215 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
4216 (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
4217 LLL_STUB_UNWIND_INFO_3, LLL_STUB_UNWIND_INFO_4): Define.
4218 (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
4219 lll_robust_mutex_cond_lock, lll_mutex_timedlock,
4220 lll_robust_mutex_timedlock, lll_mutex_unlock,
4221 lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
4222 Add _L_*_ symbols around the subsection.
4223 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Add unwind info.
4224 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Likewise.
4226 2006-03-03 Jakub Jelinek <jakub@redhat.com>
4227 Roland McGrath <roland@redhat.com>
4229 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
4230 (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
4231 LLL_STUB_UNWIND_INFO_5, LLL_STUB_UNWIND_INFO_6): Define.
4232 (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
4233 lll_robust_mutex_cond_lock, lll_mutex_timedlock,
4234 lll_robust_mutex_timedlock, lll_mutex_unlock,
4235 lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
4236 Add _L_*_ symbols around the subsection.
4237 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Add unwind info.
4238 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
4240 2006-08-31 Ulrich Drepper <drepper@redhat.com>
4242 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Undo last
4243 change because it can disturb too much existing code. If real hard
4244 reader preference is needed we'll introduce another type.
4245 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
4246 (pthread_rwlock_timedwrlock): Likewise.
4247 * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
4250 2006-08-30 Ulrich Drepper <drepper@redhat.com>
4252 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Respect
4254 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
4255 (pthread_rwlock_timedwrlock): Likewise.
4256 * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
4259 2006-08-25 Jakub Jelinek <jakub@redhat.com>
4261 * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libpthread):
4262 Only define ifdef SHARED.
4264 2006-08-23 Ulrich Drepper <drepper@redhat.com>
4266 * allocatestack.c (queue_stack): Move freeing of surplus stacks to...
4267 (free_stacks): ...here.
4268 (__free_stack_cache): New function.
4269 * pthreadP.h: Declare __free_stack_cache.
4270 * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
4272 * init.c (pthread_functions): Initialize ptr_freeres.
4273 * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libptread):
4274 New freeres function.
4276 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
4279 * Makefile (extra-objs): Add modules to extra-test-objs instead.
4281 2006-08-20 Ulrich Drepper <drepper@redhat.com>
4283 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4284 _XOPEN_REALTIME_THREADS.
4286 2006-08-15 Jakub Jelinek <jakub@redhat.com>
4288 * sysdeps/unix/sysv/linux/clock_settime.c (INTERNAL_VSYSCALL): Use
4289 HAVE_CLOCK_GETRES_VSYSCALL as guard macro rather than
4290 HAVE_CLOCK_GETTIME_VSYSCALL.
4291 (maybe_syscall_settime_cpu): Use plain INTERNAL_VSYSCALL here.
4293 2006-08-14 Jakub Jelinek <jakub@redhat.com>
4295 * sysdeps/unix/sysv/linux/bits/posix_opt.h
4296 (_POSIX_THREAD_PRIO_PROTECT): Define to 200112L.
4297 * descr.h (struct priority_protection_data): New type.
4298 (struct pthread): Add tpp field.
4299 * pthreadP.h (PTHREAD_MUTEX_PP_NORMAL_NP,
4300 PTHREAD_MUTEX_PP_RECURSIVE_NP, PTHREAD_MUTEX_PP_ERRORCHECK_NP,
4301 PTHREAD_MUTEX_PP_ADAPTIVE_NP): New enum values.
4302 * pthread_mutex_init.c (__pthread_mutex_init): Handle non-robust
4304 * pthread_mutex_lock.c (__pthread_mutex_lock): Handle TPP mutexes.
4305 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
4306 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
4307 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
4309 * pthread_setschedparam.c (__pthread_setschedparam): Handle priority
4311 * pthread_setschedprio.c (pthread_setschedprio): Likewise.
4312 * pthread_mutexattr_getprioceiling.c
4313 (pthread_mutexattr_getprioceiling): If ceiling is 0, ensure it is
4314 in the SCHED_FIFO priority range.
4315 * pthread_mutexattr_setprioceiling.c
4316 (pthread_mutexattr_setprioceiling): Fix prioceiling validation.
4317 * pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling): Fail
4318 if mutex is not TPP. Ceiling is now in __data.__lock.
4319 * pthread_mutex_setprioceiling.c: Include stdbool.h.
4320 (pthread_mutex_setprioceiling): Fix prioceiling validation. Ceiling
4321 is now in __data.__lock. Add locking.
4322 * pthread_create.c (__free_tcb): Free pd->tpp structure.
4323 * Makefile (libpthread-routines): Add tpp.
4324 (xtests): Add tst-mutexpp1, tst-mutexpp6 and tst-mutexpp10.
4325 * tst-tpp.h: New file.
4326 * tst-mutexpp1.c: New file.
4327 * tst-mutexpp6.c: New file.
4328 * tst-mutexpp10.c: New file.
4329 * tst-mutex1.c (TEST_FUNCTION): Don't redefine if already defined.
4330 * tst-mutex6.c (TEST_FUNCTION): Likewise.
4332 2006-08-12 Ulrich Drepper <drepper@redhat.com>
4335 * pthread_join.c (pthread_join): Account for self being canceled
4336 when checking for deadlocks.
4337 * tst-join5.c: Cleanups. Allow to be used in tst-join6.
4338 (tf1): Don't print anything after pthread_join returns, this would be
4339 another cancellation point.
4341 * tst-join6.c: New file.
4342 * Makefile (tests): Add tst-join6.
4344 2006-08-03 Ulrich Drepper <drepper@redhat.com>
4347 * pthread_setspecific.c (__pthread_setspecific): Check
4348 out-of-range index before checking for unused key.
4350 * sysdeps/pthread/gai_misc.h: New file.
4352 2006-08-01 Ulrich Drepper <drepper@redhat.com>
4354 * sysdeps/unix/sysv/linux/i386/smp.h: New file. Old Linux-specific
4355 file. Don't use sysctl.
4356 * sysdeps/unix/sysv/linux/smp.h: Always assume SMP. Archs can
4357 overwrite the file if this is likely not true.
4359 2006-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4361 * allocatestack.c (__reclaim_stacks): Reset the PID on cached stacks.
4362 * Makefile (tests): Add tst-getpid3.
4363 * tst-getpid3.c: New file.
4365 2006-07-30 Roland McGrath <roland@redhat.com>
4367 * Makefile (libpthread-routines): Add ptw-sigsuspend.
4369 * sysdeps/unix/sysv/linux/i386/not-cancel.h
4370 (pause_not_cancel): New macro.
4371 (nanosleep_not_cancel): New macro.
4372 (sigsuspend_not_cancel): New macro.
4373 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
4374 nanosleep_not_cancel macro from <not-cancel.h>.
4375 * pthread_mutex_lock.c (__pthread_mutex_lock): Use pause_not_cancel
4376 macro from <not-cancel.h>.
4378 2006-07-28 Ulrich Drepper <drepper@redhat.com>
4379 Jakub Jelinek <jakub@redhat.com>
4381 * descr.h: Change ENQUEUE_MUTEX and DEQUEUE_MUTEX for bit 0
4382 notification of PI mutex. Add ENQUEUE_MUTEX_PI.
4383 * pthreadP.h: Define PTHREAD_MUTEX_PI_* macros for PI mutex types.
4384 * pthread_mutex_setprioceilining.c: Adjust for mutex type name change.
4385 * pthread_mutex_init.c: Add support for priority inheritance mutex.
4386 * pthread_mutex_lock.c: Likewise.
4387 * pthread_mutex_timedlock.c: Likewise.
4388 * pthread_mutex_trylock.c: Likewise.
4389 * pthread_mutex_unlock.c: Likewise.
4390 * sysdeps/pthread/pthread_cond_broadcast.c: For PI mutexes wake
4392 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.c: Likewise.
4393 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.c: Likewise.
4394 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: New file.
4395 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-header): Add
4396 pthread-pi-defines.sym.
4397 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_LOCK_PI,
4398 FUTEX_UNLOCK_PI, and FUTEX_TRYLOCK_PI.
4399 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4400 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
4401 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
4402 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
4403 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
4404 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
4405 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
4406 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4407 _POSIX_THREAD_PRIO_INHERIT to 200112L.
4408 * tst-mutex1.c: Adjust to allow use in PI mutex test.
4409 * tst-mutex2.c: Likewise.
4410 * tst-mutex3.c: Likewise.
4411 * tst-mutex4.c: Likewise.
4412 * tst-mutex5.c: Likewise.
4413 * tst-mutex6.c: Likewise.
4414 * tst-mutex7.c: Likewise.
4415 * tst-mutex7a.c: Likewise.
4416 * tst-mutex8.c: Likewise.
4417 * tst-mutex9.c: Likewise.
4418 * tst-robust1.c: Likewise.
4419 * tst-robust7.c: Likewise.
4420 * tst-robust8.c: Likewise.
4421 * tst-mutexpi1.c: New file.
4422 * tst-mutexpi2.c: New file.
4423 * tst-mutexpi3.c: New file.
4424 * tst-mutexpi4.c: New file.
4425 * tst-mutexpi5.c: New file.
4426 * tst-mutexpi6.c: New file.
4427 * tst-mutexpi7.c: New file.
4428 * tst-mutexpi7a.c: New file.
4429 * tst-mutexpi8.c: New file.
4430 * tst-mutexpi9.c: New file.
4431 * tst-robust1.c: New file.
4432 * tst-robust2.c: New file.
4433 * tst-robust3.c: New file.
4434 * tst-robust4.c: New file.
4435 * tst-robust5.c: New file.
4436 * tst-robust6.c: New file.
4437 * tst-robust7.c: New file.
4438 * tst-robust8.c: New file.
4439 * Makefile (tests): Add the new tests.
4441 * pthread_create.c (start_thread): Add some casts to avoid warnings.
4442 * pthread_mutex_destroy.c: Remove unneeded label.
4444 2006-07-01 Ulrich Drepper <drepper@redhat.com>
4446 * pthread_mutex_init.c (__pthread_mutex_init): Move some
4447 computations to compile time.
4449 2006-06-04 Ulrich Drepper <drepper@redhat.com>
4451 * sysdeps/pthread/pthread.h: Add pthread_equal inline version.
4453 2006-05-15 Ulrich Drepper <drepper@redhat.com>
4455 * sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.
4457 2006-05-11 Ulrich Drepper <drepper@redhat.com>
4459 * pthread_key_create.c (__pthread_key_create): Do away with
4460 __pthread_keys_lock.
4462 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
4463 (__kernel_cpumask_size): Mark as hidden.
4464 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
4466 * sem_open.c (__sem_mappings_lock): Mark as hidden.
4467 * semaphoreP.h (__sem_mappings_lock): Likewise.
4469 2006-05-10 Ulrich Drepper <drepper@redhat.com>
4471 * pthread_atfork.c: Mark __dso_handle as hidden.
4473 2006-05-09 Ulrich Drepper <drepper@redhat.com>
4476 * sysdeps/pthread/unwind-forcedunwind.c: Different solution for
4477 the reload problem. Change the one path in pthread_cancel_init
4478 which causes the problem. Force gcc to reload. Simplify callers.
4479 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c
4480 (_Unwind_GetBSP): Undo last patch.
4482 2006-05-07 Ulrich Drepper <drepper@redhat.com>
4484 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: Make sure the
4485 function pointer is reloaded after pthread_cancel_init calls.
4488 * sysdeps/pthread/unwind-forcedunwind.c: Make sure functions
4489 pointers are reloaded after pthread_cancel_init calls.
4491 2006-05-01 Ulrich Drepper <drepper@redhat.com>
4493 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Mark with
4496 2006-04-27 Ulrich Drepper <drepper@redhat.com>
4498 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
4499 Allocate new object which is passed to timer_sigev_thread so that
4500 the timer can be deleted before the new thread is scheduled.
4502 2006-04-26 Roland McGrath <roland@redhat.com>
4504 * sysdeps/x86_64/tls.h: Include <asm/prctl.h> inside [! __ASSEMBLER__].
4506 2006-04-08 Ulrich Drepper <drepper@redhat.com>
4508 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove branch predicion
4509 suffix for conditional jumps.
4510 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
4511 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
4512 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
4513 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
4514 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
4515 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
4517 * init.c (sigcancel_handler): Compare with correct PID even if the
4518 thread is in the middle of a fork call.
4519 (sighandler_setxid): Likewise.
4520 Reported by Suzuki K P <suzuki@in.ibm.com> .
4522 2006-04-07 Jakub Jelinek <jakub@redhat.com>
4524 * pthreadP.h (FUTEX_TID_MASK): Sync with kernel.
4526 2006-04-06 Ulrich Drepper <drepper@redhat.com>
4528 * pthread_getattr_np.c (pthread_getattr_np): Close fp if getrlimit
4529 fails [Coverity CID 105].
4531 2006-04-05 Ulrich Drepper <drepper@redhat.com>
4533 * sysdeps/pthread/pthread.h: Add nonnull attributes.
4535 2006-04-03 Steven Munroe <sjmunroe@us.ibm.com>
4538 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h [_ARCH_PWR4]:
4539 Define __lll_rel_instr using lwsync.
4541 2006-03-27 Ulrich Drepper <drepper@redhat.com>
4543 * allocatestack.c (allocate_stack): Always initialize robust_head.
4544 * descr.h: Define struct robust_list_head.
4545 (struct pthread): Use robust_list_head in robust mutex list definition.
4546 Adjust ENQUEUE_MUTEX and DEQUEUE_MUTEX.
4547 * init.c [!__ASSUME_SET_ROBUST_LIST] (__set_robust_list_avail): Define.
4548 (__pthread_initialize_minimal_internal): Register robust_list with
4550 * pthreadP.h: Remove PRIVATE_ from PTHREAD_MUTEX_ROBUST_* names.
4551 Declare __set_robust_list_avail.
4552 * pthread_create.c (start_thread): Register robust_list of new thread.
4553 [!__ASSUME_SET_ROBUST_LIST]: If robust_list is not empty wake up
4555 * pthread_mutex_destroy.c: For robust mutexes don't look at the
4556 number of users, it's unreliable.
4557 * pthread_mutex_init.c: Allow use of pshared robust mutexes if
4558 set_robust_list syscall is available.
4559 * pthread_mutex_consistent.c: Adjust for PTHREAD_MUTEX_ROBUST_* rename.
4560 * pthread_mutex_lock.c: Simplify robust mutex code a bit.
4561 Set robust_head.list_op_pending before trying to lock a robust mutex.
4562 * pthread_mutex_timedlock.c: Likewise.
4563 * pthread_mutex_trylock.c: Likewise.
4564 * pthread_mutex_unlock.c: Likewise for unlocking.
4565 * Makefile (tests): Add tst-robust8.
4566 * tst-robust8.c: New file.
4568 2006-03-08 Andreas Schwab <schwab@suse.de>
4570 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
4571 (DL_SYSINFO_IMPLEMENTATION): Add missing newline.
4573 2006-03-05 Roland McGrath <roland@redhat.com>
4575 * configure (libc_add_on): Disable add-on when $add_ons_automatic = yes
4576 and $config_os doesn't match *linux*.
4578 2006-03-05 David S. Miller <davem@sunset.davemloft.net>
4580 * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S:
4581 Use __syscall_error.
4582 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
4583 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
4584 * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Likewise.
4585 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
4586 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
4587 * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
4589 2006-03-02 Ulrich Drepper <drepper@redhat.com>
4591 * sysdeps/unix/sysv/linux/aio_misc.h: Various cleanups.
4593 2006-03-01 Ulrich Drepper <drepper@redhat.com>
4595 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
4596 (__lll_robust_lock_wait): Also set FUTEX_WAITERS bit if we got the
4598 (__lll_robust_timedlock_wait): Likewise.
4599 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S
4600 (__lll_robust_lock_wait): Likewise.
4601 (__lll_robust_timedlock_wait): Likewise.
4602 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
4603 (__lll_robust_lock_wait): Likewise.
4604 (__lll_robust_timedlock_wait): Likewise.
4606 2006-03-01 Jakub Jelinek <jakub@redhat.com>
4608 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_robust_mutex_dead,
4609 lll_robust_mutex_trylock, lll_robust_mutex_lock,
4610 lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
4611 lll_robust_mutex_unlock): Define.
4612 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
4614 2006-02-28 H.J. Lu <hongjiu.lu@intel.com>
4616 * sysdeps/unix/sysv/linux/ia64/clone2.S: Include <clone2.S>
4617 instead of <clone.S>.
4619 2006-02-27 Jakub Jelinek <jakub@redhat.com>
4621 * Makefile (libpthread-routines): Add
4622 pthread_mutexattr_[sg]etprotocol, pthread_mutexattr_[sg]etprioceiling
4623 and pthread_mutex_[sg]etprioceiling.
4624 * Versions (GLIBC_2.4): Export pthread_mutexattr_getprotocol,
4625 pthread_mutexattr_setprotocol, pthread_mutexattr_getprioceiling,
4626 pthread_mutexattr_setprioceiling, pthread_mutex_getprioceiling and
4627 pthread_mutex_setprioceiling.
4628 * sysdeps/pthread/pthread.h (PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT,
4629 PTHREAD_PRIO_PROTECT): New enum values.
4630 (pthread_mutexattr_getprotocol, pthread_mutexattr_setprotocol,
4631 pthread_mutexattr_getprioceiling, pthread_mutexattr_setprioceiling,
4632 pthread_mutex_getprioceiling, pthread_mutex_setprioceiling): New
4634 * pthreadP.h (PTHREAD_MUTEX_PRIO_INHERIT_PRIVATE_NP,
4635 PTHREAD_MUTEX_PRIO_PROTECT_PRIVATE_NP): New enum values.
4636 (PTHREAD_MUTEX_PRIO_CEILING_SHIFT, PTHREAD_MUTEX_PRIO_CEILING_MASK):
4638 (PTHREAD_MUTEXATTR_PROTOCOL_SHIFT, PTHREAD_MUTEXATTR_PROTOCOL_MASK,
4639 PTHREAD_MUTEXATTR_PRIO_CEILING_SHIFT,
4640 PTHREAD_MUTEXATTR_PRIO_CEILING_MASK): Define.
4641 (PTHREAD_MUTEXATTR_FLAG_BITS): Or in PTHREAD_MUTEXATTR_PROTOCOL_MASK
4642 and PTHREAD_MUTEXATTR_PRIO_CEILING_MASK.
4643 * pthread_mutex_init.c (__pthread_mutex_init): For the time being
4644 return ENOTSUP for PTHREAD_PRIO_INHERIT or PTHREAD_PRIO_PROTECT
4646 * pthread_mutex_getprioceiling.c: New file.
4647 * pthread_mutex_setprioceiling.c: New file.
4648 * pthread_mutexattr_getprioceiling.c: New file.
4649 * pthread_mutexattr_setprioceiling.c: New file.
4650 * pthread_mutexattr_getprotocol.c: New file.
4651 * pthread_mutexattr_setprotocol.c: New file.
4653 2006-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4655 * sysdeps/unix/sysv/linux/aio_misc.h: Include <limits.h>.
4657 2006-02-27 Roland McGrath <roland@redhat.com>
4659 * sysdeps/pthread/Subdirs: List nptl here too.
4660 * configure (libc_add_on_canonical): New variable.
4662 * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Use #include_next.
4664 * sysdeps/unix/sysv/linux/sleep.c: Use #include_next after #include of
4665 self to get main source tree's file.
4666 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
4667 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4668 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4669 * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
4670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
4671 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
4672 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
4673 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4674 * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
4675 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
4676 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
4677 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4678 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4680 * Makefile: Use $(sysdirs) in vpath directive.
4682 * sysdeps/pthread/Makefile (CFLAGS-libc-start.c): Variable removed.
4683 (CPPFLAGS-timer_routines.c): Likewise.
4685 * Makeconfig (includes): Variable removed.
4687 2006-02-26 Roland McGrath <roland@redhat.com>
4689 * sysdeps/generic/pt-raise.c: Moved to ...
4690 * pt-raise.c: ... here.
4691 * sysdeps/generic/lowlevellock.h: Moved to ...
4692 * lowlevellock.h: ... here.
4694 2006-02-23 Roland McGrath <roland@redhat.com>
4696 * descr.h (struct pthread): Add final member `end_padding'.
4697 (PTHREAD_STRUCT_END_PADDING): Use it.
4699 2006-02-20 Roland McGrath <roland@redhat.com>
4701 * sysdeps/mips: Directory removed, saved in ports repository.
4702 * sysdeps/unix/sysv/linux/mips: Likewise.
4704 2006-02-18 Ulrich Drepper <drepper@redhat.com>
4706 * tst-robust1.c: Add second mutex to check that the mutex list is
4709 2006-02-17 Jakub Jelinek <jakub@redhat.com>
4711 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_mutex_dead,
4712 lll_robust_mutex_trylock, lll_robust_mutex_lock,
4713 lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
4714 lll_robust_mutex_unlock): New macros.
4715 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
4716 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
4717 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
4718 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
4719 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: New file.
4721 2006-02-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4723 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Add lll_robust_mutex_*
4725 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: New file.
4727 2006-02-17 Ulrich Drepper <drepper@redhat.com>
4729 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
4730 (lll_robust_mutex_unlock): Avoid unnecessary wakeups.
4731 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
4732 (lll_robust_mutex_unlock): Likewise.
4734 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4736 * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX):
4737 Set robust_list.__next rather than robust_list.
4738 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
4739 (__pthread_list_t): New typedef.
4740 (pthread_mutex_t): Replace __next and __prev fields with __list.
4741 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
4742 (__pthread_list_t): New typedef.
4743 (pthread_mutex_t): Replace __next and __prev fields with __list.
4744 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4745 (__pthread_list_t, __pthread_slist_t): New typedefs.
4746 (pthread_mutex_t): Replace __next and __prev fields with __list.
4747 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4748 (__pthread_list_t, __pthread_slist_t): New typedefs.
4749 (pthread_mutex_t): Replace __next and __prev fields with __list.
4750 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
4751 (__pthread_list_t, __pthread_slist_t): New typedefs.
4752 (pthread_mutex_t): Replace __next and __prev fields with __list.
4753 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
4754 (__pthread_slist_t): New typedef.
4755 (pthread_mutex_t): Replace __next field with __list.
4757 2006-02-15 Ulrich Drepper <drepper@redhat.com>
4759 * pthreadP.h: Define PTHREAD_MUTEX_INCONSISTENT instead of
4760 PTHREAD_MUTEX_OWNERDEAD.
4761 (PTHREAD_MUTEX_ROBUST_PRIVATE_NP): Define as 16, not 256.
4762 Define FUTEX_WAITERS, FUTEX_OWNER_DIED, FUTEX_TID_MASK.
4763 * Makefile (libpthread-routines): Add lowlevelrobustlock.
4764 * pthread_create.c (start_thread): Very much simplify robust_list loop.
4765 * pthread_mutex_consistent.c: Inconsistent mutex have __owner now set
4766 to PTHREAD_MUTEX_INCONSISTENT.
4767 * pthread_mutex_destroy.c: Allow destroying of inconsistent mutexes.
4768 * pthread_mutex_lock.c: Reimplement robust mutex handling.
4769 * pthread_mutex_trylock.c: Likewise.
4770 * pthread_mutex_timedlock.c: Likewise.
4771 * pthread_mutex_unlock.c: Likewise.
4772 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
4773 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
4774 lowlevelrobustlock.sym.
4775 * sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: New file.
4776 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add lll_robust_mutex_*
4778 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4779 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: New file.
4780 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: New file.
4781 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: New file.
4782 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: New file.
4784 2006-02-12 Ulrich Drepper <drepper@redhat.com>
4786 * allocatestack.c (allocate_stack): Initialize robust_list.
4787 * init.c (__pthread_initialize_minimal_internal): Likewise.
4788 * descr.h (struct xid_command): Pretty printing.
4789 (struct pthread): Use __pthread_list_t or __pthread_slist_t for
4790 robust_list. Adjust macros.
4791 * pthread_create.c (start_thread): Adjust robust_list handling.
4792 * phtread_mutex_unlock.c: Don't allow unlocking from any thread
4793 but the owner for all robust mutex types.
4794 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
4795 __pthread_list_t and __pthread_slist_t. Use them in pthread_mutex_t.
4796 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
4797 * sysdeps/pthread/pthread.h: Adjust mutex initializers.
4799 * sysdeps/unix/sysv/linux/i386/not-cancel.h: Define openat_not_cancel,
4800 openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3.
4802 2006-02-08 Jakub Jelinek <jakub@redhat.com>
4804 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait,
4805 lll_futex_timedwait, lll_wait_tid): Add "memory" clobber.
4807 2006-01-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4809 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_wait):
4811 (lll_futex_timed_wait): Define.
4813 2006-01-19 Ulrich Drepper <drepper@redhat.com>
4815 * tst-cancel4.c: Test ppoll.
4817 2006-01-18 Andreas Jaeger <aj@suse.de>
4820 * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
4821 (pthread_mutex_t): Follow changes for other archs. Based on patch
4822 by Jim Gifford <patches@jg555.com>.
4824 2006-01-13 Richard Henderson <rth@redhat.com>
4826 * sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private.
4828 2006-01-10 Roland McGrath <roland@redhat.com>
4830 * sysdeps/alpha/jmpbuf-unwind.h: File moved to main source tree.
4831 * sysdeps/i386/jmpbuf-unwind.h: Likewise.
4832 * sysdeps/mips/jmpbuf-unwind.h: Likewise.
4833 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
4834 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
4835 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
4836 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
4837 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
4838 * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
4839 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
4841 2006-01-09 Roland McGrath <roland@redhat.com>
4843 * tst-initializers1-c89.c: New file.
4844 * tst-initializers1-c99.c: New file.
4845 * tst-initializers1-gnu89.c: New file.
4846 * tst-initializers1-gnu99.c: New file.
4847 * Makefile (tests): Add them.
4848 (CFLAGS-tst-initializers1-c89.c): New variable.
4849 (CFLAGS-tst-initializers1-c99.c): New variable.
4850 (CFLAGS-tst-initializers1-gnu89.c): New variable.
4851 (CFLAGS-tst-initializers1-gnu99.c): New variable.
4853 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
4854 Use __extension__ on anonymous union definition.
4855 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
4856 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
4857 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
4858 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
4859 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
4861 2006-01-08 Jakub Jelinek <jakub@redhat.com>
4863 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
4864 Don't give the union a name because it changes the mangled name.
4865 Instead name the struct for __data.
4866 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_mutex_t):
4868 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_mutex_t):
4871 2006-01-09 Jakub Jelinek <jakub@redhat.com>
4873 * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Add
4874 stack bias to mc_ftp field.
4876 2006-01-07 Ulrich Drepper <drepper@redhat.com>
4878 * sysdeps/pthread/aio_misc.h (AIO_MISC_WAIT): Work around gcc
4879 being too clever and reloading the futex value where it shouldn't.
4881 2006-01-06 Ulrich Drepper <drepper@redhat.com>
4883 * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX): Use
4886 2006-01-06 Jakub Jelinek <jakub@redhat.com>
4888 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
4891 2006-01-06 Ulrich Drepper <drepper@redhat.com>
4893 * sysdeps/ia64/tls.h (tcbhead_t): Rename private member to __private.
4894 * sysdeps/ia64/tcb-offsets.sym: Adjust for private->__private
4895 rename in tcbhead_t.
4897 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
4898 Don't give the union a name because it changes the mangled name.
4899 Instead name the struct for __data.
4900 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
4901 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
4902 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
4903 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
4904 * pthread_create.c (start_thread): Adjust robust mutex free loop.
4905 * descr.h (ENQUEUE_MUTEX, DEQUEUE_MUTEX): Adjust.
4907 2006-01-05 Ulrich Drepper <drepper@redhat.com>
4909 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
4911 (lll_futex_timed_wait): Define.
4912 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4913 * sysdeps/pthread/aio_misc.h: New file.
4915 2006-01-03 Joseph S. Myers <joseph@codesourcery.com>
4917 * Makefile ($(objpfx)$(multidir)): Use mkdir -p.
4919 2006-01-03 Steven Munroe <sjmunroe@us.ibm.com>
4921 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
4922 (PSEUDO): Remove redundant cfi_startproc and cfi_endproc directives.
4923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
4925 2006-01-04 Ulrich Drepper <drepper@redhat.com>
4927 * tst-cancel24.cc: Use C headers instead of C++ headers.
4929 2006-01-03 Jakub Jelinek <jakub@redhat.com>
4931 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Remove #error for
4932 sparc-linux configured glibc.
4933 (lll_futex_wake_unlock): Define to 1 for sparc-linux configured glibc.
4934 (__lll_mutex_trylock, __lll_mutex_cond_trylock, __lll_mutex_lock,
4935 __lll_mutex_cond_lock, __lll_mutex_timedlock): Use
4936 atomic_compare_and_exchange_val_24_acq instead of
4937 atomic_compare_and_exchange_val_acq.
4938 (lll_mutex_unlock, lll_mutex_unlock_force): Use atomic_exchange_24_rel
4939 instead of atomic_exchange_rel.
4940 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: New file.
4941 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c: New
4943 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c: New
4945 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: New file.
4946 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: New file.
4947 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: New file.
4948 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: New file.
4949 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: New file.
4950 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
4952 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
4954 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: New file.
4955 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: New file.
4956 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c: New
4958 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c: New
4960 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: New file.
4962 2006-01-03 Ulrich Drepper <drepper@redhat.com>
4964 * sysdeps/pthread/pthread.h [__WORDSIZE==64]: Don't use cast in
4967 2006-01-02 Jakub Jelinek <jakub@redhat.com>
4969 * sysdeps/sparc/tls.h (tcbhead_t): Add pointer_guard field.
4970 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
4971 THREAD_COPY_POINTER_GUARD): Define.
4972 * sysdeps/sparc/tcb-offsets.sym (POINTER_GUARD): Define.
4973 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Revert 2005-12-27 changes.
4975 2006-01-01 Ulrich Drepper <drepper@redhat.com>
4977 * version.c: Update copyright year.
4979 2005-12-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4981 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Remove explicit
4982 .eh_frame section, use cfi_* directives.
4983 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Add cfi instrumentation.
4985 2005-12-30 Ulrich Drepper <drepper@redhat.com>
4987 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Undo last change for
4990 2005-12-29 Ulrich Drepper <drepper@redhat.com>
4992 * sysdeps/pthread/sigaction.c: Removed.
4993 * sigaction.c: New file.
4994 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-sigaction.c.
4996 2005-12-28 Ulrich Drepper <drepper@redhat.com>
4998 * Makefile (tests): Add tst-signal7.
4999 * tst-signal7.c: New file.
5001 2005-12-27 Roland McGrath <roland@redhat.com>
5003 * sysdeps/x86_64/jmpbuf-unwind.h (_jmpbuf_sp): New inline function.
5004 (_JMPBUF_UNWINDS_ADJ): Use it, to PTR_DEMANGLE before comparison.
5005 * sysdeps/alpha/jmpbuf-unwind.h: Likewise.
5006 * sysdeps/i386/jmpbuf-unwind.h: Likewise.
5007 * sysdeps/mips/jmpbuf-unwind.h: Likewise.
5008 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
5009 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
5010 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
5011 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
5012 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
5013 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
5015 2005-12-27 Jakub Jelinek <jakub@redhat.com>
5017 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Add __next
5018 and __prev field to pthread_mutex_t.
5019 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5020 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5021 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5022 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5023 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Add __next field
5026 2005-12-26 Ulrich Drepper <drepper@redhat.com>
5028 * pthreadP.h: Define PTHREAD_MUTEX_ROBUST_PRIVATE_NP,
5029 PTHREAD_MUTEX_ROBUST_PRIVATE_RECURSIVE_NP,
5030 PTHREAD_MUTEX_ROBUST_PRIVATE_ERRORCHECK_NP,
5031 PTHREAD_MUTEX_ROBUST_PRIVATE_ADAPTIVE_NP,
5032 PTHREAD_MUTEXATTR_FLAG_ROBUST, PTHREAD_MUTEXATTR_FLAG_PSHARED,
5033 and PTHREAD_MUTEXATTR_FLAG_BITS.
5034 * descr.h (struct pthread): Add robust_list field and define
5035 ENQUEUE_MUTEX and DEQUEUE_MUTEX macros.
5036 * pthread_mutexattr_getrobust.c: New file.
5037 * pthread_mutexattr_setrobust.c: New file.
5038 * pthread_mutex_consistent.c: New file.
5039 * sysdeps/pthread/pthread.h: Declare pthread_mutexattr_getrobust,
5040 pthread_mutexattr_setrobust, and pthread_mutex_consistent.
5041 Define PTHREAD_MUTEX_STALLED_NP and PTHREAD_MUTEX_ROBUST_NP.
5042 Adjust pthread_mutex_t initializers.
5043 * nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Add __next
5044 field to pthread_mutex_t.
5045 * nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Add __next
5046 and __prev field to pthread_mutex_t.
5047 * Versions [GLIBC_2.4]: Export pthread_mutexattr_getrobust_np,
5048 pthread_mutexattr_setrobust_np, and pthread_mutex_consistent_np.
5049 * pthread_mutexattr_getpshared.c: Use PTHREAD_MUTEXATTR_FLAG_PSHARED
5050 and PTHREAD_MUTEXATTR_FLAG_BITS macros instead of magic numbers.
5051 * pthread_mutexattr_gettype.c: Likewise.
5052 * pthread_mutexattr_setpshared.c: Likewise.
5053 * pthread_mutexattr_settype.c: Likewise.
5054 * pthread_mutex_init.c: Reject robust+pshared attribute for now.
5055 Initialize mutex kind according to robust flag.
5056 * pthread_mutex_lock.c: Implement local robust mutex.
5057 * pthread_mutex_timedlock.c: Likewise.
5058 * pthread_mutex_trylock.c: Likewise.
5059 * pthread_mutex_unlock.c: Likewise.
5060 * pthread_create.c (start_thread): Mark robust mutexes which remained
5062 * tst-robust1.c: New file.
5063 * tst-robust2.c: New file.
5064 * tst-robust3.c: New file.
5065 * tst-robust4.c: New file.
5066 * tst-robust5.c: New file.
5067 * tst-robust6.c: New file.
5068 * tst-robust7.c: New file.
5069 * Makefile (libpthread-routines): Add pthread_mutexattr_getrobust,
5070 pthread_mutexattr_setrobust, and pthread_mutex_consistent.
5071 (tests): Add tst-robust1, tst-robust2, tst-robust3, tst-robust4,
5072 tst-robust5, tst-robust6, and tst-robust7.
5074 * tst-typesizes.c: New file.
5075 * Makefile (tests): Add tst-typesizes.
5077 * tst-once3.c: More debug output.
5079 2005-12-24 Ulrich Drepper <drepper@redhat.com>
5081 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Add break
5082 missing after last change.
5084 * version.c: Update copyright year.
5086 2005-12-23 Ulrich Drepper <drepper@redhat.com>
5088 * pthread_mutex_destroy.c: Set mutex type to an invalid value.
5089 * pthread_mutex_lock.c: Return EINVAL for invalid mutex type.
5090 * pthread_mutex_trylock.c: Likewise.
5091 * pthread_mutex_timedlock.c: Likewise.
5092 * pthread_mutex_unlock.c: Likewise.
5094 2005-12-22 Roland McGrath <roland@redhat.com>
5096 * sysdeps/pthread/sigaction.c: Use "" instead of <> to include self,
5097 so that #include_next's search location is not reset to the -I..
5098 directory where <nptl/...> can be found.
5100 2005-12-22 Ulrich Drepper <drepper@redhat.com>
5103 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
5104 Fix unwind info. Remove useless branch prediction prefix.
5105 * tst-cancel24.cc: New file.
5106 * Makefile: Add rules to build and run tst-cancel24.
5108 2005-12-21 Roland McGrath <roland@redhat.com>
5110 * libc-cancellation.c: Use <> rather than "" #includes.
5111 * pt-cleanup.c: Likewise.
5112 * pthread_create.c: Likewise.
5113 * pthread_join.c: Likewise.
5114 * pthread_timedjoin.c: Likewise.
5115 * pthread_tryjoin.c: Likewise.
5116 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Likewise.
5117 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
5118 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
5119 * unwind.c: Likewise.
5121 2005-12-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5123 * sysdeps/sh/tcb-offsets.sym: Add POINTER_GUARD.
5124 * sysdeps/sh/tls.h (tcbhead_t): Remove private and add pointer_guard.
5125 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5126 THREAD_COPY_POINTER_GUARD): Define.
5128 2005-12-19 Jakub Jelinek <jakub@redhat.com>
5130 * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): Make room for 2 uintptr_t's
5132 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5133 THREAD_COPY_POINTER_GUARD): Define.
5134 * sysdeps/powerpc/tcb-offsets.sym (POINTER_GUARD): Add.
5135 * sysdeps/powerpc/tls.h (tcbhead_t): Add pointer_guard field.
5136 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5137 THREAD_COPY_POINTER_GUARD): Define.
5138 * sysdeps/s390/tcb-offsets.sym (STACK_GUARD): Add.
5139 * sysdeps/s390/tls.h (THREAD_GET_POINTER_GUARD,
5140 THREAD_SET_POINTER_GUARD, THREAD_COPY_POINTER_GUARD): Define.
5141 * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S (__ia64_longjmp):
5142 Use PTR_DEMANGLE for B0 if defined.
5144 2005-12-17 Ulrich Drepper <drepper@redhat.com>
5146 * pthread_create.c (__pthread_create_2_1): Use
5147 THREAD_COPY_POINTER_GUARD if available.
5148 * sysdeps/i386/tcb-offsets.sym: Add POINTER_GUARD.
5149 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
5150 * sysdeps/i386/tls.h (tcbhead_t): Add pointer_guard.
5151 Define THREAD_SET_POINTER_GUARD and THREAD_COPY_POINTER_GUARD.
5152 * sysdeps/x86_64/tls.h: Likewise.
5154 2005-12-15 Roland McGrath <roland@redhat.com>
5156 * sysdeps/unix/sysv/linux/mq_notify.c: Don't use sysdeps/generic.
5158 2005-12-13 Ulrich Drepper <drepper@redhat.com>
5160 * sysdeps/pthread/sigfillset.c: Adjust for files moved out of
5162 * errno-loc.c: New file.
5164 2005-12-12 Roland McGrath <roland@redhat.com>
5166 * init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
5167 adjustments before choosing stack size. Update minimum stack size
5168 calculation to match allocate_stack change.
5170 2005-12-12 Ulrich Drepper <drepper@redhat.com>
5172 * allocatestack.c (allocate_stack): Don't demand that there is an
5173 additional full page available on the stack beside guard, TLS, the
5176 2005-11-24 Ulrich Drepper <drepper@redhat.com>
5178 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
5179 (__cleanup_fct_attribute): Use __regparm__ not regparm.
5181 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: When
5182 compiling 32-bit code we must define __cleanup_fct_attribute.
5184 005-11-24 Jakub Jelinek <jakub@redhat.com>
5187 * sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
5188 __attribute__ instead of __attribute.
5189 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
5190 (__cleanup_fct_attribute): Likewise.
5192 2005-11-17 Jakub Jelinek <jakub@redhat.com>
5194 * sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
5195 a write barrier before writing libgcc_s_getcfa.
5197 2005-11-06 Ulrich Drepper <drepper@redhat.com>
5199 * sysdeps/unix/sysv/linux/configure: Removed.
5201 2005-11-05 Ulrich Drepper <drepper@redhat.com>
5203 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Remove trace of
5204 optional init_array/fini_array support.
5206 2005-10-24 Roland McGrath <roland@redhat.com>
5208 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove unnecessary
5209 versioned_symbol use.
5211 2005-10-16 Roland McGrath <roland@redhat.com>
5213 * init.c (__pthread_initialize_minimal_internal): Even when using a
5214 compile-time default stack size, apply the minimum that allocate_stack
5215 will require, and round up to page size.
5217 2005-10-10 Daniel Jacobowitz <dan@codesourcery.com>
5219 * Makefile ($(test-modules)): Remove static pattern rule.
5221 2005-10-14 Jakub Jelinek <jakub@redhat.com>
5222 Ulrich Drepper <drepper@redhat.com>
5224 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix stack
5225 alignment in callback function.
5226 * Makefile: Add rules to build and run tst-align3.
5227 * tst-align3.c: New file.
5229 2005-10-03 Jakub Jelinek <jakub@redhat.com>
5231 * allocatestack.c (setxid_signal_thread): Add
5232 INTERNAL_SYSCALL_DECL (err).
5234 2005-10-02 Jakub Jelinek <jakub@redhat.com>
5236 * allocatestack.c (setxid_signal_thread): Need to use
5237 atomic_compare_and_exchange_bool_acq.
5239 2005-10-01 Ulrich Drepper <drepper@redhat.com>
5240 Jakub Jelinek <jakub@redhat.com>
5242 * descr.h: Define SETXID_BIT and SETXID_BITMASK. Adjust
5244 (struct pthread): Move specific_used field to avoid padding.
5245 Add setxid_futex field.
5246 * init.c (sighandler_setxid): Reset setxid flag and release the
5248 * allocatestack.c (setxid_signal_thread): New function. Broken
5249 out of the bodies of the two loops in __nptl_setxid. For undetached
5250 threads check whether they are exiting and if yes, don't send a signal.
5251 (__nptl_setxid): Simplify loops by using setxid_signal_thread.
5252 * pthread_create.c (start_thread): For undetached threads, check
5253 whether setxid bit is set. If yes, wait until signal has been
5256 * allocatestack.c (STACK_VARIABLES): Initialize them.
5257 * pthread_create.c (__pthread_create_2_1): Initialize pd.
5259 2004-09-02 Jakub Jelinek <jakub@redhat.com>
5261 * pthread_cond_destroy.c (__pthread_cond_destroy): If there are
5262 waiters, awake all waiters on the associated mutex.
5264 2005-09-22 Roland McGrath <roland@redhat.com>
5266 * perf.c [__x86_64__] (HP_TIMING_NOW): New macro (copied from
5267 ../sysdeps/x86_64/hp-timing.h).
5269 2005-08-29 Jakub Jelinek <jakub@redhat.com>
5271 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_WAKE_OP,
5272 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5273 (lll_futex_wake_unlock): Define.
5274 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_WAKE_OP,
5275 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5276 (lll_futex_wake_unlock): Define.
5277 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_WAKE_OP,
5278 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5279 (lll_futex_wake_unlock): Define.
5280 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_WAKE_OP,
5281 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5282 (lll_futex_wake_unlock): Define.
5283 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_WAKE_OP,
5284 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5285 (lll_futex_wake_unlock): Define.
5286 * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): Use
5287 lll_futex_wake_unlock.
5288 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
5289 (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5290 (__pthread_cond_signal): Use FUTEX_WAKE_OP.
5291 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5292 (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5293 (__pthread_cond_signal): Use FUTEX_WAKE_OP.
5295 2005-09-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5297 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
5298 Fix typo in register name.
5300 2005-08-23 Ulrich Drepper <drepper@redhat.com>
5302 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
5303 Use __sigfillset. Document that sigfillset does the right thing wrt
5306 2005-07-11 Jakub Jelinek <jakub@redhat.com>
5309 * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER,
5310 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
5311 PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
5312 PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_RWLOCK_INITIALIZER,
5313 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
5314 PTHREAD_COND_INITIALIZER): Supply zeros for all fields
5316 * Makefile (tests): Add tst-initializers1.
5317 (CFLAGS-tst-initializers1.c): Set.
5318 * tst-initializers1.c: New test.
5320 2005-07-11 Jakub Jelinek <jakub@redhat.com>
5322 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_rwlock_t):
5323 Make sure __flags are located at offset 48 from the start of the
5326 2005-07-02 Roland McGrath <roland@redhat.com>
5328 * Makeconfig: Comment fix.
5330 2005-07-05 Jakub Jelinek <jakub@redhat.com>
5332 * descr.h (PTHREAD_STRUCT_END_PADDING): Define.
5333 * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): If PTHREAD_STRUCT_END_PADDING
5334 is smaller than 8 bytes, increase TLS_PRE_TCB_SIZE by 16 bytes.
5335 (THREAD_SYSINFO, THREAD_SELF, DB_THREAD_SELF): Don't assume
5336 TLS_PRE_TCB_SIZE is sizeof (struct pthread).
5337 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5338 * sysdeps/ia64/tcb-offsets.sym (PID, TID, MULTIPLE_THREADS_OFFSET):
5339 Use TLS_PRE_TCB_SIZE instead of sizeof (struct pthread).
5340 * sysdeps/unix/sysv/linux/ia64/createthread.c (TLS_VALUE): Don't
5341 assume TLS_PRE_TCB_SIZE is sizeof (struct pthread).
5343 2005-06-25 Jakub Jelinek <jakub@redhat.com>
5345 * sysdeps/i386/tls.h (tcbhead_t): Add stack_guard field.
5346 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5347 * sysdeps/x86_64/tls.h (tcbhead_t): Add sysinfo and stack_guard
5349 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5350 * sysdeps/s390/tls.h (tcbhead_t): Add stack_guard
5351 field. Put in sysinfo field unconditionally.
5352 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5353 * sysdeps/powerpc/tls.h (tcbhead_t): Add stack_guard field.
5354 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5355 * sysdeps/sparc/tls.h (tcbhead_t): Add sysinfo and stack_guard
5357 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5358 * pthread_create.c (__pthread_create_2_1): Use
5359 THREAD_COPY_STACK_GUARD macro.
5360 * Makefile: Add rules to build and run tst-stackguard1{,-static}
5362 * tst-stackguard1.c: New file.
5363 * tst-stackguard1-static.c: New file.
5365 2005-06-14 Alan Modra <amodra@bigpond.net.au>
5367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
5368 Invoke CGOTSETUP and CGOTRESTORE.
5369 (CGOTSETUP, CGOTRESTORE): Define.
5371 2005-05-29 Richard Henderson <rth@redhat.com>
5373 * tst-cancel4.c (WRITE_BUFFER_SIZE): New.
5374 (tf_write, tf_writev): Use it.
5375 (do_test): Use socketpair instead of pipe. Set SO_SNDBUF to
5378 2005-05-23 Jakub Jelinek <jakub@redhat.com>
5380 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
5381 [IS_IN_librt] (CENABLE, CDISABLE): Use JUMPTARGET instead of
5382 __librt_*_asynccancel@local.
5384 2005-05-17 Alan Modra <amodra@bigpond.net.au>
5386 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Delete
5387 all occurrences of JUMPTARGET. Instead append @local to labels.
5389 2005-05-20 Jakub Jelinek <jakub@redhat.com>
5391 * sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
5392 size/alignment of struct pthread rather than tcbhead_t.
5393 * sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5395 * sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5397 * sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5400 2005-05-19 Richard Henderson <rth@redhat.com>
5402 * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use
5403 __sync_val_compare_and_swap, not explicit _si variant.
5404 * sysdeps/ia64/pthread_spin_trylock.c (pthread_spin_trylock): Likewise.
5406 2005-05-03 Ulrich Drepper <drepper@redhat.com>
5409 * sysdeps/pthread/pthread.h: Avoid empty initializers.
5411 2005-05-03 Jakub Jelinek <jakub@redhat.com>
5413 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
5414 .eh_frame section, use cfi_* directives.
5416 2005-04-27 Jakub Jelinek <jakub@redhat.com>
5418 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
5421 2005-04-27 Ulrich Drepper <drepper@redhat.com>
5424 * tst-cancel17.c (do_test): Add arbitrary factor to make sure
5427 2005-04-27 Roland McGrath <roland@redhat.com>
5429 * Makefile (tests): Remove tst-clock2.
5431 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle
5432 CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
5433 translating to the kernel clockid_t for our own process/thread clock.
5435 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
5437 2005-04-15 Jakub Jelinek <jakub@redhat.com>
5439 * old_pthread_cond_init.c: Include <errno.h>.
5440 (__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is
5441 process shared or uses clock other than CLOCK_REALTIME.
5442 * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
5444 2005-04-13 David S. Miller <davem@davemloft.net>
5446 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file.
5447 * sysdeps/sparc/sparc64/clone.S: New file.
5449 2005-04-05 Jakub Jelinek <jakub@redhat.com>
5452 * sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use
5453 __inline instead of inline.
5454 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise.
5456 2005-03-31 Jakub Jelinek <jakub@redhat.com>
5458 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use
5459 functionally equivalent, but shorter instructions.
5460 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
5461 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
5462 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
5464 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
5465 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
5466 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
5467 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
5468 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
5469 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
5470 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
5472 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
5473 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5474 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
5475 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
5476 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
5478 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
5480 * sysdeps/mips/Makefile: New file.
5481 * sysdeps/mips/nptl-sysdep.S: New file.
5482 * sysdeps/mips/tcb-offsets.sym: New file.
5483 * sysdeps/mips/pthread_spin_lock.S: New file.
5484 * sysdeps/mips/pthread_spin_trylock.S: New file.
5485 * sysdeps/mips/pthreaddef.h: New file.
5486 * sysdeps/mips/tls.h: New file.
5487 * sysdeps/mips/jmpbuf-unwind.h: New file.
5488 * sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file.
5489 * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file.
5490 * sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file.
5491 * sysdeps/unix/sysv/linux/mips/pthread_once.c: New file.
5492 * sysdeps/unix/sysv/linux/mips/fork.c: New file.
5493 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
5494 * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
5495 * sysdeps/unix/sysv/linux/mips/clone.S: New file.
5496 * sysdeps/unix/sysv/linux/mips/createthread.c: New file.
5497 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
5499 2005-03-23 Ulrich Drepper <drepper@redhat.com>
5502 * pthread_create.c (__pthread_create_2_1): Rename syscall error
5505 2005-03-10 Jakub Jelinek <jakub@redhat.com>
5507 * tst-getpid1.c (do_test): Align stack passed to clone{2,}.
5509 2005-02-25 Roland McGrath <roland@redhat.com>
5511 * alloca_cutoff.c: Correct license text.
5512 * tst-unload.c: Likewise.
5513 * sysdeps/pthread/allocalim.h: Likewise.
5514 * sysdeps/pthread/pt-initfini.c: Likewise.
5515 * sysdeps/pthread/bits/libc-lock.h: Likewise.
5516 * sysdeps/pthread/bits/sigthread.h: Likewise.
5517 * sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
5518 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
5520 2005-02-16 Roland McGrath <roland@redhat.com>
5522 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
5523 Use unsigned int * for ptr_nthreads.
5525 2005-02-14 Alan Modra <amodra@bigpond.net.au>
5528 * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
5531 2005-02-07 Richard Henderson <rth@redhat.com>
5534 * sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first
5537 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
5539 * sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix
5540 order of arguments in invocation of atomic_add_zero.
5542 2005-01-26 Jakub Jelinek <jakub@redhat.com>
5545 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait):
5546 Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS,
5547 at least gotntpoff relocation and addition.
5548 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
5550 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
5552 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
5555 2005-01-06 Ulrich Drepper <drepper@redhat.com>
5557 * allocatestack.c (init_one_static_tls): Adjust initialization of DTV
5558 entry for static tls deallocation fix.
5559 * sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which
5560 also contains information whether the memory pointed to is static
5562 * sysdeps/i386/tls.h: Likewise.
5563 * sysdeps/ia64/tls.h: Likewise.
5564 * sysdeps/powerpc/tls.h: Likewise.
5565 * sysdeps/s390/tls.h: Likewise.
5566 * sysdeps/sh/tls.h: Likewise.
5567 * sysdeps/sparc/tls.h: Likewise.
5568 * sysdeps/x86_64/tls.h: Likewise.
5570 2004-12-27 Ulrich Drepper <drepper@redhat.com>
5572 * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
5574 2004-12-21 Jakub Jelinek <jakub@redhat.com>
5576 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of
5578 * Makefile (tests): Add tst-align2.
5579 * tst-align2.c: New test.
5580 * sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add
5581 -mpreferred-stack-boundary=4.
5583 2004-12-18 Roland McGrath <roland@redhat.com>
5585 * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h:
5586 New file removed withdrawn for the moment.
5588 2004-12-17 Richard Henderson <rth@redhat.com>
5590 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
5591 * sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
5593 2004-12-16 Ulrich Drepper <drepper@redhat.com>
5595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file.
5596 Increased PTHREAD_STACK_MIN.
5598 * tst-context1.c (stacks): Use bigger stack size.
5600 2004-12-16 Jakub Jelinek <jakub@redhat.com>
5602 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
5603 * sysdeps/sparc/tcb-offsets.sym: Add TID.
5605 2004-12-15 Jakub Jelinek <jakub@redhat.com>
5607 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file.
5608 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
5609 * sysdeps/s390/tcb-offsets.sym (TID): Add.
5611 2004-12-15 Ulrich Drepper <drepper@redhat.com>
5613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file.
5615 2004-12-14 Ulrich Drepper <drepper@redhat.com>
5617 * sysdeps/powerpc/tcb-offsets.sym: Add TID.
5618 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
5620 * tst-getpid1.c: If child crashes, report this first. Print which
5623 2004-12-09 Ulrich Drepper <drepper@redhat.com>
5625 * init.c (__pthread_initialize_minimal_internal): Also unblock
5628 2004-12-01 Jakub Jelinek <jakub@redhat.com>
5630 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
5631 _POSIX_THREAD_CPUTIME): Define to 0.
5632 * sysdeps/pthread/timer_create.c (timer_create): Remove unused code
5633 handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
5634 * sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
5635 __timer_signal_thread_tclk): Remove.
5636 (init_module): Remove their initialization.
5637 (thread_cleanup): Remove their cleanup assertions.
5638 * sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
5639 __timer_signal_thread_tclk): Remove.
5640 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
5641 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
5642 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
5644 2004-12-07 Jakub Jelinek <jakub@redhat.com>
5646 * sysdeps/ia64/tcb-offsets.sym (TID): Add.
5647 * sysdeps/unix/sysv/linux/ia64/clone2.S: New file.
5649 * Makefile (tests): Add tst-getpid2.
5650 * tst-getpid1.c (TEST_CLONE_FLAGS): Define.
5651 (do_test): Use it. Use __clone2 instead of clone on ia64.
5652 * tst-getpid2.c: New test.
5654 2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5656 * sysdeps/unix/sysv/linux/sh/clone.S: New file.
5658 2004-12-04 Ulrich Drepper <drepper@redhat.com>
5660 * Makefile (tests): Add tst-getpid1.
5661 * tst-getpid1.c: New file.
5662 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
5663 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
5665 2004-12-02 Roland McGrath <roland@redhat.com>
5667 * Makefile (libpthread-nonshared): Variable removed.
5668 ($(objpfx)libpthread_nonshared.a): Target removed.
5669 ($(inst_libdir)/libpthread_nonshared.a): Likewise.
5670 These are now handled by generic magic from
5671 libpthread-static-only-routines being set.
5673 2004-11-27 Ulrich Drepper <drepper@redhat.com>
5675 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO,
5676 _POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT,
5677 _POSIX_THREAD_PRIO_PROTECT): Define.
5678 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
5679 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
5680 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
5682 2004-11-26 Jakub Jelinek <jakub@redhat.com>
5684 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
5685 _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
5686 _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
5687 _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
5688 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
5689 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
5690 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
5692 2004-11-24 Ulrich Drepper <drepper@redhat.com>
5694 * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
5696 * Makefile (libpthread-routines): Add pthread_setschedprio.
5697 * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
5698 * sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
5699 * pthread_setschedprio.c: New file.
5701 2004-11-20 Jakub Jelinek <jakub@redhat.com>
5703 * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE.
5704 * pthread_cancel.c (pthread_create): Likewise.
5706 * Makefile (libpthread-routines): Add vars.
5707 * sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove.
5708 * init.c (__default_stacksize, __is_smp): Remove.
5710 * pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function
5711 and define a wrapper macro.
5712 (PTHREAD_STATIC_FN_REQUIRE): Define.
5713 * allocatestack.c (__find_thread_by_id): Undefine.
5714 * pthread_create (__pthread_keys): Remove.
5715 (pthread_mutex_lock, pthread_mutex_unlock, pthread_once,
5716 pthread_key_create, pthread_setspecific, pthread_getspecific): Add
5717 PTHREAD_STATIC_FN_REQUIRE.
5719 2004-11-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5721 * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias
5722 parameter to REGISTER macro.
5724 2004-11-17 Roland McGrath <roland@redhat.com>
5726 * sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
5727 Make sure SIGCANCEL is blocked as well.
5729 2004-11-10 Jakub Jelinek <jakub@redhat.com>
5731 * sysdeps/pthread/setxid.h: New file.
5732 * sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove.
5733 (struct xid_command): Add forward decl.
5734 (struct pthread_functions): Change return type of __nptl_setxid hook
5736 * pthreadP.h (__nptl_setxid): Change return type to int.
5737 * allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the
5738 calling thread, return its return value and set errno on failure.
5739 * descr.h (struct xid_command): Change id type to long array.
5741 * Makefile: Add rules to build and test tst-setuid1 and
5743 * tst-setuid1.c: New test.
5744 * tst-setuid1-static.c: New test.
5746 2004-11-10 Jakub Jelinek <jakub@redhat.com>
5748 * Makefile (tests): Add tst-exit3.
5749 * tst-exit3.c: New test.
5751 2004-11-09 Ulrich Drepper <drepper@redhat.com>
5753 * Makefile (tests): Add tst-exit2.
5754 * tst-exit2.c: New file.
5756 2004-11-09 Roland McGrath <roland@redhat.com>
5759 * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
5760 here, before calling clone.
5761 * pthread_create.c (start_thread): Don't do it here.
5763 2004-11-02 Jakub Jelinek <jakub@redhat.com>
5765 * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
5767 2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5769 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
5770 Set ETIMEDOUT to errno when time is up. Tweak to avoid
5773 2004-10-28 Jakub Jelinek <jakub@redhat.com>
5775 * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
5776 if sched_priority is not between minprio and maxprio.
5778 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5780 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
5781 (__pthread_cond_timedwait): Use clock_gettime syscall if exists.
5783 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
5784 (__lll_mutex_timedlock_wait): Fix a bad branch condition.
5786 2004-10-24 Ulrich Drepper <drepper@redhat.com>
5788 * sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use
5789 not-cancelable I/O functions.
5791 2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5793 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
5794 (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
5795 make sure 2 is stored in the futex and we looked at the old value.
5796 Fix a few other problems to return the correct value.
5798 2004-10-14 Richard Henderson <rth@redhat.com>
5800 * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
5803 2004-10-06 Jakub Jelinek <jakub@redhat.com>
5805 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
5806 of pthread-functions.h and pthreaddef.h.
5807 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
5809 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
5810 Change __data.__nwaiters from int to unsigned int.
5812 * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
5813 sysconf (_SC_THREAD_CPUTIME) returns negative value.
5815 * allocatestack.c (__find_thread_by_id): Move attribute_hidden
5818 * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
5819 (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
5821 2004-10-06 Ulrich Drepper <drepper@redhat.com>
5823 * tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the
5824 test fails, remove message queue.
5825 (tf_msgsnd): Likewise.
5827 2004-10-05 Jakub Jelinek <jakub@redhat.com>
5829 * tst-clock1.c: Change #ifdef to #if defined.
5830 * tst-clock2.c: Likewise.
5831 * tst-cond11.c: Likewise.
5833 * sysdeps/pthread/timer_create.c (timer_create): Use
5834 defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of
5835 defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for
5838 2004-10-05 Jakub Jelinek <jakub@redhat.com>
5840 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME,
5841 _POSIX_THREAD_CPUTIME): Define to 0.
5843 2004-10-04 Ulrich Drepper <drepper@redhat.com>
5845 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
5846 and _POSIX_THREAD_CPUTIME to zero.
5847 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
5848 * tst-barrier2.c: Fix testing for POSIX feature.
5849 * tst-clock1.c: Likewise.
5850 * tst-clock2.c: Likewise.
5851 * tst-cond11.c: Likewise.
5852 * tst-cond4.c: Likewise.
5853 * tst-cond6.c: Likewise.
5854 * tst-flock2.c: Likewise.
5855 * tst-mutex4.c: Likewise.
5856 * tst-mutex9.c: Likewise.
5857 * tst-rwlock12.c: Likewise.
5858 * tst-rwlock4.c: Likewise.
5859 * tst-signal1.c: Likewise.
5860 * tst-spin2.c: Likewise.
5861 * sysdeps/pthread/posix-timer.h: Likewise.
5862 * sysdeps/pthread/timer_create.c: Likewise.
5863 * sysdeps/pthread/timer_routines.c: Likewise.
5865 2004-10-01 Ulrich Drepper <drepper@redhat.com>
5867 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
5868 (__lll_mutex_timedlock_wait): Address futex correctly.
5870 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
5871 (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
5872 make sure 2 is stored in the futex and we looked at the old value.
5873 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
5874 (__lll_mutex_timedlock_wait): Likewise. Fix a few other problems
5875 which might very well made the code not working at all before.
5878 2004-09-28 Ulrich Drepper <drepper@redhat.com>
5880 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
5881 allow SIGSETXID to be sent.
5882 * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
5883 for SIGSETXID to be defined.
5884 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
5885 SIGSETXID cannot be blocked.
5887 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
5888 Add __extension__ to long long types.
5889 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5890 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5891 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5892 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5893 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
5894 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
5895 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5897 2004-09-25 Ulrich Drepper <drepper@redhat.com>
5899 * descr.h (struct pthread): Add stopped_start field.
5900 * sysdeps/pthread/createthread.c (create_thread): Set
5901 start_stopped flag in descriptor for new thread appropriately.
5902 * pthread_create.c (start_thread): Only take lock to be stopped on
5903 startup if stopped_start flag says so.
5905 2004-09-24 Ulrich Drepper <drepper@redhat.com>
5907 * pthread_create.c (__pthread_create_2_1): Remember whether thread
5908 is created detached and if yes, do not try to free the stack in case
5909 the thread creation failed.
5910 * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
5911 call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
5912 case there has been no error. [BZ #405]
5914 * pthread_create.c (start_thread): Don't wait for scheduler data
5915 etc to be set at the beginning of the function. The cancellation
5916 infrastructure must have been set up. And enable async
5917 cancellation before potentially going to sleep. [BZ #401]
5919 2004-09-20 Ulrich Drepper <drepper@redhat.com>
5921 * Versions: Remove exports for pthread_set*id_np functions.
5922 * sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes
5924 * Makefile: Don't build pthread_set*id code for now.
5926 2004-09-19 Ulrich Drepper <drepper@redhat.com>
5928 * sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for
5930 * allocatestack.c (__nptl_setxid): New function.
5931 * descr.h (struct xid_command): Define type.
5932 * init.c (pthread_functions): Add ptr__nptl_setxid initialization.
5933 (sighandler_setxid): New function.
5934 (__pthread_initialize_minimal): Register sighandler_setxid for
5936 * pt-allocrtsig.c: Update comment.
5937 * pthreadP.h: Define SIGSETXID. Declare __xidcmd variable.
5938 Declare __nptl_setxid.
5939 * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid.
5940 * sysdeps/pthread/pthread.h: Declare pthread_setgid_np,
5941 pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
5942 pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
5943 and pthread_setresuid_np.
5944 * pthread_setgid_np.c: New file.
5945 * pthread_setuid_np.c: New file.
5946 * pthread_setegid_np.c: New file.
5947 * pthread_seteuid_np.c: New file.
5948 * pthread_setregid_np.c: New file.
5949 * pthread_setreuid_np.c: New file.
5950 * pthread_setresgid_np.c: New file.
5951 * pthread_setresuid_np.c: New file.
5952 * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np,
5953 pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
5954 pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
5955 and pthread_setresuid_np.
5956 * Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid,
5957 pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid,
5958 pthread_setregid, and pthread_setresgid.
5960 2004-09-18 Ulrich Drepper <drepper@redhat.com>
5962 * allocatestack.c (allocate_stack): Return EAGAIN instead of
5963 ENOMEM when out of memory.
5965 2004-09-10 Roland McGrath <roland@redhat.com>
5968 * allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED]
5969 code, since we don't try to use the broken CLONE_STOPPED any more.
5970 * pthread_create.c (start_thread): Likewise.
5972 2004-09-15 Richard Henderson <rth@redhat.com>
5974 * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
5976 2004-09-01 David Mosberger <davidm@hpl.hp.com>
5978 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
5979 (__libc_unwind_longjmp): Delete macro and declare as function.
5980 * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
5981 __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
5983 * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
5984 * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
5985 * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
5987 2004-09-12 Ulrich Drepper <drepper@redhat.com>
5989 * sysdeps/pthread/pthread.h: Make rwlock prototypes available also
5991 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock
5992 types also for __USE_XOPEN2K.
5993 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
5994 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5995 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5996 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5997 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
5998 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5999 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
6002 2004-09-08 Ulrich Drepper <drepper@redhat.com>
6004 * sysdeps/pthread/pthread.h
6005 (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
6006 (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
6007 (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
6008 (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
6011 2004-09-07 Ulrich Drepper <drepper@redhat.com>
6013 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow
6014 PSEUDO to be used with . prefix.
6016 * sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once):
6017 Use atomic_increment instead of atomic_exchange_and_add.
6018 * sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once):
6020 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
6022 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
6025 * allocatestack.c (allocate_stack): Use atomic_increment_val
6026 instead of atomic_exchange_and_add.
6027 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise.
6028 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
6030 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
6033 * sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
6034 the initialization function might throw.
6036 2005-09-05 Richard Henderson <rth@redhat.com>
6038 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
6039 Move definition inside libpthread, libc, librt check. Provide
6040 definition for rtld.
6042 2004-09-02 Ulrich Drepper <drepper@redhat.com>
6044 * sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
6045 * sysdeps/i386/jmpbuf-unwind.h: Likewise
6046 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
6047 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
6048 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
6049 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
6050 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
6051 * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
6054 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
6055 Rename __data.__clock to __data.__nwaiters, make it unsigned int.
6056 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
6058 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
6059 Decrement __nwaiters. If pthread_cond_destroy has been called and
6060 this is the last waiter, signal pthread_cond_destroy caller and
6061 avoid using the pthread_cond_t structure after unlock.
6062 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6063 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6064 Read clock type from the least significant bits of __nwaiters instead
6066 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6067 * sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS.
6069 2004-08-31 Jakub Jelinek <jakub@redhat.com>
6072 * Makefile (tests): Add tst-cond20 and tst-cond21.
6073 * tst-cond20.c: New test.
6074 * tst-cond21.c: New test.
6075 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
6076 (pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make
6078 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
6080 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
6081 (pthread_cond_t): Likewise.
6082 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
6084 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6086 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
6088 * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove.
6089 (cond_nwaiters): New.
6091 * pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY
6092 if there are waiters not signalled yet.
6093 Wait until all already signalled waiters wake up.
6094 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement
6095 __nwaiters. If pthread_cond_destroy has been called and this is the
6096 last waiter, signal pthread_cond_destroy caller and avoid using
6097 the pthread_cond_t structure after unlock.
6098 (__pthread_cond_wait): Increment __nwaiters in the beginning,
6099 decrement it when leaving. If pthread_cond_destroy has been called
6100 and this is the last waiter, signal pthread_cond_destroy caller.
6101 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6102 Likewise. Read clock type from the least significant bits of
6103 __nwaiters instead of __clock.
6104 * pthread_condattr_setclock.c (pthread_condattr_setclock): Check
6105 whether clock ID can be encoded in COND_CLOCK_BITS bits.
6106 * pthread_condattr_getclock.c (pthread_condattr_getclock): Decode
6107 clock type just from the last COND_CLOCK_BITS bits of value.
6108 * pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters
6109 instead of __clock, just from second bit of condattr's value.
6111 2004-08-30 Jakub Jelinek <jakub@redhat.com>
6113 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include
6114 bits/wordsize.h. Make the header match i386 header when __WORDSIZE
6116 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
6118 2004-08-15 Roland McGrath <roland@frob.com>
6120 * pthread_atfork.c: Update copyright terms including special exception
6121 for these trivial files, which are statically linked into executables
6122 that use dynamic linking for the significant library code.
6124 2004-08-09 Jakub Jelinek <jakub@redhat.com>
6126 * DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to
6127 pthread_rwlock_rdlock.
6128 * sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
6129 Decrease __nr_readers_queued after reacquiring lock.
6130 * sysdeps/pthread/pthread_rwlock_timedrdlock
6131 (pthread_rwlock_timedrdlock): Likewise.
6132 Reported by Bob Cook <bobcook47@hotmail.com>.
6134 2004-08-11 Jakub Jelinek <jakub@redhat.com>
6136 * tst-rwlock14.c (tf): Read main thread handle from *ARG
6137 before pthread_barrier_wait.
6139 2004-08-07 Ulrich Drepper <drepper@redhat.com>
6141 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
6142 Remove unnecessary exception handling data.
6144 2004-07-23 Jakub Jelinek <jakub@redhat.com>
6147 * sysdeps/pthread/pthread.h (pthread_getcpuclockid): Use __clockid_t
6148 instead of clockid_t.
6150 2004-07-21 Roland McGrath <roland@redhat.com>
6152 * Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
6154 2004-07-19 Roland McGrath <roland@redhat.com>
6156 * tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
6158 2004-07-02 Roland McGrath <roland@redhat.com>
6160 * configure: Don't exit.
6162 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6164 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
6165 (__pthread_cond_timedwait): Check for invalid nanosecond in
6168 2004-07-07 Ulrich Drepper <drepper@redhat.com>
6170 * Makefile: Add rules to build and run tst-fini1.
6171 * tst-fini1.c: New file.
6172 * tst-fini1mod.c: New file.
6174 2004-07-05 Ulrich Drepper <drepper@redhat.com>
6176 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define NO_CANCELLATION
6177 if no cancellation support is needed.
6178 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
6179 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
6180 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
6181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
6182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
6183 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
6184 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
6185 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
6186 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
6188 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define __NR_futex
6189 only if not already defined.
6191 2004-07-05 Jakub Jelinek <jakub@redhat.com>
6193 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use
6194 constraint "m" instead of "0" for futex.
6196 * shlib-versions: Add powerpc64-.*-linux.*.
6198 2004-07-04 Jakub Jelinek <jakub@redhat.com>
6200 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
6201 (pthread_rwlock_timedrdlock): Use cmpq instead of cmpl to check
6203 * tst-rwlock14.c (do_test): Test for invalid tv_nsec equal to
6204 1 billion and 64-bit tv_nsec which is valid when truncated to 32
6207 2004-06-29 Roland McGrath <roland@redhat.com>
6209 * Banner: NPTL no longer has its own version number.
6210 * Makefile (nptl-version): Variable removed.
6211 * sysdeps/pthread/Makefile (CFLAGS-confstr.c): Set LIBPTHREAD_VERSION
6212 using $(version), the glibc version number.
6214 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6216 * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
6217 Fix branch offset for a PLT entry.
6218 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
6220 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
6222 * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
6224 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait):
6227 2004-06-28 Jakub Jelinek <jakub@redhat.com>
6229 * sysdeps/alpha/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define
6232 2004-06-28 Jakub Jelinek <jakub@redhat.com>
6234 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
6235 (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
6237 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
6238 (pthread_rwlock_timedrdlock): Likewise.
6240 2004-06-22 Jakub Jelinek <jakub@redhat.com>
6242 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
6243 Set __r7 to val, not mutex.
6245 2004-06-27 Ulrich Drepper <drepper@redhat.com>
6247 * Makefile: Add rules to build tst-rwlock14.
6248 * tst-rwlock14.c: New file.
6250 2004-06-24 Boris Hu <boris.hu@intel.com>
6252 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation
6254 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
6256 2004-06-19 Andreas Jaeger <aj@suse.de>
6258 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix
6259 assembler in last patch.
6261 2004-06-17 Ulrich Drepper <drepper@redhat.com>
6263 * sysdeps/pthread/pthread_cond_timedwait.c
6264 (__pthread_cond_timedwait): Also check for negativ nanoseconds.
6265 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6266 (__pthread_cond_timedwait): Check for invalid nanosecond in
6268 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6269 * tst-cond19.c: New file.
6270 * Makefile: Add rules to build and run tst-cond19.
6272 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
6274 * tst-context1.c (GUARD_PATTERN): Defined.
6275 (tst_context_t): Define struct containing ucontext_t & guard words.
6276 (ctx): Declare as an array of tst_context_t.
6277 (fct): Verify uc_link & guard words are still valid.
6278 (tf): Initialize guard words in ctx. Adjust ctx refs for new struct.
6280 2004-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6282 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6283 Add __data.__futex field, reshuffle __data.__clock.
6284 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
6285 (__pthread_cond_signal): Increment __futex at the same time as
6286 __wakeup_seq or __total_seq. Pass address of __futex instead of
6287 address of low 32-bits of __wakeup_seq to futex syscall.
6288 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
6289 (__pthread_cond_wait): Likewise. Pass __futex value from before
6290 releasing internal lock to FUTEX_WAIT.
6291 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
6292 (__pthread_cond_timedwait): Likewise.
6293 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
6294 (FUTEX_CMP_REQUEUE): Define.
6295 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6296 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6297 Pass __futex value from before the unlock and __futex address instead
6298 of address of low 32-bits of __wakeup_seq to futex syscall.
6299 Fallback to FUTEX_WAKE all on any errors.
6301 2004-06-08 Jakub Jelinek <jakub@redhat.com>
6303 * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix
6305 * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise.
6306 * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
6307 * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise.
6308 * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
6309 Likewise. Reported by Bob Cook <bobcook47@hotmail.com>.
6311 2004-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
6313 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap):
6314 Add memory clobber to inline assembly.
6315 (__lll_mutex_trylock): Likewise.
6316 (__lll_mutex_cond_trylock): Likewise.
6318 2004-06-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6320 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
6321 Pass val argument as 6th system call argument in %r7.
6323 2004-05-21 Jakub Jelinek <jakub@redhat.com>
6325 * Makefile (tests): Add tst-cond16.
6326 * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add.
6327 * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex.
6328 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
6329 Add __data.__futex field, reshuffle __data.__clock.
6330 * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S
6331 (__pthread_cond_signal): Increment __futex at the same time as
6332 __wakeup_seq or __total_seq. Pass address of __futex instead of
6333 address of low 32-bits of __wakeup_seq to futex syscall.
6334 * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S
6335 (__pthread_cond_wait): Likewise. Pass __futex value from before
6336 releasing internal lock to FUTEX_WAIT.
6337 * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S
6338 (__pthread_cond_timedwait): Likewise.
6339 * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S
6340 (FUTEX_CMP_REQUEUE): Define.
6341 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6342 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6343 Pass __futex value from before the unlock and __futex address instead
6344 of address of low 32-bits of __wakeup_seq to futex syscall.
6345 Fallback to FUTEX_WAKE all on any errors.
6346 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE):
6348 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6349 internally. Return non-zero if error, zero if success.
6350 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
6351 Add __data.__futex field, reshuffle __data.__clock.
6352 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE):
6354 (lll_futex_requeue): Add val argument, return 1 unconditionally
6356 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
6357 Add __data.__futex field, reshuffle __data.__clock.
6358 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE):
6360 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6361 internally. Return non-zero if error, zero if success.
6362 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
6363 (pthread_cond_t): Add __data.__futex field, reshuffle __data.__clock.
6364 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_CMP_REQUEUE):
6366 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6367 internally. Return non-zero if error, zero if success.
6368 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
6369 Add __data.__futex field, reshuffle __data.__clock.
6370 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_CMP_REQUEUE):
6372 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6373 internally. Return non-zero if error, zero if success.
6374 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
6375 Add __data.__futex field, reshuffle __data.__clock.
6376 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
6377 Add __data.__futex field, reshuffle __data.__clock.
6378 * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal):
6379 Increment __futex at the same time as __wakeup_seq or __total_seq.
6380 Pass address of __futex instead of address of low 32-bits of
6381 __wakeup_seq to futex syscall.
6382 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
6383 Pass __futex value from before releasing internal lock
6385 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6386 Likewise. Avoid unnecessary shadowing of variables.
6387 * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast):
6388 Set __futex to 2 * __total_seq. Pass __futex value from before the
6389 unlock and __futex address instead of address of low 32-bits of
6390 __wakeup_seq to futex_requeue macro, adjust for new return value
6392 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
6393 (__pthread_cond_signal): Increment __futex at the same time as
6394 __wakeup_seq or __total_seq. Pass address of __futex instead of
6395 address of low 32-bits of __wakeup_seq to futex syscall.
6396 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
6397 (__pthread_cond_wait): Likewise. Pass __futex value from before
6398 releasing internal lock to FUTEX_WAIT.
6399 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
6400 (__pthread_cond_timedwait): Likewise.
6401 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
6402 (FUTEX_CMP_REQUEUE): Define.
6403 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6404 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6405 Pass __futex value from before the unlock and __futex address instead
6406 of address of low 32-bits of __wakeup_seq to futex syscall.
6407 Fallback to FUTEX_WAKE all on any errors.
6409 2004-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6411 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_mutex_lock):
6412 Add nop to align the end of critical section.
6413 (lll_mutex_cond_lock, lll_mutex_timedlock): Likewise.
6415 2004-06-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6417 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6418 Add __broadcast_seq field.
6419 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Mark
6420 all waiters as woken with woken_seq and bump broadcast counter.
6421 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use new
6422 __broadcast_seq. Increment __woken_seq correctly when cleanuped.
6423 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
6424 Comment typo fixes. Avoid returning -ETIMEDOUT.
6426 2004-06-01 Ulrich Drepper <drepper@redhat.com>
6428 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6429 (__condvar_tw_cleanup): Fix access to saved broadcast_seq value.
6430 Reported by Kaz Kojima.
6432 2004-05-25 Jakub Jelinek <jakub@redhat.com>
6434 * sysdeps/unix/sysv/linux/aio_misc.h: New file.
6436 2004-05-21 Jakub Jelinek <jakub@redhat.com>
6438 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare
6439 __broadcast_seq with bc_seq after acquiring internal lock instead of
6442 2004-05-18 Jakub Jelinek <jakub@redhat.com>
6444 * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not
6446 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6447 (__pthread_cond_timedwait): Avoid returning -ETIMEDOUT.
6448 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
6449 (pthread_cond_t): Add __data.__broadcast_seq field.
6450 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
6451 (FRAME_SIZE): Define.
6452 (__pthread_cond_timedwait): Use it. Store/check broadcast_seq.
6454 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (FRAME_SIZE):
6456 (__pthread_cond_wait): Use it. Store/check broadcast_seq. Comment
6458 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
6459 (__pthread_cond_broadcast): Increment broadcast_seq. Comment typo
6462 2004-05-18 Ulrich Drepper <drepper@redhat.com>
6464 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add broadcast_seq entry.
6465 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
6466 Add __broadcast_seq field.
6467 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6468 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6469 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6470 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6471 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6472 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Mark
6473 all waiters as woken with woken_seq and bump broadcast counter.
6474 * sysdeps/pthread/pthread_cond_broadcast.c: Likewise.
6475 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use new
6476 __broadcast_seq field.
6477 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6478 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
6479 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
6480 * pthread_cond_init.c: Initialize __broadcast_seq field.
6481 * Makefile (tests): Add tst-cond17 and tst-cond18.
6482 Add .NOTPARALLEL goal.
6483 * tst-cond16.c: New file. From Jakub.
6484 * tst-cond17.c: New file. From Jakub.
6485 * tst-cond18.c: New file. From Jakub.
6487 2004-05-16 Ulrich Drepper <drepper@redhat.com>
6489 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Correct some
6492 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
6493 Parametrize frame size. Correct some unwind info.
6494 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6496 2004-05-04 Jakub Jelinek <jakub@redhat.com>
6498 * tst-stack3.c: Note testing functionality beyond POSIX.
6500 2004-05-04 Jakub Jelinek <jakub@redhat.com>
6502 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD):
6503 Change conditional from ifdef to if.
6505 2004-04-23 Jakub Jelinek <jakub@redhat.com>
6507 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SYSDEP_CANCEL_ERRNO,
6508 SYSDEP_CANCEL_ERROR): Define.
6511 2004-05-01 Jakub Jelinek <jakub@redhat.com>
6513 * Versions (libpthread): Remove __pthread_cleanup_upto@@GLIBC_PRIVATE.
6515 2004-04-20 Jakub Jelinek <jakub@redhat.com>
6517 * sem_unlink.c (sem_unlink): Change EPERM into EACCES.
6519 2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6521 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
6522 Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
6523 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove unneeded frame
6524 info. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
6526 2004-04-19 Ulrich Drepper <drepper@redhat.com>
6528 * sysdeps/unix/sysv/linux/timer_routines.c: Make sure helper
6529 thread has all signals blocked.
6531 2004-04-18 Andreas Jaeger <aj@suse.de>
6533 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h
6534 (SEM_VALUE_MAX): Add missing brace.
6536 2004-04-17 Jakub Jelinek <jakub@redhat.com>
6538 * sysdeps/pthread/Makefile (tests): Add tst-mqueue8x
6540 (CFLAGS-tst-mqueue8x.c): Add -fexceptions.
6541 * sysdeps/pthread/tst-mqueue8x.c: New test.
6542 * tst-cancel4.c: Update comment about message queues.
6544 * sysdeps/pthread/timer_gettime.c (timer_gettime): For expired timer
6545 return it_value { 0, 0 }.
6546 * sysdeps/pthread/timer_create.c (timer_create): Handle SIGEV_NONE
6548 * sysdeps/pthread/timer_routines.c (thread_expire_timer): Remove
6549 assertion for SIGEV_NONE.
6550 (thread_attr_compare): Compare all attributes, not just a partial
6553 2004-04-17 Jakub Jelinek <jakub@redhat.com>
6555 * sysdeps/unix/sysv/linux/mq_notify.c: Include stdlib.h.
6557 2004-04-17 Ulrich Drepper <drepper@redhat.com>
6559 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h (SEM_VALUE_MAX):
6560 Just use a plain number.
6561 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
6562 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
6563 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
6564 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
6565 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
6566 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
6567 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
6569 2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6571 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded
6573 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
6575 2004-04-15 Jakub Jelinek <jakub@redhat.com>
6577 * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h.
6578 (timer_helper_thread): Use inline rt_sigtimedwait syscall instead
6579 of calling sigwaitinfo.
6581 2004-04-16 Ulrich Drepper <drepper@redhat.com>
6583 * allocatestack.c (allocate_stack): Set reported_guardsize
6585 * pthread_getattr_np.c (pthread_getattr_np): Use
6586 reported_guardsize instead of guardsize.
6587 * descr.h (struct pthread): Add reported_guardsize field.
6589 2004-04-13 Jakub Jelinek <jakub@redhat.com>
6591 * sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.
6593 2004-04-12 Ulrich Drepper <drepper@redhat.com>
6595 * sysdeps/unix/sysv/linux/mq-notify.c: New file.
6597 2004-04-08 Jakub Jelinek <jakub@redhat.com>
6599 * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define.
6600 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h (MQ_PRIO_MAX): Define.
6601 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h (MQ_PRIO_MAX): Define.
6602 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h (MQ_PRIO_MAX): Define.
6603 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_MESSAGE_PASSING):
6605 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h
6606 (_POSIX_MESSAGE_PASSING): Define.
6607 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h
6608 (_POSIX_MESSAGE_PASSING): Define.
6609 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h
6610 (_POSIX_MESSAGE_PASSING): Define.
6612 2004-04-04 Ulrich Drepper <drepper@redhat.com>
6614 * tst-context1.c (fct): Check whether correct stack is used.
6616 2004-04-03 Ulrich Drepper <drepper@redhat.com>
6618 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
6619 matching constraints for asm mem parameters.
6621 * tst-clock2.c (tf): Don't define unless needed.
6623 2004-03-30 H.J. Lu <hongjiu.lu@intel.com>
6625 * Makefile (link-libc-static): Use $(static-gnulib) instead of
6628 2004-03-30 Ulrich Drepper <drepper@redhat.com>
6630 * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_deallocate_tsd.
6631 * init.c (pthread_functions): Add ptr__nptl_deallocate_tsd.
6632 * pthreadP.h: Declare __nptl_deallocate_tsd.
6633 * pthread_create.c (deallocate_tsd): Remove to __nptl_deallocate_tsd.
6636 * Makefile (tests): Add tst-tsd5.
6637 * tst-tsd5.c: New file.
6639 2004-03-29 Ulrich Drepper <drepper@redhat.com>
6641 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
6642 (__pthread_attr_setaffinity_old): Prepend GLIBC_ to version names
6643 is SHLIB_COMPAT check.
6644 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
6645 (__pthread_attr_getaffinity_old): Likewise.
6646 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
6647 (__pthread_getaffinity_old): Likewise.
6648 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6649 (__pthread_setaffinity_old): Likewise.
6651 2004-03-26 Ulrich Drepper <drepper@redhat.com>
6653 * allocatestack.c (_make_stacks_executable): Call
6654 _dl_make_stack_executable first.
6656 2004-03-24 Roland McGrath <roland@redhat.com>
6658 * sysdeps/i386/pthread_spin_lock.c (pthread_spin_lock): Use "m"
6659 constraint instead of "0".
6661 2004-03-24 Ulrich Drepper <drepper@redhat.com>
6663 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
6664 (lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock.
6666 * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Reorganize
6667 code to avoid warning.
6669 2004-03-24 Andreas Jaeger <aj@suse.de>
6671 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
6672 (__pthread_attr_setaffinity_old): Remove const.
6674 2004-03-23 Ulrich Drepper <drepper@redhat.com>
6676 * sysdeps/unix/sysv/linux/smp.h: New file.
6677 * sysdeps/unix/sysv/linux/sh/smp.h: New file.
6678 * init.c: Define __is_smp.
6679 (__pthread_initialize_minimal_internal): Call is_smp_system to
6680 initialize __is_smp.
6681 * pthreadP.h: Declare __is_smp.
6682 Define MAX_ADAPTIVE_COUNT is necessary.
6683 * pthread_mutex_init.c: Add comment regarding __spins field.
6684 * pthread_mutex_lock.c: Implement adaptive mutex type.
6685 * pthread_mutex_timedlock.c: Likewise.
6686 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
6687 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
6689 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6690 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6691 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6692 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
6693 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6694 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6695 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
6696 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define
6697 lll_mutex_cond_trylock.
6698 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6699 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
6700 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6701 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6702 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6703 Define BUSY_WAIT_NOP.
6704 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6705 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
6707 * tst-mutex5.c: Add support for testing adaptive mutexes.
6708 * tst-mutex7.c: Likewise.
6709 * tst-mutex5a.c: New file.
6710 * tst-mutex7a.c: New file.
6711 * Makefile (tests): Add tst-mutex5a and tst-mutex7a.
6713 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
6714 (__lll_mutex_timedlock_wait): Preserve r8 and r9 since the
6715 vgettimeofday call might destroy the content.
6717 * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use hint
6720 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
6721 No need to restrict type of ret. Make it int. Add comment.
6723 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
6724 Remove unnecessary setne instruction.
6726 2004-03-22 Jakub Jelinek <jakub@redhat.com>
6728 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
6729 (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
6730 * pthread_getattr_np.c (pthread_getattr_np): Double size every cycle.
6731 If realloc fails, break out of the loop.
6733 2004-03-20 Andreas Jaeger <aj@suse.de>
6735 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6736 (__pthread_setaffinity_old): Fix interface.
6737 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
6738 (__pthread_getaffinity_old): Likewise.
6740 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6741 (__pthread_setaffinity_new): Remove duplicate declaration.
6743 2004-03-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6745 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save
6746 the return value to a safe register.
6747 (CDISABLE): Set the function argument correctly.
6749 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6751 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XCHG): Define.
6752 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
6753 Rewrite so that only one locked memory operation per round is needed.
6754 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
6755 (pthread_barrier_wait): After wakeup, release lock only when the
6756 last thread stopped using the barrier object.
6757 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
6758 (__pthread_cond_wait): Don't store mutex address if the current
6759 value is ~0l. Add correct cleanup support and unwind info.
6760 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
6761 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
6762 (__pthread_cond_broadcast): Don't use requeue for pshared condvars.
6763 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Update comment.
6764 * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
6765 Add correct cleanup support and unwind info.
6766 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
6767 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Add unwind
6768 information for syscall wrappers.
6770 2004-03-18 Ulrich Drepper <drepper@redhat.com>
6772 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
6773 cpusetsize field, remove next.
6774 * sysdeps/pthread/pthread.h (pthread_getaffinity_np): Add new second
6775 parameter for size of the CPU set.
6776 (pthread_setaffinity_np): Likewise.
6777 (pthread_attr_getaffinity_np): Likewise.
6778 (pthread_attr_setaffinity_np): Likewise.
6779 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Implement
6780 interface change, keep compatibility code.
6781 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
6782 * sysdeps/unix/sysv/linux/pthread_getaffinity.c: Likewise.
6783 * sysdeps/unix/sysv/linux/pthread_setaffinity.c: Likewise.
6784 * pthreadP.h: Remove hidden_proto for pthread_getaffinity_np. Declare
6785 __pthread_getaffinity_np.
6786 * Versions: Add version for changed interfaces.
6787 * tst-attr3.c: Adjust test for interface change.
6788 * pthread_getattr_np.c: Query the kernel about the affinity mask with
6789 increasing buffer sizes.
6790 * pthread_attr_destroy.c: Remove unused list handling.
6791 * pthread_attr_init.c: Likewise.
6793 2004-03-17 Roland McGrath <roland@redhat.com>
6795 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing
6796 first argument to clock_getres so we ever enable kernel timers.
6798 2004-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6800 * init.c (nptl_version): Add __attribute_used__ to nptl_version.
6802 2004-03-12 Richard Henderson <rth@redhat.com>
6804 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate
6805 oldvalue from CENABLE to CDISABLE.
6807 2004-03-12 Ulrich Drepper <drepper@redhat.com>
6809 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
6810 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
6811 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
6812 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
6814 2004-03-11 Richard Henderson <rth@redhat.com>
6816 * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
6817 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID.
6818 * sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
6820 2004-03-11 Jakub Jelinek <jakub@redhat.com>
6822 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Use jgnl
6823 instead of jnl instruction to jump to SYSCALL_ERROR_LABEL.
6824 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S (__vfork): Likewise.
6826 2004-03-11 Jakub Jelinek <jakub@redhat.com>
6828 * forward.c (__pthread_cond_broadcast_2_0,
6829 __pthread_cond_destroy_2_0, __pthread_cond_init_2_0,
6830 __pthread_cond_signal_2_0, __pthread_cond_wait_2_0,
6831 __pthread_cond_timedwait_2_0): Use return 0 as defaction instead of 0.
6833 2004-03-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6835 * sysdeps/sh/tcb-offsets.sym: Add PID.
6836 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Properly handle PID cache.
6837 * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6839 2004-03-10 Ulrich Drepper <drepper@redhat.com>
6841 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: No need to
6842 include <sysdep-cancel.h>, vfork is no cancellation point.
6843 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
6844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: Likewise.
6845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: Likewise.
6847 2004-03-10 Jakub Jelinek <jakub@redhat.com>
6849 * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add
6851 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise.
6852 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork):
6854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
6856 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise.
6857 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise.
6858 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Include tcb-offsets.h.
6859 * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Use DO_CALL instead
6860 of DO_CALL_VIA_BREAK. Work around a gas problem.
6862 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: Remove.
6863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
6864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: New file.
6865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: New file.
6867 * sysdeps/powerpc/tcb-offsets.sym: Add PID.
6869 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S (__vfork): Don't use
6870 a local register for saving old PID. Negate PID in parent upon exit.
6872 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Include
6874 (__vfork): Negate PID if non-zero and set to INT_MIN if zero
6875 before syscall, set to the old value in the parent afterwards.
6876 * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: New file.
6877 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Include
6879 (__vfork): Negate PID if non-zero and set to INT_MIN if zero
6880 before syscall, set to the old value in the parent afterwards.
6881 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: New file.
6882 * sysdeps/s390/tcb-offsets.sym: Add PID.
6884 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Remove.
6885 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: New file.
6886 * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: New file.
6887 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: New file.
6888 * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: New file.
6889 * sysdeps/sparc/tcb-offsets.sym: Add PID.
6891 2004-03-10 Andreas Schwab <schwab@suse.de>
6893 * sysdeps/ia64/tcb-offsets.sym: Add PID.
6894 * sysdeps/unix/sysv/linux/ia64/vfork.S: New file.
6895 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Properly handle PID cache.
6897 2004-03-09 Jakub Jelinek <jakub@redhat.com>
6899 * tst-cancel20.c (do_one_test): Clear in_sh_body first.
6900 * tst-cancel21.c (do_one_test): Likewise.
6901 Reported by Gordon Jin <gordon.jin@intel.com>.
6903 2004-02-09 Jakub Jelinek <jakub@redhat.com>
6905 * sysdeps/unix/sysv/linux/i386/vfork.S (SAVE_PID): Negate PID
6906 if non-zero and set to INT_MIN if zero.
6907 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SAVE_PID): Likewise.
6908 * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Include tcb-offsets.h.
6909 (SAVE_PID, RESTORE_PID): Define.
6911 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: Include tcb-offsets.h.
6912 Use relative path to avoid including NPTL i386/vfork.S.
6913 (SAVE_PID, RESTORE_PID): Define.
6914 * sysdeps/unix/sysv/linux/raise.c: Include limits.h.
6915 (raise): Handle THREAD_SELF->pid INT_MIN the same as 0.
6916 * Makefile (tests): Add tst-vfork1, tst-vfork2, tst-vfork1x and
6918 (tests-reverse): Add tst-vfork1x and tst-vfork2x.
6919 * tst-vfork1.c: New test.
6920 * tst-vfork2.c: New test.
6921 * tst-vfork1x.c: New test.
6922 * tst-vfork2x.c: New test.
6924 2004-03-08 Ulrich Drepper <drepper@redhat.com>
6926 * sysdeps/i386/tcb-offsets.sym: Add PID.
6927 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
6928 * sysdeps/unix/sysv/linux/i386/vfork.S: New file.
6929 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
6931 2004-03-08 Steven Munroe <sjmunroe@us.ibm.com>
6933 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove leading tabs.
6935 2004-03-08 H.J. Lu <hongjiu.lu@intel.com>
6937 * sysdeps/s390/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
6940 2004-03-07 Ulrich Drepper <drepper@redhat.com>
6942 * sysdeps/ia64/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
6945 * tst-once4.c: Remove unnecessary macro definition.
6947 * tst-mutex7.c (do_test): Limit thread stack size.
6948 * tst-once2.c (do_test): Likewise.
6949 * tst-tls3.c (do_test): Likewise.
6950 * tst-tls1.c (do_test): Likewise.
6951 * tst-signal3.c (do_test): Likewise.
6952 * tst-kill6.c (do_test): Likewise.
6953 * tst-key4.c (do_test): Likewise.
6954 * tst-join4.c (do_test): Likewise.
6955 * tst-fork1.c (do_test): Likewise.
6956 * tst-context1.c (do_test): Likewise.
6957 * tst-cond2.c (do_test): Likewise.
6958 * tst-cond10.c (do_test): Likewise.
6959 * tst-clock2.c (do_test): Likewise.
6960 * tst-cancel10.c (do_test): Likewise.
6961 * tst-basic2.c (do_test): Likewise.
6962 * tst-barrier4.c (do_test): Likewise.
6964 2004-03-05 Ulrich Drepper <drepper@redhat.com>
6966 * sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate.
6968 2004-03-01 Ulrich Drepper <drepper@redhat.com>
6970 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6971 (__pthread_cond_timedwait): Optimize wakeup test.
6972 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
6973 (__pthread_cond_wait): Likewise.
6974 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
6975 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6978 2004-02-29 Ulrich Drepper <drepper@redhat.com>
6980 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
6981 (__lll_mutex_lock_wait): Optimize a bit more. Just one copy of
6982 the atomic instruction needed.
6983 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
6984 (__lll_mutex_lock_wait): Likewise.
6986 2004-02-28 Ulrich Drepper <drepper@redhat.com>
6988 * Makefile (tests): Add tst-cond14 and tst-cond15.
6989 * tst-cond14.c: New file.
6990 * tst-cond15.c: New file.
6992 2004-02-27 Ulrich Drepper <drepper@redhat.com>
6994 * sysdeps/pthread/createthread.c (create_thread): Remove use of
6995 CLONE_STOPPED. We cannot use SIGCONT which means CLONE_STOPPED
6996 needs to be implemented differently to be useful.
6998 2004-02-26 Ulrich Drepper <drepper@redhat.com>
7000 * pthread_attr_setschedparam.c: Don't test priority against limits
7001 here. Set ATTR_FLAG_SCHED_SET flag.
7002 * pthread_attr_setschedpolicy.c: Set ATTR_FLAG_POLICY_SET flag.
7003 * pthread_create.c (__pthread_create_2_1): Copy scheduling attributes
7004 from parent thread to child. If attribute is used and scheduling
7005 parameters are not inherited, copy parameters from attribute or
7006 compute them. Check priority value.
7007 * pthread_getschedparam.c: If the parameters aren't known yet get
7008 them from the kernel.
7009 * pthread_setschedparam.c: Set ATTR_FLAG_SCHED_SET and
7010 ATTR_FLAG_POLICY_SET flag for thread.
7011 * sysdeps/unix/sysv/linux/internaltypes.h: Define ATTR_FLAG_SCHED_SET
7012 and ATTR_FLAG_POLICY_SET.
7014 * sysdeps/pthread/createthread.c: Use tgkill if possible.
7016 * pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Don't
7017 fail if stack address hasn't been set. Just return 0.
7019 2004-02-25 Ulrich Drepper <drepper@redhat.com>
7021 * Makefile (tests-nolibpthread): Add tst-unload. Don't link with
7022 libpthread for the files in this list.
7023 (CFLAGS-tst-unload): Removed.
7024 * tst-unload.c (do_test): Don't use complete path for
7027 * Makefile: Define sonames for tst-tls5mod, tst-_res1mod1, and
7030 2004-02-22 Ulrich Drepper <drepper@redhat.com>
7032 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
7033 (__lll_mutex_lock_wait): Rewrite so that only one locked memory
7034 operation per round is needed.
7035 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
7036 (__lll_mutex_lock_wait): Likewise.
7038 2004-02-20 Ulrich Drepper <drepper@redhat.com>
7040 * tst-cancel9.c (cleanup): Don't print to stderr.
7042 2004-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7044 * sysdeps/sh/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Fix variable name.
7046 2004-02-20 Jakub Jelinek <jakub@redhat.com>
7048 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
7049 (__syscall_error_handler2): Call CDISABLE.
7050 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
7051 (__syscall_error_handler2): Call CDISABLE.
7053 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7054 Release lock before the loop, don't reacquire it.
7056 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define.
7058 2004-02-19 Andreas Schwab <schwab@suse.de>
7060 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7063 2004-02-18 Ulrich Drepper <drepper@redhat.com>
7065 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
7066 (pthread_barrier_wait): After wakeup, release lock only when the
7067 last thread stopped using the barrier object.
7068 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
7069 (pthread_barrier_wait): Likewise.
7070 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7072 * Makefile (tests): Add tst-barrier4.
7073 * tst-barrier4.c: New file.
7075 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7076 (__pthread_cond_timedwait): Perform timeout test while holding
7077 internal lock to prevent wakeup race.
7078 Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
7079 * sysdeps/pthread/pthread_cond_timedwait.c
7080 (__pthread_cond_timedwait): Likewise.
7081 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
7082 (__pthread_cond_timedwait): Likewise.
7084 2004-02-18 Jakub Jelinek <jakub@redhat.com>
7086 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S
7087 (__pthread_rwlock_unlock): Access WRITER as 32-bit value.
7088 * Makefile (tests): Add tst-rwlock13.
7089 * tst-rwlock13.c: New test.
7091 2004-02-16 Ulrich Drepper <drepper@redhat.com>
7093 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7094 (__condvar_tw_cleanup): Little optimization.
7095 Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
7097 2004-02-16 Steven Munroe <sjmunroe@us.ibm.com>
7099 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Replace libc with
7100 libpthread as "lib" parameter to SHLIB_COMPAT.
7101 (__novmx_siglongjmp): Fix typo in function name.
7102 (__novmx_longjmp): Fix typo in function name.
7104 2004-02-13 Ulrich Drepper <drepper@redhat.com>
7106 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a
7109 * sysdeps/generic/pt-longjmp.c: Moved to...
7110 * sysdeps/pthread/pt-longjmp.c: ...here. New file.
7112 2004-01-29 Steven Munroe <sjmunroe@us.ibm.com>
7114 * Makefile (libpthread-routines): Add pt-cleanup.
7115 * pt-longjmp.c: Removed.
7116 * pt-cleanup.c: Copied __pthread_cleanup_upto to here. New file.
7117 * sysdeps/generic/pt-longjmp.c: Copied longjmp to here. New file.
7118 * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
7119 Version longjmp, siglongjmp for GLIBC_2.3.4.
7120 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: New File.
7122 2004-02-13 Ulrich Drepper <drepper@redhat.com>
7124 * sysdeps/pthread/pthread_cond_timedwait.c
7125 (__pthread_cond_timedwait): Optimize. Drop internal lock earlier.
7126 Reuse code. Add __builtin_expects.
7128 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7129 (__pthread_cond_timedwait): Get internal lock in case timeout has
7130 passed before the futex syscall.
7131 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
7133 2004-01-20 Ulrich Drepper <drepper@redhat.com>
7135 * allocatestack.c: Pretty printing.
7137 * sysdeps/pthread/createthread.c (create_thread): Don't add
7138 CLONE_DETACHED bit if it is not necessary.
7140 2004-01-16 Ulrich Drepper <drepper@redhat.com>
7142 * pthread_getattr_np.c: Include ldsodefs.h.
7144 2004-01-16 Richard Henderson <rth@redhat.com>
7146 * allocatestack.c: Don't declare __libc_stack_end.
7147 * init.c (__pthread_initialize_minimal_internal): Likewise.
7148 * pthread_getattr_np.c (pthread_getattr_np): Likewise.
7150 2004-01-15 Richard Henderson <rth@redhat.com>
7152 * sysdeps/alpha/tls.h (tcbhead_t): Add private.
7153 (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
7154 TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
7155 GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
7156 (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
7157 (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
7158 (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
7159 * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
7161 2004-01-14 Ulrich Drepper <drepper@redhat.com>
7163 * init.c (pthread_functions): Make array const.
7165 2004-01-13 Ulrich Drepper <drepper@redhat.com>
7167 * allocatestack.c (__make_stacks_executable): Change interface.
7168 Check parameters. Pass parameter on to libc counterpart.
7169 * pthreadP.h: Change declaration.
7171 2004-01-13 Richard Henderson <rth@redhat.com>
7173 * pthread_attr_setstack.c (__old_pthread_attr_setstack): Use
7175 * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize):
7178 * sysdeps/alpha/Makefile: New file.
7179 * sysdeps/alpha/tcb-offsets.sym: New file.
7180 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
7181 Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.
7183 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
7186 2004-01-08 Jakub Jelinek <jakub@redhat.com>
7188 * Makefile (tests): Add tst-backtrace1.
7189 * tst-backtrace1.c: New test.
7191 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
7193 * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
7194 register as second parameter to the REGISTER macro.
7195 * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
7196 * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
7197 * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
7198 * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
7199 * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
7200 of thread register as second parameter to REGISTER macro in 64 case.
7202 2004-01-03 Ulrich Drepper <drepper@redhat.com>
7204 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
7205 (CFLAGS-getpid.o): Defined.
7206 (CFLAGS-getpid.os): Defined.
7208 2003-12-31 Ulrich Drepper <drepper@redhat.com>
7210 * pthread_getattr_np.c (pthread_getattr_np): Make sure stack info
7211 returned for main thread does not overlap with any other VMA.
7212 Patch by Jakub Jelinek.
7214 2003-12-29 Jakub Jelinek <jakub@redhat.com>
7216 * tst-raise1.c: Include stdio.h.
7218 2003-12-23 Jakub Jelinek <jakub@redhat.com>
7220 * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid
7221 setting with __ASSUME_TGKILL || defined __NR_tgkill.
7222 If pid is 0, set it to selftid.
7223 * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline.
7224 Don't set self->pid but self->tid. If self->pid == 0 and self->tid
7225 != 0, return self->tid without doing a syscall.
7226 * descr.h (struct pthread): Move pid field after tid.
7228 * Makefile (tests): Add tst-raise1.
7229 * tst-raise1.c: New file.
7231 2003-12-23 Roland McGrath <roland@redhat.com>
7233 * tst-oddstacklimit.c: New file.
7234 * Makefile (tests): Add it.
7235 (tst-oddstacklimit-ENV): New variable.
7237 * init.c (__pthread_initialize_minimal_internal): Round stack rlimit
7238 value up to page size for __default_stacksize.
7240 2003-12-21 Ulrich Drepper <drepper@redhat.com>
7242 * Makefile (tests): Add tst-eintr5.
7243 * tst-eintr5.c: New file.
7245 * eintr.c (eintr_source): Prevent sending signal to self.
7247 * tst-eintr2.c (tf1): Improve error message.
7249 2003-12-20 Ulrich Drepper <drepper@redhat.com>
7251 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define.
7252 * sysdeps/unix/sysv/linux/getpid.c: New file.
7253 * pthread_cancel.c: Add comment explaining use of PID field.
7254 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
7255 * pthread_getattr_np.c: Use abs() when comparing PID and TID fields.
7256 * sysdeps/unix/sysv/linux/fork.c: Negate PID field of parent
7257 temporarily to signal the field must not be relied on and updated
7259 * sysdeps/unix/sysv/linux/pt-raise.c: Handle case where PID is
7260 temporarily negative.
7261 * sysdeps/unix/sysv/linux/raise.c: Likewise.
7263 2003-12-19 Ulrich Drepper <drepper@redhat.com>
7265 * eintr.c (setup_eintr): Add new parameter. Pass to thread function.
7266 (eintr_source): If ARG != NULL, use pthread_kill.
7267 * tst-eintr1.c: Adjust for this change.
7268 * tst-eintr2.c: Likewise.
7269 * Makefile (tests): Add tst-eintr3 and tst-eintr4.
7270 * tst-eintr3.c: New file.
7271 * tst-eintr4.c: New file.
7273 2003-12-19 Jakub Jelinek <jakub@redhat.com>
7275 * libc-cancellation.c (__libc_enable_asynccancel): Don't cancel
7276 if CANCELSTATE_BITMASK is set.
7277 * sysdeps/pthread/librt-cancellation.c (__librt_enable_asynccancel):
7280 * Makefile (tests): Add tst-cancel22 and tst-cancel23.
7281 (tests-reverse): Add tst-cancel23.
7282 * tst-cancel22.c: New test.
7283 * tst-cancel23.c: New test.
7285 2003-12-18 Ulrich Drepper <drepper@redhat.com>
7287 * tst-eintr1.c: Better error messages.
7289 * Makefile (tests): Add tst-eintr2.
7290 * tst-eintr2.c: New file.
7292 2003-12-18 Jakub Jelinek <jakub@redhat.com>
7294 * Makefile (tests): Add tst-cancel21 and tst-cancelx21.
7295 (CFLAGS-tst-cancelx21.c): Set.
7296 * tst-cancel21.c: New test.
7297 * tst-cancelx21.c: New test.
7299 * unwind.c (FRAME_LEFT): Add adj argument. Subtract it from each
7301 (unwind_stop): Use _JMPBUF_CFA_UNWINDS_ADJ macro instead of
7302 _JMPBUF_CFA_UNWINDS. Adjust FRAME_LEFT invocations.
7303 * pt-longjmp.c: Include jmpbuf-unwind.h.
7304 (__pthread_cleanup_upto): Use _JMPBUF_UNWINDS_ADJ macro instead of
7305 _JMPBUF_UNWINDS. Adjust compared pointers.
7306 * init.c (__pthread_initialize_minimal_internal): Initialize
7307 pd->stackblock_size.
7308 * sysdeps/pthread/jmpbuf-unwind.h: Removed.
7309 * sysdeps/alpha/jmpbuf-unwind.h: New file.
7310 * sysdeps/i386/jmpbuf-unwind.h: New file.
7311 * sysdeps/powerpc/jmpbuf-unwind.h: New file.
7312 * sysdeps/s390/jmpbuf-unwind.h: New file.
7313 * sysdeps/sh/jmpbuf-unwind.h: New file.
7314 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file.
7315 * sysdeps/x86_64/jmpbuf-unwind.h: New file.
7316 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Include stdint.h.
7317 (_JMPBUF_CFA_UNWINDS): Remove.
7318 (_JMPBUF_CFA_UNWINDS_ADJ, _JMPBUF_UNWINDS_ADJ): Define.
7320 2003-12-12 Jakub Jelinek <jakub@redhat.com>
7322 * Makefile (tests): Add tst-cancel20 and tst-cancelx20.
7323 (CFLAGS-tst-cancelx20.c): Set.
7324 * tst-cancel20.c: New test.
7325 * tst-cancelx20.c: New test.
7327 2003-12-17 Ulrich Drepper <drepper@redhat.com>
7329 * init.c (__pthread_initialize_minimal_internal): Don't treat
7330 architectures with separate register stack special here when
7331 computing default stack size.
7333 2003-12-17 Roland McGrath <roland@redhat.com>
7335 * Makefile (tst-cancelx7-ARGS): New variable.
7336 Reportd by Greg Schafer <gschafer@zip.com.au>.
7338 2003-12-17 Jakub Jelinek <jakub@redhat.com>
7340 * Makefile (tests): Add tst-stack3. Depend on $(objpfx)tst-stack3-mem.
7341 (generated): Add tst-stack3.mtrace and tst-stack3-mem.
7342 (tst-stack3-ENV): Set.
7343 ($(objpfx)tst-stack3-mem): New.
7344 * tst-stack3.c: New test.
7346 2003-12-10 David Mosberger <davidm@hpl.hp.com>
7348 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init_EPILOG_BEGINS):
7349 Add unwind directives. Drop unused .regstk directive.
7350 (_fini_EPILOG_BEGINS): Add unwind directives.
7352 2003-12-11 Ulrich Drepper <drepper@redhat.com>
7354 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
7355 Assume parameter is a pointer.
7356 (lll_futex_wake): Likewise.
7357 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wait):
7359 (lll_futex_wake): Likewise.
7360 Reported by Boris Hu.
7361 * sysdeps/unix/sysv/linux/unregister-atfork.c
7362 (__unregister_atfork): Pass pointer to refcntr to lll_futex_wait.
7364 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Simplify a bit.
7366 2003-12-10 Ulrich Drepper <drepper@redhat.com>
7368 * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define.
7369 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call
7370 __rtld_lock_initialize for ld.so lock.
7371 Patch in part by Adam Li <adam.li@intel.com>.
7373 2003-12-02 David Mosberger <davidm@hpl.hp.com>
7375 * Makefile (link-libc-static): Remove -lgcc_eh---it's already mentioned
7376 in $(gnulib). Also, remove stale comment.
7378 2003-11-12 David Mosberger <davidm@hpl.hp.com>
7380 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Take
7381 advantage of new syscall stub and optimize accordingly.
7383 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__NR_futex): Rename
7384 from SYS_futex, to match expectations of
7385 sysdep.h:DO_INLINE_SYSCALL.
7386 (lll_futex_clobbers): Remove.
7387 (lll_futex_timed_wait): Rewrite in terms of DO_INLINE_SYSCALL.
7388 (lll_futex_wake): Likewise.
7389 (lll_futex_requeue): Likewise.
7390 (__lll_mutex_trylock): Rewrite to a macro, so we can include this
7391 file before DO_INLINE_SYSCALL is defined (proposed by Jakub
7393 (__lll_mutex_lock): Likewise.
7394 (__lll_mutex_cond_lock): Likewise.
7395 (__lll_mutex_timed_lock): Likewise.
7396 (__lll_mutex_unlock): Likewise.
7397 (__lll_mutex_unlock_force): Likewise.
7399 * sysdeps/ia64/tls.h: Move declaration of __thread_self up so it
7400 comes before the include of <sysdep.h>.
7401 (THREAD_SELF_SYSINFO): New macro.
7402 (THREAD_SYSINFO): Likewise.
7403 (INIT_SYSINFO): New macro.
7404 (TLS_INIT_TP): Call INIT_SYSINFO.
7406 * sysdeps/ia64/tcb-offsets.sym: Add SYSINFO_OFFSET.
7408 * sysdeps/pthread/createthread.c (create_thread): Use
7409 THREAD_SELF_SYSINFO and THREAD_SYSINFO instead of open code.
7410 * allocatestack.c (allocate_stack): Use THREAD_SYSINFO and
7411 THREAD_SELF_SYSINFO instead of open code.
7412 * sysdeps/i386/tls.h (THREAD_SELF_SYSINFO): New macro.
7413 (THREAD_SYSINFO): Likewise.
7415 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: New file.
7417 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Work around gas problem.
7419 2003-12-06 Ulrich Drepper <drepper@redhat.com>
7421 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Use .init_array
7422 instead of .init. Patch by David Mosberger.
7424 2003-11-30 Thorsten Kukuk <kukuk@suse.de>
7426 * sysdeps/pthread/configure.in: Remove broken declaration in C
7427 cleanup handling check.
7429 2003-11-30 Andreas Jaeger <aj@suse.de>
7431 * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
7432 * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
7435 2003-11-27 Jakub Jelinek <jakub@redhat.com>
7437 * sysdeps/unix/sysv/linux/internaltypes.h (ATTR_FLAG_OLDATTR): Define.
7438 * pthread_attr_destroy.c: Include shlib-compat.h.
7439 (__pthread_attr_destroy): Return immediately if ATTR_FLAG_OLDATTR
7440 is set in iattr->flags.
7441 * pthread_attr_init.c (__pthread_attr_init_2_0): Set ATTR_FLAG_OLDATTR.
7443 2003-11-21 Jakub Jelinek <jakub@redhat.com>
7445 * Makefile (distribute): Add tst-cleanup4aux.c.
7447 * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c
7450 2003-11-21 Ulrich Drepper <drepper@redhat.com>
7452 * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use
7453 pthread_cond_signal.
7455 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Don't
7456 store mutex address if the current value is ~0l.
7457 * sysdeps/pthread/pthread_cond_timedwait.c
7458 (__pthread_cond_timedwait): Likewise.
7459 * sysdeps/pthread/pthread_cond_broadcast.c
7460 (__pthread_cond_broadcast): Don't use requeue for pshared
7463 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
7464 (__pthread_cond_wait): Don't store mutex address if the current
7466 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
7467 (__pthread_cond_timedwait): Likewise.
7468 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
7469 (__pthread_cond_broadcast): Don't use requeue for pshared
7472 * pthread_cond_init.c (__pthread_cond_init): Initialize __mutex
7473 element with ~0l for pshared condvars, with NULL otherwise.
7475 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
7476 (__pthread_cond_wait): Don't store mutex address if the current
7478 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7479 (__pthread_cond_timedwait): Likewise.
7480 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
7481 (__pthread_cond_broadcast): Don't use requeue for pshared
7484 * Makefile: Add rules to build and run tst-cond12 and tst-cond13.
7485 * tst-cond12.c: New file.
7486 * tst-cond13.c: New file.
7488 2003-11-17 Ulrich Drepper <drepper@redhat.com>
7490 * sysdeps/pthread/configure.in: Make missing forced unwind support
7493 2003-11-11 Ulrich Drepper <drepper@redhat.com>
7495 * pthreadP.h: Don't declare __pthread_unwind as weak inside libpthread.
7497 2003-11-06 Ulrich Drepper <drepper@redhat.com>
7499 * Makefile: Add magic to clean up correctly.
7501 2003-11-05 Jakub Jelinek <jakub@redhat.com>
7503 * unwind.c (FRAME_LEFT): Define.
7504 (unwind_stop): Handle old style cleanups here.
7505 (__pthread_unwind): Handle old style cleanups only if
7506 !HAVE_FORCED_UNWIND.
7507 * Makefile (tests): Add tst-cleanup4 and tst-cleanupx4.
7508 (CFLAGS-tst-cleanupx4.c): Add -fexceptions.
7509 ($(objpfx)tst-cleanup4): Depend on $(objpfx)tst-cleanup4aux.o.
7510 ($(objpfx)tst-cleanupx4): Likewise.
7511 * tst-cleanup4.c: New test.
7512 * tst-cleanup4aux.c: New.
7513 * tst-cleanupx4.c: New test.
7515 2003-11-04 Ulrich Drepper <drepper@redhat.com>
7517 * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
7518 lll_mutex_*lock macros to skip atomic operations on some archs.
7520 2003-11-03 Ulrich Drepper <drepper@redhat.com>
7522 * sysdeps/pthread/tst-timer.c (main): Initialize
7523 sigev2.sigev_value as well.
7525 2003-10-15 Roland McGrath <roland@redhat.com>
7527 * sysdeps/pthread/configure.in: Barf if visibility attribute support
7529 * sysdeps/pthread/configure: Regenerated.
7531 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7533 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Completely revamp the
7534 locking macros. No distinction between normal and mutex locking
7536 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Rewrite mutex locking.
7537 Merge bits from lowlevelmutex.S we still need.
7538 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Remove.
7539 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
7540 * sysdeps/unix/sysv/linux/sh/not-cancel.h: New file.
7541 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Adjust for
7542 new mutex implementation.
7543 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
7544 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
7545 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
7546 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
7547 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
7548 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
7549 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
7550 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
7551 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
7552 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Also defined
7553 symbol for entry point to avoid cancellation.
7555 2003-10-07 Jakub Jelinek <jakub@redhat.com>
7557 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Backout 2003-10-02
7559 (SAVE_OLDTYPE_0): Fix a typo.
7561 2003-10-03 Ulrich Drepper <drepper@redhat.com>
7563 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
7564 Check __sigsetjmp return value. Reported by Daniel Jacobowitz.
7566 2003-10-02 Ulrich Drepper <drepper@redhat.com>
7568 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (DOCARGS_1): Use
7571 2003-10-02 Jakub Jelinek <jakub@redhat.com>
7573 * Makefile (tests): Add tst-cancel19.
7574 * tst-cancel19.c: New test.
7576 2003-10-02 Ulrich Drepper <drepper@redhat.com>
7578 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix saving and
7579 restoring of the old cancellation type.
7581 2003-09-30 Jakub Jelinek <jakub@redhat.com>
7583 * sysdeps/pthread/malloc-machine.h: Remove misleading comment.
7585 2003-09-27 Wolfram Gloger <wg@malloc.de>
7587 * sysdeps/pthread/malloc-machine.h: New file
7589 2003-09-24 Roland McGrath <roland@redhat.com>
7591 * allocatestack.c (__make_stacks_executable): Don't ignore return
7592 value from _dl_make_stack_executable.
7594 2003-09-24 Ulrich Drepper <drepper@redhat.com>
7596 * allocatestack.c (__make_stacks_executable): Also change
7597 permission of the currently unused stacks.
7599 * allocatestack.c (change_stack_perm): Split out from
7600 __make_stacks_executable.
7601 (allocate_stack): If the required permission changed between the time
7602 we started preparing the stack and queueing it, change the permission.
7603 (__make_stacks_executable): Call change_stack_perm.
7605 * Makefile: Build tst-execstack-mod locally.
7606 * tst-execstack-mod.c: New file.
7608 2003-09-23 Jakub Jelinek <jakub@redhat.com>
7610 * Makefile (tests): Only add tst-execstack if have-z-execstack is yes.
7612 2003-09-23 Roland McGrath <roland@redhat.com>
7614 * tst-execstack.c: New file.
7615 * Makefile (tests): Add it.
7616 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
7617 (LDFLAGS-tst-execstack): New variable.
7619 * allocatestack.c (allocate_stack): Use GL(dl_stack_flags) to decide
7620 whether to use PROT_EXEC for stack mmap.
7621 (__make_stacks_executable): New function.
7622 * pthreadP.h: Declare it.
7623 * init.c (__pthread_initialize_minimal_internal): Set
7624 GL(dl_make_stack_executable_hook) to that.
7626 2003-09-22 Ulrich Drepper <drepper@redhat.com>
7628 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Adjust for latest
7629 recommendation from AMD re avoidance of lock prefix.
7631 2003-09-22 Jakub Jelinek <jakub@redhat.com>
7633 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Use
7634 lll_futex_timed_wait instead of lll_futex_wait.
7635 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Removed.
7636 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Removed.
7637 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: Removed.
7638 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: Removed.
7639 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Removed.
7640 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Removed.
7641 * sysdeps/unix/sysv/linux/s390/sem_post.c: Removed.
7642 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Removed.
7643 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include atomic.h.
7644 Completely revamp the locking macros. No distinction between
7645 normal and mutex locking anymore.
7646 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
7647 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock_wait,
7648 __lll_lock_timedwait): Fix prototypes.
7649 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_lock_wait,
7650 __lll_lock_timedwait): Likewise.
7651 (lll_mutex_lock, lll_mutex_cond_lock): Use _val instead of _bool
7652 macros, add __builtin_expect.
7653 (lll_mutex_timedlock): Likewise. Fix return value.
7654 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Removed.
7655 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: Removed.
7656 * sysdeps/unix/sysv/linux/i386/i586/lowlevelmutex.S: Removed.
7657 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: Removed.
7658 * sysdeps/unix/sysv/linux/i386/i686/lowlevelmutex.S: Removed.
7659 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: Removed.
7660 * sysdeps/unix/sysv/linux/lowlevelmutex.c: Removed.
7661 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: Removed.
7663 2003-09-22 Ulrich Drepper <drepper@redhat.com>
7665 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
7666 (__lll_mutex_lock_wait): Minor optimization to avoid one atomic
7667 operation if possible.
7669 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks
7670 like jumping over the lock prefix.
7672 2003-09-21 Ulrich Drepper <drepper@redhat.com>
7674 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the
7675 locking macros. No distinction between normal and mutex locking
7677 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
7678 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
7679 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
7680 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Rewrite mutex
7681 locking. Merge bits from lowlevelmutex.S we still need.
7682 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
7683 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
7684 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Removed.
7685 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Removed.
7686 * Makefile (routines): Remove libc-lowlevelmutex.
7687 (libpthread-rountines): Remove lowlevelmutex.
7688 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Adjust
7689 for new mutex implementation.
7690 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
7691 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
7692 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
7693 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
7694 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
7696 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
7698 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
7699 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
7700 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise
7701 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
7702 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
7703 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
7704 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
7705 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
7707 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
7709 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
7710 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
7711 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
7713 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
7714 * sysdeps/pthread/pthread_cond_signal.c: Don't use requeue.
7716 2003-09-20 Ulrich Drepper <drepper@redhat.com>
7718 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't match memory
7719 in parameters of asm with output parameters.
7721 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change
7722 type of DECR parameter to int.
7723 * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
7725 2003-09-18 Jakub Jelinek <jakub@redhat.com>
7727 * tst-attr3.c (tf, do_test): Print stack start/end/size and
7728 guardsize for each thread.
7730 2003-09-17 Jakub Jelinek <jakub@redhat.com>
7732 * sysdeps/pthread/pthread.h (pthread_getattr_np): Clarify usage.
7733 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
7734 (pthread_attr_setaffinity_np): Handle cpuset == NULL.
7736 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
7737 (pthread_attr_getaffinity_np): Don't segfault if iattr->cpuset is
7739 * pthread_getattr_np.c: Set cpuset using pthread_getaffinity_np.
7740 * pthreadP.h (pthread_getaffinity_np): Add hidden_proto.
7741 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
7742 (pthread_getaffinity_np): Add hidden_def.
7744 * Makefile (tests): Add tst-attr3.
7745 * tst-attr3.c: New test.
7747 * sysdeps/i386/Makefile (CFLAGS-tst-align.c): Remove.
7749 2003-09-15 Jakub Jelinek <jakub@redhat.com>
7751 * sysdeps/i386/Makefile (CFLAGS-pthread_create.c,
7752 CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
7754 2003-09-17 Jakub Jelinek <jakub@redhat.com>
7756 * Makefile (CFLAGS-tst-align.c): Add $(stack-align-test-flags).
7757 * tst-align.c: Include tst-stack-align.h.
7758 (tf, do_test): Use TEST_STACK_ALIGN macro.
7760 2003-09-17 Ulrich Drepper <drepper@redhat.com>
7762 * pthread_attr_init.c (__pthread_attr_init_2_0): Remove unused
7765 2003-09-16 Ulrich Drepper <drepper@redhat.com>
7767 * pthread_getattr_np.c (pthread_getattr_np): Correctly fill in the
7768 stack-related values for the initial thread.
7770 2003-09-15 Jakub Jelinek <jakub@redhat.com>
7772 * Makefile (CFLAGS-pthread_once.c): Add $(uses-callbacks).
7774 2003-09-11 Ulrich Drepper <drepper@redhat.com>
7776 * pthread_mutex_lock.c: Minor code rearrangements.
7778 2003-09-05 Roland McGrath <roland@redhat.com>
7780 * pthread_create.c (__pthread_pthread_sizeof_descr): Removed.
7781 Instead, include ../nptl_db/db_info.c to do its magic.
7782 * pthread_key_create.c (__pthread_pthread_keys_max): Removed.
7783 (__pthread_pthread_key_2ndlevel_size): Likewise.
7784 * sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro.
7785 * sysdeps/i386/tls.h (DB_THREAD_SELF): New macro.
7786 * sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro.
7787 * sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro.
7788 * sysdeps/s390/tls.h (DB_THREAD_SELF): New macro.
7789 * sysdeps/sh/tls.h (DB_THREAD_SELF): New macro.
7790 * sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro.
7791 * sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro.
7792 * sysdeps/alpha/td_ta_map_lwp2thr.c: File removed.
7793 * sysdeps/generic/td_ta_map_lwp2thr.c: File removed.
7794 * sysdeps/i386/td_ta_map_lwp2thr.c: File removed.
7795 * sysdeps/ia64/td_ta_map_lwp2thr.c: File removed.
7796 * sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed.
7797 * sysdeps/s390/td_ta_map_lwp2thr.c: File removed.
7798 * sysdeps/sh/td_ta_map_lwp2thr.c: File removed.
7799 * sysdeps/sparc/td_ta_map_lwp2thr.c: File removed.
7800 * sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed.
7802 2003-09-08 Ulrich Drepper <drepper@redhat.com>
7804 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Change type
7805 of pthread_t to be compatible with LT.
7806 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
7807 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
7808 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7809 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7810 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
7811 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7812 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
7814 2003-09-04 Ulrich Drepper <drepper@redhat.com>
7816 * sysdeps/unix/sysv/linux/i386/not-cancel.h (fcntl_not_cancel): Define.
7818 2003-09-04 Jakub Jelinek <jakub@redhat.com>
7820 * unwind-forcedunwind.c: Move to...
7821 * sysdeps/pthread/unwind-forcedunwind.c: ...here.
7822 (pthread_cancel_init): Use ARCH_CANCEL_INIT if defined.
7823 * sysdeps/pthread/jmpbuf-unwind.h: New file.
7824 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: New file.
7825 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: New file.
7826 * unwind.c: Include jmpbuf-unwind.h.
7827 (unwind_stop): Use _JMPBUF_CFA_UNWINDS macro.
7829 2003-09-02 Jakub Jelinek <jakub@redhat.com>
7831 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
7832 * sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export
7833 pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3.
7834 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
7835 * sysdeps/unix/sysv/linux/alpha/Versions: New file.
7836 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
7837 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
7838 * pthread_attr_setstack.c (__old_pthread_attr_setstack): New function.
7839 (pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
7840 as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
7841 * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New
7843 (pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
7844 as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
7845 * Makefile (tests): Add tst-stack2.
7846 * tst-stack2.c: New test.
7847 * tst-stack1.c: Include limits.h and sys/param.h.
7848 (do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN).
7850 * pthread_condattr_setpshared.c: Include errno.h.
7851 (pthread_condattr_setpshared): Return EINVAL if pshared
7852 is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
7854 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also
7855 defined symbol for entry point to avoid cancellation.
7856 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
7858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
7860 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
7862 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h (PSEUDO):
7864 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
7866 * sysdeps/unix/sysv/linux/i386/not-cancel.h (__open_nocancel,
7867 __close_nocancel, __read_nocancel, __write_nocancel,
7868 __waitpid_nocancel): Add attribute_hidden. If not in libc.so,
7869 libpthread.so or librt.so, define to corresponding function
7870 without _nocancel suffix.
7871 * sysdeps/unix/sysv/linux/s390/not-cancel.h: New file.
7872 * sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file.
7873 * sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file.
7875 * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo.
7877 2003-09-02 Ulrich Drepper <drepper@redhat.com>
7879 * sysdeps/unix/sysv/linux/i386/not-cancel.h: New file.
7880 * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: New file.
7882 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Make sure the code
7883 in subsections has a symbol associated with it.
7885 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Also
7886 defined symbol for entry point to avoid cancellation.
7887 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Likewise.
7889 2003-09-01 Jakub Jelinek <jakub@redhat.com>
7891 * Makefile (tests): Add tst-tls5.
7892 (module-names): Add tst-tls5mod{,a,b,c,d,e,f}.
7893 ($(objpfx)tst-tls5mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes.
7894 ($(objpfx)tst-tls5): New.
7895 ($(objpfx)tst-tls6.out): Likewise.
7896 (tests): Depend on $(objpfx)tst-tls6.out.
7897 * tst-tls3.c: Include stdint.h and pthreaddef.h.
7898 (do_test): Check pthread_self () return value alignment.
7899 * tst-tls3mod.c: Include stdint.h and pthreaddef.h.
7900 (tf): Check pthread_self () return value alignment.
7901 * tst-tls5.c: New test.
7903 * tst-tls5mod.c: New.
7904 * tst-tls5moda.c: New.
7905 * tst-tls5modb.c: New.
7906 * tst-tls5modc.c: New.
7907 * tst-tls5modd.c: New.
7908 * tst-tls5mode.c: New.
7909 * tst-tls5modf.c: New.
7910 * tst-tls6.sh: New test.
7912 * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Add
7913 ptr___pthread_cond_timedwait and ptr___pthread_cond_timedwait_2_0.
7914 * init.c (pthread_functions): Initialize them.
7915 * forward.c (pthread_cond_timedwait@GLIBC_2.0,
7916 pthread_cond_timedwait@@GLIBC_2.3.2): New forwards.
7917 * Versions (libc): Export pthread_cond_timedwait@GLIBC_2.0,
7918 pthread_cond_timedwait@@GLIBC_2.3.2.
7920 2003-09-01 Jakub Jelinek <jakub@redhat.com>
7922 * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file.
7923 * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file.
7924 * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file.
7925 * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file.
7926 * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file.
7927 * sysdeps/unix/sysv/linux/alpha/Versions: New file.
7929 * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file.
7931 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define
7932 _POSIX_THREAD_PRIORITY_SCHEDULING.
7933 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
7935 2003-08-31 Ulrich Drepper <drepper@redhat.com>
7937 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock): Avoid
7938 nested function, use static inline function from libio.h.
7939 Code by Richard Henderson.
7941 * sysdeps/pthread/bits/libc-lock.h: Mark pthread_setcancelstate as
7944 2003-08-30 Jakub Jelinek <jakub@redhat.com>
7946 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
7947 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: New file.
7948 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: New file.
7949 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: New file.
7950 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: New file.
7951 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: New file.
7952 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: New file.
7953 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: New file.
7954 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: New file.
7955 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: New file.
7956 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: New file.
7957 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: New file.
7958 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
7959 * sysdeps/unix/sysv/linux/sparc/fork.c: New file.
7960 * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: New file.
7961 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: New file.
7962 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: New file.
7963 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: New file.
7964 * sysdeps/sparc/sparc32/pthread_spin_lock.c: New file.
7965 * sysdeps/sparc/sparc32/pthread_spin_trylock.c: New file.
7966 * sysdeps/sparc/sparc32/pthreaddef.h: New file.
7967 * sysdeps/sparc/sparc64/pthread_spin_lock.c: New file.
7968 * sysdeps/sparc/sparc64/pthread_spin_trylock.c: New file.
7969 * sysdeps/sparc/sparc64/pthread_spin_unlock.c: New file.
7970 * sysdeps/sparc/sparc64/pthreaddef.h: New file.
7971 * sysdeps/sparc/tls.h: New file.
7972 * sysdeps/sparc/tcb-offsets.sym: New file.
7973 * sysdeps/sparc/Makefile: New file.
7974 * sysdeps/sparc/td_ta_map_lwp2thr.c: New file.
7975 * init.c [__sparc__] (__NR_set_tid_address): Define.
7977 2003-08-29 Jakub Jelinek <jakub@redhat.com>
7979 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock,
7980 _IO_release_lock): Define.
7982 2003-08-29 Jakub Jelinek <jakuB@redhat.com>
7984 * tst-cancel4.c (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add
7985 sigemptyset before sigaddset. Reported by jreiser@BitWagon.com.
7987 2003-08-27 Ulrich Drepper <drepper@redhat.com>
7989 * sysdeps/pthread/pthread.h (pthread_exit): Remove __THROW.
7990 (__pthread_cleanup_class): Add missing return types of member
7993 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
7995 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
7996 (lll_mutex_unlock_force): Add memory barrier between store and futex
7999 2003-08-25 Ulrich Drepper <drepper@redhat.com>
8001 * tst-cancel4.c (do_test): Also unlink tempfname and remove
8002 tempmsg in first loop.
8004 2003-08-18 Ulrich Drepper <drepper@redhat.com>
8006 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8007 _POSIX_THREAD_PRIORITY_SCHEDULING.
8008 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
8010 2003-08-07 Jakub Jelinek <jakub@redhat.com>
8012 * sysdeps/pthread/bits/libc-lock.h [_LIBC && SHARED]
8013 (__rtld_lock_default_lock_recursive,
8014 __rtld_lock_default_unlock_recursive): Define.
8015 [_LIBC && SHARED] (__rtld_lock_lock_recursive,
8016 __rtld_lock_unlock_recursive): Define using
8017 GL(_dl_rtld_*lock_recursive).
8018 * init.c (__pthread_initialize_minimal_internal): Initialize
8019 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
8020 Lock GL(_dl_load_lock) the same number of times as
8021 GL(_dl_load_lock) using non-mt implementation was nested.
8023 * pthreadP.h (__pthread_cleanup_upto): Add hidden_proto.
8024 * pt-longjmp.c (__pthread_cleanup_upto): Add hidden_def.
8026 2003-08-06 Jakub Jelinek <jakub@redhat.com>
8028 * tst-cancel17.c (do_test): Make len2 maximum of page size and
8031 2003-08-07 Jakub Jelinek <jakub@redhat.com>
8033 * pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.
8035 2003-08-03 Jakub Jelinek <jakub@redhat.com>
8037 * sysdeps/pthread/createthread.c (do_clone): Move error handling
8038 to first syscall error check. Move syscall error check for tkill
8039 into __ASSUME_CLONE_STOPPED #ifdef.
8041 2003-08-02 Ulrich Drepper <drepper@redhat.com>
8043 * sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED
8044 is not defined, do explicit synchronization.
8045 (create_thread): Do not lock pd->lock here. If __ASSUME_CLONE_STOPPED
8046 is not defined also unlock pd->lock for non-debugging case in case
8048 * pthread_create.c (start_thread): Always get and release pd->lock
8049 if __ASSUME_CLONE_STOPPED is not defined.
8050 (start_thread_debug): Removed. Adjust users.
8051 * allocatestack.c (allocate_stack): Always initialize lock if
8052 __ASSUME_CLONE_STOPPED is not defined.
8053 * Makefile (tests): Add tst-sched1.
8054 * tst-sched1.c: New file.
8056 * sysdeps/pthread/createthread.c (do_clone): Only use
8057 sched_setschduler and pass correct parameters.
8059 2003-07-31 Jakub Jelinek <jakub@redhat.com>
8061 * sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
8062 pthread_attr_setstacksize): Change PTHREAD_STACK_SIZE to
8063 PTHREAD_STACK_MIN in comments.
8065 2003-07-31 Jakub Jelinek <jakub@redhat.com>
8067 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
8068 Shut up warnings if INTERNAL_SYSCALL_ERROR_P does not use its first
8070 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8071 * pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise.
8072 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Include pthreaddef.h.
8073 (__pthread_cleanup_upto): Fix prototype.
8074 (_longjmp_unwind): Adjust caller.
8075 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_timedlock):
8076 Change second argument to const struct pointer.
8077 * tst-sem8.c (main): Remove unused s2 and s3 variables.
8078 * tst-sem9.c (main): Likewise.
8079 * unwind.c: Include string.h for strlen prototype.
8081 2003-07-31 Ulrich Drepper <drepper@redhat.com>
8083 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
8084 (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined.
8085 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
8087 Patch by Nicholas Miell <nmiell@attbi.com>.
8089 2003-07-30 Jakub Jelinek <jakub@redhat.com>
8091 * init.c (__pthread_initialize_minimal_internal): Initialize
8092 GL(dl_init_static_tls).
8093 * pthreadP.h (__pthread_init_static_tls): New prototype.
8094 * allocatestack.c (init_one_static_tls, __pthread_init_static_tls):
8096 * Makefile (tests): Add tst-tls4.
8097 (modules-names): Add tst-tls4moda and tst-tls4modb.
8098 ($(objpfx)tst-tls4): Link against libdl and libpthread.
8099 ($(objpfx)tst-tls4.out): Depend on tst-tls4moda.so and
8101 * tst-tls4.c: New file.
8102 * tst-tls4moda.c: New file.
8103 * tst-tls4modb.c: New file.
8105 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
8107 * sysdeps/pthread/timer_create.c (timer_create): Call timer_delref
8108 before __timer_dealloc.
8109 * sysdeps/pthread/timer_routines.c (__timer_thread_find_matching):
8110 Don't call list_unlink.
8112 2003-07-29 Roland McGrath <roland@redhat.com>
8114 * Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules).
8116 2003-07-25 Jakub Jelinek <jakub@redhat.com>
8118 * tst-cancel17.c (do_test): Check if aio_cancel failed.
8119 Don't reuse struct aiocb A if it failed.
8120 Write fpathconf (fds[1], _PC_PIPE_BUF) + 2 bytes using aio_write,
8121 not just one byte, as that does not block.
8123 2003-07-22 Jakub Jelinek <jakub@redhat.com>
8125 * sysdeps/pthread/unwind-resume.c: New file.
8126 * sysdeps/pthread/Makefile (routines, shared-only-routines): Add
8127 unwind-resume in csu subdir.
8128 (CFLAGS-unwind-resume.c, CFLAGS-rt-unwind-resume.c): Compile with
8130 (librt-sysdep_routines, librt-shared-only-routines): Add
8132 * sysdeps/pthread/rt-unwind-resume.c: New file.
8133 * unwind-forcedunwind.c: New file.
8134 * Makefile (libpthread-routines): Add unwind-forcedunwind.
8135 (libpthread-shared-only-routines): Likewise.
8136 (CFLAGS-unwind-forcedunwind.c): Compile with exceptions.
8137 * pthreadP.h (pthread_cancel_init): New prototype.
8138 * pthread_cancel.c (pthread_cancel): Call pthread_cancel_init.
8140 * sysdeps/pthread/createthread.c (do_thread, create_thread): Make
8141 attr argument const struct pthread_attr *.
8143 * res.c (__res_state): Return __resp.
8144 * descr.h: Include resolv.h.
8145 (struct pthread): Add res field.
8146 * pthread_create.c: Include resolv.h.
8147 (start_thread): Initialize __resp.
8148 * Makefile (tests): Add tst-_res1.
8149 (module-names): Add tst-_res1mod1, tst-_res1mod2.
8150 ($(objpfx)tst-_res1mod2.so): Depend on $(objpfx)tst-_res1mod1.so.
8151 ($(objpfx)tst-_res1): Depend on $(objpfx)tst-_res1mod2.so and
8153 * tst-_res1.c: New file.
8154 * tst-_res1mod1.c: New file.
8155 * tst-_res1mod2.c: New file.
8157 2003-07-21 Ulrich Drepper <drepper@redhat.com>
8159 * sysdeps/pthread/createthread.c: Don't define CLONE_STOPPED.
8161 * Makefile: Define various *-no-z-defs variables for test DSOs
8162 which has undefined symbols.
8164 2003-07-21 Steven Munroe <sjmunroe@us.ibm.com>
8166 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
8167 Retry if the stwcx fails to store once_control.
8169 2003-07-20 Ulrich Drepper <drepper@redhat.com>
8171 * Makefile (libpthread-routines): Add pthread_attr_getaffinity and
8172 pthread_attr_setaffinity.
8173 * Versions [libpthread] (GLIBC_2.3.3): Likewise.
8174 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
8175 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
8176 * pthread_attr_destroy.c: Free cpuset element if allocated.
8177 * pthread_create.c: Pass iattr as additional parameter to
8179 * sysdeps/pthread/createthread.c: If attribute is provided and
8180 a new thread is created with affinity set or scheduling parameters,
8181 start thread with CLONE_STOPPED.
8182 * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
8183 pthread_attr_setaffinity.
8184 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
8187 2003-07-15 Ulrich Drepper <drepper@redhat.com>
8189 * tst-tcancel-wrappers.sh: lseek and llseek are not cancelation points.
8191 2003-07-14 Ulrich Drepper <drepper@redhat.com>
8193 * sysdeps/pthread/configure.in: Require CFI directives also for
8196 2003-07-15 Jakub Jelinek <jakub@redhat.com>
8198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
8201 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8203 * sysdeps/sh/tcb-offsets.sym: Add RESULT, TID, CANCELHANDLING and
8205 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use more
8206 registers as variables. Call __pthread_mutex_unlock_usercnt.
8207 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
8208 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Store TID
8209 not self pointer in __writer. Compare with TID to determine
8211 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
8212 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
8214 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
8216 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add cancellation support.
8217 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
8218 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Define all the nice
8219 macros also when compiling librt.
8221 2003-07-11 Jakub Jelinek <jakub@redhat.com>
8223 * Makefile (CFLAGS-pthread_once.c): Add -fexceptions
8224 -fasynchronous-unwind-tables.
8225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
8226 (PSEUDO): Add cfi directives.
8227 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO):
8229 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
8232 2003-07-08 Jakub Jelinek <jakub@redhat.com>
8234 * pthreadP.h (__pthread_unwind_next, __pthread_register_cancel,
8235 __pthread_unregister_cancel): Add prototypes and hidden_proto.
8236 * unwind.c (__pthread_unwind_next): Add hidden_def.
8237 * cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel):
8239 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
8240 Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
8241 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
8243 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
8244 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
8246 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use
8247 HIDDEN_JUMPTARGET to call __pthread_register_cancel,
8248 __pthread_unregister_cancel and __pthread_unwind_next.
8250 2003-07-04 Jakub Jelinek <jakub@redhat.com>
8252 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Use
8253 different symbol for the cancellation syscall wrapper and
8254 non-cancellation syscall wrapper.
8255 (PSEUDO_END): Define.
8257 2003-07-05 Richard Henderson <rth@redhat.com>
8259 * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end.
8260 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_wait,
8261 lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
8262 return actual return value from the syscall, not 0.
8264 2003-07-07 Ulrich Drepper <drepper@redhat.com>
8266 * descr.h (struct pthread): Add pid field.
8267 * allocatestack.c (allocate_stack): Initialize pid field in descriptor.
8268 (__reclaim_stacks): Likewise.
8269 * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined
8270 also check for PID of the signal source.
8271 (__pthread_initialize_minimal_internal): Also initialize pid field
8272 of initial thread's descriptor.
8273 * pthread_cancel.c: Use tgkill instead of tkill if possible.
8274 * sysdeps/unix/sysv/linux/fork.c: Likewise.
8275 * sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
8276 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
8277 * sysdeps/unix/sysv/linux/raise.c: Likewise.
8279 2003-07-05 Ulrich Drepper <drepper@redhat.com>
8281 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed.
8282 Fix use of parameter.
8283 (__libc_cleanup_pop): Likewise.
8285 2003-07-04 Ulrich Drepper <drepper@redhat.com>
8287 * init.c (sigcancel_handler): Change parameters to match handler
8288 for SA_SIGACTION. Check signal number and code to recognize
8289 invalid invocations.
8291 2003-07-03 Roland McGrath <roland@redhat.com>
8293 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr):
8294 Apply sizeof (struct pthread) bias to r13 value.
8296 2003-07-03 Ulrich Drepper <drepper@redhat.com>
8298 * sysdeps/pthread/configure.in: Require CFI directives.
8300 * sysdeps/pthread/librt-cancellation.c (__pthread_unwind): Remove
8302 * pthreadP.h (__pthread_unwind): Add hidden_proto if used in
8303 libpthread compilation.
8304 * unwind.c (__pthread_unwind): Add hidden_def.
8305 * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_unwind.
8307 2003-07-01 Ulrich Drepper <drepper@redhat.com>
8309 * libc-cancellation.c (__libc_cleanup_routine): Define.
8310 * sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define.
8311 (__pthread_cleanup_pop): Define.
8313 2003-07-01 Richard Henderson <rth@redhat.com>
8315 * sysdeps/alpha/elf/pt-initfini.c: New file.
8316 * sysdeps/alpha/pthread_spin_lock.S: New file.
8317 * sysdeps/alpha/pthread_spin_trylock.S: New file.
8318 * sysdeps/alpha/pthreaddef.h: New file.
8319 * sysdeps/alpha/td_ta_map_lwp2thr.c: New file.
8320 * sysdeps/alpha/tls.h: New file.
8321 * sysdeps/unix/sysv/linux/alpha/Makefile: New file.
8322 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: New file.
8323 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: New file.
8324 * sysdeps/unix/sysv/linux/alpha/createthread.c: New file.
8325 * sysdeps/unix/sysv/linux/alpha/fork.c: New file.
8326 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: New file.
8327 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
8328 * sysdeps/unix/sysv/linux/alpha/pthread_once.c: New file.
8329 * sysdeps/unix/sysv/linux/alpha/sem_post.c: New file.
8330 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: New file.
8332 2003-07-01 Ulrich Drepper <drepper@redhat.com>
8334 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Add correct
8335 cleanup support and unwind info.
8337 2003-06-30 Ulrich Drepper <drepper@redhat.com>
8339 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
8340 Use correct cleanup handler registration. Add unwind info.
8341 * sysdeps/unix/sysv/linux/unwindbuf.sym: New file.
8342 * sysdeps/unix/sysv/linux/Makefile: Add rule to build unwindbuf.h.
8343 * tst-once3.c: Add cleanup handler and check it is called.
8344 * tst-once4.c: Likewise.
8345 * tst-oncex3.c: New file.
8346 * tst-oncex4.c: New file.
8347 * Makefile: Add rules to build and run tst-oncex3 and tst-oncex4.
8349 2003-06-29 Ulrich Drepper <drepper@redhat.com>
8351 * sysdeps/pthread/configure.in: Check for C cleanup handling in gcc.
8353 2003-06-27 Ulrich Drepper <drepper@redhat.com>
8355 * tst-cancel4.c (tf_msgrcv): Use IPC_PRIVATE in msgget call.
8356 (tf_msgsnd): Likewise.
8358 * tst-cancel4.c (tf_msgrcv): Strengthen test against valid
8359 premature returns a bit more.
8361 2003-06-26 Ulrich Drepper <drepper@redhat.com>
8363 * sysdeps/pthread/librt-cancellation.c: Move __pthread_unwind
8364 definition to the front.
8366 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rename
8367 the cleanup functions to make the names unique. Fix dwarf opcode
8369 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Rename cleanup
8370 functions to make the names unique. Fix CFA offset for two blocks.
8372 2003-06-25 Ulrich Drepper <drepper@redhat.com>
8374 * sysdeps/pthread/pthread.h (class __pthread_cleanup_class): Add
8375 missing closing braces.
8376 Patch by Christophe Saout <christophe@saout.de>.
8378 2003-06-24 Roland McGrath <roland@redhat.com>
8380 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Typo fix.
8382 2003-06-24 Ulrich Drepper <drepper@redhat.com>
8384 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: New file.
8385 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: New file.
8387 * pthreadP.h: Declare __find_thread_by_id.
8388 * allocatestack.c [HP_TIMING_AVAIL]: Define __find_thread_by_id.
8389 * pthread_clock_gettime.c: Allow using other thread's clock.
8390 * pthread_clock_settime.c: Likewise.
8391 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
8392 * Makefile: Add rules to build and run tst-clock2.
8393 * tst-clock2.c: New file.
8395 2003-06-23 Ulrich Drepper <drepper@redhat.com>
8397 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rewrite
8398 to use exception-based cleanup handler.
8399 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8401 * tst-cond8.c (ch): Announce that we are done.
8403 * pthreadP.h (__pthread_mutex_cond_lock): Mark with internal_function.
8405 * tst-cancel17.c (tf): Retry aio_suspend in case of EINTR.
8406 Also test aio_suspend with timeout value.
8408 2003-06-22 Ulrich Drepper <drepper@redhat.com>
8410 * pthreadP.h: Mark __pthread_mutex_unlock_usercnt also hidden.
8411 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Add
8414 * pthreadP.h (__pthread_mutex_init_internal): Mark hidden.
8415 (__pthread_mutex_lock_internal): Likewise.
8416 (__pthread_mutex_unlock_internal): Likewise.
8417 (__pthread_mutex_unlock_usercnt): Declare.
8418 * pthread_mutex_destroy.c: Always fail if used in any way.
8419 * pthread_mutex_init.c: Update comment.
8420 * pthread_mutex_lock.c: If NO_INCR is not defined adjust __nusers.
8421 * pthread_mutex_timedlock.c: Adjust __nusers.
8422 * pthread_mutex_trylock.c: Adjust __nusers.
8423 * pthread_mutex_unlock.c: Old code is in __pthread_mutex_unlock_usercnt
8424 and public interfaces are wrapper with pass additional parameter.
8425 __pthread_mutex_unlock_usercnt does not adjust __nusers if second
8427 * tst-mutex8.c: New file.
8428 * Makefile (tests): Add tst-mutex8.
8429 * sysdeps/pthread/pthread_cond_timedwait.c: Call
8430 __pthread_mutex_unlock_usercnt.
8431 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
8432 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8433 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8434 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8435 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8436 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Define NO_INCR.
8437 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
8439 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8440 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8441 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8442 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
8443 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8445 * pthread_mutex_lock.c: Don't store THREAD_ID in __owner, use TID.
8446 * pthread_mutex_timedlock.c: Likewise.
8447 * pthread_mutex_trylock.c: Adjust __nusers.
8448 * pthread_mutex_unlock.c: Compare with TID not THREAD_ID.
8449 * tst-mutex9.c: New file.
8450 * Makefile (tests): Add tst-mutex9.
8451 * sysdeps/i386/tls.h: Remove THREAD_ID definition.
8452 * sysdeps/ia64/tls.h: Likewise.
8453 * sysdeps/powerpc/tls.h: Likewise.
8454 * sysdeps/s390/tls.h: Likewise.
8455 * sysdeps/sh/tls.h: Likewise.
8456 * sysdeps/x86_64/tls.h: Likewise.
8457 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
8458 Change type of __owner.
8459 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8460 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8461 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8462 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
8463 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8465 2003-06-19 Jakub Jelinek <jakub@redhat.com>
8467 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Move to...
8468 * sysdeps/unix/sysv/linux/sem_post.c: ...here.
8470 * sysdeps/unix/sysv/linux/sem_post.c: Move to...
8471 * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here. Pass nr + 1
8472 instead of nr to lll_futex_wake. Only set errno and return -1
8475 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_wait,
8476 lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
8477 return actual return value from the syscall, not 0.
8479 2003-06-18 Ulrich Drepper <drepper@redhat.com>
8481 * tst-cancel4.c (tf_msgsnd): Don't always use 100 as the type,
8482 find a random value.
8483 (tf_msgrcv): Likewise. Also don't report msgrcv returns if
8486 * sysdeps/unix/sysv/linux/timer_settime.c: Add prototype for
8487 compat_timer_settime.
8488 * sysdeps/unix/sysv/linux/timer_gettime.c: Add prototype for
8489 compat_timer_gettime.
8490 * sysdeps/unix/sysv/linux/timer_getoverr.c: Add prototype for
8491 compat_timer_getoverrun.
8492 * sysdeps/unix/sysv/linux/timer_delete.c: Add prototype for
8493 compat_timer_delete.
8495 * pthread_mutex_destroy.c (__pthread_mutex_destroy): For
8496 error-checking mutex detect busy mutexes.
8498 2003-06-17 Ulrich Drepper <drepper@redhat.com>
8500 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_mutex_lock):
8501 Add ax to clobber list.
8502 (lll_mutex_cond_lock): Likewise.
8503 (lll_mutex_unlock): Likewise.
8504 (lll_lock): Likewise.
8505 (lll_unlock): Likewise.
8507 * Makefile: Add rules to build and run tst-cancel18 and tst-cancelx18.
8508 * tst-cancel18.c: New file.
8509 * tst-cancelx18.c: New file.
8511 * tst-cancel4.c: Test connect, creat, msgrcv, msgsnd, sendmsg, sendto,
8514 * Makefile: Add rules to build and run tst-cancel17 and tst-cancel17x.
8515 * tst-cancel17.c: New file.
8516 * tst-cancelx17.c: New file.
8518 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
8519 * sysdeps/unix/sysv/linux/sigwait.c: New file.
8520 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
8522 * tst-cancel4.c: Test open, close, pread, pwrite, fsync, and msync.
8524 2003-06-16 Jakub Jelinek <jakub@redhat.com>
8526 * sysdeps/pthread/createthread.c (create_thread): Set
8527 header.multiple_threads unconditionally.
8528 * allocatestack.c (allocate_stack): Likewise.
8529 * descr.h (struct pthread): Add header.multiple_threads
8531 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (CENABLE, CDISABLE):
8532 Define for librt. #error if neither libpthread, libc nor librt.
8533 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (CENABLE, CDISABLE):
8535 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (CENABLE,
8536 CDISABLE): Likewise.
8537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (CENABLE,
8538 CDISABLE): Likewise.
8539 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (CENABLE,
8540 CDISABLE): Likewise.
8541 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (CENABLE,
8542 CDISABLE): Likewise. Access header.multiple_threads outside of
8543 libc and libpthread.
8544 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (CENABLE, CDISABLE):
8546 * sysdeps/x86_64/tls.h (tcbhead_t): Add multiple_threads.
8547 * sysdeps/x86_64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define.
8549 2003-06-17 Ulrich Drepper <drepper@redhat.com>
8551 * tst-cancel4.c: Add tests for the socket and signal functions, pause.
8552 Also test early cancellation before the thread reaches the cancellation
8555 * Makefile: Compile forward.c with exceptions.
8557 * sysdeps/unix/sysv/linux/sleep.c: New file.
8559 2003-06-16 Ulrich Drepper <drepper@redhat.com>
8561 * Makefile: Add CFLAGS definition to compile function wrappers
8562 duplicated from libc with exceptions.
8563 * tst-cancel4.c: Also check cancellation handlers.
8565 * Makefile: Add rules to build and run tst-cancel16 and
8566 tst-cancelx16. Add missing CFLAGS definitions.
8567 * tst-cancel16.c: New file.
8568 * tst-cancelx16.c: New file.
8570 2003-06-15 Ulrich Drepper <drepper@redhat.com>
8572 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
8573 (DL_SYSINFO_IMPLEMENTATION): Use CFI opcodes.
8574 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
8575 (DL_SYSINFO_IMPLEMENTATION): Likewise.
8577 * pthreadP.h (LIBC_CANCEL_ASYNC): Also define for librt.
8578 (LIBC_CANCEL_RESET): Likewise.
8579 Declare __librt_enable_asynccancel and __librt_disable_asynccancel.
8580 * sysdeps/pthread/Makefile (librt-sysdep_routines): Add
8582 (CFLAGS-libcrt-cancellation.c): Define.
8583 * sysdeps/pthread/librt-cancellation.c: New file.
8584 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define all the nice
8585 macros also when compiling librt.
8586 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
8587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
8588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8589 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
8590 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
8591 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
8592 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
8594 * sysdeps/unix/sysv/linux/timer_create.c: Add prototype for
8595 compat_timer_create.
8597 2003-06-14 Ulrich Drepper <drepper@redhat.com>
8599 * sysdeps/pthread/posix-timer.h (timespec_compare): Always inline.
8601 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
8603 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
8604 Add libc_hidden_def.
8606 2003-06-13 Roland McGrath <roland@redhat.com>
8608 * sysdeps/x86_64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Pass FS
8609 constant from <sys/reg.h> to ps_get_thread_area, not register contents.
8611 2003-06-11 Ulrich Drepper <drepper@redhat.com>
8613 * allocatestack.c (queue_stack): Always inline.
8614 * ptreadhP.h (__do_cancel): Likewise.
8616 2003-06-10 Jakub Jelinek <jakub@redhat.com>
8618 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): Fix
8621 2003-06-10 Ulrich Drepper <drepper@redhat.com>
8623 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
8624 (__pthread_cond_signal): Remove incorrect second addition for
8627 2003-06-09 Ulrich Drepper <drepper@redhat.com>
8629 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
8630 (__pthread_cond_signal): Use correct futex pointer in
8631 __lll_mutex_lock_wait call.
8633 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
8634 (__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.
8636 2003-06-08 Ulrich Drepper <drepper@redhat.com>
8638 * sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make
8640 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
8643 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Remove
8644 hand-written CFI generation code. Since ENTRY/END also initiated
8645 CFI frames this caused two CFI sets to be generated.
8647 2003-06-07 Ulrich Drepper <drepper@redhat.com>
8649 * cleanup_routine.c: New file.
8650 * Versions (libpthread) [GLIBC_2.3.3]: Add __pthread_cleanup_routine.
8651 * sysdeps/pthread/pthread.h: Add support for fully exception-based
8653 * Makefile (libpthread-routines): Add cleanup_routine.
8654 Add more CFLAGS variables to compile with exceptions. Add comments
8655 why which file needs unwind tables.
8656 (tests) [have-forced-unwind==yes]: Add tst-cancelx* and tst-cleanupx*
8658 * tst-cancelx1.c: New file.
8659 * tst-cancelx2.c: New file.
8660 * tst-cancelx3.c: New file.
8661 * tst-cancelx4.c: New file.
8662 * tst-cancelx5.c: New file.
8663 * tst-cancelx6.c: New file.
8664 * tst-cancelx7.c: New file.
8665 * tst-cancelx8.c: New file.
8666 * tst-cancelx9.c: New file.
8667 * tst-cancelx10.c: New file.
8668 * tst-cancelx11.c: New file.
8669 * tst-cancelx12.c: New file.
8670 * tst-cancelx13.c: New file.
8671 * tst-cancelx14.c: New file.
8672 * tst-cancelx15.c: New file.
8673 * tst-cleanupx0.c: New file.
8674 * tst-cleanupx0.expect: New file.
8675 * tst-cleanupx1.c: New file.
8676 * tst-cleanupx2.c: New file.
8677 * tst-cleanupx3.c: New file.
8679 * tst-cleanup0.c: Make standard compliant.
8680 * tst-cleanup1.c: Likewise.
8682 * sysdeps/unix/sysv/linux/sem_timedwait.c: Add cancellation support.
8683 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
8684 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
8685 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
8686 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
8687 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
8688 * sysdeps/i386/tcb-offsets.sym: Add RESULT, CANCELHANDLING, and
8690 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
8691 * tst-cancel12.c: New file.
8692 * tst-cancel13.c: New file.
8693 * tst-cancel14.c: New file.
8694 * tst-cancel15.c: New file.
8695 * Makefile (tests): Add tst-cancel12, tst-cancel13, tst-cancel14,
8698 * tst-cancel1.c: Add some comments.
8700 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Compute relative
8703 2003-06-06 Ulrich Drepper <drepper@redhat.com>
8705 * Makefile (CFLAGS-pthread_cancel.c): Define.
8707 2003-06-05 Ulrich Drepper <drepper@redhat.com>
8709 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_rwlock_t):
8710 Change type of __writer element to int.
8711 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8712 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8713 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8714 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8715 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8716 * sysdeps/i386/tcb-offsets.sym: Replace SELF entry with TID entry.
8717 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
8718 * pthread_rwlock_trywrlock.c: Store TID not self pointer in __writer.
8719 Compare with TID to determine deadlocks.
8720 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
8721 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
8722 * sysdeps/pthread/pthread_rwlock_timedwrlock.: Likewise.
8723 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
8724 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
8725 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
8727 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
8729 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
8730 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
8731 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
8733 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
8735 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
8736 * Makefile (tests): Add tst-rwlock12.
8737 * tst-rwlock12.c: New file.
8739 2003-06-05 Jakub Jelinek <jakub@redhat.com>
8741 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait,
8742 __lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid):
8743 Remove bogus hidden_proto.
8744 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
8746 * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock,
8747 lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise.
8748 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock,
8749 ___lll_mutex_timedlock): Likewise.
8751 2003-06-04 Ulrich Drepper <drepper@redhat.com>
8753 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
8754 (__pthread_cond_signal): Add some code to eventually handle
8757 2003-06-01 Ulrich Drepper <drepper@redhat.com>
8759 * Makefile (tests): Add tst-exec4.
8760 (tst-exec4-ARGS): Define.
8761 * tst-exec4.c: New file.
8763 2003-05-31 Ulrich Drepper <drepper@redhat.com>
8765 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
8766 Also fail if tv_nsec < 0.
8767 (__lll_timedwait_tid): Likewise.
8768 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
8769 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_timedwait_tid):
8771 * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_timedwait_tid):
8773 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (__lll_mutex_timedlock):
8775 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
8777 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_timedwait_tid):
8779 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_timedwait_tid):
8782 * Makefile (tests): Add tst-sem8 and tst-sem9.
8783 * tst-sem8.c: New file.
8784 * tst-sem9.c: New file.
8785 * sem_open.c: Fix creation of in_use record if the file exists but
8788 * posix-timer.h: Remove old, unused timer_id2ptr and timer_ptr2id
8791 * sysdeps/pthread/timer_create.c (timer_create): In case
8792 evp==NULL, assign timer ID to sival_ptr.
8794 * descr.h (struct pthread_unwind_buf): Change type of prev element to
8795 struct pthread_unwind_buf *.
8796 (struct pthread): Likewise for cleanup_jmp_buf element.
8798 * cleanup.c (__pthread_register_cancel): Add cast to avoid warning.
8799 * cleanup_defer.c (__pthread_register_cancel_defer): Likewise.
8800 * unwind.c (__pthread_unwind_next): Likewise.
8802 2003-05-30 Ulrich Drepper <drepper@redhat.com>
8804 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
8805 (lll_futex_timed_wait): Use int for futex value parameter.
8806 (lll_futex_wake): Likewise.
8807 (lll_futex_requeue): Likewise.
8809 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
8810 Replace one memory operation with one register operation.
8812 * tst-join4.c (do_test): Fix error message.
8814 * tst-rwlock6.c (do_test): Use correct format specifier.
8816 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
8817 (__lll_mutex_lock_wait): Replace one memory operation with one
8819 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S
8820 (__lll_mutex_lock_wait): Likewise.
8822 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
8823 (__lll_mutex_cond_lock): Add one to value parameter of
8824 __lll_lock_wait to reflect reality in the futex syscall.
8825 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
8826 (lll_mutex_cond_lock): Likewise.
8828 2003-05-30 Jakub Jelinek <jakub@redhat.com>
8830 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_cond_lock):
8832 (lll_mutex_cond_lock): Define.
8834 2003-05-29 Ulrich Drepper <drepper@redhat.com>
8836 * Makefile (tests): Add tst-signal6.
8837 * tst-signal6.c: New file.
8839 * sysdeps/unix/sysv/linux/s390/lowlevellock.h
8840 (__lll_mutex_unlock_force): New function
8841 (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
8843 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
8844 (__lll_mutex_unlock_force): New function.
8845 (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
8847 * tst-rwlock7.c (do_test): Use correct format specifier.
8849 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
8850 Find break parameter in correct asm argument.
8852 2003-05-27 Jakub Jelinek <jakub@redhat.com>
8854 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_clobbers):
8856 (lll_futex_requeue): Fix __o3 constraint, return negative errno if
8858 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
8860 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_REQUEUE,
8861 lll_futex_requeue, lll_mutex_unlock_force): Define.
8863 2003-05-30 Jakub Jelinek <jakub@redhat.com>
8865 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
8866 (pthread_cond_t): Add __mutex.
8867 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_REQUEUE,
8868 lll_futex_requeue, lll_mutex_unlock_force): Define.
8870 2003-05-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8872 * sysdeps/sh/tcb-offsets.sym: Define MUTEX_FUTEX.
8873 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
8875 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (SYSCALL_WITH_INST_PAD):
8877 (lll_futex_wait, lll_futex_wake): Define.
8878 * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: New file.
8879 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Try using
8880 FUTEX_REQUEUE instead of FUTEX_WAIT.
8881 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
8882 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Remember
8883 mutex which was used in condvar structure. Call
8884 __pthread_mutex_cond_lock instead of __pthread_mutex_lock_internal.
8885 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
8887 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Don't
8888 include tcb-offsets.h. Read wakeup value in locked region.
8889 Use the value of gbr register as THREAD_ID.
8890 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
8891 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
8892 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
8894 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove futex related
8897 2003-05-28 Ulrich Drepper <drepper@redhat.com>
8899 * sysdeps/pthread/pthread_cond_broadcast.c
8900 (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX.
8902 2003-05-26 Ulrich Drepper <drepper@redhat.com>
8904 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix
8905 typo in register name.
8906 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use parameters
8907 correctly. Actually use requeue. Little optimization.
8908 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Store
8909 mutex address early. Handle cancellation state as 32-bit value.
8910 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8911 Remove unnecessary label.
8913 2003-05-25 Ulrich Drepper <drepper@redhat.com>
8915 * sysdeps/pthread/pthread_cond_broadcast.c: Try using FUTEX_REQUEUE
8916 instead of FUTEX_WAIT.
8917 * sysdeps/pthread/pthread_cond_signal.c: Likewise.
8918 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
8919 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
8920 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
8921 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
8922 * sysdeps/pthread/pthread_cond_timedwait.c: Remember mutex which was
8923 used in condvar structure. Call __pthread_mutex_cond_lock instead
8924 of __pthread_mutex_lock_internal.
8925 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8926 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8927 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
8928 (__condvar_cleanup): Always call __pthread_mutex_cond_lock.
8929 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8930 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8931 * sysdeps/unix/sysv/linux/Makefile (libpthread-sysdep_routines):
8932 Add pthread_mutex_cond_lock.
8933 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add dep_mutex.
8934 * sysdeps/unix/sysv/linux/pthread_cond_mutex_lock.c: New file.
8935 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define
8936 lll_mutex_cond_lock.
8937 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
8938 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
8939 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
8941 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8942 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8944 * sysdeps/i386/tcb-offsets.sym: Define MUTEX_FUTEX.
8945 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
8947 * pthreadP.h: Declare __pthread_mutex_cond_lock.
8948 * pthread_mutex_lock.c: Define LLL_MUTEX_LOCK if not already defined.
8949 Use it instead of lll_mutex_lock. If __pthread_mutex_lock is a
8950 macro don't define aliases.
8952 * cancellation.c: Remove __pthread_enable_asynccancel_2.
8953 * pthreadP.h: Remove declaration of __pthread_enable_asynccancel_2.
8954 * sysdeps/pthread/pthread_cond_timedwait.c: Use
8955 __pthread_enable_asynccancel instead of __pthread_enable_asynccancel_2.
8956 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8957 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8958 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
8959 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8960 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8962 2003-05-17 Ulrich Drepper <drepper@redhat.com>
8964 * sem_open.c: Fix one endless loop. Implement correct semantics
8965 wrt opening the same semaphore more then once.
8966 * sem_close.c: Adjust for sem_open change.
8967 * semaphoreP.h: Include <semaphore.h>. Define struct inuse_sem.
8968 Declare __sem_mappings, __sem_mappings_lock, __sem_search.
8969 * Makefile (tests): Add tst-sem7.
8970 * tst-sem7.c: New file.
8972 2003-05-16 Roland McGrath <roland@redhat.com>
8974 * sysdeps/unix/sysv/linux/register-atfork.c (libc_freeres_fn): Fix
8975 uninitialized variable braino.
8977 2003-05-16 Ulrich Drepper <drepper@redhat.com>
8979 * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Correct
8980 test for syscall availability.
8982 * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime): Set
8983 __no_posix_timers to -1 if the syscalls don't exist.
8985 * pthread_join.c (pthread_join): Set tid field of the joined
8986 thread to -1. This isn't necessary but helps to recognize some
8987 error conditions with almost no cost.
8989 * allocatestack.c (FREE_P): Also negative values indicate an
8992 * unwind.c: Include <unistd.h>.
8994 2003-05-14 Ulrich Drepper <drepper@redhat.com>
8996 * Makefile ($(objpfx)$(multidir)): Add rule to create the directory.
8998 2003-05-14 Jakub Jelinek <jakub@redhat.com>
9000 * Makefile (crti-objs, crtn-objs): New variables.
9001 (omit-deps, extra-objs): Add crtn.
9002 ($(objpfx)libpthread.so): Depend on both crti and crtn
9003 and links to them in multidir.
9004 ($(objpfx)crtn.S, $(objpfx)crtn.o): New rules.
9006 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
9008 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9009 (lll_mutex_unlock): Use atomic_exchange_rel.
9011 2003-05-11 Ulrich Drepper <drepper@redhat.com>
9013 * cond-perf.c (cons): Add missing locking around setting of alldone.
9015 2003-05-10 Ulrich Drepper <drepper@redhat.com>
9017 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove futex
9019 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
9021 2003-05-09 Ulrich Drepper <drepper@redhat.com>
9023 * tst-sem6.c: New file.
9024 * Makefile (tests): Add tst-sem6.
9026 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (___lll_mutex_unlock):
9027 Use atomic_exchange_rel instead of atomic_exchange.
9028 * sysdeps/unix/sysv/linux/lowlevellock.c (lll_unlock_wake_cb):
9031 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Improve quality of
9032 code for lll_futex_wait and lll_futex_wake in static apps. Use
9033 vsyscall is possible.
9035 * sysdeps/unix/sysv/linux/pthread_getaffinity.c: New file.
9036 * sysdeps/unix/sysv/linux/pthread_setaffinity.c: New file.
9037 * sysdeps/pthread/pthread.h: Declare pthread_getaffinity_np and
9038 pthread_setaffinity_np.
9039 * Versions [libpthread] (GLIBC_2.3.3): Add pthread_getaffinity_np
9040 and pthread_setaffinity_np.
9041 * Makefile (libpthread-routines): Add pthread_getaffinity and
9042 pthread_setaffinity.
9044 * allocatestack.c (allocate_stack): If ARCH_RETRY_MMAP is defined,
9045 use it in case mmap to allocate the stack fails.
9046 * sysdeps/unix/sysv/linux/x86_64/Makefile: Don't define
9047 ARCH_MAP_FLAGS here.
9048 * sysdeps/x86_64/pthreaddef.h: Define ARCH_MAP_FLAGS and
9051 2003-05-08 Ulrich Drepper <drepper@redhat.com>
9053 * sysdeps/unix/sysv/linux/fork.c: Complete rewrite of the atfork
9054 handler implementation. It is now lockless in fork().
9055 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
9056 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
9057 * sysdeps/unix/sysv/linux/fork.h: Don't include <link.h>. Don't
9058 declare the __fork_*_lists.
9059 (struct fork_handler): Include pointers to all three functions.
9060 Add next, refcntr and need_signal elements.
9061 (__fork_handlers): New declaration.
9062 (__register_atfork_malloc): Remove declaration.
9063 (HAVE_register_atfork_malloc): Remove definition.
9064 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove
9065 __pthread_child_handler variable.
9066 (__libc_pthread_init): Use __register_atfork instead of explicitly
9068 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define lll_futex_wait
9070 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
9072 * unwind.c (unwind_cleanup): Print error message and then abort. This
9073 function must never be reached.
9075 * cond-perf.c: New file.
9077 2003-05-05 Ulrich Drepper <drepper@redhat.com>
9079 * sysdeps/i386/tls.h (TLS_INIT_TP): Include \n in error message.
9081 2003-05-04 Roland McGrath <roland@redhat.com>
9083 * Makefile ($(objpfx)../libc.so): New target.
9085 2003-05-02 Ulrich Drepper <drepper@redhat.com>
9087 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9088 (pthread_condattr_t): Size is only an int, don't use long for
9090 (pthread_mutexattr_t): Likewise.
9091 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9092 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
9093 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
9095 2003-05-01 Ulrich Drepper <drepper@redhat.com>
9097 * sysdeps/i386/tls.h: Define THREAD_ID.
9098 * sysdeps/ia64/tls.h: Likewise.
9099 * sysdeps/powerpc/tls.h: Likewise.
9100 * sysdeps/s390/tls.h: Likewise.
9101 * sysdeps/sh/tls.h: Likewise.
9102 * sysdeps/x86_64/tls.h: Likewise.
9103 * pthread_mutex_lock.c: Use THREAD_ID instead of THREAD_SELF to
9105 * pthread_mutex_timedlock.c: Likewise.
9106 * pthread_mutex_trylock.c: Likewise.
9107 * pthread_mutex_unlock.c: Likewise.
9108 * pthread_rwlock_trywrlock.c: Likewise.
9109 * sysdeps/pthread/pthread_rwlocklock_rdlock.c: Likewise.
9110 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
9111 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
9112 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
9114 * sysdeps/pthread/createthread.c (create_thread): Use CLONE_SYSVSEM
9117 2003-04-29 Jakub Jelinek <jakub@redhat.com>
9119 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
9120 (__SIZEOF_PTHREAD_COND_T): Define to 48.
9121 (pthread_rwlock_t): Add 16 bytes of pad instead of 8 before __flags.
9122 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
9123 Make __align long long instead of long.
9124 (pthread_rwlock_t): Formatting.
9125 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
9126 (pthread_rwlock_t): Formatting.
9127 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9128 (pthread_cond_t): Make __align long long instead of long.
9129 (pthread_rwlock_t): Move __flags field to the same position as in
9132 2003-04-30 Ulrich Drepper <drepper@redhat.com>
9134 * tst-rwlock6.c (do_test): Use correct printf format specifiers.
9135 * tst-rwlock7.c (do_test): Likewise.
9137 2003-04-26 Roland McGrath <roland@redhat.com>
9139 * Makefile ($(test-modules)): Depend on $(common-objpfx)shlib.lds.
9141 2003-04-22 Jakub Jelinek <jakub@redhat.com>
9143 * allocatestack.c (TLS_TPADJ): Add TLS_PRE_TCB_SIZE instead of
9144 sizeof (struct pthread).
9145 (allocate_stack): Subtract TLS_PRE_TCB_SIZE bytes instead of
9147 * sysdeps/powerpc/tls.h (TLS_INIT_TCB_SIZE, TLS_TCB_SIZE): Define
9149 (TLS_INIT_TCB_ALIGN, TLS_TCB_ALIGN): Define to alignment of
9151 (TLS_PRE_TCB_SIZE): Increase to cover tcbhead_t preceeded by pad
9153 (INSTALL_DTV, GET_DTV, THREAD_DTV): tcbhead_t is immediately before
9155 (TLS_INIT_TP, THREAD_SELF, INIT_THREAD_SELF): Don't add TLS_TCB_SIZE
9157 (NO_TLS_OFFSET): Define.
9158 * sysdeps/unix/sysv/linux/powerpc/createthread.c (TLS_VALUE): Don't
9159 add TLS_TCB_SIZE unnecessarily.
9161 2003-04-22 Roland McGrath <roland@redhat.com>
9163 * Makeconfig (shared-thread-library): Reverse link order to work
9166 2003-04-22 Ulrich Drepper <drepper@redhat.com>
9168 * semaphore.h: Fix typo in comment.
9170 2003-04-21 Ulrich Drepper <drepper@redhat.com>
9172 * sysdeps/pthread/sigfillset.c: New file.
9174 * init.c (__pthread_initialize_minimal): Don't block SIGTIMER.
9175 * pthreadP.h: Make SIGTIMER and SIGCANCEL the same.
9176 * sysdeps/pthread/pthread_sigmask.c: Remove handling of SIGTIMER.
9177 * sysdeps/pthread/sigaction.c: Likewise.
9178 * sysdeps/pthread/sigprocmask.c: New file.
9179 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): Define as
9181 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
9182 Block SIGTIMER. Also handle SI_TKILL events and terminate thread
9185 2003-04-19 Ulrich Drepper <drepper@redhat.com>
9187 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
9188 (DL_SYSINFO_IMPLEMENTATION): Add .eh_frame information.
9190 * sysdeps/unix/sysv/linux/unregister-atfork.c
9191 (__unregister_atfork): Don't free memory not allocated dynamically.
9193 * semaphore.h: Remove __THROW marker from cancellation points.
9194 * nptl/sysdeps/pthread/pthread.h: Likewise.
9196 2003-04-18 Ulrich Drepper <drepper@redhat.com>
9198 * sysdeps/pthread/pthread.h: Don't mark pthread_testcancel,
9199 pthread_cancel, pthread_setcancelstate, and pthread_setcanceltype with
9202 2003-04-16 Jakub Jelinek <jakub@redhat.com>
9204 * tst-cancel4.c (do_test): Use %zd instead of %d when printing cnt.
9206 2003-04-15 Roland McGrath <roland@redhat.com>
9208 * forward.c (__pthread_unwind): Tweak to avoid warning.
9210 2003-04-15 Ulrich Drepper <drepper@redhat.com>
9212 * pthreadP.h: Move THREAD_ATOMIC_* replacements to the top.
9214 2003-04-14 Ulrich Drepper <drepper@redhat.com>
9216 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't
9217 overflow CFA advance instructions.
9218 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9220 2003-04-14 Jakub Jelinek <jakub@redhat.com>
9222 * sysdeps/i386/tls.h: Rename LOCK to LOCK_PREFIX.
9223 * sysdeps/i386/pthread_spin_lock.c: Likewise.
9224 * sysdeps/x86_64/tls.h: Likewise. Define LOCK_PREFIX if not already
9227 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Use
9228 DW_CFA_advance_loc2 for .Laddl-.Lsubl.
9229 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
9230 DW_CFA_advance_loc for .Laddl-.Lsubl.
9232 2003-04-13 Ulrich Drepper <drepper@redhat.com>
9234 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Don't use
9235 position-independent unwind data for static libraries.
9236 Add missing unwind info. Add comments.
9238 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Add unwind info.
9239 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9240 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9241 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9243 2003-04-12 Ulrich Drepper <drepper@redhat.com>
9245 * Makefile: Make sure all cancellation points are compiled with
9246 exception and asynchronous unwind tables.
9248 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug
9249 which mishandles loading of global object addresses in PIC.
9250 (THREAD_SETMEM_NC): Likewise.
9252 2003-04-11 Ulrich Drepper <drepper@redhat.com>
9254 * pthread.h: Define new data structure for cleanup buffer. Declare
9255 new cleanup handler interfaces.
9256 * descr.h: Include <unwind.h> if necessary. Define pthread_unwind_buf.
9257 (struct pthread): Add cleanup_jmp_buf pointer. Define
9258 HAVE_CLEANUP_JMP_BUF and not HAVE_CANCELBUF.
9259 * pthreadP.h: Declare __pthread_unwind. Define __do_cancel to use
9260 it. Declare old cleanup handler installation functions.
9261 * cleanup.c: Rewrite. Install handler for unwind-based cleanup
9263 * cleanup_defer.c: Likewise.
9264 * cleanup_compat.c: New file. Old cleanup code.
9265 * cleanup_def_compat.c: New file. Old cleanup code.
9266 * pthread_create.c (start_thread): Initialize cleanup_jmp_buf element
9267 if own thread descriptor.
9268 * unwind.c: New file.
9269 * forward.c: Add __pthread_unwind.
9270 * init.c (pthread_functions): Add __pthread_unwind.
9271 * sysdeps/pthread/pthread-functions.s (struct pthread_functions):
9272 Add ptr___pthread_unwind.
9273 * Versions [GLIBC_2.3.3] (libpthread): Export new cleanup handling
9274 and unwind function.
9275 * Makefile (libpthread-routines): Add cleanup_compat,
9276 cleanup_def_compat, and unwind. Define CFLAGS to enable unwind
9277 table generation if necessary.
9278 * version.c: Record whether unwind support is compiled in.
9279 * sysdeps/pthread/configure.in: Add checks for unwind unterfaces.
9280 * sysdeps/pthread/bits/libc-lock.h: Add prototypes of the old cleanup
9282 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add quite a bit of
9283 complication to generate unwind information for syscall wrappers.
9284 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
9285 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
9286 __cleanup_fct_attribute.
9288 * Makefile: Add rules to build and run tst-cleanup0.
9289 * tst-cleanup0.c: New file.
9290 * tst-cleanup0.expect: New file.
9292 * pthread_create.c (deallocate_tsd): Don't take parameter. Adjust
9293 caller. Optimize to avoid often unecessary local variable.
9295 2003-04-11 Roland McGrath <roland@redhat.com>
9297 * Makefile ($(objpfx)multidir.mk): New target, generated makefile that
9298 sets variable `multidir'; include that.
9299 (generated): Add it.
9300 ($(objpfx)$(multidir)/crti.o): New target.
9301 [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it.
9303 2003-04-11 Ulrich Drepper <drepper@redhat.com>
9305 * tst-attr2.c (do_test): Add cast to avoid warning.
9306 * tst-mutex4.c (do_test): Likewise.
9308 2003-04-10 Ulrich Drepper <drepper@redhat.com>
9310 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset CPU clocks
9313 2003-04-09 Ulrich Drepper <drepper@redhat.com>
9315 * Makefile (tests): Add tst-detach1.
9316 * tst-detach1.c: New file.
9318 2003-04-08 Ulrich Drepper <drepper@redhat.com>
9320 * sysdeps/pthread/pthread.h: Remove duplicate
9321 pthread_cleanup_{push,pop} definitions.
9323 * tst-barrier2.c: Eliminate warnings.
9324 * tst-cancel4.c: Likewise.
9325 * tst-cond4.c: Likewise.
9326 * tst-cond6.c: Likewise.
9327 * tst-detach1.c: Likewise.
9328 * tst-rwlock4.c: Likewise.
9329 * tst-rwlock6.c: Likewise.
9330 * tst-rwlock7.c: Likewise.
9331 * tst-sem3.c: Likewise.
9332 * tst-spin2.c: Likewise.
9333 * tst-umask1.c: Likewise.
9335 2003-04-07 Ulrich Drepper <drepper@redhat.com>
9337 * pthread_detach.c (pthread_detach): Fix test for invalid TID.
9339 2003-04-06 Ulrich Drepper <drepper@redhat.com>
9341 * descr.h (struct pthread): Move cancelhandling member to the front.
9343 2003-04-05 Ulrich Drepper <drepper@redhat.com>
9345 * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare,
9346 malloc_parent, and malloc_child statically.
9347 (__register_atfork_malloc): New function.
9348 (free_mem): Don't free any of the malloc_* variables on the list.
9349 * sysdeps/unix/sysv/linux/fork.h: Declare __register_atfork_malloc.
9350 Define HAVE_register_atfork_malloc.
9352 2003-04-04 Ulrich Drepper <drepper@redhat.com>
9354 * sysdeps/pthread/createthread.c (create_thread): Add some more
9355 comments explaining when to set multiple_threads and when not.
9357 * pthreadP.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
9358 THREAD_ATOMIC_BIT_SET if not already defined.
9359 * sysdeps/i386/tls.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
9360 THREAD_ATOMIC_BIT_SET:
9361 * sysdeps/x86_64/tls.h: Likewise.
9362 * cleanup_defer.c (_pthread_cleanup_push_defer): Rewrite to use
9363 THREAD_ATOMIC_CMPXCHG_VAL.
9364 (_pthread_cleanup_pop_restore): Likewise.
9365 * cancellation.c (__pthread_enable_asynccancel): Likewise.
9366 (__pthread_enable_asynccancel_2): Likewise.
9367 (__pthread_disable_asynccancel): Likewise.
9368 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
9369 (__libc_disable_asynccancel): Likewise.
9370 * init.c (sigcancel_handler): Likewise.
9371 * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise.
9372 * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise.
9374 2003-04-03 Ulrich Drepper <drepper@redhat.com>
9376 * init.c (sigcancel_handler): Don't set EXITING_BIT here.
9377 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
9378 * pthreadP.h (__do_cancel): Set EXITING_BIT here.
9379 * Makefile (tests): Add tst-cancel11.
9380 * tst-cancel11.c: New file.
9382 2003-04-01 Ulrich Drepper <drepper@redhat.com>
9384 * pthread_create.c (deallocate_tsd): Clear/free memory after the last
9385 round, not the first. Use specific_used flag instead of local
9386 found_nonzero variable. Use THREAD_[SG]ETMEM where possible.
9387 (__free_tcb): Don't call deallocate_tsd here.
9388 (start_thread): Call deallocate_tsd here.
9389 * pthread_setspecific.c: Set specific_used flag really only when
9391 * Makefile (tests): Add tst-tsd3.c and tst-tsd4.
9392 * tst-tsd3.c: New file.
9393 * tst-tsd4.c: New file.
9395 2003-03-31 Ulrich Drepper <drepper@redhat.com>
9397 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock):
9398 Use atomic_exchange_and_add instead of __lll_add.
9399 (__lll_mutex_timedlock): Likewise.
9400 Patch by Ian Wienand.
9402 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
9404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
9405 (SINGLE_THREAD_P): Fix typo.
9406 * tst-cancel-wrappers.sh: Handle '.'ed symbols.
9408 2003-03-31 Ulrich Drepper <drepper@redhat.com>
9410 * Makefile (tests): Add tst-align.
9411 * tst-align.c: New file.
9412 * sysdeps/i386/Makefile: Define CFLAGS-tst-align.
9414 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called
9417 * tst-tsd2.c: Add casts to avoid warnings.
9419 2003-03-30 Ulrich Drepper <drepper@redhat.com>
9421 * descr.h (struct pthread): Move most often used elements to the front.
9423 2003-03-29 Ulrich Drepper <drepper@redhat.com>
9425 * Makefile (libpthread-routines): Add pthread_atfork.
9426 (libpthread-static-only-routines): Add pthread_atfork.
9428 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9430 * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
9432 (INSTALL_DTV): Add parens.
9433 (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC):
9434 Use passed descr instead of THREAD_SELF.
9435 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S
9436 (__lll_mutex_timedlock_wait): Correct expected value after
9438 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S:
9439 Release lock before waking up the waiters.
9440 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit
9441 criteria. Reorderstruct passed to cleanup handler. Fix
9442 handling of cancellation and failung pthread_mutex_unlock call.
9443 Use __pthread_enable_asynccancel_2 instead of
9444 __pthread_enable_asynccancel.
9445 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
9446 Return result of lock re-get if it fails.
9447 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument
9448 for __pthread_cleanup_push.
9449 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix
9450 completely broken rwlock implementation.
9451 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
9452 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
9453 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
9454 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
9455 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
9456 * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use
9457 versioned_symbol macro.
9458 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro.
9459 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
9461 2003-03-27 Ulrich Drepper <drepper@redhat.com>
9463 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare
9464 __timer_helper_thread. Declare __start_helper_thread, __helper_once,
9466 (struct timer): Remove th and bar field.
9467 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove
9468 debugging code. Create only one helper thread.
9469 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill
9471 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
9472 Renamed. Define statically. Use thread info from siginfo.
9473 (__helper_once): New variable.
9474 (__helper_tid): New variable.
9475 (__reset_helper_control): New function.
9476 (__start_helper_thread): New function.
9478 * pthread_create.c (start_thread): Don't use setjmp inside
9479 __builtin_expect to work around gcc bug.
9481 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
9482 timer_delete syscall fails, but not with ENOSYS, set
9485 * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
9486 (timer_settime): Fix typo.
9487 * sysdeps/unix/sysv/linux/timer_getoverr.c
9488 [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise.
9490 2003-03-27 Jakub Jelinek <jakub@redhat.com>
9492 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
9493 offset of cleanupbuf.__prev.
9495 2003-03-26 Jakub Jelinek <jakub@redhat.com>
9497 * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
9500 2003-03-26 Ulrich Drepper <drepper@redhat.com>
9502 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP ==
9503 NULL provide default definition to syscall.
9505 2003-03-25 Roland McGrath <roland@redhat.com>
9507 * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
9508 (timer_id2ptr): Fix typo.
9510 2003-03-25 Ulrich Drepper <drepper@redhat.com>
9512 * pthreadP.h: Define SIGCANCEL and SIGTIMER.
9513 * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition.
9514 * sysdeps/ia64/pthreaddef.h: Likewise.
9515 * sysdeps/powerpc/pthreaddef.h: Likewise.
9516 * sysdeps/s390/pthreaddef.h: Likewise.
9517 * sysdeps/sh/pthreaddef.h: Likewise.
9518 * sysdeps/x86_64/pthreaddef.h: Likewise.
9519 * init.c (__pthread_initialize_minimal): Block SIGTIMER.
9520 * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from
9522 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
9523 SIGTIMER is not unblocked.
9524 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more
9526 * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to
9528 * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just
9529 pass pointer through as ID.
9530 * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed.
9531 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file.
9532 * sysdeps/unix/sysv/linux/timer_create.c: New file.
9533 * sysdeps/unix/sysv/linux/timer_delete.c: New file.
9534 * sysdeps/unix/sysv/linux/timer_getoverr.c: New file.
9535 * sysdeps/unix/sysv/linux/timer_gettime.c: New file.
9536 * sysdeps/unix/sysv/linux/timer_routines.c: New file.
9537 * sysdeps/unix/sysv/linux/timer_settime.c: New file.
9538 * sysdeps/unix/sysv/linux/ia64/Versions: New file.
9539 * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file.
9540 * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file.
9541 * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file.
9542 * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file.
9543 * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file.
9544 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file.
9545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file.
9546 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file.
9547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file.
9548 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file.
9549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file.
9550 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9551 * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file.
9552 * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file.
9553 * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file.
9554 * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file.
9555 * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file.
9556 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
9557 * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file.
9558 * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file.
9559 * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file.
9560 * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file.
9561 * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file.
9562 * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file.
9564 * pthreadP.h: Remove FRAME_LEFT definition.
9565 * cleanup.c (_pthread_cleanup_push): Don't check for reference to
9566 already left frame. Programs which have this problem are not POSIX
9568 * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise.
9570 2003-03-24 Ulrich Drepper <drepper@redhat.com>
9572 * sysdeps/pthread/tst-timer.c: Check return values of the
9575 2003-03-23 Roland McGrath <roland@redhat.com>
9577 * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
9578 * tst-tls3mod.c: Likewise.
9579 * tst-tls1.c: Likewise.
9580 * tst-tls2.c: Likewise.
9582 * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
9585 * tst-join5.c (tf1, tf2): Add a cast.
9587 * Makeconfig (includes): Append -I$(..)nptl to this variable.
9589 * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
9590 Don't test anything.
9591 * tst-cond4.c: Likewise.
9592 * tst-cond6.c: Likewise.
9593 * tst-flock2.c: Likewise.
9594 * tst-mutex4.c: Likewise.
9595 * tst-rwlock4.c: Likewise.
9596 * tst-signal1.c: Likewise.
9597 * tst-spin2.c: Likewise.
9598 * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.
9600 * tst-mutex4.c: Use test-skeleton.c.
9601 * tst-spin2.c: Likewise.
9602 * tst-sysconf.c: Likewise.
9603 * tst-barrier2.c: Likewise.
9604 * tst-cond4.c: Likewise.
9605 * tst-cond6.c: Likewise.
9606 * tst-rwlock4.c: Likewise.
9607 * tst-unload.c: Likewise.
9608 * tst-flock2.c (do_test): Use return instead of exit.
9610 2003-03-22 Jakub Jelinek <jakub@redhat.com>
9612 * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
9614 2003-03-21 Ulrich Drepper <drepper@redhat.com>
9616 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
9617 (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq
9618 instead of __lll_compare_and_swap.
9619 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
9621 Removed definition if __lll_compare_and_swap.
9623 * cancellation.c: Adjust for new form of compare&exchange macros.
9624 * cleanup_defer.c: Likewise.
9626 * libc-cancellation.c: Likewise.
9627 * old_pthread_cond_broadcast.c: Likewise.
9628 * old_pthread_cond_signal.c: Likewise.
9629 * old_pthread_cond_timedwait.c: Likewise.
9630 * old_pthread_cond_wait.c: Likewise.
9631 * pthread_cancel.c: Likewise.
9632 * pthread_create.c: Likewise.
9633 * pthread_detach.c: Likewise.
9634 * pthread_join.c: Likewise.
9635 * pthread_key_delete.c: Likewise.
9636 * pthread_setcancelstate.c: Likewise.
9637 * pthread_setcanceltype.c: Likewise.
9638 * pthread_timedjoin.c: Likewise.
9639 * pthread_tryjoin.c: Likewise.
9640 * sysdeps/pthread/createthread.c: Likewise.
9642 2003-03-20 Ulrich Drepper <drepper@redhat.com>
9644 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
9645 Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
9646 definitions. Replace uses with calls to atomic_* functions.
9647 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
9648 * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
9649 __lll_test_and_set calls with atomic_exchange_and_add and
9650 atomic_exchange calls respectively.
9651 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
9652 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
9653 * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
9654 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
9655 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
9656 * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
9657 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
9659 * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
9660 returns the old value.
9662 2003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com>
9664 * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
9665 int for variable OLDVAL and correct inline assembler contraint.
9666 * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
9667 type int for variable OLD.
9669 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
9671 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
9672 (SINGLE_THREAD_P): Use global variable __local_multiple_threads
9673 instead of multiple_threads field in the TCB.
9675 2003-03-19 Ulrich Drepper <drepper@redhat.com>
9677 * sysdeps/i386/i686/bits/atomic.h: Removed.
9678 * sysdeps/i386/i586/bits/atomic.h: Removed.
9679 * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc.
9680 * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc.
9681 * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc.
9682 * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc.
9683 * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc.
9684 * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc.
9685 * atomic.h: Removed. Moved to glibc.
9687 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add
9688 support for clock selection.
9690 * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
9693 2003-03-18 Roland McGrath <roland@redhat.com>
9695 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
9696 Add __lll_rel_instr first. Add memory clobber.
9697 (lll_mutex_unlock): Use __lll_test_and_set.
9698 From Paul Mackerras <paulus@samba.org>.
9700 * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define
9702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
9703 (SINGLE_THREAD_P): Add `header.' prefix.
9704 From Paul Mackerras <paulus@samba.org>.
9706 * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
9707 pthread_timedjoin_np to ...
9708 (libpthread: GLIBC_2.3.3): ... here.
9709 (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
9711 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
9712 Avoid shadowing VAL variable.
9714 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
9717 2003-03-18 Ulrich Drepper <drepper@redhat.com>
9719 * Makefile (tests): Add tst-cond11.
9720 * tst-cond11.c: New file.
9722 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder
9723 struct passed to cleanup handler to eliminate one more
9725 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9727 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
9728 (pthrad_cond_t): Replace __unused field with __clock.
9730 * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
9731 waken all waiters in cleanup handler.
9732 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
9733 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9735 * pthread_condattr_getclock.c: New file.
9736 * pthread_condattr_setclock.c: New file.
9737 * sysdeps/pthread/pthread.h: Declare these new functions.
9738 * Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
9739 * Makefile (libpthread-routines): Add the new functions.
9740 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
9741 Renamed field to value. Document use of the bits.
9742 * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
9744 * pthread_condattr_setpshared.c: Likewise.
9745 * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
9746 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
9747 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
9749 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9750 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
9751 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
9752 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
9753 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
9754 Implement clock selection.
9755 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
9756 * pthread-errnos.sym: Add ENOSYS.
9757 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
9758 _POSIX_CLOCK_SELECTION.
9759 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
9761 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
9762 invalid .size directive.
9764 2003-03-17 Roland McGrath <roland@redhat.com>
9766 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
9769 2003-03-17 Ulrich Drepper <drepper@redhat.com>
9771 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
9772 Use __lll_add instead of spelling it out. Use protected symbol names.
9773 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
9775 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
9776 Renamed from lll_compare_and_swap. Use new name where necessary.
9777 (__lll_add): Defined.
9778 (__lll_dec_if_positive): Defined.
9779 (__lll_test_and_set): Defined.
9780 * sysdeps/ia64/pthread_spin_init.c: Removed.
9781 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
9782 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
9783 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
9784 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
9785 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
9786 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
9787 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
9788 * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
9789 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
9790 __sync_lock_release_si.
9791 Patch by Jakub Jelinek.
9793 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
9794 Fix timeout handling.
9795 (__lll_timedwait_tid): Likewise.
9796 (lll_unlock_wake_cb): Wake up other waiters if necessary.
9797 Patch by Jakub Jelinek.
9799 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
9801 2003-03-17 Roland McGrath <roland@redhat.com>
9803 PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
9804 * sysdeps/pthread/pthread_spin_init.c: New file.
9805 * sysdeps/pthread/pthread_spin_unlock.c: New file.
9806 * sysdeps/powerpc/Makefile: New file.
9807 * sysdeps/powerpc/pthread_spin_lock.c: New file.
9808 * sysdeps/powerpc/pthread_spin_trylock.c: New file.
9809 * sysdeps/powerpc/pthreaddef.h: New file.
9810 * sysdeps/powerpc/tcb-offsets.sym: New file.
9811 * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
9812 * sysdeps/powerpc/tls.h: New file.
9813 * sysdeps/powerpc/bits/atomic.h: New file.
9814 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
9815 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
9816 * sysdeps/unix/sysv/linux/lowlevellock.c: New file.
9818 * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
9819 * sysdeps/unix/sysv/linux/sem_post.c: New file.
9820 * sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
9821 * sysdeps/unix/sysv/linux/sem_trywait.c: New file.
9822 * sysdeps/unix/sysv/linux/sem_wait.c: New file.
9823 * sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
9824 * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
9825 * sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
9826 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
9827 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
9828 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
9829 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
9830 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
9831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
9832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.
9834 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
9836 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
9837 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
9838 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
9839 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
9840 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
9842 2003-03-17 Ulrich Drepper <drepper@redhat.com>
9844 * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria.
9845 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
9846 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9847 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9848 Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>.
9850 2003-03-16 Roland McGrath <roland@redhat.com>
9852 * tst-fork4.c: Include <string.h>.
9853 * tst-signal2.c: Likewise.
9854 * tst-mutex5.c (do_test): exit -> return.
9855 * tst-mutex2.c: Include <stdlib.h>.
9857 2003-03-16 Ulrich Drepper <drepper@redhat.com>
9859 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
9860 (__lll_mutex_timedlock_wait): Correct expected value after
9861 spurious wakeup. Otherwise we would never wait again.
9863 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
9864 zone versus inline asm stupidity. Use correct instructions.
9866 * tst-rwlock6.c: Add some more status output.
9868 2003-03-15 Roland McGrath <roland@redhat.com>
9870 * sysdeps/pthread/configure.in: New file.
9871 * sysdeps/pthread/configure: New file (generated).
9873 2003-03-15 Ulrich Drepper <drepper@redhat.com>
9875 * allocatestack.c (allocate_stack): Store the exact stack size of
9876 user allocated stacks.
9878 2003-03-15 Jakub Jelinek <jakub@redhat.com>
9880 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
9881 (SINGLE_THREAD): Use `header' prefix instead of `header.data'.
9882 * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
9883 * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
9884 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
9885 Use `header.' prefix.
9886 * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
9888 2003-03-15 Ulrich Drepper <drepper@redhat.com>
9890 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
9891 __builtin_frame_address, use stack pointer.
9893 * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
9894 instead of __builtin_frame_pointer.
9896 2003-03-14 Ulrich Drepper <drepper@redhat.com>
9898 * tst-basic1.c (do_test): Add cast to avoid warning.
9899 * tst-basic2.c (do_test): Likewise.
9901 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
9902 amount of stack correction.
9904 * tst-fork4.c: Use test-skeleton.c.
9906 2003-03-14 Roland McGrath <roland@redhat.com>
9908 * init.c: Fix typo "#eli" for "#else".
9910 2003-03-14 Steven Munroe <sjmunroe@us.ibm.com>
9912 * allocatestack.c (__stack_user): Use hidden_data_def.
9913 * pthread_create.c (__pthread_keys): Likewise.
9915 * init.c [__powerpc__] (__NR_set_tid_address): Define it.
9917 2003-03-14 Roland McGrath <roland@redhat.com>
9919 * tst-fork4.c: New file.
9920 * Makefile (tests): Add it.
9922 * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so
9923 we always define the padding space.
9924 [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC
9925 stopped supporting its own extensions fully.
9926 [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper
9927 struct also called `header', so `header.multiple_threads' is the field
9928 name to use on all machines.
9929 * allocatestack.c (allocate_stack): Use `header.' prefix.
9930 * sysdeps/pthread/createthread.c (create_thread): Likewise.
9931 * pthread_create.c (__pthread_create_2_1): Likewise.
9932 * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise.
9933 (THREAD_SELF): Likewise.
9934 * sysdeps/x86_64/tls.h: Likewise.
9935 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
9936 (SINGLE_THREAD_P): Likewise.
9937 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
9938 (SINGLE_THREAD_P): Likewise.
9939 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
9940 (SINGLE_THREAD_P): Likewise.
9942 * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18]
9945 2003-03-14 Ulrich Drepper <drepper@redhat.com>
9947 * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
9948 * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
9950 * pthread_create.c (start_thread): setjmp is expected to return 0.
9952 * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile.
9953 (THREAD_GETMEM_NC): Likewise.
9955 2003-03-13 Ulrich Drepper <drepper@redhat.com>
9957 * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined
9958 and the size of the stack which must be allocated is a multiple,
9959 allocate one more page.
9960 * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but
9961 MULTI_PAGE_ALIASING.
9963 2003-03-13 Roland McGrath <roland@redhat.com>
9965 * pthread_create.c (start_thread): Set EXITING_BIT after the
9966 event-reporting (and destructors), not before.
9968 2003-03-13 Jakub Jelinek <jakub@redhat.com>
9970 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait,
9971 lll_futex_wake): Declare register variables as long int instead of
9972 unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9973 Make syscall arguments clobbered by the syscall.
9974 (lll_futex_wait): Define using lll_futex_timed_wait.
9976 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13]
9979 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
9982 * allocatestack.c (nptl_ncreated): Only declare if
9983 COLORING_INCREMENT != 0.
9985 * pthreadP.h (__pthread_enable_asynccancel_2): New prototype.
9986 (__libc_enable_asynccancel_2): Remove prototype.
9988 * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
9989 ctid to match kernel.
9991 2003-03-12 Ulrich Drepper <drepper@redhat.com>
9993 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
9994 libc_multiple_threads.
9995 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
9996 __libc_multiple_threads to...
9997 * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
9999 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
10001 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10002 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10004 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
10005 (__pthread_once_internal): Define.
10007 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
10008 macros instead of .symver directly.
10009 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
10010 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
10012 * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
10013 * sysdeps/x86_64/tcb-offsets.sym: New file.
10014 * sysdeps/x86_64/Makefile: New file.
10016 * sysdeps/i386/tcb-offsets.sym: Add SELF.
10017 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
10018 to access own pthread_t in TCB.
10019 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10021 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10023 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10025 2003-03-12 Roland McGrath <roland@redhat.com>
10027 * pthread-errnos.sym: New file.
10028 * Makefile (gen-as-const-headers): New variable, list that file.
10029 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
10030 header <pthread-errnos.h> instead of defining errno values here.
10031 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
10032 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
10033 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
10034 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10035 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10037 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10039 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
10040 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10041 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
10042 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
10043 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10044 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10045 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
10046 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
10047 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
10048 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
10049 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10050 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
10051 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
10052 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
10053 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
10054 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
10055 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
10056 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
10057 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
10058 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
10059 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
10060 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
10061 * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
10062 * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
10063 * sysdeps/sh/pthread_spin_trylock.S: Likewise.
10064 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
10065 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
10067 * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
10068 CLONE_CHILD_SETTID worked.
10070 2003-03-12 Ulrich Drepper <drepper@redhat.com>
10072 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
10074 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
10077 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
10078 (pthread_cond_t): Add padding.
10080 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
10081 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
10082 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
10084 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
10085 (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
10086 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
10087 (__pthread_rwlock_timedrdlock): Likewise.
10088 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
10089 (__pthread_rwlock_wrlock): Likewise.
10090 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
10091 (__pthread_rwlock_rdlock): Likewise.
10093 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
10095 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
10096 result of lock re-get if it fails.
10098 2003-03-11 Ulrich Drepper <drepper@redhat.com>
10100 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
10101 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
10102 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
10103 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
10104 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
10105 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
10106 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
10107 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
10108 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10109 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10111 * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
10112 THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
10114 * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
10115 Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
10116 * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
10117 (create_thread): Likewise.
10118 Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
10119 * init.c (__pthread_initialize_minimal_internal): Initialize
10120 __libc_multiple_threads_ptr if necessary.
10121 * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
10122 __pthread_multiple_threads and __libc_multiple_threads_ptr.
10123 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
10124 __libc_multiple_threads.
10125 (__libc_pthread_init): Return pointer to __libc_pthread_init if
10128 * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
10129 (THREAD_SETMEM_NC): Likewise.
10131 * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
10132 * sysdeps/x86_64/pthread_spin_trylock.S: New file.
10133 * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
10134 * sysdeps/x86_64/pthread_spin_unlock.S: New file.
10136 * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
10137 Eliminate one entire instruction.
10139 * cancellation.c (__pthread_enable_asynccancel_2): New function.
10140 * pthreadP.h: Declare __pthread_enable_asynccancel_2.
10141 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
10142 (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
10143 instead of __pthread_enable_asynccancel.
10144 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
10145 (__pthread_cond_wait): Likewise.
10146 * sysdeps/pthread/pthread_cond_timedwait.c
10147 (__pthread_cond_timedwait): Likewise.
10148 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
10150 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
10151 (__condvar_cleanup): Wake up all waiters in case we got signaled
10152 after being woken up but before disabling asynchronous
10154 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
10155 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10156 (__condvar_cleanup): Likewise.
10158 * init.c (__NR_set_tid_address): If already defined, don't redefine.
10159 Make it an error if architecture has no #if case. Add x86-64.
10161 * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
10162 pt-initfini.s generation.
10164 * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
10165 (TLS_INIT_TP): Fix typo.
10167 2003-03-11 Jakub Jelinek <jakub@redhat.com>
10169 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
10170 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
10172 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
10173 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
10174 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
10175 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
10176 * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
10177 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
10178 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
10179 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
10181 2003-03-11 Ulrich Drepper <drepper@redhat.com>
10183 * sysdeps/pthread/pthread_cond_timedwait.c
10184 (__pthread_cond_timedwait): Return the result of the final
10185 locking. If it succeeds, the regular function return value.
10187 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
10188 Return result of the final locking.
10189 * version.c (__nptl_main): Work around problems with the strange
10190 INTERNAL_SYSCALL macro on ppc32.
10191 * init.c (__pthread_initialize_minimal_internal): Unblock
10192 SIGCANCEL in case the parent blocked it.
10193 Reported by Paul Mackerras <paulus@samba.org>.
10195 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
10196 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
10197 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
10199 2003-03-11 Jakub Jelinek <jakub@redhat.com>
10201 * sysdeps/pthread/pthread_cond_timedwait.c
10202 (__pthread_cond_timedwait): Unlock and fail if
10203 __pthread_mutex_unlock_internal failed.
10205 * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
10206 (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
10208 * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
10209 [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
10210 STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
10211 ALLOCATE_STACK): New macros.
10212 (TLS_TPADJ): New macro.
10213 (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
10214 (allocate_stack): Handle TLS_DTV_AT_TP and
10215 NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
10216 * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
10217 Don't set PD->self.
10218 * init.c [__ia64__] (__NR_set_tid_address): Define.
10220 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
10221 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
10222 * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
10223 * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
10224 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
10225 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
10226 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
10227 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
10228 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
10229 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
10230 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
10231 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
10232 * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
10233 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
10234 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
10235 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
10236 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
10237 * sysdeps/ia64/bits/atomic.h: New file.
10238 * sysdeps/ia64/Makefile: New file.
10239 * sysdeps/ia64/pthread_spin_init.c: New file.
10240 * sysdeps/ia64/pthread_spin_lock.c: New file.
10241 * sysdeps/ia64/pthread_spin_trylock.c: New file.
10242 * sysdeps/ia64/pthread_spin_unlock.c: New file.
10243 * sysdeps/ia64/pthreaddef.h: New file.
10244 * sysdeps/ia64/tcb-offsets.sym: New file.
10245 * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
10246 * sysdeps/ia64/tls.h: New file.
10248 * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
10249 to syscall instead of no arguments.
10251 2003-03-10 Ulrich Drepper <drepper@redhat.com>
10253 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
10254 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
10255 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
10256 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
10258 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
10261 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
10263 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
10264 lowlevelbarrier.sym.
10265 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
10266 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10267 Include lowlevelbarrier.h and don't define offsets locally.
10268 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
10270 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10271 (__lll_mutex_lock_wait): Reverse order of first two parameters.
10272 (__lll_mutex_timedlock_wait): Likewise.
10273 (lll_mutex_lock): Adjust asm for that.
10274 (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
10275 (lll_lock): Adjust asm for operand order change.
10276 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
10277 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
10279 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
10280 Reverse order of parameters.
10281 (__lll_timedwait_tid): Remove regparms attribute.
10282 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
10283 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
10285 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
10286 (__lll_timedwait_tid): Remove one unnecessary instruction.
10288 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
10289 __lll_mutex_timedlock_wait only for NOT_IN_libc.
10290 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
10293 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
10294 lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
10296 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
10299 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
10300 LOCK is already defined. Don't define __lll_mutex_timedlock_wait
10302 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
10303 define LOCK here (if UP is not defined). The actual code is in
10306 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
10307 LOCK is already defined. Don't define lll_unlock_wake_cb and
10308 __lll_timedwait_tid for libc.so.
10309 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
10310 define LOCK here (if UP is not defined). The actual code is in
10313 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
10314 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
10315 * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
10316 instead of lowlevelsem.h.
10317 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
10318 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
10319 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
10321 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
10322 lowlevelrwlock.sym.
10323 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
10324 * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
10325 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
10327 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
10329 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
10330 last changed. D'oh.
10332 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
10334 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
10335 of __libc_locking_needed.
10336 (lll_trylock): Initialize %eax to zero.
10338 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
10339 pthread_cond_t definition.
10341 2003-03-10 Roland McGrath <roland@redhat.com>
10343 * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
10344 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
10345 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
10346 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
10347 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
10349 * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
10350 Instead of setting PD->multiple_threads, set globals
10351 __pthread_multiple_threads and __libc_multiple_threads.
10352 * sysdeps/pthread/createthread.c (create_thread): Likewise.
10353 * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
10354 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
10356 * descr.h (struct pthread): Conditionalize first member on
10357 [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
10358 containing an anonymous tcbhead_t. Move `list' member out.
10359 [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
10360 * allocatestack.c: Remove use of `header.data.' prefix.
10361 * pthread_create.c: Likewise.
10362 * init.c (__pthread_initialize_minimal_internal): Likewise.
10363 * sysdeps/pthread/createthread.c (create_thread): Likewise.
10364 * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
10365 (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
10366 * sysdeps/x86_64/tls.h: Likewise.
10367 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
10368 (SINGLE_THREAD_P): Likewise.
10369 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
10370 (SINGLE_THREAD_P): Likewise.
10371 * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
10372 * sysdeps/s390/tls.h (tcbhead_t): Likewise.
10374 2003-03-09 Ulrich Drepper <drepper@redhat.com>
10376 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
10378 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
10379 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
10381 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
10382 leftovers from the ia32 code.
10384 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
10386 (clear_once_control): Don't load %esi.
10388 * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
10391 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
10393 * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
10394 * sysdeps/unix/sysv/linux/createthread.c: ...here.
10396 * Makefile (tests): Add tst-cond10.
10397 * tst-cond10.c: New file.
10399 2003-03-08 Ulrich Drepper <drepper@redhat.com>
10401 * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
10402 * tst-signal3.c (do_test): Likewise.
10403 * tst-sem5.c (do_test): Likewise.
10404 * tst-kill6.c (do_test): Likewise.
10405 * tst-tls3.c (do_test): Likewise. Include <errno.h>.
10407 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
10409 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
10410 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
10411 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
10412 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
10413 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10414 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
10415 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10417 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10419 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
10420 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
10421 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10422 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
10423 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
10424 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
10425 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
10426 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
10428 * allocatestack.c (allocate_stack): If mprotect() fails free the
10431 2003-03-07 Ulrich Drepper <drepper@redhat.com>
10433 * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
10435 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
10436 lll_wake_tid. This was used only to work around kernel limits in
10438 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
10439 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
10440 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
10441 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
10443 * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
10444 (__pthread_initialize_minimal_internal): Change initialization of
10445 __static_tls_align_m1 appropriately.
10446 * pthreadP.h (__static_tls_align_m1): Renamed from
10447 __static_tls_align.
10448 * allocatestack.c (allocate_stack): Use __static_tls_align_m1
10449 instead of __static_tls_align-1.
10451 2003-03-04 Ulrich Drepper <drepper@redhat.com>
10453 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
10455 * pthread_create.c: Define __pthread_keys using nocommon
10456 attribute, not by placing it explicitly in bss.
10457 Remove DEFINE_DEALLOC definition. Not needed anymore.
10459 * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
10460 Use it in mmap call to allocate stacks.
10462 * sysdeps/pthread/createthread.c (create_thread): Fix comment.
10464 * pthread_create.c (start_thread): Use THREAD_SETMEM to store
10465 result of the thread function.
10467 2003-03-03 Ulrich Drepper <drepper@redhat.com>
10469 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
10470 version is just fine.
10472 * sysdeps/unix/sysv/linux/libc_pthread_init.c
10473 (__pthread_child_handler): Renamed from pthread_child_handler,
10474 exported, and marked hidden. Change all users.
10475 * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
10476 free __pthread_child_handler from child list.
10478 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
10480 * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
10482 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
10483 Fix handling of cancellation and failing pthread_mutex_unlock call.
10484 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
10485 (__pthread_cond_wait): Likewise.
10487 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
10488 (pthread_rwlock_timedrdlock): Fix clobber of result variable by
10489 lll_futex_timed_wait call.
10490 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
10491 (pthread_rwlock_timedwrlock): Likewise.
10493 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
10494 Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
10495 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
10497 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
10498 check of lll_futex_wake return value.
10500 2003-03-03 Roland McGrath <roland@redhat.com>
10502 * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
10504 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
10505 Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
10506 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
10508 2003-03-02 Ulrich Drepper <drepper@redhat.com>
10510 * sysdeps/pthread/timer_create.c (timer_create): Return correct
10511 error for CPU clocks.
10513 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
10514 _POSIX_MONOTONIC_CLOCK.
10515 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
10517 * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
10520 2003-03-01 Ulrich Drepper <drepper@redhat.com>
10522 * descr.h (struct pthread): Move cleanup field to the front.
10524 2003-03-01 Roland McGrath <roland@redhat.com>
10526 * sem_open.c (sem_open): Braino fix.
10528 2003-03-01 Ulrich Drepper <drepper@redhat.com>
10530 * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
10531 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
10532 __pthread_cleanup_pop functionality.
10533 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10535 * descr.h (struct pthread): Move tid field to the front now that
10538 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
10539 (__lll_mutex_timedlock_wait): Remove.
10540 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
10541 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
10542 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
10543 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
10544 (lll_unlock_wake_cb): Don't save and restore %esi.
10545 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
10547 (__lll_timedwait_tid): Add alignment.
10548 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
10549 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
10551 (__lll_timedwait_tid): Removed.
10552 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
10553 (__pthread_cond_broadcast): Don't save, load, and restore %esi.
10554 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
10555 (pthread_barrier_wait): Don't save, load, and restore %esi for
10557 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
10558 (__pthread_cond_signal): Don't save, load, and restore %esi.
10559 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
10560 (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
10561 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
10562 Don't save, load, and restore %esi.
10564 2003-02-27 Ulrich Drepper <drepper@redhat.com>
10566 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10567 Release lock before waking up the waiters.
10569 * tst-exit1.c (do_test): Don't start more than one thread in parallel.
10571 * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
10572 (reader_thread): Likewise.
10574 * sysdeps/pthread/pthread_rwlock_unlock.c
10575 (__pthread_rwlock_unlock): Release internal lock early. Don't try
10576 to wake up readers if there are none.
10578 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
10579 Release internal lock before wake threads.
10581 2003-02-26 Ulrich Drepper <drepper@redhat.com>
10583 * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
10584 * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
10586 * tst-rwlock9.c: Likewise.
10587 * tst-rwlock10.c: New file.
10588 * tst-rwlock11.c: New file.
10590 * Makefile (tests): Add tst-dlsym1.
10591 * tst-dlsym1.c: New file.
10593 * init.c (__pthread_initialize_minimal_internal): Set
10594 GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
10595 * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
10597 2003-02-24 Ulrich Drepper <drepper@redhat.com>
10599 * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
10601 * tst-cond2.c: Fix sychronization with child.
10603 * tst-rwlock8.c (reader_thread): Remove unused variable.
10605 * Makefile: Add rules to build and run tst-tls3.
10606 * tst-tls3.c: New file.
10607 * tst-tls3mod.c: New file.
10609 * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
10610 * tst-rwlock8.c: New file.
10611 * tst-rwlock9.c: New file.
10612 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
10613 complete broken rwlock implementation.
10614 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10616 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10618 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
10619 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10620 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
10621 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
10622 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
10623 * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
10624 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
10626 2003-02-23 Roland McGrath <roland@redhat.com>
10628 * Makefile (nptl-version): Change regexp so case sensitivity is ok.
10630 2003-02-23 Ulrich Drepper <drepper@redhat.com>
10632 * Makefile (tests): Add tst-context1.
10633 * tst-context1.c: New file.
10635 * Makefile (tests): Add tst-tls1 and tst-tls2.
10636 * tst-tls1.c: New file.
10637 * tst-tls2.c: New file.
10639 * libc-cancellation.c (__libc_enable_asynccancel): Correct test
10640 for failed cmpxchg.
10642 * pthread_create.c (start_thread): Set EXITING_BIT early.
10644 * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
10645 (THREAD_GETMEM_NC): Likewise.
10647 2003-02-22 Ulrich Drepper <drepper@redhat.com>
10649 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
10650 off 3 more bytes by using offset-less instructions when possible.
10652 * Makefile: Add dependency for $(objpfx)version.d.
10654 * eintr.c (eintr_source): Add unnecessary return but the compiler
10657 * tst-kill3.c: Include <unistd.h>.
10659 2003-02-21 Roland McGrath <roland@redhat.com>
10661 * pthread_create.c (start_thread): Call __libc_thread_freeres.
10663 2003-02-21 Ulrich Drepper <drepper@redhat.com>
10665 * Makefile (tests): Add tst-eintr1.
10666 (distribute): Add eintr.c.
10667 * tst-eintr1.c: New file.
10668 * eintr.c: New file.
10670 * pthread_cancel.c (pthread_cancel): Use tkill directly.
10672 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
10673 Disallow sending SIGCANCEL.
10675 * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
10676 tst-kill3, tst-kill4, tst-kill5, tst-kill6.
10677 * tst-kill1.c: New file.
10678 * tst-kill2.c: New file.
10679 * tst-kill3.c: New file.
10680 * tst-kill5.c: New file.
10681 * tst-kill6.c: New file.
10682 * tst-basic7.c: Renamed to...
10683 * tst-kill4.c: ...this.
10685 2003-02-21 Roland McGrath <roland@redhat.com>
10687 * Makefile (install-lib-ldscripts): New variable.
10689 2003-02-21 Ulrich Drepper <drepper@redhat.com>
10691 * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
10692 * pthread_cancel.c: Use INVALID_TD_P.
10693 * pthread_detach.c: Likewise.
10694 * pthread_getschedparam.c: Likewise.
10695 * pthread_setschedparam.c: Likewise.
10696 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
10697 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
10698 * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
10699 * pthread_timedjoin.c: Likewise.
10701 * tst-basic7.c: Include <signal.h>.
10703 * pthread_join.c (pthread_join): Limited checking for invalid
10705 * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
10707 2003-02-20 Ulrich Drepper <drepper@redhat.com>
10709 * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
10710 beginning of the loop. Clear the entire first block of TSD.
10711 * Makefile (tests): Add tst-key4.
10712 * tst-key4.c: New file.
10714 2003-02-18 Ulrich Drepper <drepper@redhat.com>
10716 * Makefile (tests): Add tst-basic7.
10717 * tst-basic7.c: New file.
10719 * pthread_create.c (deallocate_tsd): Mark as internal_function.
10720 Add some more __builtin_expect.
10722 * pthreadP.h: Define dummy version of DEBUGGING_P.
10724 2003-02-17 Ulrich Drepper <drepper@redhat.com>
10726 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
10727 _POSIX_THREAD_PRIORITY_SCHEDULING.
10728 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
10729 _XOPEN_REALTIME_THREADS.
10730 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
10732 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
10733 kernel returns EINVAL for PID <= 0, work around it.
10735 * Makefile (tests): Add tst-signal5.
10736 * tst-signal5.c: New file.
10738 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
10739 and LOGIN_NAME_MAX.
10741 * tst-cancel1.c (tf): Block all signals.
10743 * Makefile (tests): Add tst-basic6.
10744 * tst-basic6.c: New file.
10746 * tst-basic1.c: Add test for process ID.
10748 * Makefile (tests): Add tst-cancel10.
10749 * tst-cancel10.c: New file.
10751 * Makefile (tests): Add tst-signal4.
10752 * tst-signal4.c: New file.
10754 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
10755 __sigismember instead of sigismember. Add __builtin_expect.
10757 2003-02-16 Ulrich Drepper <drepper@redhat.com>
10759 * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
10760 pthread_setcancelstate, and pthread_rwlock_setpshared.
10762 * tst-cancel7.c (do_test): Make sure the pid file exists before
10763 canceling the thread.
10765 * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
10766 pthread_rwlock_timedrdlock tests.
10767 * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
10768 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10769 Check for invalid tv_nsec field.
10770 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10773 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
10774 recursive mutex of overflow.
10776 * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
10778 * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
10779 going into an endless loop.
10780 * Makefile (tests): Add tst-cancel9.
10781 * tst-cancel9.c: New file.
10783 * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
10785 2003-02-15 Ulrich Drepper <drepper@redhat.com>
10787 * tst-mutex5.c (do_test): Add more timedlock tests.
10789 * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
10790 * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
10792 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
10793 use INLINE_SYSCALL. Error number is returned, not -1.
10795 * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
10796 and __deallocate_stack with internal_function.
10797 * pthread_create.c: Adjust definitions appropriately.
10798 * allocatestack.c: Likewise.
10800 * pthread_join.c: Add one more __builtin_expect.
10801 * pthread_timedjoin.c: Likewise.
10803 * pthread_getspecific.c (__pthread_getspecific): Clear data->data
10804 not data of sequence number does not match.
10805 Add one __builtin_expect.
10807 * Makefile (tests): Add tst-clock1.
10808 * tst-clock1.c: New file.
10810 * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
10811 negative arguments.
10812 * Makefile (tests): Add tst-basic5.
10813 * tst-basic5.c: New file.
10815 2003-02-14 Ulrich Drepper <drepper@redhat.com>
10817 * Makefile (tests): Add tst-basic4.
10818 * tst-basic4.c: New file.
10820 * pthreadP.h: Add declaraction for __nptl_nthreads.
10821 * pthread_create.c: Define __nptl_nthreads
10822 (start_thread): Increment __nptl_nthreads at beginning. Decrement
10823 after thread is done. If then zero, call exit(0).
10824 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
10825 Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
10826 * init.c (pthread_functions): Initialize ptr_nthreads.
10827 * allocatestack.c (nptl_nthreads): Remove definition and all uses.
10828 (__reclaim_stacks): Decrement __nptl_nthreads.
10829 * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
10831 * Makefile (tests): Add tst-basic3.
10832 * tst-basic3.c: New file.
10834 * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
10835 after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
10836 * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
10837 * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
10838 if asynchronous canceling is enabled.
10839 * pthread_join.c (pthread_join): When recognizing circular joins,
10840 take into account the other thread might be already canceled.
10841 * Makefile (tests): Add tst-join5.
10842 * tst-join5.c: New file.
10844 * Makefile (tests): Add tst-join4.
10845 * tst-join4.c: New file.
10847 2003-02-13 Ulrich Drepper <drepper@redhat.com>
10849 * tst-cond4.c (main): Add test of pthread_attr_getpshared.
10851 2003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
10853 * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
10854 THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
10855 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
10857 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
10859 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
10860 error if lll_futex_wake failed.
10862 2003-02-13 Ulrich Drepper <drepper@redhat.com>
10864 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
10865 handling of cancellation and failung pthread_mutex_unlock call.
10866 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10867 * Makefile (tests): Add tst-cond8 and tst-cond9.
10868 * tst-cond8.c: New file.
10869 * tst-cond9.c: New file.
10871 * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
10873 * sysdeps/pthread/pthread.h: Add missing initializers. Protect
10874 non-standard initializers with __USE_GNU.
10876 * Makefile (tests): Add tst-cleanup3.
10877 * tst-cleanup3.c: New file.
10879 2003-02-12 Ulrich Drepper <drepper@redhat.com>
10881 * Makefile (tests): Add tst-attr1 and tst-attr2.
10882 * tst-attr1.c: New file.
10883 * tst-attr2.c: New file.
10885 * Makefile: Add rules to build and run tst-atfork2 test.
10886 * tst-atfork2.c: New file.
10887 * tst-atfork2mod.c: New file.
10889 * sysdeps/unix/sysv/linux/unregister-atfork.c
10890 (__unregister_atfork): Free the memory allocated for the handlers
10891 after removing them from the lists.
10893 * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
10896 * tst-atfork1.c (do_test): Wait for the child we forked.
10897 Report error in child.
10899 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
10901 * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
10903 2003-02-10 Ulrich Drepper <drepper@redhat.com>
10905 * Makefile (tests): Add tst-cancel8.
10906 * tst-cancel8.c: New file.
10908 * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
10909 clearing of control variable.
10910 * Makefile (tests): Add tst-once3 and tst-once4.
10911 * tst-once3.c: New file.
10912 * tst-once4.c: New file.
10914 2003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
10916 * sysdeps/sh/Makefile: New file.
10917 * sysdeps/sh/bits/atomic.h: New file.
10918 * sysdeps/sh/pthread_spin_init.c: New file.
10919 * sysdeps/sh/pthread_spin_lock.c: New file.
10920 * sysdeps/sh/pthread_spin_trylock.S: New file.
10921 * sysdeps/sh/pthread_spin_unlock.S: New file.
10922 * sysdeps/sh/pthreaddef.h: New file.
10923 * sysdeps/sh/tcb-offsets.sym: New file.
10924 * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
10925 * sysdeps/sh/tls.h: New file.
10926 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
10927 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
10928 * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
10929 * sysdeps/unix/sysv/linux/sh/fork.c: New file.
10930 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
10931 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
10932 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
10933 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
10934 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
10935 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
10936 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
10937 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
10938 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
10939 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
10940 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
10941 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
10942 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
10943 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
10944 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
10945 * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
10946 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
10947 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
10948 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
10949 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
10950 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
10951 * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
10952 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
10953 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
10954 * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
10955 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
10957 2003-02-08 Ulrich Drepper <drepper@redhat.com>
10959 * tst-cond2.c: Rearrange code to not rely on behavior undefined
10960 according to POSIX.
10962 * tst-basic2.c (do_test): Lock mutex before creating the thread.
10964 2003-02-07 Ulrich Drepper <drepper@redhat.com>
10966 * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
10967 (TLS_GET_FS): New #define.
10968 (TLS_SET_FS): New #define.
10969 Correct value of __NR_set_thread_area.
10971 * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
10973 2003-02-06 Ulrich Drepper <drepper@redhat.com>
10975 * Makefile (tests): Add tst-popen1.
10976 * tst-popen1.c: New file.
10978 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
10979 but inactive generalization.
10980 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10981 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
10982 Minor optimization, remove one instruction.
10983 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
10985 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
10987 * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
10989 2003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
10991 * init.c (__NR_set_tid_address): Add #ifdef for s390.
10992 * sysdeps/pthread/pthread_barrier_wait.c: New file.
10993 * sysdeps/pthread/pthread_cond_broadcast.c: New file.
10994 * sysdeps/pthread/pthread_cond_signal.c: New file.
10995 * sysdeps/pthread/pthread_cond_timedwait.c: New file.
10996 * sysdeps/pthread/pthread_cond_wait.c: New file.
10997 * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
10998 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
10999 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
11000 * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
11001 * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
11002 * sysdeps/s390/Makefile: New file.
11003 * sysdeps/s390/bits/atomic.h: New file.
11004 * sysdeps/s390/pthread_spin_init.c: New file.
11005 * sysdeps/s390/pthread_spin_lock.c: New file.
11006 * sysdeps/s390/pthread_spin_trylock.c: New file.
11007 * sysdeps/s390/pthread_spin_unlock.c: New file.
11008 * sysdeps/s390/pthreaddef.h: New file.
11009 * sysdeps/s390/tcb-offsets.sym: New file.
11010 * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
11011 * sysdeps/s390/tls.h: New file.
11012 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
11013 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
11014 * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
11015 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
11016 * sysdeps/unix/sysv/linux/s390/fork.c: New file.
11017 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
11018 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
11019 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
11020 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
11021 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
11022 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
11023 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
11024 * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
11025 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
11026 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
11027 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
11028 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
11029 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
11030 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
11031 * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
11032 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
11033 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
11034 * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
11036 2003-02-04 Ulrich Drepper <drepper@redhat.com>
11038 * atomic.h: Add a couple more default implementations.
11039 (atomic_compare_and_exchange_acq): Use
11040 __arch_compare_and_exchange_32_acq in return value definition. It
11042 (atomic_bit_set): Renamed from atomic_set_bit.
11043 Add missing atomic_ prefixes.
11045 * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
11046 thread library is available, use correct value to mark initialized
11049 2003-02-03 Ulrich Drepper <drepper@redhat.com>
11051 * allocatestack.c (allocate_stack): Use __getpagesize instead of
11052 __sysconf to determine pagesize.
11054 * pthread_create.c: Include <atomic.h>.
11055 * allocatestack.c (allocate_stack): Implement coloring of the
11056 allocated stack memory. Rename pagesize to pagesize_m1. It's the
11057 size minus one. Adjust users.
11058 * sysdeps/i386/i686/Makefile: New file.
11060 2003-02-02 Ulrich Drepper <drepper@redhat.com>
11062 * allocatestack.c: Improve comment throughout the file.
11064 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
11065 (__lll_lock_wait): Add branch prediction.
11066 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
11067 (__lll_lock_wait): Likewise.
11068 (lll_unlock_wake_cb): Removed.
11070 2003-01-31 Ulrich Drepper <drepper@redhat.com>
11072 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
11073 _POSIX_THREAD_PRIORITY_SCHEDULING.
11075 2003-01-30 Jakub Jelinek <jakub@redhat.com>
11077 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
11078 Fix return type of ptr___pthread_getspecific.
11080 2003-01-29 Ulrich Drepper <drepper@redhat.com>
11082 * Makefile (tests): Add tst-umask1.
11083 (tst-umask1-ARGS): Define.
11084 * tst-umask1.c: New file.
11086 2003-01-28 Ulrich Drepper <drepper@redhat.com>
11088 * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
11089 pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
11090 pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
11091 pthread_rwlock_unlock.
11092 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
11093 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
11094 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
11095 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
11096 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
11098 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
11099 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
11101 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
11102 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
11103 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
11105 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
11106 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
11108 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
11109 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
11110 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
11112 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
11113 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
11115 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
11117 * Makefile (libpthread-routines): Remove lowlevelcond and
11118 lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
11119 pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
11120 and pthread_cond_broadcast.
11121 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
11122 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
11123 * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
11124 * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
11125 * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
11126 * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
11127 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
11128 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
11129 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
11130 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
11131 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
11132 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
11133 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
11134 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
11135 * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
11136 * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
11137 * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
11138 * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
11139 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
11140 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
11141 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
11142 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
11143 * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
11144 * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
11145 * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
11146 * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
11147 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
11148 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
11149 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
11150 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
11151 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
11153 * sysdeps/unix/sysv/linux/i386/createthread.c: Define
11154 PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
11155 of the code is moved to ...
11156 * sysdeps/pthread/createthread.c: ...here. New file.
11158 2003-01-27 Ulrich Drepper <drepper@redhat.com>
11160 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
11161 (__new_sem_post): Clear %eax before returning.
11162 Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
11164 * Makefile (tests): Add tst-cleanup2.
11165 * tst-cleanup2.c: New file.
11167 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
11168 Interpret first parameter correctly.
11170 2003-01-17 Ulrich Drepper <drepper@redhat.com>
11172 * Makefile (headers): Add bits/semaphore.h.
11174 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11176 * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
11179 2003-01-14 Ulrich Drepper <drepper@redhat.com>
11181 * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
11182 must be used and mapping failed.
11183 Reported by Luke Elliott <luke.elliott@activfinancial.com>.
11185 * Makefile (CFLAGS-pthread_self.os): Define this, not
11186 CFLAGS-pthread_self.c.
11188 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11190 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
11191 lll_unlock_wake_cb.
11193 * Makefile (libpthread-routines): Add version. Add rules to build
11194 version.os and banner.h.
11195 * version.c: New file.
11197 2003-01-13 Jakub Jelinek <jakub@redhat.com>
11199 * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
11200 the alias unconditional.
11201 * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
11203 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11205 * Makefile (CFLAGS-pthread_self.c): New definition.
11207 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11209 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
11210 INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
11211 * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
11212 * init.c (__pthread_initialize_minimal_internal): Likewise.
11214 2003-01-07 Jakub Jelinek <jakub@redhat.com>
11216 * pthreadP.h (__pthread_cond_timedwait): Add prototype.
11218 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
11219 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
11220 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
11221 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
11222 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
11223 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
11225 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11227 * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
11228 * pt-system.c (LIBC_CANCEL_HANDLED): Add.
11229 * tst-cancel-wrappers.sh: Remove all exceptions.
11231 2003-01-05 Ulrich Drepper <drepper@redhat.com>
11233 * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
11234 features. Reported by Marijn Ros <marijn@mad.scientist.com>.
11236 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
11237 Use __libc_pthread_functions array if SHARED.
11239 * pthreadP.h: Move pthread_cond_2_0_t definition to...
11240 * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
11242 * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
11243 (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
11244 __libc_key_create, __libc_getspecific, __libc_setspecific): Use
11245 __libc_ptf_call instead of __libc_maybe_call.
11246 (PTF): New #define.
11247 (__libc_cleanup_region_start): Wrap function name with PTF call.
11248 (__libc_cleanup_region_end): Likewise.
11249 (__libc_cleanup_end): Likewise.
11251 * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
11252 * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
11253 * pthread_key_create.c: Add __pthread_key_create_internal alias.
11254 * pthreadP.h: Add prototypes.
11256 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
11257 __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
11258 __pthread_rwlock_unlock aliases.
11259 * pthreadP.h: Add prototypes for new aliases.
11261 * pthreadP.h (struct pthead_functions): Moved to...
11262 * sysdeps/pthread/pthread-functions.h: ...here. New file.
11263 * init.c (pthread_functions): Add initializers for new elements.
11265 * cleanup_defer.c: Add __pthread_cleanup_push_defer and
11266 __pthread_cleanup_pop_restore aliases.
11267 * pthreadP.h: Add prototypes.
11269 * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
11270 and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
11271 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
11272 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
11273 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
11274 * pthreadP.h: Adjust prototypes and callers.
11276 2003-01-04 Ulrich Drepper <drepper@redhat.com>
11278 * Makefile (tests): Add tst-cancel7.
11279 (tst-cancel7-ARGS): New variable.
11280 * tst-cancel7.c: New file.
11282 * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
11283 around gcc defficiencies.
11284 * old_pthread_cond_signal.c: Likewise.
11285 * old_pthread_cond_timedwait.c: Likewise.
11286 * old_pthread_cond_wait.c: Likewise.
11288 * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
11290 2003-01-03 Ulrich Drepper <drepper@redhat.com>
11292 * Makefile (tests): Add tst-cond7.
11293 * tst-cond7.c: New file.
11295 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
11296 (condvar_cleanup): Get condvar address from the right place.
11298 * atomic.h: Correct definitions of atomic_full_barrier,
11299 atomic_read_barrier, atomic_write_barrier.
11301 * old_pthread_cond_broadcast.c: Make memory allocate and initialization
11303 * old_pthread_cond_signal.c: Likewise.
11304 * old_pthread_cond_timedwait.c: Likewise.
11305 * old_pthread_cond_wait.c: Likewise.
11307 2003-01-03 Jakub Jelinek <jakub@redhat.com>
11309 * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
11311 2003-01-03 Ulrich Drepper <drepper@redhat.com>
11313 * pthreadP.h (pthread_cond_2_0_t): New type.
11314 (struct pthread_functions): Use new type for 2.0 condvar callbacks.
11315 Use new type for the 2.0 condvar function prototypes.
11316 * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
11317 * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
11319 * old_pthread_cond_destroy.c: Likewise.
11320 * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
11321 * old_pthread_cond_signal.c: Likewise.
11322 * old_pthread_cond_timedwait.c: Likewise.
11323 * old_pthread_cond_wait.c: Likewise.
11325 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
11326 (__pthread_cond_wait): Don't save cancellation mode and seq value
11329 * herrno.c (__h_errno_location): Don't define as weak.
11331 2003-01-02 Jakub Jelinek <jakub@redhat.com>
11333 * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
11334 pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
11335 and pthread_cond_wait.
11336 * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
11338 (__pthread_cond_broadcast_2_0): ... this.
11339 * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
11341 (__pthread_cond_destroy_2_0): ... this.
11342 * old_pthread_cond_init.c (__old_pthread_cond_init):
11344 (__pthread_cond_init_2_0): ... this.
11345 * old_pthread_cond_signal.c (__old_pthread_cond_signal):
11347 (__pthread_cond_signal_2_0): ... this.
11348 * old_pthread_cond_wait.c (__old_pthread_cond_wait):
11350 (__pthread_cond_wait_2_0): ... this.
11351 * pthread_cond_destroy.c: Include shlib-compat.h.
11352 (pthread_cond_destroy): Change strong_alias into versioned_symbol.
11353 * pthread_cond_init.c: Include shlib-compat.h.
11354 (pthread_cond_init): Change strong_alias into versioned_symbol.
11355 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
11356 fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
11358 (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
11359 __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
11360 __pthread_cond_wait_2_0): New prototypes.
11361 (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
11362 __old_pthread_cond_init, __old_pthread_cond_signal,
11363 __old_pthread_cond_wait): Removed.
11364 * init.c: Include shlib-compat.h.
11365 (pthread_functions): Guard ptr___pthread_attr_init_2_0
11366 initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
11367 Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
11368 ptr___pthread_cond_*_2_0 fields.
11369 * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
11370 pthread_cond_*@GLIBC_2.0 compatibility symbols.
11372 * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
11373 LIBC_SIGACTION was not yet defined.
11374 [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
11375 [!defined LIBC_SIGACTION] (__sigaction): New function and
11377 [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
11378 [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
11380 2003-01-02 Jakub Jelinek <jakub@redhat.com>
11382 * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
11384 2003-01-02 Ulrich Drepper <drepper@redhat.com>
11386 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
11387 New, larger type definition.
11388 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
11390 * Versions [libpthread]: Add definitions for new pthread_cond_*
11391 interfaces for version GLIBC_2.3.2.
11392 * pthread_cond_init.c: Update initialization for new type definition.
11393 * Makefile (libpthread-routines): Remove pthread_cond_wait,
11394 pthread_cond_timedwait, pthread_cond_signal, and
11395 pthread_cond_broadcast. Add old_pthread_cond_init,
11396 old_pthread_cond_destroy, old_pthread_cond_wait,
11397 old_pthread_cond_timedwait, old_pthread_cond_signal, and
11398 old_pthread_cond_broadcast.
11399 * old_pthread_cond_broadcast.c: New file.
11400 * old_pthread_cond_destroy.c: New file.
11401 * old_pthread_cond_init.c: New file.
11402 * old_pthread_cond_signal.c: New file.
11403 * old_pthread_cond_timedwait.c: New file.
11404 * old_pthread_cond_wait.c: New file.
11405 * pthreadP.h: Add prototypes for the compatibility interfaces.
11407 * pthread_cond_destroy.c: Don't include <errno.h>.
11409 2003-01-01 Ulrich Drepper <drepper@redhat.com>
11411 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
11412 unnecessary zero offset when addressing MUTEX.
11414 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11416 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
11418 * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
11419 for __register_atfork.
11421 2002-12-31 Jakub Jelinek <jakub@redhat.com>
11423 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
11424 instead of ASSEMBLER test macro.
11426 * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
11427 __libc_current_sigrtmax): Add libc_hidden_def.
11429 * sysdeps/pthread/list.h: Remove assert.h include.
11431 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11433 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
11434 __pthread_initialize_minimal_internal not
11435 __pthread_initialize_minimal.
11437 2002-12-30 Ulrich Drepper <drepper@redhat.com>
11439 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
11440 __pthread_initialize_minimal as hidden.
11442 * init.c (__pthread_initialize_minimal_internal): Don't mark as
11445 2002-12-31 Jakub Jelinek <jakub@redhat.com>
11447 * Makefile ($(inst_libdir)/libpthread.so): Depend on
11448 $(common-objpfx)format.lds, include that into the output script.
11450 (extra-B-pthread.so): Change linuxthreads/ into nptl/.
11452 2002-12-28 Andreas Jaeger <aj@suse.de>
11454 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
11455 nsec resolution changes.
11456 (xstat64_conv): Likewise.
11457 (xstat32_conv): Likewise.
11458 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
11459 struct kernel_stat.
11460 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
11461 structs stat and stat64.
11462 * time/time.h (__timespec_defined): Define for __USE_MISC.
11463 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
11465 2002-12-30 Jakub Jelinek <jakub@redhat.com>
11467 * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
11469 (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
11470 (pthread_exit): Use strong_alias to avoid warnings.
11471 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
11472 and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
11473 ptr___pthread_attr_init_2_*.
11474 * init.c (pthread_functions): Adjust.
11476 2002-12-29 Ulrich Drepper <drepper@redhat.com>
11478 * forward.c: Make all functions available by default again. It
11479 caused too much trouble.
11481 * pt-siglongjmp.c: Removed.
11483 2002-12-28 Jakub Jelinek <jakub@redhat.com>
11485 * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
11486 (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
11487 * sysdeps/i386/Makefile: New file.
11488 * sysdeps/i386/tcb-offsets.sym: New file.
11489 * sysdeps/pthread/tcb-offsets.h: New file.
11490 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
11491 Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
11493 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
11494 __register_atfork...
11495 (GLIBC_2.3.2): ...here.
11497 2002-12-28 Ulrich Drepper <drepper@redhat.com>
11499 * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
11500 pthread_attr_setstackaddr with __attribute_deprecated__.
11502 2002-12-27 Jakub Jelinek <jakub@redhat.com>
11504 * pt-system.c (system): Remove cancellation handling.
11505 * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
11506 cancellation routines.
11508 2002-12-28 Ulrich Drepper <drepper@redhat.com>
11510 * descr.h: Include <dl-sysdep.h>.
11511 (struct pthread): Move header.data.list to the back of the struct.
11512 * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
11513 (MULTIPLE_THREADS_OFFSET): Adjust offset.
11514 (SYSINFO_OFFSEET): Likewise.
11516 2002-12-27 Jakub Jelinek <jakub@redhat.com>
11518 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
11520 (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
11521 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
11522 DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
11523 (USE_DL_SYSINFO): Undef.
11525 2002-12-22 Jakub Jelinek <jakub@redhat.com>
11527 * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
11528 $(common-objpfx)libc.so.
11529 * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
11530 it is bigger than pipe buffer size even on arches with bigger
11532 (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
11534 2002-12-25 Ulrich Drepper <drepper@redhat.com>
11536 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
11537 correct errno access for case that USE___THREAD is not defined.
11539 2002-12-24 Ulrich Drepper <drepper@redhat.com>
11541 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
11542 Patch by Marijn Ros <marijn@mad.scientist.com>.
11544 2002-12-22 Roland McGrath <roland@redhat.com>
11546 * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
11548 2002-12-20 Ulrich Drepper <drepper@redhat.com>
11550 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
11552 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11554 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
11555 NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
11556 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
11558 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
11560 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
11561 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
11562 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
11563 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
11564 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
11565 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
11566 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
11567 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
11569 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
11571 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
11573 * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
11575 * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
11577 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
11578 that sysinfo is properly initialized.
11579 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
11580 to 1 only for ld.so.
11582 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
11583 RTLD_CORRECT_DYNAMIC_WEAK.
11585 2002-12-19 Jakub Jelinek <jakub@redhat.com>
11587 * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
11588 Use return 0 as 6th argument to FORWARD4.
11589 * pthread_equal.c: Include pthreadP.h instead of pthread.h.
11591 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11593 * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
11594 * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
11595 Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
11596 (INIT_SYSINFO): New #define.
11597 (TLS_TP_INIT): Use INIT_SYSINFO.
11598 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
11599 At test to make sure SYSINFO_OFFSET value is correct.
11600 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
11602 2002-12-18 Jakub Jelinek <jakub@redhat.com>
11604 * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
11605 * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
11606 * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
11607 [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
11608 __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
11609 __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
11610 __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
11612 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11614 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
11615 macro instead of using int $0x80 directly.
11617 * sysdeps/pthread/bits/stdio-lock.h: New file.
11618 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
11619 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
11620 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
11621 * Makefile (routines): Add libc-lowlevelmutex.
11623 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
11624 __i686.get_pc_thunk.dx.
11626 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11628 * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
11629 (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
11630 ($(objpfx)tst-cancel-wrappers.out): New rule.
11631 * tst-cancel-wrappers.sh: New test.
11632 * tst-locale1.c: Include signal.h.
11633 (uselocale): Test static linking of __libc_current_sigrt*.
11635 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11637 * Makefile (tests): Add tst-cancel6.
11638 * tst-cancel6.c: New file
11640 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11642 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
11643 Define meaningfully for assembler as well.
11644 * pthreadP.h (struct pthread_functions): Remove
11645 ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
11646 and ptr_pthread_attr_init_2_1 fields.
11647 * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
11648 and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
11649 * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
11650 (FORWARD3): Define using FORWARD4.
11651 (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
11653 * pt-system.c: Remove duplicate stdlib.h include.
11655 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11657 * sem_init.c: Define sem_init@GLIBC_2.0.
11658 * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
11659 * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
11661 * flockfile.c: Moved to...
11662 * sysdeps/pthread/flockfile.c: ...here. New file.
11663 * funlockfile.c: Moved to...
11664 * sysdeps/pthread/funlockfile.c: ...here. New file.
11665 * ftrylockfile.c: Moved to...
11666 * sysdeps/pthread/ftrylockfile.c: ...here. New file.
11668 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11670 * libc-cancellation.c: Guard both function with
11671 #if !defined NOT_IN_libc.
11672 * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
11673 automatically provided pthread wrappers.
11674 * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
11675 CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
11677 * pt-open.c: Removed.
11678 * pt-fcntl.c: Removed.
11679 * pt-fsync.c: Removed.
11680 * pt-lseek.c: Removed.
11681 * pt-msgrcv.c: Removed.
11682 * pt-msgsnd.c: Removed.
11683 * pt-msync.c: Removed.
11684 * pt-nanosleep.c: Removed.
11685 * pt-open64.c: Removed.
11686 * pt-pause.c: Removed.
11687 * pt-pread.c: Removed.
11688 * pt-pread64.c: Removed.
11689 * pt-pwrite.c: Removed.
11690 * pt-pwrite64.c: Removed.
11691 * pt-read.c: Removed.
11692 * pt-recv.c: Removed.
11693 * pt-recvfrom.c: Removed.
11694 * pt-recvmsg.c: Removed.
11695 * pt-send.c: Removed.
11696 * pt-sendto.c: Removed.
11697 * pt-sigtimedwait.c: Removed.
11698 * pt-sigwait.c: Removed.
11699 * pt-wait.c: Removed.
11700 * pt-waitpid.c: Removed.
11701 * pt-write.c: Removed.
11702 * pt-accept.c: Removed.
11703 * pt-close.c: Removed.
11704 * pt-connect.c: Removed.
11705 * pt-lseek64.c: Removed.
11706 * pt-sendmsg.c: Removed.
11707 * pt-tcdrain.c: Removed.
11709 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11711 * init.c (__pthread_initialize_minimal_internal): Renamed from
11712 __pthread_initialize_minimal. Make old name an alias. This
11713 converts a normal relocation into a relative relocation.
11715 * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
11717 * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
11718 readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
11719 * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
11720 pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
11721 pt-sigwaitinfo, pt-waitid, and pt-writev.
11722 * pt-creat.c: Removed.
11723 * pt-poll.c: Removed.
11724 * pt-pselect.c: Removed.
11725 * pt-readv.c: Removed.
11726 * pt-select.c: Removed.
11727 * pt-sigpause.c: Removed.
11728 * pt-sigsuspend.c: Removed.
11729 * pt-sigwaitinfo.c: Removed.
11730 * pt-waitid.c: Removed.
11731 * pt-writev.c: Removed.
11733 * init.c (pthread_functions): New variable.
11734 (__pthread_initialize_minimal): Pass pointer to pthread_functions
11735 (or NULL) to __libc_pthread_init.
11736 * forward.c: Rewrite to use __libc:pthread_functions array to get
11737 function addresses.
11738 * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
11740 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
11741 Take new parameter. Copy content of variable pointed to by it
11742 to __libc_pthread_init.
11744 * pthreadP.h (struct pthread_functions): New type.
11745 (__libc_pthread_init): Declare.
11747 * pthread_attr_destroy.c: Add namespace protected alias.
11748 * pthread_attr_getdetachstate.c: Likewise.
11749 * pthread_attr_getinheritsched.c: Likewise.
11750 * pthread_attr_getschedparam.c: Likewise.
11751 * pthread_attr_getschedpolicy.c: Likewise.
11752 * pthread_attr_getscope.c: Likewise.
11753 * pthread_attr_setdetachstate.c: Likewise.
11754 * pthread_attr_setinheritsched.c: Likewise.
11755 * pthread_attr_setschedparam.c: Likewise.
11756 * pthread_attr_setschedpolicy.c: Likewise.
11757 * pthread_attr_setscope.c: Likewise.
11758 * pthread_cond_broadcast.c: Likewise.
11759 * pthread_cond_destroy.c: Likewise.
11760 * pthread_cond_init.c: Likewise.
11761 * pthread_cond_signal.c: Likewise.
11762 * pthread_cond_wait.c: Likewise.
11763 * pthread_condattr_destroy.c: Likewise.
11764 * pthread_condattr_init.c: Likewise.
11765 * pthread_equal.c: Likewise.
11766 * pthread_exit.c: Likewise.
11767 * pthread_getschedparam.c: Likewise.
11768 * pthread_self.c: Likewise.
11769 * pthread_setcancelstate.c: Likewise.
11770 * pthread_setschedparam.c: Likewise.
11771 * pthread_mutex_destroy.c: Likewise.
11772 * pthread_mutex_init.c: Likewise.
11773 * pthreadP.h: Add prototypes for the aliases.
11775 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
11776 multiple_threads member in correct TCB to 1.
11778 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
11779 SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
11780 member of thread decriptor, otherwise return unconditionally 1.
11782 2002-12-14 Ulrich Drepper <drepper@redhat.com>
11784 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
11785 regular Linux version. Remove file.
11786 * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
11787 * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
11788 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
11789 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
11790 * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
11791 * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
11792 * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
11793 * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
11794 * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
11795 * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
11796 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
11797 * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
11798 * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
11799 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
11800 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
11801 * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
11802 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
11803 * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
11804 * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
11805 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
11806 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
11807 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
11808 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
11809 * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
11810 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
11811 * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
11812 * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
11813 * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
11814 * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
11815 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
11817 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11819 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
11820 * sysdeps/unix/sysv/linux/open.c: Removed.
11821 * sysdeps/unix/sysv/linux/fsync.c: Removed.
11822 * sysdeps/unix/sysv/linux/lseek.c: Removed.
11823 * sysdeps/unix/sysv/linux/msync.c: Removed.
11824 * sysdeps/unix/sysv/linux/read.c: Removed.
11825 * sysdeps/unix/sysv/linux/close.c: Removed.
11826 * sysdeps/unix/sysv/linux/creat.c: Removed.
11827 * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
11828 * sysdeps/unix/sysv/linux/pause.c: Removed.
11829 * sysdeps/unix/sysv/linux/select.c: Removed.
11830 * sysdeps/unix/sysv/linux/write.c: Removed.
11832 2002-12-14 Ulrich Drepper <drepper@redhat.com>
11834 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
11835 element in TCB to see whether locking is needed.
11837 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
11838 MULTIPLE_THREADS_OFFSET value is correct.
11840 * sysdeps/unix/sysv/linux/close.c: New file.
11841 * sysdeps/unix/sysv/linux/connect.S: New file.
11842 * sysdeps/unix/sysv/linux/creat.c: New file.
11843 * sysdeps/unix/sysv/linux/fsync.c: New file.
11844 * sysdeps/unix/sysv/linux/llseek.c: New file.
11845 * sysdeps/unix/sysv/linux/lseek.c: New file.
11846 * sysdeps/unix/sysv/linux/msgrcv.c: New file.
11847 * sysdeps/unix/sysv/linux/msgsnd.c: New file.
11848 * sysdeps/unix/sysv/linux/msync.c: New file.
11849 * sysdeps/unix/sysv/linux/nanosleep.c: New file.
11850 * sysdeps/unix/sysv/linux/open.c: New file.
11851 * sysdeps/unix/sysv/linux/open64.c: New file.
11852 * sysdeps/unix/sysv/linux/pause.c: New file.
11853 * sysdeps/unix/sysv/linux/poll.c: New file.
11854 * sysdeps/unix/sysv/linux/pread.c: New file.
11855 * sysdeps/unix/sysv/linux/pread64.c: New file.
11856 * sysdeps/unix/sysv/linux/pselect.c: New file.
11857 * sysdeps/unix/sysv/linux/pwrite.c: New file.
11858 * sysdeps/unix/sysv/linux/pwrite64.c: New file.
11859 * sysdeps/unix/sysv/linux/readv.c: New file.
11860 * sysdeps/unix/sysv/linux/recv.S: New file.
11861 * sysdeps/unix/sysv/linux/recvfrom.S: New file.
11862 * sysdeps/unix/sysv/linux/recvmsg.S: New file.
11863 * sysdeps/unix/sysv/linux/select.c: New file.
11864 * sysdeps/unix/sysv/linux/send.S: New file.
11865 * sysdeps/unix/sysv/linux/sendmsg.S: New file.
11866 * sysdeps/unix/sysv/linux/sendto.S: New file.
11867 * sysdeps/unix/sysv/linux/sigpause.c: New file.
11868 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
11869 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
11870 * sysdeps/unix/sysv/linux/sigwait.c: New file.
11871 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
11872 * sysdeps/unix/sysv/linux/system.c: New file.
11873 * sysdeps/unix/sysv/linux/tcdrain.c: New file.
11874 * sysdeps/unix/sysv/linux/wait.c: New file.
11875 * sysdeps/unix/sysv/linux/waitid.c: New file.
11876 * sysdeps/unix/sysv/linux/waitpid.c: New file.
11877 * sysdeps/unix/sysv/linux/writev.c: New file.
11878 * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
11880 * pt-readv.c: Fix comment.
11882 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11884 * tst-cleanup1.c: Include stdlib.h.
11886 * tst-cancel5.c: New test.
11887 * Makefile (tests): Add tst-cancel5.
11888 (tst-cancel5): Link against libc.so libpthread.so in that order.
11890 2002-12-13 Ulrich Drepper <drepper@redhat.com>
11892 * forward.c (test_loaded): Prevent recursive calls.
11894 * Makefile (routines): Add libc-cancellation.
11895 * libc-cancellation.c: New file.
11896 * descr.h (struct pthread): Add multiple_threads field.
11897 * allocatestack.c (allocate_stack): Initialize multiple_header field of
11898 new thread descriptor to 1.
11899 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
11900 Initialize multiple_thread field after successful thread creation.
11901 * cancellation.c (__do_cancel): Move to pthreadP.h.
11902 (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
11903 (__pthread_disable_asynccancel): Add internal_function attribute.
11904 * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
11905 * pthread_setcancelstate.c: Likewise.
11906 * pthread_setcanceltype.c: Likewise.
11907 * pthread_exit.c: Likewise.
11908 * pthreadP.h (CANCELLATION_P): Likewise.
11909 (__do_cancel): Define as static inline.
11910 (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
11911 (__libc_enable_asynccancel, __libc_disable_asynccancel): New
11913 * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
11914 fields. Define MULTIPLE_THREADS_OFFSET.
11915 * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
11917 * sysdeps/unix/sysv/linux/accept.S: New file.
11918 * sysdeps/unix/sysv/linux/read.c: New file.
11919 * sysdeps/unix/sysv/linux/write.c: New file.
11920 * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
11921 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
11922 initialization of __libc_locking_needed.
11923 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
11924 __libc_locking_needed, use multiple_threads field in TCB.
11925 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
11927 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11929 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
11931 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
11933 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
11934 access to __libc_locking_needed for PIC.
11936 2002-12-12 Jakub Jelinek <jakub@redhat.com>
11938 * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
11939 declare for libc.so.
11940 (__libc_lock_init, __libc_lock_init_recursive): Change into comma
11942 (__libc_lock_lock): Put into statement expression.
11943 (__libc_lock_unlock): Remove trailing semicolon.
11944 * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
11946 2002-12-12 Roland McGrath <roland@redhat.com>
11948 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
11949 "m" constraint to refer to __libc_locking_needed. Declare it here.
11951 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11953 * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
11954 * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
11955 Initialize __libc_locking_needed.
11956 * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
11957 instead of __register_pthread_fork_handler.
11958 * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
11959 * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
11960 fork-gen with libc_pthread_init.
11961 * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
11962 of __register_pthread_fork_handler.
11963 * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
11964 of __register_pthread_fork_handler.
11965 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
11966 __libc_locking_needed to determine whether lock prefix can be avoided.
11967 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
11969 2002-12-11 Ulrich Drepper <drepper@redhat.com>
11971 * Makefile (tests): Add tst-cleanup1.
11972 * tst-cleanup1.c: New file.
11973 * cancellation.c (__cleanup_thread): Removed.
11974 (__do_cancel): Remove call to __cleanup_thread.
11975 * pthreadP.h: Remove __cleanup_thread prorotype.
11977 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
11978 Remember function and argument even if cancellation handler
11979 function is not available.
11980 (__libc_cleanup_region_end): Execute registered function directly if
11981 pthread functions are not available.
11982 (__libc_cleanup_end): Likewise.
11984 * init.c (__pthread_initialize_minimal): Fix initialization in
11985 static lib by preventing gcc from being too clever.
11987 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11989 * init.c (__pthread_initialize_minimal): Remove unneccesary
11992 * Makefile (tests): We can run tst-locale2 now.
11994 2002-12-09 Ulrich Drepper <drepper@redhat.com>
11996 * Versions: Remove duplicated sigwait entry.
11998 2002-12-08 Ulrich Drepper <drepper@redhat.com>
12000 * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
12003 * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
12005 * pthreadP.h: Declare __pthread_enable_asynccancel and
12006 __pthread_disable_asynccancel.
12007 (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
12008 (CANCEL_RESET): Use __pthread_disable_asynccancel.
12009 * cancellation.c (__pthread_enable_asynccancel): New function.
12010 (__pthread_disable_asynccancel): New function.
12011 * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
12012 * pt-close.c: Likewise.
12013 * pt-connect.c: Likewise.
12014 * pt-creat.c: Likewise.
12015 * pt-fcntl.c: Likewise.
12016 * pt-fsync.c: Likewise.
12017 * pt-lseek.c: Likewise.
12018 * pt-lseek64.c: Likewise.
12019 * pt-msgrcv.c: Likewise.
12020 * pt-msgsnd.c: Likewise.
12021 * pt-msync.c: Likewise.
12022 * pt-nanosleep.c: Likewise.
12023 * pt-open.c: Likewise.
12024 * pt-open64.c: Likewise.
12025 * pt-pause.c: Likewise.
12026 * pt-poll.c: Likewise.
12027 * pt-pread.c: Likewise.
12028 * pt-pread64.c: Likewise.
12029 * pt-pselect.c: Likewise.
12030 * pt-pwrite.c: Likewise.
12031 * pt-pwrite64.c: Likewise.
12032 * pt-read.c: Likewise.
12033 * pt-readv.c: Likewise.
12034 * pt-recv.c: Likewise.
12035 * pt-recvfrom.c: Likewise.
12036 * pt-recvmsg.c: Likewise.
12037 * pt-select.c: Likewise.
12038 * pt-send.c: Likewise.
12039 * pt-sendmsg.c: Likewise.
12040 * pt-sendto.c: Likewise.
12041 * pt-sigpause.c: Likewise.
12042 * pt-sigsuspend.c: Likewise.
12043 * pt-sigtimedwait.c: Likewise.
12044 * pt-sigwait.c: Likewise.
12045 * pt-sigwaitinfo.c: Likewise.
12046 * pt-system.c: Likewise.
12047 * pt-tcdrain.c: Likewise.
12048 * pt-wait.c: Likewise.
12049 * pt-waitid.c: Likewise.
12050 * pt-waitpid.c: Likewise.
12051 * pt-write.c: Likewise.
12052 * pt-writev.c: Likewise.
12053 * pthread_join.c: Likewise.
12054 * pthread_timedjoin.c: Likewise.
12056 * pt-sigpause.c (sigsuspend): Call __sigsuspend.
12057 (__xpg_sigpause): New function.
12058 * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
12060 2002-12-07 Ulrich Drepper <drepper@redhat.com>
12062 * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
12064 * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
12065 _GI_pthread_cleanup_pop to pthreadP.h.
12067 * ftrylockfile.c: Use _IO_lock_trylock instead of
12068 pthread_mutex_trylock.
12070 * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
12071 (CANCEL_RESET): Likewise.
12072 (__pthread_setcanceltype_): Declare.
12073 (__pthread_mutex_lock_internal): Declare.
12074 (__pthread_mutex_unlock_internal): Declare.
12075 (__pthread_once_internal): Declare.
12076 (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
12077 (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
12079 * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
12080 and pthread_mutex_unlock.
12081 * pthread_cond_wait.c: Likewise.
12082 * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
12083 * pthread_mutex_unlock.c: Likewise.
12085 * pthread_setcanceltype.c: Add additional alias
12086 __pthread_setcanceltype.
12088 * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
12089 * sem_open.c (sem_open): Likewise.
12090 Use __libc_open, __libc_write, and __libc_close instead of
12091 open, write, and close respectively.
12093 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
12094 Rewrite as statement expression since it must return a value.
12096 * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
12097 * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
12100 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
12101 alias __pthread_once_internal.
12103 * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
12105 2002-12-06 Ulrich Drepper <drepper@redhat.com>
12107 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
12108 * tst-stdio1.c: New file.
12109 * tst-stdio2.c: New file.
12111 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
12113 * Makefile (tests): Comment out tst-locale2 for now.
12114 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
12116 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
12118 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
12119 Use _IO_lock_init instead of explicit assignment.
12121 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
12122 Define __libc_lock_* and __libc_lock_recursive macros with
12123 lowlevellock macros, not pthread mutexes.
12125 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
12126 of pthread_mutex_lock.
12127 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
12128 instead of pthread_mutex_unlock.
12130 2002-12-06 Roland McGrath <roland@redhat.com>
12132 * allocatestack.c (__stack_user): Use uninitialized defn.
12133 * init.c (__pthread_initialize_minimal): Initialize it here.
12135 2002-12-05 Roland McGrath <roland@redhat.com>
12137 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
12139 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
12141 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
12142 missing & here too.
12144 2002-12-05 Ulrich Drepper <drepper@redhat.com>
12146 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
12148 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
12149 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
12150 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
12151 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
12152 for __libc_lock_* macros.
12153 * Makefile (routines): Add libc-lowlevellock.
12155 2002-10-09 Roland McGrath <roland@redhat.com>
12157 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
12158 Under [__PIC__], call the function via the pointer fetched for
12159 comparison rather than a call by name that uses the PLT.
12160 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
12161 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
12162 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
12163 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
12164 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
12166 2002-12-04 Roland McGrath <roland@redhat.com>
12168 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
12170 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
12171 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
12173 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
12175 2002-12-04 Ulrich Drepper <drepper@redhat.com>
12177 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
12178 a completely opaque, non-integer type.
12179 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
12181 2002-12-05 Jakub Jelinek <jakub@redhat.com>
12183 * sysdeps/i386/tls.h: Include stdlib.h.
12184 * sysdeps/x86_64/tls.h: Likewise.
12186 2002-12-04 Ulrich Drepper <drepper@redhat.com>
12188 * Makefile (tests): Add tst-locale2.
12189 (tests-static): Likewise.
12190 * tst-locale2.c: New file.
12192 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
12193 volatile and add memory clobbers to lock operations.
12195 2002-12-03 Ulrich Drepper <drepper@redhat.com>
12197 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
12198 * sysdeps/i386/i486/bits/atomic.h: New file.
12199 * sysdeps/i386/i586/bits/atomic.h: New file.
12200 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
12201 include i486 version.
12202 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
12203 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
12204 Patch by Marijn Ros <marijn@mad.scientist.com>.
12206 * allocatestack.c (get_cached_stack): Don't crash if we first
12207 found a stack with a larger size then needed.
12208 Reported by Hui Huang <hui.huang@sun.com>.
12210 * Makefile (tests): Add tst-sysconf.
12211 * tst-sysconf.c: New file.
12213 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
12214 PTHREAD_THREADS_MAX.
12216 2002-12-02 Roland McGrath <roland@redhat.com>
12218 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
12219 Declare using hidden_proto instead of attribute_hidden, so there are
12220 non-.hidden static symbols for gdb to find.
12221 (__pthread_keys): Likewise.
12222 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
12223 * allocatestack.c (__stack_user): Likewise.
12224 * pthread_create.c (__pthread_keys): Likewise.
12225 (__nptl_threads_events, __nptl_last_event): Make these static instead
12227 * pthread_key_create.c (__pthread_pthread_keys_max,
12228 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
12230 2002-12-02 Ulrich Drepper <drepper@redhat.com>
12232 * Makefile (tests): Add tst-locale1. If buid-static is yes link
12234 * tst-locale1.c: New file.
12236 * pthread_cond_timedwait.c: Include <stdlib.h>.
12238 * Makefile (tests): Add tst-fork2 and tst-fork3.
12239 * tst-fork2.c: New file.
12240 * tst-fork3.c: New file.
12242 2002-11-28 Ulrich Drepper <drepper@redhat.com>
12244 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
12246 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
12247 require it to 200112L.
12249 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
12250 instruction only if HAVE_CMOV is defined.
12251 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
12253 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
12255 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
12257 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
12259 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
12261 2002-11-27 Ulrich Drepper <drepper@redhat.com>
12263 * sysdeps/x86_64/bits/atomic.h: New file.
12265 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
12268 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
12269 possible since gettid cannot fail.
12271 * sysdeps/x86_64/pthreaddef.h: New file.
12273 * sysdeps/i386/pthreaddef.h (gettid): Removed.
12275 * sysdeps/x86_64/pthread_spin_init.c: New file.
12276 * sysdeps/x86_64/pthread_spin_lock.c: New file.
12277 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
12278 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
12280 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
12281 Add missing lock prefix. Minute optimization.
12283 * tst-spin2.c (main): Also check successful trylock call.
12285 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
12286 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
12288 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
12289 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
12291 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
12292 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
12293 value in case of an error. Add support for INTERNAL_SYSCALL.
12295 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
12296 value in case of an error.
12298 * sysdeps/x86_64/tls.h: New file.
12300 2002-11-26 Ulrich Drepper <drepper@redhat.com>
12302 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
12303 takes the array member name and the index as parameters.
12304 (THREAD_SETMEM_NC): Likewise.
12305 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
12306 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
12309 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
12310 to decide which code to use.
12311 (THREAD_SETMEM_NC): Likewise.
12313 * allocatestack.c (queue_stack): Don't remove stack from list here.
12314 Do it in the caller. Correct condition to prematurely terminate
12315 loop to free stacks.
12316 (__deallocate_stack): Remove stack from list here.
12318 2002-11-26 Ulrich Drepper <drepper@redhat.com>
12320 * Makefile (tests): Add tst-stack1.
12321 * tst-stack1.c: New file.
12323 * allocatestack.c (allocate_stack): Initialize the TCB on a user
12326 * pthread_attr_getstack.c: Return bottom of the thread area.
12328 2002-11-25 Ulrich Drepper <drepper@redhat.com>
12330 * Makefile (libpthread-routines): Add pt-allocrtsig and
12331 pthread_kill_other_threads.
12332 * pt-allocrtsig.c: New file.
12333 * pthread_kill_other_threads.c: New file.
12334 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
12335 all three functions.
12336 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
12338 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
12339 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
12340 and __libc_allocate_rtsig_private.
12341 * Versions (libpthread): Export pthread_kill_other_threads_np,
12342 __libc_current_sigrtmin, and __libc_current_sigrtmax.
12344 2002-11-24 Ulrich Drepper <drepper@redhat.com>
12346 * allocatestack.c (allocate_stack): stackaddr in attribute points to
12347 the end of the stack. Adjust computations.
12348 When mprotect call fails dequeue stack and free it.
12349 * pthread_attr_setstack.c: Store top of the stack in stackaddr
12351 * pthread_getattr_np.c: Likewise.
12353 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
12356 2002-11-23 Ulrich Drepper <drepper@redhat.com>
12358 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
12359 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
12361 2002-11-22 Ulrich Drepper <drepper@redhat.com>
12363 * pthread_getspecific.c: Optimize access to first 2nd-level array.
12364 * pthread_setspecific.c: Likewise.
12366 2002-11-21 Ulrich Drepper <drepper@redhat.com>
12368 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
12369 definitions. Get them from the official place.
12370 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
12372 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
12373 Use new CLONE_ flags in clone() calls.
12375 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
12376 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
12378 * Versions: Add pthread_* functions for libc.
12379 * forward.c: New file.
12381 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
12383 * herrno.c: New file.
12386 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
12387 sem_trywait, and sem_timedwait. Add herrno and res.
12388 * sem_init.c: Don't initialize lock and waiters members.
12389 * sem_open.c: Likewise.
12390 * sem_post.c: Removed.
12391 * sem_wait.c: Removed.
12392 * sem_trywait.c: Removed.
12393 * sem_timedwait.c: Removed.
12394 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
12395 Includes full implementations of sem_post, sem_wait, sem_trywait,
12397 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
12398 for new implementation.
12399 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
12400 and waiters fields.
12402 * tst-sem3.c: Improve error message.
12403 * tst-signal3.c: Likewise.
12405 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
12406 to tell the kernel about the termination futex and to initialize tid
12407 member. Don't initialize main_thread.
12408 * descr.h (struct pthread): Remove main_thread member.
12409 * cancelllation.c (__do_cancel): Remove code handling main thread.
12410 The main thread is not special anymore.
12412 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
12413 size of the stacks to stack_cache_actsize.
12415 * pt-readv.c: Add missing "defined".
12416 * pt-sigwait.c: Likewise.
12417 * pt-writev.c: Likewise.
12419 2002-11-09 Ulrich Drepper <drepper@redhat.com>
12421 * Versions: Export __connect from libpthread.
12422 Patch by Luca Barbieri <ldb@ldb.ods.org>.
12424 * Makefile (libpthread-routines): Add pt-raise.
12425 * sysdeps/unix/sysv/linux/raise.c: New file.
12426 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
12427 * sysdeps/generic/pt-raise.c: New file.
12429 * pthread_cond_init.c: Initialize all data elements of the condvar
12430 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
12432 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
12433 * pthread_create.c: Likewise.
12435 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
12436 * tst-key1.c: New file.
12437 * tst-key2.c: New file.
12438 * tst-key3.c: New file.
12440 * Versions: Export pthread_detach for version GLIBC_2.0.
12441 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
12443 2002-11-08 Ulrich Drepper <drepper@redhat.com>
12445 * pthread_key_create.c: Terminate search after an unused key was found.
12446 Patch by Luca Barbieri <ldb@ldb.ods.org>.
12448 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
12449 Patch by Luca Barbieri <ldb@ldb.ods.org>.
12451 2002-10-10 Ulrich Drepper <drepper@redhat.com>
12453 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
12454 dynamic lookup for errno in PIC.
12456 * allocatestack.c (get_cached_stack): Rearrange code slightly to
12457 release the stack lock as soon as possible.
12458 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
12459 the static TLS block.
12460 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
12462 * cancellation.c: Renamed from cancelation.c.
12463 * Makefile: Adjust accordingly.
12464 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
12465 * cleanup_defer.c: Use CANCELLATION_P.
12466 * pthread_testcancel.c: Likewise.
12467 * descr.h: Fix spelling in comments.
12468 * init.c: Likewise.
12469 * pthread_getattr_np.c: Likewise.
12470 * pthread_getschedparam.c: Likewise.
12471 * pthread_setschedparam.c: Likewise.
12472 * Versions: Likewise.
12474 * pt-pselect.c: New file.
12475 * Makefile (libpthread-routines): Add pt-pselect.
12476 * Versions: Add pselect.
12478 * tst-cancel4.c: New file.
12479 * Makefile (tests): Add tst-cancel4.
12481 2002-10-09 Ulrich Drepper <drepper@redhat.com>
12483 * pthread_mutex_lock.c: Always record lock ownership.
12484 * pthread_mutex_timedlock.c: Likewise.
12485 * pthread_mutex_trylock.c: Likewise.
12487 * pt-readv.c: New file.
12488 * pt-writev.c: New file.
12489 * pt-creat.c: New file.
12490 * pt-msgrcv.c: New file.
12491 * pt-msgsnd.c: New file.
12492 * pt-poll.c: New file.
12493 * pt-select.c: New file.
12494 * pt-sigpause.c: New file.
12495 * pt-sigsuspend.c: New file.
12496 * pt-sigwait.c: New file.
12497 * pt-sigwaitinfo.c: New file.
12498 * pt-waitid.c: New file.
12499 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
12500 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
12501 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
12502 * Versions: Add all the new functions.
12504 * tst-exit1.c: New file.
12505 * Makefile (tests): Add tst-exit1.
12507 * sem_timedwait.c: Minor optimization for more optimal fastpath.
12509 2002-10-08 Ulrich Drepper <drepper@redhat.com>
12511 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
12513 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
12514 call. pthread_join is an official cancellation point.
12515 * pthread_timedjoin.c: Likewise.
12517 * pthread_cond_wait.c: Revert order in which internal lock are dropped
12518 and the condvar's mutex are retrieved.
12519 * pthread_cond_timedwait.c: Likewise.
12520 Reported by dice@saros.East.Sun.COM.
12522 2002-10-07 Ulrich Drepper <drepper@redhat.com>
12524 * pthreadP.h: Cut out all type definitions and move them...
12525 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
12526 * pthreadP.h: Include <internaltypes.h>.
12528 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
12529 performance tweaks.
12531 * sem_trywait.c: Shuffle #includes around to get right order.
12532 * sem_timedwait.c: Likewise.
12533 * sem_post.c: Likewise.
12534 * sem_wait.c: Likewise.
12536 * nptl 0.3 released.
12538 * Makefile (tests): Add tst-signal3.
12539 * tst-signal3.c: New file.
12541 2002-10-05 Ulrich Drepper <drepper@redhat.com>
12543 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
12544 the asms modify the sem object.
12545 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
12547 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
12548 the actual members.
12549 * pthreadP.h (struct sem): New type. Actual semaphore type.
12550 * semaphoreP.h: Include pthreadP.h.
12551 * sem_getvalue.c: Adjust to sem_t change.
12552 * sem_init.c: Likewise.
12553 * sem_open.c: Likewise.
12554 * sem_post.c: Likewise.
12555 * sem_timedwait.c: Likewise.
12556 * sem_trywait.c: Likewise.
12557 * sem_wait.c: Likewise.
12559 2002-10-04 Ulrich Drepper <drepper@redhat.com>
12561 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
12562 * tst-basic2.c: New file.
12563 * tst-exec1.c: New file.
12564 * tst-exec2.c: New file.
12565 * tst-exec3.c: New file.
12567 * tst-fork1.c: Remove extra */.
12569 * nptl 0.2 released. The API for IA-32 is complete.