1 2012-12-03 Allan McRae <allan@archlinux.org>
3 * Makefile (LDFLAGS-tst-cond24, LDFLAGS-tst-cond25): Remove.
5 2012-11-26 H.J. Lu <hongjiu.lu@intel.com>
7 * unwind.c (__pthread_unwind): Pass address of unwind_cleanup
9 * sysdeps/i386/tls.h: Include <libc-internal.h>.
10 (THREAD_SETMEM): Use cast_to_integer before casting to uint64_t.
11 (THREAD_SETMEM_NC): Likewise.
12 * sysdeps/x86_64/tls.h: Include <libc-internal.h>.
13 (THREAD_SETMEM): Use cast_to_integer before casting to uint64_t.
14 (THREAD_SETMEM_NC): Likewise.
16 2012-11-21 Joseph Myers <joseph@codesourcery.com>
18 * sysdeps/unix/sysv/linux/sem_post.c (__old_sem_post): Cast result
19 of atomic_increment_val to (void) instead of storing in
20 otherwise-unused variable.
22 * pthread_cond_timedwait.c (__pthread_cond_timedwait)
23 [__NR_clock_gettime]: Cast result of INTERNAL_VSYSCALL to void
24 instead of storing in otherwise-unused variable.
26 2012-11-14 Marcus Shawcroft <marcus.shawcroft@linaro.org>
28 * Makefile (CFLAGS-open.c, CFLAGS-open64.c, CFLAGS-pause.c)
29 (CFLAGS-recv.c, CFLAGS-send.c): Define.
31 2012-11-06 Chris Metcalf <cmetcalf@tilera.com>
33 * tst-sem14.c (TIMEOUT): Set timeout to 10 seconds.
34 * tst-cond24.c (TIMEOUT): Increase from 10 to 20 seconds.
36 2012-11-05 Siddhesh Poyarekar <siddhesh@redhat.com>
38 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Time out
39 if absolute timeout is negative.
40 [__ASSUME_FUTEX_CLOCK_REALTIME &&
41 lll_futex_timed_wait_bitset]: Use lll_futex_timed_wait_bitset.
42 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
44 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
46 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
47 (__lll_robust_timedlock_wait): Likewise.
48 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
49 (lll_futex_timed_wait_bitset): New macro.
50 * sysdeps/unix/sysv/linux/s390/lowlevellock.h
51 (lll_futex_timed_wait_bitset): Likewise.
53 2012-11-03 David S. Miller <davem@davemloft.net>
55 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
57 (__cpu_relax): Likewise.
59 2012-11-02 H.J. Lu <hongjiu.lu@intel.com>
61 * sysdeps/x86_64/tls.h: Don't include <xmmintrin.h>.
62 (__128bits): New struct typedef.
63 (tcbhead_t): Replace __m128 with __128bits.
65 2012-10-30 Aurelien Jarno <aurelien@aurel32.net>
66 Joseph Myers <joseph@codesourcery.com>
68 * Makefile (tst-cancel7-ARGS): Use exec in --command argument.
70 2012-10-28 David S. Miller <davem@davemloft.net>
72 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
73 Define when we have v9 instructions available.
74 * sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: New file.
75 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S: New
77 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile: New
79 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: Add cpu_relax
80 to libpthread-routines.
82 2012-10-25 Roland McGrath <roland@hack.frob.com>
84 * tst-cond-except.c (TEST_FUNCTION): New macro.
86 2012-10-25 Joseph Myers <joseph@codesourcery.com>
88 * Makefile ($(objpfx)tst-tls6.out): Use $(BASH) not $(SHELL) to
90 * tst-tls6.sh: Use /bin/bash not /bin/sh.
92 2012-10-25 Roland McGrath <roland@hack.frob.com>
94 * tst-basic2.c (do_test): Return RESULT, not always zero.
96 * tst-cond25.c: Include <stdint.h>
97 (waiter): Add casts to uintptr_t between casting integer<->pointer.
98 (timed_waiter): Likewise.
99 (do_test_wait): Likewise.
100 * tst-cond-except.c (thr): Likewise.
101 (do_test): Use prototype definition.
103 2012-10-24 Joseph Myers <joseph@codesourcery.com>
104 Jim Blandy <jimb@codesourcery.com>
106 * Makefile ($(objpfx)tst-tls6.out): Pass $(test-wrapper-env) to
108 * tst-tls6.sh (test_wrapper_env): New variable. Use it to run
109 programs with LD_PRELOAD set.
111 2012-10-24 Roland McGrath <roland@hack.frob.com>
113 * Makefile ($(objpfx)tst-cond11, $(objpfx)tst-cond19): Targets removed.
114 ($(objpfx)tst-sem5, $(objpfx)tst-cancel18): Likewise.
115 ((objpfx)tst-cancelx18, $(objpfx)tst-clock2): Likewise.
116 ($(objpfx)tst-rwlock14): Likewise.
118 2012-10-24 Joseph Myers <joseph@codesourcery.com>
120 * Makefile (tests): Remove tst-oddstacklimit.
121 (test-srcs): New variable.
122 (tst-oddstacklimit-ENV): Remove.
123 [$(run-built-tests) = yes] (tests): Depend on
124 $(objpfx)tst-oddstacklimit.out.
125 [$(run-built-tests) = yes] ($(objpfx)tst-oddstacklimit.out): New
127 * tst-oddstacklimit.c: Do not include "tst-basic1.c". Use
128 setrlimit before executing tst-basic1 test passed to --command.
130 2012-10-23 Joseph Myers <joseph@codesourcery.com>
132 * Makefile [$(cross-compiling) = no]: Change condition to
133 [$(run-built-tests) = yes].
135 2012-10-23 Jim Blandy <jimb@codesourcery.com>
136 Joseph Myers <joseph@codesourcery.com>
138 * Makefile (tst-cancel7-ARGS): Use $(host-built-program-cmd).
139 (tst-exec4-ARGS): Likewise.
140 (tst-stackguard1-ARGS): Likewise.
142 2012-10-21 Jim Blandy <jimb@codesourcery.com>
143 Joseph Myers <joseph@codesourcery.com>
145 * Makefile ($(objpfx)tst-cancel-wrappers.out): Pass $(NM) to
146 tst-cancel-wrappers.sh.
147 * tst-cancel-wrappers.sh: Use nm program given as first argument,
150 2012-10-17 Siddhesh Poyarekar <siddhesh@redhat.com>
152 * tst-cond25.c (do_test_wait): Don't check for return value from
155 2012-10-16 Siddhesh Poyarekar <siddhesh@redhat.com>
158 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
159 (__condvar_tw_cleanup): Adjust the mutex data structure if it
160 was locked by FUTEX_WAIT_REQUEUE_PI.
161 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait
162 (__condvar_w_cleanup): Likewise.
163 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
164 (__condvar_cleanup2): Likewise.
165 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
166 (__condvar_cleanup1): Likewise.
168 2012-10-10 Carlos O'Donell <carlos@systemhalted.org>
170 * sysdeps/pthread/pthread.h [!(defined __GNUC__ &&
171 defined __EXCEPTIONS) && defined __USE_GNU]
172 (pthread_cleanup_push_defer_np): Fix formatting.
174 2012-10-10 Siddhesh Poyarekar <siddhesh@redhat.com>
177 * Makefile (tests): New test case tst-cond25.
178 (LDFLAGS-tst-cond25): Link tst-cond25 against librt.
179 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
180 (__condvar_tw_cleanup): Lock mutex only if we don't already
182 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
183 (__condvar_w_cleanup): Likewise.
184 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add TID_MASK.
185 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
186 (__condvar_cleanup2): Lock mutex only if we don't already
188 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
189 (__condvar_cleanup1): Likewise.
190 * tst-cond25.c: New test case.
192 2012-10-09 Roland McGrath <roland@hack.frob.com>
194 * sysdeps/pthread/configure: Regenerated.
195 * sysdeps/x86_64/configure: Regenerated.
197 2012-10-05 David S. Miller <davem@davemloft.net>
200 * sysdeps/sparc/tls.h (DB_THREAD_SELF_INCLUDE): Delete.
201 (DB_THREAD_SELF): Use constants for the register offsets. Correct
202 the case of a 64-bit debugger with a 32-bit inferior.
204 2012-10-05 H.J. Lu <hongjiu.lu@intel.com>
207 * Makefile (tests-static): Add tst-cancel24-static,
208 tst-cond8-static tst-mutex8-static, tst-mutexpi8-static,
209 tst-sem11-static and tst-sem12-static.
211 (LDLIBS-tst-cancel24-static): New macro.
212 * tst-cancel24-static.cc: New file.
213 * tst-cond8-static.c: Likewise.
214 * tst-mutex8-static.c: Likewise.
215 * tst-mutexpi8-static.c: Likewise.
216 * tst-sem11-static.c: Likewise.
217 * tst-sem12-static.c: Likewise.
219 2012-10-05 Siddhesh Poyarekar <siddhesh@redhat.com>
222 * Makefile (tests): New test case tst-cond24.
223 (LDFLAGS-tst-cond24): Link tst-cond24 against librt.
224 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
225 (__pthread_cond_timedwait): Unlock mutex before going back to
227 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
228 (__pthread_cond_wait): Likewise. Revert handling of EAGAIN
229 return from futex_wait.
230 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
231 (__pthread_cond_timedwait): Unlock mutex before going back to
232 wait in PI case. Set requeue_pi flag only if wait returned 0.
233 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
234 (__pthread_cond_wait): Likewise. Revert handling of EAGAIN
235 return from futex_wait.
236 * tst-cond24.c: New test case.
238 2012-10-04 Roland McGrath <roland@hack.frob.com>
240 * pthread_create.c (start_thread): Use __madvise, not madvise.
242 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
244 * sysdeps/i386/tls.h: Update copyright years.
246 2012-10-02 Siddhesh Poyarekar <siddhesh@redhat.com>
248 * pthread_create.c (start_thread): Fix clone flag name in
249 comment to CLONE_CHILD_CLEARTID.
250 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
251 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
252 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
253 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
254 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
255 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
257 2012-10-01 Siddhesh Poyarekar <siddhesh@redhat.com>
260 * Makefile (tests): Add tst-cond-except.
261 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
262 (__pthread_cond_timedwait): Mark instructions where %ebx is
263 incremented in PI case.
264 (.gcc_except_table): Add entry to jump to __condvar_tw_cleanup2
265 for the marked PI case instructions.
266 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
267 (__pthread_cond_wait): Mark instructions where %ebx is
268 incremented in PI case.
269 (.gcc_except_table): Add entry to jump to __condvar_w_cleanup2
270 for the marked PI case instructions.
271 * tst-cond-except.c: New test case.
273 2012-09-24 Dmitry V. Levin <ldv@altlinux.org>
275 * tst-tls6.sh: Add "set -e".
276 * Makefile: Do not specify -e option when running testsuite
279 * tst-tls6.sh: Add copyright header.
281 2012-09-24 H.J. Lu <hongjiu.lu@intel.com>
283 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Add "()" when casting
284 to uint64_t for 64-bit store.
285 (THREAD_SETMEM_NC): Likewise.
287 2012-09-19 H.J. Lu <hongjiu.lu@intel.com>
289 * sysdeps/i386/tls.h (THREAD_SETMEM): Cast to uint64_t for
291 (THREAD_SETMEM_NC): Likewise.
293 2012-09-14 Jeff Law <law@redhat.com>
296 * sysdeps/pthread/pthread.h: Fix prototype of __sigsetjmp.
298 2012-09-13 H.J. Lu <hongjiu.lu@intel.com>
301 * sysdeps/pthread/bits/libc-lockP.h (__rtld_lock_init_recursive):
304 2012-09-07 H.J. Lu <hongjiu.lu@intel.com>
306 * Makefile (LDFLAGS-tst-cancel24): Renamed to ...
307 (LDLIBS-tst-cancel24): This.
309 2012-09-06 H.J. Lu <hongjiu.lu@intel.com>
312 * Makefile (tests-static): Add tst-cancel21-static.
314 * tst-cancel21-static.c: New file.
316 2012-09-01 Joseph Myers <joseph@codesourcery.com>
318 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
319 [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
320 [__NR_clock_getres]: Make code unconditional.
321 (pthread_getcpuclockid): Remove code left unreachable by removal
324 2012-08-31 Joseph Myers <joseph@codesourcery.com>
327 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Use
328 atomic_compare_and_exchange_bool_rel.
329 * tst-sem14.c: New file.
330 * Makefile (tests): Add tst-sem14.
332 2012-08-15 Roland McGrath <roland@hack.frob.com>
334 * Makefile (CFLAGS-flockfile.c): Use $(libio-mtsafe) instead
336 (CFLAGS-ftrylockfile.c, CFLAGS-funlockfile.c): Likewise.
337 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-fork.c): Likewise.
339 2012-08-16 Joseph Myers <joseph@codesourcery.com>
341 * pthread_cond_timedwait.c (__pthread_cond_timedwait)
342 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
343 * pthread_condattr_setclock.c (pthread_condattr_setclock)
344 [!__ASSUME_POSIX_TIMERS]: Likewise.
345 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
346 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Likewise.
347 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
348 [!__ASSUME_POSIX_TIMERS]: Likewise.
349 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
350 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Likewise.
351 * sysdeps/unix/sysv/linux/timer_create.c [__NR_timer_create]: Make
353 [!__NR-timer_create]: Remove conditional code.
354 (timer_create) [!__ASSUME_POSIX_TIMERS]: Likewise.
355 * sysdeps/unix/sysv/linux/timer_delete.c [__NR_timer_delete]: Make
357 [!__NR_timer_delete]: Remove conditional code.
358 (timer_delete) [!__ASSUME_POSIX_TIMERS]: Likewise.
359 * sysdeps/unix/sysv/linux/timer_getoverr.c
360 [__NR_timer_getoverrun]: Make code unconditional.
361 [!__NR_timer_getoverrun]: Remove conditional code.
362 (timer_getoverrun) [!__ASSUME_POSIX_TIMERS]: Likewise.
363 * sysdeps/unix/sysv/linux/timer_gettime.c [__NR_timer_gettime]:
364 Make code unconditional.
365 [!__NR_timer_gettime]: Remove conditional code.
366 (timer_gettime) [!__ASSUME_POSIX_TIMERS]: Likewise.
367 * sysdeps/unix/sysv/linux/timer_routines.c [__NR_timer_create]:
368 Make code unconditional.
369 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
370 * sysdeps/unix/sysv/linux/timer_settime.c [__NR_timer_settime]:
371 Make code unconditional.
372 [!__NR_timer_settime]: Remove conditional code.
373 (timer_settime) [!__ASSUME_POSIX_TIMERS]: Likewise.
374 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
375 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Remove
378 2012-08-15 Tom de Vries <vries@codesourcery.com>
379 Maxim Kuvyrkov <maxim@codesourcery.com>
381 * sysdeps/pthread/bits/libc-lockP.h (__libc_lock_lock)
382 (__libc_lock_trylock): Allow pre-existing definitions.
384 2012-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
386 * pthread_spin_lock.c: New file.
387 * pthread_spin_trylock.c: New file.
389 2012-08-08 Joseph Myers <joseph@codesourcery.com>
391 * allocatestack.c (setxid_signal_thread) [__ASSUME_TGKILL]: Make
393 (setxid_signal_thread) [!__ASSUME_TGKILL]: Remove conditional code.
394 * pthread_cancel.c (pthread_cancel) [__ASSUME_TGKILL]: Make code
396 (pthread_cancel) [!__ASSUME_TGKILL]: Remove conditional code.
397 * sysdeps/pthread/createthread.c (do_clone) [__ASSUME_TGKILL]:
398 Make code unconditional.
399 (do_clone) [!__ASSUME_TGKILL]: Remove conditional code.
400 * sysdeps/unix/sysv/linux/pt-raise.c (raise) [__ASSUME_TGKILL ||
401 __NR_tgkill]: Make code unconditional.
402 (raise) [__ASSUME_TGKILL]: Likewise.
403 (raise) [!__ASSUME_TGKILL]: Remove conditional code.
404 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill)
405 [__ASSUME_TGKILL]: Make code unconditional.
406 (__pthread_kill) [!__ASSUME_TGKILL]: Remove conditional code.
407 * sysdeps/unix/sysv/linux/raise.c (raise) [__ASSUME_TGKILL ||
408 __NR_tgkill]: Make code unconditional.
409 (raise) [__ASSUME_TGKILL]: Likewise.
410 (raise) [!__ASSUME_TGKILL]: Remove conditional code.
412 2012-08-07 Joseph Myers <joseph@codesourcery.com>
414 * sysdeps/pthread/createthread.c (create_thread)
415 [!__ASSUME_NO_CLONE_DETACHED]: Remove conditional code.
417 2012-08-03 Joseph Myers <joseph@codesourcery.com>
419 * nptl-init.c (sigcancel_handler) [__ASSUME_CORRECT_SI_PID]: Make
421 (sighandler_setxid) [__ASSUME_CORRECT_SI_PID]: Likewise.
423 2012-07-28 Siddhesh Poyarekar <siddhesh@redhat.com>
425 * tst-pthread-getattr.c (MAX_STACK_SIZE): New macro.
426 (pagesize): New static variable.
427 (allocate_and_test): Return MEM. Rename parameter to TARGET.
428 (check_stack_top): New local variables MEM and PAGEMASK. Cap
429 stack size to MAX_STACK_SIZE. Call allocate_and_test for
430 halfway up the stack top page. Verify that the top page was
432 (do_test): Get pagesize using sysconf.
434 2012-07-25 Andreas Schwab <schwab@linux-m68k.org>
436 * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Remove pseudo_end
438 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Likewise.
439 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO):
442 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
444 * tst-pthread-getattr.c: Revert last change.
446 2012-07-20 Siddhesh Poyarekar <siddhesh@redhat.com>
448 * tst-pthread-getattr.c (MAX_STACK_SIZE): New max cap for stack
451 (allocate_and_test): Return STACKADDR. Access STACKADDR instead
453 (check_stack_top): Read valued written into STACKADDR in
454 allocate_and_test. Cap stack size to MAX_STACK_SIZE.
456 2012-07-19 Siddhesh Poyarekar <siddhesh@redhat.com>
458 * nptl-init.c (sighandler_setxid): Fix the comment that
461 2012-06-23 Thomas Schwinge <thomas@codesourcery.com>
463 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
464 (__lll_robust_timedlock_wait): Simplify CFI directives.
466 2012-06-20 Siddhesh Poyarekar <siddhesh@redhat.com>
469 * Makefile (tests): Add test case.
470 * pthread_getattr_np.c (pthread_getattr_np): Deduct pages below
471 the __libc_stack_end page from stacksize. Truncate stacksize to
472 make it page aligned when it is computed from RLIMIT_STACK.
473 * tst-pthread-getattr.c: New test case. Verify that stackaddr is
476 2012-06-07 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
479 * sysdeps/sparc/sparc32/pthread_spin_lock.S: Do not use v9
482 2012-06-04 Siddhesh Poyarekar <siddhesh@redhat.com>
483 Jakub Jelinek <jakub@redhat.com>
486 * sysdeps/pthread/pthread.h
487 [!(defined __GNUC__ && defined __EXCEPTIONS)]
488 (pthread_cleanup_push, pthread_cleanup_push_defer_np): Use
489 __libc_unlikely instead of __builtin_expect.
491 2012-05-30 H.J. Lu <hongjiu.lu@intel.com>
494 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Removed.
495 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
496 * sysdeps/unix/sysv/linux/i386/Implies: New file.
497 * sysdeps/unix/sysv/linux/x86_64/Implies: Likewise.
498 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Renamed
500 * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: This.
501 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Renamed
503 * sysdeps/unix/sysv/linux/x86/bits/semaphore.h: This.
505 2012-05-30 Andreas Schwab <schwab@linux-m68k.org>
508 * nptl-init.c (pthread_functions): Remove use of INTUSE and
510 (__pthread_initialize_minimal_internal): Likewise.
511 * sem_open.c: Likewise.
512 * sem_unlink.c: Likewise.
513 * pthreadP.h: Replace _internal aliases by hidden_proto
515 * pthread_getspecific.c: Replace _internal alias by hidden_def.
516 * pthread_key_create.c: Likewise.
517 * pthread_mutex_destroy.c: Likewise.
518 * pthread_mutex_init.c: Likewise.
519 * pthread_mutex_lock.c: Likewise.
520 * pthread_mutex_unlock.c: Likewise.
521 * pthread_once.c: Likewise.
522 * pthread_rwlock_rdlock.c: Likewise.
523 * pthread_rwlock_unlock.c: Likewise.
524 * pthread_rwlock_wrlock.c: Likewise.
525 * pthread_setspecific.c: Likewise.
526 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
528 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
530 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
532 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
533 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
534 * sysdeps/unix/sysv/linux/s390/pthread_once.c: Likewise.
535 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Likewise.
536 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
537 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
538 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
539 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
540 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
541 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
543 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
545 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
548 2012-05-27 Chung-Lin Tang <cltang@codesourcery.com>
550 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO, LOAD_ARGS_1)
551 (LOAD_ARGS_2 ,LOAD_ARGS_3 ,LOAD_ARGS_4): Add CFI restores.
553 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_lock_wait_private)
554 (__lll_lock_wait, __lll_timedlock_wait, __lll_timedwait_tid): Add CFI
556 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
557 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Likewise.
558 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
559 (pthread_barrier_wait): Likewise.
560 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
561 (__pthread_cond_broadcast): Likewise.
562 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
563 (__pthread_cond_signal): Likewise.
564 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
565 (__pthread_cond_timedwait): Likewise.
566 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S (__pthread_cond_wait):
568 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S
569 (__pthread_rwlock_rdlock): Likewise.
570 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
571 (pthread_rwlock_timedrdlock): Likewise.
572 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
573 (pthread_rwlock_timedwrlock): Likewise.
574 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S
575 (__pthread_rwlock_unlock): Likewise.
576 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S
577 (__pthread_rwlock_wrlock): Likewise.
578 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post): Likewise.
579 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Likewise.
580 * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
582 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
584 2012-05-26 Siddhesh Poyarekar <siddhesh@redhat.com>
587 * nptl/pthread_getattr_np.c (pthread_getattr_np): Use
588 __libc_stack_end rounded to the end of containing page as the
591 2012-05-25 Rayson Ho <rho@redhat.com>
593 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Low-level SystemTap
595 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
596 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
597 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
598 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
599 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
600 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
601 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
602 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
604 2012-05-25 Rayson Ho <rho@redhat.com>
605 Roland McGrath <roland@hack.frob.com>
607 * DESIGN-systemtap-probes.txt: New file.
608 * pthread_cond_broadcast.c: SystemTap probes.
609 * pthread_cond_init.c: Likewise.
610 * pthread_cond_signal.c: Likewise.
611 * pthread_cond_wait.c: Likewise.
612 * pthread_cond_destroy.c: Likewise.
613 * pthread_create.c: Likewise.
614 * pthread_join.c: Likewise.
615 * pthread_mutex_destroy.c: Likewise.
616 * pthread_mutex_init.c: Likewise.
617 * pthread_mutex_lock.c: Likewise.
618 * pthread_mutex_timedlock.c: Likewise.
619 * pthread_mutex_unlock.c: Likewise.
620 * pthread_rwlock_destroy.c: Likewise.
621 * pthread_rwlock_rdlock.c: Likewise.
622 * pthread_rwlock_unlock.c: Likewise.
623 * pthread_rwlock_wrlock.c: Likewise.
624 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
625 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
626 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
627 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
628 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
629 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
630 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
631 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
633 2012-05-24 Roland McGrath <roland@hack.frob.com>
635 * pthread_create.c (start_thread): Define pthread_start LIBC_PROBE.
637 2012-05-17 Andreas Jaeger <aj@suse.de>
639 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
640 (HAVE_DL_DISCOVER_OSVERSION): Don't declare _dl_discover_osversion
641 only for older kernels.
643 2012-05-15 Joseph Myers <joseph@codesourcery.com>
645 * pthreadP.h [!__NR_set_robust_list] (__NR_set_robust_list): Do
648 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
650 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock): Load
651 futex pointer into RDI_LP. Use RSP_LP to operate on stack.
652 (lll_robust_lock): Likewise.
653 (lll_cond_lock): Likewise.
654 (lll_robust_cond_lock): Likewise.
655 (lll_timedlock): Likewise.
656 (lll_robust_timedlock): Likewise.
657 (lll_unlock): Likewise.
658 (lll_robust_unlock): Likewise.
660 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
662 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use
663 LP_OP(cmp) and RCX_LP on dep_mutex pointer.
665 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
667 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Use LP_OP(op)
669 (__gcc_personality_v0): Replace 8-byte data alignment with
670 LP_SIZE alignment and .quad with ASM_ADDR.
672 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
674 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Use LP_OP(op)
676 (__gcc_personality_v0): Replace 8-byte data alignment with
677 LP_SIZE alignment and .quad with ASM_ADDR.
679 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
681 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Use LP_OP(cmp) on
682 NWAITERS, which is unsigned long int.
684 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
686 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
687 (__gcc_personality_v0): Replace 8-byte data alignment with
688 LP_SIZE alignment and .quad with ASM_ADDR.
690 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
692 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Use
693 LP_OP(cmp), RSI_LP and R8_LP on dep_mutex pointer. Load
694 __vdso_clock_gettime pointer into RAX_LP.
695 (__gcc_personality_v0): Replace 8-byte data alignment with
696 LP_SIZE alignment and .quad with ASM_ADDR.
698 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
700 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Use
701 LP_OP(cmp), RSI_LP and R8_LP on dep_mutex pointer. Load
702 __vdso_clock_gettime pointer into RAX_LP.
703 (__gcc_personality_v0): Replace 8-byte data alignment with
704 LP_SIZE alignment and .quad with ASM_ADDR.
706 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
708 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Use
709 LP_OP(cmp) and R8_LP on dep_mutex pointer.
711 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
713 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Use LP_OP(mov)
714 to update pointer in memory. Load pointer into RDI_LP.
716 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
718 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
719 (LLL_STUB_UNWIND_INFO_START): Align label to LP_SIZE instead
721 (LLL_STUB_UNWIND_INFO_END): Likewise.
722 (lll_timedlock): Load timeout pointer into RDX_LP.
723 (lll_robust_timedlock): Likewise.
725 2012-05-15 Siddhesh Poyarekar <siddhesh@redhat.com>
726 Jakub Jelinek <jakub@redhat.com>
729 * Makefile (tests): Add test cases.
730 * descr.h (struct pthread): Add a comment describing multiple_threads.
731 * pthreadP.h (__pthread_multiple_threads): Expand comment to include
733 * pthread_cancel.c (pthread_cancel): Enable multiple_threads
734 before setting cancelstate of the thread.
735 * sysdeps/unix/sysv/linux/libc_multiple_threads.c
736 (__libc_multiple_threads): Add explanatory comment.
737 * tst-cancel-self-cancelstate.c: New test case.
738 * tst-cancel-self-canceltype.c: Likewise.
739 * tst-cancel-self-cleanup.c: Supporting file for test cases.
740 * tst-cancel-self-testcancel.c: New test case.
741 * tst-cancel-self.c: Likewise.
742 * vars.c: Expand comment to include single-process case.
744 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
746 * sysdeps/x86_64/tls.h: Don't include <bits/wordsize.h>.
747 (tcbhead_t): Remove __x86_64__ check. Align rtld_savespace_sse
750 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
752 * sysdeps/pthread/pthread.h (__PTHREAD_RWLOCK_INT_FLAGS_SHARED):
754 (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Check
755 __PTHREAD_RWLOCK_INT_FLAGS_SHARED instead of __WORDSIZE.
757 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
759 * shlib-versions: Move x86_64-.*-linux.* entry to ...
760 * sysdeps/x86_64/64/shlib-versions: Here. New file.
761 * sysdeps/x86_64/x32/shlib-versions: New file.
763 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
765 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Define x32
766 __SIZEOF_PTHREAD_XXX_T.
767 (__pthread_internal_list): Check __x86_64__ instead of __WORDSIZE.
768 (pthread_mutex_t): Likewise.
769 (pthread_rwlock_t): Likewise.
770 (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New. Defined if __x86_64__
773 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
775 * sysdeps/x86_64/x32/tls.h: New file.
777 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
779 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Use uint64_t on 64-bit
781 (THREAD_SETMEM_NC): Likewise.
783 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
785 * sysdeps/x86_64/tls.h (THREAD_SELF): Replace movq/%q0 with
788 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
790 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
791 (__cleanup_fct_attribute): Check __x86_64__ instead of
794 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
796 * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER): Check
797 __PTHREAD_MUTEX_HAVE_PREV instead of __WORDSIZE.
798 (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Likewise.
799 (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
800 (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
802 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
804 * pthread_create.c (start_thread): Check __PTHREAD_MUTEX_HAVE_PREV
805 instead of __WORDSIZE.
807 2012-05-10 Thomas Schwinge <thomas@schwinge.name>
810 * sysdeps/pthread/bits/libc-lockP.h (__libc_once_get): New macro.
812 2012-05-09 Chung-Lin Tang <cltang@codesourcery.com>
814 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
815 (__pthread_cond_timedwait): Use CFI directives.
816 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
817 (__pthread_cond_wait): Likewise.
818 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Likewise.
819 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
821 2012-05-03 David S. Miller <davem@davemloft.net>
823 * sysdeps/sparc/sparc64/pthread_spin_unlock.S: Fix thinko, we
824 always have to return 0, especially for the pthread_spin_init
826 * sysdeps/sparc/sparc32/pthread_spin_lock.S: Add missing trailing
828 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
829 * sysdeps/sparc/sparc64/pthread_spin_lock.S: Likewise.
831 2012-05-02 David S. Miller <davem@davemloft.net>
833 * sysdeps/sparc/sparc64/pthread_spin_lock.S: New.
834 * sysdeps/sparc/sparc64/pthread_spin_lock.c: Delete.
835 * sysdeps/sparc/sparc64/pthread_spin_unlock.S: New.
836 * sysdeps/sparc/sparc64/pthread_spin_unlock.c: Delete.
837 * sysdeps/sparc/sparc64/pthread_spin_trylock.S: New.
838 * sysdeps/sparc/sparc64/pthread_spin_trylock.c: Delete.
839 * sysdeps/sparc/sparc64/pthread_spin_init.c: New.
840 * sysdeps/sparc/sparc32/pthread_spin_lock.S: New.
841 * sysdeps/sparc/sparc32/pthread_spin_lock.c: Delete.
842 * sysdeps/sparc/sparc32/pthread_spin_trylock.S: New.
843 * sysdeps/sparc/sparc32/pthread_spin_trylock.c: Delete.
844 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: New.
845 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: Delete.
846 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: New.
847 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: Delete.
848 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: New.
849 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: Delete.
850 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: New.
852 2012-05-02 Allan McRae <allan@archlinux.org>
854 * Makefile: (LDFLAGS-tst-tls5): Use $(no-as-needed).
855 (LDFLAGS-tst-cancel24): Likewise.
857 2012-05-02 Paul Pluzhnikov <ppluzhnikov@google.com>
859 * sysdeps/i386/pthread_spin_lock.S: New.
860 * sysdeps/i386/pthread_spin_lock.c: Delete.
861 * sysdeps/x86_64/pthread_spin_lock.S: New.
862 * sysdeps/x86_64/pthread_spin_lock.c: Delete.
864 2012-04-28 Andreas Schwab <schwab@linux-m68k.org>
866 * Makefile ($(objpfx)tst-stack3-mem, $(objpfx)tst-tls6.out): Don't
867 run when cross-compiling.
869 2012-04-26 Siddhesh Poyarekar <siddhesh@redhat.com>
871 * sysdeps/pthread/unwind-forcedunwind.c: Include gnu/lib-names.h
872 instead of libgcc_s.h.
874 2012-04-20 Paul Pluzhnikov <ppluzhnikov@google.com>
876 * sysdeps/x86_64/tls.h (TLS_GET_FS, TLS_SET_FS): Delete.
878 2012-03-27 David S. Miller <davem@davemloft.net>
880 * tst-cond16.c (do_test): Use a thread stack size which is either
881 PTHREAD_STACK_MIN or the page size, whichever is larger.
882 * tst-cond18.c (do_test): Likewise.
884 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
886 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Use
887 register char * __asm__("rsp") to get stack frame.
889 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
891 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (SYS_futex): Use
894 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
896 * unwind.c (unwind_stop): Cast _Unwind_GetCFA return to
899 2012-03-16 David S. Miller <davem@davemloft.net>
902 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: Include using <..>
904 * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c:
907 2012-03-15 David S. Miller <davem@davemloft.net>
910 * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: New file.
912 2012-03-09 Paul Eggert <eggert@cs.ucla.edu>
915 * pt-crti.S: Replace FSF snail mail address with URL.
917 2012-03-09 Joseph Myers <joseph@codesourcery.com>
919 * sysdeps/pthread/pthread.h (__need_clockid_t, __need_timespec):
920 Do not define before including <time.h>.
922 2012-03-08 David S. Miller <davem@davemloft.net>
924 * sysdeps/unix/sysv/linux/sparc/sem_post.c: Update copyright year.
926 2012-03-08 Thomas Schwinge <thomas@codesourcery.com>
928 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
929 Check for timestamp before the Epoch.
931 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Fix
934 * tst-sem13.c (do_test): Add another test case.
935 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
936 Fix updating nwaiters.
938 2012-03-07 Joseph Myers <joseph@codesourcery.com>
941 * sysdeps/pthread/configure.in (libc_cv_forced_unwind): Change
942 link test to a compile test.
943 (libc_cv_c_cleanup): Likewise. Declare puts rather than including
945 * sysdeps/pthread/configure: Regenerated.
947 2012-03-07 Ulrich Drepper <drepper@gmail.com>
949 * Makefile (distribute): Remove variable.
951 2012-01-23 Thomas Schwinge <thomas@codesourcery.com>
953 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Get rid of
954 superfluous assignment.
955 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c (sem_timedwait):
957 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
958 (sem_timedwait): Likewise.
960 2012-03-06 Ulrich Drepper <drepper@gmail.com>
962 * sysdeps/pthread/bits/libc-lock.h: Move information not needed in
963 installed headers to...
964 * sysdeps/pthread/bits/libc-lockP.h: ...here. New file.
966 2012-03-06 David S. Miller <davem@davemloft.net>
968 * sysdeps/unix/sysv/linux/sparc/sem_post.c (__new_sem_post): Use
969 atomic_increment and remove unused local variable.
970 (__old_sem_post): Likewise.
972 2012-02-27 David S. Miller <davem@davemloft.net>
974 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Don't refer to
975 non-existing __pthread_attr.
976 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
977 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
978 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
979 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
980 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
982 2012-02-26 Ulrich Drepper <drepper@gmail.com>
984 * sysdeps/pthread/pthread.h: Define __need_clockid_t for __USE_XOPEN2K.
986 * sysdeps/pthread/pthread.h: Define __need_timespec before including
988 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Name pthread_attr_t
990 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
991 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
992 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
993 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
994 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
996 2012-02-21 Joseph Myers <joseph@codesourcery.com>
999 * Makefile (generated): Remove crti.S, crtn.S, defs.h and
1001 [crti.S not in sysdirs] (omit-deps): Do not append.
1002 [crti.S not in sysdirs] (CFLAGS-pt-initfini.s): Remove variable.
1003 [crti.S not in sysdirs] (pt-initfini.c): Remove vpath directive.
1004 [crti.S not in sysdirs] ($(objpfx)crti.S): Remove rule.
1005 [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
1006 [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
1007 [crti.S not in sysdirs] ($(objpfx)crti.o): Likewise.
1008 [crti.S not in sysdirs] ($(objpfx)crtn.o): Likewise.
1009 [crti.S in sysdirs] (extra-objs): Append unconditionally.
1010 [crti.S in sysdirs] ($(objpfx)crti.o): Define rule
1012 * sysdeps/pthread/pt-initfini.c: Remove file.
1014 2012-02-16 Richard Henderson <rth@twiddle.net>
1016 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: Remove file.
1017 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: Remove file.
1019 2012-02-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1021 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: Remove file.
1023 2012-02-16 David S. Miller <davem@davemloft.net>
1025 * sysdeps/sparc/Makefile: Add -fPIC when building pt-crti.S and crtn.S
1027 2012-02-15 Marek Polacek <polacek@redhat.com>
1029 * sysdeps/unix/sysv/linux/x86_64/Makefile: Remove file.
1031 2012-02-09 Paul Eggert <eggert@cs.ucla.edu>
1033 Replace FSF snail mail address with URLs, as per GNU coding standards.
1035 2012-02-08 Andreas Schwab <schwab@linux-m68k.org>
1037 * Makefile (extra-objs) [crti.S in sysdirs]: Add pt-crti.o.
1039 2012-02-08 Joseph Myers <joseph@codesourcery.com>
1041 Support crti.S and crtn.S provided directly by architectures.
1042 * Makefile [crti.S in sysdirs] (omit-deps): Do not append.
1043 [crti.S in sysdirs] (CFLAGS-pt-initfini.s): Do not define variable.
1044 [crti.S in sysdirs] ($(objpfx)pt-initfini.s): Disable rule.
1045 [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
1046 [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
1047 [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
1048 [crti.S in sysdirs] ($(objpfx)crti.o): Likewise.
1049 [crti.S in sysdirs] ($(objpfx)crtn.o): Likewise.
1050 [crti.S in sysdirs] (pt-initfini.c): Remove vpath directive.
1051 [crti.S in sysdirs] ($(objpfx)crti.o): New rule.
1052 * pt-crti.S: New file.
1053 * sysdeps/unix/sysv/linux/i386/Makefile: Remove file.
1055 2012-02-03 Joseph Myers <joseph@codesourcery.com>
1057 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
1058 macros for PIC register setup.
1059 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
1060 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
1061 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
1062 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
1063 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
1065 2012-01-11 Marek Polacek <polacek@redhat.com>
1067 * forward.c (FORWARD_NORETURN): Define macro.
1068 (__pthread_unwind): Use FORWARD_NORETURN macro to avoid warning.
1069 (__pthread_exit): Likewise.
1071 2012-01-10 Ulrich Drepper <drepper@gmail.com>
1073 * sysdeps/pthread/pthread.h: Add const attribute to pthread_equal.
1075 * pthreadP.h: Add noreturn to __pthread_exit.
1076 * sysdeps/pthread/pthread-functions.h: Likewise for ptr___pthread_exit.
1078 2011-12-30 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1080 * sysdeps/unix/sysv/linux/aio_misc.h (__aio_create_helper_thread):
1081 Call pthread_attr_setstacksize() with result of
1082 __pthread_get_minstack() to account for application TLS usage.
1084 2012-01-08 Marek Polacek <polacek@redhat.com>
1086 * sysdeps/unix/sysv/linux/mq_notify.c: Include <nptl/pthreadP.h>.
1088 2012-01-07 Ulrich Drepper <drepper@gmail.com>
1091 * pthreadP.h: Use const instead of __const.
1092 * semaphore.h: Likewise.
1093 * sysdeps/pthread/bits/libc-lock.h: Likewise.
1094 * sysdeps/pthread/bits/sigthread.h: Likewise.
1095 * sysdeps/pthread/pthread.h: Likewise.
1097 * Makefile: Remove elf=yes test, only ELF is supported.
1099 * shlib-versions: Remove entries for ports architectures.
1101 In case anyone cares, the IA-64 architecture could move to ports.
1102 * sysdeps/ia64/*: Removed.
1103 * sysdeps/unix/sysv/linux/ia64/*: Removed.
1105 2011-12-22 Ulrich Drepper <drepper@gmail.com>
1107 * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread): Use
1108 __pthread_get_minstack.
1109 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
1112 * sysdeps/unix/sysv/linux/timer_routines.c: Get minimum stack size
1113 through __pthread_get_minstack.
1114 * nptl-init.c (__pthread_initialize_minimal_internal): Get page size
1115 directly from _rtld_global_ro.
1116 (__pthread_get_minstack): New function.
1117 * pthreadP.h: Declare __pthread_get_minstack.
1118 * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_get_minstack.
1120 2011-12-21 Ulrich Drepper <drepper@gmail.com>
1123 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1124 Correct reading name from file.
1126 2011-12-14 Carlos O'Donell <carlos@systemhalted.org>
1128 * allocatestack.c (allocate_stack): Return errno on failure.
1130 2011-12-14 Jeff Law <law@redhat.com>
1133 * pthread_create.c (__pthread_create_2_1): Translate ENOMEM to EAGAIN.
1135 2011-11-28 Andreas Schwab <schwab@redhat.com>
1137 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Handle
1138 EAGAIN from FUTEX_WAIT_REQUEUE_PI.
1139 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1141 2011-11-15 Ulrich Drepper <drepper@gmail.com>
1143 * pthread_getattr_np.c (pthread_getattr_np): Set FD_CLOEXEC for
1146 2011-10-29 Ulrich Drepper <drepper@gmail.com>
1149 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1150 (__pthread_cond_timedwait): Initialize %r15 correctly also for code
1151 path for kernels with FUTEX_CLOCK_REALTIME.
1152 Debugged by H.J. Lu <hjl.tools@gmail.com>.
1154 2011-10-27 Andreas Schwab <schwab@redhat.com>
1157 * sysdeps/pthread/pthread.h: Use __THREADNL instead of __THREAD
1158 for memory synchronization functions.
1159 * semaphore.h: Likewise.
1161 2011-10-24 Ulrich Drepper <drepper@gmail.com>
1163 * tst-cancel7.c: Avoid warning.
1164 * tst-mutex6.c: Likewise.
1165 * tst-mutex9.c: Likewise.
1166 * tst-mutexpi6.c: Likewise.
1168 2011-10-23 Ulrich Drepper <drepper@gmail.com>
1170 * sysdeps/i386/tls.h: Remove #include <list.h>.
1172 2011-10-15 Ulrich Drepper <drepper@gmail.com>
1174 * pthread_create.c (start_thread): Call __ctype_init.
1176 2011-09-15 Andreas Schwab <schwab@redhat.com>
1178 * sysdeps/pthread/list.h: Define only list_t if __need_list_t is
1180 (list_add): Add atomic_write_barrier.
1181 * descr.h: Define __need_list_t before including <list.h>.
1182 * nptl-init.c: Include <list.h>
1183 * allocatestack.c: Likewise.
1185 2011-09-11 Ulrich Drepper <drepper@gmail.com>
1187 * sysdeps/i386/tls.h: Remove HAVE_TLS_SUPPORT test.
1188 * sysdeps/ia64/tls.h: Likewise.
1189 * sysdeps/powerpc/tls.h: Likewise.
1190 * sysdeps/s390/tls.h: Likewise.
1191 * sysdeps/sh/tls.h: Likewise.
1192 * sysdeps/sparc/tls.h: Likewise.
1193 * sysdeps/x86_64/tls.h: Likewise.
1195 2011-09-10 Ulrich Drepper <drepper@gmail.com>
1197 * sysdeps/pthread/malloc-machine.h: Define MUTEX_INITIALIZER.
1199 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Don't handle
1201 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
1202 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
1203 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
1204 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
1205 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
1206 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
1207 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
1208 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
1209 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
1210 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
1211 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
1212 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
1214 * tst-tls1.c: Support for __thread is now mandatory.
1215 * tst-tls2.c: Likewise.
1216 * tst-tls3.c: Likewise.
1217 * tst-tls3mod.c: Likewise.
1218 * tst-tls4.c: Likewise.
1219 * tst-tls4moda.c: Likewise.
1220 * tst-tls4modb.c: Likewise.
1221 * tst-tls5.h: Likewise.
1223 2011-09-08 Ulrich Drepper <drepper@gmail.com>
1226 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
1227 (pthread_rwlock_timedwrlock): Use correct macro in test.
1228 Patch by H.J. Lu <hongjiu.lu@intel.com>.
1230 2011-09-06 Ulrich Drepper <drepper@gmail.com>
1232 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait): Don't
1233 use gettimeofday vsyscall, just call gettimeofday.
1234 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1235 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
1236 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
1238 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
1240 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1241 Simplify __vdso_clock_gettime use.
1243 2011-09-05 David S. Miller <davem@davemloft.net>
1245 * sysdeps/unix/sysv/linux/sem_timedwait.c (do_futex_timed_wait):
1247 (sem_timedwait): Call it to force an exception region around
1248 the async cancel enable and the futex operation.
1249 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Likewise.
1250 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Likewise.
1251 * sysdeps/unix/sysv/linux/sem_wait.c (do_futex_wait): New function.
1252 (__new_sem_wait): Call it to force an exception region around
1253 the async cancel enable and the futex operation.
1254 * sysdeps/unix/sysv/linux/sparc/sem_wait.c: Likewise.
1255 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Likewise.
1257 2011-08-31 Andreas Schwab <schwab@redhat.com>
1259 * allocatestack.c (setxid_mark_thread): Ensure that the exiting
1262 2011-08-20 David S. Miller <davem@davemloft.net>
1264 * Makefile (tst-cleanup0.out): Fix typo in output redirection.
1266 2011-08-14 Roland McGrath <roland@hack.frob.com>
1268 * sysdeps/i386/pthreaddef.h (TCB_ALIGNMENT): Set to 64, optimal on Atom.
1269 * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Likewise.
1271 2011-08-08 Andreas Schwab <schwab@redhat.com>
1273 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Maintain aligned
1275 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1276 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1278 2011-07-22 Ulrich Drepper <drepper@gmail.com>
1280 * sysdeps/pthread/unwind-forcedunwind.c (_Unwind_Resume): Add read
1282 (__gcc_personality_v0): Likewise.
1283 (_Unwind_ForcedUnwind): Likewise.
1284 (_Unwind_GetCFA): Likewise.
1286 2011-07-14 Roland McGrath <roland@hack.frob.com>
1288 * allocatestack.c (__reclaim_stacks): Use uintptr_t cast rather than
1291 2011-06-30 Ulrich Drepper <drepper@gmail.com>
1293 * nptl-init.c (__nptl_set_robust): New function.
1294 (pthread_functions): Add reference.
1295 * npthreadP.h: Declare __nptl_set_robust.
1296 * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
1297 ptr_set_robust member.
1298 * sysdeps/unix/sysv/linux/fork.c: Call set_robust_list syscall in
1299 child if threads are used.
1301 2011-06-14 Andreas Jaeger <aj@suse.de>
1303 * pthread_rwlock_init.c: Include <string.h> for memset declaration.
1305 2011-05-11 Ulrich Drepper <drepper@gmail.com>
1308 * allocatestack.c (allocate_stack): Convert ENOMEM error to EAGAIN.
1310 2011-04-10 Ulrich Drepper <drepper@gmail.com>
1313 * allocatestack.c (get_cached_stack): Deallocate DTV entries before
1315 Patch partly by Robert Rex <robert.rex@exasol.com>.
1317 2011-01-19 Roland McGrath <roland@redhat.com>
1319 * pthread_cond_wait.c (__pthread_cond_wait): Fix comment typo.
1320 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
1321 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Likewise.
1322 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
1323 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise.
1324 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Likewise.
1326 2011-01-16 Andreas Schwab <schwab@linux-m68k.org>
1328 * Makefile (test-extras): Add tst-cleanup4aux.
1330 2011-01-14 Ulrich Drepper <drepper@gmail.com>
1333 * sysdeps/pthread/setxid.h (__SETXID_1): Add cast to assignment.
1334 (__SETXID_2): Likewise.
1335 (__SETXID_3): Likewise.
1337 2011-01-13 Ulrich Drepper <drepper@gmail.com>
1340 * Versions [libc] (GLIBC_PRIVATE): Export __libc_alloca_cutoff.
1341 * alloca_cutoff.c: Add libc_hidden_def.
1343 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
1346 * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Changed to 32.
1347 * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Defined with alignment
1348 of "struct pthread".
1350 2010-09-21 Andreas Schwab <schwab@redhat.com>
1352 * sysdeps/pthread/pthread.h (pthread_cleanup_push)
1353 [!__EXCEPTIONS]: Mangle local variable not_first_call.
1354 (pthread_cleanup_push_defer_np): Likewise.
1356 2010-09-03 Ulrich Drepper <drepper@redhat.com>
1358 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Expect blocks are
1361 2010-08-10 Dinakar Guniguntala <dino@in.ibm.com>
1362 Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
1364 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: If
1365 FUTEX_WAKE_OP fails make sure to call FUTEX_WAKE instead.
1367 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
1369 * sysdeps/unix/sysv/linux/i386/Makefile: New file.
1371 2010-05-01 Alan Modra <amodra@gmail.com>
1373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
1374 (PSEUDO): Use correct cr save. Don't use wrong parm save area
1375 to save temps. Correct cfi for possible later frame manipulation.
1376 (DOCARGS_1, UNDOCARGS_1): Use the correct parm save area.
1377 (DOCARGS_2, UNDOCARGS_2, DOCARGS_3, UNDOCARGS_3): Likewise.
1378 (DOCARGS_4, UNDOCARGS_4, DOCARGS_5, UNDOCARGS_5): Likewise.
1379 (DOCARGS_6, UNDOCARGS_6): Likewise.
1380 (CENABLE, CDISABLE): Add nops for non-shared calls.
1382 2010-07-06 Andreas Schwab <schwab@redhat.com>
1384 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1387 2010-07-03 Ulrich Drepper <drepper@redhat.com>
1389 * tst-abstime.c (do_test): Some more cleanups
1391 2010-07-02 Ulrich Drepper <drepper@redhat.com>
1393 * tst-abstime.c: Correct testing and add test for sem_timedwait.
1395 2010-07-01 Andreas Schwab <schwab@redhat.com>
1396 Ulrich Drepper <drepper@redhat.com>
1398 * Makefile (tests): Add tst-abstime.
1399 * tst-abstime.c: New file.
1400 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1401 (__lll_timedlock_wait): Check for timestamp before the Epoch.
1402 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
1403 (__lll_timedlock_wait): Likewise.
1404 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
1405 (__lll_robust_timedlock_wait): Likewise.
1406 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1407 (__pthread_cond_timedwait): Likewise.
1408 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
1409 (pthread_rwlock_timedrdlock): Likewise.
1410 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
1411 (pthread_rwlock_timedwrlock): Likewise.
1412 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
1415 2010-07-01 Ulrich Drepper <drepper@redhat.com>
1417 * Makefile (tst-_res1): Add tst-_res1mod1 to dependency list.
1419 2010-06-01 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
1421 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Fix incorrect
1422 location of ifndef __ASSUME_FUTEX_CLOCK_REALTIME.
1424 2010-04-09 Ulrich Drepper <drepper@redhat.com>
1427 * sysdeps/unix/sysv/linux/pthread_getname.c: New file.
1428 * sysdeps/unix/sysv/linux/pthread_setname.c: New file.
1429 * nptl/sysdeps/pthread/pthread.h: Declare pthread_getname and
1431 * Makefile (libpthread-routines): Add pthread_getname and
1433 * Versions: Export pthread_getname and pthread_setname for GLIBC_2.12.
1435 2010-04-05 Thomas Schwinge <thomas@schwinge.name>
1437 * sysdeps/pthread/unwind-resume.c: Moved to main tree sysdeps/gnu/.
1438 * sysdeps/pthread/rt-unwind-resume.c: Likewise.
1439 * sysdeps/pthread/Makefile: Remove csu section and rt section's
1440 unwind-resume bits, now in main tree sysdeps/gnu/Makefile instead.
1442 2010-03-23 Luis Machado <luisgpm@br.ibm.com>
1444 * pthread_cond_timedwait.c: Add check for
1445 HAVE_CLOCK_GETTIME_VSYSCALL to use VDSO whenever possible.
1446 (pthread_cond_timedwait): Use INTERNAL_VSYSCALL instead of
1449 2010-03-09 Ulrich Drepper <drepper@redhat.com>
1451 * pthread_create.c (__pthread_create_2_1): If priorities are incorrect
1452 and the call fails wake eventually waiting setxid threads. Don't free
1453 stack here if we try starting a thread.
1454 * sysdeps/pthread/createthread.c (do_clone): Only wake setxid waiter
1455 if the clone call failed.
1457 2010-03-08 Andreas Schwab <schwab@redhat.com>
1459 * pthread_create.c (__pthread_create_2_1): Don't set setxid_futex.
1460 * allocatestack.c (get_cached_stack): Set setxid_futex.
1461 (allocate_stack): Likewise.
1463 2010-03-05 Andreas Schwab <schwab@redhat.com>
1464 Ulrich Drepper <drepper@redhat.com>
1466 * allocatestack.c (setxid_mark_thread): Delay handling of thread if
1467 it is creating a thread or it is just being created.
1468 * pthread_create.c (start_thread): Wake setxid thread if it is
1470 (__pthread_create_2_1): Initialize setxid_futex.
1471 * sysdeps/pthread/createthread.c (do_clone): Wake setxid thread if it
1474 2010-01-15 Ulrich Drepper <drepper@redhat.com>
1476 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
1478 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
1480 2010-01-15 Michal Schmidt <mschmidt@redhat.com>
1482 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
1483 Fix pthread_cond_timedwait with requeue-PI.
1484 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
1485 Fix pthread_cond_wait with requeue-PI.
1487 2010-01-14 Ulrich Drepper <drepper@redhat.com>
1489 * Versions: Add pthread_mutex_consistent, pthread_mutexattr_getrobust,
1490 and pthread_mutexattr_setrobust for GLIBC_2.12.
1491 * pthread_mutex_consistent.c: Define alias pthread_mutex_consistent.
1492 * pthread_mutexattr_getrobust.c: Define alias
1493 pthread_mutexattr_getrobust.
1494 * pthread_mutexattr_setrobust.c: Define alias
1495 pthread_mutexattr_setrobust.
1497 2010-01-12 Ulrich Drepper <drepper@redhat.com>
1499 * sysdeps/pthread/pthread.h: Cleanup. Fix up for XPG7.
1501 2010-01-08 Ulrich Drepper <drepper@redhat.com>
1503 * sysdeps/pthread/pthread.h: Fix pthread_mutex_consistent declaration.
1505 2009-12-18 Thomas Schwinge <thomas@codesourcery.com>
1507 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c (_init): Don't
1508 call __gmon_start__.
1509 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c (_init): Likewise.
1511 2009-12-17 Ulrich Drepper <drepper@redhat.com>
1513 * pthread_rwlock_init.c (__pthread_rwlock_init): Simplify code by
1516 2009-12-01 Dinakar Guniguntala <dino@in.ibm.com>
1518 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.h: Define
1519 FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
1520 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: If mutex
1521 is a non robust PI mutex, then use FUTEX_CMP_REQUEUE_PI.
1522 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
1523 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: If mutex
1524 is a non robust PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
1525 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
1527 2009-12-12 Ulrich Drepper <drepper@redhat.com>
1529 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
1530 Don't update nwaiters after invalid timeout is recognized.
1532 2009-11-27 Thomas Schwinge <thomas@codesourcery.com>
1534 * sysdeps/unix/sysv/linux/sh/pt-initfini.c (_init): Don't call
1537 2009-11-27 Andreas Schwab <schwab@redhat.com>
1539 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Reload
1540 THREAD_SELF->cancelhandling after returning from futex call.
1542 2009-11-24 Ulrich Drepper <drepper@redhat.com>
1544 * tst-sem13.c: New file.
1545 * Makefile (tests): Add tst-sem13.
1547 2009-11-22 Roland McGrath <roland@redhat.com>
1549 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: # include "i686/dl-sysdep.h"
1550 instead of recapitulating its contents.
1552 2009-11-18 Ulrich Drepper <drepper@redhat.com>
1554 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Minor
1555 optimizations and cleanups.
1557 2009-11-18 Dinakar Guniguntala <dino@in.ibm.com>
1559 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
1560 Remove redundant code. Fix cfi offsets.
1561 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
1564 2009-11-17 Ulrich Drepper <drepper@redhat.com>
1566 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Minimally
1567 reduce size of unwind info.
1569 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Convert to use
1571 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1572 Based on a patch by Dinakar Guniguntala <dino@in.ibm.com>.
1574 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
1577 * sysdeps/pthread/unwind-resume.c: Include <libgcc_s.h> and use
1579 * sysdeps/pthread/unwind-forcedunwind.c: Likewise.
1581 2009-10-30 Ulrich Drepper <drepper@redhat.com>
1583 * tst-sem11.c (main): Rewrite to avoid aliasing problems.
1586 * allocatestack.c (__nptl_setxid): Perform the operation in multiple
1587 steps to avoid races with creation and terminations.
1588 * nptl-init.c (sighandler_setxid): Adjust.
1589 Patch by Daniel Jacobowitz.
1591 2009-09-07 Andreas Schwab <schwab@redhat.com>
1593 * sysdeps/pthread/bits/libc-lock.h (BP_SYM): Remove space before paren.
1595 2009-09-02 Suzuki K P <suzuki@in.ibm.com>
1596 Joseph Myers <joseph@codesourcery.com>
1599 * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
1600 Initialize the sigev_notify field for newly created timer to make sure
1601 the timer gets deleted from the active timer's list upon timer_delete.
1603 2009-08-27 Andrew Stubbs <ams@codesourcery.com>
1605 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
1606 Correct a logic error.
1608 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1610 * sysdeps/x86_64/tls.h (RTLD_ENABLE_FOREIGN_CALL): Store old value
1611 of the field in local variables.
1612 (RTLD_FINALIZE_FOREIGN_CALL): Restore rtld_must_xmm_save from local
1613 variable and don't unconditionally clear it.
1615 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1617 * pthread_create.c (start_thread): Hint to the kernel that memory for
1618 the stack can be reused. We do not mark all the memory. The part
1619 still in use and some reserve are kept.
1621 2009-08-23 Ulrich Drepper <drepper@redhat.com>
1623 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Clean up namespace.
1625 2009-08-11 Ulrich Drepper <drepper@redhat.com>
1627 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Add CFI
1630 2009-08-10 Ulrich Drepper <drepper@redhat.com>
1632 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Add CFI
1634 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
1636 2009-08-10 Andreas Schwab <schwab@redhat.com>
1638 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
1639 (__pthread_cond_signal): Don't clobber register used for syscall
1642 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1644 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
1645 Optimize code path used when FUTEX_CLOCK_REALTIME is supported.
1647 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1648 (__pthread_cond_wait): Optimize by avoiding use of callee-safe
1651 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1653 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Little optimizations
1654 enabled by the special *_asynccancel functions.
1655 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1656 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1658 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include lowlevellock.h.
1660 2009-08-04 Ulrich Drepper <drepper@redhat.com>
1662 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: New file.
1663 * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: New file.
1664 * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: New file.
1665 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Optimize
1666 since we can assume the special __*_{en,dis}able_asynccancel
1668 (PUSHARGS_*, POPARGS_*, SAVESTK_*, RESTSTK_*): Removed.
1669 * sysdeps/x86_64/tcb-offsets.sym: Add cancellation-related bits
1670 and PTHREAD_CANCELED.
1672 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1674 * descr.h: Better definition of *_BITMASK macros for cancellation.
1676 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1678 * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Define explicitly to 32.
1680 * sysdeps/x86_64/tls.h (tcbhead_t): Add room for SSE registers the
1681 dynamic linker might have to save.
1682 Define RTLD_CHECK_FOREIGN_CALL, RTLD_ENABLE_FOREIGN_CALL,
1683 RTLD_PREPARE_FOREIGN_CALL, and RTLD_FINALIZE_FOREIGN_CALL. Pretty
1686 * sysdeps/x86_64/tcb-offsets.sym: Add RTLD_SAVESPACE_SSE.
1688 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1690 * pthread_mutex_lock.c [NO_INCR] (__pthread_mutex_cond_lock_adjust):
1692 * pthreadP.h: Declare __pthread_mutex_cond_lock_adjust.
1693 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add ROBUST_BIT.
1694 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Don't use
1695 requeue_pi for robust mutexes.
1696 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
1697 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1698 Don't only skip __pthread_mutex_cond_lock. Call instead
1699 __pthread_mutex_cond_lock_adjust.
1700 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1702 * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Minor
1703 optimization of PI mutex handling.
1705 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1708 * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Use _rel
1709 instead of of _acq variants of cmpxchg.
1711 2009-07-23 Ulrich Drepper <drepper@redhat.com>
1713 * sysdeps/x86_64/configure.in: New file.
1715 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix error
1716 path when not using absolute timeout futex.
1718 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1720 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Minor
1721 optimizations of last changes.
1722 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1724 2009-07-19 Ulrich Drepper <drepper@redhat.com>
1726 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
1727 FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
1728 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: If mutex
1729 is a PI mutex, then use FUTEX_CMP_REQUEUE_PI.
1730 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
1731 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: If mutex
1732 is a PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
1733 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1735 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1736 (__pthread_cond_timedwait): Make more robust.
1738 2009-07-18 Ulrich Drepper <drepper@redhat.com>
1740 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
1741 (__lll_robust_timedlock_wait): If possible use FUTEX_WAIT_BITSET to
1742 directly use absolute timeout.
1744 * tst-sem5.c (do_test): Add test for premature timeout.
1745 * Makefile: Linu tst-sem5 with librt.
1747 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
1748 (pthread_rwlock_timedwrlock): If possible use FUTEX_WAIT_BITSET to
1749 directly use absolute timeout.
1750 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
1751 (pthread_rwlock_timedrdlock): Likewise.
1753 * tst-cond11.c (run_test): Add test to check that the timeout is
1756 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1757 (__pthread_cond_timedwait): If possible use FUTEX_WAIT_BITSET to
1758 directly use absolute timeout.
1760 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1761 (__pthread_cond_wait): Convert to using exception handler instead of
1762 registered unwind buffer.
1763 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1764 (__pthread_cond_timedwait): Likewise.
1766 2009-07-17 Ulrich Drepper <drepper@redhat.com>
1768 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
1769 If possible use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME to directly
1770 use absolute timeout.
1772 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Optimize
1773 handling of uncontested semaphore.
1775 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1776 (__condvar_cleanup): Rewrite to use cfi directives instead of
1777 hand-coded unwind tables.
1778 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S (__pthread_once):
1780 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
1781 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
1784 2009-06-12 Ulrich Drepper <drepper@redhat.com>
1786 * Makefile (libpthread-routines): Add pthread_sigqueue.
1787 * Versions: Add pthread_sigqueue for GLIBC_2.11.
1788 * sysdeps/pthread/bits/sigthread.h: Declare pthread_sigqueue.
1789 * sysdeps/unix/sysv/linux/pthread_sigqueue.c: New file.
1791 2009-06-11 Ulrich Drepper <drepper@redhat.com>
1794 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1795 (LOAD_FUTEX_WAIT_ABS): Fix futex parameter in case private futexes
1797 Patch by Bryan Kadzban <bz-glibc@kdzbn.homelinux.net>.
1799 2009-05-16 Ulrich Drepper <drepper@redhat.com>
1801 * libc-cancellation.c: Move __libc_cleanup_routine to...
1802 * libc-cleanup.c: ...here. New file.
1803 * Makefile (routines): Add libc-cleanup.
1805 * cancellation.c (__pthread_disable_asynccancel): Remove unnecessary
1807 * libc-cancellation.c: Use <nptl/cancellation.c: to define the code.
1808 * sysdeps/pthread/librt-cancellation.c: Likewise.
1811 * nptl-init.c: Renamed from init.c.
1812 * Makefile: Change all occurences of init.c to nptl-init.c.
1814 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1816 * cancellation.c (__pthread_disable_asynccancel): Correct the bits
1817 to test when deciding on the delay.
1818 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
1819 * pthread_cancel.c: Close race between deciding on sending a signal
1820 and setting the CANCELING_BIT bit.
1822 * cancellation.c (__pthread_disable_asynccancel): Don't return if
1824 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
1826 2009-04-27 Ulrich Drepper <drepper@redhat.com>
1828 * cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND
1830 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
1831 * sysdeps/x86_64/tls.h: Define THREAD_ATOMIC_AND.
1832 * sysdeps/i386/tls.h: Likewise.
1833 (tcbhead_t): Add __private_tm member.
1835 2009-04-26 Ulrich Drepper <drepper@redhat.com>
1837 * sem_open.c (sem_open): Rewrite initialization of initsem to
1840 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
1841 Avoid warning by using may_alias attribute on ptrhack.
1843 2009-04-22 Ulrich Drepper <drepper@redhat.com>
1846 * pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
1847 Check policy and priority for validity.
1848 Patch mostly by Zhang Xiliang <zhangxiliang@cn.fujitsu.com>.
1850 2009-03-15 Ulrich Drepper <drepper@redhat.com>
1852 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1853 (__pthread_cond_timedwait): Change to use cfi directives instead of
1854 hand-coded unwind sections.
1856 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1858 * init.c (nptl_freeres): Compile only for SHARED.
1860 2009-03-09 Jakub Jelinek <jakub@redhat.com>
1862 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define
1863 FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME and
1864 FUTEX_BITSET_MATCH_ANY.
1866 2009-02-27 Roland McGrath <roland@redhat.com>
1868 * init.c (__nptl_initial_report_events): Mark __attribute_used__.
1869 * pthread_create.c (__nptl_threads_events, __nptl_last_event): Likewise.
1871 2009-02-26 Ulrich Drepper <drepper@redhat.com>
1873 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1874 _POSIX_THREAD_ROBUST_PRIO_INHERIT and
1875 _POSIX_THREAD_ROBUST_PRIO_PROTECT. Reset value of macros from
1878 2009-02-25 Ulrich Drepper <drepper@redhat.com>
1880 * sysdeps/pthread/pthread.h: The robust mutex functions are in
1883 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1885 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_BITS_POSIX_OPT_H):
1886 Unify name of include protector macro.
1888 2009-02-14 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1890 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
1891 LOAD_FUTEX_WAIT_ABS even if (FUTEX_WAIT == 0).
1893 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1895 * sysdeps/pthread/unwind-forcedunwind.c: Encrypt all function
1898 * allocatestack.c (__free_stacks): Renamed from free_stacks.
1899 (__free_stack_cache): Removed. Change callers to call __free_stacks.
1900 * init.c (nptl_freeres): New function.
1901 (pthread_functions): Initialize ptr_freeres to nptl_freeres.
1902 * pthreadP.h: Don't declare __free_stack_cache. Declare __free_stacks.
1903 * sysdeps/pthread/unwind-forcedunwind.c (libgcc_s_handle): New
1905 (pthread_cancel_init): Depend in libgcc_s_handle for decision to
1906 load DSO. Assign last.
1907 (__unwind_freeres): New function.
1909 * allocatestack.c (__reclaim_stacks): Reset in_flight_stack later
1910 for better debugging. No need to use stack_list_add here.
1912 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1914 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
1915 (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
1916 instead of computing relative timeout.
1917 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
1918 FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
1920 2009-01-25 Ulrich Drepper <drepper@redhat.com>
1922 * pthread_mutex_lock.c (__pthread_mutex_lock): Remove unused label out.
1924 2009-01-08 Ulrich Drepper <drepper@redhat.com>
1926 * sysdeps/pthread/list.h (list_add): Initialize new element first.
1927 (list_add_tail): Removed.
1929 2009-01-07 Ulrich Drepper <drepper@redhat.com>
1931 * (in_flight_stack): New variable.
1932 (stack_list_del): New function. Use instead of list_del.
1933 (stack_list_add): New function. Use instead of list_add when adding to
1934 stack_cache and stack_used lists.
1935 (__reclaim_stacks): Complete operations on stack_cache and stack_used lists
1936 when the fork call interrupted another thread.
1938 2009-01-04 Ulrich Drepper <drepper@redhat.com>
1940 * init.c (__pthread_initialize_minimal_internal): Optimize test
1941 FUTEX_CLOCK_REALTIME a bit.
1943 2009-01-03 Ulrich Drepper <drepper@redhat.com>
1945 * init.c (__pthread_initialize_minimal_internal): Cheat a bit by
1946 only passing five parameters to FUTEX_WAIT_BITSET call.
1948 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1949 (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
1950 instead of computing relative timeout.
1952 2009-01-02 Ulrich Drepper <drepper@redhat.com>
1954 * init.c (__pthread_initialize_minimal_internal): Check for
1955 FUTEX_CLOCK_REALTIME flag.
1956 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
1957 Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME instead of computing
1960 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
1961 FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
1962 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1963 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
1964 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
1965 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1967 2008-12-09 Ulrich Drepper <drepper@redhat.com>
1969 * sysdeps/pthread/pthread.h (pthread_cleanup_pop): Use { } as empty
1970 loop body instead of ; to avoid gcc warnings.
1971 (pthread_cleanup_pop_restore_np): Likewise.
1972 Patch by Caolán McNamara <caolanm@redhat.com>.
1974 2008-12-09 Jakub Jelinek <jakub@redhat.com>
1976 * pthread_mutex_lock.c (__pthread_mutex_lock): Handle only the
1977 fast path here, for robust/PI/PP mutexes call
1978 __pthread_mutex_lock_full. Don't use switch, instead use a series
1979 of ifs according to their probability.
1980 (__pthread_mutex_lock_full): New function.
1981 * pthread_mutex_unlock.c: Include assert.h.
1982 (__pthread_mutex_unlock_usercnt): Handle only the
1983 fast path here, for robust/PI/PP mutexes call
1984 __pthread_mutex_unlock_full. Don't use switch, instead use a series
1985 of ifs according to their probability.
1986 (__pthread_mutex_unlock_full): New function.
1987 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
1988 (__pthread_mutex_lock_full): Define.
1990 2008-12-08 Ulrich Drepper <drepper@redhat.com>
1992 * sysdeps/x86_64/tls.h (tcbhead_t): Add fields reserved for TM
1993 implementation. Add necessary padding and.
1994 * descr.h (struct pthread): Increase padding for tcbhead_t to 24
1997 2008-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1999 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define FUTEX_WAIT_BITSET
2000 and FUTEX_WAKE_BITSET.
2002 2008-12-02 Ulrich Drepper <drepper@redhat.com>
2004 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_WAIT_BITSET
2005 and FUTEX_WAKE_BITSET.
2006 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2007 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2008 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2009 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2011 2008-11-25 Roland McGrath <roland@redhat.com>
2013 * sysdeps/alpha, sysdeps/unix/sysv/linux/alpha:
2014 Subdirectories moved to ports repository as
2015 sysdeps/.../nptl subdirectories.
2017 2008-11-12 Jakub Jelinek <jakub@redhat.com>
2020 * pthread_condattr_setclock.c (pthread_condattr_setclock): Fix masking
2022 * pthread_cond_init.c (__pthread_cond_init): Fix
2023 cond->__data.__nwaiters initialization.
2024 * Makefile (tests): Add tst-cond23.
2025 * tst-cond23.c: New test.
2027 2008-11-07 Jakub Jelinek <jakub@redhat.com>
2029 * sysdeps/pthread/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2031 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2034 2008-11-01 Ulrich Drepper <drepper@redhat.com>
2037 * pthread_mutex_lock.c: Add support for private PI mutexes.
2038 * pthread_mutex_timedlock.c: Likewise.
2039 * pthread_mutex_trylock.c: Likewise.
2040 * pthread_mutex_unlock.c: Likewise.
2041 Patch mostly by Ben Jackson <ben@ben.com>.
2043 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2046 * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread):
2047 Increase stack size for helper thread.
2049 2008-10-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2051 * sysdeps/s390/tls.h (THREAD_SET_STACK_GUARD): Add empty inline
2052 assembly with a clobber list for access registers a0 and a1.
2054 2008-09-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
2056 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
2057 to force runp->refcntr to be read from memory.
2059 2008-09-08 Richard Guenther <rguenther@suse.de>
2061 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock,
2062 lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
2063 lll_timedlock, lll_robust_timedlock, lll_unlock,
2064 lll_robust_unlock): Promote private to int.
2066 2008-08-15 Ulrich Drepper <drepper@redhat.com>
2068 * sysdeps/x86_64/pthreaddef.h: Remove ARCH_MAP_FLAGS and
2069 ARCH_RETRY_MMAP definitions.
2070 * allocatestack.c: Remove definition of ARCH_MAP_FLAGS.
2071 Define MAP_STACK when not defined.
2072 (allocate_stack): Use MAP_STACK instead of ARCH_MAP_FLAGS. Remove
2073 handling of ARCH_RETRY_MMAP.
2075 2008-07-30 Ulrich Drepper <drepper@redhat.com>
2077 * tst-align2.c (f): Print message that f is reached.
2079 2008-04-28 Hiroki Kaminaga <kaminaga@sm.sony.co.jp>
2082 * sysdeps/powerpc/tcb-offsets.sym (PRIVATE_FUTEX_OFFSET): Guard symbol
2083 definition with #ifndef __ASSUME_PRIVATE_FUTEX.
2085 2008-07-25 Ulrich Drepper <drepper@redhat.com>
2087 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Use
2088 SOCK_CLOEXEC if possible.
2090 2008-05-29 Ulrich Drepper <drepper@redhat.com>
2092 * Makefile (tests): Add tst-rwlock2a.
2093 * tst-rwlock2.c: Use TYPE macro to decide what rwlock type to use.
2094 * tst-rwlock2a.c: New file.
2096 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2098 * sysdeps/pthread/pthread.h: Remove inadvertant checkin.
2100 2008-05-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2102 * sysdeps/pthread/pthread.h: Fix typo in comment.
2104 2008-05-28 Ulrich Drepper <drepper@redhat.com>
2106 * sysdeps/pthread/createthread.c (do_clone): Pass accurate length
2107 of CPU set to the kernel.
2109 2008-05-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2111 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Add
2113 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
2114 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
2115 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
2116 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
2117 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
2118 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
2120 2008-05-22 Paul Pluzhnikov <ppluzhnikov@google.com>
2122 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: Add
2124 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2126 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2128 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2131 2008-05-26 Ulrich Drepper <drepper@redhat.com>
2133 * tst-typesizes.c: Explicitly check __SIZEOF_PTHREAD_* constants.
2135 2008-05-20 Jakub Jelinek <jakub@redhat.com>
2137 David S. Miller <davem@davemloft.net>
2139 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
2141 2008-05-10 Ulrich Drepper <drepper@redhat.com>
2143 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Access
2144 __pshared correctly.
2145 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2147 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2149 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2151 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2153 Reported by Clemens Kolbitsch <clemens.kol@gmx.at>.
2155 2008-04-14 David S. Miller <davem@davemloft.net>
2157 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
2158 (__old_sem_wait): Fix argument to lll_futex_wait().
2160 2007-11-26 Daniel Jacobowitz <dan@codesourcery.com>
2162 * pthread_create.c: Require pthread_mutex_trylock and
2163 pthread_key_delete for libgcc.
2165 2008-04-08 Jakub Jelinek <jakub@redhat.com>
2168 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
2169 (lll_futex_wake_unlock): Add private argument to the pre-v9 macro.
2170 Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>.
2172 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2174 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine ARG_MAX if
2175 <linux/limits.h> has defined it.
2176 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
2177 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
2178 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
2179 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
2181 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2183 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Use __ASSEMBLER__ instead
2185 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
2186 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Likewise.
2188 2008-03-14 Ulrich Drepper <drepper@redhat.com>
2190 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
2191 HAVE_DL_DISCOVER_OSVERSION.
2192 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
2193 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Likewise.
2195 2008-03-07 Ulrich Drepper <drepper@redhat.com>
2198 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2199 _POSIX_CHOWN_RESTRICTED value to zero.
2201 2008-01-31 Roland McGrath <roland@redhat.com>
2203 * Makefile (omit-deps): Variable removed.
2205 2008-01-30 Ulrich Drepper <drepper@redhat.com>
2207 * sysdeps/unix/sysv/linux/x86_64/sem_post.S (sem_post): Avoid
2208 unnecessary addr32 prefix.
2210 2008-01-29 Roland McGrath <roland@redhat.com>
2212 * Makeconfig (ptw-CPPFLAGS, sysd-rules-patterns): New variables.
2214 2008-01-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2216 * sysdeps/unix/sysv/linux/sh/sem_post.S: Don't overflow value field.
2218 2008-01-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2220 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XADD): Use
2222 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
2223 (__lll_lock_wait_private): Fix typo.
2224 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
2225 (pthread_barrier_wait): Likewise. Adjust XADD use.
2226 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
2228 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
2229 (pthread_rwlock_timedrdlock): Return correct return value.
2230 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
2231 (pthread_rwlock_timedwrlock): Likewise.
2233 2008-01-15 Ulrich Drepper <drepper@redhat.com>
2235 * tst-eintr2.c (do_test): make sure that if mutex_lock in main
2236 thread returns the program exits with an error code.
2238 2008-01-10 Ulrich Drepper <drepper@redhat.com>
2240 * pthread-errnos.sym: Add EOVERFLOW.
2241 * sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX.
2242 * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field.
2243 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
2244 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
2246 2007-12-14 Ulrich Drepper <drepper@redhat.com>
2248 * sysdeps/x86_64/pthreaddef.h (ARCH_RETRY_MMAP): Take additional
2249 parameter. Passed it as permission to mmap.
2250 * allocatestack.c (allocate_stack): Pass prot as second parameter
2253 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2255 * tst-basic7.c: Allocate memory for the stack.
2258 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S [!SHARED]
2259 (__pthread_cond_timedwait): Don't use VDSO.
2260 Patch by Michal Januszewski.
2262 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2265 * sysdeps/pthread/pthread.h [!__EXCEPTIONS] (pthread_cleanup_pop):
2266 Allow label before pthread_cleanup_pop.
2267 (pthread_cleanup_pop_restore_np): Likewise.
2269 2007-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2271 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
2272 Store 2 before returning ETIMEDOUT.
2274 2007-11-23 Ulrich Drepper <drepper@redhat.com>
2276 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
2277 Store 2 before returning ETIMEDOUT.
2278 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise
2279 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
2280 (__lll_lock_wait_private): Optimize.
2281 (__lll_lock_wait): Likewise.
2283 2007-11-20 Jakub Jelinek <jakub@redhat.com>
2285 * sysdeps/pthread/pthread.h (pthread_cleanup_push,
2286 pthread_cleanup_push_defer_np): Add extra (void *) cast to shut up
2287 g++ 4.1 and 4.2 -Wstrict-aliasing warnings.
2289 2007-11-08 Ulrich Drepper <drepper@redhat.com>
2292 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
2293 If we time out, try one last time to lock the futex to avoid
2294 losing a wakeup signal.
2295 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
2296 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2299 * sysdeps/pthread/createthread.c (do_clone): Translate clone error
2302 2007-11-07 Ulrich Drepper <drepper@redhat.com>
2305 * allocatestack.c (allocate_stack): Change ENOMEM error in case
2306 mmap failed to EAGAIN.
2307 * Makefile (tests): Add tst-basic7.
2308 * tst-basic7.c: New file.
2310 2007-11-05 Ulrich Drepper <drepper@redhat.com>
2312 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
2313 Use __linkin_atfork.
2315 2007-11-03 Mike Frysinger <vapier@gentoo.org>
2317 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (LOAD_FUTEX_WAIT): Add
2318 missing line continuations.
2319 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S (LOAD_FUTEX_WAIT,
2320 LOAD_FUTEX_WAKE): Likewise. Also add missing 3rd parameter.
2322 2007-10-28 Ulrich Drepper <drepper@redhat.com>
2325 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Declare
2326 __active_timer_sigev_thread and __active_timer_sigev_thread_lock.
2327 (struct timer): Add next element.
2328 * sysdeps/unix/sysv/linux/timer_create.c: For SIGEV_THREAD timers,
2329 enqueue timer structure into __active_timer_sigev_thread list.
2330 * sysdeps/unix/sysv/linux/timer_delete.c: For SIGEV_THREAD timers,
2331 remove timer struct from __active_timer_sigev_thread.
2332 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
2333 Before using timer structure make sure it is still on the
2334 __active_timer_sigev_thread list. Keep lock until done.
2335 Define __active_timer_sigev_thread and
2336 __active_timer_sigev_thread_lock.
2338 2007-10-27 Ulrich Drepper <drepper@redhat.com>
2340 * sysdeps/pthread/malloc-machine.h: Define ATFORK_MEM.
2341 Redefine thread_atfork for use of ATFORK_MEM.
2342 * sysdeps/unix/sysv/linux/fork.h: Define __linkin_atfork.
2343 * sysdeps/unix/sysv/linux/register-atfork.c (__linkin_atfork): New
2345 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
2346 Use atomic operation when removing first element of list.
2348 2007-10-17 Jakub Jelinek <jakub@redhat.com>
2350 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__old_sem_post): New
2351 routine instead of an alias to __new_sem_post.
2353 2007-10-15 Jakub Jelinek <jakub@redhat.com>
2355 * init.c (__pthread_initialize_minimal): Initialize word to appease
2358 2007-10-10 Jakub Jelinek <jakub@redhat.com>
2360 * sysdeps/pthread/bits/libc-lock.h (__libc_rwlock_init): Inside of
2361 libc.so just clear NAME.
2362 (__libc_rwlock_fini): Nop inside of libc.so.
2363 * tst-initializers1.c (main): Test if PTHREAD_RWLOCK_INITIALIZER is
2366 2007-09-02 Ulrich Drepper <drepper@redhat.com>
2368 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2369 (__pthread_cond_wait): Fix unlocking of internal lock after mutex
2371 Patch by Luca Barbieri <luca.barbieri@gmail.com>.
2373 2007-08-21 Ulrich Drepper <drepper@redhat.com>
2376 * allocatestack.c (__reclaim_stacks): Clear the TSD in the
2377 reclaimed stack if necessary.
2378 * Makefile (tests): Add tst-tsd6.
2379 * tst-tsd6.c: New file.
2381 2007-08-21 Jakub Jelinek <jakub@redhat.com>
2383 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_dead):
2384 Add private argument.
2386 2007-08-20 Ulrich Drepper <drepper@redhat.com>
2388 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2389 (__pthread_cond_timedwait): Use clock_gettime from VDSO if possible.
2391 2007-08-16 Jakub Jelinek <jakub@redhat.com>
2393 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h
2394 (__lll_robust_timedlock): Pass private as last argument to
2395 __lll_robust_timedlock_wait.
2396 (__lll_unlock): Fix a pasto.
2398 2007-08-15 Jakub Jelinek <jakub@redhat.com>
2400 * sysdeps/unix/sysv/linux/sparc/internaltypes.h (sparc_new_sem,
2401 sparc_old_sem): New structs.
2402 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
2403 (__sem_wait_cleanup): New function.
2404 (__new_sem_wait): Use sparc_new_sem structure. Bump and afterwards
2405 decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
2406 Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2408 (__old_sem_wait): New function.
2409 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: Include
2410 nptl/sysdeps/unix/sysv/linux/sparc version.
2411 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
2413 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: Likewise.
2414 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c
2415 (__new_sem_trywait): Use sparc_old_sem structure.
2416 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
2417 (sem_timedwait): Use sparc_new_sem structure. Bump and afterwards
2418 decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
2419 Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2420 lll_futex_timed_wait.
2421 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c (__new_sem_post):
2422 Use sparc_new_sem structure. Only wake if nwaiters > 0. Pass
2423 isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2425 (__old_sem_post): New function.
2426 * sysdeps/unix/sysv/linux/sparc/sem_wait.c: New file.
2427 * sysdeps/unix/sysv/linux/sparc/sem_init.c: New file.
2428 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: New file.
2429 * sysdeps/unix/sysv/linux/sparc/sem_post.c: New file.
2430 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: Remove.
2431 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: Remove.
2433 2007-08-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2435 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
2436 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
2437 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2438 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
2439 * sysdeps/unix/sysv/linux/shpthread_cond_signal.S
2440 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
2441 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2443 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
2444 kernel-features.h and tcb-offsets.h.
2445 (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
2446 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2448 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
2450 (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE
2451 to lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2453 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use #ifdef
2454 __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
2455 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
2456 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
2457 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
2458 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
2459 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
2461 2007-08-14 Jakub Jelinek <jakub@redhat.com>
2463 * sysdeps/unix/sysv/linux/lowlevellock.c: Comment fix.
2464 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
2465 (__lll_timedwait_tid): Pass LLL_SHARED as 4th argument to
2466 lll_futex_timed_wait.
2468 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (__lll_unlock,
2469 __lll_robust_unlock): Rewrite as macros instead of inline functions.
2470 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_unlock,
2471 __lll_robust_unlock, __lll_wait_tid): Likewise.
2473 2007-08-13 Jakub Jelinek <jakub@redhat.com>
2475 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
2477 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
2478 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
2479 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2480 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
2481 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
2482 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
2483 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2484 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Include
2486 (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
2487 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2488 process private. Switch DW_CFA_advance_loc1 and some
2489 DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
2490 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
2491 (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE to
2492 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2493 process private. Switch DW_CFA_advance_loc{1,2} and some
2494 DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
2495 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use
2496 #ifdef __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
2497 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2499 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
2500 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
2501 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2503 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
2504 (__pthread_cond_broadcast): Compare %r8 instead of
2505 dep_mutex-cond_*(%rdi) with $-1.
2506 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
2507 (__pthread_cond_signal): Xor FUTEX_WAKE_OP with FUTEX_WAKE instead
2510 2007-08-13 Ulrich Drepper <drepper@redhat.com>
2512 * sysdeps/unix/sysv/linux/i386/i786/Implies: New file.
2514 2007-08-13 Jakub Jelinek <jakub@redhat.com>
2516 * allocatestack.c: Include kernel-features.h.
2517 * pthread_create.c: Likewise.
2518 * pthread_mutex_init.c: Likewise.
2520 * pthread_cond_timedwait.c: Likewise.
2521 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
2522 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2523 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
2524 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
2525 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
2526 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
2527 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2529 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2531 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2532 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2533 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2534 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
2536 2007-08-12 Jakub Jelinek <jakub@redhat.com>
2538 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
2539 [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
2540 byte elements. One of them is the new __shared element.
2541 [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
2542 adjust names of other padding elements.
2543 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
2544 [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
2545 byte elements. One of them is the new __shared element.
2546 [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
2547 adjust names of other padding elements.
2548 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_rwlock_t):
2549 Renamed __pad1 element to __shared, adjust names of other padding
2551 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
2552 (pthread_rwlock_t): Likewise.
2553 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock): Fix a
2556 2007-08-09 Anton Blanchard <anton@samba.org>
2558 * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: New file.
2560 2007-08-12 Ulrich Drepper <drepper@redhat.com>
2562 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Include
2563 <kernel-features.h>.
2564 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2566 2007-08-11 Ulrich Drepper <drepper@redhat.com>
2568 * pthreadP.h (PTHREAD_ROBUST_MUTEX_PSHARED): Define.
2569 * pthread_mutex_lock.c: Use it instead of PTHREAD_MUTEX_PSHARED when
2570 dealing with robust mutexes.
2571 * pthread_mutex_timedlock.c: Likewise.
2572 * pthread_mutex_trylock.c: Likewise.
2573 * pthread_mutex_unlock.c: Likewise.
2574 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
2576 2007-08-06 Jakub Jelinek <jakub@redhat.com>
2578 * pthreadP.h (PTHREAD_MUTEX_PSHARED_BIT): Define.
2579 (PTHREAD_MUTEX_TYPE): Mask __kind with 127.
2580 (PTHREAD_MUTEX_PSHARED): Define.
2581 * pthread_mutex_init.c (__pthread_mutex_init): Set
2582 PTHREAD_MUTEX_PSHARED_BIT for pshared or robust
2584 * pthread_mutex_lock.c (LLL_MUTEX_LOCK): Take mutex as argument
2585 instead of its __data.__lock field, pass PTHREAD_MUTEX_PSHARED
2586 as second argument to lll_lock.
2587 (LLL_MUTEX_TRYLOCK): Take mutex as argument
2588 instead of its __data.__lock field.
2589 (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
2590 __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
2592 (__pthread_mutex_lock): Update LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
2593 LLL_ROBUST_MUTEX_LOCK users, use PTHREAD_MUTEX_TYPE (mutex)
2594 instead of mutex->__data.__kind directly, pass
2595 PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock and lll_futex_wait.
2596 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
2597 PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
2598 directly, pass PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock.
2599 (pthread_mutex_timedlock): Pass PTHREAD_MUTEX_PSHARED (mutex)
2600 to lll_timedlock, lll_robust_timedlock, lll_unlock and
2601 lll_futex_timed_wait. Use PTHREAD_MUTEX_TYPE (mutex) instead
2602 of mutex->__data.__kind directly.
2603 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Pass
2604 PTHREAD_MUTEX_PSHARED (mutex) to lll_timedlock,
2605 lll_robust_timedlock, lll_unlock and lll_futex_timed_wait. Use
2606 PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind directly.
2607 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Pass
2608 PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock, lll_robust_unlock
2610 * pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling): Pass
2611 PTHREAD_MUTEX_PSHARED (mutex) to lll_futex_wait and lll_futex_wake.
2612 Use PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
2614 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK):
2615 Take mutex as argument instead of its __data.__lock field, pass
2616 PTHREAD_MUTEX_PSHARED as second argument to lll_cond_lock.
2617 (LLL_MUTEX_TRYLOCK): Take mutex as argument instead of its
2618 __data.__lock field.
2619 (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
2620 __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
2621 to lll_robust_cond_lock.
2622 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Add pshared
2623 variable, pass it to lll_lock, lll_unlock, lll_futex_requeue and
2624 lll_futex_wake. Don't use lll_futex_requeue if dependent mutex
2625 has PTHREAD_MUTEX_PSHARED_BIT bit set in its __data.__kind.
2626 * pthread_cond_destroy.c (__pthread_cond_destroy): Add pshared
2627 variable, pass it to lll_lock, lll_unlock, lll_futex_wake and
2629 * pthread_cond_signal.c (__pthread_cond_signal): Add pshared
2630 variable, pass it to lll_lock, lll_unlock, lll_futex_wake_unlock and
2632 * pthread_cond_timedwait.c (__pthread_cond_wait): Add
2633 pshared variable, pass it to lll_lock, lll_unlock,
2634 lll_futex_timedwait and lll_futex_wake.
2635 * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait): Add
2636 pshared variable, pass it to lll_lock, lll_unlock, lll_futex_wait
2638 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_requeue,
2639 lll_futex_wake_unlock): Add private argument, use __lll_private_flag
2641 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue,
2642 lll_futex_wake_unlock): Likewise.
2643 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_requeue):
2645 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_requeue,
2646 lll_futex_wake_unlock): Likewise.
2647 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_requeue):
2649 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue,
2650 lll_futex_wake_unlock): Likewise.
2651 (lll_futex_wake): Fix a typo.
2652 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym (PS_BIT): Add.
2653 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
2654 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
2655 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2656 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
2657 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
2658 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
2659 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2660 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2661 (__pthread_cond_timedwait): Likewise.
2662 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
2663 (__condvar_cleanup, __pthread_cond_wait): Likewise.
2665 2007-08-05 Jakub Jelinek <jakub@redhat.com>
2667 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
2668 Don't use CGOTSETUP and CGOTRESTORE macros.
2669 (CGOTSETUP, CGOTRESTORE): Remove.
2670 <IS_IN_rtld> (CENABLE, CDISABLE): Don't use JUMPTARGET, branch to
2673 2007-08-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2675 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove
2676 definitions for private futexes.
2677 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Include
2678 kernel-features.h and lowlevellock.h. Use private futexes if
2680 (__lll_lock_wait_private, __lll_unlock_wake_private): New.
2681 (__lll_mutex_lock_wait): Rename to
2682 (__lll_lock_wait): ... this. Don't compile in for libc.so.
2683 (__lll_mutex_timedlock_wait): Rename to ...
2684 (__lll_timedlock_wait): ... this. Use __NR_gettimeofday.
2685 Don't compile in for libc.so.
2686 (__lll_mutex_unlock_wake): Rename to ...
2687 (__lll_unlock_wake): ... this. Don't compile in for libc.so.
2688 (__lll_timedwait_tid): Use __NR_gettimeofday.
2689 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Allow including
2690 the header from assembler. Renamed all lll_mutex_* resp.
2691 lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
2692 Renamed all LLL_MUTEX_LOCK_* macros to LLL_LOCK_*.
2693 (FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE):
2695 (__lll_lock_wait_private): Add prototype.
2696 (__lll_lock_wait, __lll_timedlock_wait, __lll_robust_lock_wait,
2697 __lll_robust_timedlock_wait, __lll_unlock_wake_private,
2698 __lll_unlock_wake): Likewise.
2699 (lll_lock): Add private argument. Call __lll_lock_wait_private
2700 if private is constant LLL_PRIVATE.
2701 (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
2702 lll_timedlock, lll_robust_timedlock): Add private argument.
2703 (lll_unlock): Add private argument. Call __lll_unlock_wake_private
2704 if private is constant LLL_PRIVATE.
2705 (lll_robust_unlock, lll_robust_dead): Add private argument.
2706 (lll_lock_t): Remove.
2707 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
2708 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
2709 lll_cond_wake, lll_cond_broadcast): Remove.
2710 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Include
2711 kernel-features.h and lowlevellock.h.
2712 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
2713 (LOAD_FUTEX_WAIT): Define.
2714 (__lll_robust_mutex_lock_wait): Rename to ...
2715 (__lll_robust_lock_wait): ... this. Add private argument.
2716 Use LOAD_FUTEX_WAIT macro.
2717 (__lll_robust_mutex_timedlock_wait): Rename to ...
2718 (__lll_robust_timedlock_wait): ... this. Add private argument.
2719 Use __NR_gettimeofday. Use LOAD_FUTEX_WAIT macro.
2720 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Include
2722 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
2723 (pthread_barrier_wait): Use __lll_{lock,unlock}_* instead of
2724 __lll_mutex_{lock,unlock}_*.
2725 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Include
2726 lowlevellock.h and pthread-errnos.h.
2727 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
2728 FUTEX_CMP_REQUEUE, EINVAL): Remove.
2729 (__pthread_cond_broadcast): Use __lll_{lock,unlock}_* instead of
2730 __lll_mutex_{lock,unlock}_*.
2731 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Include
2732 lowlevellock.h and pthread-errnos.h.
2733 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE, EINVAL): Remove.
2734 (__pthread_cond_signal): Use __lll_{lock,unlock}_* instead of
2735 __lll_mutex_{lock,unlock}_*.
2736 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
2738 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE): Remove.
2739 (__pthread_cond_timedwait): Use __lll_{lock,unlock}_* instead of
2740 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
2741 (__condvar_tw_cleanup): Likewise.
2742 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
2744 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
2745 (__pthread_cond_wait): Use __lll_{lock,unlock}_* instead of
2746 __lll_mutex_{lock,unlock}_*.
2747 ( __condvar_w_cleanup): Likewise.
2748 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Include lowlevellock.h.
2749 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
2750 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Include
2752 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
2753 (__pthread_rwlock_rdlock): Use __lll_{lock,unlock}_* instead of
2754 __lll_mutex_{lock,unlock}_*.
2755 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Include
2757 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
2758 FUTEX_PRIVATE_FLAG): Remove.
2759 (pthread_rwlock_timedrdlock): Use __lll_{lock,unlock}_* instead of
2760 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
2761 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Include
2763 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
2764 FUTEX_PRIVATE_FLAG): Remove.
2765 (pthread_rwlock_timedwrlock): Use __lll_{lock,unlock}_* instead of
2766 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
2767 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Include
2769 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
2770 (__pthread_rwlock_unlock): Use __lll_{lock,unlock}_* instead of
2771 __lll_mutex_{lock,unlock}_*.
2772 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Include
2774 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
2775 (__pthread_rwlock_wrlock): Use __lll_{lock,unlock}_* instead of
2776 __lll_mutex_{lock,unlock}_*.
2777 * sysdeps/unix/sysv/linux/sh/sem_post.S: Include lowlevellock.h.
2778 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
2779 (__new_sem_post): Use standard initial exec code sequences.
2780 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Include
2782 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
2783 FUTEX_PRIVATE_FLAG): Remove.
2784 (sem_timedwait): Use __NR_gettimeofday. Use standard initial
2785 exec code sequences.
2786 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Include lowlevellock.h.
2787 (__new_sem_trywait): Use standard initial exec code sequences.
2788 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Include lowlevellock.h.
2789 (__new_sem_wait): Use standard initial exec code sequences.
2791 2007-07-31 Anton Blanchard <anton@samba.org>
2793 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
2794 Use __asm __volatile (__lll_acq_instr ::: "memory") instead of
2795 atomic_full_barrier.
2797 2007-07-31 Jakub Jelinek <jakub@redhat.com>
2799 * allocatestack.c (stack_cache_lock): Change type to int.
2800 (get_cached_stack, allocate_stack, __deallocate_stack,
2801 __make_stacks_executable, __find_thread_by_id, __nptl_setxid,
2802 __pthread_init_static_tls, __wait_lookup_done): Add LLL_PRIVATE
2803 as second argument to lll_lock and lll_unlock macros on
2805 * pthread_create.c (__find_in_stack_list): Likewise.
2806 (start_thread): Similarly with pd->lock. Use lll_robust_dead
2807 macro instead of lll_robust_mutex_dead, pass LLL_SHARED to it
2809 * descr.h (struct pthread): Change lock and setxid_futex field
2811 * old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0): Use
2812 LLL_LOCK_INITIALIZER instead of LLL_MUTEX_LOCK_INITIALIZER.
2813 * old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
2814 * old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
2816 * old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
2817 * pthread_cond_init.c (__pthread_cond_init): Likewise.
2818 * pthreadP.h (__attr_list_lock): Change type to int.
2819 * pthread_attr_init.c (__attr_list_lock): Likewise.
2820 * pthread_barrier_destroy.c (pthread_barrier_destroy): Pass
2821 ibarrier->private ^ FUTEX_PRIVATE_FLAG as second argument to
2823 * pthread_barrier_wait.c (pthread_barrier_wait): Likewise and
2824 also for lll_futex_{wake,wait}.
2825 * pthread_barrier_init.c (pthread_barrier_init): Make iattr
2827 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Pass
2828 LLL_SHARED as second argument to lll_{,un}lock.
2829 * pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
2830 * pthread_cond_signal.c (__pthread_cond_singal): Likewise.
2831 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
2832 * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait):
2834 * pthread_getattr_np.c (pthread_getattr_np): Add LLL_PRIVATE
2835 as second argument to lll_{,un}lock macros on pd->lock.
2836 * pthread_getschedparam.c (__pthread_getschedparam): Likewise.
2837 * pthread_setschedparam.c (__pthread_setschedparam): Likewise.
2838 * pthread_setschedprio.c (pthread_setschedprio): Likewise.
2839 * tpp.c (__pthread_tpp_change_priority, __pthread_current_priority):
2841 * sysdeps/pthread/createthread.c (do_clone, create_thread):
2843 * pthread_once.c (once_lock): Change type to int.
2844 (__pthread_once): Pass LLL_PRIVATE as second argument to
2845 lll_{,un}lock macros on once_lock.
2846 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Use
2847 lll_{,un}lock macros instead of lll_mutex_{,un}lock, pass
2848 rwlock->__data.__shared as second argument to them and similarly
2850 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2852 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2854 * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Likewise.
2855 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Likewise.
2856 * pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
2857 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
2858 * sem_close.c (sem_close): Pass LLL_PRIVATE as second argument
2859 to lll_{,un}lock macros on __sem_mappings_lock.
2860 * sem_open.c (check_add_mapping): Likewise.
2861 (__sem_mappings_lock): Change type to int.
2862 * semaphoreP.h (__sem_mappings_lock): Likewise.
2863 * pthread_mutex_lock.c (LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
2864 LLL_ROBUST_MUTEX_LOCK): Use lll_{,try,robust_}lock macros
2865 instead of lll_*mutex_*, pass LLL_SHARED as last
2867 (__pthread_mutex_lock): Use lll_unlock instead of lll_mutex_unlock,
2868 pass LLL_SHARED as last argument.
2869 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK,
2870 LLL_MUTEX_TRYLOCK, LLL_ROBUST_MUTEX_LOCK): Use
2871 lll_{cond_,cond_try,robust_cond}lock macros instead of lll_*mutex_*,
2872 pass LLL_SHARED as last argument.
2873 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
2874 lll_{timed,try,robust_timed,un}lock instead of lll_*mutex*, pass
2875 LLL_SHARED as last argument.
2876 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Similarly.
2877 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2879 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_lock,
2880 __libc_lock_lock_recursive, __libc_lock_unlock,
2881 __libc_lock_unlock_recursive): Pass LLL_PRIVATE as second
2882 argument to lll_{,un}lock.
2883 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_lock,
2884 _IO_lock_unlock): Likewise.
2885 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Don't use
2887 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
2888 Pass LLL_PRIVATE as second argument to lll_{,un}lock macros on
2890 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork,
2891 free_mem): Likewise.
2892 (__fork_lock): Change type to int.
2893 * sysdeps/unix/sysv/linux/fork.h (__fork_lock): Likewise.
2894 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Pass
2895 isem->private ^ FUTEX_PRIVATE_FLAG as second argument to
2897 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
2898 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Likewise.
2899 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait_private):
2901 (__lll_lock_wait, __lll_timedlock_wait): Add private argument and
2902 pass it through to lll_futex_*wait, only compile in when
2904 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
2905 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Add private
2906 argument and pass it through to lll_futex_*wait.
2907 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Renamed all
2908 lll_mutex_* resp. lll_robust_mutex_* macros to lll_* resp.
2909 lll_robust_*. Renamed all __lll_mutex_* resp. __lll_robust_mutex_*
2910 inline functions to __lll_* resp. __lll_robust_*.
2911 (LLL_MUTEX_LOCK_INITIALIZER): Remove.
2912 (lll_mutex_dead): Add private argument.
2913 (__lll_lock_wait_private): New prototype.
2914 (__lll_lock_wait, __lll_robust_lock_wait, __lll_lock_timedwait,
2915 __lll_robust_lock_timedwait): Add private argument to prototypes.
2916 (__lll_lock): Add private argument, if it is constant LLL_PRIVATE,
2917 call __lll_lock_wait_private, otherwise pass private to
2919 (__lll_robust_lock, __lll_cond_lock, __lll_timedlock,
2920 __lll_robust_timedlock): Add private argument, pass it to
2921 __lll_*wait functions.
2922 (__lll_unlock): Add private argument, if it is constant LLL_PRIVATE,
2923 call __lll_unlock_wake_private, otherwise pass private to
2925 (__lll_robust_unlock): Add private argument, pass it to
2926 __lll_robust_unlock_wake.
2927 (lll_lock, lll_robust_lock, lll_cond_lock, lll_timedlock,
2928 lll_robust_timedlock, lll_unlock, lll_robust_unlock): Add private
2929 argument, pass it through to __lll_* inline function.
2930 (__lll_mutex_unlock_force, lll_mutex_unlock_force): Remove.
2931 (lll_lock_t): Remove.
2932 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
2933 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
2934 lll_cond_wake, lll_cond_broadcast): Remove.
2935 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2936 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2937 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2938 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2939 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Allow including
2940 the header from assembler. Renamed all lll_mutex_* resp.
2941 lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
2942 (LOCK, FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP,
2943 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
2944 (LLL_MUTEX_LOCK_INITIALIZER, LLL_MUTEX_LOCK_INITIALIZER_LOCKED,
2945 LLL_MUTEX_LOCK_INITIALIZER_WAITERS): Remove.
2946 (__lll_mutex_lock_wait, __lll_mutex_timedlock_wait,
2947 __lll_mutex_unlock_wake, __lll_lock_wait, __lll_unlock_wake):
2949 (__lll_trylock_asm, __lll_lock_asm_start, __lll_unlock_asm): Define.
2950 (lll_robust_trylock, lll_cond_trylock): Use LLL_LOCK_INITIALIZER*
2951 rather than LLL_MUTEX_LOCK_INITIALIZER* macros.
2952 (lll_trylock): Likewise, use __lll_trylock_asm, pass
2953 MULTIPLE_THREADS_OFFSET as another asm operand.
2954 (lll_lock): Add private argument, use __lll_lock_asm_start, pass
2955 MULTIPLE_THREADS_OFFSET as last asm operand, call
2956 __lll_lock_wait_private if private is constant LLL_PRIVATE,
2957 otherwise pass private as another argument to __lll_lock_wait.
2958 (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
2959 lll_timedlock, lll_robust_timedlock): Add private argument, pass
2960 private as another argument to __lll_*lock_wait call.
2961 (lll_unlock): Add private argument, use __lll_unlock_asm, pass
2962 MULTIPLE_THREADS_OFFSET as another asm operand, call
2963 __lll_unlock_wake_private if private is constant LLL_PRIVATE,
2964 otherwise pass private as another argument to __lll_unlock_wake.
2965 (lll_robust_unlock): Add private argument, pass private as another
2966 argument to __lll_unlock_wake.
2967 (lll_robust_dead): Add private argument, use __lll_private_flag
2969 (lll_islocked): Use LLL_LOCK_INITIALIZER instead of
2970 LLL_MUTEX_LOCK_INITIALIZER.
2971 (lll_lock_t): Remove.
2972 (LLL_LOCK_INITIALIZER_WAITERS): Define.
2973 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
2974 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
2975 lll_cond_wake, lll_cond_broadcast): Remove.
2976 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2977 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Revert
2978 2007-05-2{3,9} changes.
2979 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Include
2980 kernel-features.h and lowlevellock.h.
2981 (LOAD_PRIVATE_FUTEX_WAIT): Define.
2982 (LOAD_FUTEX_WAIT): Rewritten.
2983 (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
2985 (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
2986 (__lll_mutex_lock_wait): Rename to ...
2987 (__lll_lock_wait): ... this. Take futex addr from %edx instead of
2988 %ecx, %ecx is now private argument. Don't compile in for libc.so.
2989 (__lll_mutex_timedlock_wait): Rename to ...
2990 (__lll_timedlock_wait): ... this. Use __NR_gettimeofday. %esi
2991 contains private argument. Don't compile in for libc.so.
2992 (__lll_mutex_unlock_wake): Rename to ...
2993 (__lll_unlock_wake): ... this. %ecx contains private argument.
2994 Don't compile in for libc.so.
2995 (__lll_timedwait_tid): Use __NR_gettimeofday.
2996 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Include
2997 kernel-features.h and lowlevellock.h.
2998 (LOAD_FUTEX_WAIT): Define.
2999 (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
3001 (__lll_robust_mutex_lock_wait): Rename to ...
3002 (__lll_robust_lock_wait): ... this. Futex addr is now in %edx
3003 argument, %ecx argument contains private. Use LOAD_FUTEX_WAIT
3005 (__lll_robust_mutex_timedlock_wait): Rename to ...
3006 (__lll_robust_timedlock_wait): ... this. Use __NR_gettimeofday.
3007 %esi argument contains private, use LOAD_FUTEX_WAIT macro.
3008 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Include
3010 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3011 (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
3012 PRIVATE(%ebx) ^ LLL_SHARED as private argument in %ecx to
3013 __lll_lock_wait and __lll_unlock_wake, pass MUTEX(%ebx) address
3014 to __lll_lock_wait in %edx.
3015 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
3016 Include lowlevellock.h and pthread-errnos.h.
3017 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
3018 FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
3019 (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*, pass
3020 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3021 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3023 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
3024 Include lowlevellock.h and pthread-errnos.h.
3025 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
3026 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
3027 (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*, pass
3028 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3029 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3031 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
3032 Include lowlevellock.h.
3033 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3035 (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*, pass
3036 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3037 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3038 __lll_unlock_wake. Use __NR_gettimeofday.
3039 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
3040 Include lowlevellock.h.
3041 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3042 (__pthread_cond_wait, __condvar_w_cleanup): Rename __lll_mutex_*
3043 to __lll_*, pass cond_lock address in %edx rather than %ecx to
3044 __lll_lock_wait, pass LLL_SHARED in %ecx to both __lll_lock_wait
3045 and __lll_unlock_wake.
3046 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
3047 Include lowlevellock.h.
3048 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3049 (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*, pass
3050 MUTEX(%ebx) address in %edx rather than %ecx to
3051 __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
3052 and __lll_unlock_wake. Move return value from %ecx to %edx
3054 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3055 Include lowlevellock.h.
3056 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3058 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3059 MUTEX(%ebp) address in %edx rather than %ecx to
3060 __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
3061 and __lll_unlock_wake. Move return value from %ecx to %edx
3062 register. Use __NR_gettimeofday.
3063 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3064 Include lowlevellock.h.
3065 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3067 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3068 MUTEX(%ebp) address in %edx rather than %ecx to
3069 __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
3070 and __lll_unlock_wake. Move return value from %ecx to %edx
3071 register. Use __NR_gettimeofday.
3072 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
3073 Include lowlevellock.h.
3074 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3075 (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*, pass
3076 MUTEX(%edi) address in %edx rather than %ecx to
3077 __lll_lock_wait, pass PSHARED(%edi) in %ecx to both __lll_lock_wait
3078 and __lll_unlock_wake.
3079 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
3080 Include lowlevellock.h.
3081 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3082 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3083 MUTEX(%ebx) address in %edx rather than %ecx to
3084 __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
3085 and __lll_unlock_wake. Move return value from %ecx to %edx
3087 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Include
3089 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
3091 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Include lowlevellock.h.
3092 (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
3093 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Include
3095 (LOCK, SYS_futex, SYS_gettimeofday, FUTEX_WAIT): Don't define.
3096 (sem_timedwait): Use __NR_gettimeofday.
3097 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Include
3099 (LOCK): Don't define.
3100 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include
3102 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3103 * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Wake only when there
3105 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Revert
3106 2007-05-2{3,9} changes.
3107 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Include
3108 kernel-features.h and lowlevellock.h.
3109 (LOAD_PRIVATE_FUTEX_WAIT): Define.
3110 (LOAD_FUTEX_WAIT): Rewritten.
3111 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
3112 (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
3113 (__lll_mutex_lock_wait): Rename to ...
3114 (__lll_lock_wait): ... this. %esi is now private argument.
3115 Don't compile in for libc.so.
3116 (__lll_mutex_timedlock_wait): Rename to ...
3117 (__lll_timedlock_wait): ... this. %esi contains private argument.
3118 Don't compile in for libc.so.
3119 (__lll_mutex_unlock_wake): Rename to ...
3120 (__lll_unlock_wake): ... this. %esi contains private argument.
3121 Don't compile in for libc.so.
3122 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Include
3123 kernel-features.h and lowlevellock.h.
3124 (LOAD_FUTEX_WAIT): Define.
3125 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
3126 (__lll_robust_mutex_lock_wait): Rename to ...
3127 (__lll_robust_lock_wait): ... this. %esi argument contains private.
3128 Use LOAD_FUTEX_WAIT macro.
3129 (__lll_robust_mutex_timedlock_wait): Rename to ...
3130 (__lll_robust_timedlock_wait): ... this. %esi argument contains
3131 private, use LOAD_FUTEX_WAIT macro.
3132 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Include
3134 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3135 (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
3136 PRIVATE(%rdi) ^ LLL_SHARED as private argument in %esi to
3137 __lll_lock_wait and __lll_unlock_wake.
3138 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3139 Include lowlevellock.h and pthread-errnos.h.
3140 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
3141 FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
3142 (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*,
3143 pass LLL_SHARED in %esi to both __lll_lock_wait and
3145 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S:
3146 Include lowlevellock.h and pthread-errnos.h.
3147 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
3148 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
3149 (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*,
3150 pass LLL_SHARED in %esi to both __lll_lock_wait and
3152 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3153 Include lowlevellock.h.
3154 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3155 (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*,
3156 pass LLL_SHARED in %esi to both __lll_lock_wait and
3158 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
3159 Include lowlevellock.h.
3160 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3161 (__pthread_cond_wait, __condvar_cleanup): Rename __lll_mutex_*
3162 to __lll_*, pass LLL_SHARED in %esi to both __lll_lock_wait
3163 and __lll_unlock_wake.
3164 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
3165 Include lowlevellock.h.
3166 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3168 (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*,
3169 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3170 and __lll_unlock_wake.
3171 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3172 Include lowlevellock.h.
3173 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3175 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3176 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3177 and __lll_unlock_wake.
3178 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3179 Include lowlevellock.h.
3180 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3182 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3183 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3184 and __lll_unlock_wake.
3185 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
3186 Include lowlevellock.h.
3187 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3189 (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*,
3190 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3191 and __lll_unlock_wake.
3192 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
3193 Include lowlevellock.h.
3194 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3196 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3197 pass PSHARED(%rdi) in %ecx to both __lll_lock_wait
3198 and __lll_unlock_wake.
3199 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Include
3201 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
3203 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Include lowlevellock.h.
3204 (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
3205 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Include
3207 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3208 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Include
3210 (LOCK): Don't define.
3211 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Include
3213 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3214 * sysdeps/unix/sysv/linux/sparc/internaltypes.h: New file.
3215 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c: New file.
3216 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: New file.
3217 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: New file.
3218 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
3219 (__lll_lock_wait_private): New function.
3220 (__lll_lock_wait, __lll_timedlock_wait): Add private argument, pass
3221 it to lll_futex_*wait. Don't compile in for libc.so.
3222 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c:
3224 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c
3225 (struct sparc_pthread_barrier): Remove.
3226 (pthread_barrier_wait): Use union sparc_pthread_barrier instead of
3227 struct sparc_pthread_barrier. Pass
3228 ibarrier->s.pshared ? LLL_SHARED : LLL_PRIVATE to lll_{,un}lock
3229 and lll_futex_wait macros.
3230 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
3232 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
3233 Include sparc pthread_barrier_wait.c instead of generic one.
3235 2007-07-30 Jakub Jelinek <jakub@redhat.com>
3237 * tst-rwlock14.c (do_test): Avoid warnings on 32-bit arches.
3239 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
3240 (pthread_rwlock_timedrdlock): Copy futex retval to %esi rather than
3242 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
3243 (pthread_rwlock_timedwrlock): Likewise.
3244 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
3245 (__pthread_rwlock_unlock): Fix MUTEX != 0 args to __lll_*.
3247 2007-07-31 Jakub Jelinek <jakub@redhat.com>
3249 * sysdeps/sparc/tls.h (tcbhead_t): Add private_futex field.
3251 2007-07-26 Jakub Jelinek <jakub@redhat.com>
3253 * tst-locale2.c (useless): Add return statement.
3255 2007-07-24 Jakub Jelinek <jakub@redhat.com>
3257 * allocatestack.c (__nptl_setxid, __wait_lookup_done): Replace
3258 lll_private_futex_* (*) with lll_futex_* (*, LLL_PRIVATE).
3259 * pthread_create.c (start_thread): Likewise.
3260 * init.c (sighandler_setxid): Likewise.
3261 * sysdeps/alpha/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3262 * sysdeps/ia64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3263 * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3264 * sysdeps/s390/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3265 * sysdeps/powerpc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3266 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3267 * sysdeps/sparc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3268 * sysdeps/sh/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3269 * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT):
3271 * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT):
3273 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
3275 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_waitzero,
3276 __rtld_notify): Likewise.
3277 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Likewise.
3278 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (clear_once_control,
3279 __pthread_once): Likewise.
3280 * sysdeps/unix/sysv/linux/alpha/pthread_once.c (clear_once_control,
3281 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3282 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3283 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3284 (lll_futex_wait): Add private argument, define as wrapper around
3285 lll_futex_timed_wait.
3286 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3287 use __lll_private_flag macro.
3288 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3289 __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
3290 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (clear_once_control,
3291 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3292 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3293 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3294 (lll_futex_wait): Add private argument, define as wrapper around
3295 lll_futex_timed_wait.
3296 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3297 use __lll_private_flag macro.
3298 (__lll_mutex_unlock, __lll_robust_mutex_unlock, lll_wait_tid,
3299 __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
3300 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
3302 (lll_futex_timed_wait, lll_futex_wake): Use it.
3303 (lll_private_futex_wait, lll_private_futex_timed_wait,
3304 lll_private_futex_wake): Removed.
3305 * sysdeps/unix/sysv/linux/s390/pthread_once.c (clear_once_control,
3306 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3307 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3308 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3309 (lll_futex_wait): Add private argument, define as wrapper around
3310 lll_futex_timed_wait.
3311 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3312 use __lll_private_flag macro.
3313 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3314 lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
3316 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3317 (lll_private_futex_wait, lll_private_futex_timed_wait,
3318 lll_private_futex_wake): Removed.
3319 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_private_flag):
3320 Fix !__ASSUME_PRIVATE_FUTEX non-constant private case.
3321 (lll_private_futex_wait, lll_private_futex_timed_wait,
3322 lll_private_futex_wake): Removed.
3323 * sysdeps/unix/sysv/linux/sparc/pthread_once.c (clear_once_control,
3324 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3325 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3326 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3327 (lll_futex_wait): Add private argument, define as wrapper around
3328 lll_futex_timed_wait.
3329 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3330 use __lll_private_flag macro.
3331 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3332 lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
3334 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (__lll_private_flag):
3336 (lll_futex_timed_wait, lll_futex_wake): Use it.
3337 (lll_private_futex_wait, lll_private_futex_timed_wait,
3338 lll_private_futex_wake): Removed.
3340 2007-07-27 Jakub Jelinek <jakub@redhat.com>
3342 * sysdeps/sparc/tls.h (tcbhead_t): Move gscope_flag to the end
3343 of the structure for sparc32.
3345 2007-07-26 Aurelien Jarno <aurelien@aurel32.net>
3347 * sysdeps/sparc/tls.h (tcbhead_t): Add gscope_flag.
3349 2007-07-23 Ulrich Drepper <drepper@redhat.com>
3351 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
3352 code used when private futexes are assumed.
3353 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3356 2007-07-23 Jakub Jelinek <jakub@redhat.com>
3358 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3359 (__lll_private_flag): Define.
3360 (lll_futex_wait): Define as a wrapper around lll_futex_timed_wait.
3361 (lll_futex_timed_wait, lll_futex_wake, lll_futex_wake_unlock): Use
3363 (lll_private_futex_wait, lll_private_futex_timedwait,
3364 lll_private_futex_wake): Define as wrapper around non-_private
3366 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
3367 (__lll_private_flag): Define.
3368 (lll_futex_timed_wait, lll_futex_wake): Use __lll_private_flag.
3369 (lll_private_futex_wait, lll_private_futex_timedwait,
3370 lll_private_futex_wake): Define as wrapper around non-_private
3373 2007-07-10 Steven Munroe <sjmunroe@us.ibm.com>
3375 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add LLL_SHARED
3376 parameter to lll_futex_wait call.
3377 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
3379 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
3380 Replace lll_futex_wait with lll_private_futex_wait.
3381 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
3382 Add LLL_SHARED parameter to lll_futex_wake().
3384 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define LLL_PRIVATE
3385 LLL_SHARED, lll_private_futex_wait, lll_private_futex_timed_wait and
3386 lll_private_futex_wake.
3387 (lll_futex_wait): Add private parameter. Adjust FUTEX_PRIVATE_FLAG
3388 bit from private parm before syscall.
3389 (lll_futex_timed_wait): Likewise.
3390 (lll_futex_wake): Likewise.
3391 (lll_futex_wake_unlock): Likewise.
3392 (lll_mutex_unlock): Add LLL_SHARED parm to lll_futex_wake call.
3393 (lll_robust_mutex_unlock): Likewise.
3394 (lll_mutex_unlock_force): Likewise.
3395 (lll_wait_tid): Add LLL_SHARED parm to lll_futex_wait call.
3397 2007-07-23 Ulrich Drepper <drepper@redhat.com>
3399 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
3400 compilation when unconditionally using private futexes.
3401 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
3402 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3404 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
3405 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
3407 2007-07-17 Jakub Jelinek <jakub@redhat.com>
3409 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
3412 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3414 * sysdeps/sh/tls.h: Include stdlib.h, list.h, sysdep.h and
3417 2007-05-16 Roland McGrath <roland@redhat.com>
3419 * init.c (__nptl_initial_report_events): New variable.
3420 (__pthread_initialize_minimal_internal): Initialize pd->report_events
3423 2007-06-22 Jakub Jelinek <jakub@redhat.com>
3425 * pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
3426 cpusetsize if pthread_getaffinity_np failed with ENOSYS.
3428 2007-06-19 Ulrich Drepper <drepper@redhat.com>
3430 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Remove mrlock
3433 2007-06-18 Ulrich Drepper <drepper@redhat.com>
3435 * pthreadP.h: Define PTHREAD_MUTEX_TYPE.
3436 * phtread_mutex_lock.c: Use PTHREAD_MUTEX_TYPE.
3437 * pthread_mutex_timedlock.c: Likewise.
3438 * pthread_mutex_trylock.c: Likewise.
3439 * pthread_mutex_unlock.c: Likewise.
3441 2007-06-17 Andreas Schwab <schwab@suse.de>
3443 * sysdeps/pthread/pt-initfini.c: Tell gcc about the nonstandard
3446 2007-06-17 Ulrich Drepper <drepper@redhat.com>
3448 * allocatestack.c (allocate_stack): Make code compile if
3449 __ASSUME_PRIVATE_FUTEX is set.
3451 2007-06-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3453 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S:
3454 (__pthread_rwlock_rdlock): Don't use non SH-3/4 instruction.
3455 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S:
3456 (__pthread_rwlock_wrlock): Likewise.
3457 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
3458 (pthread_rwlock_timedrdlock): Likewise.
3459 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
3460 (pthread_rwlock_timedwrlock): Likewise.
3461 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S:
3462 (__pthread_rwlock_unlock): Likewise.
3464 2007-06-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3466 * sysdeps/sh/tcb-offsets.sym: Add PRIVATE_FUTEX.
3467 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Include endian.h.
3468 Split __flags into __flags, __shared, __pad1 and __pad2.
3469 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Use private
3470 futexes if they are available.
3471 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Adjust so that change
3472 in libc-lowlevellock.S allow using private futexes.
3473 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
3474 FUTEX_PRIVATE_FLAG. Add additional parameter to lll_futex_wait,
3475 lll_futex_timed_wait and lll_futex_wake. Change lll_futex_wait
3476 to call lll_futex_timed_wait. Add lll_private_futex_wait,
3477 lll_private_futex_timed_wait and lll_private_futex_wake.
3478 (lll_robust_mutex_unlock): Fix typo.
3479 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Use private
3480 field in futex command setup.
3481 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Use
3482 COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.
3483 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
3484 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use private futexes
3485 if they are available. Remove clear_once_control.
3486 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Use private
3487 futexes if they are available.
3488 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
3489 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
3490 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
3491 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
3492 * sysdeps/unix/sysv/linux/sh/sem_post.S: Add private futex support.
3493 Wake only when there are waiters.
3494 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add private futex
3495 support. Indicate that there are waiters. Remove unnecessary
3496 extra cancellation test.
3497 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise. Removed
3498 left-over duplication of __sem_wait_cleanup.
3500 2007-06-07 Ulrich Drepper <drepper@redhat.com>
3502 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Add additional
3503 parameter to lll_futex_wait, lll_futex_timed_wait, and
3504 lll_futex_wake. Change lll_futex_wait to call lll_futex_timed_wait.
3505 Add lll_private_futex_wait, lll_private_futex_timed_wait, and
3506 lll_private_futex_wake.
3507 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3508 * allocatestack.c: Adjust use of lll_futex_* macros.
3510 * lowlevellock.h: Likewise.
3511 * pthread_barrier_wait.c: Likewise.
3512 * pthread_cond_broadcast.c: Likewise.
3513 * pthread_cond_destroy.c: Likewise.
3514 * pthread_cond_signal.c: Likewise.
3515 * pthread_cond_timedwait.c: Likewise.
3516 * pthread_cond_wait.c: Likewise.
3517 * pthread_create.c: Likewise.
3518 * pthread_mutex_lock.c: Likewise.
3519 * pthread_mutex_setprioceiling.c: Likewise.
3520 * pthread_mutex_timedlock.c: Likewise.
3521 * pthread_mutex_unlock.c: Likewise.
3522 * pthread_rwlock_timedrdlock.c: Likewise.
3523 * pthread_rwlock_timedwrlock.c: Likewise.
3524 * pthread_rwlock_unlock.c: Likewise.
3525 * sysdeps/alpha/tls.h: Likewise.
3526 * sysdeps/i386/tls.h: Likewise.
3527 * sysdeps/ia64/tls.h: Likewise.
3528 * sysdeps/powerpc/tls.h: Likewise.
3529 * sysdeps/pthread/aio_misc.h: Likewise.
3530 * sysdeps/pthread/gai_misc.h: Likewise.
3531 * sysdeps/s390/tls.h: Likewise.
3532 * sysdeps/sh/tls.h: Likewise.
3533 * sysdeps/sparc/tls.h: Likewise.
3534 * sysdeps/unix/sysv/linux/fork.c: Likewise.
3535 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
3536 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
3537 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Likewise.
3538 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
3539 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
3540 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
3541 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
3542 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
3543 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
3545 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Likewise.
3546 * sysdeps/x86_64/tls.h: Likewise.
3548 2007-05-29 Ulrich Drepper <drepper@redhat.com>
3550 * pthread_getattr_np.c: No need to install a cancellation handler,
3551 this is no cancellation point.
3552 * pthread_getschedparam.c: Likewise.
3553 * pthread_setschedparam.c: Likewise.
3554 * pthread_setschedprio.c: Likewise.
3555 * sysdeps/unix/sysv/linux/lowlevellock.c: Remove all traces of
3557 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
3558 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3559 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
3560 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
3561 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
3562 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
3563 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
3564 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
3565 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3566 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Likewise.
3567 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3568 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3570 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Checking
3571 whether there are more than one thread makes no sense here since
3572 we only call the slow path if the locks are taken.
3573 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
3575 * sysdeps/unix/sysv/linux/internaltypes.h: Introduce
3576 COND_NWAITERS_SHIFT.
3577 * pthread_cond_destroy.c: Use COND_NWAITERS_SHIFT instead of
3579 * pthread_cond_init.c: Likewise.
3580 * pthread_cond_timedwait.c: Likewise.
3581 * pthread_cond_wait.c: Likewise.
3582 * pthread_condattr_getclock.c: Likewise.
3583 * pthread_condattr_setclock.c: Likewise.
3584 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Likewise.
3585 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
3586 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
3587 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
3588 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
3590 2007-05-28 Jakub Jelinek <jakub@redhat.com>
3592 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: Include
3595 * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Use explicit
3597 (THREAD_GSCOPE_GET_FLAG): Remove.
3598 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Remove.
3599 * allocatestack.c (__wait_lookup_done): Revert 2007-05-24
3601 * sysdeps/powerpc/tls.h (tcbhead_t): Remove gscope_flag.
3602 (THREAD_GSCOPE_GET_FLAG): Remove.
3603 (THREAD_GSCOPE_RESET_FLAG): Use THREAD_SELF->header.gscope_flag
3604 instead of THREAD_GSCOPE_GET_FLAG.
3605 (THREAD_GSCOPE_SET_FLAG): Likewise. Add atomic_write_barrier after
3607 * sysdeps/s390/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/sparc/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/sh/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.
3619 * sysdeps/ia64/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
3620 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
3621 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
3622 THREAD_GSCOPE_WAIT): Define.
3624 2007-05-24 Richard Henderson <rth@redhat.com>
3626 * descr.h (struct pthread): Add header.gscope_flag.
3627 * sysdeps/alpha/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
3628 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
3629 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
3630 THREAD_GSCOPE_WAIT): Define.
3632 2007-05-27 Ulrich Drepper <drepper@redhat.com>
3634 * init.c: Make it compile with older kernel headers.
3636 * tst-initializers1.c: Show through exit code which test failed.
3638 * pthread_rwlock_init.c: Also initialize __shared field.
3639 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Split __flags
3640 element in rwlock structure into four byte elements. One of them is
3641 the new __shared element.
3642 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h [__WORDSIZE=32]:
3644 [__WORDSIZE=64]: Renamed __pad1 element int rwlock structure to
3645 __shared, adjust names of other padding elements.
3646 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
3647 * sysdeps/pthread/pthread.h: Adjust rwlock initializers.
3648 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Add PSHARED.
3649 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define
3651 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Change main
3652 futex to use private operations if possible.
3653 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3655 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3657 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
3658 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
3659 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
3660 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3662 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3664 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
3665 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
3667 2007-05-26 Ulrich Drepper <drepper@redhat.com>
3669 * pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Define.
3670 * pthread_rwlock_rdlock.c: Use PTHREAD_RWLOCK_PREFER_READER_P.
3671 * pthread_rwlock_timedrdlock.c: Likewise.
3672 * pthread_rwlock_tryrdlock.c: Likewise.
3674 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S (sem_trywait): Tiny
3677 * sysdeps/unix/sysv/linux/sem_wait.c: Add missing break.
3678 * sysdeps/unix/sysv/linux/sem_timedwait.c: Removed left-over
3679 duplication of __sem_wait_cleanup.
3681 * allocatestack.c: Revert last change.
3683 * sysdeps/i386/tls.h: Likewise.
3684 * sysdeps/x86_64/tls.h: Likewise.
3685 * descr.h [TLS_DTV_AT_TP] (struct pthread): Add private_futex field to
3687 * sysdeps/powerpc/tcb-offsets.sym: Add PRIVATE_FUTEX_OFFSET.
3689 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_barrier):
3691 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Add PRIVATE definition.
3692 * pthread_barrier_init.c: Set private flag if pshared and private
3693 futexes are supported.
3694 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Use
3695 private field in futex command setup.
3696 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
3698 2007-05-25 Ulrich Drepper <drepper@redhat.com>
3700 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Add private futex
3702 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
3703 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
3704 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
3705 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
3706 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
3708 * semaphoreP.h: Declare __old_sem_init and __old_sem_wait.
3709 * sem_init.c (__new_sem_init): Rewrite to initialize all three
3710 fields in the structure.
3711 (__old_sem_init): New function.
3712 * sem_open.c: Initialize all fields of the structure.
3713 * sem_getvalue.c: Adjust for renamed element.
3714 * sysdeps/unix/sysv/linux/Makefile [subdir=nptl]
3715 (gen-as-const-headers): Add structsem.sym.
3716 * sysdeps/unix/sysv/linux/structsem.sym: New file.
3717 * sysdeps/unix/sysv/linux/internaltypes.h: Rename struct sem to
3718 struct new_sem. Add struct old_sem.
3719 * sysdeps/unix/sysv/linux/sem_post.c: Wake only when there are waiters.
3720 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
3721 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
3722 * sysdeps/unix/sysv/linux/sem_wait.c: Indicate that there are waiters.
3723 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
3724 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
3725 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
3726 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
3727 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
3728 * Makefile (tests): Add tst-sem10, tst-sem11, tst-sem12.
3729 * tst-sem10.c: New file.
3730 * tst-sem11.c: New file.
3731 * tst-sem12.c: New file.
3732 * tst-typesizes.c: Test struct new_sem and struct old_sem instead
3735 2007-05-25 Ulrich Drepper <drepper@redhat.com>
3736 Jakub Jelinek <jakub@redhat.com>
3738 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
3739 Move __pthread_enable_asynccancel right before futex syscall.
3740 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
3743 2007-05-24 Jakub Jelinek <jakub@redhat.com>
3745 * sysdeps/i386/tls.h (THREAD_SET_PRIVATE_FUTEX,
3746 THREAD_COPY_PRIVATE_FUTEX): Define.
3747 * sysdeps/x86_64/tls.h (THREAD_SET_PRIVATE_FUTEX,
3748 THREAD_COPY_PRIVATE_FUTEX): Define.
3749 * allocatestack.c (allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX.
3750 * init.c (__pthread_initialize_minimal_internal): Use
3751 THREAD_SET_PRIVATE_FUTEX.
3753 * sysdeps/powerpc/tls.h (tcbhead_t): Add gscope_flag.
3754 (THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED,
3755 THREAD_GSCOPE_FLAG_WAIT): Define.
3756 (THREAD_GSCOPE_GET_FLAG, THREAD_GSCOPE_SET_FLAG,
3757 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_WAIT): Define.
3758 * sysdeps/i386/tls.h (THREAD_GSCOPE_WAIT): Don't use
3760 (THREAD_GSCOPE_GET_FLAG): Define.
3761 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Define.
3762 * allocatestack.c (__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG
3763 instead of ->header.gscope_flag directly.
3765 2007-05-23 Ulrich Drepper <drepper@redhat.com>
3767 * init.c (__pthread_initialize_minimal_internal): Check whether
3768 private futexes are available.
3769 * allocatestack.c (allocate_stack): Copy private_futex field from
3770 current thread into the new stack.
3771 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Use private
3772 futexes if they are available.
3773 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise
3774 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Adjust so that change
3775 in libc-lowlevellock.S allow using private futexes.
3776 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
3777 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
3779 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3780 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use private futexes
3781 if they are available.
3782 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
3783 * sysdeps/x86_64/tcb-offsets.sym: Add PRIVATE_FUTEX.
3784 * sysdeps/i386/tcb-offsets.sym: Likewise.
3785 * sysdeps/x86_64/tls.h (tcbhead_t): Add private_futex field.
3786 * sysdeps/i386/tls.h (tcbhead_t): Likewise.
3788 2007-05-21 Ulrich Drepper <drepper@redhat.com>
3790 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
3791 Remove ptr_wait_lookup_done again.
3792 * init.c (pthread_functions): Don't add .ptr_wait_lookup_done here.
3793 (__pthread_initialize_minimal_internal): Initialize
3794 _dl_wait_lookup_done pointer in _rtld_global directly.
3795 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
3796 Remove code to code _dl_wait_lookup_done.
3797 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_WAIT): The pointer is not
3800 2007-05-21 Jakub Jelinek <jakub@redhat.com>
3802 * tst-robust9.c (do_test): Don't fail if ENABLE_PI and
3803 pthread_mutex_init failed with ENOTSUP.
3805 2007-05-19 Ulrich Drepper <drepper@redhat.com>
3807 * allocatestack.c (__wait_lookup_done): New function.
3808 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
3809 Add ptr_wait_lookup_done.
3810 * init.c (pthread_functions): Initialize .ptr_wait_lookup_done.
3811 * pthreadP.h: Declare __wait_lookup_done.
3812 * sysdeps/i386/tls.h (tcbhead_t): Add gscope_flag.
3813 Define macros to implement reference handling of global scope.
3814 * sysdeps/x86_64/tls.h: Likewise.
3815 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
3816 Initialize GL(dl_wait_lookup_done).
3818 2007-05-17 Ulrich Drepper <drepper@redhat.com>
3821 * pthread_mutex_lock.c: Preserve FUTEX_WAITERS bit when dead owner
3823 * pthread_mutex_timedlock.c: Likewise.
3824 * pthread_mutex_trylock.c: Likewise.
3825 Patch in part by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
3827 * Makefile (tests): Add tst-robust9 and tst-robustpi9.
3828 * tst-robust9.c: New file.
3829 * tst-robustpi9.c: New file.
3831 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Remove
3832 unnecessary extra cancellation test.
3834 2007-05-14 Ulrich Drepper <drepper@redhat.com>
3836 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove unnecessary
3837 extra cancellation test.
3838 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
3840 2007-05-10 Ulrich Drepper <drepper@redhat.com>
3842 * descr.h (struct pthread): Rearrange members to fill hole in
3845 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
3846 (__pthread_setaffinity_new): If syscall was successful and
3847 RESET_VGETCPU_CACHE is defined, use it before returning.
3848 * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: New file.
3850 2007-05-10 Jakub Jelinek <jakub@redhat.com>
3853 * tst-align2.c: Include stackinfo.h.
3854 * tst-getpid1.c: Likewise.
3856 2007-05-02 Carlos O'Donell <carlos@systemhalted.org>
3859 * tst-align2.c (do_test): Add _STACK_GROWS_UP case.
3860 * tst-getpid1.c (do_test): Likewise.
3863 * allocatestack.c (change_stack_perm): Add _STACK_GROWS_UP case.
3864 (allocate_stack): Likewise.
3866 2007-05-07 Ulrich Drepper <drepper@redhat.com>
3868 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
3869 (__lll_robust_lock_wait): Fix race caused by reloading of futex value.
3870 (__lll_robust_timedlock_wait): Likewise.
3871 Reported by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
3873 2007-05-06 Mike Frysinger <vapier@gentoo.org>
3876 * tst-cancel-wrappers.sh: Set C["fdatasync"] to 1.
3877 * tst-cancel4.c (tf_fdatasync): New test.
3879 2007-04-27 Ulrich Drepper <drepper@redhat.com>
3882 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Treat error
3883 check mutexes like normal mutexes.
3886 * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
3887 Initialize the whole sigevent structure to appease valgrind.
3889 2007-04-25 Ulrich Drepper <drepper@redhat.com>
3891 * sysdeps/x86_64/tls.h (tcbhead_t): Add vgetcpu_cache.
3892 * sysdeps/x86_64/tcb-offsets.sym: Add VGETCPU_CACHE_OFFSET.
3894 2007-04-06 Ulrich Drepper <drepper@redhat.com>
3896 * tst-locale1.c: Avoid warnings.
3897 * tst-locale2.c: Likewise.
3899 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
3901 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3902 (__lll_robust_trylock): Add MUTEX_HINT_ACQ to lwarx instruction.
3904 2007-03-16 Jakub Jelinek <jakub@redhat.com>
3906 * sysdeps/pthread/bits/libc-lock.h: Use __extern_inline and
3907 __extern_always_inline where appropriate.
3908 * sysdeps/pthread/pthread.h: Likewise.
3910 2007-03-13 Richard Henderson <rth@redhat.com>
3912 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use two
3913 separate cfi regions for the two subsections.
3915 2007-02-25 Ulrich Drepper <drepper@redhat.com>
3917 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in
3918 new thread, don't just decrement it.
3919 Patch by Suzuki K P <suzuki@in.ibm.com>.
3921 2007-02-21 Ulrich Drepper <drepper@redhat.com>
3923 * sysdeps/pthread/pthread-functions.h: Correct last patch, correct
3924 PTHFCT_CALL definition.
3926 2007-02-18 Ulrich Drepper <drepper@redhat.com>
3928 * sysdeps/pthread/pthread-functions.h: If PTR_DEMANGLE is not
3929 available, don't use it.
3931 2007-02-09 Jakub Jelinek <jakub@redhat.com>
3933 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
3934 (__lll_mutex_timedlock_wait): Use correct pointer when we don't
3935 call into the kernel to delay.
3937 2007-01-18 Ulrich Drepper <drepper@redhat.com>
3939 * tst-initializers1.c: We want to test the initializers as seen
3940 outside of libc, so undefined _LIBC.
3942 * pthread_join.c (cleanup): Avoid warning.
3944 2007-01-17 Ulrich Drepper <drepper@redhat.com>
3946 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
3947 (__lll_timedwait_tid): Add unwind info.
3949 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Don't just copy the
3950 function table, mangle the pointers.
3951 * sysdeps/pthread/pthread-functions.h: Define PTHFCT_CALL.
3952 * forward.c: Use PTHFCT_CALL and __libc_pthread_functions_init.
3953 * sysdeps/pthread/bits/libc-lock.h: When using __libc_pthread_functions
3954 demangle pointers before use.
3955 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Use PTHFCT_CALL to
3957 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
3958 * sysdeps/pthread/setxid.h: Likewise.
3960 2007-01-12 Ulrich Drepper <drepper@redhat.com>
3962 * tst-rwlock7.c: Show some more information in case of correct
3965 2007-01-11 Ulrich Drepper <drepper@redhat.com>
3967 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
3968 (lll_futex_timed_wait): Undo part of last change, don't negate
3971 2007-01-10 Ulrich Drepper <drepper@redhat.com>
3973 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Cleanups. Define
3974 FUTEX_CMP_REQUEUE and lll_futex_requeue.
3976 2006-12-28 David S. Miller <davem@davemloft.net>
3978 * shlib-versions: Fix sparc64 linux target specification.
3980 2007-01-10 Jakub Jelinek <jakub@redhat.com>
3982 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
3983 Adjust include path for pthread_barrier_wait.c move.
3985 2006-12-21 Jakub Jelinek <jakub@redhat.com>
3987 * sysdeps/unix/sysv/linux/pthread_kill.c (pthread_kill): Make sure
3988 tid isn't reread from pd->tid in between ESRCH test and the syscall.
3990 2006-12-06 Jakub Jelinek <jakub@redhat.com>
3992 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Handle
3993 6 argument cancellable syscalls.
3994 (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
3995 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Handle
3996 6 argument cancellable syscalls.
3997 (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
3999 2006-12-09 Ulrich Drepper <drepper@redhat.com>
4001 * sysdeps/unix/sysv/linux/rtld-lowlevel.h
4002 (__rtld_mrlock_initialize): Add missing closing parenthesis.
4004 2006-10-30 Jakub Jelinek <jakub@redhat.com>
4006 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
4007 __sync_lock_release instead of __sync_lock_release_si.
4009 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4011 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (RTLD_SINGLE_THREAD_P):
4013 (SINGLE_THREAD_P): Define to 1 if IS_IN_rtld.
4014 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
4015 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
4016 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
4017 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
4018 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
4019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
4020 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
4021 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
4022 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
4023 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
4025 2006-10-27 Ulrich Drepper <drepper@redhat.com>
4027 * sysdeps/pthread/pthread_barrier_wait.c: Move to...
4028 * pthread_barrier_wait.c: ...here.
4029 * sysdeps/pthread/pthread_cond_broadcast.c: Move to...
4030 * pthread_cond_broadcast.c: ...here.
4031 * sysdeps/pthread/pthread_cond_signal.c: Move to...
4032 * pthread_cond_signal.c: ...here.
4033 * sysdeps/pthread/pthread_cond_timedwait.c: Move to...
4034 * pthread_cond_timedwait.c: ...here.
4035 * sysdeps/pthread/pthread_cond_wait.c: Move to...
4036 * pthread_cond_wait.c: ...here.
4037 * sysdeps/pthread/pthread_once.c: Move to...
4038 * pthread_once.c: ...here.
4039 * sysdeps/pthread/pthread_rwlock_rdlock.c: Move to...
4040 * pthread_rwlock_rdlock.c: ...here.
4041 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Move to...
4042 * pthread_rwlock_timedrdlock.c: ...here.
4043 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Move to...
4044 * pthread_rwlock_timedwrlock.c: ...here.
4045 * sysdeps/pthread/pthread_rwlock_unlock.c: Move to...
4046 * pthread_rwlock_unlock.c: ...here.
4047 * sysdeps/pthread/pthread_rwlock_wrlock.c: Move to...
4048 * pthread_rwlock_wrlock.c: ...here.
4049 * sysdeps/pthread/pthread_spin_destroy.c: Move to...
4050 * pthread_spin_destroy.c: ...here.
4051 * sysdeps/pthread/pthread_spin_init.c: Move to...
4052 * pthread_spin_init.c: ...here.
4053 * sysdeps/pthread/pthread_spin_unlock.c: Move to...
4054 * pthread_spin_unlock.c: ...here.
4055 * sysdeps/pthread/pthread_getcpuclockid.c: Move to...
4056 * pthread_getcpuclockid.c: ...here.
4058 * init.c: USE_TLS support is now always enabled.
4059 * tst-tls5.h: Likewise.
4060 * sysdeps/alpha/tls.h: Likewise.
4061 * sysdeps/i386/tls.h: Likewise.
4062 * sysdeps/ia64/tls.h: Likewise.
4063 * sysdeps/powerpc/tls.h: Likewise.
4064 * sysdeps/s390/tls.h: Likewise.
4065 * sysdeps/sh/tls.h: Likewise.
4066 * sysdeps/sparc/tls.h: Likewise.
4067 * sysdeps/x86_64/tls.h: Likewise.
4069 2006-10-27 Jakub Jelinek <jakub@redhat.com>
4071 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
4072 __rtld_mrlock_change): Update oldval if atomic compare and exchange
4075 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
4076 Define to THREAD_SELF->header.multiple_threads.
4077 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
4079 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
4081 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
4082 (SINGLE_THREAD_P): Likewise.
4083 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
4084 (SINGLE_THREAD_P): Likewise.
4085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
4086 (SINGLE_THREAD_P): Likewise.
4087 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
4088 (SINGLE_THREAD_P): Likewise.
4089 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (SINGLE_THREAD_P):
4091 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
4092 (SINGLE_THREAD_P): Likewise.
4093 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
4094 (SINGLE_THREAD_P): Likewise.
4095 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (SINGLE_THREAD_P):
4098 2006-10-26 Jakub Jelinek <jakub@redhat.com>
4100 * pthread_attr_setstacksize.c (NEW_VERNUM): Define to GLIBC_2_3_3
4101 by default rather than 2_3_3.
4103 2006-10-17 Jakub Jelinek <jakub@redhat.com>
4105 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
4106 __rtld_mrlock_unlock, __rtld_mrlock_change, __rtld_mrlock_done): Use
4107 atomic_* instead of catomic_* macros.
4109 2006-10-12 Ulrich Drepper <drepper@redhat.com>
4112 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add SEM_VALUE_MAX.
4113 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
4114 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
4115 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
4116 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
4117 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Remove SEM_VALUE_MAX.
4118 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
4119 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
4120 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
4121 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: Likewise.
4122 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
4123 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
4124 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
4126 2006-10-11 Ulrich Drepper <drepper@redhat.com>
4128 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add support for
4129 cancelable syscalls with six parameters.
4131 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Use catomic_*
4132 operations instead of atomic_*.
4134 2006-10-09 Ulrich Drepper <drepper@redhat.com>
4136 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: New file..
4138 2006-10-07 Ulrich Drepper <drepper@redhat.com>
4140 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: New file.
4141 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: New file.
4142 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
4144 * pthread_attr_setstack.c: Allow overwriting the version number of the
4146 * pthread_attr_setstacksize.c: Likewise.
4147 (__old_pthread_attr_setstacksize): If STACKSIZE_ADJUST is defined use
4149 * sysdeps/unix/sysv/linux/powerpc/Versions (libpthread): Add
4150 pthread_attr_setstack and pthread_attr_setstacksize to GLIBC_2.6.
4152 2006-09-24 Ulrich Drepper <drepper@redhat.com>
4155 * descr.h (ENQUEUE_MUTEX_BOTH): Add cast to avoid warning.
4156 Patch by Petr Baudis.
4158 2006-09-18 Jakub Jelinek <jakub@redhat.com>
4160 * tst-kill4.c (do_test): Explicitly set tf thread's stack size.
4162 * tst-cancel2.c (tf): Loop as long as something was written.
4164 2006-09-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4166 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: For PI
4167 mutexes wake all mutexes.
4168 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Don't increment
4169 WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
4170 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
4172 2006-09-12 Ulrich Drepper <drepper@redhat.com>
4174 * tst-cond22.c (tf): Slight changes to the pthread_cond_wait use
4175 to guarantee the thread is always canceled.
4177 2006-09-08 Jakub Jelinek <jakub@redhat.com>
4179 * tst-cond22.c: Include pthread.h instead of pthreadP.h.
4181 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Only
4182 increase FUTEX if increasing WAKEUP_SEQ. Fix comment typo.
4183 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
4184 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
4185 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4187 2006-09-08 Ulrich Drepper <drepper@redhat.com>
4190 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Don't
4191 increment WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
4192 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
4193 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
4194 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4195 * Makefile (tests): Add tst-cond22.
4196 * tst-cond22.c: New file.
4198 2006-09-05 Ulrich Drepper <drepper@redhat.com>
4201 * descr.h (struct pthread): Add parent_cancelhandling.
4202 * sysdeps/pthread/createthread.c (create_thread): Pass parent
4203 cancelhandling value to child.
4204 * pthread_create.c (start_thread): If parent thread was canceled
4205 reset the SIGCANCEL mask.
4206 * Makefile (tests): Add tst-cancel25.
4207 * tst-cancel25.c: New file.
4209 2006-09-05 Jakub Jelinek <jakub@redhat.com>
4210 Ulrich Drepper <drepper@redhat.com>
4212 * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY): Don't decrement
4213 counterp if it is already zero.
4214 * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY): Likewise..
4216 2006-03-04 Jakub Jelinek <jakub@redhat.com>
4217 Roland McGrath <roland@redhat.com>
4219 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
4220 (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
4221 LLL_STUB_UNWIND_INFO_3, LLL_STUB_UNWIND_INFO_4): Define.
4222 (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
4223 lll_robust_mutex_cond_lock, lll_mutex_timedlock,
4224 lll_robust_mutex_timedlock, lll_mutex_unlock,
4225 lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
4226 Add _L_*_ symbols around the subsection.
4227 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Add unwind info.
4228 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Likewise.
4230 2006-03-03 Jakub Jelinek <jakub@redhat.com>
4231 Roland McGrath <roland@redhat.com>
4233 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
4234 (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
4235 LLL_STUB_UNWIND_INFO_5, LLL_STUB_UNWIND_INFO_6): Define.
4236 (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
4237 lll_robust_mutex_cond_lock, lll_mutex_timedlock,
4238 lll_robust_mutex_timedlock, lll_mutex_unlock,
4239 lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
4240 Add _L_*_ symbols around the subsection.
4241 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Add unwind info.
4242 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
4244 2006-08-31 Ulrich Drepper <drepper@redhat.com>
4246 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Undo last
4247 change because it can disturb too much existing code. If real hard
4248 reader preference is needed we'll introduce another type.
4249 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
4250 (pthread_rwlock_timedwrlock): Likewise.
4251 * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
4254 2006-08-30 Ulrich Drepper <drepper@redhat.com>
4256 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Respect
4258 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
4259 (pthread_rwlock_timedwrlock): Likewise.
4260 * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
4263 2006-08-25 Jakub Jelinek <jakub@redhat.com>
4265 * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libpthread):
4266 Only define ifdef SHARED.
4268 2006-08-23 Ulrich Drepper <drepper@redhat.com>
4270 * allocatestack.c (queue_stack): Move freeing of surplus stacks to...
4271 (free_stacks): ...here.
4272 (__free_stack_cache): New function.
4273 * pthreadP.h: Declare __free_stack_cache.
4274 * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
4276 * init.c (pthread_functions): Initialize ptr_freeres.
4277 * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libptread):
4278 New freeres function.
4280 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
4283 * Makefile (extra-objs): Add modules to extra-test-objs instead.
4285 2006-08-20 Ulrich Drepper <drepper@redhat.com>
4287 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4288 _XOPEN_REALTIME_THREADS.
4290 2006-08-15 Jakub Jelinek <jakub@redhat.com>
4292 * sysdeps/unix/sysv/linux/clock_settime.c (INTERNAL_VSYSCALL): Use
4293 HAVE_CLOCK_GETRES_VSYSCALL as guard macro rather than
4294 HAVE_CLOCK_GETTIME_VSYSCALL.
4295 (maybe_syscall_settime_cpu): Use plain INTERNAL_VSYSCALL here.
4297 2006-08-14 Jakub Jelinek <jakub@redhat.com>
4299 * sysdeps/unix/sysv/linux/bits/posix_opt.h
4300 (_POSIX_THREAD_PRIO_PROTECT): Define to 200112L.
4301 * descr.h (struct priority_protection_data): New type.
4302 (struct pthread): Add tpp field.
4303 * pthreadP.h (PTHREAD_MUTEX_PP_NORMAL_NP,
4304 PTHREAD_MUTEX_PP_RECURSIVE_NP, PTHREAD_MUTEX_PP_ERRORCHECK_NP,
4305 PTHREAD_MUTEX_PP_ADAPTIVE_NP): New enum values.
4306 * pthread_mutex_init.c (__pthread_mutex_init): Handle non-robust
4308 * pthread_mutex_lock.c (__pthread_mutex_lock): Handle TPP mutexes.
4309 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
4310 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
4311 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
4313 * pthread_setschedparam.c (__pthread_setschedparam): Handle priority
4315 * pthread_setschedprio.c (pthread_setschedprio): Likewise.
4316 * pthread_mutexattr_getprioceiling.c
4317 (pthread_mutexattr_getprioceiling): If ceiling is 0, ensure it is
4318 in the SCHED_FIFO priority range.
4319 * pthread_mutexattr_setprioceiling.c
4320 (pthread_mutexattr_setprioceiling): Fix prioceiling validation.
4321 * pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling): Fail
4322 if mutex is not TPP. Ceiling is now in __data.__lock.
4323 * pthread_mutex_setprioceiling.c: Include stdbool.h.
4324 (pthread_mutex_setprioceiling): Fix prioceiling validation. Ceiling
4325 is now in __data.__lock. Add locking.
4326 * pthread_create.c (__free_tcb): Free pd->tpp structure.
4327 * Makefile (libpthread-routines): Add tpp.
4328 (xtests): Add tst-mutexpp1, tst-mutexpp6 and tst-mutexpp10.
4329 * tst-tpp.h: New file.
4330 * tst-mutexpp1.c: New file.
4331 * tst-mutexpp6.c: New file.
4332 * tst-mutexpp10.c: New file.
4333 * tst-mutex1.c (TEST_FUNCTION): Don't redefine if already defined.
4334 * tst-mutex6.c (TEST_FUNCTION): Likewise.
4336 2006-08-12 Ulrich Drepper <drepper@redhat.com>
4339 * pthread_join.c (pthread_join): Account for self being canceled
4340 when checking for deadlocks.
4341 * tst-join5.c: Cleanups. Allow to be used in tst-join6.
4342 (tf1): Don't print anything after pthread_join returns, this would be
4343 another cancellation point.
4345 * tst-join6.c: New file.
4346 * Makefile (tests): Add tst-join6.
4348 2006-08-03 Ulrich Drepper <drepper@redhat.com>
4351 * pthread_setspecific.c (__pthread_setspecific): Check
4352 out-of-range index before checking for unused key.
4354 * sysdeps/pthread/gai_misc.h: New file.
4356 2006-08-01 Ulrich Drepper <drepper@redhat.com>
4358 * sysdeps/unix/sysv/linux/i386/smp.h: New file. Old Linux-specific
4359 file. Don't use sysctl.
4360 * sysdeps/unix/sysv/linux/smp.h: Always assume SMP. Archs can
4361 overwrite the file if this is likely not true.
4363 2006-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4365 * allocatestack.c (__reclaim_stacks): Reset the PID on cached stacks.
4366 * Makefile (tests): Add tst-getpid3.
4367 * tst-getpid3.c: New file.
4369 2006-07-30 Roland McGrath <roland@redhat.com>
4371 * Makefile (libpthread-routines): Add ptw-sigsuspend.
4373 * sysdeps/unix/sysv/linux/i386/not-cancel.h
4374 (pause_not_cancel): New macro.
4375 (nanosleep_not_cancel): New macro.
4376 (sigsuspend_not_cancel): New macro.
4377 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
4378 nanosleep_not_cancel macro from <not-cancel.h>.
4379 * pthread_mutex_lock.c (__pthread_mutex_lock): Use pause_not_cancel
4380 macro from <not-cancel.h>.
4382 2006-07-28 Ulrich Drepper <drepper@redhat.com>
4383 Jakub Jelinek <jakub@redhat.com>
4385 * descr.h: Change ENQUEUE_MUTEX and DEQUEUE_MUTEX for bit 0
4386 notification of PI mutex. Add ENQUEUE_MUTEX_PI.
4387 * pthreadP.h: Define PTHREAD_MUTEX_PI_* macros for PI mutex types.
4388 * pthread_mutex_setprioceilining.c: Adjust for mutex type name change.
4389 * pthread_mutex_init.c: Add support for priority inheritance mutex.
4390 * pthread_mutex_lock.c: Likewise.
4391 * pthread_mutex_timedlock.c: Likewise.
4392 * pthread_mutex_trylock.c: Likewise.
4393 * pthread_mutex_unlock.c: Likewise.
4394 * sysdeps/pthread/pthread_cond_broadcast.c: For PI mutexes wake
4396 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.c: Likewise.
4397 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.c: Likewise.
4398 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: New file.
4399 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-header): Add
4400 pthread-pi-defines.sym.
4401 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_LOCK_PI,
4402 FUTEX_UNLOCK_PI, and FUTEX_TRYLOCK_PI.
4403 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4404 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
4405 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
4406 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
4407 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
4408 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
4409 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
4410 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4411 _POSIX_THREAD_PRIO_INHERIT to 200112L.
4412 * tst-mutex1.c: Adjust to allow use in PI mutex test.
4413 * tst-mutex2.c: Likewise.
4414 * tst-mutex3.c: Likewise.
4415 * tst-mutex4.c: Likewise.
4416 * tst-mutex5.c: Likewise.
4417 * tst-mutex6.c: Likewise.
4418 * tst-mutex7.c: Likewise.
4419 * tst-mutex7a.c: Likewise.
4420 * tst-mutex8.c: Likewise.
4421 * tst-mutex9.c: Likewise.
4422 * tst-robust1.c: Likewise.
4423 * tst-robust7.c: Likewise.
4424 * tst-robust8.c: Likewise.
4425 * tst-mutexpi1.c: New file.
4426 * tst-mutexpi2.c: New file.
4427 * tst-mutexpi3.c: New file.
4428 * tst-mutexpi4.c: New file.
4429 * tst-mutexpi5.c: New file.
4430 * tst-mutexpi6.c: New file.
4431 * tst-mutexpi7.c: New file.
4432 * tst-mutexpi7a.c: New file.
4433 * tst-mutexpi8.c: New file.
4434 * tst-mutexpi9.c: New file.
4435 * tst-robust1.c: New file.
4436 * tst-robust2.c: New file.
4437 * tst-robust3.c: New file.
4438 * tst-robust4.c: New file.
4439 * tst-robust5.c: New file.
4440 * tst-robust6.c: New file.
4441 * tst-robust7.c: New file.
4442 * tst-robust8.c: New file.
4443 * Makefile (tests): Add the new tests.
4445 * pthread_create.c (start_thread): Add some casts to avoid warnings.
4446 * pthread_mutex_destroy.c: Remove unneeded label.
4448 2006-07-01 Ulrich Drepper <drepper@redhat.com>
4450 * pthread_mutex_init.c (__pthread_mutex_init): Move some
4451 computations to compile time.
4453 2006-06-04 Ulrich Drepper <drepper@redhat.com>
4455 * sysdeps/pthread/pthread.h: Add pthread_equal inline version.
4457 2006-05-15 Ulrich Drepper <drepper@redhat.com>
4459 * sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.
4461 2006-05-11 Ulrich Drepper <drepper@redhat.com>
4463 * pthread_key_create.c (__pthread_key_create): Do away with
4464 __pthread_keys_lock.
4466 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
4467 (__kernel_cpumask_size): Mark as hidden.
4468 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
4470 * sem_open.c (__sem_mappings_lock): Mark as hidden.
4471 * semaphoreP.h (__sem_mappings_lock): Likewise.
4473 2006-05-10 Ulrich Drepper <drepper@redhat.com>
4475 * pthread_atfork.c: Mark __dso_handle as hidden.
4477 2006-05-09 Ulrich Drepper <drepper@redhat.com>
4480 * sysdeps/pthread/unwind-forcedunwind.c: Different solution for
4481 the reload problem. Change the one path in pthread_cancel_init
4482 which causes the problem. Force gcc to reload. Simplify callers.
4483 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c
4484 (_Unwind_GetBSP): Undo last patch.
4486 2006-05-07 Ulrich Drepper <drepper@redhat.com>
4488 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: Make sure the
4489 function pointer is reloaded after pthread_cancel_init calls.
4492 * sysdeps/pthread/unwind-forcedunwind.c: Make sure functions
4493 pointers are reloaded after pthread_cancel_init calls.
4495 2006-05-01 Ulrich Drepper <drepper@redhat.com>
4497 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Mark with
4500 2006-04-27 Ulrich Drepper <drepper@redhat.com>
4502 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
4503 Allocate new object which is passed to timer_sigev_thread so that
4504 the timer can be deleted before the new thread is scheduled.
4506 2006-04-26 Roland McGrath <roland@redhat.com>
4508 * sysdeps/x86_64/tls.h: Include <asm/prctl.h> inside [! __ASSEMBLER__].
4510 2006-04-08 Ulrich Drepper <drepper@redhat.com>
4512 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove branch predicion
4513 suffix for conditional jumps.
4514 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
4515 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
4516 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
4517 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
4518 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
4519 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
4521 * init.c (sigcancel_handler): Compare with correct PID even if the
4522 thread is in the middle of a fork call.
4523 (sighandler_setxid): Likewise.
4524 Reported by Suzuki K P <suzuki@in.ibm.com> .
4526 2006-04-07 Jakub Jelinek <jakub@redhat.com>
4528 * pthreadP.h (FUTEX_TID_MASK): Sync with kernel.
4530 2006-04-06 Ulrich Drepper <drepper@redhat.com>
4532 * pthread_getattr_np.c (pthread_getattr_np): Close fp if getrlimit
4533 fails [Coverity CID 105].
4535 2006-04-05 Ulrich Drepper <drepper@redhat.com>
4537 * sysdeps/pthread/pthread.h: Add nonnull attributes.
4539 2006-04-03 Steven Munroe <sjmunroe@us.ibm.com>
4542 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h [_ARCH_PWR4]:
4543 Define __lll_rel_instr using lwsync.
4545 2006-03-27 Ulrich Drepper <drepper@redhat.com>
4547 * allocatestack.c (allocate_stack): Always initialize robust_head.
4548 * descr.h: Define struct robust_list_head.
4549 (struct pthread): Use robust_list_head in robust mutex list definition.
4550 Adjust ENQUEUE_MUTEX and DEQUEUE_MUTEX.
4551 * init.c [!__ASSUME_SET_ROBUST_LIST] (__set_robust_list_avail): Define.
4552 (__pthread_initialize_minimal_internal): Register robust_list with
4554 * pthreadP.h: Remove PRIVATE_ from PTHREAD_MUTEX_ROBUST_* names.
4555 Declare __set_robust_list_avail.
4556 * pthread_create.c (start_thread): Register robust_list of new thread.
4557 [!__ASSUME_SET_ROBUST_LIST]: If robust_list is not empty wake up
4559 * pthread_mutex_destroy.c: For robust mutexes don't look at the
4560 number of users, it's unreliable.
4561 * pthread_mutex_init.c: Allow use of pshared robust mutexes if
4562 set_robust_list syscall is available.
4563 * pthread_mutex_consistent.c: Adjust for PTHREAD_MUTEX_ROBUST_* rename.
4564 * pthread_mutex_lock.c: Simplify robust mutex code a bit.
4565 Set robust_head.list_op_pending before trying to lock a robust mutex.
4566 * pthread_mutex_timedlock.c: Likewise.
4567 * pthread_mutex_trylock.c: Likewise.
4568 * pthread_mutex_unlock.c: Likewise for unlocking.
4569 * Makefile (tests): Add tst-robust8.
4570 * tst-robust8.c: New file.
4572 2006-03-08 Andreas Schwab <schwab@suse.de>
4574 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
4575 (DL_SYSINFO_IMPLEMENTATION): Add missing newline.
4577 2006-03-05 Roland McGrath <roland@redhat.com>
4579 * configure (libc_add_on): Disable add-on when $add_ons_automatic = yes
4580 and $config_os doesn't match *linux*.
4582 2006-03-05 David S. Miller <davem@sunset.davemloft.net>
4584 * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S:
4585 Use __syscall_error.
4586 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
4587 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
4588 * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Likewise.
4589 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
4590 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
4591 * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
4593 2006-03-02 Ulrich Drepper <drepper@redhat.com>
4595 * sysdeps/unix/sysv/linux/aio_misc.h: Various cleanups.
4597 2006-03-01 Ulrich Drepper <drepper@redhat.com>
4599 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
4600 (__lll_robust_lock_wait): Also set FUTEX_WAITERS bit if we got the
4602 (__lll_robust_timedlock_wait): Likewise.
4603 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S
4604 (__lll_robust_lock_wait): Likewise.
4605 (__lll_robust_timedlock_wait): Likewise.
4606 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
4607 (__lll_robust_lock_wait): Likewise.
4608 (__lll_robust_timedlock_wait): Likewise.
4610 2006-03-01 Jakub Jelinek <jakub@redhat.com>
4612 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_robust_mutex_dead,
4613 lll_robust_mutex_trylock, lll_robust_mutex_lock,
4614 lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
4615 lll_robust_mutex_unlock): Define.
4616 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
4618 2006-02-28 H.J. Lu <hongjiu.lu@intel.com>
4620 * sysdeps/unix/sysv/linux/ia64/clone2.S: Include <clone2.S>
4621 instead of <clone.S>.
4623 2006-02-27 Jakub Jelinek <jakub@redhat.com>
4625 * Makefile (libpthread-routines): Add
4626 pthread_mutexattr_[sg]etprotocol, pthread_mutexattr_[sg]etprioceiling
4627 and pthread_mutex_[sg]etprioceiling.
4628 * Versions (GLIBC_2.4): Export pthread_mutexattr_getprotocol,
4629 pthread_mutexattr_setprotocol, pthread_mutexattr_getprioceiling,
4630 pthread_mutexattr_setprioceiling, pthread_mutex_getprioceiling and
4631 pthread_mutex_setprioceiling.
4632 * sysdeps/pthread/pthread.h (PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT,
4633 PTHREAD_PRIO_PROTECT): New enum values.
4634 (pthread_mutexattr_getprotocol, pthread_mutexattr_setprotocol,
4635 pthread_mutexattr_getprioceiling, pthread_mutexattr_setprioceiling,
4636 pthread_mutex_getprioceiling, pthread_mutex_setprioceiling): New
4638 * pthreadP.h (PTHREAD_MUTEX_PRIO_INHERIT_PRIVATE_NP,
4639 PTHREAD_MUTEX_PRIO_PROTECT_PRIVATE_NP): New enum values.
4640 (PTHREAD_MUTEX_PRIO_CEILING_SHIFT, PTHREAD_MUTEX_PRIO_CEILING_MASK):
4642 (PTHREAD_MUTEXATTR_PROTOCOL_SHIFT, PTHREAD_MUTEXATTR_PROTOCOL_MASK,
4643 PTHREAD_MUTEXATTR_PRIO_CEILING_SHIFT,
4644 PTHREAD_MUTEXATTR_PRIO_CEILING_MASK): Define.
4645 (PTHREAD_MUTEXATTR_FLAG_BITS): Or in PTHREAD_MUTEXATTR_PROTOCOL_MASK
4646 and PTHREAD_MUTEXATTR_PRIO_CEILING_MASK.
4647 * pthread_mutex_init.c (__pthread_mutex_init): For the time being
4648 return ENOTSUP for PTHREAD_PRIO_INHERIT or PTHREAD_PRIO_PROTECT
4650 * pthread_mutex_getprioceiling.c: New file.
4651 * pthread_mutex_setprioceiling.c: New file.
4652 * pthread_mutexattr_getprioceiling.c: New file.
4653 * pthread_mutexattr_setprioceiling.c: New file.
4654 * pthread_mutexattr_getprotocol.c: New file.
4655 * pthread_mutexattr_setprotocol.c: New file.
4657 2006-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4659 * sysdeps/unix/sysv/linux/aio_misc.h: Include <limits.h>.
4661 2006-02-27 Roland McGrath <roland@redhat.com>
4663 * sysdeps/pthread/Subdirs: List nptl here too.
4664 * configure (libc_add_on_canonical): New variable.
4666 * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Use #include_next.
4668 * sysdeps/unix/sysv/linux/sleep.c: Use #include_next after #include of
4669 self to get main source tree's file.
4670 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
4671 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4672 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4673 * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
4674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
4675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
4676 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
4677 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4678 * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
4679 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
4680 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
4681 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4682 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4684 * Makefile: Use $(sysdirs) in vpath directive.
4686 * sysdeps/pthread/Makefile (CFLAGS-libc-start.c): Variable removed.
4687 (CPPFLAGS-timer_routines.c): Likewise.
4689 * Makeconfig (includes): Variable removed.
4691 2006-02-26 Roland McGrath <roland@redhat.com>
4693 * sysdeps/generic/pt-raise.c: Moved to ...
4694 * pt-raise.c: ... here.
4695 * sysdeps/generic/lowlevellock.h: Moved to ...
4696 * lowlevellock.h: ... here.
4698 2006-02-23 Roland McGrath <roland@redhat.com>
4700 * descr.h (struct pthread): Add final member `end_padding'.
4701 (PTHREAD_STRUCT_END_PADDING): Use it.
4703 2006-02-20 Roland McGrath <roland@redhat.com>
4705 * sysdeps/mips: Directory removed, saved in ports repository.
4706 * sysdeps/unix/sysv/linux/mips: Likewise.
4708 2006-02-18 Ulrich Drepper <drepper@redhat.com>
4710 * tst-robust1.c: Add second mutex to check that the mutex list is
4713 2006-02-17 Jakub Jelinek <jakub@redhat.com>
4715 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_mutex_dead,
4716 lll_robust_mutex_trylock, lll_robust_mutex_lock,
4717 lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
4718 lll_robust_mutex_unlock): New macros.
4719 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
4720 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
4721 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
4722 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
4723 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: New file.
4725 2006-02-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4727 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Add lll_robust_mutex_*
4729 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: New file.
4731 2006-02-17 Ulrich Drepper <drepper@redhat.com>
4733 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
4734 (lll_robust_mutex_unlock): Avoid unnecessary wakeups.
4735 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
4736 (lll_robust_mutex_unlock): Likewise.
4738 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4740 * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX):
4741 Set robust_list.__next rather than robust_list.
4742 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
4743 (__pthread_list_t): New typedef.
4744 (pthread_mutex_t): Replace __next and __prev fields with __list.
4745 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
4746 (__pthread_list_t): New typedef.
4747 (pthread_mutex_t): Replace __next and __prev fields with __list.
4748 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4749 (__pthread_list_t, __pthread_slist_t): New typedefs.
4750 (pthread_mutex_t): Replace __next and __prev fields with __list.
4751 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4752 (__pthread_list_t, __pthread_slist_t): New typedefs.
4753 (pthread_mutex_t): Replace __next and __prev fields with __list.
4754 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
4755 (__pthread_list_t, __pthread_slist_t): New typedefs.
4756 (pthread_mutex_t): Replace __next and __prev fields with __list.
4757 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
4758 (__pthread_slist_t): New typedef.
4759 (pthread_mutex_t): Replace __next field with __list.
4761 2006-02-15 Ulrich Drepper <drepper@redhat.com>
4763 * pthreadP.h: Define PTHREAD_MUTEX_INCONSISTENT instead of
4764 PTHREAD_MUTEX_OWNERDEAD.
4765 (PTHREAD_MUTEX_ROBUST_PRIVATE_NP): Define as 16, not 256.
4766 Define FUTEX_WAITERS, FUTEX_OWNER_DIED, FUTEX_TID_MASK.
4767 * Makefile (libpthread-routines): Add lowlevelrobustlock.
4768 * pthread_create.c (start_thread): Very much simplify robust_list loop.
4769 * pthread_mutex_consistent.c: Inconsistent mutex have __owner now set
4770 to PTHREAD_MUTEX_INCONSISTENT.
4771 * pthread_mutex_destroy.c: Allow destroying of inconsistent mutexes.
4772 * pthread_mutex_lock.c: Reimplement robust mutex handling.
4773 * pthread_mutex_trylock.c: Likewise.
4774 * pthread_mutex_timedlock.c: Likewise.
4775 * pthread_mutex_unlock.c: Likewise.
4776 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
4777 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
4778 lowlevelrobustlock.sym.
4779 * sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: New file.
4780 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add lll_robust_mutex_*
4782 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4783 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: New file.
4784 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: New file.
4785 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: New file.
4786 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: New file.
4788 2006-02-12 Ulrich Drepper <drepper@redhat.com>
4790 * allocatestack.c (allocate_stack): Initialize robust_list.
4791 * init.c (__pthread_initialize_minimal_internal): Likewise.
4792 * descr.h (struct xid_command): Pretty printing.
4793 (struct pthread): Use __pthread_list_t or __pthread_slist_t for
4794 robust_list. Adjust macros.
4795 * pthread_create.c (start_thread): Adjust robust_list handling.
4796 * phtread_mutex_unlock.c: Don't allow unlocking from any thread
4797 but the owner for all robust mutex types.
4798 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
4799 __pthread_list_t and __pthread_slist_t. Use them in pthread_mutex_t.
4800 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
4801 * sysdeps/pthread/pthread.h: Adjust mutex initializers.
4803 * sysdeps/unix/sysv/linux/i386/not-cancel.h: Define openat_not_cancel,
4804 openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3.
4806 2006-02-08 Jakub Jelinek <jakub@redhat.com>
4808 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait,
4809 lll_futex_timedwait, lll_wait_tid): Add "memory" clobber.
4811 2006-01-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4813 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_wait):
4815 (lll_futex_timed_wait): Define.
4817 2006-01-19 Ulrich Drepper <drepper@redhat.com>
4819 * tst-cancel4.c: Test ppoll.
4821 2006-01-18 Andreas Jaeger <aj@suse.de>
4824 * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
4825 (pthread_mutex_t): Follow changes for other archs. Based on patch
4826 by Jim Gifford <patches@jg555.com>.
4828 2006-01-13 Richard Henderson <rth@redhat.com>
4830 * sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private.
4832 2006-01-10 Roland McGrath <roland@redhat.com>
4834 * sysdeps/alpha/jmpbuf-unwind.h: File moved to main source tree.
4835 * sysdeps/i386/jmpbuf-unwind.h: Likewise.
4836 * sysdeps/mips/jmpbuf-unwind.h: Likewise.
4837 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
4838 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
4839 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
4840 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
4841 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
4842 * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
4843 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
4845 2006-01-09 Roland McGrath <roland@redhat.com>
4847 * tst-initializers1-c89.c: New file.
4848 * tst-initializers1-c99.c: New file.
4849 * tst-initializers1-gnu89.c: New file.
4850 * tst-initializers1-gnu99.c: New file.
4851 * Makefile (tests): Add them.
4852 (CFLAGS-tst-initializers1-c89.c): New variable.
4853 (CFLAGS-tst-initializers1-c99.c): New variable.
4854 (CFLAGS-tst-initializers1-gnu89.c): New variable.
4855 (CFLAGS-tst-initializers1-gnu99.c): New variable.
4857 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
4858 Use __extension__ on anonymous union definition.
4859 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
4860 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
4861 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
4862 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
4863 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
4865 2006-01-08 Jakub Jelinek <jakub@redhat.com>
4867 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
4868 Don't give the union a name because it changes the mangled name.
4869 Instead name the struct for __data.
4870 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_mutex_t):
4872 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_mutex_t):
4875 2006-01-09 Jakub Jelinek <jakub@redhat.com>
4877 * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Add
4878 stack bias to mc_ftp field.
4880 2006-01-07 Ulrich Drepper <drepper@redhat.com>
4882 * sysdeps/pthread/aio_misc.h (AIO_MISC_WAIT): Work around gcc
4883 being too clever and reloading the futex value where it shouldn't.
4885 2006-01-06 Ulrich Drepper <drepper@redhat.com>
4887 * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX): Use
4890 2006-01-06 Jakub Jelinek <jakub@redhat.com>
4892 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
4895 2006-01-06 Ulrich Drepper <drepper@redhat.com>
4897 * sysdeps/ia64/tls.h (tcbhead_t): Rename private member to __private.
4898 * sysdeps/ia64/tcb-offsets.sym: Adjust for private->__private
4899 rename in tcbhead_t.
4901 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
4902 Don't give the union a name because it changes the mangled name.
4903 Instead name the struct for __data.
4904 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
4905 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
4906 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
4907 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
4908 * pthread_create.c (start_thread): Adjust robust mutex free loop.
4909 * descr.h (ENQUEUE_MUTEX, DEQUEUE_MUTEX): Adjust.
4911 2006-01-05 Ulrich Drepper <drepper@redhat.com>
4913 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
4915 (lll_futex_timed_wait): Define.
4916 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4917 * sysdeps/pthread/aio_misc.h: New file.
4919 2006-01-03 Joseph S. Myers <joseph@codesourcery.com>
4921 * Makefile ($(objpfx)$(multidir)): Use mkdir -p.
4923 2006-01-03 Steven Munroe <sjmunroe@us.ibm.com>
4925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
4926 (PSEUDO): Remove redundant cfi_startproc and cfi_endproc directives.
4927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
4929 2006-01-04 Ulrich Drepper <drepper@redhat.com>
4931 * tst-cancel24.cc: Use C headers instead of C++ headers.
4933 2006-01-03 Jakub Jelinek <jakub@redhat.com>
4935 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Remove #error for
4936 sparc-linux configured glibc.
4937 (lll_futex_wake_unlock): Define to 1 for sparc-linux configured glibc.
4938 (__lll_mutex_trylock, __lll_mutex_cond_trylock, __lll_mutex_lock,
4939 __lll_mutex_cond_lock, __lll_mutex_timedlock): Use
4940 atomic_compare_and_exchange_val_24_acq instead of
4941 atomic_compare_and_exchange_val_acq.
4942 (lll_mutex_unlock, lll_mutex_unlock_force): Use atomic_exchange_24_rel
4943 instead of atomic_exchange_rel.
4944 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: New file.
4945 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c: New
4947 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c: New
4949 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: New file.
4950 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: New file.
4951 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: New file.
4952 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: New file.
4953 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: New file.
4954 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
4956 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
4958 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: New file.
4959 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: New file.
4960 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c: New
4962 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c: New
4964 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: New file.
4966 2006-01-03 Ulrich Drepper <drepper@redhat.com>
4968 * sysdeps/pthread/pthread.h [__WORDSIZE==64]: Don't use cast in
4971 2006-01-02 Jakub Jelinek <jakub@redhat.com>
4973 * sysdeps/sparc/tls.h (tcbhead_t): Add pointer_guard field.
4974 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
4975 THREAD_COPY_POINTER_GUARD): Define.
4976 * sysdeps/sparc/tcb-offsets.sym (POINTER_GUARD): Define.
4977 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Revert 2005-12-27 changes.
4979 2006-01-01 Ulrich Drepper <drepper@redhat.com>
4981 * version.c: Update copyright year.
4983 2005-12-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4985 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Remove explicit
4986 .eh_frame section, use cfi_* directives.
4987 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Add cfi instrumentation.
4989 2005-12-30 Ulrich Drepper <drepper@redhat.com>
4991 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Undo last change for
4994 2005-12-29 Ulrich Drepper <drepper@redhat.com>
4996 * sysdeps/pthread/sigaction.c: Removed.
4997 * sigaction.c: New file.
4998 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-sigaction.c.
5000 2005-12-28 Ulrich Drepper <drepper@redhat.com>
5002 * Makefile (tests): Add tst-signal7.
5003 * tst-signal7.c: New file.
5005 2005-12-27 Roland McGrath <roland@redhat.com>
5007 * sysdeps/x86_64/jmpbuf-unwind.h (_jmpbuf_sp): New inline function.
5008 (_JMPBUF_UNWINDS_ADJ): Use it, to PTR_DEMANGLE before comparison.
5009 * sysdeps/alpha/jmpbuf-unwind.h: Likewise.
5010 * sysdeps/i386/jmpbuf-unwind.h: Likewise.
5011 * sysdeps/mips/jmpbuf-unwind.h: Likewise.
5012 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
5013 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
5014 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
5015 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
5016 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
5017 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
5019 2005-12-27 Jakub Jelinek <jakub@redhat.com>
5021 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Add __next
5022 and __prev field to pthread_mutex_t.
5023 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5024 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5025 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5026 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5027 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Add __next field
5030 2005-12-26 Ulrich Drepper <drepper@redhat.com>
5032 * pthreadP.h: Define PTHREAD_MUTEX_ROBUST_PRIVATE_NP,
5033 PTHREAD_MUTEX_ROBUST_PRIVATE_RECURSIVE_NP,
5034 PTHREAD_MUTEX_ROBUST_PRIVATE_ERRORCHECK_NP,
5035 PTHREAD_MUTEX_ROBUST_PRIVATE_ADAPTIVE_NP,
5036 PTHREAD_MUTEXATTR_FLAG_ROBUST, PTHREAD_MUTEXATTR_FLAG_PSHARED,
5037 and PTHREAD_MUTEXATTR_FLAG_BITS.
5038 * descr.h (struct pthread): Add robust_list field and define
5039 ENQUEUE_MUTEX and DEQUEUE_MUTEX macros.
5040 * pthread_mutexattr_getrobust.c: New file.
5041 * pthread_mutexattr_setrobust.c: New file.
5042 * pthread_mutex_consistent.c: New file.
5043 * sysdeps/pthread/pthread.h: Declare pthread_mutexattr_getrobust,
5044 pthread_mutexattr_setrobust, and pthread_mutex_consistent.
5045 Define PTHREAD_MUTEX_STALLED_NP and PTHREAD_MUTEX_ROBUST_NP.
5046 Adjust pthread_mutex_t initializers.
5047 * nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Add __next
5048 field to pthread_mutex_t.
5049 * nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Add __next
5050 and __prev field to pthread_mutex_t.
5051 * Versions [GLIBC_2.4]: Export pthread_mutexattr_getrobust_np,
5052 pthread_mutexattr_setrobust_np, and pthread_mutex_consistent_np.
5053 * pthread_mutexattr_getpshared.c: Use PTHREAD_MUTEXATTR_FLAG_PSHARED
5054 and PTHREAD_MUTEXATTR_FLAG_BITS macros instead of magic numbers.
5055 * pthread_mutexattr_gettype.c: Likewise.
5056 * pthread_mutexattr_setpshared.c: Likewise.
5057 * pthread_mutexattr_settype.c: Likewise.
5058 * pthread_mutex_init.c: Reject robust+pshared attribute for now.
5059 Initialize mutex kind according to robust flag.
5060 * pthread_mutex_lock.c: Implement local robust mutex.
5061 * pthread_mutex_timedlock.c: Likewise.
5062 * pthread_mutex_trylock.c: Likewise.
5063 * pthread_mutex_unlock.c: Likewise.
5064 * pthread_create.c (start_thread): Mark robust mutexes which remained
5066 * tst-robust1.c: New file.
5067 * tst-robust2.c: New file.
5068 * tst-robust3.c: New file.
5069 * tst-robust4.c: New file.
5070 * tst-robust5.c: New file.
5071 * tst-robust6.c: New file.
5072 * tst-robust7.c: New file.
5073 * Makefile (libpthread-routines): Add pthread_mutexattr_getrobust,
5074 pthread_mutexattr_setrobust, and pthread_mutex_consistent.
5075 (tests): Add tst-robust1, tst-robust2, tst-robust3, tst-robust4,
5076 tst-robust5, tst-robust6, and tst-robust7.
5078 * tst-typesizes.c: New file.
5079 * Makefile (tests): Add tst-typesizes.
5081 * tst-once3.c: More debug output.
5083 2005-12-24 Ulrich Drepper <drepper@redhat.com>
5085 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Add break
5086 missing after last change.
5088 * version.c: Update copyright year.
5090 2005-12-23 Ulrich Drepper <drepper@redhat.com>
5092 * pthread_mutex_destroy.c: Set mutex type to an invalid value.
5093 * pthread_mutex_lock.c: Return EINVAL for invalid mutex type.
5094 * pthread_mutex_trylock.c: Likewise.
5095 * pthread_mutex_timedlock.c: Likewise.
5096 * pthread_mutex_unlock.c: Likewise.
5098 2005-12-22 Roland McGrath <roland@redhat.com>
5100 * sysdeps/pthread/sigaction.c: Use "" instead of <> to include self,
5101 so that #include_next's search location is not reset to the -I..
5102 directory where <nptl/...> can be found.
5104 2005-12-22 Ulrich Drepper <drepper@redhat.com>
5107 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
5108 Fix unwind info. Remove useless branch prediction prefix.
5109 * tst-cancel24.cc: New file.
5110 * Makefile: Add rules to build and run tst-cancel24.
5112 2005-12-21 Roland McGrath <roland@redhat.com>
5114 * libc-cancellation.c: Use <> rather than "" #includes.
5115 * pt-cleanup.c: Likewise.
5116 * pthread_create.c: Likewise.
5117 * pthread_join.c: Likewise.
5118 * pthread_timedjoin.c: Likewise.
5119 * pthread_tryjoin.c: Likewise.
5120 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Likewise.
5121 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
5122 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
5123 * unwind.c: Likewise.
5125 2005-12-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5127 * sysdeps/sh/tcb-offsets.sym: Add POINTER_GUARD.
5128 * sysdeps/sh/tls.h (tcbhead_t): Remove private and add pointer_guard.
5129 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5130 THREAD_COPY_POINTER_GUARD): Define.
5132 2005-12-19 Jakub Jelinek <jakub@redhat.com>
5134 * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): Make room for 2 uintptr_t's
5136 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5137 THREAD_COPY_POINTER_GUARD): Define.
5138 * sysdeps/powerpc/tcb-offsets.sym (POINTER_GUARD): Add.
5139 * sysdeps/powerpc/tls.h (tcbhead_t): Add pointer_guard field.
5140 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5141 THREAD_COPY_POINTER_GUARD): Define.
5142 * sysdeps/s390/tcb-offsets.sym (STACK_GUARD): Add.
5143 * sysdeps/s390/tls.h (THREAD_GET_POINTER_GUARD,
5144 THREAD_SET_POINTER_GUARD, THREAD_COPY_POINTER_GUARD): Define.
5145 * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S (__ia64_longjmp):
5146 Use PTR_DEMANGLE for B0 if defined.
5148 2005-12-17 Ulrich Drepper <drepper@redhat.com>
5150 * pthread_create.c (__pthread_create_2_1): Use
5151 THREAD_COPY_POINTER_GUARD if available.
5152 * sysdeps/i386/tcb-offsets.sym: Add POINTER_GUARD.
5153 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
5154 * sysdeps/i386/tls.h (tcbhead_t): Add pointer_guard.
5155 Define THREAD_SET_POINTER_GUARD and THREAD_COPY_POINTER_GUARD.
5156 * sysdeps/x86_64/tls.h: Likewise.
5158 2005-12-15 Roland McGrath <roland@redhat.com>
5160 * sysdeps/unix/sysv/linux/mq_notify.c: Don't use sysdeps/generic.
5162 2005-12-13 Ulrich Drepper <drepper@redhat.com>
5164 * sysdeps/pthread/sigfillset.c: Adjust for files moved out of
5166 * errno-loc.c: New file.
5168 2005-12-12 Roland McGrath <roland@redhat.com>
5170 * init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
5171 adjustments before choosing stack size. Update minimum stack size
5172 calculation to match allocate_stack change.
5174 2005-12-12 Ulrich Drepper <drepper@redhat.com>
5176 * allocatestack.c (allocate_stack): Don't demand that there is an
5177 additional full page available on the stack beside guard, TLS, the
5180 2005-11-24 Ulrich Drepper <drepper@redhat.com>
5182 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
5183 (__cleanup_fct_attribute): Use __regparm__ not regparm.
5185 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: When
5186 compiling 32-bit code we must define __cleanup_fct_attribute.
5188 005-11-24 Jakub Jelinek <jakub@redhat.com>
5191 * sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
5192 __attribute__ instead of __attribute.
5193 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
5194 (__cleanup_fct_attribute): Likewise.
5196 2005-11-17 Jakub Jelinek <jakub@redhat.com>
5198 * sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
5199 a write barrier before writing libgcc_s_getcfa.
5201 2005-11-06 Ulrich Drepper <drepper@redhat.com>
5203 * sysdeps/unix/sysv/linux/configure: Removed.
5205 2005-11-05 Ulrich Drepper <drepper@redhat.com>
5207 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Remove trace of
5208 optional init_array/fini_array support.
5210 2005-10-24 Roland McGrath <roland@redhat.com>
5212 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove unnecessary
5213 versioned_symbol use.
5215 2005-10-16 Roland McGrath <roland@redhat.com>
5217 * init.c (__pthread_initialize_minimal_internal): Even when using a
5218 compile-time default stack size, apply the minimum that allocate_stack
5219 will require, and round up to page size.
5221 2005-10-10 Daniel Jacobowitz <dan@codesourcery.com>
5223 * Makefile ($(test-modules)): Remove static pattern rule.
5225 2005-10-14 Jakub Jelinek <jakub@redhat.com>
5226 Ulrich Drepper <drepper@redhat.com>
5228 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix stack
5229 alignment in callback function.
5230 * Makefile: Add rules to build and run tst-align3.
5231 * tst-align3.c: New file.
5233 2005-10-03 Jakub Jelinek <jakub@redhat.com>
5235 * allocatestack.c (setxid_signal_thread): Add
5236 INTERNAL_SYSCALL_DECL (err).
5238 2005-10-02 Jakub Jelinek <jakub@redhat.com>
5240 * allocatestack.c (setxid_signal_thread): Need to use
5241 atomic_compare_and_exchange_bool_acq.
5243 2005-10-01 Ulrich Drepper <drepper@redhat.com>
5244 Jakub Jelinek <jakub@redhat.com>
5246 * descr.h: Define SETXID_BIT and SETXID_BITMASK. Adjust
5248 (struct pthread): Move specific_used field to avoid padding.
5249 Add setxid_futex field.
5250 * init.c (sighandler_setxid): Reset setxid flag and release the
5252 * allocatestack.c (setxid_signal_thread): New function. Broken
5253 out of the bodies of the two loops in __nptl_setxid. For undetached
5254 threads check whether they are exiting and if yes, don't send a signal.
5255 (__nptl_setxid): Simplify loops by using setxid_signal_thread.
5256 * pthread_create.c (start_thread): For undetached threads, check
5257 whether setxid bit is set. If yes, wait until signal has been
5260 * allocatestack.c (STACK_VARIABLES): Initialize them.
5261 * pthread_create.c (__pthread_create_2_1): Initialize pd.
5263 2004-09-02 Jakub Jelinek <jakub@redhat.com>
5265 * pthread_cond_destroy.c (__pthread_cond_destroy): If there are
5266 waiters, awake all waiters on the associated mutex.
5268 2005-09-22 Roland McGrath <roland@redhat.com>
5270 * perf.c [__x86_64__] (HP_TIMING_NOW): New macro (copied from
5271 ../sysdeps/x86_64/hp-timing.h).
5273 2005-08-29 Jakub Jelinek <jakub@redhat.com>
5275 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_WAKE_OP,
5276 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5277 (lll_futex_wake_unlock): Define.
5278 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_WAKE_OP,
5279 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5280 (lll_futex_wake_unlock): Define.
5281 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_WAKE_OP,
5282 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5283 (lll_futex_wake_unlock): Define.
5284 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_WAKE_OP,
5285 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5286 (lll_futex_wake_unlock): Define.
5287 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_WAKE_OP,
5288 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5289 (lll_futex_wake_unlock): Define.
5290 * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): Use
5291 lll_futex_wake_unlock.
5292 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
5293 (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5294 (__pthread_cond_signal): Use FUTEX_WAKE_OP.
5295 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5296 (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5297 (__pthread_cond_signal): Use FUTEX_WAKE_OP.
5299 2005-09-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5301 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
5302 Fix typo in register name.
5304 2005-08-23 Ulrich Drepper <drepper@redhat.com>
5306 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
5307 Use __sigfillset. Document that sigfillset does the right thing wrt
5310 2005-07-11 Jakub Jelinek <jakub@redhat.com>
5313 * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER,
5314 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
5315 PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
5316 PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_RWLOCK_INITIALIZER,
5317 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
5318 PTHREAD_COND_INITIALIZER): Supply zeros for all fields
5320 * Makefile (tests): Add tst-initializers1.
5321 (CFLAGS-tst-initializers1.c): Set.
5322 * tst-initializers1.c: New test.
5324 2005-07-11 Jakub Jelinek <jakub@redhat.com>
5326 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_rwlock_t):
5327 Make sure __flags are located at offset 48 from the start of the
5330 2005-07-02 Roland McGrath <roland@redhat.com>
5332 * Makeconfig: Comment fix.
5334 2005-07-05 Jakub Jelinek <jakub@redhat.com>
5336 * descr.h (PTHREAD_STRUCT_END_PADDING): Define.
5337 * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): If PTHREAD_STRUCT_END_PADDING
5338 is smaller than 8 bytes, increase TLS_PRE_TCB_SIZE by 16 bytes.
5339 (THREAD_SYSINFO, THREAD_SELF, DB_THREAD_SELF): Don't assume
5340 TLS_PRE_TCB_SIZE is sizeof (struct pthread).
5341 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5342 * sysdeps/ia64/tcb-offsets.sym (PID, TID, MULTIPLE_THREADS_OFFSET):
5343 Use TLS_PRE_TCB_SIZE instead of sizeof (struct pthread).
5344 * sysdeps/unix/sysv/linux/ia64/createthread.c (TLS_VALUE): Don't
5345 assume TLS_PRE_TCB_SIZE is sizeof (struct pthread).
5347 2005-06-25 Jakub Jelinek <jakub@redhat.com>
5349 * sysdeps/i386/tls.h (tcbhead_t): Add stack_guard field.
5350 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5351 * sysdeps/x86_64/tls.h (tcbhead_t): Add sysinfo and stack_guard
5353 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5354 * sysdeps/s390/tls.h (tcbhead_t): Add stack_guard
5355 field. Put in sysinfo field unconditionally.
5356 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5357 * sysdeps/powerpc/tls.h (tcbhead_t): Add stack_guard field.
5358 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5359 * sysdeps/sparc/tls.h (tcbhead_t): Add sysinfo and stack_guard
5361 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5362 * pthread_create.c (__pthread_create_2_1): Use
5363 THREAD_COPY_STACK_GUARD macro.
5364 * Makefile: Add rules to build and run tst-stackguard1{,-static}
5366 * tst-stackguard1.c: New file.
5367 * tst-stackguard1-static.c: New file.
5369 2005-06-14 Alan Modra <amodra@bigpond.net.au>
5371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
5372 Invoke CGOTSETUP and CGOTRESTORE.
5373 (CGOTSETUP, CGOTRESTORE): Define.
5375 2005-05-29 Richard Henderson <rth@redhat.com>
5377 * tst-cancel4.c (WRITE_BUFFER_SIZE): New.
5378 (tf_write, tf_writev): Use it.
5379 (do_test): Use socketpair instead of pipe. Set SO_SNDBUF to
5382 2005-05-23 Jakub Jelinek <jakub@redhat.com>
5384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
5385 [IS_IN_librt] (CENABLE, CDISABLE): Use JUMPTARGET instead of
5386 __librt_*_asynccancel@local.
5388 2005-05-17 Alan Modra <amodra@bigpond.net.au>
5390 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Delete
5391 all occurrences of JUMPTARGET. Instead append @local to labels.
5393 2005-05-20 Jakub Jelinek <jakub@redhat.com>
5395 * sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
5396 size/alignment of struct pthread rather than tcbhead_t.
5397 * sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5399 * sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5401 * sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5404 2005-05-19 Richard Henderson <rth@redhat.com>
5406 * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use
5407 __sync_val_compare_and_swap, not explicit _si variant.
5408 * sysdeps/ia64/pthread_spin_trylock.c (pthread_spin_trylock): Likewise.
5410 2005-05-03 Ulrich Drepper <drepper@redhat.com>
5413 * sysdeps/pthread/pthread.h: Avoid empty initializers.
5415 2005-05-03 Jakub Jelinek <jakub@redhat.com>
5417 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
5418 .eh_frame section, use cfi_* directives.
5420 2005-04-27 Jakub Jelinek <jakub@redhat.com>
5422 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
5425 2005-04-27 Ulrich Drepper <drepper@redhat.com>
5428 * tst-cancel17.c (do_test): Add arbitrary factor to make sure
5431 2005-04-27 Roland McGrath <roland@redhat.com>
5433 * Makefile (tests): Remove tst-clock2.
5435 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle
5436 CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
5437 translating to the kernel clockid_t for our own process/thread clock.
5439 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
5441 2005-04-15 Jakub Jelinek <jakub@redhat.com>
5443 * old_pthread_cond_init.c: Include <errno.h>.
5444 (__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is
5445 process shared or uses clock other than CLOCK_REALTIME.
5446 * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
5448 2005-04-13 David S. Miller <davem@davemloft.net>
5450 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file.
5451 * sysdeps/sparc/sparc64/clone.S: New file.
5453 2005-04-05 Jakub Jelinek <jakub@redhat.com>
5456 * sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use
5457 __inline instead of inline.
5458 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise.
5460 2005-03-31 Jakub Jelinek <jakub@redhat.com>
5462 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use
5463 functionally equivalent, but shorter instructions.
5464 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
5465 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
5466 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
5468 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
5469 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
5470 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
5471 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
5472 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
5473 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
5474 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
5476 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
5477 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5478 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
5479 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
5480 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
5482 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
5484 * sysdeps/mips/Makefile: New file.
5485 * sysdeps/mips/nptl-sysdep.S: New file.
5486 * sysdeps/mips/tcb-offsets.sym: New file.
5487 * sysdeps/mips/pthread_spin_lock.S: New file.
5488 * sysdeps/mips/pthread_spin_trylock.S: New file.
5489 * sysdeps/mips/pthreaddef.h: New file.
5490 * sysdeps/mips/tls.h: New file.
5491 * sysdeps/mips/jmpbuf-unwind.h: New file.
5492 * sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file.
5493 * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file.
5494 * sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file.
5495 * sysdeps/unix/sysv/linux/mips/pthread_once.c: New file.
5496 * sysdeps/unix/sysv/linux/mips/fork.c: New file.
5497 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
5498 * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
5499 * sysdeps/unix/sysv/linux/mips/clone.S: New file.
5500 * sysdeps/unix/sysv/linux/mips/createthread.c: New file.
5501 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
5503 2005-03-23 Ulrich Drepper <drepper@redhat.com>
5506 * pthread_create.c (__pthread_create_2_1): Rename syscall error
5509 2005-03-10 Jakub Jelinek <jakub@redhat.com>
5511 * tst-getpid1.c (do_test): Align stack passed to clone{2,}.
5513 2005-02-25 Roland McGrath <roland@redhat.com>
5515 * alloca_cutoff.c: Correct license text.
5516 * tst-unload.c: Likewise.
5517 * sysdeps/pthread/allocalim.h: Likewise.
5518 * sysdeps/pthread/pt-initfini.c: Likewise.
5519 * sysdeps/pthread/bits/libc-lock.h: Likewise.
5520 * sysdeps/pthread/bits/sigthread.h: Likewise.
5521 * sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
5522 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
5524 2005-02-16 Roland McGrath <roland@redhat.com>
5526 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
5527 Use unsigned int * for ptr_nthreads.
5529 2005-02-14 Alan Modra <amodra@bigpond.net.au>
5532 * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
5535 2005-02-07 Richard Henderson <rth@redhat.com>
5538 * sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first
5541 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
5543 * sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix
5544 order of arguments in invocation of atomic_add_zero.
5546 2005-01-26 Jakub Jelinek <jakub@redhat.com>
5549 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait):
5550 Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS,
5551 at least gotntpoff relocation and addition.
5552 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
5554 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
5556 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
5559 2005-01-06 Ulrich Drepper <drepper@redhat.com>
5561 * allocatestack.c (init_one_static_tls): Adjust initialization of DTV
5562 entry for static tls deallocation fix.
5563 * sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which
5564 also contains information whether the memory pointed to is static
5566 * sysdeps/i386/tls.h: Likewise.
5567 * sysdeps/ia64/tls.h: Likewise.
5568 * sysdeps/powerpc/tls.h: Likewise.
5569 * sysdeps/s390/tls.h: Likewise.
5570 * sysdeps/sh/tls.h: Likewise.
5571 * sysdeps/sparc/tls.h: Likewise.
5572 * sysdeps/x86_64/tls.h: Likewise.
5574 2004-12-27 Ulrich Drepper <drepper@redhat.com>
5576 * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
5578 2004-12-21 Jakub Jelinek <jakub@redhat.com>
5580 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of
5582 * Makefile (tests): Add tst-align2.
5583 * tst-align2.c: New test.
5584 * sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add
5585 -mpreferred-stack-boundary=4.
5587 2004-12-18 Roland McGrath <roland@redhat.com>
5589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h:
5590 New file removed withdrawn for the moment.
5592 2004-12-17 Richard Henderson <rth@redhat.com>
5594 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
5595 * sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
5597 2004-12-16 Ulrich Drepper <drepper@redhat.com>
5599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file.
5600 Increased PTHREAD_STACK_MIN.
5602 * tst-context1.c (stacks): Use bigger stack size.
5604 2004-12-16 Jakub Jelinek <jakub@redhat.com>
5606 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
5607 * sysdeps/sparc/tcb-offsets.sym: Add TID.
5609 2004-12-15 Jakub Jelinek <jakub@redhat.com>
5611 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file.
5612 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
5613 * sysdeps/s390/tcb-offsets.sym (TID): Add.
5615 2004-12-15 Ulrich Drepper <drepper@redhat.com>
5617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file.
5619 2004-12-14 Ulrich Drepper <drepper@redhat.com>
5621 * sysdeps/powerpc/tcb-offsets.sym: Add TID.
5622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
5624 * tst-getpid1.c: If child crashes, report this first. Print which
5627 2004-12-09 Ulrich Drepper <drepper@redhat.com>
5629 * init.c (__pthread_initialize_minimal_internal): Also unblock
5632 2004-12-01 Jakub Jelinek <jakub@redhat.com>
5634 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
5635 _POSIX_THREAD_CPUTIME): Define to 0.
5636 * sysdeps/pthread/timer_create.c (timer_create): Remove unused code
5637 handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
5638 * sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
5639 __timer_signal_thread_tclk): Remove.
5640 (init_module): Remove their initialization.
5641 (thread_cleanup): Remove their cleanup assertions.
5642 * sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
5643 __timer_signal_thread_tclk): Remove.
5644 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
5645 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
5646 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
5648 2004-12-07 Jakub Jelinek <jakub@redhat.com>
5650 * sysdeps/ia64/tcb-offsets.sym (TID): Add.
5651 * sysdeps/unix/sysv/linux/ia64/clone2.S: New file.
5653 * Makefile (tests): Add tst-getpid2.
5654 * tst-getpid1.c (TEST_CLONE_FLAGS): Define.
5655 (do_test): Use it. Use __clone2 instead of clone on ia64.
5656 * tst-getpid2.c: New test.
5658 2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5660 * sysdeps/unix/sysv/linux/sh/clone.S: New file.
5662 2004-12-04 Ulrich Drepper <drepper@redhat.com>
5664 * Makefile (tests): Add tst-getpid1.
5665 * tst-getpid1.c: New file.
5666 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
5667 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
5669 2004-12-02 Roland McGrath <roland@redhat.com>
5671 * Makefile (libpthread-nonshared): Variable removed.
5672 ($(objpfx)libpthread_nonshared.a): Target removed.
5673 ($(inst_libdir)/libpthread_nonshared.a): Likewise.
5674 These are now handled by generic magic from
5675 libpthread-static-only-routines being set.
5677 2004-11-27 Ulrich Drepper <drepper@redhat.com>
5679 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO,
5680 _POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT,
5681 _POSIX_THREAD_PRIO_PROTECT): Define.
5682 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
5683 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
5684 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
5686 2004-11-26 Jakub Jelinek <jakub@redhat.com>
5688 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
5689 _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
5690 _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
5691 _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
5692 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
5693 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
5694 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
5696 2004-11-24 Ulrich Drepper <drepper@redhat.com>
5698 * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
5700 * Makefile (libpthread-routines): Add pthread_setschedprio.
5701 * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
5702 * sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
5703 * pthread_setschedprio.c: New file.
5705 2004-11-20 Jakub Jelinek <jakub@redhat.com>
5707 * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE.
5708 * pthread_cancel.c (pthread_create): Likewise.
5710 * Makefile (libpthread-routines): Add vars.
5711 * sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove.
5712 * init.c (__default_stacksize, __is_smp): Remove.
5714 * pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function
5715 and define a wrapper macro.
5716 (PTHREAD_STATIC_FN_REQUIRE): Define.
5717 * allocatestack.c (__find_thread_by_id): Undefine.
5718 * pthread_create (__pthread_keys): Remove.
5719 (pthread_mutex_lock, pthread_mutex_unlock, pthread_once,
5720 pthread_key_create, pthread_setspecific, pthread_getspecific): Add
5721 PTHREAD_STATIC_FN_REQUIRE.
5723 2004-11-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5725 * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias
5726 parameter to REGISTER macro.
5728 2004-11-17 Roland McGrath <roland@redhat.com>
5730 * sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
5731 Make sure SIGCANCEL is blocked as well.
5733 2004-11-10 Jakub Jelinek <jakub@redhat.com>
5735 * sysdeps/pthread/setxid.h: New file.
5736 * sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove.
5737 (struct xid_command): Add forward decl.
5738 (struct pthread_functions): Change return type of __nptl_setxid hook
5740 * pthreadP.h (__nptl_setxid): Change return type to int.
5741 * allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the
5742 calling thread, return its return value and set errno on failure.
5743 * descr.h (struct xid_command): Change id type to long array.
5745 * Makefile: Add rules to build and test tst-setuid1 and
5747 * tst-setuid1.c: New test.
5748 * tst-setuid1-static.c: New test.
5750 2004-11-10 Jakub Jelinek <jakub@redhat.com>
5752 * Makefile (tests): Add tst-exit3.
5753 * tst-exit3.c: New test.
5755 2004-11-09 Ulrich Drepper <drepper@redhat.com>
5757 * Makefile (tests): Add tst-exit2.
5758 * tst-exit2.c: New file.
5760 2004-11-09 Roland McGrath <roland@redhat.com>
5763 * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
5764 here, before calling clone.
5765 * pthread_create.c (start_thread): Don't do it here.
5767 2004-11-02 Jakub Jelinek <jakub@redhat.com>
5769 * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
5771 2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5773 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
5774 Set ETIMEDOUT to errno when time is up. Tweak to avoid
5777 2004-10-28 Jakub Jelinek <jakub@redhat.com>
5779 * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
5780 if sched_priority is not between minprio and maxprio.
5782 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5784 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
5785 (__pthread_cond_timedwait): Use clock_gettime syscall if exists.
5787 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
5788 (__lll_mutex_timedlock_wait): Fix a bad branch condition.
5790 2004-10-24 Ulrich Drepper <drepper@redhat.com>
5792 * sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use
5793 not-cancelable I/O functions.
5795 2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5797 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
5798 (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
5799 make sure 2 is stored in the futex and we looked at the old value.
5800 Fix a few other problems to return the correct value.
5802 2004-10-14 Richard Henderson <rth@redhat.com>
5804 * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
5807 2004-10-06 Jakub Jelinek <jakub@redhat.com>
5809 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
5810 of pthread-functions.h and pthreaddef.h.
5811 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
5813 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
5814 Change __data.__nwaiters from int to unsigned int.
5816 * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
5817 sysconf (_SC_THREAD_CPUTIME) returns negative value.
5819 * allocatestack.c (__find_thread_by_id): Move attribute_hidden
5822 * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
5823 (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
5825 2004-10-06 Ulrich Drepper <drepper@redhat.com>
5827 * tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the
5828 test fails, remove message queue.
5829 (tf_msgsnd): Likewise.
5831 2004-10-05 Jakub Jelinek <jakub@redhat.com>
5833 * tst-clock1.c: Change #ifdef to #if defined.
5834 * tst-clock2.c: Likewise.
5835 * tst-cond11.c: Likewise.
5837 * sysdeps/pthread/timer_create.c (timer_create): Use
5838 defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of
5839 defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for
5842 2004-10-05 Jakub Jelinek <jakub@redhat.com>
5844 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME,
5845 _POSIX_THREAD_CPUTIME): Define to 0.
5847 2004-10-04 Ulrich Drepper <drepper@redhat.com>
5849 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
5850 and _POSIX_THREAD_CPUTIME to zero.
5851 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
5852 * tst-barrier2.c: Fix testing for POSIX feature.
5853 * tst-clock1.c: Likewise.
5854 * tst-clock2.c: Likewise.
5855 * tst-cond11.c: Likewise.
5856 * tst-cond4.c: Likewise.
5857 * tst-cond6.c: Likewise.
5858 * tst-flock2.c: Likewise.
5859 * tst-mutex4.c: Likewise.
5860 * tst-mutex9.c: Likewise.
5861 * tst-rwlock12.c: Likewise.
5862 * tst-rwlock4.c: Likewise.
5863 * tst-signal1.c: Likewise.
5864 * tst-spin2.c: Likewise.
5865 * sysdeps/pthread/posix-timer.h: Likewise.
5866 * sysdeps/pthread/timer_create.c: Likewise.
5867 * sysdeps/pthread/timer_routines.c: Likewise.
5869 2004-10-01 Ulrich Drepper <drepper@redhat.com>
5871 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
5872 (__lll_mutex_timedlock_wait): Address futex correctly.
5874 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
5875 (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
5876 make sure 2 is stored in the futex and we looked at the old value.
5877 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
5878 (__lll_mutex_timedlock_wait): Likewise. Fix a few other problems
5879 which might very well made the code not working at all before.
5882 2004-09-28 Ulrich Drepper <drepper@redhat.com>
5884 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
5885 allow SIGSETXID to be sent.
5886 * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
5887 for SIGSETXID to be defined.
5888 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
5889 SIGSETXID cannot be blocked.
5891 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
5892 Add __extension__ to long long types.
5893 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5894 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5895 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5896 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5897 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
5898 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
5899 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5901 2004-09-25 Ulrich Drepper <drepper@redhat.com>
5903 * descr.h (struct pthread): Add stopped_start field.
5904 * sysdeps/pthread/createthread.c (create_thread): Set
5905 start_stopped flag in descriptor for new thread appropriately.
5906 * pthread_create.c (start_thread): Only take lock to be stopped on
5907 startup if stopped_start flag says so.
5909 2004-09-24 Ulrich Drepper <drepper@redhat.com>
5911 * pthread_create.c (__pthread_create_2_1): Remember whether thread
5912 is created detached and if yes, do not try to free the stack in case
5913 the thread creation failed.
5914 * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
5915 call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
5916 case there has been no error. [BZ #405]
5918 * pthread_create.c (start_thread): Don't wait for scheduler data
5919 etc to be set at the beginning of the function. The cancellation
5920 infrastructure must have been set up. And enable async
5921 cancellation before potentially going to sleep. [BZ #401]
5923 2004-09-20 Ulrich Drepper <drepper@redhat.com>
5925 * Versions: Remove exports for pthread_set*id_np functions.
5926 * sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes
5928 * Makefile: Don't build pthread_set*id code for now.
5930 2004-09-19 Ulrich Drepper <drepper@redhat.com>
5932 * sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for
5934 * allocatestack.c (__nptl_setxid): New function.
5935 * descr.h (struct xid_command): Define type.
5936 * init.c (pthread_functions): Add ptr__nptl_setxid initialization.
5937 (sighandler_setxid): New function.
5938 (__pthread_initialize_minimal): Register sighandler_setxid for
5940 * pt-allocrtsig.c: Update comment.
5941 * pthreadP.h: Define SIGSETXID. Declare __xidcmd variable.
5942 Declare __nptl_setxid.
5943 * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid.
5944 * sysdeps/pthread/pthread.h: Declare pthread_setgid_np,
5945 pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
5946 pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
5947 and pthread_setresuid_np.
5948 * pthread_setgid_np.c: New file.
5949 * pthread_setuid_np.c: New file.
5950 * pthread_setegid_np.c: New file.
5951 * pthread_seteuid_np.c: New file.
5952 * pthread_setregid_np.c: New file.
5953 * pthread_setreuid_np.c: New file.
5954 * pthread_setresgid_np.c: New file.
5955 * pthread_setresuid_np.c: New file.
5956 * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np,
5957 pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
5958 pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
5959 and pthread_setresuid_np.
5960 * Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid,
5961 pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid,
5962 pthread_setregid, and pthread_setresgid.
5964 2004-09-18 Ulrich Drepper <drepper@redhat.com>
5966 * allocatestack.c (allocate_stack): Return EAGAIN instead of
5967 ENOMEM when out of memory.
5969 2004-09-10 Roland McGrath <roland@redhat.com>
5972 * allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED]
5973 code, since we don't try to use the broken CLONE_STOPPED any more.
5974 * pthread_create.c (start_thread): Likewise.
5976 2004-09-15 Richard Henderson <rth@redhat.com>
5978 * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
5980 2004-09-01 David Mosberger <davidm@hpl.hp.com>
5982 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
5983 (__libc_unwind_longjmp): Delete macro and declare as function.
5984 * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
5985 __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
5987 * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
5988 * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
5989 * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
5991 2004-09-12 Ulrich Drepper <drepper@redhat.com>
5993 * sysdeps/pthread/pthread.h: Make rwlock prototypes available also
5995 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock
5996 types also for __USE_XOPEN2K.
5997 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
5998 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5999 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6000 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6001 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
6002 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6003 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
6006 2004-09-08 Ulrich Drepper <drepper@redhat.com>
6008 * sysdeps/pthread/pthread.h
6009 (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
6010 (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
6011 (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
6012 (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
6015 2004-09-07 Ulrich Drepper <drepper@redhat.com>
6017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow
6018 PSEUDO to be used with . prefix.
6020 * sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once):
6021 Use atomic_increment instead of atomic_exchange_and_add.
6022 * sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once):
6024 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
6026 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
6029 * allocatestack.c (allocate_stack): Use atomic_increment_val
6030 instead of atomic_exchange_and_add.
6031 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise.
6032 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
6034 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
6037 * sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
6038 the initialization function might throw.
6040 2005-09-05 Richard Henderson <rth@redhat.com>
6042 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
6043 Move definition inside libpthread, libc, librt check. Provide
6044 definition for rtld.
6046 2004-09-02 Ulrich Drepper <drepper@redhat.com>
6048 * sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
6049 * sysdeps/i386/jmpbuf-unwind.h: Likewise
6050 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
6051 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
6052 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
6053 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
6054 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
6055 * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
6058 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
6059 Rename __data.__clock to __data.__nwaiters, make it unsigned int.
6060 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
6062 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
6063 Decrement __nwaiters. If pthread_cond_destroy has been called and
6064 this is the last waiter, signal pthread_cond_destroy caller and
6065 avoid using the pthread_cond_t structure after unlock.
6066 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6067 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6068 Read clock type from the least significant bits of __nwaiters instead
6070 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6071 * sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS.
6073 2004-08-31 Jakub Jelinek <jakub@redhat.com>
6076 * Makefile (tests): Add tst-cond20 and tst-cond21.
6077 * tst-cond20.c: New test.
6078 * tst-cond21.c: New test.
6079 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
6080 (pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make
6082 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
6084 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
6085 (pthread_cond_t): Likewise.
6086 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
6088 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6090 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
6092 * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove.
6093 (cond_nwaiters): New.
6095 * pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY
6096 if there are waiters not signalled yet.
6097 Wait until all already signalled waiters wake up.
6098 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement
6099 __nwaiters. If pthread_cond_destroy has been called and this is the
6100 last waiter, signal pthread_cond_destroy caller and avoid using
6101 the pthread_cond_t structure after unlock.
6102 (__pthread_cond_wait): Increment __nwaiters in the beginning,
6103 decrement it when leaving. If pthread_cond_destroy has been called
6104 and this is the last waiter, signal pthread_cond_destroy caller.
6105 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6106 Likewise. Read clock type from the least significant bits of
6107 __nwaiters instead of __clock.
6108 * pthread_condattr_setclock.c (pthread_condattr_setclock): Check
6109 whether clock ID can be encoded in COND_CLOCK_BITS bits.
6110 * pthread_condattr_getclock.c (pthread_condattr_getclock): Decode
6111 clock type just from the last COND_CLOCK_BITS bits of value.
6112 * pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters
6113 instead of __clock, just from second bit of condattr's value.
6115 2004-08-30 Jakub Jelinek <jakub@redhat.com>
6117 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include
6118 bits/wordsize.h. Make the header match i386 header when __WORDSIZE
6120 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
6122 2004-08-15 Roland McGrath <roland@frob.com>
6124 * pthread_atfork.c: Update copyright terms including special exception
6125 for these trivial files, which are statically linked into executables
6126 that use dynamic linking for the significant library code.
6128 2004-08-09 Jakub Jelinek <jakub@redhat.com>
6130 * DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to
6131 pthread_rwlock_rdlock.
6132 * sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
6133 Decrease __nr_readers_queued after reacquiring lock.
6134 * sysdeps/pthread/pthread_rwlock_timedrdlock
6135 (pthread_rwlock_timedrdlock): Likewise.
6136 Reported by Bob Cook <bobcook47@hotmail.com>.
6138 2004-08-11 Jakub Jelinek <jakub@redhat.com>
6140 * tst-rwlock14.c (tf): Read main thread handle from *ARG
6141 before pthread_barrier_wait.
6143 2004-08-07 Ulrich Drepper <drepper@redhat.com>
6145 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
6146 Remove unnecessary exception handling data.
6148 2004-07-23 Jakub Jelinek <jakub@redhat.com>
6151 * sysdeps/pthread/pthread.h (pthread_getcpuclockid): Use __clockid_t
6152 instead of clockid_t.
6154 2004-07-21 Roland McGrath <roland@redhat.com>
6156 * Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
6158 2004-07-19 Roland McGrath <roland@redhat.com>
6160 * tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
6162 2004-07-02 Roland McGrath <roland@redhat.com>
6164 * configure: Don't exit.
6166 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6168 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
6169 (__pthread_cond_timedwait): Check for invalid nanosecond in
6172 2004-07-07 Ulrich Drepper <drepper@redhat.com>
6174 * Makefile: Add rules to build and run tst-fini1.
6175 * tst-fini1.c: New file.
6176 * tst-fini1mod.c: New file.
6178 2004-07-05 Ulrich Drepper <drepper@redhat.com>
6180 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define NO_CANCELLATION
6181 if no cancellation support is needed.
6182 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
6183 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
6184 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
6185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
6186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
6187 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
6188 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
6189 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
6190 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
6192 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define __NR_futex
6193 only if not already defined.
6195 2004-07-05 Jakub Jelinek <jakub@redhat.com>
6197 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use
6198 constraint "m" instead of "0" for futex.
6200 * shlib-versions: Add powerpc64-.*-linux.*.
6202 2004-07-04 Jakub Jelinek <jakub@redhat.com>
6204 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
6205 (pthread_rwlock_timedrdlock): Use cmpq instead of cmpl to check
6207 * tst-rwlock14.c (do_test): Test for invalid tv_nsec equal to
6208 1 billion and 64-bit tv_nsec which is valid when truncated to 32
6211 2004-06-29 Roland McGrath <roland@redhat.com>
6213 * Banner: NPTL no longer has its own version number.
6214 * Makefile (nptl-version): Variable removed.
6215 * sysdeps/pthread/Makefile (CFLAGS-confstr.c): Set LIBPTHREAD_VERSION
6216 using $(version), the glibc version number.
6218 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6220 * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
6221 Fix branch offset for a PLT entry.
6222 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
6224 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
6226 * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
6228 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait):
6231 2004-06-28 Jakub Jelinek <jakub@redhat.com>
6233 * sysdeps/alpha/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define
6236 2004-06-28 Jakub Jelinek <jakub@redhat.com>
6238 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
6239 (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
6241 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
6242 (pthread_rwlock_timedrdlock): Likewise.
6244 2004-06-22 Jakub Jelinek <jakub@redhat.com>
6246 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
6247 Set __r7 to val, not mutex.
6249 2004-06-27 Ulrich Drepper <drepper@redhat.com>
6251 * Makefile: Add rules to build tst-rwlock14.
6252 * tst-rwlock14.c: New file.
6254 2004-06-24 Boris Hu <boris.hu@intel.com>
6256 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation
6258 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
6260 2004-06-19 Andreas Jaeger <aj@suse.de>
6262 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix
6263 assembler in last patch.
6265 2004-06-17 Ulrich Drepper <drepper@redhat.com>
6267 * sysdeps/pthread/pthread_cond_timedwait.c
6268 (__pthread_cond_timedwait): Also check for negativ nanoseconds.
6269 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6270 (__pthread_cond_timedwait): Check for invalid nanosecond in
6272 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6273 * tst-cond19.c: New file.
6274 * Makefile: Add rules to build and run tst-cond19.
6276 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
6278 * tst-context1.c (GUARD_PATTERN): Defined.
6279 (tst_context_t): Define struct containing ucontext_t & guard words.
6280 (ctx): Declare as an array of tst_context_t.
6281 (fct): Verify uc_link & guard words are still valid.
6282 (tf): Initialize guard words in ctx. Adjust ctx refs for new struct.
6284 2004-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6286 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6287 Add __data.__futex field, reshuffle __data.__clock.
6288 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
6289 (__pthread_cond_signal): Increment __futex at the same time as
6290 __wakeup_seq or __total_seq. Pass address of __futex instead of
6291 address of low 32-bits of __wakeup_seq to futex syscall.
6292 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
6293 (__pthread_cond_wait): Likewise. Pass __futex value from before
6294 releasing internal lock to FUTEX_WAIT.
6295 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
6296 (__pthread_cond_timedwait): Likewise.
6297 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
6298 (FUTEX_CMP_REQUEUE): Define.
6299 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6300 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6301 Pass __futex value from before the unlock and __futex address instead
6302 of address of low 32-bits of __wakeup_seq to futex syscall.
6303 Fallback to FUTEX_WAKE all on any errors.
6305 2004-06-08 Jakub Jelinek <jakub@redhat.com>
6307 * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix
6309 * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise.
6310 * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
6311 * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise.
6312 * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
6313 Likewise. Reported by Bob Cook <bobcook47@hotmail.com>.
6315 2004-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
6317 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap):
6318 Add memory clobber to inline assembly.
6319 (__lll_mutex_trylock): Likewise.
6320 (__lll_mutex_cond_trylock): Likewise.
6322 2004-06-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6324 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
6325 Pass val argument as 6th system call argument in %r7.
6327 2004-05-21 Jakub Jelinek <jakub@redhat.com>
6329 * Makefile (tests): Add tst-cond16.
6330 * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add.
6331 * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex.
6332 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
6333 Add __data.__futex field, reshuffle __data.__clock.
6334 * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S
6335 (__pthread_cond_signal): Increment __futex at the same time as
6336 __wakeup_seq or __total_seq. Pass address of __futex instead of
6337 address of low 32-bits of __wakeup_seq to futex syscall.
6338 * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S
6339 (__pthread_cond_wait): Likewise. Pass __futex value from before
6340 releasing internal lock to FUTEX_WAIT.
6341 * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S
6342 (__pthread_cond_timedwait): Likewise.
6343 * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S
6344 (FUTEX_CMP_REQUEUE): Define.
6345 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6346 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6347 Pass __futex value from before the unlock and __futex address instead
6348 of address of low 32-bits of __wakeup_seq to futex syscall.
6349 Fallback to FUTEX_WAKE all on any errors.
6350 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE):
6352 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6353 internally. Return non-zero if error, zero if success.
6354 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
6355 Add __data.__futex field, reshuffle __data.__clock.
6356 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE):
6358 (lll_futex_requeue): Add val argument, return 1 unconditionally
6360 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
6361 Add __data.__futex field, reshuffle __data.__clock.
6362 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE):
6364 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6365 internally. Return non-zero if error, zero if success.
6366 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
6367 (pthread_cond_t): Add __data.__futex field, reshuffle __data.__clock.
6368 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_CMP_REQUEUE):
6370 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6371 internally. Return non-zero if error, zero if success.
6372 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
6373 Add __data.__futex field, reshuffle __data.__clock.
6374 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_CMP_REQUEUE):
6376 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6377 internally. Return non-zero if error, zero if success.
6378 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
6379 Add __data.__futex field, reshuffle __data.__clock.
6380 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
6381 Add __data.__futex field, reshuffle __data.__clock.
6382 * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal):
6383 Increment __futex at the same time as __wakeup_seq or __total_seq.
6384 Pass address of __futex instead of address of low 32-bits of
6385 __wakeup_seq to futex syscall.
6386 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
6387 Pass __futex value from before releasing internal lock
6389 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6390 Likewise. Avoid unnecessary shadowing of variables.
6391 * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast):
6392 Set __futex to 2 * __total_seq. Pass __futex value from before the
6393 unlock and __futex address instead of address of low 32-bits of
6394 __wakeup_seq to futex_requeue macro, adjust for new return value
6396 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
6397 (__pthread_cond_signal): Increment __futex at the same time as
6398 __wakeup_seq or __total_seq. Pass address of __futex instead of
6399 address of low 32-bits of __wakeup_seq to futex syscall.
6400 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
6401 (__pthread_cond_wait): Likewise. Pass __futex value from before
6402 releasing internal lock to FUTEX_WAIT.
6403 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
6404 (__pthread_cond_timedwait): Likewise.
6405 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
6406 (FUTEX_CMP_REQUEUE): Define.
6407 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6408 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6409 Pass __futex value from before the unlock and __futex address instead
6410 of address of low 32-bits of __wakeup_seq to futex syscall.
6411 Fallback to FUTEX_WAKE all on any errors.
6413 2004-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6415 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_mutex_lock):
6416 Add nop to align the end of critical section.
6417 (lll_mutex_cond_lock, lll_mutex_timedlock): Likewise.
6419 2004-06-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6421 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6422 Add __broadcast_seq field.
6423 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Mark
6424 all waiters as woken with woken_seq and bump broadcast counter.
6425 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use new
6426 __broadcast_seq. Increment __woken_seq correctly when cleanuped.
6427 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
6428 Comment typo fixes. Avoid returning -ETIMEDOUT.
6430 2004-06-01 Ulrich Drepper <drepper@redhat.com>
6432 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6433 (__condvar_tw_cleanup): Fix access to saved broadcast_seq value.
6434 Reported by Kaz Kojima.
6436 2004-05-25 Jakub Jelinek <jakub@redhat.com>
6438 * sysdeps/unix/sysv/linux/aio_misc.h: New file.
6440 2004-05-21 Jakub Jelinek <jakub@redhat.com>
6442 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare
6443 __broadcast_seq with bc_seq after acquiring internal lock instead of
6446 2004-05-18 Jakub Jelinek <jakub@redhat.com>
6448 * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not
6450 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6451 (__pthread_cond_timedwait): Avoid returning -ETIMEDOUT.
6452 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
6453 (pthread_cond_t): Add __data.__broadcast_seq field.
6454 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
6455 (FRAME_SIZE): Define.
6456 (__pthread_cond_timedwait): Use it. Store/check broadcast_seq.
6458 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (FRAME_SIZE):
6460 (__pthread_cond_wait): Use it. Store/check broadcast_seq. Comment
6462 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
6463 (__pthread_cond_broadcast): Increment broadcast_seq. Comment typo
6466 2004-05-18 Ulrich Drepper <drepper@redhat.com>
6468 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add broadcast_seq entry.
6469 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
6470 Add __broadcast_seq field.
6471 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6472 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6473 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6474 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6475 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6476 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Mark
6477 all waiters as woken with woken_seq and bump broadcast counter.
6478 * sysdeps/pthread/pthread_cond_broadcast.c: Likewise.
6479 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use new
6480 __broadcast_seq field.
6481 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6482 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
6483 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
6484 * pthread_cond_init.c: Initialize __broadcast_seq field.
6485 * Makefile (tests): Add tst-cond17 and tst-cond18.
6486 Add .NOTPARALLEL goal.
6487 * tst-cond16.c: New file. From Jakub.
6488 * tst-cond17.c: New file. From Jakub.
6489 * tst-cond18.c: New file. From Jakub.
6491 2004-05-16 Ulrich Drepper <drepper@redhat.com>
6493 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Correct some
6496 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
6497 Parametrize frame size. Correct some unwind info.
6498 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6500 2004-05-04 Jakub Jelinek <jakub@redhat.com>
6502 * tst-stack3.c: Note testing functionality beyond POSIX.
6504 2004-05-04 Jakub Jelinek <jakub@redhat.com>
6506 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD):
6507 Change conditional from ifdef to if.
6509 2004-04-23 Jakub Jelinek <jakub@redhat.com>
6511 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SYSDEP_CANCEL_ERRNO,
6512 SYSDEP_CANCEL_ERROR): Define.
6515 2004-05-01 Jakub Jelinek <jakub@redhat.com>
6517 * Versions (libpthread): Remove __pthread_cleanup_upto@@GLIBC_PRIVATE.
6519 2004-04-20 Jakub Jelinek <jakub@redhat.com>
6521 * sem_unlink.c (sem_unlink): Change EPERM into EACCES.
6523 2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6525 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
6526 Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
6527 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove unneeded frame
6528 info. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
6530 2004-04-19 Ulrich Drepper <drepper@redhat.com>
6532 * sysdeps/unix/sysv/linux/timer_routines.c: Make sure helper
6533 thread has all signals blocked.
6535 2004-04-18 Andreas Jaeger <aj@suse.de>
6537 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h
6538 (SEM_VALUE_MAX): Add missing brace.
6540 2004-04-17 Jakub Jelinek <jakub@redhat.com>
6542 * sysdeps/pthread/Makefile (tests): Add tst-mqueue8x
6544 (CFLAGS-tst-mqueue8x.c): Add -fexceptions.
6545 * sysdeps/pthread/tst-mqueue8x.c: New test.
6546 * tst-cancel4.c: Update comment about message queues.
6548 * sysdeps/pthread/timer_gettime.c (timer_gettime): For expired timer
6549 return it_value { 0, 0 }.
6550 * sysdeps/pthread/timer_create.c (timer_create): Handle SIGEV_NONE
6552 * sysdeps/pthread/timer_routines.c (thread_expire_timer): Remove
6553 assertion for SIGEV_NONE.
6554 (thread_attr_compare): Compare all attributes, not just a partial
6557 2004-04-17 Jakub Jelinek <jakub@redhat.com>
6559 * sysdeps/unix/sysv/linux/mq_notify.c: Include stdlib.h.
6561 2004-04-17 Ulrich Drepper <drepper@redhat.com>
6563 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h (SEM_VALUE_MAX):
6564 Just use a plain number.
6565 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
6566 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
6567 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
6568 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
6569 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
6570 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
6571 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
6573 2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6575 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded
6577 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
6579 2004-04-15 Jakub Jelinek <jakub@redhat.com>
6581 * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h.
6582 (timer_helper_thread): Use inline rt_sigtimedwait syscall instead
6583 of calling sigwaitinfo.
6585 2004-04-16 Ulrich Drepper <drepper@redhat.com>
6587 * allocatestack.c (allocate_stack): Set reported_guardsize
6589 * pthread_getattr_np.c (pthread_getattr_np): Use
6590 reported_guardsize instead of guardsize.
6591 * descr.h (struct pthread): Add reported_guardsize field.
6593 2004-04-13 Jakub Jelinek <jakub@redhat.com>
6595 * sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.
6597 2004-04-12 Ulrich Drepper <drepper@redhat.com>
6599 * sysdeps/unix/sysv/linux/mq-notify.c: New file.
6601 2004-04-08 Jakub Jelinek <jakub@redhat.com>
6603 * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define.
6604 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h (MQ_PRIO_MAX): Define.
6605 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h (MQ_PRIO_MAX): Define.
6606 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h (MQ_PRIO_MAX): Define.
6607 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_MESSAGE_PASSING):
6609 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h
6610 (_POSIX_MESSAGE_PASSING): Define.
6611 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h
6612 (_POSIX_MESSAGE_PASSING): Define.
6613 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h
6614 (_POSIX_MESSAGE_PASSING): Define.
6616 2004-04-04 Ulrich Drepper <drepper@redhat.com>
6618 * tst-context1.c (fct): Check whether correct stack is used.
6620 2004-04-03 Ulrich Drepper <drepper@redhat.com>
6622 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
6623 matching constraints for asm mem parameters.
6625 * tst-clock2.c (tf): Don't define unless needed.
6627 2004-03-30 H.J. Lu <hongjiu.lu@intel.com>
6629 * Makefile (link-libc-static): Use $(static-gnulib) instead of
6632 2004-03-30 Ulrich Drepper <drepper@redhat.com>
6634 * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_deallocate_tsd.
6635 * init.c (pthread_functions): Add ptr__nptl_deallocate_tsd.
6636 * pthreadP.h: Declare __nptl_deallocate_tsd.
6637 * pthread_create.c (deallocate_tsd): Remove to __nptl_deallocate_tsd.
6640 * Makefile (tests): Add tst-tsd5.
6641 * tst-tsd5.c: New file.
6643 2004-03-29 Ulrich Drepper <drepper@redhat.com>
6645 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
6646 (__pthread_attr_setaffinity_old): Prepend GLIBC_ to version names
6647 is SHLIB_COMPAT check.
6648 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
6649 (__pthread_attr_getaffinity_old): Likewise.
6650 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
6651 (__pthread_getaffinity_old): Likewise.
6652 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6653 (__pthread_setaffinity_old): Likewise.
6655 2004-03-26 Ulrich Drepper <drepper@redhat.com>
6657 * allocatestack.c (_make_stacks_executable): Call
6658 _dl_make_stack_executable first.
6660 2004-03-24 Roland McGrath <roland@redhat.com>
6662 * sysdeps/i386/pthread_spin_lock.c (pthread_spin_lock): Use "m"
6663 constraint instead of "0".
6665 2004-03-24 Ulrich Drepper <drepper@redhat.com>
6667 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
6668 (lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock.
6670 * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Reorganize
6671 code to avoid warning.
6673 2004-03-24 Andreas Jaeger <aj@suse.de>
6675 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
6676 (__pthread_attr_setaffinity_old): Remove const.
6678 2004-03-23 Ulrich Drepper <drepper@redhat.com>
6680 * sysdeps/unix/sysv/linux/smp.h: New file.
6681 * sysdeps/unix/sysv/linux/sh/smp.h: New file.
6682 * init.c: Define __is_smp.
6683 (__pthread_initialize_minimal_internal): Call is_smp_system to
6684 initialize __is_smp.
6685 * pthreadP.h: Declare __is_smp.
6686 Define MAX_ADAPTIVE_COUNT is necessary.
6687 * pthread_mutex_init.c: Add comment regarding __spins field.
6688 * pthread_mutex_lock.c: Implement adaptive mutex type.
6689 * pthread_mutex_timedlock.c: Likewise.
6690 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
6691 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
6693 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6694 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6695 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6696 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
6697 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6698 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6699 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
6700 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define
6701 lll_mutex_cond_trylock.
6702 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6703 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
6704 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6705 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6706 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6707 Define BUSY_WAIT_NOP.
6708 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6709 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
6711 * tst-mutex5.c: Add support for testing adaptive mutexes.
6712 * tst-mutex7.c: Likewise.
6713 * tst-mutex5a.c: New file.
6714 * tst-mutex7a.c: New file.
6715 * Makefile (tests): Add tst-mutex5a and tst-mutex7a.
6717 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
6718 (__lll_mutex_timedlock_wait): Preserve r8 and r9 since the
6719 vgettimeofday call might destroy the content.
6721 * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use hint
6724 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
6725 No need to restrict type of ret. Make it int. Add comment.
6727 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
6728 Remove unnecessary setne instruction.
6730 2004-03-22 Jakub Jelinek <jakub@redhat.com>
6732 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
6733 (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
6734 * pthread_getattr_np.c (pthread_getattr_np): Double size every cycle.
6735 If realloc fails, break out of the loop.
6737 2004-03-20 Andreas Jaeger <aj@suse.de>
6739 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6740 (__pthread_setaffinity_old): Fix interface.
6741 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
6742 (__pthread_getaffinity_old): Likewise.
6744 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6745 (__pthread_setaffinity_new): Remove duplicate declaration.
6747 2004-03-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6749 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save
6750 the return value to a safe register.
6751 (CDISABLE): Set the function argument correctly.
6753 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6755 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XCHG): Define.
6756 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
6757 Rewrite so that only one locked memory operation per round is needed.
6758 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
6759 (pthread_barrier_wait): After wakeup, release lock only when the
6760 last thread stopped using the barrier object.
6761 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
6762 (__pthread_cond_wait): Don't store mutex address if the current
6763 value is ~0l. Add correct cleanup support and unwind info.
6764 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
6765 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
6766 (__pthread_cond_broadcast): Don't use requeue for pshared condvars.
6767 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Update comment.
6768 * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
6769 Add correct cleanup support and unwind info.
6770 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
6771 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Add unwind
6772 information for syscall wrappers.
6774 2004-03-18 Ulrich Drepper <drepper@redhat.com>
6776 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
6777 cpusetsize field, remove next.
6778 * sysdeps/pthread/pthread.h (pthread_getaffinity_np): Add new second
6779 parameter for size of the CPU set.
6780 (pthread_setaffinity_np): Likewise.
6781 (pthread_attr_getaffinity_np): Likewise.
6782 (pthread_attr_setaffinity_np): Likewise.
6783 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Implement
6784 interface change, keep compatibility code.
6785 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
6786 * sysdeps/unix/sysv/linux/pthread_getaffinity.c: Likewise.
6787 * sysdeps/unix/sysv/linux/pthread_setaffinity.c: Likewise.
6788 * pthreadP.h: Remove hidden_proto for pthread_getaffinity_np. Declare
6789 __pthread_getaffinity_np.
6790 * Versions: Add version for changed interfaces.
6791 * tst-attr3.c: Adjust test for interface change.
6792 * pthread_getattr_np.c: Query the kernel about the affinity mask with
6793 increasing buffer sizes.
6794 * pthread_attr_destroy.c: Remove unused list handling.
6795 * pthread_attr_init.c: Likewise.
6797 2004-03-17 Roland McGrath <roland@redhat.com>
6799 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing
6800 first argument to clock_getres so we ever enable kernel timers.
6802 2004-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6804 * init.c (nptl_version): Add __attribute_used__ to nptl_version.
6806 2004-03-12 Richard Henderson <rth@redhat.com>
6808 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate
6809 oldvalue from CENABLE to CDISABLE.
6811 2004-03-12 Ulrich Drepper <drepper@redhat.com>
6813 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
6814 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
6815 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
6816 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
6818 2004-03-11 Richard Henderson <rth@redhat.com>
6820 * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
6821 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID.
6822 * sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
6824 2004-03-11 Jakub Jelinek <jakub@redhat.com>
6826 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Use jgnl
6827 instead of jnl instruction to jump to SYSCALL_ERROR_LABEL.
6828 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S (__vfork): Likewise.
6830 2004-03-11 Jakub Jelinek <jakub@redhat.com>
6832 * forward.c (__pthread_cond_broadcast_2_0,
6833 __pthread_cond_destroy_2_0, __pthread_cond_init_2_0,
6834 __pthread_cond_signal_2_0, __pthread_cond_wait_2_0,
6835 __pthread_cond_timedwait_2_0): Use return 0 as defaction instead of 0.
6837 2004-03-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6839 * sysdeps/sh/tcb-offsets.sym: Add PID.
6840 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Properly handle PID cache.
6841 * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6843 2004-03-10 Ulrich Drepper <drepper@redhat.com>
6845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: No need to
6846 include <sysdep-cancel.h>, vfork is no cancellation point.
6847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
6848 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: Likewise.
6849 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: Likewise.
6851 2004-03-10 Jakub Jelinek <jakub@redhat.com>
6853 * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add
6855 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise.
6856 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork):
6858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
6860 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise.
6861 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise.
6862 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Include tcb-offsets.h.
6863 * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Use DO_CALL instead
6864 of DO_CALL_VIA_BREAK. Work around a gas problem.
6866 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: Remove.
6867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
6868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: New file.
6869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: New file.
6871 * sysdeps/powerpc/tcb-offsets.sym: Add PID.
6873 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S (__vfork): Don't use
6874 a local register for saving old PID. Negate PID in parent upon exit.
6876 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Include
6878 (__vfork): Negate PID if non-zero and set to INT_MIN if zero
6879 before syscall, set to the old value in the parent afterwards.
6880 * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: New file.
6881 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Include
6883 (__vfork): Negate PID if non-zero and set to INT_MIN if zero
6884 before syscall, set to the old value in the parent afterwards.
6885 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: New file.
6886 * sysdeps/s390/tcb-offsets.sym: Add PID.
6888 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Remove.
6889 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: New file.
6890 * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: New file.
6891 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: New file.
6892 * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: New file.
6893 * sysdeps/sparc/tcb-offsets.sym: Add PID.
6895 2004-03-10 Andreas Schwab <schwab@suse.de>
6897 * sysdeps/ia64/tcb-offsets.sym: Add PID.
6898 * sysdeps/unix/sysv/linux/ia64/vfork.S: New file.
6899 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Properly handle PID cache.
6901 2004-03-09 Jakub Jelinek <jakub@redhat.com>
6903 * tst-cancel20.c (do_one_test): Clear in_sh_body first.
6904 * tst-cancel21.c (do_one_test): Likewise.
6905 Reported by Gordon Jin <gordon.jin@intel.com>.
6907 2004-02-09 Jakub Jelinek <jakub@redhat.com>
6909 * sysdeps/unix/sysv/linux/i386/vfork.S (SAVE_PID): Negate PID
6910 if non-zero and set to INT_MIN if zero.
6911 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SAVE_PID): Likewise.
6912 * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Include tcb-offsets.h.
6913 (SAVE_PID, RESTORE_PID): Define.
6915 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: Include tcb-offsets.h.
6916 Use relative path to avoid including NPTL i386/vfork.S.
6917 (SAVE_PID, RESTORE_PID): Define.
6918 * sysdeps/unix/sysv/linux/raise.c: Include limits.h.
6919 (raise): Handle THREAD_SELF->pid INT_MIN the same as 0.
6920 * Makefile (tests): Add tst-vfork1, tst-vfork2, tst-vfork1x and
6922 (tests-reverse): Add tst-vfork1x and tst-vfork2x.
6923 * tst-vfork1.c: New test.
6924 * tst-vfork2.c: New test.
6925 * tst-vfork1x.c: New test.
6926 * tst-vfork2x.c: New test.
6928 2004-03-08 Ulrich Drepper <drepper@redhat.com>
6930 * sysdeps/i386/tcb-offsets.sym: Add PID.
6931 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
6932 * sysdeps/unix/sysv/linux/i386/vfork.S: New file.
6933 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
6935 2004-03-08 Steven Munroe <sjmunroe@us.ibm.com>
6937 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove leading tabs.
6939 2004-03-08 H.J. Lu <hongjiu.lu@intel.com>
6941 * sysdeps/s390/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
6944 2004-03-07 Ulrich Drepper <drepper@redhat.com>
6946 * sysdeps/ia64/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
6949 * tst-once4.c: Remove unnecessary macro definition.
6951 * tst-mutex7.c (do_test): Limit thread stack size.
6952 * tst-once2.c (do_test): Likewise.
6953 * tst-tls3.c (do_test): Likewise.
6954 * tst-tls1.c (do_test): Likewise.
6955 * tst-signal3.c (do_test): Likewise.
6956 * tst-kill6.c (do_test): Likewise.
6957 * tst-key4.c (do_test): Likewise.
6958 * tst-join4.c (do_test): Likewise.
6959 * tst-fork1.c (do_test): Likewise.
6960 * tst-context1.c (do_test): Likewise.
6961 * tst-cond2.c (do_test): Likewise.
6962 * tst-cond10.c (do_test): Likewise.
6963 * tst-clock2.c (do_test): Likewise.
6964 * tst-cancel10.c (do_test): Likewise.
6965 * tst-basic2.c (do_test): Likewise.
6966 * tst-barrier4.c (do_test): Likewise.
6968 2004-03-05 Ulrich Drepper <drepper@redhat.com>
6970 * sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate.
6972 2004-03-01 Ulrich Drepper <drepper@redhat.com>
6974 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6975 (__pthread_cond_timedwait): Optimize wakeup test.
6976 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
6977 (__pthread_cond_wait): Likewise.
6978 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
6979 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6982 2004-02-29 Ulrich Drepper <drepper@redhat.com>
6984 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
6985 (__lll_mutex_lock_wait): Optimize a bit more. Just one copy of
6986 the atomic instruction needed.
6987 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
6988 (__lll_mutex_lock_wait): Likewise.
6990 2004-02-28 Ulrich Drepper <drepper@redhat.com>
6992 * Makefile (tests): Add tst-cond14 and tst-cond15.
6993 * tst-cond14.c: New file.
6994 * tst-cond15.c: New file.
6996 2004-02-27 Ulrich Drepper <drepper@redhat.com>
6998 * sysdeps/pthread/createthread.c (create_thread): Remove use of
6999 CLONE_STOPPED. We cannot use SIGCONT which means CLONE_STOPPED
7000 needs to be implemented differently to be useful.
7002 2004-02-26 Ulrich Drepper <drepper@redhat.com>
7004 * pthread_attr_setschedparam.c: Don't test priority against limits
7005 here. Set ATTR_FLAG_SCHED_SET flag.
7006 * pthread_attr_setschedpolicy.c: Set ATTR_FLAG_POLICY_SET flag.
7007 * pthread_create.c (__pthread_create_2_1): Copy scheduling attributes
7008 from parent thread to child. If attribute is used and scheduling
7009 parameters are not inherited, copy parameters from attribute or
7010 compute them. Check priority value.
7011 * pthread_getschedparam.c: If the parameters aren't known yet get
7012 them from the kernel.
7013 * pthread_setschedparam.c: Set ATTR_FLAG_SCHED_SET and
7014 ATTR_FLAG_POLICY_SET flag for thread.
7015 * sysdeps/unix/sysv/linux/internaltypes.h: Define ATTR_FLAG_SCHED_SET
7016 and ATTR_FLAG_POLICY_SET.
7018 * sysdeps/pthread/createthread.c: Use tgkill if possible.
7020 * pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Don't
7021 fail if stack address hasn't been set. Just return 0.
7023 2004-02-25 Ulrich Drepper <drepper@redhat.com>
7025 * Makefile (tests-nolibpthread): Add tst-unload. Don't link with
7026 libpthread for the files in this list.
7027 (CFLAGS-tst-unload): Removed.
7028 * tst-unload.c (do_test): Don't use complete path for
7031 * Makefile: Define sonames for tst-tls5mod, tst-_res1mod1, and
7034 2004-02-22 Ulrich Drepper <drepper@redhat.com>
7036 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
7037 (__lll_mutex_lock_wait): Rewrite so that only one locked memory
7038 operation per round is needed.
7039 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
7040 (__lll_mutex_lock_wait): Likewise.
7042 2004-02-20 Ulrich Drepper <drepper@redhat.com>
7044 * tst-cancel9.c (cleanup): Don't print to stderr.
7046 2004-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7048 * sysdeps/sh/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Fix variable name.
7050 2004-02-20 Jakub Jelinek <jakub@redhat.com>
7052 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
7053 (__syscall_error_handler2): Call CDISABLE.
7054 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
7055 (__syscall_error_handler2): Call CDISABLE.
7057 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7058 Release lock before the loop, don't reacquire it.
7060 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define.
7062 2004-02-19 Andreas Schwab <schwab@suse.de>
7064 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7067 2004-02-18 Ulrich Drepper <drepper@redhat.com>
7069 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
7070 (pthread_barrier_wait): After wakeup, release lock only when the
7071 last thread stopped using the barrier object.
7072 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
7073 (pthread_barrier_wait): Likewise.
7074 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7076 * Makefile (tests): Add tst-barrier4.
7077 * tst-barrier4.c: New file.
7079 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7080 (__pthread_cond_timedwait): Perform timeout test while holding
7081 internal lock to prevent wakeup race.
7082 Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
7083 * sysdeps/pthread/pthread_cond_timedwait.c
7084 (__pthread_cond_timedwait): Likewise.
7085 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
7086 (__pthread_cond_timedwait): Likewise.
7088 2004-02-18 Jakub Jelinek <jakub@redhat.com>
7090 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S
7091 (__pthread_rwlock_unlock): Access WRITER as 32-bit value.
7092 * Makefile (tests): Add tst-rwlock13.
7093 * tst-rwlock13.c: New test.
7095 2004-02-16 Ulrich Drepper <drepper@redhat.com>
7097 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7098 (__condvar_tw_cleanup): Little optimization.
7099 Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
7101 2004-02-16 Steven Munroe <sjmunroe@us.ibm.com>
7103 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Replace libc with
7104 libpthread as "lib" parameter to SHLIB_COMPAT.
7105 (__novmx_siglongjmp): Fix typo in function name.
7106 (__novmx_longjmp): Fix typo in function name.
7108 2004-02-13 Ulrich Drepper <drepper@redhat.com>
7110 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a
7113 * sysdeps/generic/pt-longjmp.c: Moved to...
7114 * sysdeps/pthread/pt-longjmp.c: ...here. New file.
7116 2004-01-29 Steven Munroe <sjmunroe@us.ibm.com>
7118 * Makefile (libpthread-routines): Add pt-cleanup.
7119 * pt-longjmp.c: Removed.
7120 * pt-cleanup.c: Copied __pthread_cleanup_upto to here. New file.
7121 * sysdeps/generic/pt-longjmp.c: Copied longjmp to here. New file.
7122 * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
7123 Version longjmp, siglongjmp for GLIBC_2.3.4.
7124 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: New File.
7126 2004-02-13 Ulrich Drepper <drepper@redhat.com>
7128 * sysdeps/pthread/pthread_cond_timedwait.c
7129 (__pthread_cond_timedwait): Optimize. Drop internal lock earlier.
7130 Reuse code. Add __builtin_expects.
7132 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7133 (__pthread_cond_timedwait): Get internal lock in case timeout has
7134 passed before the futex syscall.
7135 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
7137 2004-01-20 Ulrich Drepper <drepper@redhat.com>
7139 * allocatestack.c: Pretty printing.
7141 * sysdeps/pthread/createthread.c (create_thread): Don't add
7142 CLONE_DETACHED bit if it is not necessary.
7144 2004-01-16 Ulrich Drepper <drepper@redhat.com>
7146 * pthread_getattr_np.c: Include ldsodefs.h.
7148 2004-01-16 Richard Henderson <rth@redhat.com>
7150 * allocatestack.c: Don't declare __libc_stack_end.
7151 * init.c (__pthread_initialize_minimal_internal): Likewise.
7152 * pthread_getattr_np.c (pthread_getattr_np): Likewise.
7154 2004-01-15 Richard Henderson <rth@redhat.com>
7156 * sysdeps/alpha/tls.h (tcbhead_t): Add private.
7157 (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
7158 TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
7159 GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
7160 (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
7161 (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
7162 (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
7163 * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
7165 2004-01-14 Ulrich Drepper <drepper@redhat.com>
7167 * init.c (pthread_functions): Make array const.
7169 2004-01-13 Ulrich Drepper <drepper@redhat.com>
7171 * allocatestack.c (__make_stacks_executable): Change interface.
7172 Check parameters. Pass parameter on to libc counterpart.
7173 * pthreadP.h: Change declaration.
7175 2004-01-13 Richard Henderson <rth@redhat.com>
7177 * pthread_attr_setstack.c (__old_pthread_attr_setstack): Use
7179 * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize):
7182 * sysdeps/alpha/Makefile: New file.
7183 * sysdeps/alpha/tcb-offsets.sym: New file.
7184 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
7185 Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.
7187 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
7190 2004-01-08 Jakub Jelinek <jakub@redhat.com>
7192 * Makefile (tests): Add tst-backtrace1.
7193 * tst-backtrace1.c: New test.
7195 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
7197 * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
7198 register as second parameter to the REGISTER macro.
7199 * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
7200 * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
7201 * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
7202 * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
7203 * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
7204 of thread register as second parameter to REGISTER macro in 64 case.
7206 2004-01-03 Ulrich Drepper <drepper@redhat.com>
7208 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
7209 (CFLAGS-getpid.o): Defined.
7210 (CFLAGS-getpid.os): Defined.
7212 2003-12-31 Ulrich Drepper <drepper@redhat.com>
7214 * pthread_getattr_np.c (pthread_getattr_np): Make sure stack info
7215 returned for main thread does not overlap with any other VMA.
7216 Patch by Jakub Jelinek.
7218 2003-12-29 Jakub Jelinek <jakub@redhat.com>
7220 * tst-raise1.c: Include stdio.h.
7222 2003-12-23 Jakub Jelinek <jakub@redhat.com>
7224 * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid
7225 setting with __ASSUME_TGKILL || defined __NR_tgkill.
7226 If pid is 0, set it to selftid.
7227 * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline.
7228 Don't set self->pid but self->tid. If self->pid == 0 and self->tid
7229 != 0, return self->tid without doing a syscall.
7230 * descr.h (struct pthread): Move pid field after tid.
7232 * Makefile (tests): Add tst-raise1.
7233 * tst-raise1.c: New file.
7235 2003-12-23 Roland McGrath <roland@redhat.com>
7237 * tst-oddstacklimit.c: New file.
7238 * Makefile (tests): Add it.
7239 (tst-oddstacklimit-ENV): New variable.
7241 * init.c (__pthread_initialize_minimal_internal): Round stack rlimit
7242 value up to page size for __default_stacksize.
7244 2003-12-21 Ulrich Drepper <drepper@redhat.com>
7246 * Makefile (tests): Add tst-eintr5.
7247 * tst-eintr5.c: New file.
7249 * eintr.c (eintr_source): Prevent sending signal to self.
7251 * tst-eintr2.c (tf1): Improve error message.
7253 2003-12-20 Ulrich Drepper <drepper@redhat.com>
7255 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define.
7256 * sysdeps/unix/sysv/linux/getpid.c: New file.
7257 * pthread_cancel.c: Add comment explaining use of PID field.
7258 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
7259 * pthread_getattr_np.c: Use abs() when comparing PID and TID fields.
7260 * sysdeps/unix/sysv/linux/fork.c: Negate PID field of parent
7261 temporarily to signal the field must not be relied on and updated
7263 * sysdeps/unix/sysv/linux/pt-raise.c: Handle case where PID is
7264 temporarily negative.
7265 * sysdeps/unix/sysv/linux/raise.c: Likewise.
7267 2003-12-19 Ulrich Drepper <drepper@redhat.com>
7269 * eintr.c (setup_eintr): Add new parameter. Pass to thread function.
7270 (eintr_source): If ARG != NULL, use pthread_kill.
7271 * tst-eintr1.c: Adjust for this change.
7272 * tst-eintr2.c: Likewise.
7273 * Makefile (tests): Add tst-eintr3 and tst-eintr4.
7274 * tst-eintr3.c: New file.
7275 * tst-eintr4.c: New file.
7277 2003-12-19 Jakub Jelinek <jakub@redhat.com>
7279 * libc-cancellation.c (__libc_enable_asynccancel): Don't cancel
7280 if CANCELSTATE_BITMASK is set.
7281 * sysdeps/pthread/librt-cancellation.c (__librt_enable_asynccancel):
7284 * Makefile (tests): Add tst-cancel22 and tst-cancel23.
7285 (tests-reverse): Add tst-cancel23.
7286 * tst-cancel22.c: New test.
7287 * tst-cancel23.c: New test.
7289 2003-12-18 Ulrich Drepper <drepper@redhat.com>
7291 * tst-eintr1.c: Better error messages.
7293 * Makefile (tests): Add tst-eintr2.
7294 * tst-eintr2.c: New file.
7296 2003-12-18 Jakub Jelinek <jakub@redhat.com>
7298 * Makefile (tests): Add tst-cancel21 and tst-cancelx21.
7299 (CFLAGS-tst-cancelx21.c): Set.
7300 * tst-cancel21.c: New test.
7301 * tst-cancelx21.c: New test.
7303 * unwind.c (FRAME_LEFT): Add adj argument. Subtract it from each
7305 (unwind_stop): Use _JMPBUF_CFA_UNWINDS_ADJ macro instead of
7306 _JMPBUF_CFA_UNWINDS. Adjust FRAME_LEFT invocations.
7307 * pt-longjmp.c: Include jmpbuf-unwind.h.
7308 (__pthread_cleanup_upto): Use _JMPBUF_UNWINDS_ADJ macro instead of
7309 _JMPBUF_UNWINDS. Adjust compared pointers.
7310 * init.c (__pthread_initialize_minimal_internal): Initialize
7311 pd->stackblock_size.
7312 * sysdeps/pthread/jmpbuf-unwind.h: Removed.
7313 * sysdeps/alpha/jmpbuf-unwind.h: New file.
7314 * sysdeps/i386/jmpbuf-unwind.h: New file.
7315 * sysdeps/powerpc/jmpbuf-unwind.h: New file.
7316 * sysdeps/s390/jmpbuf-unwind.h: New file.
7317 * sysdeps/sh/jmpbuf-unwind.h: New file.
7318 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file.
7319 * sysdeps/x86_64/jmpbuf-unwind.h: New file.
7320 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Include stdint.h.
7321 (_JMPBUF_CFA_UNWINDS): Remove.
7322 (_JMPBUF_CFA_UNWINDS_ADJ, _JMPBUF_UNWINDS_ADJ): Define.
7324 2003-12-12 Jakub Jelinek <jakub@redhat.com>
7326 * Makefile (tests): Add tst-cancel20 and tst-cancelx20.
7327 (CFLAGS-tst-cancelx20.c): Set.
7328 * tst-cancel20.c: New test.
7329 * tst-cancelx20.c: New test.
7331 2003-12-17 Ulrich Drepper <drepper@redhat.com>
7333 * init.c (__pthread_initialize_minimal_internal): Don't treat
7334 architectures with separate register stack special here when
7335 computing default stack size.
7337 2003-12-17 Roland McGrath <roland@redhat.com>
7339 * Makefile (tst-cancelx7-ARGS): New variable.
7340 Reportd by Greg Schafer <gschafer@zip.com.au>.
7342 2003-12-17 Jakub Jelinek <jakub@redhat.com>
7344 * Makefile (tests): Add tst-stack3. Depend on $(objpfx)tst-stack3-mem.
7345 (generated): Add tst-stack3.mtrace and tst-stack3-mem.
7346 (tst-stack3-ENV): Set.
7347 ($(objpfx)tst-stack3-mem): New.
7348 * tst-stack3.c: New test.
7350 2003-12-10 David Mosberger <davidm@hpl.hp.com>
7352 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init_EPILOG_BEGINS):
7353 Add unwind directives. Drop unused .regstk directive.
7354 (_fini_EPILOG_BEGINS): Add unwind directives.
7356 2003-12-11 Ulrich Drepper <drepper@redhat.com>
7358 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
7359 Assume parameter is a pointer.
7360 (lll_futex_wake): Likewise.
7361 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wait):
7363 (lll_futex_wake): Likewise.
7364 Reported by Boris Hu.
7365 * sysdeps/unix/sysv/linux/unregister-atfork.c
7366 (__unregister_atfork): Pass pointer to refcntr to lll_futex_wait.
7368 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Simplify a bit.
7370 2003-12-10 Ulrich Drepper <drepper@redhat.com>
7372 * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define.
7373 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call
7374 __rtld_lock_initialize for ld.so lock.
7375 Patch in part by Adam Li <adam.li@intel.com>.
7377 2003-12-02 David Mosberger <davidm@hpl.hp.com>
7379 * Makefile (link-libc-static): Remove -lgcc_eh---it's already mentioned
7380 in $(gnulib). Also, remove stale comment.
7382 2003-11-12 David Mosberger <davidm@hpl.hp.com>
7384 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Take
7385 advantage of new syscall stub and optimize accordingly.
7387 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__NR_futex): Rename
7388 from SYS_futex, to match expectations of
7389 sysdep.h:DO_INLINE_SYSCALL.
7390 (lll_futex_clobbers): Remove.
7391 (lll_futex_timed_wait): Rewrite in terms of DO_INLINE_SYSCALL.
7392 (lll_futex_wake): Likewise.
7393 (lll_futex_requeue): Likewise.
7394 (__lll_mutex_trylock): Rewrite to a macro, so we can include this
7395 file before DO_INLINE_SYSCALL is defined (proposed by Jakub
7397 (__lll_mutex_lock): Likewise.
7398 (__lll_mutex_cond_lock): Likewise.
7399 (__lll_mutex_timed_lock): Likewise.
7400 (__lll_mutex_unlock): Likewise.
7401 (__lll_mutex_unlock_force): Likewise.
7403 * sysdeps/ia64/tls.h: Move declaration of __thread_self up so it
7404 comes before the include of <sysdep.h>.
7405 (THREAD_SELF_SYSINFO): New macro.
7406 (THREAD_SYSINFO): Likewise.
7407 (INIT_SYSINFO): New macro.
7408 (TLS_INIT_TP): Call INIT_SYSINFO.
7410 * sysdeps/ia64/tcb-offsets.sym: Add SYSINFO_OFFSET.
7412 * sysdeps/pthread/createthread.c (create_thread): Use
7413 THREAD_SELF_SYSINFO and THREAD_SYSINFO instead of open code.
7414 * allocatestack.c (allocate_stack): Use THREAD_SYSINFO and
7415 THREAD_SELF_SYSINFO instead of open code.
7416 * sysdeps/i386/tls.h (THREAD_SELF_SYSINFO): New macro.
7417 (THREAD_SYSINFO): Likewise.
7419 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: New file.
7421 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Work around gas problem.
7423 2003-12-06 Ulrich Drepper <drepper@redhat.com>
7425 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Use .init_array
7426 instead of .init. Patch by David Mosberger.
7428 2003-11-30 Thorsten Kukuk <kukuk@suse.de>
7430 * sysdeps/pthread/configure.in: Remove broken declaration in C
7431 cleanup handling check.
7433 2003-11-30 Andreas Jaeger <aj@suse.de>
7435 * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
7436 * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
7439 2003-11-27 Jakub Jelinek <jakub@redhat.com>
7441 * sysdeps/unix/sysv/linux/internaltypes.h (ATTR_FLAG_OLDATTR): Define.
7442 * pthread_attr_destroy.c: Include shlib-compat.h.
7443 (__pthread_attr_destroy): Return immediately if ATTR_FLAG_OLDATTR
7444 is set in iattr->flags.
7445 * pthread_attr_init.c (__pthread_attr_init_2_0): Set ATTR_FLAG_OLDATTR.
7447 2003-11-21 Jakub Jelinek <jakub@redhat.com>
7449 * Makefile (distribute): Add tst-cleanup4aux.c.
7451 * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c
7454 2003-11-21 Ulrich Drepper <drepper@redhat.com>
7456 * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use
7457 pthread_cond_signal.
7459 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Don't
7460 store mutex address if the current value is ~0l.
7461 * sysdeps/pthread/pthread_cond_timedwait.c
7462 (__pthread_cond_timedwait): Likewise.
7463 * sysdeps/pthread/pthread_cond_broadcast.c
7464 (__pthread_cond_broadcast): Don't use requeue for pshared
7467 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
7468 (__pthread_cond_wait): Don't store mutex address if the current
7470 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
7471 (__pthread_cond_timedwait): Likewise.
7472 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
7473 (__pthread_cond_broadcast): Don't use requeue for pshared
7476 * pthread_cond_init.c (__pthread_cond_init): Initialize __mutex
7477 element with ~0l for pshared condvars, with NULL otherwise.
7479 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
7480 (__pthread_cond_wait): Don't store mutex address if the current
7482 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7483 (__pthread_cond_timedwait): Likewise.
7484 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
7485 (__pthread_cond_broadcast): Don't use requeue for pshared
7488 * Makefile: Add rules to build and run tst-cond12 and tst-cond13.
7489 * tst-cond12.c: New file.
7490 * tst-cond13.c: New file.
7492 2003-11-17 Ulrich Drepper <drepper@redhat.com>
7494 * sysdeps/pthread/configure.in: Make missing forced unwind support
7497 2003-11-11 Ulrich Drepper <drepper@redhat.com>
7499 * pthreadP.h: Don't declare __pthread_unwind as weak inside libpthread.
7501 2003-11-06 Ulrich Drepper <drepper@redhat.com>
7503 * Makefile: Add magic to clean up correctly.
7505 2003-11-05 Jakub Jelinek <jakub@redhat.com>
7507 * unwind.c (FRAME_LEFT): Define.
7508 (unwind_stop): Handle old style cleanups here.
7509 (__pthread_unwind): Handle old style cleanups only if
7510 !HAVE_FORCED_UNWIND.
7511 * Makefile (tests): Add tst-cleanup4 and tst-cleanupx4.
7512 (CFLAGS-tst-cleanupx4.c): Add -fexceptions.
7513 ($(objpfx)tst-cleanup4): Depend on $(objpfx)tst-cleanup4aux.o.
7514 ($(objpfx)tst-cleanupx4): Likewise.
7515 * tst-cleanup4.c: New test.
7516 * tst-cleanup4aux.c: New.
7517 * tst-cleanupx4.c: New test.
7519 2003-11-04 Ulrich Drepper <drepper@redhat.com>
7521 * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
7522 lll_mutex_*lock macros to skip atomic operations on some archs.
7524 2003-11-03 Ulrich Drepper <drepper@redhat.com>
7526 * sysdeps/pthread/tst-timer.c (main): Initialize
7527 sigev2.sigev_value as well.
7529 2003-10-15 Roland McGrath <roland@redhat.com>
7531 * sysdeps/pthread/configure.in: Barf if visibility attribute support
7533 * sysdeps/pthread/configure: Regenerated.
7535 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7537 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Completely revamp the
7538 locking macros. No distinction between normal and mutex locking
7540 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Rewrite mutex locking.
7541 Merge bits from lowlevelmutex.S we still need.
7542 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Remove.
7543 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
7544 * sysdeps/unix/sysv/linux/sh/not-cancel.h: New file.
7545 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Adjust for
7546 new mutex implementation.
7547 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
7548 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
7549 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
7550 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
7551 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
7552 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
7553 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
7554 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
7555 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
7556 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Also defined
7557 symbol for entry point to avoid cancellation.
7559 2003-10-07 Jakub Jelinek <jakub@redhat.com>
7561 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Backout 2003-10-02
7563 (SAVE_OLDTYPE_0): Fix a typo.
7565 2003-10-03 Ulrich Drepper <drepper@redhat.com>
7567 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
7568 Check __sigsetjmp return value. Reported by Daniel Jacobowitz.
7570 2003-10-02 Ulrich Drepper <drepper@redhat.com>
7572 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (DOCARGS_1): Use
7575 2003-10-02 Jakub Jelinek <jakub@redhat.com>
7577 * Makefile (tests): Add tst-cancel19.
7578 * tst-cancel19.c: New test.
7580 2003-10-02 Ulrich Drepper <drepper@redhat.com>
7582 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix saving and
7583 restoring of the old cancellation type.
7585 2003-09-30 Jakub Jelinek <jakub@redhat.com>
7587 * sysdeps/pthread/malloc-machine.h: Remove misleading comment.
7589 2003-09-27 Wolfram Gloger <wg@malloc.de>
7591 * sysdeps/pthread/malloc-machine.h: New file
7593 2003-09-24 Roland McGrath <roland@redhat.com>
7595 * allocatestack.c (__make_stacks_executable): Don't ignore return
7596 value from _dl_make_stack_executable.
7598 2003-09-24 Ulrich Drepper <drepper@redhat.com>
7600 * allocatestack.c (__make_stacks_executable): Also change
7601 permission of the currently unused stacks.
7603 * allocatestack.c (change_stack_perm): Split out from
7604 __make_stacks_executable.
7605 (allocate_stack): If the required permission changed between the time
7606 we started preparing the stack and queueing it, change the permission.
7607 (__make_stacks_executable): Call change_stack_perm.
7609 * Makefile: Build tst-execstack-mod locally.
7610 * tst-execstack-mod.c: New file.
7612 2003-09-23 Jakub Jelinek <jakub@redhat.com>
7614 * Makefile (tests): Only add tst-execstack if have-z-execstack is yes.
7616 2003-09-23 Roland McGrath <roland@redhat.com>
7618 * tst-execstack.c: New file.
7619 * Makefile (tests): Add it.
7620 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
7621 (LDFLAGS-tst-execstack): New variable.
7623 * allocatestack.c (allocate_stack): Use GL(dl_stack_flags) to decide
7624 whether to use PROT_EXEC for stack mmap.
7625 (__make_stacks_executable): New function.
7626 * pthreadP.h: Declare it.
7627 * init.c (__pthread_initialize_minimal_internal): Set
7628 GL(dl_make_stack_executable_hook) to that.
7630 2003-09-22 Ulrich Drepper <drepper@redhat.com>
7632 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Adjust for latest
7633 recommendation from AMD re avoidance of lock prefix.
7635 2003-09-22 Jakub Jelinek <jakub@redhat.com>
7637 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Use
7638 lll_futex_timed_wait instead of lll_futex_wait.
7639 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Removed.
7640 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Removed.
7641 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: Removed.
7642 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: Removed.
7643 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Removed.
7644 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Removed.
7645 * sysdeps/unix/sysv/linux/s390/sem_post.c: Removed.
7646 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Removed.
7647 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include atomic.h.
7648 Completely revamp the locking macros. No distinction between
7649 normal and mutex locking anymore.
7650 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
7651 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock_wait,
7652 __lll_lock_timedwait): Fix prototypes.
7653 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_lock_wait,
7654 __lll_lock_timedwait): Likewise.
7655 (lll_mutex_lock, lll_mutex_cond_lock): Use _val instead of _bool
7656 macros, add __builtin_expect.
7657 (lll_mutex_timedlock): Likewise. Fix return value.
7658 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Removed.
7659 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: Removed.
7660 * sysdeps/unix/sysv/linux/i386/i586/lowlevelmutex.S: Removed.
7661 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: Removed.
7662 * sysdeps/unix/sysv/linux/i386/i686/lowlevelmutex.S: Removed.
7663 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: Removed.
7664 * sysdeps/unix/sysv/linux/lowlevelmutex.c: Removed.
7665 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: Removed.
7667 2003-09-22 Ulrich Drepper <drepper@redhat.com>
7669 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
7670 (__lll_mutex_lock_wait): Minor optimization to avoid one atomic
7671 operation if possible.
7673 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks
7674 like jumping over the lock prefix.
7676 2003-09-21 Ulrich Drepper <drepper@redhat.com>
7678 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the
7679 locking macros. No distinction between normal and mutex locking
7681 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
7682 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
7683 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
7684 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Rewrite mutex
7685 locking. Merge bits from lowlevelmutex.S we still need.
7686 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
7687 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
7688 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Removed.
7689 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Removed.
7690 * Makefile (routines): Remove libc-lowlevelmutex.
7691 (libpthread-rountines): Remove lowlevelmutex.
7692 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Adjust
7693 for new mutex implementation.
7694 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
7695 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
7696 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
7697 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
7698 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
7700 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
7702 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
7703 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
7704 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise
7705 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
7706 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
7707 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
7708 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
7709 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
7711 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
7713 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
7714 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
7715 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
7717 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
7718 * sysdeps/pthread/pthread_cond_signal.c: Don't use requeue.
7720 2003-09-20 Ulrich Drepper <drepper@redhat.com>
7722 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't match memory
7723 in parameters of asm with output parameters.
7725 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change
7726 type of DECR parameter to int.
7727 * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
7729 2003-09-18 Jakub Jelinek <jakub@redhat.com>
7731 * tst-attr3.c (tf, do_test): Print stack start/end/size and
7732 guardsize for each thread.
7734 2003-09-17 Jakub Jelinek <jakub@redhat.com>
7736 * sysdeps/pthread/pthread.h (pthread_getattr_np): Clarify usage.
7737 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
7738 (pthread_attr_setaffinity_np): Handle cpuset == NULL.
7740 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
7741 (pthread_attr_getaffinity_np): Don't segfault if iattr->cpuset is
7743 * pthread_getattr_np.c: Set cpuset using pthread_getaffinity_np.
7744 * pthreadP.h (pthread_getaffinity_np): Add hidden_proto.
7745 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
7746 (pthread_getaffinity_np): Add hidden_def.
7748 * Makefile (tests): Add tst-attr3.
7749 * tst-attr3.c: New test.
7751 * sysdeps/i386/Makefile (CFLAGS-tst-align.c): Remove.
7753 2003-09-15 Jakub Jelinek <jakub@redhat.com>
7755 * sysdeps/i386/Makefile (CFLAGS-pthread_create.c,
7756 CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
7758 2003-09-17 Jakub Jelinek <jakub@redhat.com>
7760 * Makefile (CFLAGS-tst-align.c): Add $(stack-align-test-flags).
7761 * tst-align.c: Include tst-stack-align.h.
7762 (tf, do_test): Use TEST_STACK_ALIGN macro.
7764 2003-09-17 Ulrich Drepper <drepper@redhat.com>
7766 * pthread_attr_init.c (__pthread_attr_init_2_0): Remove unused
7769 2003-09-16 Ulrich Drepper <drepper@redhat.com>
7771 * pthread_getattr_np.c (pthread_getattr_np): Correctly fill in the
7772 stack-related values for the initial thread.
7774 2003-09-15 Jakub Jelinek <jakub@redhat.com>
7776 * Makefile (CFLAGS-pthread_once.c): Add $(uses-callbacks).
7778 2003-09-11 Ulrich Drepper <drepper@redhat.com>
7780 * pthread_mutex_lock.c: Minor code rearrangements.
7782 2003-09-05 Roland McGrath <roland@redhat.com>
7784 * pthread_create.c (__pthread_pthread_sizeof_descr): Removed.
7785 Instead, include ../nptl_db/db_info.c to do its magic.
7786 * pthread_key_create.c (__pthread_pthread_keys_max): Removed.
7787 (__pthread_pthread_key_2ndlevel_size): Likewise.
7788 * sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro.
7789 * sysdeps/i386/tls.h (DB_THREAD_SELF): New macro.
7790 * sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro.
7791 * sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro.
7792 * sysdeps/s390/tls.h (DB_THREAD_SELF): New macro.
7793 * sysdeps/sh/tls.h (DB_THREAD_SELF): New macro.
7794 * sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro.
7795 * sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro.
7796 * sysdeps/alpha/td_ta_map_lwp2thr.c: File removed.
7797 * sysdeps/generic/td_ta_map_lwp2thr.c: File removed.
7798 * sysdeps/i386/td_ta_map_lwp2thr.c: File removed.
7799 * sysdeps/ia64/td_ta_map_lwp2thr.c: File removed.
7800 * sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed.
7801 * sysdeps/s390/td_ta_map_lwp2thr.c: File removed.
7802 * sysdeps/sh/td_ta_map_lwp2thr.c: File removed.
7803 * sysdeps/sparc/td_ta_map_lwp2thr.c: File removed.
7804 * sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed.
7806 2003-09-08 Ulrich Drepper <drepper@redhat.com>
7808 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Change type
7809 of pthread_t to be compatible with LT.
7810 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
7811 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
7812 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7813 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7814 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
7815 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7816 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
7818 2003-09-04 Ulrich Drepper <drepper@redhat.com>
7820 * sysdeps/unix/sysv/linux/i386/not-cancel.h (fcntl_not_cancel): Define.
7822 2003-09-04 Jakub Jelinek <jakub@redhat.com>
7824 * unwind-forcedunwind.c: Move to...
7825 * sysdeps/pthread/unwind-forcedunwind.c: ...here.
7826 (pthread_cancel_init): Use ARCH_CANCEL_INIT if defined.
7827 * sysdeps/pthread/jmpbuf-unwind.h: New file.
7828 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: New file.
7829 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: New file.
7830 * unwind.c: Include jmpbuf-unwind.h.
7831 (unwind_stop): Use _JMPBUF_CFA_UNWINDS macro.
7833 2003-09-02 Jakub Jelinek <jakub@redhat.com>
7835 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
7836 * sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export
7837 pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3.
7838 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
7839 * sysdeps/unix/sysv/linux/alpha/Versions: New file.
7840 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
7841 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
7842 * pthread_attr_setstack.c (__old_pthread_attr_setstack): New function.
7843 (pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
7844 as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
7845 * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New
7847 (pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
7848 as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
7849 * Makefile (tests): Add tst-stack2.
7850 * tst-stack2.c: New test.
7851 * tst-stack1.c: Include limits.h and sys/param.h.
7852 (do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN).
7854 * pthread_condattr_setpshared.c: Include errno.h.
7855 (pthread_condattr_setpshared): Return EINVAL if pshared
7856 is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
7858 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also
7859 defined symbol for entry point to avoid cancellation.
7860 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
7862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
7864 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
7866 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h (PSEUDO):
7868 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
7870 * sysdeps/unix/sysv/linux/i386/not-cancel.h (__open_nocancel,
7871 __close_nocancel, __read_nocancel, __write_nocancel,
7872 __waitpid_nocancel): Add attribute_hidden. If not in libc.so,
7873 libpthread.so or librt.so, define to corresponding function
7874 without _nocancel suffix.
7875 * sysdeps/unix/sysv/linux/s390/not-cancel.h: New file.
7876 * sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file.
7877 * sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file.
7879 * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo.
7881 2003-09-02 Ulrich Drepper <drepper@redhat.com>
7883 * sysdeps/unix/sysv/linux/i386/not-cancel.h: New file.
7884 * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: New file.
7886 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Make sure the code
7887 in subsections has a symbol associated with it.
7889 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Also
7890 defined symbol for entry point to avoid cancellation.
7891 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Likewise.
7893 2003-09-01 Jakub Jelinek <jakub@redhat.com>
7895 * Makefile (tests): Add tst-tls5.
7896 (module-names): Add tst-tls5mod{,a,b,c,d,e,f}.
7897 ($(objpfx)tst-tls5mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes.
7898 ($(objpfx)tst-tls5): New.
7899 ($(objpfx)tst-tls6.out): Likewise.
7900 (tests): Depend on $(objpfx)tst-tls6.out.
7901 * tst-tls3.c: Include stdint.h and pthreaddef.h.
7902 (do_test): Check pthread_self () return value alignment.
7903 * tst-tls3mod.c: Include stdint.h and pthreaddef.h.
7904 (tf): Check pthread_self () return value alignment.
7905 * tst-tls5.c: New test.
7907 * tst-tls5mod.c: New.
7908 * tst-tls5moda.c: New.
7909 * tst-tls5modb.c: New.
7910 * tst-tls5modc.c: New.
7911 * tst-tls5modd.c: New.
7912 * tst-tls5mode.c: New.
7913 * tst-tls5modf.c: New.
7914 * tst-tls6.sh: New test.
7916 * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Add
7917 ptr___pthread_cond_timedwait and ptr___pthread_cond_timedwait_2_0.
7918 * init.c (pthread_functions): Initialize them.
7919 * forward.c (pthread_cond_timedwait@GLIBC_2.0,
7920 pthread_cond_timedwait@@GLIBC_2.3.2): New forwards.
7921 * Versions (libc): Export pthread_cond_timedwait@GLIBC_2.0,
7922 pthread_cond_timedwait@@GLIBC_2.3.2.
7924 2003-09-01 Jakub Jelinek <jakub@redhat.com>
7926 * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file.
7927 * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file.
7928 * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file.
7929 * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file.
7930 * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file.
7931 * sysdeps/unix/sysv/linux/alpha/Versions: New file.
7933 * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file.
7935 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define
7936 _POSIX_THREAD_PRIORITY_SCHEDULING.
7937 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
7939 2003-08-31 Ulrich Drepper <drepper@redhat.com>
7941 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock): Avoid
7942 nested function, use static inline function from libio.h.
7943 Code by Richard Henderson.
7945 * sysdeps/pthread/bits/libc-lock.h: Mark pthread_setcancelstate as
7948 2003-08-30 Jakub Jelinek <jakub@redhat.com>
7950 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
7951 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: New file.
7952 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: New file.
7953 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: New file.
7954 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: New file.
7955 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: New file.
7956 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: New file.
7957 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: New file.
7958 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: New file.
7959 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: New file.
7960 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: New file.
7961 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: New file.
7962 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
7963 * sysdeps/unix/sysv/linux/sparc/fork.c: New file.
7964 * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: New file.
7965 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: New file.
7966 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: New file.
7967 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: New file.
7968 * sysdeps/sparc/sparc32/pthread_spin_lock.c: New file.
7969 * sysdeps/sparc/sparc32/pthread_spin_trylock.c: New file.
7970 * sysdeps/sparc/sparc32/pthreaddef.h: New file.
7971 * sysdeps/sparc/sparc64/pthread_spin_lock.c: New file.
7972 * sysdeps/sparc/sparc64/pthread_spin_trylock.c: New file.
7973 * sysdeps/sparc/sparc64/pthread_spin_unlock.c: New file.
7974 * sysdeps/sparc/sparc64/pthreaddef.h: New file.
7975 * sysdeps/sparc/tls.h: New file.
7976 * sysdeps/sparc/tcb-offsets.sym: New file.
7977 * sysdeps/sparc/Makefile: New file.
7978 * sysdeps/sparc/td_ta_map_lwp2thr.c: New file.
7979 * init.c [__sparc__] (__NR_set_tid_address): Define.
7981 2003-08-29 Jakub Jelinek <jakub@redhat.com>
7983 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock,
7984 _IO_release_lock): Define.
7986 2003-08-29 Jakub Jelinek <jakuB@redhat.com>
7988 * tst-cancel4.c (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add
7989 sigemptyset before sigaddset. Reported by jreiser@BitWagon.com.
7991 2003-08-27 Ulrich Drepper <drepper@redhat.com>
7993 * sysdeps/pthread/pthread.h (pthread_exit): Remove __THROW.
7994 (__pthread_cleanup_class): Add missing return types of member
7997 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
7999 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
8000 (lll_mutex_unlock_force): Add memory barrier between store and futex
8003 2003-08-25 Ulrich Drepper <drepper@redhat.com>
8005 * tst-cancel4.c (do_test): Also unlink tempfname and remove
8006 tempmsg in first loop.
8008 2003-08-18 Ulrich Drepper <drepper@redhat.com>
8010 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8011 _POSIX_THREAD_PRIORITY_SCHEDULING.
8012 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
8014 2003-08-07 Jakub Jelinek <jakub@redhat.com>
8016 * sysdeps/pthread/bits/libc-lock.h [_LIBC && SHARED]
8017 (__rtld_lock_default_lock_recursive,
8018 __rtld_lock_default_unlock_recursive): Define.
8019 [_LIBC && SHARED] (__rtld_lock_lock_recursive,
8020 __rtld_lock_unlock_recursive): Define using
8021 GL(_dl_rtld_*lock_recursive).
8022 * init.c (__pthread_initialize_minimal_internal): Initialize
8023 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
8024 Lock GL(_dl_load_lock) the same number of times as
8025 GL(_dl_load_lock) using non-mt implementation was nested.
8027 * pthreadP.h (__pthread_cleanup_upto): Add hidden_proto.
8028 * pt-longjmp.c (__pthread_cleanup_upto): Add hidden_def.
8030 2003-08-06 Jakub Jelinek <jakub@redhat.com>
8032 * tst-cancel17.c (do_test): Make len2 maximum of page size and
8035 2003-08-07 Jakub Jelinek <jakub@redhat.com>
8037 * pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.
8039 2003-08-03 Jakub Jelinek <jakub@redhat.com>
8041 * sysdeps/pthread/createthread.c (do_clone): Move error handling
8042 to first syscall error check. Move syscall error check for tkill
8043 into __ASSUME_CLONE_STOPPED #ifdef.
8045 2003-08-02 Ulrich Drepper <drepper@redhat.com>
8047 * sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED
8048 is not defined, do explicit synchronization.
8049 (create_thread): Do not lock pd->lock here. If __ASSUME_CLONE_STOPPED
8050 is not defined also unlock pd->lock for non-debugging case in case
8052 * pthread_create.c (start_thread): Always get and release pd->lock
8053 if __ASSUME_CLONE_STOPPED is not defined.
8054 (start_thread_debug): Removed. Adjust users.
8055 * allocatestack.c (allocate_stack): Always initialize lock if
8056 __ASSUME_CLONE_STOPPED is not defined.
8057 * Makefile (tests): Add tst-sched1.
8058 * tst-sched1.c: New file.
8060 * sysdeps/pthread/createthread.c (do_clone): Only use
8061 sched_setschduler and pass correct parameters.
8063 2003-07-31 Jakub Jelinek <jakub@redhat.com>
8065 * sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
8066 pthread_attr_setstacksize): Change PTHREAD_STACK_SIZE to
8067 PTHREAD_STACK_MIN in comments.
8069 2003-07-31 Jakub Jelinek <jakub@redhat.com>
8071 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
8072 Shut up warnings if INTERNAL_SYSCALL_ERROR_P does not use its first
8074 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8075 * pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise.
8076 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Include pthreaddef.h.
8077 (__pthread_cleanup_upto): Fix prototype.
8078 (_longjmp_unwind): Adjust caller.
8079 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_timedlock):
8080 Change second argument to const struct pointer.
8081 * tst-sem8.c (main): Remove unused s2 and s3 variables.
8082 * tst-sem9.c (main): Likewise.
8083 * unwind.c: Include string.h for strlen prototype.
8085 2003-07-31 Ulrich Drepper <drepper@redhat.com>
8087 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
8088 (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined.
8089 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
8091 Patch by Nicholas Miell <nmiell@attbi.com>.
8093 2003-07-30 Jakub Jelinek <jakub@redhat.com>
8095 * init.c (__pthread_initialize_minimal_internal): Initialize
8096 GL(dl_init_static_tls).
8097 * pthreadP.h (__pthread_init_static_tls): New prototype.
8098 * allocatestack.c (init_one_static_tls, __pthread_init_static_tls):
8100 * Makefile (tests): Add tst-tls4.
8101 (modules-names): Add tst-tls4moda and tst-tls4modb.
8102 ($(objpfx)tst-tls4): Link against libdl and libpthread.
8103 ($(objpfx)tst-tls4.out): Depend on tst-tls4moda.so and
8105 * tst-tls4.c: New file.
8106 * tst-tls4moda.c: New file.
8107 * tst-tls4modb.c: New file.
8109 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
8111 * sysdeps/pthread/timer_create.c (timer_create): Call timer_delref
8112 before __timer_dealloc.
8113 * sysdeps/pthread/timer_routines.c (__timer_thread_find_matching):
8114 Don't call list_unlink.
8116 2003-07-29 Roland McGrath <roland@redhat.com>
8118 * Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules).
8120 2003-07-25 Jakub Jelinek <jakub@redhat.com>
8122 * tst-cancel17.c (do_test): Check if aio_cancel failed.
8123 Don't reuse struct aiocb A if it failed.
8124 Write fpathconf (fds[1], _PC_PIPE_BUF) + 2 bytes using aio_write,
8125 not just one byte, as that does not block.
8127 2003-07-22 Jakub Jelinek <jakub@redhat.com>
8129 * sysdeps/pthread/unwind-resume.c: New file.
8130 * sysdeps/pthread/Makefile (routines, shared-only-routines): Add
8131 unwind-resume in csu subdir.
8132 (CFLAGS-unwind-resume.c, CFLAGS-rt-unwind-resume.c): Compile with
8134 (librt-sysdep_routines, librt-shared-only-routines): Add
8136 * sysdeps/pthread/rt-unwind-resume.c: New file.
8137 * unwind-forcedunwind.c: New file.
8138 * Makefile (libpthread-routines): Add unwind-forcedunwind.
8139 (libpthread-shared-only-routines): Likewise.
8140 (CFLAGS-unwind-forcedunwind.c): Compile with exceptions.
8141 * pthreadP.h (pthread_cancel_init): New prototype.
8142 * pthread_cancel.c (pthread_cancel): Call pthread_cancel_init.
8144 * sysdeps/pthread/createthread.c (do_thread, create_thread): Make
8145 attr argument const struct pthread_attr *.
8147 * res.c (__res_state): Return __resp.
8148 * descr.h: Include resolv.h.
8149 (struct pthread): Add res field.
8150 * pthread_create.c: Include resolv.h.
8151 (start_thread): Initialize __resp.
8152 * Makefile (tests): Add tst-_res1.
8153 (module-names): Add tst-_res1mod1, tst-_res1mod2.
8154 ($(objpfx)tst-_res1mod2.so): Depend on $(objpfx)tst-_res1mod1.so.
8155 ($(objpfx)tst-_res1): Depend on $(objpfx)tst-_res1mod2.so and
8157 * tst-_res1.c: New file.
8158 * tst-_res1mod1.c: New file.
8159 * tst-_res1mod2.c: New file.
8161 2003-07-21 Ulrich Drepper <drepper@redhat.com>
8163 * sysdeps/pthread/createthread.c: Don't define CLONE_STOPPED.
8165 * Makefile: Define various *-no-z-defs variables for test DSOs
8166 which has undefined symbols.
8168 2003-07-21 Steven Munroe <sjmunroe@us.ibm.com>
8170 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
8171 Retry if the stwcx fails to store once_control.
8173 2003-07-20 Ulrich Drepper <drepper@redhat.com>
8175 * Makefile (libpthread-routines): Add pthread_attr_getaffinity and
8176 pthread_attr_setaffinity.
8177 * Versions [libpthread] (GLIBC_2.3.3): Likewise.
8178 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
8179 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
8180 * pthread_attr_destroy.c: Free cpuset element if allocated.
8181 * pthread_create.c: Pass iattr as additional parameter to
8183 * sysdeps/pthread/createthread.c: If attribute is provided and
8184 a new thread is created with affinity set or scheduling parameters,
8185 start thread with CLONE_STOPPED.
8186 * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
8187 pthread_attr_setaffinity.
8188 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
8191 2003-07-15 Ulrich Drepper <drepper@redhat.com>
8193 * tst-tcancel-wrappers.sh: lseek and llseek are not cancelation points.
8195 2003-07-14 Ulrich Drepper <drepper@redhat.com>
8197 * sysdeps/pthread/configure.in: Require CFI directives also for
8200 2003-07-15 Jakub Jelinek <jakub@redhat.com>
8202 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
8205 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8207 * sysdeps/sh/tcb-offsets.sym: Add RESULT, TID, CANCELHANDLING and
8209 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use more
8210 registers as variables. Call __pthread_mutex_unlock_usercnt.
8211 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
8212 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Store TID
8213 not self pointer in __writer. Compare with TID to determine
8215 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
8216 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
8218 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
8220 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add cancellation support.
8221 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
8222 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Define all the nice
8223 macros also when compiling librt.
8225 2003-07-11 Jakub Jelinek <jakub@redhat.com>
8227 * Makefile (CFLAGS-pthread_once.c): Add -fexceptions
8228 -fasynchronous-unwind-tables.
8229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
8230 (PSEUDO): Add cfi directives.
8231 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO):
8233 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
8236 2003-07-08 Jakub Jelinek <jakub@redhat.com>
8238 * pthreadP.h (__pthread_unwind_next, __pthread_register_cancel,
8239 __pthread_unregister_cancel): Add prototypes and hidden_proto.
8240 * unwind.c (__pthread_unwind_next): Add hidden_def.
8241 * cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel):
8243 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
8244 Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
8245 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
8247 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
8248 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
8250 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use
8251 HIDDEN_JUMPTARGET to call __pthread_register_cancel,
8252 __pthread_unregister_cancel and __pthread_unwind_next.
8254 2003-07-04 Jakub Jelinek <jakub@redhat.com>
8256 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Use
8257 different symbol for the cancellation syscall wrapper and
8258 non-cancellation syscall wrapper.
8259 (PSEUDO_END): Define.
8261 2003-07-05 Richard Henderson <rth@redhat.com>
8263 * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end.
8264 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_wait,
8265 lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
8266 return actual return value from the syscall, not 0.
8268 2003-07-07 Ulrich Drepper <drepper@redhat.com>
8270 * descr.h (struct pthread): Add pid field.
8271 * allocatestack.c (allocate_stack): Initialize pid field in descriptor.
8272 (__reclaim_stacks): Likewise.
8273 * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined
8274 also check for PID of the signal source.
8275 (__pthread_initialize_minimal_internal): Also initialize pid field
8276 of initial thread's descriptor.
8277 * pthread_cancel.c: Use tgkill instead of tkill if possible.
8278 * sysdeps/unix/sysv/linux/fork.c: Likewise.
8279 * sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
8280 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
8281 * sysdeps/unix/sysv/linux/raise.c: Likewise.
8283 2003-07-05 Ulrich Drepper <drepper@redhat.com>
8285 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed.
8286 Fix use of parameter.
8287 (__libc_cleanup_pop): Likewise.
8289 2003-07-04 Ulrich Drepper <drepper@redhat.com>
8291 * init.c (sigcancel_handler): Change parameters to match handler
8292 for SA_SIGACTION. Check signal number and code to recognize
8293 invalid invocations.
8295 2003-07-03 Roland McGrath <roland@redhat.com>
8297 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr):
8298 Apply sizeof (struct pthread) bias to r13 value.
8300 2003-07-03 Ulrich Drepper <drepper@redhat.com>
8302 * sysdeps/pthread/configure.in: Require CFI directives.
8304 * sysdeps/pthread/librt-cancellation.c (__pthread_unwind): Remove
8306 * pthreadP.h (__pthread_unwind): Add hidden_proto if used in
8307 libpthread compilation.
8308 * unwind.c (__pthread_unwind): Add hidden_def.
8309 * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_unwind.
8311 2003-07-01 Ulrich Drepper <drepper@redhat.com>
8313 * libc-cancellation.c (__libc_cleanup_routine): Define.
8314 * sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define.
8315 (__pthread_cleanup_pop): Define.
8317 2003-07-01 Richard Henderson <rth@redhat.com>
8319 * sysdeps/alpha/elf/pt-initfini.c: New file.
8320 * sysdeps/alpha/pthread_spin_lock.S: New file.
8321 * sysdeps/alpha/pthread_spin_trylock.S: New file.
8322 * sysdeps/alpha/pthreaddef.h: New file.
8323 * sysdeps/alpha/td_ta_map_lwp2thr.c: New file.
8324 * sysdeps/alpha/tls.h: New file.
8325 * sysdeps/unix/sysv/linux/alpha/Makefile: New file.
8326 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: New file.
8327 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: New file.
8328 * sysdeps/unix/sysv/linux/alpha/createthread.c: New file.
8329 * sysdeps/unix/sysv/linux/alpha/fork.c: New file.
8330 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: New file.
8331 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
8332 * sysdeps/unix/sysv/linux/alpha/pthread_once.c: New file.
8333 * sysdeps/unix/sysv/linux/alpha/sem_post.c: New file.
8334 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: New file.
8336 2003-07-01 Ulrich Drepper <drepper@redhat.com>
8338 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Add correct
8339 cleanup support and unwind info.
8341 2003-06-30 Ulrich Drepper <drepper@redhat.com>
8343 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
8344 Use correct cleanup handler registration. Add unwind info.
8345 * sysdeps/unix/sysv/linux/unwindbuf.sym: New file.
8346 * sysdeps/unix/sysv/linux/Makefile: Add rule to build unwindbuf.h.
8347 * tst-once3.c: Add cleanup handler and check it is called.
8348 * tst-once4.c: Likewise.
8349 * tst-oncex3.c: New file.
8350 * tst-oncex4.c: New file.
8351 * Makefile: Add rules to build and run tst-oncex3 and tst-oncex4.
8353 2003-06-29 Ulrich Drepper <drepper@redhat.com>
8355 * sysdeps/pthread/configure.in: Check for C cleanup handling in gcc.
8357 2003-06-27 Ulrich Drepper <drepper@redhat.com>
8359 * tst-cancel4.c (tf_msgrcv): Use IPC_PRIVATE in msgget call.
8360 (tf_msgsnd): Likewise.
8362 * tst-cancel4.c (tf_msgrcv): Strengthen test against valid
8363 premature returns a bit more.
8365 2003-06-26 Ulrich Drepper <drepper@redhat.com>
8367 * sysdeps/pthread/librt-cancellation.c: Move __pthread_unwind
8368 definition to the front.
8370 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rename
8371 the cleanup functions to make the names unique. Fix dwarf opcode
8373 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Rename cleanup
8374 functions to make the names unique. Fix CFA offset for two blocks.
8376 2003-06-25 Ulrich Drepper <drepper@redhat.com>
8378 * sysdeps/pthread/pthread.h (class __pthread_cleanup_class): Add
8379 missing closing braces.
8380 Patch by Christophe Saout <christophe@saout.de>.
8382 2003-06-24 Roland McGrath <roland@redhat.com>
8384 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Typo fix.
8386 2003-06-24 Ulrich Drepper <drepper@redhat.com>
8388 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: New file.
8389 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: New file.
8391 * pthreadP.h: Declare __find_thread_by_id.
8392 * allocatestack.c [HP_TIMING_AVAIL]: Define __find_thread_by_id.
8393 * pthread_clock_gettime.c: Allow using other thread's clock.
8394 * pthread_clock_settime.c: Likewise.
8395 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
8396 * Makefile: Add rules to build and run tst-clock2.
8397 * tst-clock2.c: New file.
8399 2003-06-23 Ulrich Drepper <drepper@redhat.com>
8401 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rewrite
8402 to use exception-based cleanup handler.
8403 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8405 * tst-cond8.c (ch): Announce that we are done.
8407 * pthreadP.h (__pthread_mutex_cond_lock): Mark with internal_function.
8409 * tst-cancel17.c (tf): Retry aio_suspend in case of EINTR.
8410 Also test aio_suspend with timeout value.
8412 2003-06-22 Ulrich Drepper <drepper@redhat.com>
8414 * pthreadP.h: Mark __pthread_mutex_unlock_usercnt also hidden.
8415 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Add
8418 * pthreadP.h (__pthread_mutex_init_internal): Mark hidden.
8419 (__pthread_mutex_lock_internal): Likewise.
8420 (__pthread_mutex_unlock_internal): Likewise.
8421 (__pthread_mutex_unlock_usercnt): Declare.
8422 * pthread_mutex_destroy.c: Always fail if used in any way.
8423 * pthread_mutex_init.c: Update comment.
8424 * pthread_mutex_lock.c: If NO_INCR is not defined adjust __nusers.
8425 * pthread_mutex_timedlock.c: Adjust __nusers.
8426 * pthread_mutex_trylock.c: Adjust __nusers.
8427 * pthread_mutex_unlock.c: Old code is in __pthread_mutex_unlock_usercnt
8428 and public interfaces are wrapper with pass additional parameter.
8429 __pthread_mutex_unlock_usercnt does not adjust __nusers if second
8431 * tst-mutex8.c: New file.
8432 * Makefile (tests): Add tst-mutex8.
8433 * sysdeps/pthread/pthread_cond_timedwait.c: Call
8434 __pthread_mutex_unlock_usercnt.
8435 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
8436 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8437 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8438 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8439 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8440 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Define NO_INCR.
8441 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
8443 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8444 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8445 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8446 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
8447 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8449 * pthread_mutex_lock.c: Don't store THREAD_ID in __owner, use TID.
8450 * pthread_mutex_timedlock.c: Likewise.
8451 * pthread_mutex_trylock.c: Adjust __nusers.
8452 * pthread_mutex_unlock.c: Compare with TID not THREAD_ID.
8453 * tst-mutex9.c: New file.
8454 * Makefile (tests): Add tst-mutex9.
8455 * sysdeps/i386/tls.h: Remove THREAD_ID definition.
8456 * sysdeps/ia64/tls.h: Likewise.
8457 * sysdeps/powerpc/tls.h: Likewise.
8458 * sysdeps/s390/tls.h: Likewise.
8459 * sysdeps/sh/tls.h: Likewise.
8460 * sysdeps/x86_64/tls.h: Likewise.
8461 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
8462 Change type of __owner.
8463 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8464 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8465 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8466 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
8467 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8469 2003-06-19 Jakub Jelinek <jakub@redhat.com>
8471 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Move to...
8472 * sysdeps/unix/sysv/linux/sem_post.c: ...here.
8474 * sysdeps/unix/sysv/linux/sem_post.c: Move to...
8475 * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here. Pass nr + 1
8476 instead of nr to lll_futex_wake. Only set errno and return -1
8479 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_wait,
8480 lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
8481 return actual return value from the syscall, not 0.
8483 2003-06-18 Ulrich Drepper <drepper@redhat.com>
8485 * tst-cancel4.c (tf_msgsnd): Don't always use 100 as the type,
8486 find a random value.
8487 (tf_msgrcv): Likewise. Also don't report msgrcv returns if
8490 * sysdeps/unix/sysv/linux/timer_settime.c: Add prototype for
8491 compat_timer_settime.
8492 * sysdeps/unix/sysv/linux/timer_gettime.c: Add prototype for
8493 compat_timer_gettime.
8494 * sysdeps/unix/sysv/linux/timer_getoverr.c: Add prototype for
8495 compat_timer_getoverrun.
8496 * sysdeps/unix/sysv/linux/timer_delete.c: Add prototype for
8497 compat_timer_delete.
8499 * pthread_mutex_destroy.c (__pthread_mutex_destroy): For
8500 error-checking mutex detect busy mutexes.
8502 2003-06-17 Ulrich Drepper <drepper@redhat.com>
8504 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_mutex_lock):
8505 Add ax to clobber list.
8506 (lll_mutex_cond_lock): Likewise.
8507 (lll_mutex_unlock): Likewise.
8508 (lll_lock): Likewise.
8509 (lll_unlock): Likewise.
8511 * Makefile: Add rules to build and run tst-cancel18 and tst-cancelx18.
8512 * tst-cancel18.c: New file.
8513 * tst-cancelx18.c: New file.
8515 * tst-cancel4.c: Test connect, creat, msgrcv, msgsnd, sendmsg, sendto,
8518 * Makefile: Add rules to build and run tst-cancel17 and tst-cancel17x.
8519 * tst-cancel17.c: New file.
8520 * tst-cancelx17.c: New file.
8522 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
8523 * sysdeps/unix/sysv/linux/sigwait.c: New file.
8524 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
8526 * tst-cancel4.c: Test open, close, pread, pwrite, fsync, and msync.
8528 2003-06-16 Jakub Jelinek <jakub@redhat.com>
8530 * sysdeps/pthread/createthread.c (create_thread): Set
8531 header.multiple_threads unconditionally.
8532 * allocatestack.c (allocate_stack): Likewise.
8533 * descr.h (struct pthread): Add header.multiple_threads
8535 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (CENABLE, CDISABLE):
8536 Define for librt. #error if neither libpthread, libc nor librt.
8537 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (CENABLE, CDISABLE):
8539 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (CENABLE,
8540 CDISABLE): Likewise.
8541 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (CENABLE,
8542 CDISABLE): Likewise.
8543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (CENABLE,
8544 CDISABLE): Likewise.
8545 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (CENABLE,
8546 CDISABLE): Likewise. Access header.multiple_threads outside of
8547 libc and libpthread.
8548 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (CENABLE, CDISABLE):
8550 * sysdeps/x86_64/tls.h (tcbhead_t): Add multiple_threads.
8551 * sysdeps/x86_64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define.
8553 2003-06-17 Ulrich Drepper <drepper@redhat.com>
8555 * tst-cancel4.c: Add tests for the socket and signal functions, pause.
8556 Also test early cancellation before the thread reaches the cancellation
8559 * Makefile: Compile forward.c with exceptions.
8561 * sysdeps/unix/sysv/linux/sleep.c: New file.
8563 2003-06-16 Ulrich Drepper <drepper@redhat.com>
8565 * Makefile: Add CFLAGS definition to compile function wrappers
8566 duplicated from libc with exceptions.
8567 * tst-cancel4.c: Also check cancellation handlers.
8569 * Makefile: Add rules to build and run tst-cancel16 and
8570 tst-cancelx16. Add missing CFLAGS definitions.
8571 * tst-cancel16.c: New file.
8572 * tst-cancelx16.c: New file.
8574 2003-06-15 Ulrich Drepper <drepper@redhat.com>
8576 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
8577 (DL_SYSINFO_IMPLEMENTATION): Use CFI opcodes.
8578 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
8579 (DL_SYSINFO_IMPLEMENTATION): Likewise.
8581 * pthreadP.h (LIBC_CANCEL_ASYNC): Also define for librt.
8582 (LIBC_CANCEL_RESET): Likewise.
8583 Declare __librt_enable_asynccancel and __librt_disable_asynccancel.
8584 * sysdeps/pthread/Makefile (librt-sysdep_routines): Add
8586 (CFLAGS-libcrt-cancellation.c): Define.
8587 * sysdeps/pthread/librt-cancellation.c: New file.
8588 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define all the nice
8589 macros also when compiling librt.
8590 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
8591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
8592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8593 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
8594 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
8595 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
8596 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
8598 * sysdeps/unix/sysv/linux/timer_create.c: Add prototype for
8599 compat_timer_create.
8601 2003-06-14 Ulrich Drepper <drepper@redhat.com>
8603 * sysdeps/pthread/posix-timer.h (timespec_compare): Always inline.
8605 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
8607 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
8608 Add libc_hidden_def.
8610 2003-06-13 Roland McGrath <roland@redhat.com>
8612 * sysdeps/x86_64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Pass FS
8613 constant from <sys/reg.h> to ps_get_thread_area, not register contents.
8615 2003-06-11 Ulrich Drepper <drepper@redhat.com>
8617 * allocatestack.c (queue_stack): Always inline.
8618 * ptreadhP.h (__do_cancel): Likewise.
8620 2003-06-10 Jakub Jelinek <jakub@redhat.com>
8622 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): Fix
8625 2003-06-10 Ulrich Drepper <drepper@redhat.com>
8627 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
8628 (__pthread_cond_signal): Remove incorrect second addition for
8631 2003-06-09 Ulrich Drepper <drepper@redhat.com>
8633 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
8634 (__pthread_cond_signal): Use correct futex pointer in
8635 __lll_mutex_lock_wait call.
8637 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
8638 (__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.
8640 2003-06-08 Ulrich Drepper <drepper@redhat.com>
8642 * sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make
8644 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
8647 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Remove
8648 hand-written CFI generation code. Since ENTRY/END also initiated
8649 CFI frames this caused two CFI sets to be generated.
8651 2003-06-07 Ulrich Drepper <drepper@redhat.com>
8653 * cleanup_routine.c: New file.
8654 * Versions (libpthread) [GLIBC_2.3.3]: Add __pthread_cleanup_routine.
8655 * sysdeps/pthread/pthread.h: Add support for fully exception-based
8657 * Makefile (libpthread-routines): Add cleanup_routine.
8658 Add more CFLAGS variables to compile with exceptions. Add comments
8659 why which file needs unwind tables.
8660 (tests) [have-forced-unwind==yes]: Add tst-cancelx* and tst-cleanupx*
8662 * tst-cancelx1.c: New file.
8663 * tst-cancelx2.c: New file.
8664 * tst-cancelx3.c: New file.
8665 * tst-cancelx4.c: New file.
8666 * tst-cancelx5.c: New file.
8667 * tst-cancelx6.c: New file.
8668 * tst-cancelx7.c: New file.
8669 * tst-cancelx8.c: New file.
8670 * tst-cancelx9.c: New file.
8671 * tst-cancelx10.c: New file.
8672 * tst-cancelx11.c: New file.
8673 * tst-cancelx12.c: New file.
8674 * tst-cancelx13.c: New file.
8675 * tst-cancelx14.c: New file.
8676 * tst-cancelx15.c: New file.
8677 * tst-cleanupx0.c: New file.
8678 * tst-cleanupx0.expect: New file.
8679 * tst-cleanupx1.c: New file.
8680 * tst-cleanupx2.c: New file.
8681 * tst-cleanupx3.c: New file.
8683 * tst-cleanup0.c: Make standard compliant.
8684 * tst-cleanup1.c: Likewise.
8686 * sysdeps/unix/sysv/linux/sem_timedwait.c: Add cancellation support.
8687 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
8688 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
8689 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
8690 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
8691 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
8692 * sysdeps/i386/tcb-offsets.sym: Add RESULT, CANCELHANDLING, and
8694 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
8695 * tst-cancel12.c: New file.
8696 * tst-cancel13.c: New file.
8697 * tst-cancel14.c: New file.
8698 * tst-cancel15.c: New file.
8699 * Makefile (tests): Add tst-cancel12, tst-cancel13, tst-cancel14,
8702 * tst-cancel1.c: Add some comments.
8704 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Compute relative
8707 2003-06-06 Ulrich Drepper <drepper@redhat.com>
8709 * Makefile (CFLAGS-pthread_cancel.c): Define.
8711 2003-06-05 Ulrich Drepper <drepper@redhat.com>
8713 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_rwlock_t):
8714 Change type of __writer element to int.
8715 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8716 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8717 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8718 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8719 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8720 * sysdeps/i386/tcb-offsets.sym: Replace SELF entry with TID entry.
8721 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
8722 * pthread_rwlock_trywrlock.c: Store TID not self pointer in __writer.
8723 Compare with TID to determine deadlocks.
8724 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
8725 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
8726 * sysdeps/pthread/pthread_rwlock_timedwrlock.: Likewise.
8727 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
8728 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
8729 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
8731 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
8733 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
8734 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
8735 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
8737 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
8739 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
8740 * Makefile (tests): Add tst-rwlock12.
8741 * tst-rwlock12.c: New file.
8743 2003-06-05 Jakub Jelinek <jakub@redhat.com>
8745 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait,
8746 __lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid):
8747 Remove bogus hidden_proto.
8748 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
8750 * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock,
8751 lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise.
8752 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock,
8753 ___lll_mutex_timedlock): Likewise.
8755 2003-06-04 Ulrich Drepper <drepper@redhat.com>
8757 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
8758 (__pthread_cond_signal): Add some code to eventually handle
8761 2003-06-01 Ulrich Drepper <drepper@redhat.com>
8763 * Makefile (tests): Add tst-exec4.
8764 (tst-exec4-ARGS): Define.
8765 * tst-exec4.c: New file.
8767 2003-05-31 Ulrich Drepper <drepper@redhat.com>
8769 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
8770 Also fail if tv_nsec < 0.
8771 (__lll_timedwait_tid): Likewise.
8772 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
8773 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_timedwait_tid):
8775 * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_timedwait_tid):
8777 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (__lll_mutex_timedlock):
8779 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
8781 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_timedwait_tid):
8783 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_timedwait_tid):
8786 * Makefile (tests): Add tst-sem8 and tst-sem9.
8787 * tst-sem8.c: New file.
8788 * tst-sem9.c: New file.
8789 * sem_open.c: Fix creation of in_use record if the file exists but
8792 * posix-timer.h: Remove old, unused timer_id2ptr and timer_ptr2id
8795 * sysdeps/pthread/timer_create.c (timer_create): In case
8796 evp==NULL, assign timer ID to sival_ptr.
8798 * descr.h (struct pthread_unwind_buf): Change type of prev element to
8799 struct pthread_unwind_buf *.
8800 (struct pthread): Likewise for cleanup_jmp_buf element.
8802 * cleanup.c (__pthread_register_cancel): Add cast to avoid warning.
8803 * cleanup_defer.c (__pthread_register_cancel_defer): Likewise.
8804 * unwind.c (__pthread_unwind_next): Likewise.
8806 2003-05-30 Ulrich Drepper <drepper@redhat.com>
8808 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
8809 (lll_futex_timed_wait): Use int for futex value parameter.
8810 (lll_futex_wake): Likewise.
8811 (lll_futex_requeue): Likewise.
8813 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
8814 Replace one memory operation with one register operation.
8816 * tst-join4.c (do_test): Fix error message.
8818 * tst-rwlock6.c (do_test): Use correct format specifier.
8820 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
8821 (__lll_mutex_lock_wait): Replace one memory operation with one
8823 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S
8824 (__lll_mutex_lock_wait): Likewise.
8826 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
8827 (__lll_mutex_cond_lock): Add one to value parameter of
8828 __lll_lock_wait to reflect reality in the futex syscall.
8829 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
8830 (lll_mutex_cond_lock): Likewise.
8832 2003-05-30 Jakub Jelinek <jakub@redhat.com>
8834 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_cond_lock):
8836 (lll_mutex_cond_lock): Define.
8838 2003-05-29 Ulrich Drepper <drepper@redhat.com>
8840 * Makefile (tests): Add tst-signal6.
8841 * tst-signal6.c: New file.
8843 * sysdeps/unix/sysv/linux/s390/lowlevellock.h
8844 (__lll_mutex_unlock_force): New function
8845 (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
8847 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
8848 (__lll_mutex_unlock_force): New function.
8849 (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
8851 * tst-rwlock7.c (do_test): Use correct format specifier.
8853 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
8854 Find break parameter in correct asm argument.
8856 2003-05-27 Jakub Jelinek <jakub@redhat.com>
8858 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_clobbers):
8860 (lll_futex_requeue): Fix __o3 constraint, return negative errno if
8862 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
8864 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_REQUEUE,
8865 lll_futex_requeue, lll_mutex_unlock_force): Define.
8867 2003-05-30 Jakub Jelinek <jakub@redhat.com>
8869 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
8870 (pthread_cond_t): Add __mutex.
8871 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_REQUEUE,
8872 lll_futex_requeue, lll_mutex_unlock_force): Define.
8874 2003-05-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8876 * sysdeps/sh/tcb-offsets.sym: Define MUTEX_FUTEX.
8877 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
8879 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (SYSCALL_WITH_INST_PAD):
8881 (lll_futex_wait, lll_futex_wake): Define.
8882 * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: New file.
8883 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Try using
8884 FUTEX_REQUEUE instead of FUTEX_WAIT.
8885 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
8886 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Remember
8887 mutex which was used in condvar structure. Call
8888 __pthread_mutex_cond_lock instead of __pthread_mutex_lock_internal.
8889 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
8891 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Don't
8892 include tcb-offsets.h. Read wakeup value in locked region.
8893 Use the value of gbr register as THREAD_ID.
8894 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
8895 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
8896 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
8898 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove futex related
8901 2003-05-28 Ulrich Drepper <drepper@redhat.com>
8903 * sysdeps/pthread/pthread_cond_broadcast.c
8904 (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX.
8906 2003-05-26 Ulrich Drepper <drepper@redhat.com>
8908 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix
8909 typo in register name.
8910 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use parameters
8911 correctly. Actually use requeue. Little optimization.
8912 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Store
8913 mutex address early. Handle cancellation state as 32-bit value.
8914 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8915 Remove unnecessary label.
8917 2003-05-25 Ulrich Drepper <drepper@redhat.com>
8919 * sysdeps/pthread/pthread_cond_broadcast.c: Try using FUTEX_REQUEUE
8920 instead of FUTEX_WAIT.
8921 * sysdeps/pthread/pthread_cond_signal.c: Likewise.
8922 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
8923 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
8924 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
8925 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
8926 * sysdeps/pthread/pthread_cond_timedwait.c: Remember mutex which was
8927 used in condvar structure. Call __pthread_mutex_cond_lock instead
8928 of __pthread_mutex_lock_internal.
8929 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8930 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8931 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
8932 (__condvar_cleanup): Always call __pthread_mutex_cond_lock.
8933 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8934 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8935 * sysdeps/unix/sysv/linux/Makefile (libpthread-sysdep_routines):
8936 Add pthread_mutex_cond_lock.
8937 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add dep_mutex.
8938 * sysdeps/unix/sysv/linux/pthread_cond_mutex_lock.c: New file.
8939 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define
8940 lll_mutex_cond_lock.
8941 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
8942 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
8943 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
8945 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8946 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8948 * sysdeps/i386/tcb-offsets.sym: Define MUTEX_FUTEX.
8949 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
8951 * pthreadP.h: Declare __pthread_mutex_cond_lock.
8952 * pthread_mutex_lock.c: Define LLL_MUTEX_LOCK if not already defined.
8953 Use it instead of lll_mutex_lock. If __pthread_mutex_lock is a
8954 macro don't define aliases.
8956 * cancellation.c: Remove __pthread_enable_asynccancel_2.
8957 * pthreadP.h: Remove declaration of __pthread_enable_asynccancel_2.
8958 * sysdeps/pthread/pthread_cond_timedwait.c: Use
8959 __pthread_enable_asynccancel instead of __pthread_enable_asynccancel_2.
8960 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8961 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8962 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
8963 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8964 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8966 2003-05-17 Ulrich Drepper <drepper@redhat.com>
8968 * sem_open.c: Fix one endless loop. Implement correct semantics
8969 wrt opening the same semaphore more then once.
8970 * sem_close.c: Adjust for sem_open change.
8971 * semaphoreP.h: Include <semaphore.h>. Define struct inuse_sem.
8972 Declare __sem_mappings, __sem_mappings_lock, __sem_search.
8973 * Makefile (tests): Add tst-sem7.
8974 * tst-sem7.c: New file.
8976 2003-05-16 Roland McGrath <roland@redhat.com>
8978 * sysdeps/unix/sysv/linux/register-atfork.c (libc_freeres_fn): Fix
8979 uninitialized variable braino.
8981 2003-05-16 Ulrich Drepper <drepper@redhat.com>
8983 * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Correct
8984 test for syscall availability.
8986 * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime): Set
8987 __no_posix_timers to -1 if the syscalls don't exist.
8989 * pthread_join.c (pthread_join): Set tid field of the joined
8990 thread to -1. This isn't necessary but helps to recognize some
8991 error conditions with almost no cost.
8993 * allocatestack.c (FREE_P): Also negative values indicate an
8996 * unwind.c: Include <unistd.h>.
8998 2003-05-14 Ulrich Drepper <drepper@redhat.com>
9000 * Makefile ($(objpfx)$(multidir)): Add rule to create the directory.
9002 2003-05-14 Jakub Jelinek <jakub@redhat.com>
9004 * Makefile (crti-objs, crtn-objs): New variables.
9005 (omit-deps, extra-objs): Add crtn.
9006 ($(objpfx)libpthread.so): Depend on both crti and crtn
9007 and links to them in multidir.
9008 ($(objpfx)crtn.S, $(objpfx)crtn.o): New rules.
9010 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
9012 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9013 (lll_mutex_unlock): Use atomic_exchange_rel.
9015 2003-05-11 Ulrich Drepper <drepper@redhat.com>
9017 * cond-perf.c (cons): Add missing locking around setting of alldone.
9019 2003-05-10 Ulrich Drepper <drepper@redhat.com>
9021 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove futex
9023 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
9025 2003-05-09 Ulrich Drepper <drepper@redhat.com>
9027 * tst-sem6.c: New file.
9028 * Makefile (tests): Add tst-sem6.
9030 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (___lll_mutex_unlock):
9031 Use atomic_exchange_rel instead of atomic_exchange.
9032 * sysdeps/unix/sysv/linux/lowlevellock.c (lll_unlock_wake_cb):
9035 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Improve quality of
9036 code for lll_futex_wait and lll_futex_wake in static apps. Use
9037 vsyscall is possible.
9039 * sysdeps/unix/sysv/linux/pthread_getaffinity.c: New file.
9040 * sysdeps/unix/sysv/linux/pthread_setaffinity.c: New file.
9041 * sysdeps/pthread/pthread.h: Declare pthread_getaffinity_np and
9042 pthread_setaffinity_np.
9043 * Versions [libpthread] (GLIBC_2.3.3): Add pthread_getaffinity_np
9044 and pthread_setaffinity_np.
9045 * Makefile (libpthread-routines): Add pthread_getaffinity and
9046 pthread_setaffinity.
9048 * allocatestack.c (allocate_stack): If ARCH_RETRY_MMAP is defined,
9049 use it in case mmap to allocate the stack fails.
9050 * sysdeps/unix/sysv/linux/x86_64/Makefile: Don't define
9051 ARCH_MAP_FLAGS here.
9052 * sysdeps/x86_64/pthreaddef.h: Define ARCH_MAP_FLAGS and
9055 2003-05-08 Ulrich Drepper <drepper@redhat.com>
9057 * sysdeps/unix/sysv/linux/fork.c: Complete rewrite of the atfork
9058 handler implementation. It is now lockless in fork().
9059 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
9060 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
9061 * sysdeps/unix/sysv/linux/fork.h: Don't include <link.h>. Don't
9062 declare the __fork_*_lists.
9063 (struct fork_handler): Include pointers to all three functions.
9064 Add next, refcntr and need_signal elements.
9065 (__fork_handlers): New declaration.
9066 (__register_atfork_malloc): Remove declaration.
9067 (HAVE_register_atfork_malloc): Remove definition.
9068 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove
9069 __pthread_child_handler variable.
9070 (__libc_pthread_init): Use __register_atfork instead of explicitly
9072 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define lll_futex_wait
9074 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
9076 * unwind.c (unwind_cleanup): Print error message and then abort. This
9077 function must never be reached.
9079 * cond-perf.c: New file.
9081 2003-05-05 Ulrich Drepper <drepper@redhat.com>
9083 * sysdeps/i386/tls.h (TLS_INIT_TP): Include \n in error message.
9085 2003-05-04 Roland McGrath <roland@redhat.com>
9087 * Makefile ($(objpfx)../libc.so): New target.
9089 2003-05-02 Ulrich Drepper <drepper@redhat.com>
9091 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9092 (pthread_condattr_t): Size is only an int, don't use long for
9094 (pthread_mutexattr_t): Likewise.
9095 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9096 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
9097 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
9099 2003-05-01 Ulrich Drepper <drepper@redhat.com>
9101 * sysdeps/i386/tls.h: Define THREAD_ID.
9102 * sysdeps/ia64/tls.h: Likewise.
9103 * sysdeps/powerpc/tls.h: Likewise.
9104 * sysdeps/s390/tls.h: Likewise.
9105 * sysdeps/sh/tls.h: Likewise.
9106 * sysdeps/x86_64/tls.h: Likewise.
9107 * pthread_mutex_lock.c: Use THREAD_ID instead of THREAD_SELF to
9109 * pthread_mutex_timedlock.c: Likewise.
9110 * pthread_mutex_trylock.c: Likewise.
9111 * pthread_mutex_unlock.c: Likewise.
9112 * pthread_rwlock_trywrlock.c: Likewise.
9113 * sysdeps/pthread/pthread_rwlocklock_rdlock.c: Likewise.
9114 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
9115 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
9116 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
9118 * sysdeps/pthread/createthread.c (create_thread): Use CLONE_SYSVSEM
9121 2003-04-29 Jakub Jelinek <jakub@redhat.com>
9123 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
9124 (__SIZEOF_PTHREAD_COND_T): Define to 48.
9125 (pthread_rwlock_t): Add 16 bytes of pad instead of 8 before __flags.
9126 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
9127 Make __align long long instead of long.
9128 (pthread_rwlock_t): Formatting.
9129 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
9130 (pthread_rwlock_t): Formatting.
9131 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9132 (pthread_cond_t): Make __align long long instead of long.
9133 (pthread_rwlock_t): Move __flags field to the same position as in
9136 2003-04-30 Ulrich Drepper <drepper@redhat.com>
9138 * tst-rwlock6.c (do_test): Use correct printf format specifiers.
9139 * tst-rwlock7.c (do_test): Likewise.
9141 2003-04-26 Roland McGrath <roland@redhat.com>
9143 * Makefile ($(test-modules)): Depend on $(common-objpfx)shlib.lds.
9145 2003-04-22 Jakub Jelinek <jakub@redhat.com>
9147 * allocatestack.c (TLS_TPADJ): Add TLS_PRE_TCB_SIZE instead of
9148 sizeof (struct pthread).
9149 (allocate_stack): Subtract TLS_PRE_TCB_SIZE bytes instead of
9151 * sysdeps/powerpc/tls.h (TLS_INIT_TCB_SIZE, TLS_TCB_SIZE): Define
9153 (TLS_INIT_TCB_ALIGN, TLS_TCB_ALIGN): Define to alignment of
9155 (TLS_PRE_TCB_SIZE): Increase to cover tcbhead_t preceeded by pad
9157 (INSTALL_DTV, GET_DTV, THREAD_DTV): tcbhead_t is immediately before
9159 (TLS_INIT_TP, THREAD_SELF, INIT_THREAD_SELF): Don't add TLS_TCB_SIZE
9161 (NO_TLS_OFFSET): Define.
9162 * sysdeps/unix/sysv/linux/powerpc/createthread.c (TLS_VALUE): Don't
9163 add TLS_TCB_SIZE unnecessarily.
9165 2003-04-22 Roland McGrath <roland@redhat.com>
9167 * Makeconfig (shared-thread-library): Reverse link order to work
9170 2003-04-22 Ulrich Drepper <drepper@redhat.com>
9172 * semaphore.h: Fix typo in comment.
9174 2003-04-21 Ulrich Drepper <drepper@redhat.com>
9176 * sysdeps/pthread/sigfillset.c: New file.
9178 * init.c (__pthread_initialize_minimal): Don't block SIGTIMER.
9179 * pthreadP.h: Make SIGTIMER and SIGCANCEL the same.
9180 * sysdeps/pthread/pthread_sigmask.c: Remove handling of SIGTIMER.
9181 * sysdeps/pthread/sigaction.c: Likewise.
9182 * sysdeps/pthread/sigprocmask.c: New file.
9183 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): Define as
9185 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
9186 Block SIGTIMER. Also handle SI_TKILL events and terminate thread
9189 2003-04-19 Ulrich Drepper <drepper@redhat.com>
9191 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
9192 (DL_SYSINFO_IMPLEMENTATION): Add .eh_frame information.
9194 * sysdeps/unix/sysv/linux/unregister-atfork.c
9195 (__unregister_atfork): Don't free memory not allocated dynamically.
9197 * semaphore.h: Remove __THROW marker from cancellation points.
9198 * nptl/sysdeps/pthread/pthread.h: Likewise.
9200 2003-04-18 Ulrich Drepper <drepper@redhat.com>
9202 * sysdeps/pthread/pthread.h: Don't mark pthread_testcancel,
9203 pthread_cancel, pthread_setcancelstate, and pthread_setcanceltype with
9206 2003-04-16 Jakub Jelinek <jakub@redhat.com>
9208 * tst-cancel4.c (do_test): Use %zd instead of %d when printing cnt.
9210 2003-04-15 Roland McGrath <roland@redhat.com>
9212 * forward.c (__pthread_unwind): Tweak to avoid warning.
9214 2003-04-15 Ulrich Drepper <drepper@redhat.com>
9216 * pthreadP.h: Move THREAD_ATOMIC_* replacements to the top.
9218 2003-04-14 Ulrich Drepper <drepper@redhat.com>
9220 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't
9221 overflow CFA advance instructions.
9222 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9224 2003-04-14 Jakub Jelinek <jakub@redhat.com>
9226 * sysdeps/i386/tls.h: Rename LOCK to LOCK_PREFIX.
9227 * sysdeps/i386/pthread_spin_lock.c: Likewise.
9228 * sysdeps/x86_64/tls.h: Likewise. Define LOCK_PREFIX if not already
9231 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Use
9232 DW_CFA_advance_loc2 for .Laddl-.Lsubl.
9233 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
9234 DW_CFA_advance_loc for .Laddl-.Lsubl.
9236 2003-04-13 Ulrich Drepper <drepper@redhat.com>
9238 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Don't use
9239 position-independent unwind data for static libraries.
9240 Add missing unwind info. Add comments.
9242 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Add unwind info.
9243 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9244 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9245 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9247 2003-04-12 Ulrich Drepper <drepper@redhat.com>
9249 * Makefile: Make sure all cancellation points are compiled with
9250 exception and asynchronous unwind tables.
9252 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug
9253 which mishandles loading of global object addresses in PIC.
9254 (THREAD_SETMEM_NC): Likewise.
9256 2003-04-11 Ulrich Drepper <drepper@redhat.com>
9258 * pthread.h: Define new data structure for cleanup buffer. Declare
9259 new cleanup handler interfaces.
9260 * descr.h: Include <unwind.h> if necessary. Define pthread_unwind_buf.
9261 (struct pthread): Add cleanup_jmp_buf pointer. Define
9262 HAVE_CLEANUP_JMP_BUF and not HAVE_CANCELBUF.
9263 * pthreadP.h: Declare __pthread_unwind. Define __do_cancel to use
9264 it. Declare old cleanup handler installation functions.
9265 * cleanup.c: Rewrite. Install handler for unwind-based cleanup
9267 * cleanup_defer.c: Likewise.
9268 * cleanup_compat.c: New file. Old cleanup code.
9269 * cleanup_def_compat.c: New file. Old cleanup code.
9270 * pthread_create.c (start_thread): Initialize cleanup_jmp_buf element
9271 if own thread descriptor.
9272 * unwind.c: New file.
9273 * forward.c: Add __pthread_unwind.
9274 * init.c (pthread_functions): Add __pthread_unwind.
9275 * sysdeps/pthread/pthread-functions.s (struct pthread_functions):
9276 Add ptr___pthread_unwind.
9277 * Versions [GLIBC_2.3.3] (libpthread): Export new cleanup handling
9278 and unwind function.
9279 * Makefile (libpthread-routines): Add cleanup_compat,
9280 cleanup_def_compat, and unwind. Define CFLAGS to enable unwind
9281 table generation if necessary.
9282 * version.c: Record whether unwind support is compiled in.
9283 * sysdeps/pthread/configure.in: Add checks for unwind unterfaces.
9284 * sysdeps/pthread/bits/libc-lock.h: Add prototypes of the old cleanup
9286 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add quite a bit of
9287 complication to generate unwind information for syscall wrappers.
9288 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
9289 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
9290 __cleanup_fct_attribute.
9292 * Makefile: Add rules to build and run tst-cleanup0.
9293 * tst-cleanup0.c: New file.
9294 * tst-cleanup0.expect: New file.
9296 * pthread_create.c (deallocate_tsd): Don't take parameter. Adjust
9297 caller. Optimize to avoid often unecessary local variable.
9299 2003-04-11 Roland McGrath <roland@redhat.com>
9301 * Makefile ($(objpfx)multidir.mk): New target, generated makefile that
9302 sets variable `multidir'; include that.
9303 (generated): Add it.
9304 ($(objpfx)$(multidir)/crti.o): New target.
9305 [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it.
9307 2003-04-11 Ulrich Drepper <drepper@redhat.com>
9309 * tst-attr2.c (do_test): Add cast to avoid warning.
9310 * tst-mutex4.c (do_test): Likewise.
9312 2003-04-10 Ulrich Drepper <drepper@redhat.com>
9314 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset CPU clocks
9317 2003-04-09 Ulrich Drepper <drepper@redhat.com>
9319 * Makefile (tests): Add tst-detach1.
9320 * tst-detach1.c: New file.
9322 2003-04-08 Ulrich Drepper <drepper@redhat.com>
9324 * sysdeps/pthread/pthread.h: Remove duplicate
9325 pthread_cleanup_{push,pop} definitions.
9327 * tst-barrier2.c: Eliminate warnings.
9328 * tst-cancel4.c: Likewise.
9329 * tst-cond4.c: Likewise.
9330 * tst-cond6.c: Likewise.
9331 * tst-detach1.c: Likewise.
9332 * tst-rwlock4.c: Likewise.
9333 * tst-rwlock6.c: Likewise.
9334 * tst-rwlock7.c: Likewise.
9335 * tst-sem3.c: Likewise.
9336 * tst-spin2.c: Likewise.
9337 * tst-umask1.c: Likewise.
9339 2003-04-07 Ulrich Drepper <drepper@redhat.com>
9341 * pthread_detach.c (pthread_detach): Fix test for invalid TID.
9343 2003-04-06 Ulrich Drepper <drepper@redhat.com>
9345 * descr.h (struct pthread): Move cancelhandling member to the front.
9347 2003-04-05 Ulrich Drepper <drepper@redhat.com>
9349 * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare,
9350 malloc_parent, and malloc_child statically.
9351 (__register_atfork_malloc): New function.
9352 (free_mem): Don't free any of the malloc_* variables on the list.
9353 * sysdeps/unix/sysv/linux/fork.h: Declare __register_atfork_malloc.
9354 Define HAVE_register_atfork_malloc.
9356 2003-04-04 Ulrich Drepper <drepper@redhat.com>
9358 * sysdeps/pthread/createthread.c (create_thread): Add some more
9359 comments explaining when to set multiple_threads and when not.
9361 * pthreadP.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
9362 THREAD_ATOMIC_BIT_SET if not already defined.
9363 * sysdeps/i386/tls.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
9364 THREAD_ATOMIC_BIT_SET:
9365 * sysdeps/x86_64/tls.h: Likewise.
9366 * cleanup_defer.c (_pthread_cleanup_push_defer): Rewrite to use
9367 THREAD_ATOMIC_CMPXCHG_VAL.
9368 (_pthread_cleanup_pop_restore): Likewise.
9369 * cancellation.c (__pthread_enable_asynccancel): Likewise.
9370 (__pthread_enable_asynccancel_2): Likewise.
9371 (__pthread_disable_asynccancel): Likewise.
9372 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
9373 (__libc_disable_asynccancel): Likewise.
9374 * init.c (sigcancel_handler): Likewise.
9375 * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise.
9376 * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise.
9378 2003-04-03 Ulrich Drepper <drepper@redhat.com>
9380 * init.c (sigcancel_handler): Don't set EXITING_BIT here.
9381 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
9382 * pthreadP.h (__do_cancel): Set EXITING_BIT here.
9383 * Makefile (tests): Add tst-cancel11.
9384 * tst-cancel11.c: New file.
9386 2003-04-01 Ulrich Drepper <drepper@redhat.com>
9388 * pthread_create.c (deallocate_tsd): Clear/free memory after the last
9389 round, not the first. Use specific_used flag instead of local
9390 found_nonzero variable. Use THREAD_[SG]ETMEM where possible.
9391 (__free_tcb): Don't call deallocate_tsd here.
9392 (start_thread): Call deallocate_tsd here.
9393 * pthread_setspecific.c: Set specific_used flag really only when
9395 * Makefile (tests): Add tst-tsd3.c and tst-tsd4.
9396 * tst-tsd3.c: New file.
9397 * tst-tsd4.c: New file.
9399 2003-03-31 Ulrich Drepper <drepper@redhat.com>
9401 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock):
9402 Use atomic_exchange_and_add instead of __lll_add.
9403 (__lll_mutex_timedlock): Likewise.
9404 Patch by Ian Wienand.
9406 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
9408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
9409 (SINGLE_THREAD_P): Fix typo.
9410 * tst-cancel-wrappers.sh: Handle '.'ed symbols.
9412 2003-03-31 Ulrich Drepper <drepper@redhat.com>
9414 * Makefile (tests): Add tst-align.
9415 * tst-align.c: New file.
9416 * sysdeps/i386/Makefile: Define CFLAGS-tst-align.
9418 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called
9421 * tst-tsd2.c: Add casts to avoid warnings.
9423 2003-03-30 Ulrich Drepper <drepper@redhat.com>
9425 * descr.h (struct pthread): Move most often used elements to the front.
9427 2003-03-29 Ulrich Drepper <drepper@redhat.com>
9429 * Makefile (libpthread-routines): Add pthread_atfork.
9430 (libpthread-static-only-routines): Add pthread_atfork.
9432 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9434 * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
9436 (INSTALL_DTV): Add parens.
9437 (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC):
9438 Use passed descr instead of THREAD_SELF.
9439 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S
9440 (__lll_mutex_timedlock_wait): Correct expected value after
9442 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S:
9443 Release lock before waking up the waiters.
9444 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit
9445 criteria. Reorderstruct passed to cleanup handler. Fix
9446 handling of cancellation and failung pthread_mutex_unlock call.
9447 Use __pthread_enable_asynccancel_2 instead of
9448 __pthread_enable_asynccancel.
9449 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
9450 Return result of lock re-get if it fails.
9451 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument
9452 for __pthread_cleanup_push.
9453 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix
9454 completely broken rwlock implementation.
9455 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
9456 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
9457 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
9458 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
9459 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
9460 * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use
9461 versioned_symbol macro.
9462 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro.
9463 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
9465 2003-03-27 Ulrich Drepper <drepper@redhat.com>
9467 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare
9468 __timer_helper_thread. Declare __start_helper_thread, __helper_once,
9470 (struct timer): Remove th and bar field.
9471 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove
9472 debugging code. Create only one helper thread.
9473 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill
9475 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
9476 Renamed. Define statically. Use thread info from siginfo.
9477 (__helper_once): New variable.
9478 (__helper_tid): New variable.
9479 (__reset_helper_control): New function.
9480 (__start_helper_thread): New function.
9482 * pthread_create.c (start_thread): Don't use setjmp inside
9483 __builtin_expect to work around gcc bug.
9485 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
9486 timer_delete syscall fails, but not with ENOSYS, set
9489 * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
9490 (timer_settime): Fix typo.
9491 * sysdeps/unix/sysv/linux/timer_getoverr.c
9492 [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise.
9494 2003-03-27 Jakub Jelinek <jakub@redhat.com>
9496 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
9497 offset of cleanupbuf.__prev.
9499 2003-03-26 Jakub Jelinek <jakub@redhat.com>
9501 * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
9504 2003-03-26 Ulrich Drepper <drepper@redhat.com>
9506 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP ==
9507 NULL provide default definition to syscall.
9509 2003-03-25 Roland McGrath <roland@redhat.com>
9511 * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
9512 (timer_id2ptr): Fix typo.
9514 2003-03-25 Ulrich Drepper <drepper@redhat.com>
9516 * pthreadP.h: Define SIGCANCEL and SIGTIMER.
9517 * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition.
9518 * sysdeps/ia64/pthreaddef.h: Likewise.
9519 * sysdeps/powerpc/pthreaddef.h: Likewise.
9520 * sysdeps/s390/pthreaddef.h: Likewise.
9521 * sysdeps/sh/pthreaddef.h: Likewise.
9522 * sysdeps/x86_64/pthreaddef.h: Likewise.
9523 * init.c (__pthread_initialize_minimal): Block SIGTIMER.
9524 * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from
9526 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
9527 SIGTIMER is not unblocked.
9528 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more
9530 * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to
9532 * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just
9533 pass pointer through as ID.
9534 * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed.
9535 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file.
9536 * sysdeps/unix/sysv/linux/timer_create.c: New file.
9537 * sysdeps/unix/sysv/linux/timer_delete.c: New file.
9538 * sysdeps/unix/sysv/linux/timer_getoverr.c: New file.
9539 * sysdeps/unix/sysv/linux/timer_gettime.c: New file.
9540 * sysdeps/unix/sysv/linux/timer_routines.c: New file.
9541 * sysdeps/unix/sysv/linux/timer_settime.c: New file.
9542 * sysdeps/unix/sysv/linux/ia64/Versions: New file.
9543 * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file.
9544 * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file.
9545 * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file.
9546 * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file.
9547 * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file.
9548 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file.
9549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file.
9550 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file.
9551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file.
9552 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file.
9553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file.
9554 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9555 * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file.
9556 * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file.
9557 * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file.
9558 * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file.
9559 * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file.
9560 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
9561 * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file.
9562 * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file.
9563 * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file.
9564 * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file.
9565 * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file.
9566 * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file.
9568 * pthreadP.h: Remove FRAME_LEFT definition.
9569 * cleanup.c (_pthread_cleanup_push): Don't check for reference to
9570 already left frame. Programs which have this problem are not POSIX
9572 * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise.
9574 2003-03-24 Ulrich Drepper <drepper@redhat.com>
9576 * sysdeps/pthread/tst-timer.c: Check return values of the
9579 2003-03-23 Roland McGrath <roland@redhat.com>
9581 * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
9582 * tst-tls3mod.c: Likewise.
9583 * tst-tls1.c: Likewise.
9584 * tst-tls2.c: Likewise.
9586 * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
9589 * tst-join5.c (tf1, tf2): Add a cast.
9591 * Makeconfig (includes): Append -I$(..)nptl to this variable.
9593 * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
9594 Don't test anything.
9595 * tst-cond4.c: Likewise.
9596 * tst-cond6.c: Likewise.
9597 * tst-flock2.c: Likewise.
9598 * tst-mutex4.c: Likewise.
9599 * tst-rwlock4.c: Likewise.
9600 * tst-signal1.c: Likewise.
9601 * tst-spin2.c: Likewise.
9602 * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.
9604 * tst-mutex4.c: Use test-skeleton.c.
9605 * tst-spin2.c: Likewise.
9606 * tst-sysconf.c: Likewise.
9607 * tst-barrier2.c: Likewise.
9608 * tst-cond4.c: Likewise.
9609 * tst-cond6.c: Likewise.
9610 * tst-rwlock4.c: Likewise.
9611 * tst-unload.c: Likewise.
9612 * tst-flock2.c (do_test): Use return instead of exit.
9614 2003-03-22 Jakub Jelinek <jakub@redhat.com>
9616 * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
9618 2003-03-21 Ulrich Drepper <drepper@redhat.com>
9620 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
9621 (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq
9622 instead of __lll_compare_and_swap.
9623 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
9625 Removed definition if __lll_compare_and_swap.
9627 * cancellation.c: Adjust for new form of compare&exchange macros.
9628 * cleanup_defer.c: Likewise.
9630 * libc-cancellation.c: Likewise.
9631 * old_pthread_cond_broadcast.c: Likewise.
9632 * old_pthread_cond_signal.c: Likewise.
9633 * old_pthread_cond_timedwait.c: Likewise.
9634 * old_pthread_cond_wait.c: Likewise.
9635 * pthread_cancel.c: Likewise.
9636 * pthread_create.c: Likewise.
9637 * pthread_detach.c: Likewise.
9638 * pthread_join.c: Likewise.
9639 * pthread_key_delete.c: Likewise.
9640 * pthread_setcancelstate.c: Likewise.
9641 * pthread_setcanceltype.c: Likewise.
9642 * pthread_timedjoin.c: Likewise.
9643 * pthread_tryjoin.c: Likewise.
9644 * sysdeps/pthread/createthread.c: Likewise.
9646 2003-03-20 Ulrich Drepper <drepper@redhat.com>
9648 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
9649 Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
9650 definitions. Replace uses with calls to atomic_* functions.
9651 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
9652 * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
9653 __lll_test_and_set calls with atomic_exchange_and_add and
9654 atomic_exchange calls respectively.
9655 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
9656 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
9657 * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
9658 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
9659 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
9660 * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
9661 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
9663 * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
9664 returns the old value.
9666 2003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com>
9668 * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
9669 int for variable OLDVAL and correct inline assembler contraint.
9670 * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
9671 type int for variable OLD.
9673 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
9675 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
9676 (SINGLE_THREAD_P): Use global variable __local_multiple_threads
9677 instead of multiple_threads field in the TCB.
9679 2003-03-19 Ulrich Drepper <drepper@redhat.com>
9681 * sysdeps/i386/i686/bits/atomic.h: Removed.
9682 * sysdeps/i386/i586/bits/atomic.h: Removed.
9683 * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc.
9684 * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc.
9685 * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc.
9686 * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc.
9687 * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc.
9688 * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc.
9689 * atomic.h: Removed. Moved to glibc.
9691 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add
9692 support for clock selection.
9694 * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
9697 2003-03-18 Roland McGrath <roland@redhat.com>
9699 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
9700 Add __lll_rel_instr first. Add memory clobber.
9701 (lll_mutex_unlock): Use __lll_test_and_set.
9702 From Paul Mackerras <paulus@samba.org>.
9704 * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define
9706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
9707 (SINGLE_THREAD_P): Add `header.' prefix.
9708 From Paul Mackerras <paulus@samba.org>.
9710 * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
9711 pthread_timedjoin_np to ...
9712 (libpthread: GLIBC_2.3.3): ... here.
9713 (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
9715 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
9716 Avoid shadowing VAL variable.
9718 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
9721 2003-03-18 Ulrich Drepper <drepper@redhat.com>
9723 * Makefile (tests): Add tst-cond11.
9724 * tst-cond11.c: New file.
9726 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder
9727 struct passed to cleanup handler to eliminate one more
9729 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9731 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
9732 (pthrad_cond_t): Replace __unused field with __clock.
9734 * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
9735 waken all waiters in cleanup handler.
9736 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
9737 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9739 * pthread_condattr_getclock.c: New file.
9740 * pthread_condattr_setclock.c: New file.
9741 * sysdeps/pthread/pthread.h: Declare these new functions.
9742 * Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
9743 * Makefile (libpthread-routines): Add the new functions.
9744 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
9745 Renamed field to value. Document use of the bits.
9746 * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
9748 * pthread_condattr_setpshared.c: Likewise.
9749 * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
9750 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
9751 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
9753 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9754 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
9755 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
9756 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
9757 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
9758 Implement clock selection.
9759 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
9760 * pthread-errnos.sym: Add ENOSYS.
9761 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
9762 _POSIX_CLOCK_SELECTION.
9763 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
9765 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
9766 invalid .size directive.
9768 2003-03-17 Roland McGrath <roland@redhat.com>
9770 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
9773 2003-03-17 Ulrich Drepper <drepper@redhat.com>
9775 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
9776 Use __lll_add instead of spelling it out. Use protected symbol names.
9777 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
9779 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
9780 Renamed from lll_compare_and_swap. Use new name where necessary.
9781 (__lll_add): Defined.
9782 (__lll_dec_if_positive): Defined.
9783 (__lll_test_and_set): Defined.
9784 * sysdeps/ia64/pthread_spin_init.c: Removed.
9785 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
9786 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
9787 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
9788 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
9789 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
9790 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
9791 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
9792 * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
9793 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
9794 __sync_lock_release_si.
9795 Patch by Jakub Jelinek.
9797 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
9798 Fix timeout handling.
9799 (__lll_timedwait_tid): Likewise.
9800 (lll_unlock_wake_cb): Wake up other waiters if necessary.
9801 Patch by Jakub Jelinek.
9803 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
9805 2003-03-17 Roland McGrath <roland@redhat.com>
9807 PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
9808 * sysdeps/pthread/pthread_spin_init.c: New file.
9809 * sysdeps/pthread/pthread_spin_unlock.c: New file.
9810 * sysdeps/powerpc/Makefile: New file.
9811 * sysdeps/powerpc/pthread_spin_lock.c: New file.
9812 * sysdeps/powerpc/pthread_spin_trylock.c: New file.
9813 * sysdeps/powerpc/pthreaddef.h: New file.
9814 * sysdeps/powerpc/tcb-offsets.sym: New file.
9815 * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
9816 * sysdeps/powerpc/tls.h: New file.
9817 * sysdeps/powerpc/bits/atomic.h: New file.
9818 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
9819 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
9820 * sysdeps/unix/sysv/linux/lowlevellock.c: New file.
9822 * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
9823 * sysdeps/unix/sysv/linux/sem_post.c: New file.
9824 * sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
9825 * sysdeps/unix/sysv/linux/sem_trywait.c: New file.
9826 * sysdeps/unix/sysv/linux/sem_wait.c: New file.
9827 * sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
9828 * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
9829 * sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
9830 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
9831 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
9832 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
9833 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
9834 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
9835 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
9836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.
9838 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
9840 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
9841 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
9842 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
9843 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
9844 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
9846 2003-03-17 Ulrich Drepper <drepper@redhat.com>
9848 * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria.
9849 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
9850 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9851 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9852 Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>.
9854 2003-03-16 Roland McGrath <roland@redhat.com>
9856 * tst-fork4.c: Include <string.h>.
9857 * tst-signal2.c: Likewise.
9858 * tst-mutex5.c (do_test): exit -> return.
9859 * tst-mutex2.c: Include <stdlib.h>.
9861 2003-03-16 Ulrich Drepper <drepper@redhat.com>
9863 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
9864 (__lll_mutex_timedlock_wait): Correct expected value after
9865 spurious wakeup. Otherwise we would never wait again.
9867 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
9868 zone versus inline asm stupidity. Use correct instructions.
9870 * tst-rwlock6.c: Add some more status output.
9872 2003-03-15 Roland McGrath <roland@redhat.com>
9874 * sysdeps/pthread/configure.in: New file.
9875 * sysdeps/pthread/configure: New file (generated).
9877 2003-03-15 Ulrich Drepper <drepper@redhat.com>
9879 * allocatestack.c (allocate_stack): Store the exact stack size of
9880 user allocated stacks.
9882 2003-03-15 Jakub Jelinek <jakub@redhat.com>
9884 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
9885 (SINGLE_THREAD): Use `header' prefix instead of `header.data'.
9886 * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
9887 * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
9888 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
9889 Use `header.' prefix.
9890 * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
9892 2003-03-15 Ulrich Drepper <drepper@redhat.com>
9894 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
9895 __builtin_frame_address, use stack pointer.
9897 * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
9898 instead of __builtin_frame_pointer.
9900 2003-03-14 Ulrich Drepper <drepper@redhat.com>
9902 * tst-basic1.c (do_test): Add cast to avoid warning.
9903 * tst-basic2.c (do_test): Likewise.
9905 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
9906 amount of stack correction.
9908 * tst-fork4.c: Use test-skeleton.c.
9910 2003-03-14 Roland McGrath <roland@redhat.com>
9912 * init.c: Fix typo "#eli" for "#else".
9914 2003-03-14 Steven Munroe <sjmunroe@us.ibm.com>
9916 * allocatestack.c (__stack_user): Use hidden_data_def.
9917 * pthread_create.c (__pthread_keys): Likewise.
9919 * init.c [__powerpc__] (__NR_set_tid_address): Define it.
9921 2003-03-14 Roland McGrath <roland@redhat.com>
9923 * tst-fork4.c: New file.
9924 * Makefile (tests): Add it.
9926 * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so
9927 we always define the padding space.
9928 [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC
9929 stopped supporting its own extensions fully.
9930 [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper
9931 struct also called `header', so `header.multiple_threads' is the field
9932 name to use on all machines.
9933 * allocatestack.c (allocate_stack): Use `header.' prefix.
9934 * sysdeps/pthread/createthread.c (create_thread): Likewise.
9935 * pthread_create.c (__pthread_create_2_1): Likewise.
9936 * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise.
9937 (THREAD_SELF): Likewise.
9938 * sysdeps/x86_64/tls.h: Likewise.
9939 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
9940 (SINGLE_THREAD_P): Likewise.
9941 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
9942 (SINGLE_THREAD_P): Likewise.
9943 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
9944 (SINGLE_THREAD_P): Likewise.
9946 * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18]
9949 2003-03-14 Ulrich Drepper <drepper@redhat.com>
9951 * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
9952 * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
9954 * pthread_create.c (start_thread): setjmp is expected to return 0.
9956 * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile.
9957 (THREAD_GETMEM_NC): Likewise.
9959 2003-03-13 Ulrich Drepper <drepper@redhat.com>
9961 * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined
9962 and the size of the stack which must be allocated is a multiple,
9963 allocate one more page.
9964 * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but
9965 MULTI_PAGE_ALIASING.
9967 2003-03-13 Roland McGrath <roland@redhat.com>
9969 * pthread_create.c (start_thread): Set EXITING_BIT after the
9970 event-reporting (and destructors), not before.
9972 2003-03-13 Jakub Jelinek <jakub@redhat.com>
9974 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait,
9975 lll_futex_wake): Declare register variables as long int instead of
9976 unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9977 Make syscall arguments clobbered by the syscall.
9978 (lll_futex_wait): Define using lll_futex_timed_wait.
9980 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13]
9983 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
9986 * allocatestack.c (nptl_ncreated): Only declare if
9987 COLORING_INCREMENT != 0.
9989 * pthreadP.h (__pthread_enable_asynccancel_2): New prototype.
9990 (__libc_enable_asynccancel_2): Remove prototype.
9992 * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
9993 ctid to match kernel.
9995 2003-03-12 Ulrich Drepper <drepper@redhat.com>
9997 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
9998 libc_multiple_threads.
9999 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
10000 __libc_multiple_threads to...
10001 * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
10003 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
10005 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10006 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10008 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
10009 (__pthread_once_internal): Define.
10011 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
10012 macros instead of .symver directly.
10013 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
10014 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
10016 * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
10017 * sysdeps/x86_64/tcb-offsets.sym: New file.
10018 * sysdeps/x86_64/Makefile: New file.
10020 * sysdeps/i386/tcb-offsets.sym: Add SELF.
10021 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
10022 to access own pthread_t in TCB.
10023 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10025 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10027 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10029 2003-03-12 Roland McGrath <roland@redhat.com>
10031 * pthread-errnos.sym: New file.
10032 * Makefile (gen-as-const-headers): New variable, list that file.
10033 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
10034 header <pthread-errnos.h> instead of defining errno values here.
10035 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
10036 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
10037 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
10038 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10039 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10041 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10043 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
10044 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10045 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
10046 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
10047 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10048 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10049 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
10050 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
10051 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
10052 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
10053 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10054 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
10055 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
10056 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
10057 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
10058 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
10059 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
10060 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
10061 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
10062 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
10063 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
10064 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
10065 * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
10066 * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
10067 * sysdeps/sh/pthread_spin_trylock.S: Likewise.
10068 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
10069 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
10071 * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
10072 CLONE_CHILD_SETTID worked.
10074 2003-03-12 Ulrich Drepper <drepper@redhat.com>
10076 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
10078 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
10081 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
10082 (pthread_cond_t): Add padding.
10084 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
10085 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
10086 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
10088 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
10089 (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
10090 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
10091 (__pthread_rwlock_timedrdlock): Likewise.
10092 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
10093 (__pthread_rwlock_wrlock): Likewise.
10094 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
10095 (__pthread_rwlock_rdlock): Likewise.
10097 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
10099 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
10100 result of lock re-get if it fails.
10102 2003-03-11 Ulrich Drepper <drepper@redhat.com>
10104 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
10105 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
10106 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
10107 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
10108 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
10109 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
10110 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
10111 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
10112 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10113 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10115 * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
10116 THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
10118 * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
10119 Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
10120 * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
10121 (create_thread): Likewise.
10122 Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
10123 * init.c (__pthread_initialize_minimal_internal): Initialize
10124 __libc_multiple_threads_ptr if necessary.
10125 * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
10126 __pthread_multiple_threads and __libc_multiple_threads_ptr.
10127 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
10128 __libc_multiple_threads.
10129 (__libc_pthread_init): Return pointer to __libc_pthread_init if
10132 * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
10133 (THREAD_SETMEM_NC): Likewise.
10135 * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
10136 * sysdeps/x86_64/pthread_spin_trylock.S: New file.
10137 * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
10138 * sysdeps/x86_64/pthread_spin_unlock.S: New file.
10140 * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
10141 Eliminate one entire instruction.
10143 * cancellation.c (__pthread_enable_asynccancel_2): New function.
10144 * pthreadP.h: Declare __pthread_enable_asynccancel_2.
10145 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
10146 (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
10147 instead of __pthread_enable_asynccancel.
10148 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
10149 (__pthread_cond_wait): Likewise.
10150 * sysdeps/pthread/pthread_cond_timedwait.c
10151 (__pthread_cond_timedwait): Likewise.
10152 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
10154 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
10155 (__condvar_cleanup): Wake up all waiters in case we got signaled
10156 after being woken up but before disabling asynchronous
10158 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
10159 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10160 (__condvar_cleanup): Likewise.
10162 * init.c (__NR_set_tid_address): If already defined, don't redefine.
10163 Make it an error if architecture has no #if case. Add x86-64.
10165 * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
10166 pt-initfini.s generation.
10168 * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
10169 (TLS_INIT_TP): Fix typo.
10171 2003-03-11 Jakub Jelinek <jakub@redhat.com>
10173 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
10174 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
10176 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
10177 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
10178 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
10179 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
10180 * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
10181 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
10182 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
10183 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
10185 2003-03-11 Ulrich Drepper <drepper@redhat.com>
10187 * sysdeps/pthread/pthread_cond_timedwait.c
10188 (__pthread_cond_timedwait): Return the result of the final
10189 locking. If it succeeds, the regular function return value.
10191 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
10192 Return result of the final locking.
10193 * version.c (__nptl_main): Work around problems with the strange
10194 INTERNAL_SYSCALL macro on ppc32.
10195 * init.c (__pthread_initialize_minimal_internal): Unblock
10196 SIGCANCEL in case the parent blocked it.
10197 Reported by Paul Mackerras <paulus@samba.org>.
10199 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
10200 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
10201 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
10203 2003-03-11 Jakub Jelinek <jakub@redhat.com>
10205 * sysdeps/pthread/pthread_cond_timedwait.c
10206 (__pthread_cond_timedwait): Unlock and fail if
10207 __pthread_mutex_unlock_internal failed.
10209 * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
10210 (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
10212 * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
10213 [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
10214 STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
10215 ALLOCATE_STACK): New macros.
10216 (TLS_TPADJ): New macro.
10217 (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
10218 (allocate_stack): Handle TLS_DTV_AT_TP and
10219 NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
10220 * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
10221 Don't set PD->self.
10222 * init.c [__ia64__] (__NR_set_tid_address): Define.
10224 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
10225 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
10226 * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
10227 * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
10228 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
10229 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
10230 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
10231 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
10232 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
10233 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
10234 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
10235 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
10236 * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
10237 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
10238 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
10239 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
10240 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
10241 * sysdeps/ia64/bits/atomic.h: New file.
10242 * sysdeps/ia64/Makefile: New file.
10243 * sysdeps/ia64/pthread_spin_init.c: New file.
10244 * sysdeps/ia64/pthread_spin_lock.c: New file.
10245 * sysdeps/ia64/pthread_spin_trylock.c: New file.
10246 * sysdeps/ia64/pthread_spin_unlock.c: New file.
10247 * sysdeps/ia64/pthreaddef.h: New file.
10248 * sysdeps/ia64/tcb-offsets.sym: New file.
10249 * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
10250 * sysdeps/ia64/tls.h: New file.
10252 * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
10253 to syscall instead of no arguments.
10255 2003-03-10 Ulrich Drepper <drepper@redhat.com>
10257 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
10258 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
10259 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
10260 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
10262 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
10265 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
10267 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
10268 lowlevelbarrier.sym.
10269 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
10270 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10271 Include lowlevelbarrier.h and don't define offsets locally.
10272 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
10274 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10275 (__lll_mutex_lock_wait): Reverse order of first two parameters.
10276 (__lll_mutex_timedlock_wait): Likewise.
10277 (lll_mutex_lock): Adjust asm for that.
10278 (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
10279 (lll_lock): Adjust asm for operand order change.
10280 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
10281 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
10283 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
10284 Reverse order of parameters.
10285 (__lll_timedwait_tid): Remove regparms attribute.
10286 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
10287 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
10289 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
10290 (__lll_timedwait_tid): Remove one unnecessary instruction.
10292 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
10293 __lll_mutex_timedlock_wait only for NOT_IN_libc.
10294 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
10297 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
10298 lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
10300 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
10303 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
10304 LOCK is already defined. Don't define __lll_mutex_timedlock_wait
10306 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
10307 define LOCK here (if UP is not defined). The actual code is in
10310 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
10311 LOCK is already defined. Don't define lll_unlock_wake_cb and
10312 __lll_timedwait_tid for libc.so.
10313 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
10314 define LOCK here (if UP is not defined). The actual code is in
10317 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
10318 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
10319 * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
10320 instead of lowlevelsem.h.
10321 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
10322 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
10323 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
10325 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
10326 lowlevelrwlock.sym.
10327 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
10328 * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
10329 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
10331 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
10333 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
10334 last changed. D'oh.
10336 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
10338 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
10339 of __libc_locking_needed.
10340 (lll_trylock): Initialize %eax to zero.
10342 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
10343 pthread_cond_t definition.
10345 2003-03-10 Roland McGrath <roland@redhat.com>
10347 * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
10348 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
10349 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
10350 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
10351 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
10353 * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
10354 Instead of setting PD->multiple_threads, set globals
10355 __pthread_multiple_threads and __libc_multiple_threads.
10356 * sysdeps/pthread/createthread.c (create_thread): Likewise.
10357 * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
10358 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
10360 * descr.h (struct pthread): Conditionalize first member on
10361 [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
10362 containing an anonymous tcbhead_t. Move `list' member out.
10363 [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
10364 * allocatestack.c: Remove use of `header.data.' prefix.
10365 * pthread_create.c: Likewise.
10366 * init.c (__pthread_initialize_minimal_internal): Likewise.
10367 * sysdeps/pthread/createthread.c (create_thread): Likewise.
10368 * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
10369 (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
10370 * sysdeps/x86_64/tls.h: Likewise.
10371 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
10372 (SINGLE_THREAD_P): Likewise.
10373 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
10374 (SINGLE_THREAD_P): Likewise.
10375 * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
10376 * sysdeps/s390/tls.h (tcbhead_t): Likewise.
10378 2003-03-09 Ulrich Drepper <drepper@redhat.com>
10380 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
10382 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
10383 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
10385 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
10386 leftovers from the ia32 code.
10388 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
10390 (clear_once_control): Don't load %esi.
10392 * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
10395 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
10397 * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
10398 * sysdeps/unix/sysv/linux/createthread.c: ...here.
10400 * Makefile (tests): Add tst-cond10.
10401 * tst-cond10.c: New file.
10403 2003-03-08 Ulrich Drepper <drepper@redhat.com>
10405 * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
10406 * tst-signal3.c (do_test): Likewise.
10407 * tst-sem5.c (do_test): Likewise.
10408 * tst-kill6.c (do_test): Likewise.
10409 * tst-tls3.c (do_test): Likewise. Include <errno.h>.
10411 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
10413 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
10414 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
10415 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
10416 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
10417 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10418 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
10419 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10421 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10423 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
10424 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
10425 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10426 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
10427 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
10428 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
10429 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
10430 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
10432 * allocatestack.c (allocate_stack): If mprotect() fails free the
10435 2003-03-07 Ulrich Drepper <drepper@redhat.com>
10437 * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
10439 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
10440 lll_wake_tid. This was used only to work around kernel limits in
10442 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
10443 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
10444 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
10445 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
10447 * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
10448 (__pthread_initialize_minimal_internal): Change initialization of
10449 __static_tls_align_m1 appropriately.
10450 * pthreadP.h (__static_tls_align_m1): Renamed from
10451 __static_tls_align.
10452 * allocatestack.c (allocate_stack): Use __static_tls_align_m1
10453 instead of __static_tls_align-1.
10455 2003-03-04 Ulrich Drepper <drepper@redhat.com>
10457 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
10459 * pthread_create.c: Define __pthread_keys using nocommon
10460 attribute, not by placing it explicitly in bss.
10461 Remove DEFINE_DEALLOC definition. Not needed anymore.
10463 * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
10464 Use it in mmap call to allocate stacks.
10466 * sysdeps/pthread/createthread.c (create_thread): Fix comment.
10468 * pthread_create.c (start_thread): Use THREAD_SETMEM to store
10469 result of the thread function.
10471 2003-03-03 Ulrich Drepper <drepper@redhat.com>
10473 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
10474 version is just fine.
10476 * sysdeps/unix/sysv/linux/libc_pthread_init.c
10477 (__pthread_child_handler): Renamed from pthread_child_handler,
10478 exported, and marked hidden. Change all users.
10479 * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
10480 free __pthread_child_handler from child list.
10482 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
10484 * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
10486 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
10487 Fix handling of cancellation and failing pthread_mutex_unlock call.
10488 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
10489 (__pthread_cond_wait): Likewise.
10491 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
10492 (pthread_rwlock_timedrdlock): Fix clobber of result variable by
10493 lll_futex_timed_wait call.
10494 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
10495 (pthread_rwlock_timedwrlock): Likewise.
10497 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
10498 Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
10499 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
10501 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
10502 check of lll_futex_wake return value.
10504 2003-03-03 Roland McGrath <roland@redhat.com>
10506 * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
10508 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
10509 Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
10510 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
10512 2003-03-02 Ulrich Drepper <drepper@redhat.com>
10514 * sysdeps/pthread/timer_create.c (timer_create): Return correct
10515 error for CPU clocks.
10517 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
10518 _POSIX_MONOTONIC_CLOCK.
10519 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
10521 * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
10524 2003-03-01 Ulrich Drepper <drepper@redhat.com>
10526 * descr.h (struct pthread): Move cleanup field to the front.
10528 2003-03-01 Roland McGrath <roland@redhat.com>
10530 * sem_open.c (sem_open): Braino fix.
10532 2003-03-01 Ulrich Drepper <drepper@redhat.com>
10534 * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
10535 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
10536 __pthread_cleanup_pop functionality.
10537 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10539 * descr.h (struct pthread): Move tid field to the front now that
10542 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
10543 (__lll_mutex_timedlock_wait): Remove.
10544 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
10545 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
10546 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
10547 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
10548 (lll_unlock_wake_cb): Don't save and restore %esi.
10549 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
10551 (__lll_timedwait_tid): Add alignment.
10552 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
10553 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
10555 (__lll_timedwait_tid): Removed.
10556 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
10557 (__pthread_cond_broadcast): Don't save, load, and restore %esi.
10558 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
10559 (pthread_barrier_wait): Don't save, load, and restore %esi for
10561 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
10562 (__pthread_cond_signal): Don't save, load, and restore %esi.
10563 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
10564 (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
10565 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
10566 Don't save, load, and restore %esi.
10568 2003-02-27 Ulrich Drepper <drepper@redhat.com>
10570 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10571 Release lock before waking up the waiters.
10573 * tst-exit1.c (do_test): Don't start more than one thread in parallel.
10575 * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
10576 (reader_thread): Likewise.
10578 * sysdeps/pthread/pthread_rwlock_unlock.c
10579 (__pthread_rwlock_unlock): Release internal lock early. Don't try
10580 to wake up readers if there are none.
10582 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
10583 Release internal lock before wake threads.
10585 2003-02-26 Ulrich Drepper <drepper@redhat.com>
10587 * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
10588 * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
10590 * tst-rwlock9.c: Likewise.
10591 * tst-rwlock10.c: New file.
10592 * tst-rwlock11.c: New file.
10594 * Makefile (tests): Add tst-dlsym1.
10595 * tst-dlsym1.c: New file.
10597 * init.c (__pthread_initialize_minimal_internal): Set
10598 GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
10599 * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
10601 2003-02-24 Ulrich Drepper <drepper@redhat.com>
10603 * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
10605 * tst-cond2.c: Fix sychronization with child.
10607 * tst-rwlock8.c (reader_thread): Remove unused variable.
10609 * Makefile: Add rules to build and run tst-tls3.
10610 * tst-tls3.c: New file.
10611 * tst-tls3mod.c: New file.
10613 * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
10614 * tst-rwlock8.c: New file.
10615 * tst-rwlock9.c: New file.
10616 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
10617 complete broken rwlock implementation.
10618 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10620 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10622 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
10623 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10624 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
10625 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
10626 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
10627 * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
10628 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
10630 2003-02-23 Roland McGrath <roland@redhat.com>
10632 * Makefile (nptl-version): Change regexp so case sensitivity is ok.
10634 2003-02-23 Ulrich Drepper <drepper@redhat.com>
10636 * Makefile (tests): Add tst-context1.
10637 * tst-context1.c: New file.
10639 * Makefile (tests): Add tst-tls1 and tst-tls2.
10640 * tst-tls1.c: New file.
10641 * tst-tls2.c: New file.
10643 * libc-cancellation.c (__libc_enable_asynccancel): Correct test
10644 for failed cmpxchg.
10646 * pthread_create.c (start_thread): Set EXITING_BIT early.
10648 * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
10649 (THREAD_GETMEM_NC): Likewise.
10651 2003-02-22 Ulrich Drepper <drepper@redhat.com>
10653 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
10654 off 3 more bytes by using offset-less instructions when possible.
10656 * Makefile: Add dependency for $(objpfx)version.d.
10658 * eintr.c (eintr_source): Add unnecessary return but the compiler
10661 * tst-kill3.c: Include <unistd.h>.
10663 2003-02-21 Roland McGrath <roland@redhat.com>
10665 * pthread_create.c (start_thread): Call __libc_thread_freeres.
10667 2003-02-21 Ulrich Drepper <drepper@redhat.com>
10669 * Makefile (tests): Add tst-eintr1.
10670 (distribute): Add eintr.c.
10671 * tst-eintr1.c: New file.
10672 * eintr.c: New file.
10674 * pthread_cancel.c (pthread_cancel): Use tkill directly.
10676 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
10677 Disallow sending SIGCANCEL.
10679 * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
10680 tst-kill3, tst-kill4, tst-kill5, tst-kill6.
10681 * tst-kill1.c: New file.
10682 * tst-kill2.c: New file.
10683 * tst-kill3.c: New file.
10684 * tst-kill5.c: New file.
10685 * tst-kill6.c: New file.
10686 * tst-basic7.c: Renamed to...
10687 * tst-kill4.c: ...this.
10689 2003-02-21 Roland McGrath <roland@redhat.com>
10691 * Makefile (install-lib-ldscripts): New variable.
10693 2003-02-21 Ulrich Drepper <drepper@redhat.com>
10695 * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
10696 * pthread_cancel.c: Use INVALID_TD_P.
10697 * pthread_detach.c: Likewise.
10698 * pthread_getschedparam.c: Likewise.
10699 * pthread_setschedparam.c: Likewise.
10700 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
10701 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
10702 * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
10703 * pthread_timedjoin.c: Likewise.
10705 * tst-basic7.c: Include <signal.h>.
10707 * pthread_join.c (pthread_join): Limited checking for invalid
10709 * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
10711 2003-02-20 Ulrich Drepper <drepper@redhat.com>
10713 * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
10714 beginning of the loop. Clear the entire first block of TSD.
10715 * Makefile (tests): Add tst-key4.
10716 * tst-key4.c: New file.
10718 2003-02-18 Ulrich Drepper <drepper@redhat.com>
10720 * Makefile (tests): Add tst-basic7.
10721 * tst-basic7.c: New file.
10723 * pthread_create.c (deallocate_tsd): Mark as internal_function.
10724 Add some more __builtin_expect.
10726 * pthreadP.h: Define dummy version of DEBUGGING_P.
10728 2003-02-17 Ulrich Drepper <drepper@redhat.com>
10730 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
10731 _POSIX_THREAD_PRIORITY_SCHEDULING.
10732 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
10733 _XOPEN_REALTIME_THREADS.
10734 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
10736 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
10737 kernel returns EINVAL for PID <= 0, work around it.
10739 * Makefile (tests): Add tst-signal5.
10740 * tst-signal5.c: New file.
10742 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
10743 and LOGIN_NAME_MAX.
10745 * tst-cancel1.c (tf): Block all signals.
10747 * Makefile (tests): Add tst-basic6.
10748 * tst-basic6.c: New file.
10750 * tst-basic1.c: Add test for process ID.
10752 * Makefile (tests): Add tst-cancel10.
10753 * tst-cancel10.c: New file.
10755 * Makefile (tests): Add tst-signal4.
10756 * tst-signal4.c: New file.
10758 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
10759 __sigismember instead of sigismember. Add __builtin_expect.
10761 2003-02-16 Ulrich Drepper <drepper@redhat.com>
10763 * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
10764 pthread_setcancelstate, and pthread_rwlock_setpshared.
10766 * tst-cancel7.c (do_test): Make sure the pid file exists before
10767 canceling the thread.
10769 * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
10770 pthread_rwlock_timedrdlock tests.
10771 * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
10772 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10773 Check for invalid tv_nsec field.
10774 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10777 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
10778 recursive mutex of overflow.
10780 * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
10782 * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
10783 going into an endless loop.
10784 * Makefile (tests): Add tst-cancel9.
10785 * tst-cancel9.c: New file.
10787 * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
10789 2003-02-15 Ulrich Drepper <drepper@redhat.com>
10791 * tst-mutex5.c (do_test): Add more timedlock tests.
10793 * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
10794 * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
10796 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
10797 use INLINE_SYSCALL. Error number is returned, not -1.
10799 * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
10800 and __deallocate_stack with internal_function.
10801 * pthread_create.c: Adjust definitions appropriately.
10802 * allocatestack.c: Likewise.
10804 * pthread_join.c: Add one more __builtin_expect.
10805 * pthread_timedjoin.c: Likewise.
10807 * pthread_getspecific.c (__pthread_getspecific): Clear data->data
10808 not data of sequence number does not match.
10809 Add one __builtin_expect.
10811 * Makefile (tests): Add tst-clock1.
10812 * tst-clock1.c: New file.
10814 * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
10815 negative arguments.
10816 * Makefile (tests): Add tst-basic5.
10817 * tst-basic5.c: New file.
10819 2003-02-14 Ulrich Drepper <drepper@redhat.com>
10821 * Makefile (tests): Add tst-basic4.
10822 * tst-basic4.c: New file.
10824 * pthreadP.h: Add declaraction for __nptl_nthreads.
10825 * pthread_create.c: Define __nptl_nthreads
10826 (start_thread): Increment __nptl_nthreads at beginning. Decrement
10827 after thread is done. If then zero, call exit(0).
10828 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
10829 Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
10830 * init.c (pthread_functions): Initialize ptr_nthreads.
10831 * allocatestack.c (nptl_nthreads): Remove definition and all uses.
10832 (__reclaim_stacks): Decrement __nptl_nthreads.
10833 * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
10835 * Makefile (tests): Add tst-basic3.
10836 * tst-basic3.c: New file.
10838 * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
10839 after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
10840 * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
10841 * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
10842 if asynchronous canceling is enabled.
10843 * pthread_join.c (pthread_join): When recognizing circular joins,
10844 take into account the other thread might be already canceled.
10845 * Makefile (tests): Add tst-join5.
10846 * tst-join5.c: New file.
10848 * Makefile (tests): Add tst-join4.
10849 * tst-join4.c: New file.
10851 2003-02-13 Ulrich Drepper <drepper@redhat.com>
10853 * tst-cond4.c (main): Add test of pthread_attr_getpshared.
10855 2003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
10857 * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
10858 THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
10859 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
10861 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
10863 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
10864 error if lll_futex_wake failed.
10866 2003-02-13 Ulrich Drepper <drepper@redhat.com>
10868 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
10869 handling of cancellation and failung pthread_mutex_unlock call.
10870 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10871 * Makefile (tests): Add tst-cond8 and tst-cond9.
10872 * tst-cond8.c: New file.
10873 * tst-cond9.c: New file.
10875 * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
10877 * sysdeps/pthread/pthread.h: Add missing initializers. Protect
10878 non-standard initializers with __USE_GNU.
10880 * Makefile (tests): Add tst-cleanup3.
10881 * tst-cleanup3.c: New file.
10883 2003-02-12 Ulrich Drepper <drepper@redhat.com>
10885 * Makefile (tests): Add tst-attr1 and tst-attr2.
10886 * tst-attr1.c: New file.
10887 * tst-attr2.c: New file.
10889 * Makefile: Add rules to build and run tst-atfork2 test.
10890 * tst-atfork2.c: New file.
10891 * tst-atfork2mod.c: New file.
10893 * sysdeps/unix/sysv/linux/unregister-atfork.c
10894 (__unregister_atfork): Free the memory allocated for the handlers
10895 after removing them from the lists.
10897 * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
10900 * tst-atfork1.c (do_test): Wait for the child we forked.
10901 Report error in child.
10903 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
10905 * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
10907 2003-02-10 Ulrich Drepper <drepper@redhat.com>
10909 * Makefile (tests): Add tst-cancel8.
10910 * tst-cancel8.c: New file.
10912 * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
10913 clearing of control variable.
10914 * Makefile (tests): Add tst-once3 and tst-once4.
10915 * tst-once3.c: New file.
10916 * tst-once4.c: New file.
10918 2003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
10920 * sysdeps/sh/Makefile: New file.
10921 * sysdeps/sh/bits/atomic.h: New file.
10922 * sysdeps/sh/pthread_spin_init.c: New file.
10923 * sysdeps/sh/pthread_spin_lock.c: New file.
10924 * sysdeps/sh/pthread_spin_trylock.S: New file.
10925 * sysdeps/sh/pthread_spin_unlock.S: New file.
10926 * sysdeps/sh/pthreaddef.h: New file.
10927 * sysdeps/sh/tcb-offsets.sym: New file.
10928 * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
10929 * sysdeps/sh/tls.h: New file.
10930 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
10931 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
10932 * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
10933 * sysdeps/unix/sysv/linux/sh/fork.c: New file.
10934 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
10935 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
10936 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
10937 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
10938 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
10939 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
10940 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
10941 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
10942 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
10943 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
10944 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
10945 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
10946 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
10947 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
10948 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
10949 * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
10950 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
10951 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
10952 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
10953 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
10954 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
10955 * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
10956 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
10957 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
10958 * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
10959 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
10961 2003-02-08 Ulrich Drepper <drepper@redhat.com>
10963 * tst-cond2.c: Rearrange code to not rely on behavior undefined
10964 according to POSIX.
10966 * tst-basic2.c (do_test): Lock mutex before creating the thread.
10968 2003-02-07 Ulrich Drepper <drepper@redhat.com>
10970 * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
10971 (TLS_GET_FS): New #define.
10972 (TLS_SET_FS): New #define.
10973 Correct value of __NR_set_thread_area.
10975 * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
10977 2003-02-06 Ulrich Drepper <drepper@redhat.com>
10979 * Makefile (tests): Add tst-popen1.
10980 * tst-popen1.c: New file.
10982 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
10983 but inactive generalization.
10984 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10985 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
10986 Minor optimization, remove one instruction.
10987 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
10989 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
10991 * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
10993 2003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
10995 * init.c (__NR_set_tid_address): Add #ifdef for s390.
10996 * sysdeps/pthread/pthread_barrier_wait.c: New file.
10997 * sysdeps/pthread/pthread_cond_broadcast.c: New file.
10998 * sysdeps/pthread/pthread_cond_signal.c: New file.
10999 * sysdeps/pthread/pthread_cond_timedwait.c: New file.
11000 * sysdeps/pthread/pthread_cond_wait.c: New file.
11001 * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
11002 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
11003 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
11004 * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
11005 * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
11006 * sysdeps/s390/Makefile: New file.
11007 * sysdeps/s390/bits/atomic.h: New file.
11008 * sysdeps/s390/pthread_spin_init.c: New file.
11009 * sysdeps/s390/pthread_spin_lock.c: New file.
11010 * sysdeps/s390/pthread_spin_trylock.c: New file.
11011 * sysdeps/s390/pthread_spin_unlock.c: New file.
11012 * sysdeps/s390/pthreaddef.h: New file.
11013 * sysdeps/s390/tcb-offsets.sym: New file.
11014 * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
11015 * sysdeps/s390/tls.h: New file.
11016 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
11017 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
11018 * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
11019 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
11020 * sysdeps/unix/sysv/linux/s390/fork.c: New file.
11021 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
11022 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
11023 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
11024 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
11025 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
11026 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
11027 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
11028 * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
11029 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
11030 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
11031 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
11032 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
11033 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
11034 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
11035 * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
11036 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
11037 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
11038 * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
11040 2003-02-04 Ulrich Drepper <drepper@redhat.com>
11042 * atomic.h: Add a couple more default implementations.
11043 (atomic_compare_and_exchange_acq): Use
11044 __arch_compare_and_exchange_32_acq in return value definition. It
11046 (atomic_bit_set): Renamed from atomic_set_bit.
11047 Add missing atomic_ prefixes.
11049 * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
11050 thread library is available, use correct value to mark initialized
11053 2003-02-03 Ulrich Drepper <drepper@redhat.com>
11055 * allocatestack.c (allocate_stack): Use __getpagesize instead of
11056 __sysconf to determine pagesize.
11058 * pthread_create.c: Include <atomic.h>.
11059 * allocatestack.c (allocate_stack): Implement coloring of the
11060 allocated stack memory. Rename pagesize to pagesize_m1. It's the
11061 size minus one. Adjust users.
11062 * sysdeps/i386/i686/Makefile: New file.
11064 2003-02-02 Ulrich Drepper <drepper@redhat.com>
11066 * allocatestack.c: Improve comment throughout the file.
11068 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
11069 (__lll_lock_wait): Add branch prediction.
11070 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
11071 (__lll_lock_wait): Likewise.
11072 (lll_unlock_wake_cb): Removed.
11074 2003-01-31 Ulrich Drepper <drepper@redhat.com>
11076 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
11077 _POSIX_THREAD_PRIORITY_SCHEDULING.
11079 2003-01-30 Jakub Jelinek <jakub@redhat.com>
11081 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
11082 Fix return type of ptr___pthread_getspecific.
11084 2003-01-29 Ulrich Drepper <drepper@redhat.com>
11086 * Makefile (tests): Add tst-umask1.
11087 (tst-umask1-ARGS): Define.
11088 * tst-umask1.c: New file.
11090 2003-01-28 Ulrich Drepper <drepper@redhat.com>
11092 * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
11093 pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
11094 pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
11095 pthread_rwlock_unlock.
11096 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
11097 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
11098 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
11099 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
11100 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
11102 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
11103 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
11105 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
11106 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
11107 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
11109 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
11110 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
11112 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
11113 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
11114 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
11116 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
11117 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
11119 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
11121 * Makefile (libpthread-routines): Remove lowlevelcond and
11122 lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
11123 pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
11124 and pthread_cond_broadcast.
11125 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
11126 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
11127 * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
11128 * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
11129 * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
11130 * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
11131 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
11132 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
11133 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
11134 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
11135 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
11136 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
11137 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
11138 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
11139 * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
11140 * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
11141 * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
11142 * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
11143 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
11144 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
11145 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
11146 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
11147 * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
11148 * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
11149 * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
11150 * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
11151 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
11152 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
11153 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
11154 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
11155 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
11157 * sysdeps/unix/sysv/linux/i386/createthread.c: Define
11158 PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
11159 of the code is moved to ...
11160 * sysdeps/pthread/createthread.c: ...here. New file.
11162 2003-01-27 Ulrich Drepper <drepper@redhat.com>
11164 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
11165 (__new_sem_post): Clear %eax before returning.
11166 Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
11168 * Makefile (tests): Add tst-cleanup2.
11169 * tst-cleanup2.c: New file.
11171 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
11172 Interpret first parameter correctly.
11174 2003-01-17 Ulrich Drepper <drepper@redhat.com>
11176 * Makefile (headers): Add bits/semaphore.h.
11178 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11180 * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
11183 2003-01-14 Ulrich Drepper <drepper@redhat.com>
11185 * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
11186 must be used and mapping failed.
11187 Reported by Luke Elliott <luke.elliott@activfinancial.com>.
11189 * Makefile (CFLAGS-pthread_self.os): Define this, not
11190 CFLAGS-pthread_self.c.
11192 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11194 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
11195 lll_unlock_wake_cb.
11197 * Makefile (libpthread-routines): Add version. Add rules to build
11198 version.os and banner.h.
11199 * version.c: New file.
11201 2003-01-13 Jakub Jelinek <jakub@redhat.com>
11203 * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
11204 the alias unconditional.
11205 * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
11207 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11209 * Makefile (CFLAGS-pthread_self.c): New definition.
11211 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11213 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
11214 INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
11215 * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
11216 * init.c (__pthread_initialize_minimal_internal): Likewise.
11218 2003-01-07 Jakub Jelinek <jakub@redhat.com>
11220 * pthreadP.h (__pthread_cond_timedwait): Add prototype.
11222 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
11223 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
11224 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
11225 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
11226 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
11227 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
11229 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11231 * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
11232 * pt-system.c (LIBC_CANCEL_HANDLED): Add.
11233 * tst-cancel-wrappers.sh: Remove all exceptions.
11235 2003-01-05 Ulrich Drepper <drepper@redhat.com>
11237 * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
11238 features. Reported by Marijn Ros <marijn@mad.scientist.com>.
11240 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
11241 Use __libc_pthread_functions array if SHARED.
11243 * pthreadP.h: Move pthread_cond_2_0_t definition to...
11244 * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
11246 * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
11247 (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
11248 __libc_key_create, __libc_getspecific, __libc_setspecific): Use
11249 __libc_ptf_call instead of __libc_maybe_call.
11250 (PTF): New #define.
11251 (__libc_cleanup_region_start): Wrap function name with PTF call.
11252 (__libc_cleanup_region_end): Likewise.
11253 (__libc_cleanup_end): Likewise.
11255 * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
11256 * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
11257 * pthread_key_create.c: Add __pthread_key_create_internal alias.
11258 * pthreadP.h: Add prototypes.
11260 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
11261 __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
11262 __pthread_rwlock_unlock aliases.
11263 * pthreadP.h: Add prototypes for new aliases.
11265 * pthreadP.h (struct pthead_functions): Moved to...
11266 * sysdeps/pthread/pthread-functions.h: ...here. New file.
11267 * init.c (pthread_functions): Add initializers for new elements.
11269 * cleanup_defer.c: Add __pthread_cleanup_push_defer and
11270 __pthread_cleanup_pop_restore aliases.
11271 * pthreadP.h: Add prototypes.
11273 * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
11274 and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
11275 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
11276 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
11277 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
11278 * pthreadP.h: Adjust prototypes and callers.
11280 2003-01-04 Ulrich Drepper <drepper@redhat.com>
11282 * Makefile (tests): Add tst-cancel7.
11283 (tst-cancel7-ARGS): New variable.
11284 * tst-cancel7.c: New file.
11286 * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
11287 around gcc defficiencies.
11288 * old_pthread_cond_signal.c: Likewise.
11289 * old_pthread_cond_timedwait.c: Likewise.
11290 * old_pthread_cond_wait.c: Likewise.
11292 * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
11294 2003-01-03 Ulrich Drepper <drepper@redhat.com>
11296 * Makefile (tests): Add tst-cond7.
11297 * tst-cond7.c: New file.
11299 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
11300 (condvar_cleanup): Get condvar address from the right place.
11302 * atomic.h: Correct definitions of atomic_full_barrier,
11303 atomic_read_barrier, atomic_write_barrier.
11305 * old_pthread_cond_broadcast.c: Make memory allocate and initialization
11307 * old_pthread_cond_signal.c: Likewise.
11308 * old_pthread_cond_timedwait.c: Likewise.
11309 * old_pthread_cond_wait.c: Likewise.
11311 2003-01-03 Jakub Jelinek <jakub@redhat.com>
11313 * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
11315 2003-01-03 Ulrich Drepper <drepper@redhat.com>
11317 * pthreadP.h (pthread_cond_2_0_t): New type.
11318 (struct pthread_functions): Use new type for 2.0 condvar callbacks.
11319 Use new type for the 2.0 condvar function prototypes.
11320 * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
11321 * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
11323 * old_pthread_cond_destroy.c: Likewise.
11324 * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
11325 * old_pthread_cond_signal.c: Likewise.
11326 * old_pthread_cond_timedwait.c: Likewise.
11327 * old_pthread_cond_wait.c: Likewise.
11329 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
11330 (__pthread_cond_wait): Don't save cancellation mode and seq value
11333 * herrno.c (__h_errno_location): Don't define as weak.
11335 2003-01-02 Jakub Jelinek <jakub@redhat.com>
11337 * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
11338 pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
11339 and pthread_cond_wait.
11340 * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
11342 (__pthread_cond_broadcast_2_0): ... this.
11343 * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
11345 (__pthread_cond_destroy_2_0): ... this.
11346 * old_pthread_cond_init.c (__old_pthread_cond_init):
11348 (__pthread_cond_init_2_0): ... this.
11349 * old_pthread_cond_signal.c (__old_pthread_cond_signal):
11351 (__pthread_cond_signal_2_0): ... this.
11352 * old_pthread_cond_wait.c (__old_pthread_cond_wait):
11354 (__pthread_cond_wait_2_0): ... this.
11355 * pthread_cond_destroy.c: Include shlib-compat.h.
11356 (pthread_cond_destroy): Change strong_alias into versioned_symbol.
11357 * pthread_cond_init.c: Include shlib-compat.h.
11358 (pthread_cond_init): Change strong_alias into versioned_symbol.
11359 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
11360 fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
11362 (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
11363 __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
11364 __pthread_cond_wait_2_0): New prototypes.
11365 (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
11366 __old_pthread_cond_init, __old_pthread_cond_signal,
11367 __old_pthread_cond_wait): Removed.
11368 * init.c: Include shlib-compat.h.
11369 (pthread_functions): Guard ptr___pthread_attr_init_2_0
11370 initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
11371 Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
11372 ptr___pthread_cond_*_2_0 fields.
11373 * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
11374 pthread_cond_*@GLIBC_2.0 compatibility symbols.
11376 * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
11377 LIBC_SIGACTION was not yet defined.
11378 [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
11379 [!defined LIBC_SIGACTION] (__sigaction): New function and
11381 [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
11382 [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
11384 2003-01-02 Jakub Jelinek <jakub@redhat.com>
11386 * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
11388 2003-01-02 Ulrich Drepper <drepper@redhat.com>
11390 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
11391 New, larger type definition.
11392 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
11394 * Versions [libpthread]: Add definitions for new pthread_cond_*
11395 interfaces for version GLIBC_2.3.2.
11396 * pthread_cond_init.c: Update initialization for new type definition.
11397 * Makefile (libpthread-routines): Remove pthread_cond_wait,
11398 pthread_cond_timedwait, pthread_cond_signal, and
11399 pthread_cond_broadcast. Add old_pthread_cond_init,
11400 old_pthread_cond_destroy, old_pthread_cond_wait,
11401 old_pthread_cond_timedwait, old_pthread_cond_signal, and
11402 old_pthread_cond_broadcast.
11403 * old_pthread_cond_broadcast.c: New file.
11404 * old_pthread_cond_destroy.c: New file.
11405 * old_pthread_cond_init.c: New file.
11406 * old_pthread_cond_signal.c: New file.
11407 * old_pthread_cond_timedwait.c: New file.
11408 * old_pthread_cond_wait.c: New file.
11409 * pthreadP.h: Add prototypes for the compatibility interfaces.
11411 * pthread_cond_destroy.c: Don't include <errno.h>.
11413 2003-01-01 Ulrich Drepper <drepper@redhat.com>
11415 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
11416 unnecessary zero offset when addressing MUTEX.
11418 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11420 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
11422 * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
11423 for __register_atfork.
11425 2002-12-31 Jakub Jelinek <jakub@redhat.com>
11427 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
11428 instead of ASSEMBLER test macro.
11430 * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
11431 __libc_current_sigrtmax): Add libc_hidden_def.
11433 * sysdeps/pthread/list.h: Remove assert.h include.
11435 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11437 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
11438 __pthread_initialize_minimal_internal not
11439 __pthread_initialize_minimal.
11441 2002-12-30 Ulrich Drepper <drepper@redhat.com>
11443 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
11444 __pthread_initialize_minimal as hidden.
11446 * init.c (__pthread_initialize_minimal_internal): Don't mark as
11449 2002-12-31 Jakub Jelinek <jakub@redhat.com>
11451 * Makefile ($(inst_libdir)/libpthread.so): Depend on
11452 $(common-objpfx)format.lds, include that into the output script.
11454 (extra-B-pthread.so): Change linuxthreads/ into nptl/.
11456 2002-12-28 Andreas Jaeger <aj@suse.de>
11458 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
11459 nsec resolution changes.
11460 (xstat64_conv): Likewise.
11461 (xstat32_conv): Likewise.
11462 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
11463 struct kernel_stat.
11464 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
11465 structs stat and stat64.
11466 * time/time.h (__timespec_defined): Define for __USE_MISC.
11467 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
11469 2002-12-30 Jakub Jelinek <jakub@redhat.com>
11471 * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
11473 (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
11474 (pthread_exit): Use strong_alias to avoid warnings.
11475 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
11476 and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
11477 ptr___pthread_attr_init_2_*.
11478 * init.c (pthread_functions): Adjust.
11480 2002-12-29 Ulrich Drepper <drepper@redhat.com>
11482 * forward.c: Make all functions available by default again. It
11483 caused too much trouble.
11485 * pt-siglongjmp.c: Removed.
11487 2002-12-28 Jakub Jelinek <jakub@redhat.com>
11489 * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
11490 (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
11491 * sysdeps/i386/Makefile: New file.
11492 * sysdeps/i386/tcb-offsets.sym: New file.
11493 * sysdeps/pthread/tcb-offsets.h: New file.
11494 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
11495 Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
11497 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
11498 __register_atfork...
11499 (GLIBC_2.3.2): ...here.
11501 2002-12-28 Ulrich Drepper <drepper@redhat.com>
11503 * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
11504 pthread_attr_setstackaddr with __attribute_deprecated__.
11506 2002-12-27 Jakub Jelinek <jakub@redhat.com>
11508 * pt-system.c (system): Remove cancellation handling.
11509 * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
11510 cancellation routines.
11512 2002-12-28 Ulrich Drepper <drepper@redhat.com>
11514 * descr.h: Include <dl-sysdep.h>.
11515 (struct pthread): Move header.data.list to the back of the struct.
11516 * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
11517 (MULTIPLE_THREADS_OFFSET): Adjust offset.
11518 (SYSINFO_OFFSEET): Likewise.
11520 2002-12-27 Jakub Jelinek <jakub@redhat.com>
11522 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
11524 (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
11525 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
11526 DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
11527 (USE_DL_SYSINFO): Undef.
11529 2002-12-22 Jakub Jelinek <jakub@redhat.com>
11531 * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
11532 $(common-objpfx)libc.so.
11533 * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
11534 it is bigger than pipe buffer size even on arches with bigger
11536 (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
11538 2002-12-25 Ulrich Drepper <drepper@redhat.com>
11540 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
11541 correct errno access for case that USE___THREAD is not defined.
11543 2002-12-24 Ulrich Drepper <drepper@redhat.com>
11545 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
11546 Patch by Marijn Ros <marijn@mad.scientist.com>.
11548 2002-12-22 Roland McGrath <roland@redhat.com>
11550 * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
11552 2002-12-20 Ulrich Drepper <drepper@redhat.com>
11554 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
11556 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11558 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
11559 NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
11560 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
11562 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
11564 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
11565 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
11566 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
11567 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
11568 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
11569 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
11570 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
11571 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
11573 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
11575 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
11577 * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
11579 * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
11581 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
11582 that sysinfo is properly initialized.
11583 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
11584 to 1 only for ld.so.
11586 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
11587 RTLD_CORRECT_DYNAMIC_WEAK.
11589 2002-12-19 Jakub Jelinek <jakub@redhat.com>
11591 * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
11592 Use return 0 as 6th argument to FORWARD4.
11593 * pthread_equal.c: Include pthreadP.h instead of pthread.h.
11595 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11597 * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
11598 * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
11599 Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
11600 (INIT_SYSINFO): New #define.
11601 (TLS_TP_INIT): Use INIT_SYSINFO.
11602 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
11603 At test to make sure SYSINFO_OFFSET value is correct.
11604 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
11606 2002-12-18 Jakub Jelinek <jakub@redhat.com>
11608 * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
11609 * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
11610 * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
11611 [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
11612 __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
11613 __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
11614 __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
11616 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11618 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
11619 macro instead of using int $0x80 directly.
11621 * sysdeps/pthread/bits/stdio-lock.h: New file.
11622 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
11623 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
11624 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
11625 * Makefile (routines): Add libc-lowlevelmutex.
11627 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
11628 __i686.get_pc_thunk.dx.
11630 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11632 * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
11633 (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
11634 ($(objpfx)tst-cancel-wrappers.out): New rule.
11635 * tst-cancel-wrappers.sh: New test.
11636 * tst-locale1.c: Include signal.h.
11637 (uselocale): Test static linking of __libc_current_sigrt*.
11639 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11641 * Makefile (tests): Add tst-cancel6.
11642 * tst-cancel6.c: New file
11644 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11646 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
11647 Define meaningfully for assembler as well.
11648 * pthreadP.h (struct pthread_functions): Remove
11649 ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
11650 and ptr_pthread_attr_init_2_1 fields.
11651 * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
11652 and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
11653 * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
11654 (FORWARD3): Define using FORWARD4.
11655 (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
11657 * pt-system.c: Remove duplicate stdlib.h include.
11659 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11661 * sem_init.c: Define sem_init@GLIBC_2.0.
11662 * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
11663 * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
11665 * flockfile.c: Moved to...
11666 * sysdeps/pthread/flockfile.c: ...here. New file.
11667 * funlockfile.c: Moved to...
11668 * sysdeps/pthread/funlockfile.c: ...here. New file.
11669 * ftrylockfile.c: Moved to...
11670 * sysdeps/pthread/ftrylockfile.c: ...here. New file.
11672 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11674 * libc-cancellation.c: Guard both function with
11675 #if !defined NOT_IN_libc.
11676 * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
11677 automatically provided pthread wrappers.
11678 * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
11679 CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
11681 * pt-open.c: Removed.
11682 * pt-fcntl.c: Removed.
11683 * pt-fsync.c: Removed.
11684 * pt-lseek.c: Removed.
11685 * pt-msgrcv.c: Removed.
11686 * pt-msgsnd.c: Removed.
11687 * pt-msync.c: Removed.
11688 * pt-nanosleep.c: Removed.
11689 * pt-open64.c: Removed.
11690 * pt-pause.c: Removed.
11691 * pt-pread.c: Removed.
11692 * pt-pread64.c: Removed.
11693 * pt-pwrite.c: Removed.
11694 * pt-pwrite64.c: Removed.
11695 * pt-read.c: Removed.
11696 * pt-recv.c: Removed.
11697 * pt-recvfrom.c: Removed.
11698 * pt-recvmsg.c: Removed.
11699 * pt-send.c: Removed.
11700 * pt-sendto.c: Removed.
11701 * pt-sigtimedwait.c: Removed.
11702 * pt-sigwait.c: Removed.
11703 * pt-wait.c: Removed.
11704 * pt-waitpid.c: Removed.
11705 * pt-write.c: Removed.
11706 * pt-accept.c: Removed.
11707 * pt-close.c: Removed.
11708 * pt-connect.c: Removed.
11709 * pt-lseek64.c: Removed.
11710 * pt-sendmsg.c: Removed.
11711 * pt-tcdrain.c: Removed.
11713 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11715 * init.c (__pthread_initialize_minimal_internal): Renamed from
11716 __pthread_initialize_minimal. Make old name an alias. This
11717 converts a normal relocation into a relative relocation.
11719 * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
11721 * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
11722 readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
11723 * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
11724 pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
11725 pt-sigwaitinfo, pt-waitid, and pt-writev.
11726 * pt-creat.c: Removed.
11727 * pt-poll.c: Removed.
11728 * pt-pselect.c: Removed.
11729 * pt-readv.c: Removed.
11730 * pt-select.c: Removed.
11731 * pt-sigpause.c: Removed.
11732 * pt-sigsuspend.c: Removed.
11733 * pt-sigwaitinfo.c: Removed.
11734 * pt-waitid.c: Removed.
11735 * pt-writev.c: Removed.
11737 * init.c (pthread_functions): New variable.
11738 (__pthread_initialize_minimal): Pass pointer to pthread_functions
11739 (or NULL) to __libc_pthread_init.
11740 * forward.c: Rewrite to use __libc:pthread_functions array to get
11741 function addresses.
11742 * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
11744 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
11745 Take new parameter. Copy content of variable pointed to by it
11746 to __libc_pthread_init.
11748 * pthreadP.h (struct pthread_functions): New type.
11749 (__libc_pthread_init): Declare.
11751 * pthread_attr_destroy.c: Add namespace protected alias.
11752 * pthread_attr_getdetachstate.c: Likewise.
11753 * pthread_attr_getinheritsched.c: Likewise.
11754 * pthread_attr_getschedparam.c: Likewise.
11755 * pthread_attr_getschedpolicy.c: Likewise.
11756 * pthread_attr_getscope.c: Likewise.
11757 * pthread_attr_setdetachstate.c: Likewise.
11758 * pthread_attr_setinheritsched.c: Likewise.
11759 * pthread_attr_setschedparam.c: Likewise.
11760 * pthread_attr_setschedpolicy.c: Likewise.
11761 * pthread_attr_setscope.c: Likewise.
11762 * pthread_cond_broadcast.c: Likewise.
11763 * pthread_cond_destroy.c: Likewise.
11764 * pthread_cond_init.c: Likewise.
11765 * pthread_cond_signal.c: Likewise.
11766 * pthread_cond_wait.c: Likewise.
11767 * pthread_condattr_destroy.c: Likewise.
11768 * pthread_condattr_init.c: Likewise.
11769 * pthread_equal.c: Likewise.
11770 * pthread_exit.c: Likewise.
11771 * pthread_getschedparam.c: Likewise.
11772 * pthread_self.c: Likewise.
11773 * pthread_setcancelstate.c: Likewise.
11774 * pthread_setschedparam.c: Likewise.
11775 * pthread_mutex_destroy.c: Likewise.
11776 * pthread_mutex_init.c: Likewise.
11777 * pthreadP.h: Add prototypes for the aliases.
11779 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
11780 multiple_threads member in correct TCB to 1.
11782 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
11783 SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
11784 member of thread decriptor, otherwise return unconditionally 1.
11786 2002-12-14 Ulrich Drepper <drepper@redhat.com>
11788 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
11789 regular Linux version. Remove file.
11790 * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
11791 * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
11792 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
11793 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
11794 * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
11795 * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
11796 * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
11797 * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
11798 * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
11799 * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
11800 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
11801 * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
11802 * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
11803 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
11804 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
11805 * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
11806 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
11807 * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
11808 * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
11809 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
11810 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
11811 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
11812 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
11813 * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
11814 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
11815 * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
11816 * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
11817 * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
11818 * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
11819 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
11821 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11823 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
11824 * sysdeps/unix/sysv/linux/open.c: Removed.
11825 * sysdeps/unix/sysv/linux/fsync.c: Removed.
11826 * sysdeps/unix/sysv/linux/lseek.c: Removed.
11827 * sysdeps/unix/sysv/linux/msync.c: Removed.
11828 * sysdeps/unix/sysv/linux/read.c: Removed.
11829 * sysdeps/unix/sysv/linux/close.c: Removed.
11830 * sysdeps/unix/sysv/linux/creat.c: Removed.
11831 * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
11832 * sysdeps/unix/sysv/linux/pause.c: Removed.
11833 * sysdeps/unix/sysv/linux/select.c: Removed.
11834 * sysdeps/unix/sysv/linux/write.c: Removed.
11836 2002-12-14 Ulrich Drepper <drepper@redhat.com>
11838 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
11839 element in TCB to see whether locking is needed.
11841 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
11842 MULTIPLE_THREADS_OFFSET value is correct.
11844 * sysdeps/unix/sysv/linux/close.c: New file.
11845 * sysdeps/unix/sysv/linux/connect.S: New file.
11846 * sysdeps/unix/sysv/linux/creat.c: New file.
11847 * sysdeps/unix/sysv/linux/fsync.c: New file.
11848 * sysdeps/unix/sysv/linux/llseek.c: New file.
11849 * sysdeps/unix/sysv/linux/lseek.c: New file.
11850 * sysdeps/unix/sysv/linux/msgrcv.c: New file.
11851 * sysdeps/unix/sysv/linux/msgsnd.c: New file.
11852 * sysdeps/unix/sysv/linux/msync.c: New file.
11853 * sysdeps/unix/sysv/linux/nanosleep.c: New file.
11854 * sysdeps/unix/sysv/linux/open.c: New file.
11855 * sysdeps/unix/sysv/linux/open64.c: New file.
11856 * sysdeps/unix/sysv/linux/pause.c: New file.
11857 * sysdeps/unix/sysv/linux/poll.c: New file.
11858 * sysdeps/unix/sysv/linux/pread.c: New file.
11859 * sysdeps/unix/sysv/linux/pread64.c: New file.
11860 * sysdeps/unix/sysv/linux/pselect.c: New file.
11861 * sysdeps/unix/sysv/linux/pwrite.c: New file.
11862 * sysdeps/unix/sysv/linux/pwrite64.c: New file.
11863 * sysdeps/unix/sysv/linux/readv.c: New file.
11864 * sysdeps/unix/sysv/linux/recv.S: New file.
11865 * sysdeps/unix/sysv/linux/recvfrom.S: New file.
11866 * sysdeps/unix/sysv/linux/recvmsg.S: New file.
11867 * sysdeps/unix/sysv/linux/select.c: New file.
11868 * sysdeps/unix/sysv/linux/send.S: New file.
11869 * sysdeps/unix/sysv/linux/sendmsg.S: New file.
11870 * sysdeps/unix/sysv/linux/sendto.S: New file.
11871 * sysdeps/unix/sysv/linux/sigpause.c: New file.
11872 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
11873 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
11874 * sysdeps/unix/sysv/linux/sigwait.c: New file.
11875 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
11876 * sysdeps/unix/sysv/linux/system.c: New file.
11877 * sysdeps/unix/sysv/linux/tcdrain.c: New file.
11878 * sysdeps/unix/sysv/linux/wait.c: New file.
11879 * sysdeps/unix/sysv/linux/waitid.c: New file.
11880 * sysdeps/unix/sysv/linux/waitpid.c: New file.
11881 * sysdeps/unix/sysv/linux/writev.c: New file.
11882 * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
11884 * pt-readv.c: Fix comment.
11886 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11888 * tst-cleanup1.c: Include stdlib.h.
11890 * tst-cancel5.c: New test.
11891 * Makefile (tests): Add tst-cancel5.
11892 (tst-cancel5): Link against libc.so libpthread.so in that order.
11894 2002-12-13 Ulrich Drepper <drepper@redhat.com>
11896 * forward.c (test_loaded): Prevent recursive calls.
11898 * Makefile (routines): Add libc-cancellation.
11899 * libc-cancellation.c: New file.
11900 * descr.h (struct pthread): Add multiple_threads field.
11901 * allocatestack.c (allocate_stack): Initialize multiple_header field of
11902 new thread descriptor to 1.
11903 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
11904 Initialize multiple_thread field after successful thread creation.
11905 * cancellation.c (__do_cancel): Move to pthreadP.h.
11906 (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
11907 (__pthread_disable_asynccancel): Add internal_function attribute.
11908 * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
11909 * pthread_setcancelstate.c: Likewise.
11910 * pthread_setcanceltype.c: Likewise.
11911 * pthread_exit.c: Likewise.
11912 * pthreadP.h (CANCELLATION_P): Likewise.
11913 (__do_cancel): Define as static inline.
11914 (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
11915 (__libc_enable_asynccancel, __libc_disable_asynccancel): New
11917 * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
11918 fields. Define MULTIPLE_THREADS_OFFSET.
11919 * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
11921 * sysdeps/unix/sysv/linux/accept.S: New file.
11922 * sysdeps/unix/sysv/linux/read.c: New file.
11923 * sysdeps/unix/sysv/linux/write.c: New file.
11924 * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
11925 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
11926 initialization of __libc_locking_needed.
11927 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
11928 __libc_locking_needed, use multiple_threads field in TCB.
11929 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
11931 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11933 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
11935 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
11937 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
11938 access to __libc_locking_needed for PIC.
11940 2002-12-12 Jakub Jelinek <jakub@redhat.com>
11942 * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
11943 declare for libc.so.
11944 (__libc_lock_init, __libc_lock_init_recursive): Change into comma
11946 (__libc_lock_lock): Put into statement expression.
11947 (__libc_lock_unlock): Remove trailing semicolon.
11948 * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
11950 2002-12-12 Roland McGrath <roland@redhat.com>
11952 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
11953 "m" constraint to refer to __libc_locking_needed. Declare it here.
11955 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11957 * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
11958 * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
11959 Initialize __libc_locking_needed.
11960 * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
11961 instead of __register_pthread_fork_handler.
11962 * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
11963 * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
11964 fork-gen with libc_pthread_init.
11965 * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
11966 of __register_pthread_fork_handler.
11967 * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
11968 of __register_pthread_fork_handler.
11969 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
11970 __libc_locking_needed to determine whether lock prefix can be avoided.
11971 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
11973 2002-12-11 Ulrich Drepper <drepper@redhat.com>
11975 * Makefile (tests): Add tst-cleanup1.
11976 * tst-cleanup1.c: New file.
11977 * cancellation.c (__cleanup_thread): Removed.
11978 (__do_cancel): Remove call to __cleanup_thread.
11979 * pthreadP.h: Remove __cleanup_thread prorotype.
11981 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
11982 Remember function and argument even if cancellation handler
11983 function is not available.
11984 (__libc_cleanup_region_end): Execute registered function directly if
11985 pthread functions are not available.
11986 (__libc_cleanup_end): Likewise.
11988 * init.c (__pthread_initialize_minimal): Fix initialization in
11989 static lib by preventing gcc from being too clever.
11991 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11993 * init.c (__pthread_initialize_minimal): Remove unneccesary
11996 * Makefile (tests): We can run tst-locale2 now.
11998 2002-12-09 Ulrich Drepper <drepper@redhat.com>
12000 * Versions: Remove duplicated sigwait entry.
12002 2002-12-08 Ulrich Drepper <drepper@redhat.com>
12004 * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
12007 * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
12009 * pthreadP.h: Declare __pthread_enable_asynccancel and
12010 __pthread_disable_asynccancel.
12011 (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
12012 (CANCEL_RESET): Use __pthread_disable_asynccancel.
12013 * cancellation.c (__pthread_enable_asynccancel): New function.
12014 (__pthread_disable_asynccancel): New function.
12015 * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
12016 * pt-close.c: Likewise.
12017 * pt-connect.c: Likewise.
12018 * pt-creat.c: Likewise.
12019 * pt-fcntl.c: Likewise.
12020 * pt-fsync.c: Likewise.
12021 * pt-lseek.c: Likewise.
12022 * pt-lseek64.c: Likewise.
12023 * pt-msgrcv.c: Likewise.
12024 * pt-msgsnd.c: Likewise.
12025 * pt-msync.c: Likewise.
12026 * pt-nanosleep.c: Likewise.
12027 * pt-open.c: Likewise.
12028 * pt-open64.c: Likewise.
12029 * pt-pause.c: Likewise.
12030 * pt-poll.c: Likewise.
12031 * pt-pread.c: Likewise.
12032 * pt-pread64.c: Likewise.
12033 * pt-pselect.c: Likewise.
12034 * pt-pwrite.c: Likewise.
12035 * pt-pwrite64.c: Likewise.
12036 * pt-read.c: Likewise.
12037 * pt-readv.c: Likewise.
12038 * pt-recv.c: Likewise.
12039 * pt-recvfrom.c: Likewise.
12040 * pt-recvmsg.c: Likewise.
12041 * pt-select.c: Likewise.
12042 * pt-send.c: Likewise.
12043 * pt-sendmsg.c: Likewise.
12044 * pt-sendto.c: Likewise.
12045 * pt-sigpause.c: Likewise.
12046 * pt-sigsuspend.c: Likewise.
12047 * pt-sigtimedwait.c: Likewise.
12048 * pt-sigwait.c: Likewise.
12049 * pt-sigwaitinfo.c: Likewise.
12050 * pt-system.c: Likewise.
12051 * pt-tcdrain.c: Likewise.
12052 * pt-wait.c: Likewise.
12053 * pt-waitid.c: Likewise.
12054 * pt-waitpid.c: Likewise.
12055 * pt-write.c: Likewise.
12056 * pt-writev.c: Likewise.
12057 * pthread_join.c: Likewise.
12058 * pthread_timedjoin.c: Likewise.
12060 * pt-sigpause.c (sigsuspend): Call __sigsuspend.
12061 (__xpg_sigpause): New function.
12062 * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
12064 2002-12-07 Ulrich Drepper <drepper@redhat.com>
12066 * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
12068 * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
12069 _GI_pthread_cleanup_pop to pthreadP.h.
12071 * ftrylockfile.c: Use _IO_lock_trylock instead of
12072 pthread_mutex_trylock.
12074 * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
12075 (CANCEL_RESET): Likewise.
12076 (__pthread_setcanceltype_): Declare.
12077 (__pthread_mutex_lock_internal): Declare.
12078 (__pthread_mutex_unlock_internal): Declare.
12079 (__pthread_once_internal): Declare.
12080 (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
12081 (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
12083 * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
12084 and pthread_mutex_unlock.
12085 * pthread_cond_wait.c: Likewise.
12086 * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
12087 * pthread_mutex_unlock.c: Likewise.
12089 * pthread_setcanceltype.c: Add additional alias
12090 __pthread_setcanceltype.
12092 * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
12093 * sem_open.c (sem_open): Likewise.
12094 Use __libc_open, __libc_write, and __libc_close instead of
12095 open, write, and close respectively.
12097 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
12098 Rewrite as statement expression since it must return a value.
12100 * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
12101 * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
12104 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
12105 alias __pthread_once_internal.
12107 * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
12109 2002-12-06 Ulrich Drepper <drepper@redhat.com>
12111 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
12112 * tst-stdio1.c: New file.
12113 * tst-stdio2.c: New file.
12115 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
12117 * Makefile (tests): Comment out tst-locale2 for now.
12118 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
12120 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
12122 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
12123 Use _IO_lock_init instead of explicit assignment.
12125 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
12126 Define __libc_lock_* and __libc_lock_recursive macros with
12127 lowlevellock macros, not pthread mutexes.
12129 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
12130 of pthread_mutex_lock.
12131 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
12132 instead of pthread_mutex_unlock.
12134 2002-12-06 Roland McGrath <roland@redhat.com>
12136 * allocatestack.c (__stack_user): Use uninitialized defn.
12137 * init.c (__pthread_initialize_minimal): Initialize it here.
12139 2002-12-05 Roland McGrath <roland@redhat.com>
12141 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
12143 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
12145 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
12146 missing & here too.
12148 2002-12-05 Ulrich Drepper <drepper@redhat.com>
12150 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
12152 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
12153 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
12154 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
12155 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
12156 for __libc_lock_* macros.
12157 * Makefile (routines): Add libc-lowlevellock.
12159 2002-10-09 Roland McGrath <roland@redhat.com>
12161 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
12162 Under [__PIC__], call the function via the pointer fetched for
12163 comparison rather than a call by name that uses the PLT.
12164 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
12165 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
12166 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
12167 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
12168 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
12170 2002-12-04 Roland McGrath <roland@redhat.com>
12172 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
12174 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
12175 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
12177 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
12179 2002-12-04 Ulrich Drepper <drepper@redhat.com>
12181 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
12182 a completely opaque, non-integer type.
12183 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
12185 2002-12-05 Jakub Jelinek <jakub@redhat.com>
12187 * sysdeps/i386/tls.h: Include stdlib.h.
12188 * sysdeps/x86_64/tls.h: Likewise.
12190 2002-12-04 Ulrich Drepper <drepper@redhat.com>
12192 * Makefile (tests): Add tst-locale2.
12193 (tests-static): Likewise.
12194 * tst-locale2.c: New file.
12196 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
12197 volatile and add memory clobbers to lock operations.
12199 2002-12-03 Ulrich Drepper <drepper@redhat.com>
12201 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
12202 * sysdeps/i386/i486/bits/atomic.h: New file.
12203 * sysdeps/i386/i586/bits/atomic.h: New file.
12204 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
12205 include i486 version.
12206 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
12207 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
12208 Patch by Marijn Ros <marijn@mad.scientist.com>.
12210 * allocatestack.c (get_cached_stack): Don't crash if we first
12211 found a stack with a larger size then needed.
12212 Reported by Hui Huang <hui.huang@sun.com>.
12214 * Makefile (tests): Add tst-sysconf.
12215 * tst-sysconf.c: New file.
12217 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
12218 PTHREAD_THREADS_MAX.
12220 2002-12-02 Roland McGrath <roland@redhat.com>
12222 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
12223 Declare using hidden_proto instead of attribute_hidden, so there are
12224 non-.hidden static symbols for gdb to find.
12225 (__pthread_keys): Likewise.
12226 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
12227 * allocatestack.c (__stack_user): Likewise.
12228 * pthread_create.c (__pthread_keys): Likewise.
12229 (__nptl_threads_events, __nptl_last_event): Make these static instead
12231 * pthread_key_create.c (__pthread_pthread_keys_max,
12232 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
12234 2002-12-02 Ulrich Drepper <drepper@redhat.com>
12236 * Makefile (tests): Add tst-locale1. If buid-static is yes link
12238 * tst-locale1.c: New file.
12240 * pthread_cond_timedwait.c: Include <stdlib.h>.
12242 * Makefile (tests): Add tst-fork2 and tst-fork3.
12243 * tst-fork2.c: New file.
12244 * tst-fork3.c: New file.
12246 2002-11-28 Ulrich Drepper <drepper@redhat.com>
12248 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
12250 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
12251 require it to 200112L.
12253 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
12254 instruction only if HAVE_CMOV is defined.
12255 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
12257 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
12259 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
12261 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
12263 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
12265 2002-11-27 Ulrich Drepper <drepper@redhat.com>
12267 * sysdeps/x86_64/bits/atomic.h: New file.
12269 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
12272 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
12273 possible since gettid cannot fail.
12275 * sysdeps/x86_64/pthreaddef.h: New file.
12277 * sysdeps/i386/pthreaddef.h (gettid): Removed.
12279 * sysdeps/x86_64/pthread_spin_init.c: New file.
12280 * sysdeps/x86_64/pthread_spin_lock.c: New file.
12281 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
12282 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
12284 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
12285 Add missing lock prefix. Minute optimization.
12287 * tst-spin2.c (main): Also check successful trylock call.
12289 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
12290 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
12292 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
12293 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
12295 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
12296 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
12297 value in case of an error. Add support for INTERNAL_SYSCALL.
12299 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
12300 value in case of an error.
12302 * sysdeps/x86_64/tls.h: New file.
12304 2002-11-26 Ulrich Drepper <drepper@redhat.com>
12306 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
12307 takes the array member name and the index as parameters.
12308 (THREAD_SETMEM_NC): Likewise.
12309 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
12310 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
12313 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
12314 to decide which code to use.
12315 (THREAD_SETMEM_NC): Likewise.
12317 * allocatestack.c (queue_stack): Don't remove stack from list here.
12318 Do it in the caller. Correct condition to prematurely terminate
12319 loop to free stacks.
12320 (__deallocate_stack): Remove stack from list here.
12322 2002-11-26 Ulrich Drepper <drepper@redhat.com>
12324 * Makefile (tests): Add tst-stack1.
12325 * tst-stack1.c: New file.
12327 * allocatestack.c (allocate_stack): Initialize the TCB on a user
12330 * pthread_attr_getstack.c: Return bottom of the thread area.
12332 2002-11-25 Ulrich Drepper <drepper@redhat.com>
12334 * Makefile (libpthread-routines): Add pt-allocrtsig and
12335 pthread_kill_other_threads.
12336 * pt-allocrtsig.c: New file.
12337 * pthread_kill_other_threads.c: New file.
12338 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
12339 all three functions.
12340 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
12342 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
12343 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
12344 and __libc_allocate_rtsig_private.
12345 * Versions (libpthread): Export pthread_kill_other_threads_np,
12346 __libc_current_sigrtmin, and __libc_current_sigrtmax.
12348 2002-11-24 Ulrich Drepper <drepper@redhat.com>
12350 * allocatestack.c (allocate_stack): stackaddr in attribute points to
12351 the end of the stack. Adjust computations.
12352 When mprotect call fails dequeue stack and free it.
12353 * pthread_attr_setstack.c: Store top of the stack in stackaddr
12355 * pthread_getattr_np.c: Likewise.
12357 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
12360 2002-11-23 Ulrich Drepper <drepper@redhat.com>
12362 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
12363 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
12365 2002-11-22 Ulrich Drepper <drepper@redhat.com>
12367 * pthread_getspecific.c: Optimize access to first 2nd-level array.
12368 * pthread_setspecific.c: Likewise.
12370 2002-11-21 Ulrich Drepper <drepper@redhat.com>
12372 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
12373 definitions. Get them from the official place.
12374 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
12376 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
12377 Use new CLONE_ flags in clone() calls.
12379 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
12380 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
12382 * Versions: Add pthread_* functions for libc.
12383 * forward.c: New file.
12385 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
12387 * herrno.c: New file.
12390 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
12391 sem_trywait, and sem_timedwait. Add herrno and res.
12392 * sem_init.c: Don't initialize lock and waiters members.
12393 * sem_open.c: Likewise.
12394 * sem_post.c: Removed.
12395 * sem_wait.c: Removed.
12396 * sem_trywait.c: Removed.
12397 * sem_timedwait.c: Removed.
12398 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
12399 Includes full implementations of sem_post, sem_wait, sem_trywait,
12401 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
12402 for new implementation.
12403 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
12404 and waiters fields.
12406 * tst-sem3.c: Improve error message.
12407 * tst-signal3.c: Likewise.
12409 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
12410 to tell the kernel about the termination futex and to initialize tid
12411 member. Don't initialize main_thread.
12412 * descr.h (struct pthread): Remove main_thread member.
12413 * cancelllation.c (__do_cancel): Remove code handling main thread.
12414 The main thread is not special anymore.
12416 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
12417 size of the stacks to stack_cache_actsize.
12419 * pt-readv.c: Add missing "defined".
12420 * pt-sigwait.c: Likewise.
12421 * pt-writev.c: Likewise.
12423 2002-11-09 Ulrich Drepper <drepper@redhat.com>
12425 * Versions: Export __connect from libpthread.
12426 Patch by Luca Barbieri <ldb@ldb.ods.org>.
12428 * Makefile (libpthread-routines): Add pt-raise.
12429 * sysdeps/unix/sysv/linux/raise.c: New file.
12430 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
12431 * sysdeps/generic/pt-raise.c: New file.
12433 * pthread_cond_init.c: Initialize all data elements of the condvar
12434 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
12436 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
12437 * pthread_create.c: Likewise.
12439 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
12440 * tst-key1.c: New file.
12441 * tst-key2.c: New file.
12442 * tst-key3.c: New file.
12444 * Versions: Export pthread_detach for version GLIBC_2.0.
12445 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
12447 2002-11-08 Ulrich Drepper <drepper@redhat.com>
12449 * pthread_key_create.c: Terminate search after an unused key was found.
12450 Patch by Luca Barbieri <ldb@ldb.ods.org>.
12452 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
12453 Patch by Luca Barbieri <ldb@ldb.ods.org>.
12455 2002-10-10 Ulrich Drepper <drepper@redhat.com>
12457 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
12458 dynamic lookup for errno in PIC.
12460 * allocatestack.c (get_cached_stack): Rearrange code slightly to
12461 release the stack lock as soon as possible.
12462 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
12463 the static TLS block.
12464 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
12466 * cancellation.c: Renamed from cancelation.c.
12467 * Makefile: Adjust accordingly.
12468 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
12469 * cleanup_defer.c: Use CANCELLATION_P.
12470 * pthread_testcancel.c: Likewise.
12471 * descr.h: Fix spelling in comments.
12472 * init.c: Likewise.
12473 * pthread_getattr_np.c: Likewise.
12474 * pthread_getschedparam.c: Likewise.
12475 * pthread_setschedparam.c: Likewise.
12476 * Versions: Likewise.
12478 * pt-pselect.c: New file.
12479 * Makefile (libpthread-routines): Add pt-pselect.
12480 * Versions: Add pselect.
12482 * tst-cancel4.c: New file.
12483 * Makefile (tests): Add tst-cancel4.
12485 2002-10-09 Ulrich Drepper <drepper@redhat.com>
12487 * pthread_mutex_lock.c: Always record lock ownership.
12488 * pthread_mutex_timedlock.c: Likewise.
12489 * pthread_mutex_trylock.c: Likewise.
12491 * pt-readv.c: New file.
12492 * pt-writev.c: New file.
12493 * pt-creat.c: New file.
12494 * pt-msgrcv.c: New file.
12495 * pt-msgsnd.c: New file.
12496 * pt-poll.c: New file.
12497 * pt-select.c: New file.
12498 * pt-sigpause.c: New file.
12499 * pt-sigsuspend.c: New file.
12500 * pt-sigwait.c: New file.
12501 * pt-sigwaitinfo.c: New file.
12502 * pt-waitid.c: New file.
12503 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
12504 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
12505 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
12506 * Versions: Add all the new functions.
12508 * tst-exit1.c: New file.
12509 * Makefile (tests): Add tst-exit1.
12511 * sem_timedwait.c: Minor optimization for more optimal fastpath.
12513 2002-10-08 Ulrich Drepper <drepper@redhat.com>
12515 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
12517 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
12518 call. pthread_join is an official cancellation point.
12519 * pthread_timedjoin.c: Likewise.
12521 * pthread_cond_wait.c: Revert order in which internal lock are dropped
12522 and the condvar's mutex are retrieved.
12523 * pthread_cond_timedwait.c: Likewise.
12524 Reported by dice@saros.East.Sun.COM.
12526 2002-10-07 Ulrich Drepper <drepper@redhat.com>
12528 * pthreadP.h: Cut out all type definitions and move them...
12529 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
12530 * pthreadP.h: Include <internaltypes.h>.
12532 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
12533 performance tweaks.
12535 * sem_trywait.c: Shuffle #includes around to get right order.
12536 * sem_timedwait.c: Likewise.
12537 * sem_post.c: Likewise.
12538 * sem_wait.c: Likewise.
12540 * nptl 0.3 released.
12542 * Makefile (tests): Add tst-signal3.
12543 * tst-signal3.c: New file.
12545 2002-10-05 Ulrich Drepper <drepper@redhat.com>
12547 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
12548 the asms modify the sem object.
12549 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
12551 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
12552 the actual members.
12553 * pthreadP.h (struct sem): New type. Actual semaphore type.
12554 * semaphoreP.h: Include pthreadP.h.
12555 * sem_getvalue.c: Adjust to sem_t change.
12556 * sem_init.c: Likewise.
12557 * sem_open.c: Likewise.
12558 * sem_post.c: Likewise.
12559 * sem_timedwait.c: Likewise.
12560 * sem_trywait.c: Likewise.
12561 * sem_wait.c: Likewise.
12563 2002-10-04 Ulrich Drepper <drepper@redhat.com>
12565 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
12566 * tst-basic2.c: New file.
12567 * tst-exec1.c: New file.
12568 * tst-exec2.c: New file.
12569 * tst-exec3.c: New file.
12571 * tst-fork1.c: Remove extra */.
12573 * nptl 0.2 released. The API for IA-32 is complete.