1 2011-12-12 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
3 * sysdeps/powerpc/tls.h (struct tcbhead_t): Add DSO and TAR fields.
4 * nptl/sysdeps/powerpc/tcb-offsets.sym: Likewise.
6 2013-12-09 Carlos O'Donell <carlos@redhat.com>
8 * sysdeps/unix/sysv/linux/tst-setgetname.c: New file.
9 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-setgetname.
11 2013-12-09 Andreas Schwab <schwab@suse.de>
14 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
15 (__pthread_cond_timedwait): Remove wrong cfi_adjust_cfa_offset
16 before __condvar_tw_cleanup2 label.
18 2013-12-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
21 (CANCEL_FRAMESIZE, CANCEL_PARM_SAVE): New macros to save parameters
22 into our own stack frame instead of the caller's.
23 (PSEUDO): Use them. Use symbolic stack frame offsets.
24 (DOCARGS_1, UNDOCARGS_1): Use CANCEL_PARM_SAVE.
25 (DOCARGS_2, UNDOCARGS_2): Likewise.
26 (DOCARGS_3, UNDOCARGS_3): Likewise.
27 (DOCARGS_4, UNDOCARGS_4): Likewise.
28 (DOCARGS_5, UNDOCARGS_5): Likewise.
29 (DOCARGS_6, UNDOCARGS_6): Likewise.
31 2013-11-26 Ondřej Bílka <neleai@seznam.cz>
33 * sysdeps/i386/tls.h: Use __glibc_reserved instead __unused.
34 * sysdeps/x86_64/tls.h: Likewise.
36 2013-11-25 Paul Pluzhnikov <ppluzhnikov@google.com>
39 * Makefile (tst-getpid2-ENV): New variable.
41 2013-11-20 Paul Pluzhnikov <ppluzhnikov@google.com>
43 * Makefile (tst-cleanup2, tst-cleanupx2): Add -fno-builtin
45 2013-10-30 Mike Frysinger <vapier@gentoo.org>
47 * sysdeps/pthread/configure.in: Moved to ...
48 * sysdeps/pthread/configure.ac: ... here.
49 * sysdeps/x86_64/configure.in: Moved to ...
50 * sysdeps/x86_64/configure.ac: ... here.
51 * sysdeps/pthread/configure: Regenerated.
52 * sysdeps/x86_64/configure: Likewise.
54 2013-10-04 Maciej W. Rozycki <macro@codesourcery.com>
56 * tst-mutex8.c (check_type) [ENABLE_PI]: Handle ENOTSUP failure
57 from pthread_mutex_init.
59 2013-10-01 Siddhesh Poyarekar <siddhesh@redhat.com>
62 * pthread_cond_broadcast.c (__pthread_cond_broadcast)
63 [lll_futex_cmp_requeue_pi && __ASSUME_REQUEUE_PI]: Use
65 * pthread_cond_signal.c (__pthread_cond_signal)
66 [lll_futex_cmd_requeue_pi && __ASSUME_REQUEUE_PI]: Likewise.
68 2013-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
70 * sysdeps/pthread/bits/libc-lock.h [_LIBC && (!NOT_IN_libc ||
71 IS_IN_libpthread)] (__libc_lock_fini_recursive): Use the mutex
72 member of the argument.
73 (__libc_lock_trylock_recursive): Likewise.
74 (__libc_lock_unlock_recursive): Likewise.
76 2013-09-04 Joseph Myers <joseph@codesourcery.com>
78 * sysdeps/unix/sysv/linux/x86_64/cancellation.S
79 [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
80 [SHARED && !NO_HIDDEN].
82 2013-09-03 Siddhesh Poyarekar <siddhesh@redhat.com>
85 * tst-cleanup2.c (do_test): New volatile variable RET to
88 2013-08-30 Ondřej Bílka <neleai@seznam.cz>
90 * sysdeps/pthread/pthread.h: Fix typos.
91 * sysdeps/unix/sysv/linux/internaltypes.h: Likewise.
92 * tst-cancel4.c: Likewise.
94 2013-08-21 Ondřej Bílka <neleai@seznam.cz>
96 * pthread_getschedparam.c: Fix typos.
97 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
99 2013-07-23 David S. Miller <davem@davemloft.net>
101 * tst-cancel4.c (WRITE_BUFFER_SIZE): Adjust comment.
103 2013-07-22 David S. Miller <davem@davemloft.net>
105 * tst-cancel4.c (WRITE_BUFFER_SIZE): Increase to 16384.
107 2013-07-19 Dominik Vogt <vogt@de.ibm.com>
109 * pthread_mutex_lock.c: Fix whitespace.
110 * pthread_mutex_trylock.c: Likewise.
111 * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Likewise.
112 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
113 * sysdeps/unix/sysv/linux/x86/elision-conf.h: Likewise.
114 * sysdeps/unix/sysv/linux/x86/elision-lock.c: Likewise.
115 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
116 * sysdeps/unix/sysv/linux/x86/elision-trylock.c: Likewise.
117 * sysdeps/unix/sysv/linux/x86/force-elision.h: Likewise.
118 * sysdeps/unix/sysv/linux/x86/hle.h: Likewise.
119 * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
120 * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Likewise.
121 * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Likewise.
122 * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Likewise.
124 * sysdeps/unix/sysv/linux/x86/elision-conf.c:
125 Remove __rwlock_rtm_enabled and __rwlock_rtm_read_retries.
126 (elision_init): Don't set __rwlock_rtm_enabled.
127 * sysdeps/unix/sysv/linux/x86/elision-conf.h:
128 Remove __rwlock_rtm_enabled.
130 2013-07-03 H.J. Lu <hongjiu.lu@intel.com>
132 * sysdeps/unix/sysv/linux/x86/init-arch.c: New file.
133 * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
135 2013-07-02 Andi Kleen <ak@linux.intel.com>
137 * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
138 Check ENABLE_LOCK_ELISION.
140 2013-07-02 Andi Kleen <ak@linux.intel.com>
142 * pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
143 Disable elision for PTHREAD_MUTEX_DEFAULT.
145 2013-07-02 Andi Kleen <ak@linux.intel.com>
146 Hongjiu Lu <hongjiu.lu@intel.com>
148 * pthread_mutex_lock.c
149 (__pthread_mutex_lock): Add lock elision support.
150 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
151 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
152 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
153 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
154 * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Likewise.
155 * sysdeps/unix/sysv/linux/x86/Makefile: New file.
156 * sysdeps/unix/sysv/linux/x86/force-elision.h: New file
157 * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
158 * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Likewise.
159 * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Likewise.
160 * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Likewise.
161 * sysdeps/unix/sysv/linux/x86/pthread_mutex_unlock.c: Likewise.
163 2013-07-02 Andi Kleen <ak@linux.intel.com>
165 * tst-mutex5.c: Include config.h.
166 (do_test): Add checks for ENABLE_LOCK_ELISION.
167 * tst-mutex8.c: Include config.h
168 (tf): Add checks for ENABLE_LOCK_ELISION.
169 (check_type): Likewise.
171 2013-07-02 Andi Kleen <ak@linux.intel.com>
173 * pthreadP.h: Add elision types.
174 (PTHREAD_MUTEX_TYPE_ELISION): Add.
175 * sysdeps/pthread/pthread.h: Add elision initializers.
176 (PTHREAD_MUTEX_ELISION_NP, PTHREAD_MUTEX_NO_ELISION_NP,
177 PTHREAD_MUTEX_PSHARED_NP): Add new flags.
178 (__PTHREAD_SPINS): Add.
180 2013-07-02 Andi Kleen <ak@linux.intel.com>
181 Hongjiu Lu <hongjiu.lu@intel.com>
183 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid,
184 lll_timedlock_elision, __lll_lock_elision, __lll_unlock_elision,
185 __lll_trylock_elision, lll_lock_elision, lll_unlock_elision,
186 lll_trylock_elision): Add.
187 * sysdeps/unix/sysv/linux/x86/Makefile: Imply x86.
188 * sysdeps/unix/sysv/linux/x86/elision-conf.c: New file.
189 * sysdeps/unix/sysv/linux/x86/elision-conf.h: New file.
190 * sysdeps/unix/sysv/linux/x86/elision-lock.c: New file.
191 * sysdeps/unix/sysv/linux/x86/elision-timed.c: New file.
192 * sysdeps/unix/sysv/linux/x86/elision-trylock.c: New file.
193 * sysdeps/unix/sysv/linux/x86/elision-unlock.c: New file.
194 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid,
195 lll_timedlock_elision, __lll_lock_elision, __lll_unlock_elision,
196 __lll_trylock_elision, lll_lock_elision, lll_unlock_elision,
197 lll_trylock_elision): Add.
198 * nptl/sysdeps/unix/sysv/linux/x86/hle.h: New file.
199 * elision-conf.h: New file.
201 2013-06-24 Vladimir Nikulichev <v.nikulichev@gmail.com>
204 * pthread_exit.c: Add reference to pthread_create.
206 2013-06-22 Joseph Myers <joseph@codesourcery.com>
208 * pthread_getattr_default_np.c: Include <string.h>.
210 2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com>
212 * Versions (libpthread): Add GLIBC_2.18.
213 (GLIBC_2.18): Add pthread_setattr_default_np and
214 pthread_getattr_default_np.
215 * allocatestack.c (allocate_stack): Synchronize read from
216 __default_pthread_attr.
217 (__reclaim_stacks): Initialize __default_pthread_attr_lock.
218 * nptl-init.c (__pthread_initialize_minimal_internal):
219 Synchronize write to __default_pthread_attr.
220 * pthreadP.h (__default_pthread_attr_lock): Declare.
221 * pthread_attr_getstacksize (__pthread_attr_getstacksize):
222 Synchronize read from __default_pthread_attr.
223 * pthread_create.c (__pthread_create_2_1): Make a local copy of
224 __default_pthread_attr. Check value of flags in IATTR even if
226 * pthread_getattr_default_np.c: New file.
227 * pthread_setattr_default_np.c: New file.
228 * sysdeps/pthread/pthread.h [__USE_GNU]
229 (pthread_getattr_default_np, pthread_setattr_default_np):
231 * tst-default-attr.c: New test case.
232 * Makefile (libpthread-routines): Add
233 pthread_setattr_default_np and pthread_getattr_default_np.
234 (tests): Add tst-default-attr.
235 * vars.c (__default_pthread_attr_lock): Declare and initialize.
237 2013-06-13 Siddhesh Poyarekar <siddhesh@redhat.com>
238 Carlos O'Donell <carlos@redhat.com>
241 * tst-pthread-attr-affinity: New test case.
242 * Makefile (tests): Add it.
243 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
244 (__pthread_attr_getaffinity_new): Copy minimum of source and
245 destination sizes to avoid a buffer overrun.
247 2013-06-10 Carlos O'Donell <carlos@redhat.com>
249 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
250 (lll_futex_wake): Return syscall error.
251 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
252 (lll_futex_wake): Return syscall error.
254 2013-08-06 Ondřej Bílka <neleai@seznam.cz>
256 * sysdeps/pthread/allocalim.h: (__libc_use_alloca): Fix warning.
258 2013-06-06 Ondřej Bílka <neleai@seznam.cz>
260 * tst-cond22.c: Fix leading whitespaces.
261 * tst-umask1.c: Likewise.
263 2013-06-06 Joseph Myers <joseph@codesourcery.com>
265 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Remove
267 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
268 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
269 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
270 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
271 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
272 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
273 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
274 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Likewise.
275 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
276 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
277 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
278 * tst-mutexpp10.c: Likewise.
279 * tst-stackguard1.c: Likewise.
281 2013-05-31 Joseph Myers <joseph@codesourcery.com>
283 * Makefile ($(objpfx)libpthread.so): Remove dependencies on libc
286 2013-05-16 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
288 * pthread_create.c: Add missing #include <stdint.h> due to uint64_t or
290 * sysdeps/pthread/createthread.c: Likewise.
292 2013-05-14 Andreas Jaeger <aj@suse.de>
295 * sysdeps/x86_64/tls.h (struct tcbhead_t): Add __private_ss field.
296 * sysdeps/i386/tls.h (struct tcbhead_t): Likewise.
298 2013-05-09 Andi Kleen <ak@linux.intel.com>
300 * tst-mutex8.c (do_test): Check for ENABLE_PI.
302 2013-04-22 Siddhesh Poyarekar <siddhesh@redhat.com>
304 * pthreadP.h (check_sched_policy_attr): New inline function.
305 (check_sched_priority_attr): Likewise.
306 (check_stacksize_attr): Likewise.
307 (__kernel_cpumask_size, __determine_cpumask_size): Declare
309 (check_cpuset_attr): New inline function.
310 * pthread_attr_setschedparam (__pthread_attr_setschedparam):
311 Use check_sched_priority_attr.
312 * pthread_attr_setschedpolicy.c
313 (__pthread_attr_setschedpolicy): Use check_sched_policy_attr.
314 * pthread_attr_setstack.c (__pthread_attr_setstack): Use
315 check_stacksize_attr.
316 * pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
318 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
319 (__pthread_attr_setaffinity_new): Use check_cpuset_attr.
321 2013-04-11 Andreas Schwab <schwab@suse.de>
323 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
324 (__pthread_cond_timedwait): If possible use FUTEX_WAIT_BITSET to
325 directly use absolute timeout.
327 2013-04-07 Carlos O'Donell <carlos@redhat.com>
329 * sysdeps/unix/sysv/linux/sem_post.c: Include atomic.h.
331 2013-04-04 Siddhesh Poyarekar <siddhesh@redhat.com>
334 * sysdeps/unix/sysv/linux/x86_64/cancellation.S
336 [SHARED && defined DO_VERSIONING && !defined NO_HIDDEN]: Mark
337 __pthread_unwind hidden.
339 2013-03-28 Roland McGrath <roland@hack.frob.com>
341 * pthread_create.c (start_thread) [!SHARED]:
342 Call __call_tls_dtors only if it's not NULL.
344 2013-03-19 Siddhesh Poyarekar <siddhesh@redhat.com>
346 * allocatestack.c (allocate_stack): Use __default_pthread_attr
347 instead of __default_stacksize.
348 * nptl-init.c (__pthread_initialize_minimal_internal):
349 Likewise. Initialize guardsize.
350 * pthreadP.h (__default_pthread_attr): Declare.
351 * pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
352 Use __default_pthread_attr instead of __default_stacksize.
353 * pthread_create.c (default_attr): Remove.
354 (__pthread_create_2_1): Use __default_pthread_attr instead of
356 * vars.c (__default_stacksize): Remove.
357 (__default_pthread_attr): New static variable to store
358 default thread attributes.
360 2013-03-18 Siddhesh Poyarekar <siddhesh@redhat.com>
362 * pthread_barrier_init.c (default_attr): Rename to
364 (pthread_barrier_init): Adjust for the rename.
365 * pthread_mutex_init.c (default_attr): Rename to
367 (__pthread_mutex_init): Adjust for the rename.
368 * pthread_rwlock_init.c (default_attr): Rebane to
370 (__pthread_rwlock_init): Adjust for the rename.
372 2013-03-12 Carlos O'Donell <carlos@redhat.com>
374 * sysdeps/unix/sysv/linux/lowlevellock.c: Include <atomic.h>.
376 2013-03-04 Roland McGrath <roland@hack.frob.com>
378 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h:
379 Change multiple inclusion guard to _LINUX_I686_DL_SYSDEP_H.
381 (HAVE_DL_DISCOVER_OSVERSION): Remove definition, now redundant.
382 (RTLD_PRIVATE_ERRNO): Likewise.
383 (NEED_DL_SYSINFO, DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION):
384 Move macros and associated declaration to ...
385 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
386 Change multiple include guard to _LINUX_I386_DL_SYSDEP_H.
389 2013-03-01 Carlos O'Donell <carlos@redhat.com>
391 * Makefile (tests): Revert last change.
392 (tst-pthread-stack-env-ENV): Likewise.
393 * nptl-init.c (set_default_stacksize): Likewise.
394 (__pthread_initialize_minimal_internal): Likewise.
395 * tst-pthread-stack-env.c: Likewise.
397 2013-03-01 Siddhesh Poyarekar <siddhesh@redhat.com>
399 * tst-oddstacklimit.c: Include stdlib.h.
401 * Makefile (tests): Add tst-pthread-stack-env.
402 (tst-pthread-stack-env-ENV): Set environment for test.
403 * nptl-init.c (set_default_stacksize): New function.
404 (__pthread_initialize_minimal_internal): Accept ARGC, ARGV and
405 ENVP. Initialize __ENVIRON and set __DEFAULT_STACKSIZE.
406 * tst-pthread-stack-env.c: New test case.
408 2013-02-21 David S. Miller <davem@davemloft.net>
410 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
411 (FUTEX_WAIT_REQUEUE_PI): Define.
412 (FUTEX_CMP_REQUEUE_PI): Likewise.
413 (lll_futex_wait_requeue_pi): Likewise.
414 (lll_futex_timed_wait_requeue_pi): Likewise.
415 (lll_futex_cmp_requeue_pi): Likewise.
417 2013-02-21 Carlos O'Donell <carlos@redhat.com>
419 * sysdeps/unix/sysv/linux/fork.c: Fix comment typo.
421 2013-02-18 Siddhesh Poyarekar <siddhesh@redhat.com>
423 * sysdeps/pthread/tst-timer.c: Include stdlib.h for declaration
425 * tst-barrier4.c: Likewise.
426 * tst-robust7.c: Likewise.
429 * pthreadP.h (USE_REQUEUE_PI): New macro to check if mutex is
431 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Use
432 PI-aware futex operations if available and mutex is PI-aware.
433 * pthread_cond_signal.c (__pthread_cond_signal): Likewise.
434 * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait):
436 * pthread_cond_wait.c (__condvar_cleanup): Adjust lock if
437 cancellation occurred just after futex returned successfully
438 from a PI operation with the mutex held.
439 (__pthread_cond_wait): Use PI-aware futex operations if
440 available and mutex is PI-aware.
441 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
442 (FUTEX_WAIT_REQUEUE_PI): Define.
443 (FUTEX_CMP_REQUEUE_PI): Likewise.
444 (lll_futex_wait_requeue_pi): Likewise.
445 (lll_futex_timed_wait_requeue_pi): Likewise.
446 (lll_futex_cmp_requeue_pi): Likewise.
447 * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h
448 (FUTEX_WAIT_REQUEUE_PI): Define.
449 (FUTEX_CMP_REQUEUE_PI): Likewise.
450 (lll_futex_wait_requeue_pi): Likewise.
451 (lll_futex_timed_wait_requeue_pi): Likewise.
452 (lll_futex_cmp_requeue_pi): Likewise.
453 * sysdeps/unix/sysv/linux/kernel-features.h: Define
454 __ASSUME_REQUEUE_PI for Linux version higher than 2.6.31.
456 2013-02-04 Andreas Schwab <schwab@suse.de>
459 * tst-cancel14.c: Include <sys/time.h>.
460 * tst-cancel15.c: Likewise.
461 * tst-mutex9.c: Include <stdint.h>, <stdlib.h> and <sys/time.h>.
462 * tst-stackguard1.c: Include <tls.h>
464 2013-01-16 Andreas Schwab <schwab@suse.de>
467 * sem_open.c (sem_open): Use __mktemp instead of mktemp.
469 2013-01-11 Carlos O'Donell <codonell@redhat.com>
471 * allocatestack.c (allocate_stack): Add comment. Remove assert
474 2013-01-11 H.J. Lu <hongjiu.lu@intel.com>
476 * Makefile (tst-cancel7-ARGS: Replace $(host-built-program-cmd)
477 with $(host-test-program-cmd).
478 (tst-exec4-ARGS): Likewise.
479 (tst-stackguard1-ARGS): Likewise.
480 ($(objpfx)tst-tls6.out): Don't pass $(elf-objpfx) to tst-tls6.sh.
481 Replace $(rtld-installed-name) with $(test-via-rtld-prefix).
482 * tst-tls6.sh (elf_objpfx): Removed.
483 (rtld_installed_name): Renamed to ...
484 (test_via_rtld_prefix): This.
485 (tst_tls5): Prepend ${test_via_rtld_prefix}.
487 2013-01-02 Joseph Myers <joseph@codesourcery.com>
489 * All files with FSF copyright notices: Update copyright dates
490 using scripts/update-copyrights.
492 2013-01-01 Joseph Myers <joseph@codesourcery.com>
494 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Reformat
497 2012-12-28 Andi Kleen <ak@linux.intel.com>
499 * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Convert
501 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
504 2012-12-27 David S. Miller <davem@davemloft.net>
506 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
507 (lll_futex_timed_wait_bitset): New macro.
509 2012-12-27 Siddhesh Poyarekar <siddhesh@redhat.com>
511 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (SYS_futex):
513 (lll_futex_timed_wait): Replace assembly code with
515 (lll_futex_timed_wait_bitset): Likewise.
516 (lll_futex_wake): Likewise.
517 (lll_futex_requeue): Likewise.
518 (lll_futex_wake_unlock): Likewise.
520 2012-12-08 Siddhesh Poyarekar <siddhesh@redhat.com>
522 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind):
523 Declare LOCAL_VAR as char.
525 2012-12-04 Joseph Myers <joseph@codesourcery.com>
527 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__old_sem_post):
528 Cast result of atomic_increment_val to (void) instead of storing
529 in otherwise-unused variable.
531 2012-12-03 Allan McRae <allan@archlinux.org>
533 * Makefile (LDFLAGS-tst-cond24, LDFLAGS-tst-cond25): Remove.
535 2012-11-26 H.J. Lu <hongjiu.lu@intel.com>
537 * unwind.c (__pthread_unwind): Pass address of unwind_cleanup
539 * sysdeps/i386/tls.h: Include <libc-internal.h>.
540 (THREAD_SETMEM): Use cast_to_integer before casting to uint64_t.
541 (THREAD_SETMEM_NC): Likewise.
542 * sysdeps/x86_64/tls.h: Include <libc-internal.h>.
543 (THREAD_SETMEM): Use cast_to_integer before casting to uint64_t.
544 (THREAD_SETMEM_NC): Likewise.
546 2012-11-21 Joseph Myers <joseph@codesourcery.com>
548 * sysdeps/unix/sysv/linux/sem_post.c (__old_sem_post): Cast result
549 of atomic_increment_val to (void) instead of storing in
550 otherwise-unused variable.
552 * pthread_cond_timedwait.c (__pthread_cond_timedwait)
553 [__NR_clock_gettime]: Cast result of INTERNAL_VSYSCALL to void
554 instead of storing in otherwise-unused variable.
556 2012-11-14 Marcus Shawcroft <marcus.shawcroft@linaro.org>
558 * Makefile (CFLAGS-open.c, CFLAGS-open64.c, CFLAGS-pause.c)
559 (CFLAGS-recv.c, CFLAGS-send.c): Define.
561 2012-11-06 Chris Metcalf <cmetcalf@tilera.com>
563 * tst-sem14.c (TIMEOUT): Set timeout to 10 seconds.
564 * tst-cond24.c (TIMEOUT): Increase from 10 to 20 seconds.
566 2012-11-05 Siddhesh Poyarekar <siddhesh@redhat.com>
568 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Time out
569 if absolute timeout is negative.
570 [__ASSUME_FUTEX_CLOCK_REALTIME &&
571 lll_futex_timed_wait_bitset]: Use lll_futex_timed_wait_bitset.
572 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
574 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
576 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
577 (__lll_robust_timedlock_wait): Likewise.
578 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
579 (lll_futex_timed_wait_bitset): New macro.
580 * sysdeps/unix/sysv/linux/s390/lowlevellock.h
581 (lll_futex_timed_wait_bitset): Likewise.
583 2012-11-03 David S. Miller <davem@davemloft.net>
585 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
587 (__cpu_relax): Likewise.
589 2012-11-02 H.J. Lu <hongjiu.lu@intel.com>
591 * sysdeps/x86_64/tls.h: Don't include <xmmintrin.h>.
592 (__128bits): New struct typedef.
593 (tcbhead_t): Replace __m128 with __128bits.
595 2012-10-30 Aurelien Jarno <aurelien@aurel32.net>
596 Joseph Myers <joseph@codesourcery.com>
598 * Makefile (tst-cancel7-ARGS): Use exec in --command argument.
600 2012-10-28 David S. Miller <davem@davemloft.net>
602 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
603 Define when we have v9 instructions available.
604 * sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: New file.
605 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S: New
607 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile: New
609 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: Add cpu_relax
610 to libpthread-routines.
612 2012-10-25 Roland McGrath <roland@hack.frob.com>
614 * tst-cond-except.c (TEST_FUNCTION): New macro.
616 2012-10-25 Joseph Myers <joseph@codesourcery.com>
618 * Makefile ($(objpfx)tst-tls6.out): Use $(BASH) not $(SHELL) to
620 * tst-tls6.sh: Use /bin/bash not /bin/sh.
622 2012-10-25 Roland McGrath <roland@hack.frob.com>
624 * tst-basic2.c (do_test): Return RESULT, not always zero.
626 * tst-cond25.c: Include <stdint.h>
627 (waiter): Add casts to uintptr_t between casting integer<->pointer.
628 (timed_waiter): Likewise.
629 (do_test_wait): Likewise.
630 * tst-cond-except.c (thr): Likewise.
631 (do_test): Use prototype definition.
633 2012-10-24 Joseph Myers <joseph@codesourcery.com>
634 Jim Blandy <jimb@codesourcery.com>
636 * Makefile ($(objpfx)tst-tls6.out): Pass $(test-wrapper-env) to
638 * tst-tls6.sh (test_wrapper_env): New variable. Use it to run
639 programs with LD_PRELOAD set.
641 2012-10-24 Roland McGrath <roland@hack.frob.com>
643 * Makefile ($(objpfx)tst-cond11, $(objpfx)tst-cond19): Targets removed.
644 ($(objpfx)tst-sem5, $(objpfx)tst-cancel18): Likewise.
645 ((objpfx)tst-cancelx18, $(objpfx)tst-clock2): Likewise.
646 ($(objpfx)tst-rwlock14): Likewise.
648 2012-10-24 Joseph Myers <joseph@codesourcery.com>
650 * Makefile (tests): Remove tst-oddstacklimit.
651 (test-srcs): New variable.
652 (tst-oddstacklimit-ENV): Remove.
653 [$(run-built-tests) = yes] (tests): Depend on
654 $(objpfx)tst-oddstacklimit.out.
655 [$(run-built-tests) = yes] ($(objpfx)tst-oddstacklimit.out): New
657 * tst-oddstacklimit.c: Do not include "tst-basic1.c". Use
658 setrlimit before executing tst-basic1 test passed to --command.
660 2012-10-23 Joseph Myers <joseph@codesourcery.com>
662 * Makefile [$(cross-compiling) = no]: Change condition to
663 [$(run-built-tests) = yes].
665 2012-10-23 Jim Blandy <jimb@codesourcery.com>
666 Joseph Myers <joseph@codesourcery.com>
668 * Makefile (tst-cancel7-ARGS): Use $(host-built-program-cmd).
669 (tst-exec4-ARGS): Likewise.
670 (tst-stackguard1-ARGS): Likewise.
672 2012-10-21 Jim Blandy <jimb@codesourcery.com>
673 Joseph Myers <joseph@codesourcery.com>
675 * Makefile ($(objpfx)tst-cancel-wrappers.out): Pass $(NM) to
676 tst-cancel-wrappers.sh.
677 * tst-cancel-wrappers.sh: Use nm program given as first argument,
680 2012-10-17 Siddhesh Poyarekar <siddhesh@redhat.com>
682 * tst-cond25.c (do_test_wait): Don't check for return value from
685 2012-10-16 Siddhesh Poyarekar <siddhesh@redhat.com>
688 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
689 (__condvar_tw_cleanup): Adjust the mutex data structure if it
690 was locked by FUTEX_WAIT_REQUEUE_PI.
691 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait
692 (__condvar_w_cleanup): Likewise.
693 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
694 (__condvar_cleanup2): Likewise.
695 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
696 (__condvar_cleanup1): Likewise.
698 2012-10-10 Carlos O'Donell <carlos@systemhalted.org>
700 * sysdeps/pthread/pthread.h [!(defined __GNUC__ &&
701 defined __EXCEPTIONS) && defined __USE_GNU]
702 (pthread_cleanup_push_defer_np): Fix formatting.
704 2012-10-10 Siddhesh Poyarekar <siddhesh@redhat.com>
707 * Makefile (tests): New test case tst-cond25.
708 (LDFLAGS-tst-cond25): Link tst-cond25 against librt.
709 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
710 (__condvar_tw_cleanup): Lock mutex only if we don't already
712 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
713 (__condvar_w_cleanup): Likewise.
714 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add TID_MASK.
715 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
716 (__condvar_cleanup2): Lock mutex only if we don't already
718 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
719 (__condvar_cleanup1): Likewise.
720 * tst-cond25.c: New test case.
722 2012-10-09 Roland McGrath <roland@hack.frob.com>
724 * sysdeps/pthread/configure: Regenerated.
725 * sysdeps/x86_64/configure: Regenerated.
727 2012-10-05 David S. Miller <davem@davemloft.net>
730 * sysdeps/sparc/tls.h (DB_THREAD_SELF_INCLUDE): Delete.
731 (DB_THREAD_SELF): Use constants for the register offsets. Correct
732 the case of a 64-bit debugger with a 32-bit inferior.
734 2012-10-05 H.J. Lu <hongjiu.lu@intel.com>
737 * Makefile (tests-static): Add tst-cancel24-static,
738 tst-cond8-static tst-mutex8-static, tst-mutexpi8-static,
739 tst-sem11-static and tst-sem12-static.
741 (LDLIBS-tst-cancel24-static): New macro.
742 * tst-cancel24-static.cc: New file.
743 * tst-cond8-static.c: Likewise.
744 * tst-mutex8-static.c: Likewise.
745 * tst-mutexpi8-static.c: Likewise.
746 * tst-sem11-static.c: Likewise.
747 * tst-sem12-static.c: Likewise.
749 2012-10-05 Siddhesh Poyarekar <siddhesh@redhat.com>
752 * Makefile (tests): New test case tst-cond24.
753 (LDFLAGS-tst-cond24): Link tst-cond24 against librt.
754 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
755 (__pthread_cond_timedwait): Unlock mutex before going back to
757 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
758 (__pthread_cond_wait): Likewise. Revert handling of EAGAIN
759 return from futex_wait.
760 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
761 (__pthread_cond_timedwait): Unlock mutex before going back to
762 wait in PI case. Set requeue_pi flag only if wait returned 0.
763 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
764 (__pthread_cond_wait): Likewise. Revert handling of EAGAIN
765 return from futex_wait.
766 * tst-cond24.c: New test case.
768 2012-10-04 Roland McGrath <roland@hack.frob.com>
770 * pthread_create.c (start_thread): Use __madvise, not madvise.
772 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
774 * sysdeps/i386/tls.h: Update copyright years.
776 2012-10-02 Siddhesh Poyarekar <siddhesh@redhat.com>
778 * pthread_create.c (start_thread): Fix clone flag name in
779 comment to CLONE_CHILD_CLEARTID.
780 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
781 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
782 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
783 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
784 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
785 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
787 2012-10-01 Siddhesh Poyarekar <siddhesh@redhat.com>
790 * Makefile (tests): Add tst-cond-except.
791 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
792 (__pthread_cond_timedwait): Mark instructions where %ebx is
793 incremented in PI case.
794 (.gcc_except_table): Add entry to jump to __condvar_tw_cleanup2
795 for the marked PI case instructions.
796 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
797 (__pthread_cond_wait): Mark instructions where %ebx is
798 incremented in PI case.
799 (.gcc_except_table): Add entry to jump to __condvar_w_cleanup2
800 for the marked PI case instructions.
801 * tst-cond-except.c: New test case.
803 2012-09-24 Dmitry V. Levin <ldv@altlinux.org>
805 * tst-tls6.sh: Add "set -e".
806 * Makefile: Do not specify -e option when running testsuite
809 * tst-tls6.sh: Add copyright header.
811 2012-09-24 H.J. Lu <hongjiu.lu@intel.com>
813 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Add "()" when casting
814 to uint64_t for 64-bit store.
815 (THREAD_SETMEM_NC): Likewise.
817 2012-09-19 H.J. Lu <hongjiu.lu@intel.com>
819 * sysdeps/i386/tls.h (THREAD_SETMEM): Cast to uint64_t for
821 (THREAD_SETMEM_NC): Likewise.
823 2012-09-14 Jeff Law <law@redhat.com>
826 * sysdeps/pthread/pthread.h: Fix prototype of __sigsetjmp.
828 2012-09-13 H.J. Lu <hongjiu.lu@intel.com>
831 * sysdeps/pthread/bits/libc-lockP.h (__rtld_lock_init_recursive):
834 2012-09-07 H.J. Lu <hongjiu.lu@intel.com>
836 * Makefile (LDFLAGS-tst-cancel24): Renamed to ...
837 (LDLIBS-tst-cancel24): This.
839 2012-09-06 H.J. Lu <hongjiu.lu@intel.com>
842 * Makefile (tests-static): Add tst-cancel21-static.
844 * tst-cancel21-static.c: New file.
846 2012-09-01 Joseph Myers <joseph@codesourcery.com>
848 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
849 [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
850 [__NR_clock_getres]: Make code unconditional.
851 (pthread_getcpuclockid): Remove code left unreachable by removal
854 2012-08-31 Joseph Myers <joseph@codesourcery.com>
857 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Use
858 atomic_compare_and_exchange_bool_rel.
859 * tst-sem14.c: New file.
860 * Makefile (tests): Add tst-sem14.
862 2012-08-15 Roland McGrath <roland@hack.frob.com>
864 * Makefile (CFLAGS-flockfile.c): Use $(libio-mtsafe) instead
866 (CFLAGS-ftrylockfile.c, CFLAGS-funlockfile.c): Likewise.
867 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-fork.c): Likewise.
869 2012-08-16 Joseph Myers <joseph@codesourcery.com>
871 * pthread_cond_timedwait.c (__pthread_cond_timedwait)
872 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
873 * pthread_condattr_setclock.c (pthread_condattr_setclock)
874 [!__ASSUME_POSIX_TIMERS]: Likewise.
875 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
876 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Likewise.
877 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
878 [!__ASSUME_POSIX_TIMERS]: Likewise.
879 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
880 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Likewise.
881 * sysdeps/unix/sysv/linux/timer_create.c [__NR_timer_create]: Make
883 [!__NR-timer_create]: Remove conditional code.
884 (timer_create) [!__ASSUME_POSIX_TIMERS]: Likewise.
885 * sysdeps/unix/sysv/linux/timer_delete.c [__NR_timer_delete]: Make
887 [!__NR_timer_delete]: Remove conditional code.
888 (timer_delete) [!__ASSUME_POSIX_TIMERS]: Likewise.
889 * sysdeps/unix/sysv/linux/timer_getoverr.c
890 [__NR_timer_getoverrun]: Make code unconditional.
891 [!__NR_timer_getoverrun]: Remove conditional code.
892 (timer_getoverrun) [!__ASSUME_POSIX_TIMERS]: Likewise.
893 * sysdeps/unix/sysv/linux/timer_gettime.c [__NR_timer_gettime]:
894 Make code unconditional.
895 [!__NR_timer_gettime]: Remove conditional code.
896 (timer_gettime) [!__ASSUME_POSIX_TIMERS]: Likewise.
897 * sysdeps/unix/sysv/linux/timer_routines.c [__NR_timer_create]:
898 Make code unconditional.
899 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
900 * sysdeps/unix/sysv/linux/timer_settime.c [__NR_timer_settime]:
901 Make code unconditional.
902 [!__NR_timer_settime]: Remove conditional code.
903 (timer_settime) [!__ASSUME_POSIX_TIMERS]: Likewise.
904 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
905 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Remove
908 2012-08-15 Tom de Vries <vries@codesourcery.com>
909 Maxim Kuvyrkov <maxim@codesourcery.com>
911 * sysdeps/pthread/bits/libc-lockP.h (__libc_lock_lock)
912 (__libc_lock_trylock): Allow pre-existing definitions.
914 2012-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
916 * pthread_spin_lock.c: New file.
917 * pthread_spin_trylock.c: New file.
919 2012-08-08 Joseph Myers <joseph@codesourcery.com>
921 * allocatestack.c (setxid_signal_thread) [__ASSUME_TGKILL]: Make
923 (setxid_signal_thread) [!__ASSUME_TGKILL]: Remove conditional code.
924 * pthread_cancel.c (pthread_cancel) [__ASSUME_TGKILL]: Make code
926 (pthread_cancel) [!__ASSUME_TGKILL]: Remove conditional code.
927 * sysdeps/pthread/createthread.c (do_clone) [__ASSUME_TGKILL]:
928 Make code unconditional.
929 (do_clone) [!__ASSUME_TGKILL]: Remove conditional code.
930 * sysdeps/unix/sysv/linux/pt-raise.c (raise) [__ASSUME_TGKILL ||
931 __NR_tgkill]: Make code unconditional.
932 (raise) [__ASSUME_TGKILL]: Likewise.
933 (raise) [!__ASSUME_TGKILL]: Remove conditional code.
934 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill)
935 [__ASSUME_TGKILL]: Make code unconditional.
936 (__pthread_kill) [!__ASSUME_TGKILL]: Remove conditional code.
937 * sysdeps/unix/sysv/linux/raise.c (raise) [__ASSUME_TGKILL ||
938 __NR_tgkill]: Make code unconditional.
939 (raise) [__ASSUME_TGKILL]: Likewise.
940 (raise) [!__ASSUME_TGKILL]: Remove conditional code.
942 2012-08-07 Joseph Myers <joseph@codesourcery.com>
944 * sysdeps/pthread/createthread.c (create_thread)
945 [!__ASSUME_NO_CLONE_DETACHED]: Remove conditional code.
947 2012-08-03 Joseph Myers <joseph@codesourcery.com>
949 * nptl-init.c (sigcancel_handler) [__ASSUME_CORRECT_SI_PID]: Make
951 (sighandler_setxid) [__ASSUME_CORRECT_SI_PID]: Likewise.
953 2012-07-28 Siddhesh Poyarekar <siddhesh@redhat.com>
955 * tst-pthread-getattr.c (MAX_STACK_SIZE): New macro.
956 (pagesize): New static variable.
957 (allocate_and_test): Return MEM. Rename parameter to TARGET.
958 (check_stack_top): New local variables MEM and PAGEMASK. Cap
959 stack size to MAX_STACK_SIZE. Call allocate_and_test for
960 halfway up the stack top page. Verify that the top page was
962 (do_test): Get pagesize using sysconf.
964 2012-07-25 Andreas Schwab <schwab@linux-m68k.org>
966 * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Remove pseudo_end
968 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Likewise.
969 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO):
972 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
974 * tst-pthread-getattr.c: Revert last change.
976 2012-07-20 Siddhesh Poyarekar <siddhesh@redhat.com>
978 * tst-pthread-getattr.c (MAX_STACK_SIZE): New max cap for stack
981 (allocate_and_test): Return STACKADDR. Access STACKADDR instead
983 (check_stack_top): Read valued written into STACKADDR in
984 allocate_and_test. Cap stack size to MAX_STACK_SIZE.
986 2012-07-19 Siddhesh Poyarekar <siddhesh@redhat.com>
988 * nptl-init.c (sighandler_setxid): Fix the comment that
991 2012-06-23 Thomas Schwinge <thomas@codesourcery.com>
993 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
994 (__lll_robust_timedlock_wait): Simplify CFI directives.
996 2012-06-20 Siddhesh Poyarekar <siddhesh@redhat.com>
999 * Makefile (tests): Add test case.
1000 * pthread_getattr_np.c (pthread_getattr_np): Deduct pages below
1001 the __libc_stack_end page from stacksize. Truncate stacksize to
1002 make it page aligned when it is computed from RLIMIT_STACK.
1003 * tst-pthread-getattr.c: New test case. Verify that stackaddr is
1006 2012-06-07 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
1009 * sysdeps/sparc/sparc32/pthread_spin_lock.S: Do not use v9
1012 2012-06-04 Siddhesh Poyarekar <siddhesh@redhat.com>
1013 Jakub Jelinek <jakub@redhat.com>
1016 * sysdeps/pthread/pthread.h
1017 [!(defined __GNUC__ && defined __EXCEPTIONS)]
1018 (pthread_cleanup_push, pthread_cleanup_push_defer_np): Use
1019 __libc_unlikely instead of __builtin_expect.
1021 2012-05-30 H.J. Lu <hongjiu.lu@intel.com>
1024 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Removed.
1025 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
1026 * sysdeps/unix/sysv/linux/i386/Implies: New file.
1027 * sysdeps/unix/sysv/linux/x86_64/Implies: Likewise.
1028 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Renamed
1030 * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: This.
1031 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Renamed
1033 * sysdeps/unix/sysv/linux/x86/bits/semaphore.h: This.
1035 2012-05-30 Andreas Schwab <schwab@linux-m68k.org>
1038 * nptl-init.c (pthread_functions): Remove use of INTUSE and
1040 (__pthread_initialize_minimal_internal): Likewise.
1041 * sem_open.c: Likewise.
1042 * sem_unlink.c: Likewise.
1043 * pthreadP.h: Replace _internal aliases by hidden_proto
1045 * pthread_getspecific.c: Replace _internal alias by hidden_def.
1046 * pthread_key_create.c: Likewise.
1047 * pthread_mutex_destroy.c: Likewise.
1048 * pthread_mutex_init.c: Likewise.
1049 * pthread_mutex_lock.c: Likewise.
1050 * pthread_mutex_unlock.c: Likewise.
1051 * pthread_once.c: Likewise.
1052 * pthread_rwlock_rdlock.c: Likewise.
1053 * pthread_rwlock_unlock.c: Likewise.
1054 * pthread_rwlock_wrlock.c: Likewise.
1055 * pthread_setspecific.c: Likewise.
1056 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
1058 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
1060 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
1062 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
1063 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
1064 * sysdeps/unix/sysv/linux/s390/pthread_once.c: Likewise.
1065 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Likewise.
1066 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
1067 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
1068 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
1069 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
1070 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
1071 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
1073 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
1075 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
1078 2012-05-27 Chung-Lin Tang <cltang@codesourcery.com>
1080 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO, LOAD_ARGS_1)
1081 (LOAD_ARGS_2 ,LOAD_ARGS_3 ,LOAD_ARGS_4): Add CFI restores.
1083 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_lock_wait_private)
1084 (__lll_lock_wait, __lll_timedlock_wait, __lll_timedwait_tid): Add CFI
1086 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
1087 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Likewise.
1088 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
1089 (pthread_barrier_wait): Likewise.
1090 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
1091 (__pthread_cond_broadcast): Likewise.
1092 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
1093 (__pthread_cond_signal): Likewise.
1094 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
1095 (__pthread_cond_timedwait): Likewise.
1096 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S (__pthread_cond_wait):
1098 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S
1099 (__pthread_rwlock_rdlock): Likewise.
1100 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
1101 (pthread_rwlock_timedrdlock): Likewise.
1102 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
1103 (pthread_rwlock_timedwrlock): Likewise.
1104 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S
1105 (__pthread_rwlock_unlock): Likewise.
1106 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S
1107 (__pthread_rwlock_wrlock): Likewise.
1108 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post): Likewise.
1109 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Likewise.
1110 * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
1112 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
1114 2012-05-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1117 * nptl/pthread_getattr_np.c (pthread_getattr_np): Use
1118 __libc_stack_end rounded to the end of containing page as the
1121 2012-05-25 Rayson Ho <rho@redhat.com>
1123 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Low-level SystemTap
1125 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
1126 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
1127 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
1128 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
1129 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1130 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
1131 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
1132 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
1134 2012-05-25 Rayson Ho <rho@redhat.com>
1135 Roland McGrath <roland@hack.frob.com>
1137 * DESIGN-systemtap-probes.txt: New file.
1138 * pthread_cond_broadcast.c: SystemTap probes.
1139 * pthread_cond_init.c: Likewise.
1140 * pthread_cond_signal.c: Likewise.
1141 * pthread_cond_wait.c: Likewise.
1142 * pthread_cond_destroy.c: Likewise.
1143 * pthread_create.c: Likewise.
1144 * pthread_join.c: Likewise.
1145 * pthread_mutex_destroy.c: Likewise.
1146 * pthread_mutex_init.c: Likewise.
1147 * pthread_mutex_lock.c: Likewise.
1148 * pthread_mutex_timedlock.c: Likewise.
1149 * pthread_mutex_unlock.c: Likewise.
1150 * pthread_rwlock_destroy.c: Likewise.
1151 * pthread_rwlock_rdlock.c: Likewise.
1152 * pthread_rwlock_unlock.c: Likewise.
1153 * pthread_rwlock_wrlock.c: Likewise.
1154 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1155 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1156 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
1157 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
1158 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1159 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1160 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
1161 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
1163 2012-05-24 Roland McGrath <roland@hack.frob.com>
1165 * pthread_create.c (start_thread): Define pthread_start LIBC_PROBE.
1167 2012-05-17 Andreas Jaeger <aj@suse.de>
1169 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
1170 (HAVE_DL_DISCOVER_OSVERSION): Don't declare _dl_discover_osversion
1171 only for older kernels.
1173 2012-05-15 Joseph Myers <joseph@codesourcery.com>
1175 * pthreadP.h [!__NR_set_robust_list] (__NR_set_robust_list): Do
1178 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1180 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock): Load
1181 futex pointer into RDI_LP. Use RSP_LP to operate on stack.
1182 (lll_robust_lock): Likewise.
1183 (lll_cond_lock): Likewise.
1184 (lll_robust_cond_lock): Likewise.
1185 (lll_timedlock): Likewise.
1186 (lll_robust_timedlock): Likewise.
1187 (lll_unlock): Likewise.
1188 (lll_robust_unlock): Likewise.
1190 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1192 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use
1193 LP_OP(cmp) and RCX_LP on dep_mutex pointer.
1195 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1197 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Use LP_OP(op)
1199 (__gcc_personality_v0): Replace 8-byte data alignment with
1200 LP_SIZE alignment and .quad with ASM_ADDR.
1202 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1204 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Use LP_OP(op)
1206 (__gcc_personality_v0): Replace 8-byte data alignment with
1207 LP_SIZE alignment and .quad with ASM_ADDR.
1209 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1211 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Use LP_OP(cmp) on
1212 NWAITERS, which is unsigned long int.
1214 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1216 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
1217 (__gcc_personality_v0): Replace 8-byte data alignment with
1218 LP_SIZE alignment and .quad with ASM_ADDR.
1220 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1222 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Use
1223 LP_OP(cmp), RSI_LP and R8_LP on dep_mutex pointer. Load
1224 __vdso_clock_gettime pointer into RAX_LP.
1225 (__gcc_personality_v0): Replace 8-byte data alignment with
1226 LP_SIZE alignment and .quad with ASM_ADDR.
1228 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1230 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Use
1231 LP_OP(cmp), RSI_LP and R8_LP on dep_mutex pointer. Load
1232 __vdso_clock_gettime pointer into RAX_LP.
1233 (__gcc_personality_v0): Replace 8-byte data alignment with
1234 LP_SIZE alignment and .quad with ASM_ADDR.
1236 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1238 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Use
1239 LP_OP(cmp) and R8_LP on dep_mutex pointer.
1241 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1243 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Use LP_OP(mov)
1244 to update pointer in memory. Load pointer into RDI_LP.
1246 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1248 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
1249 (LLL_STUB_UNWIND_INFO_START): Align label to LP_SIZE instead
1251 (LLL_STUB_UNWIND_INFO_END): Likewise.
1252 (lll_timedlock): Load timeout pointer into RDX_LP.
1253 (lll_robust_timedlock): Likewise.
1255 2012-05-15 Siddhesh Poyarekar <siddhesh@redhat.com>
1256 Jakub Jelinek <jakub@redhat.com>
1259 * Makefile (tests): Add test cases.
1260 * descr.h (struct pthread): Add a comment describing multiple_threads.
1261 * pthreadP.h (__pthread_multiple_threads): Expand comment to include
1262 single-process case.
1263 * pthread_cancel.c (pthread_cancel): Enable multiple_threads
1264 before setting cancelstate of the thread.
1265 * sysdeps/unix/sysv/linux/libc_multiple_threads.c
1266 (__libc_multiple_threads): Add explanatory comment.
1267 * tst-cancel-self-cancelstate.c: New test case.
1268 * tst-cancel-self-canceltype.c: Likewise.
1269 * tst-cancel-self-cleanup.c: Supporting file for test cases.
1270 * tst-cancel-self-testcancel.c: New test case.
1271 * tst-cancel-self.c: Likewise.
1272 * vars.c: Expand comment to include single-process case.
1274 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1276 * sysdeps/x86_64/tls.h: Don't include <bits/wordsize.h>.
1277 (tcbhead_t): Remove __x86_64__ check. Align rtld_savespace_sse
1280 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1282 * sysdeps/pthread/pthread.h (__PTHREAD_RWLOCK_INT_FLAGS_SHARED):
1284 (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Check
1285 __PTHREAD_RWLOCK_INT_FLAGS_SHARED instead of __WORDSIZE.
1287 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1289 * shlib-versions: Move x86_64-.*-linux.* entry to ...
1290 * sysdeps/x86_64/64/shlib-versions: Here. New file.
1291 * sysdeps/x86_64/x32/shlib-versions: New file.
1293 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1295 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Define x32
1296 __SIZEOF_PTHREAD_XXX_T.
1297 (__pthread_internal_list): Check __x86_64__ instead of __WORDSIZE.
1298 (pthread_mutex_t): Likewise.
1299 (pthread_rwlock_t): Likewise.
1300 (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New. Defined if __x86_64__
1303 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1305 * sysdeps/x86_64/x32/tls.h: New file.
1307 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1309 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Use uint64_t on 64-bit
1311 (THREAD_SETMEM_NC): Likewise.
1313 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1315 * sysdeps/x86_64/tls.h (THREAD_SELF): Replace movq/%q0 with
1318 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1320 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
1321 (__cleanup_fct_attribute): Check __x86_64__ instead of
1324 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1326 * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER): Check
1327 __PTHREAD_MUTEX_HAVE_PREV instead of __WORDSIZE.
1328 (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Likewise.
1329 (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
1330 (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
1332 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1334 * pthread_create.c (start_thread): Check __PTHREAD_MUTEX_HAVE_PREV
1335 instead of __WORDSIZE.
1337 2012-05-10 Thomas Schwinge <thomas@schwinge.name>
1340 * sysdeps/pthread/bits/libc-lockP.h (__libc_once_get): New macro.
1342 2012-05-09 Chung-Lin Tang <cltang@codesourcery.com>
1344 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
1345 (__pthread_cond_timedwait): Use CFI directives.
1346 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
1347 (__pthread_cond_wait): Likewise.
1348 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Likewise.
1349 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
1351 2012-05-03 David S. Miller <davem@davemloft.net>
1353 * sysdeps/sparc/sparc64/pthread_spin_unlock.S: Fix thinko, we
1354 always have to return 0, especially for the pthread_spin_init
1356 * sysdeps/sparc/sparc32/pthread_spin_lock.S: Add missing trailing
1358 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
1359 * sysdeps/sparc/sparc64/pthread_spin_lock.S: Likewise.
1361 2012-05-02 David S. Miller <davem@davemloft.net>
1363 * sysdeps/sparc/sparc64/pthread_spin_lock.S: New.
1364 * sysdeps/sparc/sparc64/pthread_spin_lock.c: Delete.
1365 * sysdeps/sparc/sparc64/pthread_spin_unlock.S: New.
1366 * sysdeps/sparc/sparc64/pthread_spin_unlock.c: Delete.
1367 * sysdeps/sparc/sparc64/pthread_spin_trylock.S: New.
1368 * sysdeps/sparc/sparc64/pthread_spin_trylock.c: Delete.
1369 * sysdeps/sparc/sparc64/pthread_spin_init.c: New.
1370 * sysdeps/sparc/sparc32/pthread_spin_lock.S: New.
1371 * sysdeps/sparc/sparc32/pthread_spin_lock.c: Delete.
1372 * sysdeps/sparc/sparc32/pthread_spin_trylock.S: New.
1373 * sysdeps/sparc/sparc32/pthread_spin_trylock.c: Delete.
1374 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: New.
1375 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: Delete.
1376 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: New.
1377 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: Delete.
1378 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: New.
1379 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: Delete.
1380 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: New.
1382 2012-05-02 Allan McRae <allan@archlinux.org>
1384 * Makefile: (LDFLAGS-tst-tls5): Use $(no-as-needed).
1385 (LDFLAGS-tst-cancel24): Likewise.
1387 2012-05-02 Paul Pluzhnikov <ppluzhnikov@google.com>
1389 * sysdeps/i386/pthread_spin_lock.S: New.
1390 * sysdeps/i386/pthread_spin_lock.c: Delete.
1391 * sysdeps/x86_64/pthread_spin_lock.S: New.
1392 * sysdeps/x86_64/pthread_spin_lock.c: Delete.
1394 2012-04-28 Andreas Schwab <schwab@linux-m68k.org>
1396 * Makefile ($(objpfx)tst-stack3-mem, $(objpfx)tst-tls6.out): Don't
1397 run when cross-compiling.
1399 2012-04-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1401 * sysdeps/pthread/unwind-forcedunwind.c: Include gnu/lib-names.h
1402 instead of libgcc_s.h.
1404 2012-04-20 Paul Pluzhnikov <ppluzhnikov@google.com>
1406 * sysdeps/x86_64/tls.h (TLS_GET_FS, TLS_SET_FS): Delete.
1408 2012-03-27 David S. Miller <davem@davemloft.net>
1410 * tst-cond16.c (do_test): Use a thread stack size which is either
1411 PTHREAD_STACK_MIN or the page size, whichever is larger.
1412 * tst-cond18.c (do_test): Likewise.
1414 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
1416 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Use
1417 register char * __asm__("rsp") to get stack frame.
1419 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
1421 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (SYS_futex): Use
1422 __NR_futex directly.
1424 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
1426 * unwind.c (unwind_stop): Cast _Unwind_GetCFA return to
1429 2012-03-16 David S. Miller <davem@davemloft.net>
1432 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: Include using <..>
1434 * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c:
1437 2012-03-15 David S. Miller <davem@davemloft.net>
1440 * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: New file.
1442 2012-03-09 Paul Eggert <eggert@cs.ucla.edu>
1445 * pt-crti.S: Replace FSF snail mail address with URL.
1447 2012-03-09 Joseph Myers <joseph@codesourcery.com>
1449 * sysdeps/pthread/pthread.h (__need_clockid_t, __need_timespec):
1450 Do not define before including <time.h>.
1452 2012-03-08 David S. Miller <davem@davemloft.net>
1454 * sysdeps/unix/sysv/linux/sparc/sem_post.c: Update copyright year.
1456 2012-03-08 Thomas Schwinge <thomas@codesourcery.com>
1458 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
1459 Check for timestamp before the Epoch.
1461 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Fix
1464 * tst-sem13.c (do_test): Add another test case.
1465 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
1466 Fix updating nwaiters.
1468 2012-03-07 Joseph Myers <joseph@codesourcery.com>
1471 * sysdeps/pthread/configure.in (libc_cv_forced_unwind): Change
1472 link test to a compile test.
1473 (libc_cv_c_cleanup): Likewise. Declare puts rather than including
1475 * sysdeps/pthread/configure: Regenerated.
1477 2012-03-07 Ulrich Drepper <drepper@gmail.com>
1479 * Makefile (distribute): Remove variable.
1481 2012-01-23 Thomas Schwinge <thomas@codesourcery.com>
1483 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Get rid of
1484 superfluous assignment.
1485 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c (sem_timedwait):
1487 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
1488 (sem_timedwait): Likewise.
1490 2012-03-06 Ulrich Drepper <drepper@gmail.com>
1492 * sysdeps/pthread/bits/libc-lock.h: Move information not needed in
1493 installed headers to...
1494 * sysdeps/pthread/bits/libc-lockP.h: ...here. New file.
1496 2012-03-06 David S. Miller <davem@davemloft.net>
1498 * sysdeps/unix/sysv/linux/sparc/sem_post.c (__new_sem_post): Use
1499 atomic_increment and remove unused local variable.
1500 (__old_sem_post): Likewise.
1502 2012-02-27 David S. Miller <davem@davemloft.net>
1504 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Don't refer to
1505 non-existing __pthread_attr.
1506 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
1507 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
1508 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
1509 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
1510 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
1512 2012-02-26 Ulrich Drepper <drepper@gmail.com>
1514 * sysdeps/pthread/pthread.h: Define __need_clockid_t for __USE_XOPEN2K.
1516 * sysdeps/pthread/pthread.h: Define __need_timespec before including
1518 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Name pthread_attr_t
1520 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
1521 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
1522 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
1523 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
1524 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
1526 2012-02-21 Joseph Myers <joseph@codesourcery.com>
1529 * Makefile (generated): Remove crti.S, crtn.S, defs.h and
1531 [crti.S not in sysdirs] (omit-deps): Do not append.
1532 [crti.S not in sysdirs] (CFLAGS-pt-initfini.s): Remove variable.
1533 [crti.S not in sysdirs] (pt-initfini.c): Remove vpath directive.
1534 [crti.S not in sysdirs] ($(objpfx)crti.S): Remove rule.
1535 [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
1536 [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
1537 [crti.S not in sysdirs] ($(objpfx)crti.o): Likewise.
1538 [crti.S not in sysdirs] ($(objpfx)crtn.o): Likewise.
1539 [crti.S in sysdirs] (extra-objs): Append unconditionally.
1540 [crti.S in sysdirs] ($(objpfx)crti.o): Define rule
1542 * sysdeps/pthread/pt-initfini.c: Remove file.
1544 2012-02-16 Richard Henderson <rth@twiddle.net>
1546 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: Remove file.
1547 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: Remove file.
1549 2012-02-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1551 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: Remove file.
1553 2012-02-16 David S. Miller <davem@davemloft.net>
1555 * sysdeps/sparc/Makefile: Add -fPIC when building pt-crti.S and crtn.S
1557 2012-02-15 Marek Polacek <polacek@redhat.com>
1559 * sysdeps/unix/sysv/linux/x86_64/Makefile: Remove file.
1561 2012-02-09 Paul Eggert <eggert@cs.ucla.edu>
1563 Replace FSF snail mail address with URLs, as per GNU coding standards.
1565 2012-02-08 Andreas Schwab <schwab@linux-m68k.org>
1567 * Makefile (extra-objs) [crti.S in sysdirs]: Add pt-crti.o.
1569 2012-02-08 Joseph Myers <joseph@codesourcery.com>
1571 Support crti.S and crtn.S provided directly by architectures.
1572 * Makefile [crti.S in sysdirs] (omit-deps): Do not append.
1573 [crti.S in sysdirs] (CFLAGS-pt-initfini.s): Do not define variable.
1574 [crti.S in sysdirs] ($(objpfx)pt-initfini.s): Disable rule.
1575 [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
1576 [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
1577 [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
1578 [crti.S in sysdirs] ($(objpfx)crti.o): Likewise.
1579 [crti.S in sysdirs] ($(objpfx)crtn.o): Likewise.
1580 [crti.S in sysdirs] (pt-initfini.c): Remove vpath directive.
1581 [crti.S in sysdirs] ($(objpfx)crti.o): New rule.
1582 * pt-crti.S: New file.
1583 * sysdeps/unix/sysv/linux/i386/Makefile: Remove file.
1585 2012-02-03 Joseph Myers <joseph@codesourcery.com>
1587 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
1588 macros for PIC register setup.
1589 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
1590 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
1591 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
1592 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
1593 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
1595 2012-01-11 Marek Polacek <polacek@redhat.com>
1597 * forward.c (FORWARD_NORETURN): Define macro.
1598 (__pthread_unwind): Use FORWARD_NORETURN macro to avoid warning.
1599 (__pthread_exit): Likewise.
1601 2012-01-10 Ulrich Drepper <drepper@gmail.com>
1603 * sysdeps/pthread/pthread.h: Add const attribute to pthread_equal.
1605 * pthreadP.h: Add noreturn to __pthread_exit.
1606 * sysdeps/pthread/pthread-functions.h: Likewise for ptr___pthread_exit.
1608 2011-12-30 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1610 * sysdeps/unix/sysv/linux/aio_misc.h (__aio_create_helper_thread):
1611 Call pthread_attr_setstacksize() with result of
1612 __pthread_get_minstack() to account for application TLS usage.
1614 2012-01-08 Marek Polacek <polacek@redhat.com>
1616 * sysdeps/unix/sysv/linux/mq_notify.c: Include <nptl/pthreadP.h>.
1618 2012-01-07 Ulrich Drepper <drepper@gmail.com>
1621 * pthreadP.h: Use const instead of __const.
1622 * semaphore.h: Likewise.
1623 * sysdeps/pthread/bits/libc-lock.h: Likewise.
1624 * sysdeps/pthread/bits/sigthread.h: Likewise.
1625 * sysdeps/pthread/pthread.h: Likewise.
1627 * Makefile: Remove elf=yes test, only ELF is supported.
1629 * shlib-versions: Remove entries for ports architectures.
1631 In case anyone cares, the IA-64 architecture could move to ports.
1632 * sysdeps/ia64/*: Removed.
1633 * sysdeps/unix/sysv/linux/ia64/*: Removed.
1635 2011-12-22 Ulrich Drepper <drepper@gmail.com>
1637 * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread): Use
1638 __pthread_get_minstack.
1639 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
1642 * sysdeps/unix/sysv/linux/timer_routines.c: Get minimum stack size
1643 through __pthread_get_minstack.
1644 * nptl-init.c (__pthread_initialize_minimal_internal): Get page size
1645 directly from _rtld_global_ro.
1646 (__pthread_get_minstack): New function.
1647 * pthreadP.h: Declare __pthread_get_minstack.
1648 * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_get_minstack.
1650 2011-12-21 Ulrich Drepper <drepper@gmail.com>
1653 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1654 Correct reading name from file.
1656 2011-12-14 Carlos O'Donell <carlos@systemhalted.org>
1658 * allocatestack.c (allocate_stack): Return errno on failure.
1660 2011-12-14 Jeff Law <law@redhat.com>
1663 * pthread_create.c (__pthread_create_2_1): Translate ENOMEM to EAGAIN.
1665 2011-11-28 Andreas Schwab <schwab@redhat.com>
1667 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Handle
1668 EAGAIN from FUTEX_WAIT_REQUEUE_PI.
1669 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1671 2011-11-15 Ulrich Drepper <drepper@gmail.com>
1673 * pthread_getattr_np.c (pthread_getattr_np): Set FD_CLOEXEC for
1676 2011-10-29 Ulrich Drepper <drepper@gmail.com>
1679 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1680 (__pthread_cond_timedwait): Initialize %r15 correctly also for code
1681 path for kernels with FUTEX_CLOCK_REALTIME.
1682 Debugged by H.J. Lu <hjl.tools@gmail.com>.
1684 2011-10-27 Andreas Schwab <schwab@redhat.com>
1687 * sysdeps/pthread/pthread.h: Use __THREADNL instead of __THREAD
1688 for memory synchronization functions.
1689 * semaphore.h: Likewise.
1691 2011-10-24 Ulrich Drepper <drepper@gmail.com>
1693 * tst-cancel7.c: Avoid warning.
1694 * tst-mutex6.c: Likewise.
1695 * tst-mutex9.c: Likewise.
1696 * tst-mutexpi6.c: Likewise.
1698 2011-10-23 Ulrich Drepper <drepper@gmail.com>
1700 * sysdeps/i386/tls.h: Remove #include <list.h>.
1702 2011-10-15 Ulrich Drepper <drepper@gmail.com>
1704 * pthread_create.c (start_thread): Call __ctype_init.
1706 2011-09-15 Andreas Schwab <schwab@redhat.com>
1708 * sysdeps/pthread/list.h: Define only list_t if __need_list_t is
1710 (list_add): Add atomic_write_barrier.
1711 * descr.h: Define __need_list_t before including <list.h>.
1712 * nptl-init.c: Include <list.h>
1713 * allocatestack.c: Likewise.
1715 2011-09-11 Ulrich Drepper <drepper@gmail.com>
1717 * sysdeps/i386/tls.h: Remove HAVE_TLS_SUPPORT test.
1718 * sysdeps/ia64/tls.h: Likewise.
1719 * sysdeps/powerpc/tls.h: Likewise.
1720 * sysdeps/s390/tls.h: Likewise.
1721 * sysdeps/sh/tls.h: Likewise.
1722 * sysdeps/sparc/tls.h: Likewise.
1723 * sysdeps/x86_64/tls.h: Likewise.
1725 2011-09-10 Ulrich Drepper <drepper@gmail.com>
1727 * sysdeps/pthread/malloc-machine.h: Define MUTEX_INITIALIZER.
1729 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Don't handle
1731 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
1732 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
1733 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
1734 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
1735 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
1736 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
1737 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
1738 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
1739 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
1740 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
1741 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
1742 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
1744 * tst-tls1.c: Support for __thread is now mandatory.
1745 * tst-tls2.c: Likewise.
1746 * tst-tls3.c: Likewise.
1747 * tst-tls3mod.c: Likewise.
1748 * tst-tls4.c: Likewise.
1749 * tst-tls4moda.c: Likewise.
1750 * tst-tls4modb.c: Likewise.
1751 * tst-tls5.h: Likewise.
1753 2011-09-08 Ulrich Drepper <drepper@gmail.com>
1756 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
1757 (pthread_rwlock_timedwrlock): Use correct macro in test.
1758 Patch by H.J. Lu <hongjiu.lu@intel.com>.
1760 2011-09-06 Ulrich Drepper <drepper@gmail.com>
1762 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait): Don't
1763 use gettimeofday vsyscall, just call gettimeofday.
1764 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1765 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
1766 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
1768 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
1770 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1771 Simplify __vdso_clock_gettime use.
1773 2011-09-05 David S. Miller <davem@davemloft.net>
1775 * sysdeps/unix/sysv/linux/sem_timedwait.c (do_futex_timed_wait):
1777 (sem_timedwait): Call it to force an exception region around
1778 the async cancel enable and the futex operation.
1779 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Likewise.
1780 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Likewise.
1781 * sysdeps/unix/sysv/linux/sem_wait.c (do_futex_wait): New function.
1782 (__new_sem_wait): Call it to force an exception region around
1783 the async cancel enable and the futex operation.
1784 * sysdeps/unix/sysv/linux/sparc/sem_wait.c: Likewise.
1785 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Likewise.
1787 2011-08-31 Andreas Schwab <schwab@redhat.com>
1789 * allocatestack.c (setxid_mark_thread): Ensure that the exiting
1792 2011-08-20 David S. Miller <davem@davemloft.net>
1794 * Makefile (tst-cleanup0.out): Fix typo in output redirection.
1796 2011-08-14 Roland McGrath <roland@hack.frob.com>
1798 * sysdeps/i386/pthreaddef.h (TCB_ALIGNMENT): Set to 64, optimal on Atom.
1799 * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Likewise.
1801 2011-08-08 Andreas Schwab <schwab@redhat.com>
1803 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Maintain aligned
1805 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1806 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1808 2011-07-22 Ulrich Drepper <drepper@gmail.com>
1810 * sysdeps/pthread/unwind-forcedunwind.c (_Unwind_Resume): Add read
1812 (__gcc_personality_v0): Likewise.
1813 (_Unwind_ForcedUnwind): Likewise.
1814 (_Unwind_GetCFA): Likewise.
1816 2011-07-14 Roland McGrath <roland@hack.frob.com>
1818 * allocatestack.c (__reclaim_stacks): Use uintptr_t cast rather than
1821 2011-06-30 Ulrich Drepper <drepper@gmail.com>
1823 * nptl-init.c (__nptl_set_robust): New function.
1824 (pthread_functions): Add reference.
1825 * npthreadP.h: Declare __nptl_set_robust.
1826 * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
1827 ptr_set_robust member.
1828 * sysdeps/unix/sysv/linux/fork.c: Call set_robust_list syscall in
1829 child if threads are used.
1831 2011-06-14 Andreas Jaeger <aj@suse.de>
1833 * pthread_rwlock_init.c: Include <string.h> for memset declaration.
1835 2011-05-11 Ulrich Drepper <drepper@gmail.com>
1838 * allocatestack.c (allocate_stack): Convert ENOMEM error to EAGAIN.
1840 2011-04-10 Ulrich Drepper <drepper@gmail.com>
1843 * allocatestack.c (get_cached_stack): Deallocate DTV entries before
1845 Patch partly by Robert Rex <robert.rex@exasol.com>.
1847 2011-01-19 Roland McGrath <roland@redhat.com>
1849 * pthread_cond_wait.c (__pthread_cond_wait): Fix comment typo.
1850 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
1851 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Likewise.
1852 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
1853 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise.
1854 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Likewise.
1856 2011-01-16 Andreas Schwab <schwab@linux-m68k.org>
1858 * Makefile (test-extras): Add tst-cleanup4aux.
1860 2011-01-14 Ulrich Drepper <drepper@gmail.com>
1863 * sysdeps/pthread/setxid.h (__SETXID_1): Add cast to assignment.
1864 (__SETXID_2): Likewise.
1865 (__SETXID_3): Likewise.
1867 2011-01-13 Ulrich Drepper <drepper@gmail.com>
1870 * Versions [libc] (GLIBC_PRIVATE): Export __libc_alloca_cutoff.
1871 * alloca_cutoff.c: Add libc_hidden_def.
1873 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
1876 * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Changed to 32.
1877 * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Defined with alignment
1878 of "struct pthread".
1880 2010-09-21 Andreas Schwab <schwab@redhat.com>
1882 * sysdeps/pthread/pthread.h (pthread_cleanup_push)
1883 [!__EXCEPTIONS]: Mangle local variable not_first_call.
1884 (pthread_cleanup_push_defer_np): Likewise.
1886 2010-09-03 Ulrich Drepper <drepper@redhat.com>
1888 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Expect blocks are
1891 2010-08-10 Dinakar Guniguntala <dino@in.ibm.com>
1892 Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
1894 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: If
1895 FUTEX_WAKE_OP fails make sure to call FUTEX_WAKE instead.
1897 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
1899 * sysdeps/unix/sysv/linux/i386/Makefile: New file.
1901 2010-05-01 Alan Modra <amodra@gmail.com>
1903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
1904 (PSEUDO): Use correct cr save. Don't use wrong parm save area
1905 to save temps. Correct cfi for possible later frame manipulation.
1906 (DOCARGS_1, UNDOCARGS_1): Use the correct parm save area.
1907 (DOCARGS_2, UNDOCARGS_2, DOCARGS_3, UNDOCARGS_3): Likewise.
1908 (DOCARGS_4, UNDOCARGS_4, DOCARGS_5, UNDOCARGS_5): Likewise.
1909 (DOCARGS_6, UNDOCARGS_6): Likewise.
1910 (CENABLE, CDISABLE): Add nops for non-shared calls.
1912 2010-07-06 Andreas Schwab <schwab@redhat.com>
1914 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1917 2010-07-03 Ulrich Drepper <drepper@redhat.com>
1919 * tst-abstime.c (do_test): Some more cleanups
1921 2010-07-02 Ulrich Drepper <drepper@redhat.com>
1923 * tst-abstime.c: Correct testing and add test for sem_timedwait.
1925 2010-07-01 Andreas Schwab <schwab@redhat.com>
1926 Ulrich Drepper <drepper@redhat.com>
1928 * Makefile (tests): Add tst-abstime.
1929 * tst-abstime.c: New file.
1930 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1931 (__lll_timedlock_wait): Check for timestamp before the Epoch.
1932 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
1933 (__lll_timedlock_wait): Likewise.
1934 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
1935 (__lll_robust_timedlock_wait): Likewise.
1936 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1937 (__pthread_cond_timedwait): Likewise.
1938 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
1939 (pthread_rwlock_timedrdlock): Likewise.
1940 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
1941 (pthread_rwlock_timedwrlock): Likewise.
1942 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
1945 2010-07-01 Ulrich Drepper <drepper@redhat.com>
1947 * Makefile (tst-_res1): Add tst-_res1mod1 to dependency list.
1949 2010-06-01 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
1951 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Fix incorrect
1952 location of ifndef __ASSUME_FUTEX_CLOCK_REALTIME.
1954 2010-04-09 Ulrich Drepper <drepper@redhat.com>
1957 * sysdeps/unix/sysv/linux/pthread_getname.c: New file.
1958 * sysdeps/unix/sysv/linux/pthread_setname.c: New file.
1959 * nptl/sysdeps/pthread/pthread.h: Declare pthread_getname and
1961 * Makefile (libpthread-routines): Add pthread_getname and
1963 * Versions: Export pthread_getname and pthread_setname for GLIBC_2.12.
1965 2010-04-05 Thomas Schwinge <thomas@schwinge.name>
1967 * sysdeps/pthread/unwind-resume.c: Moved to main tree sysdeps/gnu/.
1968 * sysdeps/pthread/rt-unwind-resume.c: Likewise.
1969 * sysdeps/pthread/Makefile: Remove csu section and rt section's
1970 unwind-resume bits, now in main tree sysdeps/gnu/Makefile instead.
1972 2010-03-23 Luis Machado <luisgpm@br.ibm.com>
1974 * pthread_cond_timedwait.c: Add check for
1975 HAVE_CLOCK_GETTIME_VSYSCALL to use VDSO whenever possible.
1976 (pthread_cond_timedwait): Use INTERNAL_VSYSCALL instead of
1979 2010-03-09 Ulrich Drepper <drepper@redhat.com>
1981 * pthread_create.c (__pthread_create_2_1): If priorities are incorrect
1982 and the call fails wake eventually waiting setxid threads. Don't free
1983 stack here if we try starting a thread.
1984 * sysdeps/pthread/createthread.c (do_clone): Only wake setxid waiter
1985 if the clone call failed.
1987 2010-03-08 Andreas Schwab <schwab@redhat.com>
1989 * pthread_create.c (__pthread_create_2_1): Don't set setxid_futex.
1990 * allocatestack.c (get_cached_stack): Set setxid_futex.
1991 (allocate_stack): Likewise.
1993 2010-03-05 Andreas Schwab <schwab@redhat.com>
1994 Ulrich Drepper <drepper@redhat.com>
1996 * allocatestack.c (setxid_mark_thread): Delay handling of thread if
1997 it is creating a thread or it is just being created.
1998 * pthread_create.c (start_thread): Wake setxid thread if it is
2000 (__pthread_create_2_1): Initialize setxid_futex.
2001 * sysdeps/pthread/createthread.c (do_clone): Wake setxid thread if it
2004 2010-01-15 Ulrich Drepper <drepper@redhat.com>
2006 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2008 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
2010 2010-01-15 Michal Schmidt <mschmidt@redhat.com>
2012 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2013 Fix pthread_cond_timedwait with requeue-PI.
2014 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
2015 Fix pthread_cond_wait with requeue-PI.
2017 2010-01-14 Ulrich Drepper <drepper@redhat.com>
2019 * Versions: Add pthread_mutex_consistent, pthread_mutexattr_getrobust,
2020 and pthread_mutexattr_setrobust for GLIBC_2.12.
2021 * pthread_mutex_consistent.c: Define alias pthread_mutex_consistent.
2022 * pthread_mutexattr_getrobust.c: Define alias
2023 pthread_mutexattr_getrobust.
2024 * pthread_mutexattr_setrobust.c: Define alias
2025 pthread_mutexattr_setrobust.
2027 2010-01-12 Ulrich Drepper <drepper@redhat.com>
2029 * sysdeps/pthread/pthread.h: Cleanup. Fix up for XPG7.
2031 2010-01-08 Ulrich Drepper <drepper@redhat.com>
2033 * sysdeps/pthread/pthread.h: Fix pthread_mutex_consistent declaration.
2035 2009-12-18 Thomas Schwinge <thomas@codesourcery.com>
2037 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c (_init): Don't
2038 call __gmon_start__.
2039 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c (_init): Likewise.
2041 2009-12-17 Ulrich Drepper <drepper@redhat.com>
2043 * pthread_rwlock_init.c (__pthread_rwlock_init): Simplify code by
2046 2009-12-01 Dinakar Guniguntala <dino@in.ibm.com>
2048 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.h: Define
2049 FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
2050 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: If mutex
2051 is a non robust PI mutex, then use FUTEX_CMP_REQUEUE_PI.
2052 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
2053 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: If mutex
2054 is a non robust PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
2055 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
2057 2009-12-12 Ulrich Drepper <drepper@redhat.com>
2059 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
2060 Don't update nwaiters after invalid timeout is recognized.
2062 2009-11-27 Thomas Schwinge <thomas@codesourcery.com>
2064 * sysdeps/unix/sysv/linux/sh/pt-initfini.c (_init): Don't call
2067 2009-11-27 Andreas Schwab <schwab@redhat.com>
2069 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Reload
2070 THREAD_SELF->cancelhandling after returning from futex call.
2072 2009-11-24 Ulrich Drepper <drepper@redhat.com>
2074 * tst-sem13.c: New file.
2075 * Makefile (tests): Add tst-sem13.
2077 2009-11-22 Roland McGrath <roland@redhat.com>
2079 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: # include "i686/dl-sysdep.h"
2080 instead of recapitulating its contents.
2082 2009-11-18 Ulrich Drepper <drepper@redhat.com>
2084 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Minor
2085 optimizations and cleanups.
2087 2009-11-18 Dinakar Guniguntala <dino@in.ibm.com>
2089 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2090 Remove redundant code. Fix cfi offsets.
2091 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2094 2009-11-17 Ulrich Drepper <drepper@redhat.com>
2096 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Minimally
2097 reduce size of unwind info.
2099 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Convert to use
2101 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
2102 Based on a patch by Dinakar Guniguntala <dino@in.ibm.com>.
2104 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
2107 * sysdeps/pthread/unwind-resume.c: Include <libgcc_s.h> and use
2109 * sysdeps/pthread/unwind-forcedunwind.c: Likewise.
2111 2009-10-30 Ulrich Drepper <drepper@redhat.com>
2113 * tst-sem11.c (main): Rewrite to avoid aliasing problems.
2116 * allocatestack.c (__nptl_setxid): Perform the operation in multiple
2117 steps to avoid races with creation and terminations.
2118 * nptl-init.c (sighandler_setxid): Adjust.
2119 Patch by Daniel Jacobowitz.
2121 2009-09-07 Andreas Schwab <schwab@redhat.com>
2123 * sysdeps/pthread/bits/libc-lock.h (BP_SYM): Remove space before paren.
2125 2009-09-02 Suzuki K P <suzuki@in.ibm.com>
2126 Joseph Myers <joseph@codesourcery.com>
2129 * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
2130 Initialize the sigev_notify field for newly created timer to make sure
2131 the timer gets deleted from the active timer's list upon timer_delete.
2133 2009-08-27 Andrew Stubbs <ams@codesourcery.com>
2135 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
2136 Correct a logic error.
2138 2009-08-25 Ulrich Drepper <drepper@redhat.com>
2140 * sysdeps/x86_64/tls.h (RTLD_ENABLE_FOREIGN_CALL): Store old value
2141 of the field in local variables.
2142 (RTLD_FINALIZE_FOREIGN_CALL): Restore rtld_must_xmm_save from local
2143 variable and don't unconditionally clear it.
2145 2009-08-24 Ulrich Drepper <drepper@redhat.com>
2147 * pthread_create.c (start_thread): Hint to the kernel that memory for
2148 the stack can be reused. We do not mark all the memory. The part
2149 still in use and some reserve are kept.
2151 2009-08-23 Ulrich Drepper <drepper@redhat.com>
2153 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Clean up namespace.
2155 2009-08-11 Ulrich Drepper <drepper@redhat.com>
2157 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Add CFI
2160 2009-08-10 Ulrich Drepper <drepper@redhat.com>
2162 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Add CFI
2164 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
2166 2009-08-10 Andreas Schwab <schwab@redhat.com>
2168 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
2169 (__pthread_cond_signal): Don't clobber register used for syscall
2172 2009-08-08 Ulrich Drepper <drepper@redhat.com>
2174 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
2175 Optimize code path used when FUTEX_CLOCK_REALTIME is supported.
2177 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2178 (__pthread_cond_wait): Optimize by avoiding use of callee-safe
2181 2009-08-07 Ulrich Drepper <drepper@redhat.com>
2183 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Little optimizations
2184 enabled by the special *_asynccancel functions.
2185 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2186 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
2188 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include lowlevellock.h.
2190 2009-08-04 Ulrich Drepper <drepper@redhat.com>
2192 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: New file.
2193 * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: New file.
2194 * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: New file.
2195 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Optimize
2196 since we can assume the special __*_{en,dis}able_asynccancel
2198 (PUSHARGS_*, POPARGS_*, SAVESTK_*, RESTSTK_*): Removed.
2199 * sysdeps/x86_64/tcb-offsets.sym: Add cancellation-related bits
2200 and PTHREAD_CANCELED.
2202 2009-07-31 Ulrich Drepper <drepper@redhat.com>
2204 * descr.h: Better definition of *_BITMASK macros for cancellation.
2206 2009-07-29 Ulrich Drepper <drepper@redhat.com>
2208 * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Define explicitly to 32.
2210 * sysdeps/x86_64/tls.h (tcbhead_t): Add room for SSE registers the
2211 dynamic linker might have to save.
2212 Define RTLD_CHECK_FOREIGN_CALL, RTLD_ENABLE_FOREIGN_CALL,
2213 RTLD_PREPARE_FOREIGN_CALL, and RTLD_FINALIZE_FOREIGN_CALL. Pretty
2216 * sysdeps/x86_64/tcb-offsets.sym: Add RTLD_SAVESPACE_SSE.
2218 2009-07-28 Ulrich Drepper <drepper@redhat.com>
2220 * pthread_mutex_lock.c [NO_INCR] (__pthread_mutex_cond_lock_adjust):
2222 * pthreadP.h: Declare __pthread_mutex_cond_lock_adjust.
2223 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add ROBUST_BIT.
2224 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Don't use
2225 requeue_pi for robust mutexes.
2226 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
2227 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
2228 Don't only skip __pthread_mutex_cond_lock. Call instead
2229 __pthread_mutex_cond_lock_adjust.
2230 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2232 * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Minor
2233 optimization of PI mutex handling.
2235 2009-07-27 Ulrich Drepper <drepper@redhat.com>
2238 * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Use _rel
2239 instead of of _acq variants of cmpxchg.
2241 2009-07-23 Ulrich Drepper <drepper@redhat.com>
2243 * sysdeps/x86_64/configure.in: New file.
2245 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix error
2246 path when not using absolute timeout futex.
2248 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2250 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Minor
2251 optimizations of last changes.
2252 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2254 2009-07-19 Ulrich Drepper <drepper@redhat.com>
2256 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
2257 FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
2258 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: If mutex
2259 is a PI mutex, then use FUTEX_CMP_REQUEUE_PI.
2260 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
2261 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: If mutex
2262 is a PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
2263 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
2265 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2266 (__pthread_cond_timedwait): Make more robust.
2268 2009-07-18 Ulrich Drepper <drepper@redhat.com>
2270 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
2271 (__lll_robust_timedlock_wait): If possible use FUTEX_WAIT_BITSET to
2272 directly use absolute timeout.
2274 * tst-sem5.c (do_test): Add test for premature timeout.
2275 * Makefile: Linu tst-sem5 with librt.
2277 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
2278 (pthread_rwlock_timedwrlock): If possible use FUTEX_WAIT_BITSET to
2279 directly use absolute timeout.
2280 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
2281 (pthread_rwlock_timedrdlock): Likewise.
2283 * tst-cond11.c (run_test): Add test to check that the timeout is
2286 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2287 (__pthread_cond_timedwait): If possible use FUTEX_WAIT_BITSET to
2288 directly use absolute timeout.
2290 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2291 (__pthread_cond_wait): Convert to using exception handler instead of
2292 registered unwind buffer.
2293 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2294 (__pthread_cond_timedwait): Likewise.
2296 2009-07-17 Ulrich Drepper <drepper@redhat.com>
2298 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
2299 If possible use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME to directly
2300 use absolute timeout.
2302 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Optimize
2303 handling of uncontested semaphore.
2305 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2306 (__condvar_cleanup): Rewrite to use cfi directives instead of
2307 hand-coded unwind tables.
2308 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S (__pthread_once):
2310 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
2311 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
2314 2009-06-12 Ulrich Drepper <drepper@redhat.com>
2316 * Makefile (libpthread-routines): Add pthread_sigqueue.
2317 * Versions: Add pthread_sigqueue for GLIBC_2.11.
2318 * sysdeps/pthread/bits/sigthread.h: Declare pthread_sigqueue.
2319 * sysdeps/unix/sysv/linux/pthread_sigqueue.c: New file.
2321 2009-06-11 Ulrich Drepper <drepper@redhat.com>
2324 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
2325 (LOAD_FUTEX_WAIT_ABS): Fix futex parameter in case private futexes
2327 Patch by Bryan Kadzban <bz-glibc@kdzbn.homelinux.net>.
2329 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2331 * libc-cancellation.c: Move __libc_cleanup_routine to...
2332 * libc-cleanup.c: ...here. New file.
2333 * Makefile (routines): Add libc-cleanup.
2335 * cancellation.c (__pthread_disable_asynccancel): Remove unnecessary
2337 * libc-cancellation.c: Use <nptl/cancellation.c: to define the code.
2338 * sysdeps/pthread/librt-cancellation.c: Likewise.
2341 * nptl-init.c: Renamed from init.c.
2342 * Makefile: Change all occurences of init.c to nptl-init.c.
2344 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2346 * cancellation.c (__pthread_disable_asynccancel): Correct the bits
2347 to test when deciding on the delay.
2348 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
2349 * pthread_cancel.c: Close race between deciding on sending a signal
2350 and setting the CANCELING_BIT bit.
2352 * cancellation.c (__pthread_disable_asynccancel): Don't return if
2354 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
2356 2009-04-27 Ulrich Drepper <drepper@redhat.com>
2358 * cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND
2360 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
2361 * sysdeps/x86_64/tls.h: Define THREAD_ATOMIC_AND.
2362 * sysdeps/i386/tls.h: Likewise.
2363 (tcbhead_t): Add __private_tm member.
2365 2009-04-26 Ulrich Drepper <drepper@redhat.com>
2367 * sem_open.c (sem_open): Rewrite initialization of initsem to
2370 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
2371 Avoid warning by using may_alias attribute on ptrhack.
2373 2009-04-22 Ulrich Drepper <drepper@redhat.com>
2376 * pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
2377 Check policy and priority for validity.
2378 Patch mostly by Zhang Xiliang <zhangxiliang@cn.fujitsu.com>.
2380 2009-03-15 Ulrich Drepper <drepper@redhat.com>
2382 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2383 (__pthread_cond_timedwait): Change to use cfi directives instead of
2384 hand-coded unwind sections.
2386 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2388 * init.c (nptl_freeres): Compile only for SHARED.
2390 2009-03-09 Jakub Jelinek <jakub@redhat.com>
2392 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define
2393 FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME and
2394 FUTEX_BITSET_MATCH_ANY.
2396 2009-02-27 Roland McGrath <roland@redhat.com>
2398 * init.c (__nptl_initial_report_events): Mark __attribute_used__.
2399 * pthread_create.c (__nptl_threads_events, __nptl_last_event): Likewise.
2401 2009-02-26 Ulrich Drepper <drepper@redhat.com>
2403 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
2404 _POSIX_THREAD_ROBUST_PRIO_INHERIT and
2405 _POSIX_THREAD_ROBUST_PRIO_PROTECT. Reset value of macros from
2408 2009-02-25 Ulrich Drepper <drepper@redhat.com>
2410 * sysdeps/pthread/pthread.h: The robust mutex functions are in
2413 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2415 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_BITS_POSIX_OPT_H):
2416 Unify name of include protector macro.
2418 2009-02-14 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2420 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
2421 LOAD_FUTEX_WAIT_ABS even if (FUTEX_WAIT == 0).
2423 2009-01-29 Ulrich Drepper <drepper@redhat.com>
2425 * sysdeps/pthread/unwind-forcedunwind.c: Encrypt all function
2428 * allocatestack.c (__free_stacks): Renamed from free_stacks.
2429 (__free_stack_cache): Removed. Change callers to call __free_stacks.
2430 * init.c (nptl_freeres): New function.
2431 (pthread_functions): Initialize ptr_freeres to nptl_freeres.
2432 * pthreadP.h: Don't declare __free_stack_cache. Declare __free_stacks.
2433 * sysdeps/pthread/unwind-forcedunwind.c (libgcc_s_handle): New
2435 (pthread_cancel_init): Depend in libgcc_s_handle for decision to
2436 load DSO. Assign last.
2437 (__unwind_freeres): New function.
2439 * allocatestack.c (__reclaim_stacks): Reset in_flight_stack later
2440 for better debugging. No need to use stack_list_add here.
2442 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2444 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
2445 (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
2446 instead of computing relative timeout.
2447 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
2448 FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
2450 2009-01-25 Ulrich Drepper <drepper@redhat.com>
2452 * pthread_mutex_lock.c (__pthread_mutex_lock): Remove unused label out.
2454 2009-01-08 Ulrich Drepper <drepper@redhat.com>
2456 * sysdeps/pthread/list.h (list_add): Initialize new element first.
2457 (list_add_tail): Removed.
2459 2009-01-07 Ulrich Drepper <drepper@redhat.com>
2461 * (in_flight_stack): New variable.
2462 (stack_list_del): New function. Use instead of list_del.
2463 (stack_list_add): New function. Use instead of list_add when adding to
2464 stack_cache and stack_used lists.
2465 (__reclaim_stacks): Complete operations on stack_cache and stack_used lists
2466 when the fork call interrupted another thread.
2468 2009-01-04 Ulrich Drepper <drepper@redhat.com>
2470 * init.c (__pthread_initialize_minimal_internal): Optimize test
2471 FUTEX_CLOCK_REALTIME a bit.
2473 2009-01-03 Ulrich Drepper <drepper@redhat.com>
2475 * init.c (__pthread_initialize_minimal_internal): Cheat a bit by
2476 only passing five parameters to FUTEX_WAIT_BITSET call.
2478 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
2479 (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
2480 instead of computing relative timeout.
2482 2009-01-02 Ulrich Drepper <drepper@redhat.com>
2484 * init.c (__pthread_initialize_minimal_internal): Check for
2485 FUTEX_CLOCK_REALTIME flag.
2486 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
2487 Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME instead of computing
2490 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
2491 FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
2492 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2493 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2494 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2495 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2497 2008-12-09 Ulrich Drepper <drepper@redhat.com>
2499 * sysdeps/pthread/pthread.h (pthread_cleanup_pop): Use { } as empty
2500 loop body instead of ; to avoid gcc warnings.
2501 (pthread_cleanup_pop_restore_np): Likewise.
2502 Patch by Caolán McNamara <caolanm@redhat.com>.
2504 2008-12-09 Jakub Jelinek <jakub@redhat.com>
2506 * pthread_mutex_lock.c (__pthread_mutex_lock): Handle only the
2507 fast path here, for robust/PI/PP mutexes call
2508 __pthread_mutex_lock_full. Don't use switch, instead use a series
2509 of ifs according to their probability.
2510 (__pthread_mutex_lock_full): New function.
2511 * pthread_mutex_unlock.c: Include assert.h.
2512 (__pthread_mutex_unlock_usercnt): Handle only the
2513 fast path here, for robust/PI/PP mutexes call
2514 __pthread_mutex_unlock_full. Don't use switch, instead use a series
2515 of ifs according to their probability.
2516 (__pthread_mutex_unlock_full): New function.
2517 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
2518 (__pthread_mutex_lock_full): Define.
2520 2008-12-08 Ulrich Drepper <drepper@redhat.com>
2522 * sysdeps/x86_64/tls.h (tcbhead_t): Add fields reserved for TM
2523 implementation. Add necessary padding and.
2524 * descr.h (struct pthread): Increase padding for tcbhead_t to 24
2527 2008-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2529 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define FUTEX_WAIT_BITSET
2530 and FUTEX_WAKE_BITSET.
2532 2008-12-02 Ulrich Drepper <drepper@redhat.com>
2534 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_WAIT_BITSET
2535 and FUTEX_WAKE_BITSET.
2536 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2537 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2538 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2539 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2541 2008-11-25 Roland McGrath <roland@redhat.com>
2543 * sysdeps/alpha, sysdeps/unix/sysv/linux/alpha:
2544 Subdirectories moved to ports repository as
2545 sysdeps/.../nptl subdirectories.
2547 2008-11-12 Jakub Jelinek <jakub@redhat.com>
2550 * pthread_condattr_setclock.c (pthread_condattr_setclock): Fix masking
2552 * pthread_cond_init.c (__pthread_cond_init): Fix
2553 cond->__data.__nwaiters initialization.
2554 * Makefile (tests): Add tst-cond23.
2555 * tst-cond23.c: New test.
2557 2008-11-07 Jakub Jelinek <jakub@redhat.com>
2559 * sysdeps/pthread/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2561 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2564 2008-11-01 Ulrich Drepper <drepper@redhat.com>
2567 * pthread_mutex_lock.c: Add support for private PI mutexes.
2568 * pthread_mutex_timedlock.c: Likewise.
2569 * pthread_mutex_trylock.c: Likewise.
2570 * pthread_mutex_unlock.c: Likewise.
2571 Patch mostly by Ben Jackson <ben@ben.com>.
2573 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2576 * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread):
2577 Increase stack size for helper thread.
2579 2008-10-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2581 * sysdeps/s390/tls.h (THREAD_SET_STACK_GUARD): Add empty inline
2582 assembly with a clobber list for access registers a0 and a1.
2584 2008-09-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
2586 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
2587 to force runp->refcntr to be read from memory.
2589 2008-09-08 Richard Guenther <rguenther@suse.de>
2591 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock,
2592 lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
2593 lll_timedlock, lll_robust_timedlock, lll_unlock,
2594 lll_robust_unlock): Promote private to int.
2596 2008-08-15 Ulrich Drepper <drepper@redhat.com>
2598 * sysdeps/x86_64/pthreaddef.h: Remove ARCH_MAP_FLAGS and
2599 ARCH_RETRY_MMAP definitions.
2600 * allocatestack.c: Remove definition of ARCH_MAP_FLAGS.
2601 Define MAP_STACK when not defined.
2602 (allocate_stack): Use MAP_STACK instead of ARCH_MAP_FLAGS. Remove
2603 handling of ARCH_RETRY_MMAP.
2605 2008-07-30 Ulrich Drepper <drepper@redhat.com>
2607 * tst-align2.c (f): Print message that f is reached.
2609 2008-04-28 Hiroki Kaminaga <kaminaga@sm.sony.co.jp>
2612 * sysdeps/powerpc/tcb-offsets.sym (PRIVATE_FUTEX_OFFSET): Guard symbol
2613 definition with #ifndef __ASSUME_PRIVATE_FUTEX.
2615 2008-07-25 Ulrich Drepper <drepper@redhat.com>
2617 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Use
2618 SOCK_CLOEXEC if possible.
2620 2008-05-29 Ulrich Drepper <drepper@redhat.com>
2622 * Makefile (tests): Add tst-rwlock2a.
2623 * tst-rwlock2.c: Use TYPE macro to decide what rwlock type to use.
2624 * tst-rwlock2a.c: New file.
2626 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2628 * sysdeps/pthread/pthread.h: Remove inadvertant checkin.
2630 2008-05-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2632 * sysdeps/pthread/pthread.h: Fix typo in comment.
2634 2008-05-28 Ulrich Drepper <drepper@redhat.com>
2636 * sysdeps/pthread/createthread.c (do_clone): Pass accurate length
2637 of CPU set to the kernel.
2639 2008-05-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2641 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Add
2643 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
2644 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
2645 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
2646 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
2647 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
2648 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
2650 2008-05-22 Paul Pluzhnikov <ppluzhnikov@google.com>
2652 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: Add
2654 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2656 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2658 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2661 2008-05-26 Ulrich Drepper <drepper@redhat.com>
2663 * tst-typesizes.c: Explicitly check __SIZEOF_PTHREAD_* constants.
2665 2008-05-20 Jakub Jelinek <jakub@redhat.com>
2667 David S. Miller <davem@davemloft.net>
2669 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
2671 2008-05-10 Ulrich Drepper <drepper@redhat.com>
2673 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Access
2674 __pshared correctly.
2675 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2677 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2679 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2681 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2683 Reported by Clemens Kolbitsch <clemens.kol@gmx.at>.
2685 2008-04-14 David S. Miller <davem@davemloft.net>
2687 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
2688 (__old_sem_wait): Fix argument to lll_futex_wait().
2690 2007-11-26 Daniel Jacobowitz <dan@codesourcery.com>
2692 * pthread_create.c: Require pthread_mutex_trylock and
2693 pthread_key_delete for libgcc.
2695 2008-04-08 Jakub Jelinek <jakub@redhat.com>
2698 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
2699 (lll_futex_wake_unlock): Add private argument to the pre-v9 macro.
2700 Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>.
2702 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2704 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine ARG_MAX if
2705 <linux/limits.h> has defined it.
2706 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
2707 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
2708 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
2709 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
2711 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2713 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Use __ASSEMBLER__ instead
2715 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
2716 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Likewise.
2718 2008-03-14 Ulrich Drepper <drepper@redhat.com>
2720 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
2721 HAVE_DL_DISCOVER_OSVERSION.
2722 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
2723 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Likewise.
2725 2008-03-07 Ulrich Drepper <drepper@redhat.com>
2728 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2729 _POSIX_CHOWN_RESTRICTED value to zero.
2731 2008-01-31 Roland McGrath <roland@redhat.com>
2733 * Makefile (omit-deps): Variable removed.
2735 2008-01-30 Ulrich Drepper <drepper@redhat.com>
2737 * sysdeps/unix/sysv/linux/x86_64/sem_post.S (sem_post): Avoid
2738 unnecessary addr32 prefix.
2740 2008-01-29 Roland McGrath <roland@redhat.com>
2742 * Makeconfig (ptw-CPPFLAGS, sysd-rules-patterns): New variables.
2744 2008-01-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2746 * sysdeps/unix/sysv/linux/sh/sem_post.S: Don't overflow value field.
2748 2008-01-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2750 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XADD): Use
2752 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
2753 (__lll_lock_wait_private): Fix typo.
2754 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
2755 (pthread_barrier_wait): Likewise. Adjust XADD use.
2756 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
2758 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
2759 (pthread_rwlock_timedrdlock): Return correct return value.
2760 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
2761 (pthread_rwlock_timedwrlock): Likewise.
2763 2008-01-15 Ulrich Drepper <drepper@redhat.com>
2765 * tst-eintr2.c (do_test): make sure that if mutex_lock in main
2766 thread returns the program exits with an error code.
2768 2008-01-10 Ulrich Drepper <drepper@redhat.com>
2770 * pthread-errnos.sym: Add EOVERFLOW.
2771 * sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX.
2772 * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field.
2773 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
2774 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
2776 2007-12-14 Ulrich Drepper <drepper@redhat.com>
2778 * sysdeps/x86_64/pthreaddef.h (ARCH_RETRY_MMAP): Take additional
2779 parameter. Passed it as permission to mmap.
2780 * allocatestack.c (allocate_stack): Pass prot as second parameter
2783 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2785 * tst-basic7.c: Allocate memory for the stack.
2788 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S [!SHARED]
2789 (__pthread_cond_timedwait): Don't use VDSO.
2790 Patch by Michal Januszewski.
2792 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2795 * sysdeps/pthread/pthread.h [!__EXCEPTIONS] (pthread_cleanup_pop):
2796 Allow label before pthread_cleanup_pop.
2797 (pthread_cleanup_pop_restore_np): Likewise.
2799 2007-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2801 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
2802 Store 2 before returning ETIMEDOUT.
2804 2007-11-23 Ulrich Drepper <drepper@redhat.com>
2806 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
2807 Store 2 before returning ETIMEDOUT.
2808 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise
2809 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
2810 (__lll_lock_wait_private): Optimize.
2811 (__lll_lock_wait): Likewise.
2813 2007-11-20 Jakub Jelinek <jakub@redhat.com>
2815 * sysdeps/pthread/pthread.h (pthread_cleanup_push,
2816 pthread_cleanup_push_defer_np): Add extra (void *) cast to shut up
2817 g++ 4.1 and 4.2 -Wstrict-aliasing warnings.
2819 2007-11-08 Ulrich Drepper <drepper@redhat.com>
2822 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
2823 If we time out, try one last time to lock the futex to avoid
2824 losing a wakeup signal.
2825 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
2826 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2829 * sysdeps/pthread/createthread.c (do_clone): Translate clone error
2832 2007-11-07 Ulrich Drepper <drepper@redhat.com>
2835 * allocatestack.c (allocate_stack): Change ENOMEM error in case
2836 mmap failed to EAGAIN.
2837 * Makefile (tests): Add tst-basic7.
2838 * tst-basic7.c: New file.
2840 2007-11-05 Ulrich Drepper <drepper@redhat.com>
2842 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
2843 Use __linkin_atfork.
2845 2007-11-03 Mike Frysinger <vapier@gentoo.org>
2847 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (LOAD_FUTEX_WAIT): Add
2848 missing line continuations.
2849 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S (LOAD_FUTEX_WAIT,
2850 LOAD_FUTEX_WAKE): Likewise. Also add missing 3rd parameter.
2852 2007-10-28 Ulrich Drepper <drepper@redhat.com>
2855 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Declare
2856 __active_timer_sigev_thread and __active_timer_sigev_thread_lock.
2857 (struct timer): Add next element.
2858 * sysdeps/unix/sysv/linux/timer_create.c: For SIGEV_THREAD timers,
2859 enqueue timer structure into __active_timer_sigev_thread list.
2860 * sysdeps/unix/sysv/linux/timer_delete.c: For SIGEV_THREAD timers,
2861 remove timer struct from __active_timer_sigev_thread.
2862 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
2863 Before using timer structure make sure it is still on the
2864 __active_timer_sigev_thread list. Keep lock until done.
2865 Define __active_timer_sigev_thread and
2866 __active_timer_sigev_thread_lock.
2868 2007-10-27 Ulrich Drepper <drepper@redhat.com>
2870 * sysdeps/pthread/malloc-machine.h: Define ATFORK_MEM.
2871 Redefine thread_atfork for use of ATFORK_MEM.
2872 * sysdeps/unix/sysv/linux/fork.h: Define __linkin_atfork.
2873 * sysdeps/unix/sysv/linux/register-atfork.c (__linkin_atfork): New
2875 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
2876 Use atomic operation when removing first element of list.
2878 2007-10-17 Jakub Jelinek <jakub@redhat.com>
2880 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__old_sem_post): New
2881 routine instead of an alias to __new_sem_post.
2883 2007-10-15 Jakub Jelinek <jakub@redhat.com>
2885 * init.c (__pthread_initialize_minimal): Initialize word to appease
2888 2007-10-10 Jakub Jelinek <jakub@redhat.com>
2890 * sysdeps/pthread/bits/libc-lock.h (__libc_rwlock_init): Inside of
2891 libc.so just clear NAME.
2892 (__libc_rwlock_fini): Nop inside of libc.so.
2893 * tst-initializers1.c (main): Test if PTHREAD_RWLOCK_INITIALIZER is
2896 2007-09-02 Ulrich Drepper <drepper@redhat.com>
2898 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2899 (__pthread_cond_wait): Fix unlocking of internal lock after mutex
2901 Patch by Luca Barbieri <luca.barbieri@gmail.com>.
2903 2007-08-21 Ulrich Drepper <drepper@redhat.com>
2906 * allocatestack.c (__reclaim_stacks): Clear the TSD in the
2907 reclaimed stack if necessary.
2908 * Makefile (tests): Add tst-tsd6.
2909 * tst-tsd6.c: New file.
2911 2007-08-21 Jakub Jelinek <jakub@redhat.com>
2913 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_dead):
2914 Add private argument.
2916 2007-08-20 Ulrich Drepper <drepper@redhat.com>
2918 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2919 (__pthread_cond_timedwait): Use clock_gettime from VDSO if possible.
2921 2007-08-16 Jakub Jelinek <jakub@redhat.com>
2923 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h
2924 (__lll_robust_timedlock): Pass private as last argument to
2925 __lll_robust_timedlock_wait.
2926 (__lll_unlock): Fix a pasto.
2928 2007-08-15 Jakub Jelinek <jakub@redhat.com>
2930 * sysdeps/unix/sysv/linux/sparc/internaltypes.h (sparc_new_sem,
2931 sparc_old_sem): New structs.
2932 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
2933 (__sem_wait_cleanup): New function.
2934 (__new_sem_wait): Use sparc_new_sem structure. Bump and afterwards
2935 decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
2936 Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2938 (__old_sem_wait): New function.
2939 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: Include
2940 nptl/sysdeps/unix/sysv/linux/sparc version.
2941 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
2943 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: Likewise.
2944 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c
2945 (__new_sem_trywait): Use sparc_old_sem structure.
2946 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
2947 (sem_timedwait): Use sparc_new_sem structure. Bump and afterwards
2948 decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
2949 Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2950 lll_futex_timed_wait.
2951 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c (__new_sem_post):
2952 Use sparc_new_sem structure. Only wake if nwaiters > 0. Pass
2953 isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2955 (__old_sem_post): New function.
2956 * sysdeps/unix/sysv/linux/sparc/sem_wait.c: New file.
2957 * sysdeps/unix/sysv/linux/sparc/sem_init.c: New file.
2958 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: New file.
2959 * sysdeps/unix/sysv/linux/sparc/sem_post.c: New file.
2960 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: Remove.
2961 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: Remove.
2963 2007-08-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2965 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
2966 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
2967 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2968 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
2969 * sysdeps/unix/sysv/linux/shpthread_cond_signal.S
2970 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
2971 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2973 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
2974 kernel-features.h and tcb-offsets.h.
2975 (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
2976 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2978 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
2980 (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE
2981 to lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2983 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use #ifdef
2984 __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
2985 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
2986 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
2987 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
2988 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
2989 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
2991 2007-08-14 Jakub Jelinek <jakub@redhat.com>
2993 * sysdeps/unix/sysv/linux/lowlevellock.c: Comment fix.
2994 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
2995 (__lll_timedwait_tid): Pass LLL_SHARED as 4th argument to
2996 lll_futex_timed_wait.
2998 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (__lll_unlock,
2999 __lll_robust_unlock): Rewrite as macros instead of inline functions.
3000 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_unlock,
3001 __lll_robust_unlock, __lll_wait_tid): Likewise.
3003 2007-08-13 Jakub Jelinek <jakub@redhat.com>
3005 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
3007 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
3008 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
3009 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
3010 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
3011 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
3012 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
3013 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
3014 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Include
3016 (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
3017 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
3018 process private. Switch DW_CFA_advance_loc1 and some
3019 DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
3020 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
3021 (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE to
3022 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
3023 process private. Switch DW_CFA_advance_loc{1,2} and some
3024 DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
3025 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use
3026 #ifdef __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
3027 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3029 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
3030 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
3031 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3033 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
3034 (__pthread_cond_broadcast): Compare %r8 instead of
3035 dep_mutex-cond_*(%rdi) with $-1.
3036 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
3037 (__pthread_cond_signal): Xor FUTEX_WAKE_OP with FUTEX_WAKE instead
3040 2007-08-13 Ulrich Drepper <drepper@redhat.com>
3042 * sysdeps/unix/sysv/linux/i386/i786/Implies: New file.
3044 2007-08-13 Jakub Jelinek <jakub@redhat.com>
3046 * allocatestack.c: Include kernel-features.h.
3047 * pthread_create.c: Likewise.
3048 * pthread_mutex_init.c: Likewise.
3050 * pthread_cond_timedwait.c: Likewise.
3051 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
3052 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
3053 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
3054 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
3055 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
3056 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
3057 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3059 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3061 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
3062 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
3063 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3064 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
3066 2007-08-12 Jakub Jelinek <jakub@redhat.com>
3068 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
3069 [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
3070 byte elements. One of them is the new __shared element.
3071 [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
3072 adjust names of other padding elements.
3073 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3074 [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
3075 byte elements. One of them is the new __shared element.
3076 [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
3077 adjust names of other padding elements.
3078 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_rwlock_t):
3079 Renamed __pad1 element to __shared, adjust names of other padding
3081 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
3082 (pthread_rwlock_t): Likewise.
3083 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock): Fix a
3086 2007-08-09 Anton Blanchard <anton@samba.org>
3088 * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: New file.
3090 2007-08-12 Ulrich Drepper <drepper@redhat.com>
3092 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Include
3093 <kernel-features.h>.
3094 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
3096 2007-08-11 Ulrich Drepper <drepper@redhat.com>
3098 * pthreadP.h (PTHREAD_ROBUST_MUTEX_PSHARED): Define.
3099 * pthread_mutex_lock.c: Use it instead of PTHREAD_MUTEX_PSHARED when
3100 dealing with robust mutexes.
3101 * pthread_mutex_timedlock.c: Likewise.
3102 * pthread_mutex_trylock.c: Likewise.
3103 * pthread_mutex_unlock.c: Likewise.
3104 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
3106 2007-08-06 Jakub Jelinek <jakub@redhat.com>
3108 * pthreadP.h (PTHREAD_MUTEX_PSHARED_BIT): Define.
3109 (PTHREAD_MUTEX_TYPE): Mask __kind with 127.
3110 (PTHREAD_MUTEX_PSHARED): Define.
3111 * pthread_mutex_init.c (__pthread_mutex_init): Set
3112 PTHREAD_MUTEX_PSHARED_BIT for pshared or robust
3114 * pthread_mutex_lock.c (LLL_MUTEX_LOCK): Take mutex as argument
3115 instead of its __data.__lock field, pass PTHREAD_MUTEX_PSHARED
3116 as second argument to lll_lock.
3117 (LLL_MUTEX_TRYLOCK): Take mutex as argument
3118 instead of its __data.__lock field.
3119 (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
3120 __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
3122 (__pthread_mutex_lock): Update LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
3123 LLL_ROBUST_MUTEX_LOCK users, use PTHREAD_MUTEX_TYPE (mutex)
3124 instead of mutex->__data.__kind directly, pass
3125 PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock and lll_futex_wait.
3126 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
3127 PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
3128 directly, pass PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock.
3129 (pthread_mutex_timedlock): Pass PTHREAD_MUTEX_PSHARED (mutex)
3130 to lll_timedlock, lll_robust_timedlock, lll_unlock and
3131 lll_futex_timed_wait. Use PTHREAD_MUTEX_TYPE (mutex) instead
3132 of mutex->__data.__kind directly.
3133 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Pass
3134 PTHREAD_MUTEX_PSHARED (mutex) to lll_timedlock,
3135 lll_robust_timedlock, lll_unlock and lll_futex_timed_wait. Use
3136 PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind directly.
3137 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Pass
3138 PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock, lll_robust_unlock
3140 * pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling): Pass
3141 PTHREAD_MUTEX_PSHARED (mutex) to lll_futex_wait and lll_futex_wake.
3142 Use PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
3144 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK):
3145 Take mutex as argument instead of its __data.__lock field, pass
3146 PTHREAD_MUTEX_PSHARED as second argument to lll_cond_lock.
3147 (LLL_MUTEX_TRYLOCK): Take mutex as argument instead of its
3148 __data.__lock field.
3149 (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
3150 __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
3151 to lll_robust_cond_lock.
3152 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Add pshared
3153 variable, pass it to lll_lock, lll_unlock, lll_futex_requeue and
3154 lll_futex_wake. Don't use lll_futex_requeue if dependent mutex
3155 has PTHREAD_MUTEX_PSHARED_BIT bit set in its __data.__kind.
3156 * pthread_cond_destroy.c (__pthread_cond_destroy): Add pshared
3157 variable, pass it to lll_lock, lll_unlock, lll_futex_wake and
3159 * pthread_cond_signal.c (__pthread_cond_signal): Add pshared
3160 variable, pass it to lll_lock, lll_unlock, lll_futex_wake_unlock and
3162 * pthread_cond_timedwait.c (__pthread_cond_wait): Add
3163 pshared variable, pass it to lll_lock, lll_unlock,
3164 lll_futex_timedwait and lll_futex_wake.
3165 * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait): Add
3166 pshared variable, pass it to lll_lock, lll_unlock, lll_futex_wait
3168 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_requeue,
3169 lll_futex_wake_unlock): Add private argument, use __lll_private_flag
3171 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue,
3172 lll_futex_wake_unlock): Likewise.
3173 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_requeue):
3175 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_requeue,
3176 lll_futex_wake_unlock): Likewise.
3177 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_requeue):
3179 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue,
3180 lll_futex_wake_unlock): Likewise.
3181 (lll_futex_wake): Fix a typo.
3182 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym (PS_BIT): Add.
3183 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
3184 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
3185 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
3186 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
3187 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
3188 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
3189 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
3190 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
3191 (__pthread_cond_timedwait): Likewise.
3192 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
3193 (__condvar_cleanup, __pthread_cond_wait): Likewise.
3195 2007-08-05 Jakub Jelinek <jakub@redhat.com>
3197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
3198 Don't use CGOTSETUP and CGOTRESTORE macros.
3199 (CGOTSETUP, CGOTRESTORE): Remove.
3200 <IS_IN_rtld> (CENABLE, CDISABLE): Don't use JUMPTARGET, branch to
3203 2007-08-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3205 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove
3206 definitions for private futexes.
3207 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Include
3208 kernel-features.h and lowlevellock.h. Use private futexes if
3210 (__lll_lock_wait_private, __lll_unlock_wake_private): New.
3211 (__lll_mutex_lock_wait): Rename to
3212 (__lll_lock_wait): ... this. Don't compile in for libc.so.
3213 (__lll_mutex_timedlock_wait): Rename to ...
3214 (__lll_timedlock_wait): ... this. Use __NR_gettimeofday.
3215 Don't compile in for libc.so.
3216 (__lll_mutex_unlock_wake): Rename to ...
3217 (__lll_unlock_wake): ... this. Don't compile in for libc.so.
3218 (__lll_timedwait_tid): Use __NR_gettimeofday.
3219 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Allow including
3220 the header from assembler. Renamed all lll_mutex_* resp.
3221 lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
3222 Renamed all LLL_MUTEX_LOCK_* macros to LLL_LOCK_*.
3223 (FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE):
3225 (__lll_lock_wait_private): Add prototype.
3226 (__lll_lock_wait, __lll_timedlock_wait, __lll_robust_lock_wait,
3227 __lll_robust_timedlock_wait, __lll_unlock_wake_private,
3228 __lll_unlock_wake): Likewise.
3229 (lll_lock): Add private argument. Call __lll_lock_wait_private
3230 if private is constant LLL_PRIVATE.
3231 (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
3232 lll_timedlock, lll_robust_timedlock): Add private argument.
3233 (lll_unlock): Add private argument. Call __lll_unlock_wake_private
3234 if private is constant LLL_PRIVATE.
3235 (lll_robust_unlock, lll_robust_dead): Add private argument.
3236 (lll_lock_t): Remove.
3237 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
3238 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
3239 lll_cond_wake, lll_cond_broadcast): Remove.
3240 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Include
3241 kernel-features.h and lowlevellock.h.
3242 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
3243 (LOAD_FUTEX_WAIT): Define.
3244 (__lll_robust_mutex_lock_wait): Rename to ...
3245 (__lll_robust_lock_wait): ... this. Add private argument.
3246 Use LOAD_FUTEX_WAIT macro.
3247 (__lll_robust_mutex_timedlock_wait): Rename to ...
3248 (__lll_robust_timedlock_wait): ... this. Add private argument.
3249 Use __NR_gettimeofday. Use LOAD_FUTEX_WAIT macro.
3250 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Include
3252 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
3253 (pthread_barrier_wait): Use __lll_{lock,unlock}_* instead of
3254 __lll_mutex_{lock,unlock}_*.
3255 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Include
3256 lowlevellock.h and pthread-errnos.h.
3257 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
3258 FUTEX_CMP_REQUEUE, EINVAL): Remove.
3259 (__pthread_cond_broadcast): Use __lll_{lock,unlock}_* instead of
3260 __lll_mutex_{lock,unlock}_*.
3261 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Include
3262 lowlevellock.h and pthread-errnos.h.
3263 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE, EINVAL): Remove.
3264 (__pthread_cond_signal): Use __lll_{lock,unlock}_* instead of
3265 __lll_mutex_{lock,unlock}_*.
3266 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
3268 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE): Remove.
3269 (__pthread_cond_timedwait): Use __lll_{lock,unlock}_* instead of
3270 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
3271 (__condvar_tw_cleanup): Likewise.
3272 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
3274 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
3275 (__pthread_cond_wait): Use __lll_{lock,unlock}_* instead of
3276 __lll_mutex_{lock,unlock}_*.
3277 ( __condvar_w_cleanup): Likewise.
3278 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Include lowlevellock.h.
3279 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
3280 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Include
3282 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
3283 (__pthread_rwlock_rdlock): Use __lll_{lock,unlock}_* instead of
3284 __lll_mutex_{lock,unlock}_*.
3285 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Include
3287 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
3288 FUTEX_PRIVATE_FLAG): Remove.
3289 (pthread_rwlock_timedrdlock): Use __lll_{lock,unlock}_* instead of
3290 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
3291 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Include
3293 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
3294 FUTEX_PRIVATE_FLAG): Remove.
3295 (pthread_rwlock_timedwrlock): Use __lll_{lock,unlock}_* instead of
3296 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
3297 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Include
3299 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
3300 (__pthread_rwlock_unlock): Use __lll_{lock,unlock}_* instead of
3301 __lll_mutex_{lock,unlock}_*.
3302 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Include
3304 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
3305 (__pthread_rwlock_wrlock): Use __lll_{lock,unlock}_* instead of
3306 __lll_mutex_{lock,unlock}_*.
3307 * sysdeps/unix/sysv/linux/sh/sem_post.S: Include lowlevellock.h.
3308 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
3309 (__new_sem_post): Use standard initial exec code sequences.
3310 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Include
3312 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
3313 FUTEX_PRIVATE_FLAG): Remove.
3314 (sem_timedwait): Use __NR_gettimeofday. Use standard initial
3315 exec code sequences.
3316 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Include lowlevellock.h.
3317 (__new_sem_trywait): Use standard initial exec code sequences.
3318 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Include lowlevellock.h.
3319 (__new_sem_wait): Use standard initial exec code sequences.
3321 2007-07-31 Anton Blanchard <anton@samba.org>
3323 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
3324 Use __asm __volatile (__lll_acq_instr ::: "memory") instead of
3325 atomic_full_barrier.
3327 2007-07-31 Jakub Jelinek <jakub@redhat.com>
3329 * allocatestack.c (stack_cache_lock): Change type to int.
3330 (get_cached_stack, allocate_stack, __deallocate_stack,
3331 __make_stacks_executable, __find_thread_by_id, __nptl_setxid,
3332 __pthread_init_static_tls, __wait_lookup_done): Add LLL_PRIVATE
3333 as second argument to lll_lock and lll_unlock macros on
3335 * pthread_create.c (__find_in_stack_list): Likewise.
3336 (start_thread): Similarly with pd->lock. Use lll_robust_dead
3337 macro instead of lll_robust_mutex_dead, pass LLL_SHARED to it
3339 * descr.h (struct pthread): Change lock and setxid_futex field
3341 * old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0): Use
3342 LLL_LOCK_INITIALIZER instead of LLL_MUTEX_LOCK_INITIALIZER.
3343 * old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
3344 * old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
3346 * old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
3347 * pthread_cond_init.c (__pthread_cond_init): Likewise.
3348 * pthreadP.h (__attr_list_lock): Change type to int.
3349 * pthread_attr_init.c (__attr_list_lock): Likewise.
3350 * pthread_barrier_destroy.c (pthread_barrier_destroy): Pass
3351 ibarrier->private ^ FUTEX_PRIVATE_FLAG as second argument to
3353 * pthread_barrier_wait.c (pthread_barrier_wait): Likewise and
3354 also for lll_futex_{wake,wait}.
3355 * pthread_barrier_init.c (pthread_barrier_init): Make iattr
3357 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Pass
3358 LLL_SHARED as second argument to lll_{,un}lock.
3359 * pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
3360 * pthread_cond_signal.c (__pthread_cond_singal): Likewise.
3361 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
3362 * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait):
3364 * pthread_getattr_np.c (pthread_getattr_np): Add LLL_PRIVATE
3365 as second argument to lll_{,un}lock macros on pd->lock.
3366 * pthread_getschedparam.c (__pthread_getschedparam): Likewise.
3367 * pthread_setschedparam.c (__pthread_setschedparam): Likewise.
3368 * pthread_setschedprio.c (pthread_setschedprio): Likewise.
3369 * tpp.c (__pthread_tpp_change_priority, __pthread_current_priority):
3371 * sysdeps/pthread/createthread.c (do_clone, create_thread):
3373 * pthread_once.c (once_lock): Change type to int.
3374 (__pthread_once): Pass LLL_PRIVATE as second argument to
3375 lll_{,un}lock macros on once_lock.
3376 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Use
3377 lll_{,un}lock macros instead of lll_mutex_{,un}lock, pass
3378 rwlock->__data.__shared as second argument to them and similarly
3380 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
3382 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
3384 * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Likewise.
3385 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Likewise.
3386 * pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
3387 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
3388 * sem_close.c (sem_close): Pass LLL_PRIVATE as second argument
3389 to lll_{,un}lock macros on __sem_mappings_lock.
3390 * sem_open.c (check_add_mapping): Likewise.
3391 (__sem_mappings_lock): Change type to int.
3392 * semaphoreP.h (__sem_mappings_lock): Likewise.
3393 * pthread_mutex_lock.c (LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
3394 LLL_ROBUST_MUTEX_LOCK): Use lll_{,try,robust_}lock macros
3395 instead of lll_*mutex_*, pass LLL_SHARED as last
3397 (__pthread_mutex_lock): Use lll_unlock instead of lll_mutex_unlock,
3398 pass LLL_SHARED as last argument.
3399 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK,
3400 LLL_MUTEX_TRYLOCK, LLL_ROBUST_MUTEX_LOCK): Use
3401 lll_{cond_,cond_try,robust_cond}lock macros instead of lll_*mutex_*,
3402 pass LLL_SHARED as last argument.
3403 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
3404 lll_{timed,try,robust_timed,un}lock instead of lll_*mutex*, pass
3405 LLL_SHARED as last argument.
3406 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Similarly.
3407 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
3409 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_lock,
3410 __libc_lock_lock_recursive, __libc_lock_unlock,
3411 __libc_lock_unlock_recursive): Pass LLL_PRIVATE as second
3412 argument to lll_{,un}lock.
3413 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_lock,
3414 _IO_lock_unlock): Likewise.
3415 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Don't use
3417 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
3418 Pass LLL_PRIVATE as second argument to lll_{,un}lock macros on
3420 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork,
3421 free_mem): Likewise.
3422 (__fork_lock): Change type to int.
3423 * sysdeps/unix/sysv/linux/fork.h (__fork_lock): Likewise.
3424 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Pass
3425 isem->private ^ FUTEX_PRIVATE_FLAG as second argument to
3427 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
3428 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Likewise.
3429 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait_private):
3431 (__lll_lock_wait, __lll_timedlock_wait): Add private argument and
3432 pass it through to lll_futex_*wait, only compile in when
3434 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
3435 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Add private
3436 argument and pass it through to lll_futex_*wait.
3437 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Renamed all
3438 lll_mutex_* resp. lll_robust_mutex_* macros to lll_* resp.
3439 lll_robust_*. Renamed all __lll_mutex_* resp. __lll_robust_mutex_*
3440 inline functions to __lll_* resp. __lll_robust_*.
3441 (LLL_MUTEX_LOCK_INITIALIZER): Remove.
3442 (lll_mutex_dead): Add private argument.
3443 (__lll_lock_wait_private): New prototype.
3444 (__lll_lock_wait, __lll_robust_lock_wait, __lll_lock_timedwait,
3445 __lll_robust_lock_timedwait): Add private argument to prototypes.
3446 (__lll_lock): Add private argument, if it is constant LLL_PRIVATE,
3447 call __lll_lock_wait_private, otherwise pass private to
3449 (__lll_robust_lock, __lll_cond_lock, __lll_timedlock,
3450 __lll_robust_timedlock): Add private argument, pass it to
3451 __lll_*wait functions.
3452 (__lll_unlock): Add private argument, if it is constant LLL_PRIVATE,
3453 call __lll_unlock_wake_private, otherwise pass private to
3455 (__lll_robust_unlock): Add private argument, pass it to
3456 __lll_robust_unlock_wake.
3457 (lll_lock, lll_robust_lock, lll_cond_lock, lll_timedlock,
3458 lll_robust_timedlock, lll_unlock, lll_robust_unlock): Add private
3459 argument, pass it through to __lll_* inline function.
3460 (__lll_mutex_unlock_force, lll_mutex_unlock_force): Remove.
3461 (lll_lock_t): Remove.
3462 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
3463 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
3464 lll_cond_wake, lll_cond_broadcast): Remove.
3465 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
3466 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
3467 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
3468 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3469 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Allow including
3470 the header from assembler. Renamed all lll_mutex_* resp.
3471 lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
3472 (LOCK, FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP,
3473 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
3474 (LLL_MUTEX_LOCK_INITIALIZER, LLL_MUTEX_LOCK_INITIALIZER_LOCKED,
3475 LLL_MUTEX_LOCK_INITIALIZER_WAITERS): Remove.
3476 (__lll_mutex_lock_wait, __lll_mutex_timedlock_wait,
3477 __lll_mutex_unlock_wake, __lll_lock_wait, __lll_unlock_wake):
3479 (__lll_trylock_asm, __lll_lock_asm_start, __lll_unlock_asm): Define.
3480 (lll_robust_trylock, lll_cond_trylock): Use LLL_LOCK_INITIALIZER*
3481 rather than LLL_MUTEX_LOCK_INITIALIZER* macros.
3482 (lll_trylock): Likewise, use __lll_trylock_asm, pass
3483 MULTIPLE_THREADS_OFFSET as another asm operand.
3484 (lll_lock): Add private argument, use __lll_lock_asm_start, pass
3485 MULTIPLE_THREADS_OFFSET as last asm operand, call
3486 __lll_lock_wait_private if private is constant LLL_PRIVATE,
3487 otherwise pass private as another argument to __lll_lock_wait.
3488 (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
3489 lll_timedlock, lll_robust_timedlock): Add private argument, pass
3490 private as another argument to __lll_*lock_wait call.
3491 (lll_unlock): Add private argument, use __lll_unlock_asm, pass
3492 MULTIPLE_THREADS_OFFSET as another asm operand, call
3493 __lll_unlock_wake_private if private is constant LLL_PRIVATE,
3494 otherwise pass private as another argument to __lll_unlock_wake.
3495 (lll_robust_unlock): Add private argument, pass private as another
3496 argument to __lll_unlock_wake.
3497 (lll_robust_dead): Add private argument, use __lll_private_flag
3499 (lll_islocked): Use LLL_LOCK_INITIALIZER instead of
3500 LLL_MUTEX_LOCK_INITIALIZER.
3501 (lll_lock_t): Remove.
3502 (LLL_LOCK_INITIALIZER_WAITERS): Define.
3503 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
3504 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
3505 lll_cond_wake, lll_cond_broadcast): Remove.
3506 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3507 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Revert
3508 2007-05-2{3,9} changes.
3509 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Include
3510 kernel-features.h and lowlevellock.h.
3511 (LOAD_PRIVATE_FUTEX_WAIT): Define.
3512 (LOAD_FUTEX_WAIT): Rewritten.
3513 (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
3515 (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
3516 (__lll_mutex_lock_wait): Rename to ...
3517 (__lll_lock_wait): ... this. Take futex addr from %edx instead of
3518 %ecx, %ecx is now private argument. Don't compile in for libc.so.
3519 (__lll_mutex_timedlock_wait): Rename to ...
3520 (__lll_timedlock_wait): ... this. Use __NR_gettimeofday. %esi
3521 contains private argument. Don't compile in for libc.so.
3522 (__lll_mutex_unlock_wake): Rename to ...
3523 (__lll_unlock_wake): ... this. %ecx contains private argument.
3524 Don't compile in for libc.so.
3525 (__lll_timedwait_tid): Use __NR_gettimeofday.
3526 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Include
3527 kernel-features.h and lowlevellock.h.
3528 (LOAD_FUTEX_WAIT): Define.
3529 (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
3531 (__lll_robust_mutex_lock_wait): Rename to ...
3532 (__lll_robust_lock_wait): ... this. Futex addr is now in %edx
3533 argument, %ecx argument contains private. Use LOAD_FUTEX_WAIT
3535 (__lll_robust_mutex_timedlock_wait): Rename to ...
3536 (__lll_robust_timedlock_wait): ... this. Use __NR_gettimeofday.
3537 %esi argument contains private, use LOAD_FUTEX_WAIT macro.
3538 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Include
3540 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3541 (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
3542 PRIVATE(%ebx) ^ LLL_SHARED as private argument in %ecx to
3543 __lll_lock_wait and __lll_unlock_wake, pass MUTEX(%ebx) address
3544 to __lll_lock_wait in %edx.
3545 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
3546 Include lowlevellock.h and pthread-errnos.h.
3547 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
3548 FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
3549 (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*, pass
3550 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3551 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3553 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
3554 Include lowlevellock.h and pthread-errnos.h.
3555 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
3556 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
3557 (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*, pass
3558 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3559 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3561 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
3562 Include lowlevellock.h.
3563 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3565 (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*, pass
3566 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3567 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3568 __lll_unlock_wake. Use __NR_gettimeofday.
3569 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
3570 Include lowlevellock.h.
3571 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3572 (__pthread_cond_wait, __condvar_w_cleanup): Rename __lll_mutex_*
3573 to __lll_*, pass cond_lock address in %edx rather than %ecx to
3574 __lll_lock_wait, pass LLL_SHARED in %ecx to both __lll_lock_wait
3575 and __lll_unlock_wake.
3576 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
3577 Include lowlevellock.h.
3578 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3579 (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*, pass
3580 MUTEX(%ebx) address in %edx rather than %ecx to
3581 __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
3582 and __lll_unlock_wake. Move return value from %ecx to %edx
3584 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3585 Include lowlevellock.h.
3586 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3588 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3589 MUTEX(%ebp) address in %edx rather than %ecx to
3590 __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
3591 and __lll_unlock_wake. Move return value from %ecx to %edx
3592 register. Use __NR_gettimeofday.
3593 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3594 Include lowlevellock.h.
3595 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3597 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3598 MUTEX(%ebp) address in %edx rather than %ecx to
3599 __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
3600 and __lll_unlock_wake. Move return value from %ecx to %edx
3601 register. Use __NR_gettimeofday.
3602 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
3603 Include lowlevellock.h.
3604 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3605 (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*, pass
3606 MUTEX(%edi) address in %edx rather than %ecx to
3607 __lll_lock_wait, pass PSHARED(%edi) in %ecx to both __lll_lock_wait
3608 and __lll_unlock_wake.
3609 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
3610 Include lowlevellock.h.
3611 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3612 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3613 MUTEX(%ebx) address in %edx rather than %ecx to
3614 __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
3615 and __lll_unlock_wake. Move return value from %ecx to %edx
3617 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Include
3619 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
3621 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Include lowlevellock.h.
3622 (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
3623 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Include
3625 (LOCK, SYS_futex, SYS_gettimeofday, FUTEX_WAIT): Don't define.
3626 (sem_timedwait): Use __NR_gettimeofday.
3627 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Include
3629 (LOCK): Don't define.
3630 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include
3632 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3633 * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Wake only when there
3635 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Revert
3636 2007-05-2{3,9} changes.
3637 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Include
3638 kernel-features.h and lowlevellock.h.
3639 (LOAD_PRIVATE_FUTEX_WAIT): Define.
3640 (LOAD_FUTEX_WAIT): Rewritten.
3641 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
3642 (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
3643 (__lll_mutex_lock_wait): Rename to ...
3644 (__lll_lock_wait): ... this. %esi is now private argument.
3645 Don't compile in for libc.so.
3646 (__lll_mutex_timedlock_wait): Rename to ...
3647 (__lll_timedlock_wait): ... this. %esi contains private argument.
3648 Don't compile in for libc.so.
3649 (__lll_mutex_unlock_wake): Rename to ...
3650 (__lll_unlock_wake): ... this. %esi contains private argument.
3651 Don't compile in for libc.so.
3652 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Include
3653 kernel-features.h and lowlevellock.h.
3654 (LOAD_FUTEX_WAIT): Define.
3655 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
3656 (__lll_robust_mutex_lock_wait): Rename to ...
3657 (__lll_robust_lock_wait): ... this. %esi argument contains private.
3658 Use LOAD_FUTEX_WAIT macro.
3659 (__lll_robust_mutex_timedlock_wait): Rename to ...
3660 (__lll_robust_timedlock_wait): ... this. %esi argument contains
3661 private, use LOAD_FUTEX_WAIT macro.
3662 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Include
3664 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3665 (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
3666 PRIVATE(%rdi) ^ LLL_SHARED as private argument in %esi to
3667 __lll_lock_wait and __lll_unlock_wake.
3668 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3669 Include lowlevellock.h and pthread-errnos.h.
3670 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
3671 FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
3672 (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*,
3673 pass LLL_SHARED in %esi to both __lll_lock_wait and
3675 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S:
3676 Include lowlevellock.h and pthread-errnos.h.
3677 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
3678 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
3679 (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*,
3680 pass LLL_SHARED in %esi to both __lll_lock_wait and
3682 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3683 Include lowlevellock.h.
3684 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3685 (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*,
3686 pass LLL_SHARED in %esi to both __lll_lock_wait and
3688 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
3689 Include lowlevellock.h.
3690 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3691 (__pthread_cond_wait, __condvar_cleanup): Rename __lll_mutex_*
3692 to __lll_*, pass LLL_SHARED in %esi to both __lll_lock_wait
3693 and __lll_unlock_wake.
3694 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
3695 Include lowlevellock.h.
3696 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3698 (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*,
3699 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3700 and __lll_unlock_wake.
3701 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3702 Include lowlevellock.h.
3703 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3705 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3706 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3707 and __lll_unlock_wake.
3708 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3709 Include lowlevellock.h.
3710 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3712 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3713 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3714 and __lll_unlock_wake.
3715 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
3716 Include lowlevellock.h.
3717 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3719 (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*,
3720 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3721 and __lll_unlock_wake.
3722 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
3723 Include lowlevellock.h.
3724 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3726 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3727 pass PSHARED(%rdi) in %ecx to both __lll_lock_wait
3728 and __lll_unlock_wake.
3729 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Include
3731 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
3733 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Include lowlevellock.h.
3734 (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
3735 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Include
3737 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3738 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Include
3740 (LOCK): Don't define.
3741 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Include
3743 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3744 * sysdeps/unix/sysv/linux/sparc/internaltypes.h: New file.
3745 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c: New file.
3746 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: New file.
3747 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: New file.
3748 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
3749 (__lll_lock_wait_private): New function.
3750 (__lll_lock_wait, __lll_timedlock_wait): Add private argument, pass
3751 it to lll_futex_*wait. Don't compile in for libc.so.
3752 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c:
3754 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c
3755 (struct sparc_pthread_barrier): Remove.
3756 (pthread_barrier_wait): Use union sparc_pthread_barrier instead of
3757 struct sparc_pthread_barrier. Pass
3758 ibarrier->s.pshared ? LLL_SHARED : LLL_PRIVATE to lll_{,un}lock
3759 and lll_futex_wait macros.
3760 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
3762 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
3763 Include sparc pthread_barrier_wait.c instead of generic one.
3765 2007-07-30 Jakub Jelinek <jakub@redhat.com>
3767 * tst-rwlock14.c (do_test): Avoid warnings on 32-bit arches.
3769 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
3770 (pthread_rwlock_timedrdlock): Copy futex retval to %esi rather than
3772 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
3773 (pthread_rwlock_timedwrlock): Likewise.
3774 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
3775 (__pthread_rwlock_unlock): Fix MUTEX != 0 args to __lll_*.
3777 2007-07-31 Jakub Jelinek <jakub@redhat.com>
3779 * sysdeps/sparc/tls.h (tcbhead_t): Add private_futex field.
3781 2007-07-26 Jakub Jelinek <jakub@redhat.com>
3783 * tst-locale2.c (useless): Add return statement.
3785 2007-07-24 Jakub Jelinek <jakub@redhat.com>
3787 * allocatestack.c (__nptl_setxid, __wait_lookup_done): Replace
3788 lll_private_futex_* (*) with lll_futex_* (*, LLL_PRIVATE).
3789 * pthread_create.c (start_thread): Likewise.
3790 * init.c (sighandler_setxid): Likewise.
3791 * sysdeps/alpha/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3792 * sysdeps/ia64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3793 * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3794 * sysdeps/s390/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3795 * sysdeps/powerpc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3796 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3797 * sysdeps/sparc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3798 * sysdeps/sh/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3799 * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT):
3801 * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT):
3803 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
3805 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_waitzero,
3806 __rtld_notify): Likewise.
3807 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Likewise.
3808 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (clear_once_control,
3809 __pthread_once): Likewise.
3810 * sysdeps/unix/sysv/linux/alpha/pthread_once.c (clear_once_control,
3811 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3812 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3813 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3814 (lll_futex_wait): Add private argument, define as wrapper around
3815 lll_futex_timed_wait.
3816 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3817 use __lll_private_flag macro.
3818 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3819 __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
3820 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (clear_once_control,
3821 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3822 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3823 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3824 (lll_futex_wait): Add private argument, define as wrapper around
3825 lll_futex_timed_wait.
3826 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3827 use __lll_private_flag macro.
3828 (__lll_mutex_unlock, __lll_robust_mutex_unlock, lll_wait_tid,
3829 __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
3830 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
3832 (lll_futex_timed_wait, lll_futex_wake): Use it.
3833 (lll_private_futex_wait, lll_private_futex_timed_wait,
3834 lll_private_futex_wake): Removed.
3835 * sysdeps/unix/sysv/linux/s390/pthread_once.c (clear_once_control,
3836 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3837 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3838 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3839 (lll_futex_wait): Add private argument, define as wrapper around
3840 lll_futex_timed_wait.
3841 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3842 use __lll_private_flag macro.
3843 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3844 lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
3846 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3847 (lll_private_futex_wait, lll_private_futex_timed_wait,
3848 lll_private_futex_wake): Removed.
3849 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_private_flag):
3850 Fix !__ASSUME_PRIVATE_FUTEX non-constant private case.
3851 (lll_private_futex_wait, lll_private_futex_timed_wait,
3852 lll_private_futex_wake): Removed.
3853 * sysdeps/unix/sysv/linux/sparc/pthread_once.c (clear_once_control,
3854 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3855 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3856 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3857 (lll_futex_wait): Add private argument, define as wrapper around
3858 lll_futex_timed_wait.
3859 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3860 use __lll_private_flag macro.
3861 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3862 lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
3864 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (__lll_private_flag):
3866 (lll_futex_timed_wait, lll_futex_wake): Use it.
3867 (lll_private_futex_wait, lll_private_futex_timed_wait,
3868 lll_private_futex_wake): Removed.
3870 2007-07-27 Jakub Jelinek <jakub@redhat.com>
3872 * sysdeps/sparc/tls.h (tcbhead_t): Move gscope_flag to the end
3873 of the structure for sparc32.
3875 2007-07-26 Aurelien Jarno <aurelien@aurel32.net>
3877 * sysdeps/sparc/tls.h (tcbhead_t): Add gscope_flag.
3879 2007-07-23 Ulrich Drepper <drepper@redhat.com>
3881 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
3882 code used when private futexes are assumed.
3883 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3886 2007-07-23 Jakub Jelinek <jakub@redhat.com>
3888 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3889 (__lll_private_flag): Define.
3890 (lll_futex_wait): Define as a wrapper around lll_futex_timed_wait.
3891 (lll_futex_timed_wait, lll_futex_wake, lll_futex_wake_unlock): Use
3893 (lll_private_futex_wait, lll_private_futex_timedwait,
3894 lll_private_futex_wake): Define as wrapper around non-_private
3896 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
3897 (__lll_private_flag): Define.
3898 (lll_futex_timed_wait, lll_futex_wake): Use __lll_private_flag.
3899 (lll_private_futex_wait, lll_private_futex_timedwait,
3900 lll_private_futex_wake): Define as wrapper around non-_private
3903 2007-07-10 Steven Munroe <sjmunroe@us.ibm.com>
3905 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add LLL_SHARED
3906 parameter to lll_futex_wait call.
3907 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
3909 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
3910 Replace lll_futex_wait with lll_private_futex_wait.
3911 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
3912 Add LLL_SHARED parameter to lll_futex_wake().
3914 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define LLL_PRIVATE
3915 LLL_SHARED, lll_private_futex_wait, lll_private_futex_timed_wait and
3916 lll_private_futex_wake.
3917 (lll_futex_wait): Add private parameter. Adjust FUTEX_PRIVATE_FLAG
3918 bit from private parm before syscall.
3919 (lll_futex_timed_wait): Likewise.
3920 (lll_futex_wake): Likewise.
3921 (lll_futex_wake_unlock): Likewise.
3922 (lll_mutex_unlock): Add LLL_SHARED parm to lll_futex_wake call.
3923 (lll_robust_mutex_unlock): Likewise.
3924 (lll_mutex_unlock_force): Likewise.
3925 (lll_wait_tid): Add LLL_SHARED parm to lll_futex_wait call.
3927 2007-07-23 Ulrich Drepper <drepper@redhat.com>
3929 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
3930 compilation when unconditionally using private futexes.
3931 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
3932 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3934 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
3935 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
3937 2007-07-17 Jakub Jelinek <jakub@redhat.com>
3939 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
3942 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3944 * sysdeps/sh/tls.h: Include stdlib.h, list.h, sysdep.h and
3947 2007-05-16 Roland McGrath <roland@redhat.com>
3949 * init.c (__nptl_initial_report_events): New variable.
3950 (__pthread_initialize_minimal_internal): Initialize pd->report_events
3953 2007-06-22 Jakub Jelinek <jakub@redhat.com>
3955 * pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
3956 cpusetsize if pthread_getaffinity_np failed with ENOSYS.
3958 2007-06-19 Ulrich Drepper <drepper@redhat.com>
3960 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Remove mrlock
3963 2007-06-18 Ulrich Drepper <drepper@redhat.com>
3965 * pthreadP.h: Define PTHREAD_MUTEX_TYPE.
3966 * phtread_mutex_lock.c: Use PTHREAD_MUTEX_TYPE.
3967 * pthread_mutex_timedlock.c: Likewise.
3968 * pthread_mutex_trylock.c: Likewise.
3969 * pthread_mutex_unlock.c: Likewise.
3971 2007-06-17 Andreas Schwab <schwab@suse.de>
3973 * sysdeps/pthread/pt-initfini.c: Tell gcc about the nonstandard
3976 2007-06-17 Ulrich Drepper <drepper@redhat.com>
3978 * allocatestack.c (allocate_stack): Make code compile if
3979 __ASSUME_PRIVATE_FUTEX is set.
3981 2007-06-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3983 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S:
3984 (__pthread_rwlock_rdlock): Don't use non SH-3/4 instruction.
3985 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S:
3986 (__pthread_rwlock_wrlock): Likewise.
3987 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
3988 (pthread_rwlock_timedrdlock): Likewise.
3989 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
3990 (pthread_rwlock_timedwrlock): Likewise.
3991 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S:
3992 (__pthread_rwlock_unlock): Likewise.
3994 2007-06-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3996 * sysdeps/sh/tcb-offsets.sym: Add PRIVATE_FUTEX.
3997 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Include endian.h.
3998 Split __flags into __flags, __shared, __pad1 and __pad2.
3999 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Use private
4000 futexes if they are available.
4001 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Adjust so that change
4002 in libc-lowlevellock.S allow using private futexes.
4003 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
4004 FUTEX_PRIVATE_FLAG. Add additional parameter to lll_futex_wait,
4005 lll_futex_timed_wait and lll_futex_wake. Change lll_futex_wait
4006 to call lll_futex_timed_wait. Add lll_private_futex_wait,
4007 lll_private_futex_timed_wait and lll_private_futex_wake.
4008 (lll_robust_mutex_unlock): Fix typo.
4009 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Use private
4010 field in futex command setup.
4011 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Use
4012 COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.
4013 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
4014 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use private futexes
4015 if they are available. Remove clear_once_control.
4016 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Use private
4017 futexes if they are available.
4018 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
4019 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
4020 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
4021 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
4022 * sysdeps/unix/sysv/linux/sh/sem_post.S: Add private futex support.
4023 Wake only when there are waiters.
4024 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add private futex
4025 support. Indicate that there are waiters. Remove unnecessary
4026 extra cancellation test.
4027 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise. Removed
4028 left-over duplication of __sem_wait_cleanup.
4030 2007-06-07 Ulrich Drepper <drepper@redhat.com>
4032 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Add additional
4033 parameter to lll_futex_wait, lll_futex_timed_wait, and
4034 lll_futex_wake. Change lll_futex_wait to call lll_futex_timed_wait.
4035 Add lll_private_futex_wait, lll_private_futex_timed_wait, and
4036 lll_private_futex_wake.
4037 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4038 * allocatestack.c: Adjust use of lll_futex_* macros.
4040 * lowlevellock.h: Likewise.
4041 * pthread_barrier_wait.c: Likewise.
4042 * pthread_cond_broadcast.c: Likewise.
4043 * pthread_cond_destroy.c: Likewise.
4044 * pthread_cond_signal.c: Likewise.
4045 * pthread_cond_timedwait.c: Likewise.
4046 * pthread_cond_wait.c: Likewise.
4047 * pthread_create.c: Likewise.
4048 * pthread_mutex_lock.c: Likewise.
4049 * pthread_mutex_setprioceiling.c: Likewise.
4050 * pthread_mutex_timedlock.c: Likewise.
4051 * pthread_mutex_unlock.c: Likewise.
4052 * pthread_rwlock_timedrdlock.c: Likewise.
4053 * pthread_rwlock_timedwrlock.c: Likewise.
4054 * pthread_rwlock_unlock.c: Likewise.
4055 * sysdeps/alpha/tls.h: Likewise.
4056 * sysdeps/i386/tls.h: Likewise.
4057 * sysdeps/ia64/tls.h: Likewise.
4058 * sysdeps/powerpc/tls.h: Likewise.
4059 * sysdeps/pthread/aio_misc.h: Likewise.
4060 * sysdeps/pthread/gai_misc.h: Likewise.
4061 * sysdeps/s390/tls.h: Likewise.
4062 * sysdeps/sh/tls.h: Likewise.
4063 * sysdeps/sparc/tls.h: Likewise.
4064 * sysdeps/unix/sysv/linux/fork.c: Likewise.
4065 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
4066 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
4067 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Likewise.
4068 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
4069 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
4070 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
4071 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
4072 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
4073 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
4075 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Likewise.
4076 * sysdeps/x86_64/tls.h: Likewise.
4078 2007-05-29 Ulrich Drepper <drepper@redhat.com>
4080 * pthread_getattr_np.c: No need to install a cancellation handler,
4081 this is no cancellation point.
4082 * pthread_getschedparam.c: Likewise.
4083 * pthread_setschedparam.c: Likewise.
4084 * pthread_setschedprio.c: Likewise.
4085 * sysdeps/unix/sysv/linux/lowlevellock.c: Remove all traces of
4087 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
4088 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4089 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
4090 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
4091 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
4092 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
4093 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
4094 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
4095 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
4096 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Likewise.
4097 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4098 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4100 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Checking
4101 whether there are more than one thread makes no sense here since
4102 we only call the slow path if the locks are taken.
4103 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4105 * sysdeps/unix/sysv/linux/internaltypes.h: Introduce
4106 COND_NWAITERS_SHIFT.
4107 * pthread_cond_destroy.c: Use COND_NWAITERS_SHIFT instead of
4109 * pthread_cond_init.c: Likewise.
4110 * pthread_cond_timedwait.c: Likewise.
4111 * pthread_cond_wait.c: Likewise.
4112 * pthread_condattr_getclock.c: Likewise.
4113 * pthread_condattr_setclock.c: Likewise.
4114 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Likewise.
4115 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
4116 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
4117 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
4118 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4120 2007-05-28 Jakub Jelinek <jakub@redhat.com>
4122 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: Include
4125 * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Use explicit
4127 (THREAD_GSCOPE_GET_FLAG): Remove.
4128 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Remove.
4129 * allocatestack.c (__wait_lookup_done): Revert 2007-05-24
4131 * sysdeps/powerpc/tls.h (tcbhead_t): Remove gscope_flag.
4132 (THREAD_GSCOPE_GET_FLAG): Remove.
4133 (THREAD_GSCOPE_RESET_FLAG): Use THREAD_SELF->header.gscope_flag
4134 instead of THREAD_GSCOPE_GET_FLAG.
4135 (THREAD_GSCOPE_SET_FLAG): Likewise. Add atomic_write_barrier after
4137 * sysdeps/s390/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
4138 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
4139 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
4140 THREAD_GSCOPE_WAIT): Define.
4141 * sysdeps/sparc/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
4142 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
4143 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
4144 THREAD_GSCOPE_WAIT): Define.
4145 * sysdeps/sh/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
4146 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
4147 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
4148 THREAD_GSCOPE_WAIT): Define.
4149 * sysdeps/ia64/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
4150 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
4151 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
4152 THREAD_GSCOPE_WAIT): Define.
4154 2007-05-24 Richard Henderson <rth@redhat.com>
4156 * descr.h (struct pthread): Add header.gscope_flag.
4157 * sysdeps/alpha/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
4158 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
4159 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
4160 THREAD_GSCOPE_WAIT): Define.
4162 2007-05-27 Ulrich Drepper <drepper@redhat.com>
4164 * init.c: Make it compile with older kernel headers.
4166 * tst-initializers1.c: Show through exit code which test failed.
4168 * pthread_rwlock_init.c: Also initialize __shared field.
4169 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Split __flags
4170 element in rwlock structure into four byte elements. One of them is
4171 the new __shared element.
4172 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h [__WORDSIZE=32]:
4174 [__WORDSIZE=64]: Renamed __pad1 element int rwlock structure to
4175 __shared, adjust names of other padding elements.
4176 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
4177 * sysdeps/pthread/pthread.h: Adjust rwlock initializers.
4178 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Add PSHARED.
4179 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define
4181 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Change main
4182 futex to use private operations if possible.
4183 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
4185 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
4187 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
4188 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
4189 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
4190 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
4192 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
4194 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
4195 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
4197 2007-05-26 Ulrich Drepper <drepper@redhat.com>
4199 * pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Define.
4200 * pthread_rwlock_rdlock.c: Use PTHREAD_RWLOCK_PREFER_READER_P.
4201 * pthread_rwlock_timedrdlock.c: Likewise.
4202 * pthread_rwlock_tryrdlock.c: Likewise.
4204 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S (sem_trywait): Tiny
4207 * sysdeps/unix/sysv/linux/sem_wait.c: Add missing break.
4208 * sysdeps/unix/sysv/linux/sem_timedwait.c: Removed left-over
4209 duplication of __sem_wait_cleanup.
4211 * allocatestack.c: Revert last change.
4213 * sysdeps/i386/tls.h: Likewise.
4214 * sysdeps/x86_64/tls.h: Likewise.
4215 * descr.h [TLS_DTV_AT_TP] (struct pthread): Add private_futex field to
4217 * sysdeps/powerpc/tcb-offsets.sym: Add PRIVATE_FUTEX_OFFSET.
4219 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_barrier):
4221 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Add PRIVATE definition.
4222 * pthread_barrier_init.c: Set private flag if pshared and private
4223 futexes are supported.
4224 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Use
4225 private field in futex command setup.
4226 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
4228 2007-05-25 Ulrich Drepper <drepper@redhat.com>
4230 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Add private futex
4232 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
4233 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
4234 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
4235 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
4236 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
4238 * semaphoreP.h: Declare __old_sem_init and __old_sem_wait.
4239 * sem_init.c (__new_sem_init): Rewrite to initialize all three
4240 fields in the structure.
4241 (__old_sem_init): New function.
4242 * sem_open.c: Initialize all fields of the structure.
4243 * sem_getvalue.c: Adjust for renamed element.
4244 * sysdeps/unix/sysv/linux/Makefile [subdir=nptl]
4245 (gen-as-const-headers): Add structsem.sym.
4246 * sysdeps/unix/sysv/linux/structsem.sym: New file.
4247 * sysdeps/unix/sysv/linux/internaltypes.h: Rename struct sem to
4248 struct new_sem. Add struct old_sem.
4249 * sysdeps/unix/sysv/linux/sem_post.c: Wake only when there are waiters.
4250 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
4251 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
4252 * sysdeps/unix/sysv/linux/sem_wait.c: Indicate that there are waiters.
4253 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
4254 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
4255 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
4256 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
4257 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
4258 * Makefile (tests): Add tst-sem10, tst-sem11, tst-sem12.
4259 * tst-sem10.c: New file.
4260 * tst-sem11.c: New file.
4261 * tst-sem12.c: New file.
4262 * tst-typesizes.c: Test struct new_sem and struct old_sem instead
4265 2007-05-25 Ulrich Drepper <drepper@redhat.com>
4266 Jakub Jelinek <jakub@redhat.com>
4268 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
4269 Move __pthread_enable_asynccancel right before futex syscall.
4270 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
4273 2007-05-24 Jakub Jelinek <jakub@redhat.com>
4275 * sysdeps/i386/tls.h (THREAD_SET_PRIVATE_FUTEX,
4276 THREAD_COPY_PRIVATE_FUTEX): Define.
4277 * sysdeps/x86_64/tls.h (THREAD_SET_PRIVATE_FUTEX,
4278 THREAD_COPY_PRIVATE_FUTEX): Define.
4279 * allocatestack.c (allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX.
4280 * init.c (__pthread_initialize_minimal_internal): Use
4281 THREAD_SET_PRIVATE_FUTEX.
4283 * sysdeps/powerpc/tls.h (tcbhead_t): Add gscope_flag.
4284 (THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED,
4285 THREAD_GSCOPE_FLAG_WAIT): Define.
4286 (THREAD_GSCOPE_GET_FLAG, THREAD_GSCOPE_SET_FLAG,
4287 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_WAIT): Define.
4288 * sysdeps/i386/tls.h (THREAD_GSCOPE_WAIT): Don't use
4290 (THREAD_GSCOPE_GET_FLAG): Define.
4291 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Define.
4292 * allocatestack.c (__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG
4293 instead of ->header.gscope_flag directly.
4295 2007-05-23 Ulrich Drepper <drepper@redhat.com>
4297 * init.c (__pthread_initialize_minimal_internal): Check whether
4298 private futexes are available.
4299 * allocatestack.c (allocate_stack): Copy private_futex field from
4300 current thread into the new stack.
4301 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Use private
4302 futexes if they are available.
4303 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise
4304 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Adjust so that change
4305 in libc-lowlevellock.S allow using private futexes.
4306 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
4307 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
4309 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4310 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use private futexes
4311 if they are available.
4312 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
4313 * sysdeps/x86_64/tcb-offsets.sym: Add PRIVATE_FUTEX.
4314 * sysdeps/i386/tcb-offsets.sym: Likewise.
4315 * sysdeps/x86_64/tls.h (tcbhead_t): Add private_futex field.
4316 * sysdeps/i386/tls.h (tcbhead_t): Likewise.
4318 2007-05-21 Ulrich Drepper <drepper@redhat.com>
4320 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
4321 Remove ptr_wait_lookup_done again.
4322 * init.c (pthread_functions): Don't add .ptr_wait_lookup_done here.
4323 (__pthread_initialize_minimal_internal): Initialize
4324 _dl_wait_lookup_done pointer in _rtld_global directly.
4325 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
4326 Remove code to code _dl_wait_lookup_done.
4327 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_WAIT): The pointer is not
4330 2007-05-21 Jakub Jelinek <jakub@redhat.com>
4332 * tst-robust9.c (do_test): Don't fail if ENABLE_PI and
4333 pthread_mutex_init failed with ENOTSUP.
4335 2007-05-19 Ulrich Drepper <drepper@redhat.com>
4337 * allocatestack.c (__wait_lookup_done): New function.
4338 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
4339 Add ptr_wait_lookup_done.
4340 * init.c (pthread_functions): Initialize .ptr_wait_lookup_done.
4341 * pthreadP.h: Declare __wait_lookup_done.
4342 * sysdeps/i386/tls.h (tcbhead_t): Add gscope_flag.
4343 Define macros to implement reference handling of global scope.
4344 * sysdeps/x86_64/tls.h: Likewise.
4345 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
4346 Initialize GL(dl_wait_lookup_done).
4348 2007-05-17 Ulrich Drepper <drepper@redhat.com>
4351 * pthread_mutex_lock.c: Preserve FUTEX_WAITERS bit when dead owner
4353 * pthread_mutex_timedlock.c: Likewise.
4354 * pthread_mutex_trylock.c: Likewise.
4355 Patch in part by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
4357 * Makefile (tests): Add tst-robust9 and tst-robustpi9.
4358 * tst-robust9.c: New file.
4359 * tst-robustpi9.c: New file.
4361 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Remove
4362 unnecessary extra cancellation test.
4364 2007-05-14 Ulrich Drepper <drepper@redhat.com>
4366 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove unnecessary
4367 extra cancellation test.
4368 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
4370 2007-05-10 Ulrich Drepper <drepper@redhat.com>
4372 * descr.h (struct pthread): Rearrange members to fill hole in
4375 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
4376 (__pthread_setaffinity_new): If syscall was successful and
4377 RESET_VGETCPU_CACHE is defined, use it before returning.
4378 * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: New file.
4380 2007-05-10 Jakub Jelinek <jakub@redhat.com>
4383 * tst-align2.c: Include stackinfo.h.
4384 * tst-getpid1.c: Likewise.
4386 2007-05-02 Carlos O'Donell <carlos@systemhalted.org>
4389 * tst-align2.c (do_test): Add _STACK_GROWS_UP case.
4390 * tst-getpid1.c (do_test): Likewise.
4393 * allocatestack.c (change_stack_perm): Add _STACK_GROWS_UP case.
4394 (allocate_stack): Likewise.
4396 2007-05-07 Ulrich Drepper <drepper@redhat.com>
4398 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
4399 (__lll_robust_lock_wait): Fix race caused by reloading of futex value.
4400 (__lll_robust_timedlock_wait): Likewise.
4401 Reported by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
4403 2007-05-06 Mike Frysinger <vapier@gentoo.org>
4406 * tst-cancel-wrappers.sh: Set C["fdatasync"] to 1.
4407 * tst-cancel4.c (tf_fdatasync): New test.
4409 2007-04-27 Ulrich Drepper <drepper@redhat.com>
4412 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Treat error
4413 check mutexes like normal mutexes.
4416 * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
4417 Initialize the whole sigevent structure to appease valgrind.
4419 2007-04-25 Ulrich Drepper <drepper@redhat.com>
4421 * sysdeps/x86_64/tls.h (tcbhead_t): Add vgetcpu_cache.
4422 * sysdeps/x86_64/tcb-offsets.sym: Add VGETCPU_CACHE_OFFSET.
4424 2007-04-06 Ulrich Drepper <drepper@redhat.com>
4426 * tst-locale1.c: Avoid warnings.
4427 * tst-locale2.c: Likewise.
4429 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
4431 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
4432 (__lll_robust_trylock): Add MUTEX_HINT_ACQ to lwarx instruction.
4434 2007-03-16 Jakub Jelinek <jakub@redhat.com>
4436 * sysdeps/pthread/bits/libc-lock.h: Use __extern_inline and
4437 __extern_always_inline where appropriate.
4438 * sysdeps/pthread/pthread.h: Likewise.
4440 2007-03-13 Richard Henderson <rth@redhat.com>
4442 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use two
4443 separate cfi regions for the two subsections.
4445 2007-02-25 Ulrich Drepper <drepper@redhat.com>
4447 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in
4448 new thread, don't just decrement it.
4449 Patch by Suzuki K P <suzuki@in.ibm.com>.
4451 2007-02-21 Ulrich Drepper <drepper@redhat.com>
4453 * sysdeps/pthread/pthread-functions.h: Correct last patch, correct
4454 PTHFCT_CALL definition.
4456 2007-02-18 Ulrich Drepper <drepper@redhat.com>
4458 * sysdeps/pthread/pthread-functions.h: If PTR_DEMANGLE is not
4459 available, don't use it.
4461 2007-02-09 Jakub Jelinek <jakub@redhat.com>
4463 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
4464 (__lll_mutex_timedlock_wait): Use correct pointer when we don't
4465 call into the kernel to delay.
4467 2007-01-18 Ulrich Drepper <drepper@redhat.com>
4469 * tst-initializers1.c: We want to test the initializers as seen
4470 outside of libc, so undefined _LIBC.
4472 * pthread_join.c (cleanup): Avoid warning.
4474 2007-01-17 Ulrich Drepper <drepper@redhat.com>
4476 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
4477 (__lll_timedwait_tid): Add unwind info.
4479 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Don't just copy the
4480 function table, mangle the pointers.
4481 * sysdeps/pthread/pthread-functions.h: Define PTHFCT_CALL.
4482 * forward.c: Use PTHFCT_CALL and __libc_pthread_functions_init.
4483 * sysdeps/pthread/bits/libc-lock.h: When using __libc_pthread_functions
4484 demangle pointers before use.
4485 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Use PTHFCT_CALL to
4487 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
4488 * sysdeps/pthread/setxid.h: Likewise.
4490 2007-01-12 Ulrich Drepper <drepper@redhat.com>
4492 * tst-rwlock7.c: Show some more information in case of correct
4495 2007-01-11 Ulrich Drepper <drepper@redhat.com>
4497 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
4498 (lll_futex_timed_wait): Undo part of last change, don't negate
4501 2007-01-10 Ulrich Drepper <drepper@redhat.com>
4503 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Cleanups. Define
4504 FUTEX_CMP_REQUEUE and lll_futex_requeue.
4506 2006-12-28 David S. Miller <davem@davemloft.net>
4508 * shlib-versions: Fix sparc64 linux target specification.
4510 2007-01-10 Jakub Jelinek <jakub@redhat.com>
4512 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
4513 Adjust include path for pthread_barrier_wait.c move.
4515 2006-12-21 Jakub Jelinek <jakub@redhat.com>
4517 * sysdeps/unix/sysv/linux/pthread_kill.c (pthread_kill): Make sure
4518 tid isn't reread from pd->tid in between ESRCH test and the syscall.
4520 2006-12-06 Jakub Jelinek <jakub@redhat.com>
4522 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Handle
4523 6 argument cancellable syscalls.
4524 (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
4525 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Handle
4526 6 argument cancellable syscalls.
4527 (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
4529 2006-12-09 Ulrich Drepper <drepper@redhat.com>
4531 * sysdeps/unix/sysv/linux/rtld-lowlevel.h
4532 (__rtld_mrlock_initialize): Add missing closing parenthesis.
4534 2006-10-30 Jakub Jelinek <jakub@redhat.com>
4536 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
4537 __sync_lock_release instead of __sync_lock_release_si.
4539 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4541 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (RTLD_SINGLE_THREAD_P):
4543 (SINGLE_THREAD_P): Define to 1 if IS_IN_rtld.
4544 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
4545 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
4546 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
4547 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
4548 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
4549 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
4550 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
4551 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
4552 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
4553 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
4555 2006-10-27 Ulrich Drepper <drepper@redhat.com>
4557 * sysdeps/pthread/pthread_barrier_wait.c: Move to...
4558 * pthread_barrier_wait.c: ...here.
4559 * sysdeps/pthread/pthread_cond_broadcast.c: Move to...
4560 * pthread_cond_broadcast.c: ...here.
4561 * sysdeps/pthread/pthread_cond_signal.c: Move to...
4562 * pthread_cond_signal.c: ...here.
4563 * sysdeps/pthread/pthread_cond_timedwait.c: Move to...
4564 * pthread_cond_timedwait.c: ...here.
4565 * sysdeps/pthread/pthread_cond_wait.c: Move to...
4566 * pthread_cond_wait.c: ...here.
4567 * sysdeps/pthread/pthread_once.c: Move to...
4568 * pthread_once.c: ...here.
4569 * sysdeps/pthread/pthread_rwlock_rdlock.c: Move to...
4570 * pthread_rwlock_rdlock.c: ...here.
4571 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Move to...
4572 * pthread_rwlock_timedrdlock.c: ...here.
4573 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Move to...
4574 * pthread_rwlock_timedwrlock.c: ...here.
4575 * sysdeps/pthread/pthread_rwlock_unlock.c: Move to...
4576 * pthread_rwlock_unlock.c: ...here.
4577 * sysdeps/pthread/pthread_rwlock_wrlock.c: Move to...
4578 * pthread_rwlock_wrlock.c: ...here.
4579 * sysdeps/pthread/pthread_spin_destroy.c: Move to...
4580 * pthread_spin_destroy.c: ...here.
4581 * sysdeps/pthread/pthread_spin_init.c: Move to...
4582 * pthread_spin_init.c: ...here.
4583 * sysdeps/pthread/pthread_spin_unlock.c: Move to...
4584 * pthread_spin_unlock.c: ...here.
4585 * sysdeps/pthread/pthread_getcpuclockid.c: Move to...
4586 * pthread_getcpuclockid.c: ...here.
4588 * init.c: USE_TLS support is now always enabled.
4589 * tst-tls5.h: Likewise.
4590 * sysdeps/alpha/tls.h: Likewise.
4591 * sysdeps/i386/tls.h: Likewise.
4592 * sysdeps/ia64/tls.h: Likewise.
4593 * sysdeps/powerpc/tls.h: Likewise.
4594 * sysdeps/s390/tls.h: Likewise.
4595 * sysdeps/sh/tls.h: Likewise.
4596 * sysdeps/sparc/tls.h: Likewise.
4597 * sysdeps/x86_64/tls.h: Likewise.
4599 2006-10-27 Jakub Jelinek <jakub@redhat.com>
4601 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
4602 __rtld_mrlock_change): Update oldval if atomic compare and exchange
4605 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
4606 Define to THREAD_SELF->header.multiple_threads.
4607 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
4609 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
4611 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
4612 (SINGLE_THREAD_P): Likewise.
4613 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
4614 (SINGLE_THREAD_P): Likewise.
4615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
4616 (SINGLE_THREAD_P): Likewise.
4617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
4618 (SINGLE_THREAD_P): Likewise.
4619 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (SINGLE_THREAD_P):
4621 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
4622 (SINGLE_THREAD_P): Likewise.
4623 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
4624 (SINGLE_THREAD_P): Likewise.
4625 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (SINGLE_THREAD_P):
4628 2006-10-26 Jakub Jelinek <jakub@redhat.com>
4630 * pthread_attr_setstacksize.c (NEW_VERNUM): Define to GLIBC_2_3_3
4631 by default rather than 2_3_3.
4633 2006-10-17 Jakub Jelinek <jakub@redhat.com>
4635 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
4636 __rtld_mrlock_unlock, __rtld_mrlock_change, __rtld_mrlock_done): Use
4637 atomic_* instead of catomic_* macros.
4639 2006-10-12 Ulrich Drepper <drepper@redhat.com>
4642 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add SEM_VALUE_MAX.
4643 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
4644 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
4645 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
4646 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
4647 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Remove SEM_VALUE_MAX.
4648 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
4649 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
4650 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
4651 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: Likewise.
4652 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
4653 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
4654 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
4656 2006-10-11 Ulrich Drepper <drepper@redhat.com>
4658 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add support for
4659 cancelable syscalls with six parameters.
4661 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Use catomic_*
4662 operations instead of atomic_*.
4664 2006-10-09 Ulrich Drepper <drepper@redhat.com>
4666 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: New file..
4668 2006-10-07 Ulrich Drepper <drepper@redhat.com>
4670 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: New file.
4671 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: New file.
4672 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
4674 * pthread_attr_setstack.c: Allow overwriting the version number of the
4676 * pthread_attr_setstacksize.c: Likewise.
4677 (__old_pthread_attr_setstacksize): If STACKSIZE_ADJUST is defined use
4679 * sysdeps/unix/sysv/linux/powerpc/Versions (libpthread): Add
4680 pthread_attr_setstack and pthread_attr_setstacksize to GLIBC_2.6.
4682 2006-09-24 Ulrich Drepper <drepper@redhat.com>
4685 * descr.h (ENQUEUE_MUTEX_BOTH): Add cast to avoid warning.
4686 Patch by Petr Baudis.
4688 2006-09-18 Jakub Jelinek <jakub@redhat.com>
4690 * tst-kill4.c (do_test): Explicitly set tf thread's stack size.
4692 * tst-cancel2.c (tf): Loop as long as something was written.
4694 2006-09-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4696 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: For PI
4697 mutexes wake all mutexes.
4698 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Don't increment
4699 WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
4700 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
4702 2006-09-12 Ulrich Drepper <drepper@redhat.com>
4704 * tst-cond22.c (tf): Slight changes to the pthread_cond_wait use
4705 to guarantee the thread is always canceled.
4707 2006-09-08 Jakub Jelinek <jakub@redhat.com>
4709 * tst-cond22.c: Include pthread.h instead of pthreadP.h.
4711 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Only
4712 increase FUTEX if increasing WAKEUP_SEQ. Fix comment typo.
4713 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
4714 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
4715 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4717 2006-09-08 Ulrich Drepper <drepper@redhat.com>
4720 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Don't
4721 increment WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
4722 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
4723 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
4724 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4725 * Makefile (tests): Add tst-cond22.
4726 * tst-cond22.c: New file.
4728 2006-09-05 Ulrich Drepper <drepper@redhat.com>
4731 * descr.h (struct pthread): Add parent_cancelhandling.
4732 * sysdeps/pthread/createthread.c (create_thread): Pass parent
4733 cancelhandling value to child.
4734 * pthread_create.c (start_thread): If parent thread was canceled
4735 reset the SIGCANCEL mask.
4736 * Makefile (tests): Add tst-cancel25.
4737 * tst-cancel25.c: New file.
4739 2006-09-05 Jakub Jelinek <jakub@redhat.com>
4740 Ulrich Drepper <drepper@redhat.com>
4742 * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY): Don't decrement
4743 counterp if it is already zero.
4744 * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY): Likewise..
4746 2006-03-04 Jakub Jelinek <jakub@redhat.com>
4747 Roland McGrath <roland@redhat.com>
4749 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
4750 (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
4751 LLL_STUB_UNWIND_INFO_3, LLL_STUB_UNWIND_INFO_4): Define.
4752 (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
4753 lll_robust_mutex_cond_lock, lll_mutex_timedlock,
4754 lll_robust_mutex_timedlock, lll_mutex_unlock,
4755 lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
4756 Add _L_*_ symbols around the subsection.
4757 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Add unwind info.
4758 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Likewise.
4760 2006-03-03 Jakub Jelinek <jakub@redhat.com>
4761 Roland McGrath <roland@redhat.com>
4763 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
4764 (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
4765 LLL_STUB_UNWIND_INFO_5, LLL_STUB_UNWIND_INFO_6): Define.
4766 (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
4767 lll_robust_mutex_cond_lock, lll_mutex_timedlock,
4768 lll_robust_mutex_timedlock, lll_mutex_unlock,
4769 lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
4770 Add _L_*_ symbols around the subsection.
4771 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Add unwind info.
4772 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
4774 2006-08-31 Ulrich Drepper <drepper@redhat.com>
4776 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Undo last
4777 change because it can disturb too much existing code. If real hard
4778 reader preference is needed we'll introduce another type.
4779 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
4780 (pthread_rwlock_timedwrlock): Likewise.
4781 * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
4784 2006-08-30 Ulrich Drepper <drepper@redhat.com>
4786 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Respect
4788 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
4789 (pthread_rwlock_timedwrlock): Likewise.
4790 * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
4793 2006-08-25 Jakub Jelinek <jakub@redhat.com>
4795 * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libpthread):
4796 Only define ifdef SHARED.
4798 2006-08-23 Ulrich Drepper <drepper@redhat.com>
4800 * allocatestack.c (queue_stack): Move freeing of surplus stacks to...
4801 (free_stacks): ...here.
4802 (__free_stack_cache): New function.
4803 * pthreadP.h: Declare __free_stack_cache.
4804 * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
4806 * init.c (pthread_functions): Initialize ptr_freeres.
4807 * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libptread):
4808 New freeres function.
4810 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
4813 * Makefile (extra-objs): Add modules to extra-test-objs instead.
4815 2006-08-20 Ulrich Drepper <drepper@redhat.com>
4817 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4818 _XOPEN_REALTIME_THREADS.
4820 2006-08-15 Jakub Jelinek <jakub@redhat.com>
4822 * sysdeps/unix/sysv/linux/clock_settime.c (INTERNAL_VSYSCALL): Use
4823 HAVE_CLOCK_GETRES_VSYSCALL as guard macro rather than
4824 HAVE_CLOCK_GETTIME_VSYSCALL.
4825 (maybe_syscall_settime_cpu): Use plain INTERNAL_VSYSCALL here.
4827 2006-08-14 Jakub Jelinek <jakub@redhat.com>
4829 * sysdeps/unix/sysv/linux/bits/posix_opt.h
4830 (_POSIX_THREAD_PRIO_PROTECT): Define to 200112L.
4831 * descr.h (struct priority_protection_data): New type.
4832 (struct pthread): Add tpp field.
4833 * pthreadP.h (PTHREAD_MUTEX_PP_NORMAL_NP,
4834 PTHREAD_MUTEX_PP_RECURSIVE_NP, PTHREAD_MUTEX_PP_ERRORCHECK_NP,
4835 PTHREAD_MUTEX_PP_ADAPTIVE_NP): New enum values.
4836 * pthread_mutex_init.c (__pthread_mutex_init): Handle non-robust
4838 * pthread_mutex_lock.c (__pthread_mutex_lock): Handle TPP mutexes.
4839 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
4840 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
4841 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
4843 * pthread_setschedparam.c (__pthread_setschedparam): Handle priority
4845 * pthread_setschedprio.c (pthread_setschedprio): Likewise.
4846 * pthread_mutexattr_getprioceiling.c
4847 (pthread_mutexattr_getprioceiling): If ceiling is 0, ensure it is
4848 in the SCHED_FIFO priority range.
4849 * pthread_mutexattr_setprioceiling.c
4850 (pthread_mutexattr_setprioceiling): Fix prioceiling validation.
4851 * pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling): Fail
4852 if mutex is not TPP. Ceiling is now in __data.__lock.
4853 * pthread_mutex_setprioceiling.c: Include stdbool.h.
4854 (pthread_mutex_setprioceiling): Fix prioceiling validation. Ceiling
4855 is now in __data.__lock. Add locking.
4856 * pthread_create.c (__free_tcb): Free pd->tpp structure.
4857 * Makefile (libpthread-routines): Add tpp.
4858 (xtests): Add tst-mutexpp1, tst-mutexpp6 and tst-mutexpp10.
4859 * tst-tpp.h: New file.
4860 * tst-mutexpp1.c: New file.
4861 * tst-mutexpp6.c: New file.
4862 * tst-mutexpp10.c: New file.
4863 * tst-mutex1.c (TEST_FUNCTION): Don't redefine if already defined.
4864 * tst-mutex6.c (TEST_FUNCTION): Likewise.
4866 2006-08-12 Ulrich Drepper <drepper@redhat.com>
4869 * pthread_join.c (pthread_join): Account for self being canceled
4870 when checking for deadlocks.
4871 * tst-join5.c: Cleanups. Allow to be used in tst-join6.
4872 (tf1): Don't print anything after pthread_join returns, this would be
4873 another cancellation point.
4875 * tst-join6.c: New file.
4876 * Makefile (tests): Add tst-join6.
4878 2006-08-03 Ulrich Drepper <drepper@redhat.com>
4881 * pthread_setspecific.c (__pthread_setspecific): Check
4882 out-of-range index before checking for unused key.
4884 * sysdeps/pthread/gai_misc.h: New file.
4886 2006-08-01 Ulrich Drepper <drepper@redhat.com>
4888 * sysdeps/unix/sysv/linux/i386/smp.h: New file. Old Linux-specific
4889 file. Don't use sysctl.
4890 * sysdeps/unix/sysv/linux/smp.h: Always assume SMP. Archs can
4891 overwrite the file if this is likely not true.
4893 2006-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4895 * allocatestack.c (__reclaim_stacks): Reset the PID on cached stacks.
4896 * Makefile (tests): Add tst-getpid3.
4897 * tst-getpid3.c: New file.
4899 2006-07-30 Roland McGrath <roland@redhat.com>
4901 * Makefile (libpthread-routines): Add ptw-sigsuspend.
4903 * sysdeps/unix/sysv/linux/i386/not-cancel.h
4904 (pause_not_cancel): New macro.
4905 (nanosleep_not_cancel): New macro.
4906 (sigsuspend_not_cancel): New macro.
4907 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
4908 nanosleep_not_cancel macro from <not-cancel.h>.
4909 * pthread_mutex_lock.c (__pthread_mutex_lock): Use pause_not_cancel
4910 macro from <not-cancel.h>.
4912 2006-07-28 Ulrich Drepper <drepper@redhat.com>
4913 Jakub Jelinek <jakub@redhat.com>
4915 * descr.h: Change ENQUEUE_MUTEX and DEQUEUE_MUTEX for bit 0
4916 notification of PI mutex. Add ENQUEUE_MUTEX_PI.
4917 * pthreadP.h: Define PTHREAD_MUTEX_PI_* macros for PI mutex types.
4918 * pthread_mutex_setprioceilining.c: Adjust for mutex type name change.
4919 * pthread_mutex_init.c: Add support for priority inheritance mutex.
4920 * pthread_mutex_lock.c: Likewise.
4921 * pthread_mutex_timedlock.c: Likewise.
4922 * pthread_mutex_trylock.c: Likewise.
4923 * pthread_mutex_unlock.c: Likewise.
4924 * sysdeps/pthread/pthread_cond_broadcast.c: For PI mutexes wake
4926 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.c: Likewise.
4927 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.c: Likewise.
4928 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: New file.
4929 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-header): Add
4930 pthread-pi-defines.sym.
4931 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_LOCK_PI,
4932 FUTEX_UNLOCK_PI, and FUTEX_TRYLOCK_PI.
4933 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4934 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
4935 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
4936 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
4937 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
4938 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
4939 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
4940 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4941 _POSIX_THREAD_PRIO_INHERIT to 200112L.
4942 * tst-mutex1.c: Adjust to allow use in PI mutex test.
4943 * tst-mutex2.c: Likewise.
4944 * tst-mutex3.c: Likewise.
4945 * tst-mutex4.c: Likewise.
4946 * tst-mutex5.c: Likewise.
4947 * tst-mutex6.c: Likewise.
4948 * tst-mutex7.c: Likewise.
4949 * tst-mutex7a.c: Likewise.
4950 * tst-mutex8.c: Likewise.
4951 * tst-mutex9.c: Likewise.
4952 * tst-robust1.c: Likewise.
4953 * tst-robust7.c: Likewise.
4954 * tst-robust8.c: Likewise.
4955 * tst-mutexpi1.c: New file.
4956 * tst-mutexpi2.c: New file.
4957 * tst-mutexpi3.c: New file.
4958 * tst-mutexpi4.c: New file.
4959 * tst-mutexpi5.c: New file.
4960 * tst-mutexpi6.c: New file.
4961 * tst-mutexpi7.c: New file.
4962 * tst-mutexpi7a.c: New file.
4963 * tst-mutexpi8.c: New file.
4964 * tst-mutexpi9.c: New file.
4965 * tst-robust1.c: New file.
4966 * tst-robust2.c: New file.
4967 * tst-robust3.c: New file.
4968 * tst-robust4.c: New file.
4969 * tst-robust5.c: New file.
4970 * tst-robust6.c: New file.
4971 * tst-robust7.c: New file.
4972 * tst-robust8.c: New file.
4973 * Makefile (tests): Add the new tests.
4975 * pthread_create.c (start_thread): Add some casts to avoid warnings.
4976 * pthread_mutex_destroy.c: Remove unneeded label.
4978 2006-07-01 Ulrich Drepper <drepper@redhat.com>
4980 * pthread_mutex_init.c (__pthread_mutex_init): Move some
4981 computations to compile time.
4983 2006-06-04 Ulrich Drepper <drepper@redhat.com>
4985 * sysdeps/pthread/pthread.h: Add pthread_equal inline version.
4987 2006-05-15 Ulrich Drepper <drepper@redhat.com>
4989 * sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.
4991 2006-05-11 Ulrich Drepper <drepper@redhat.com>
4993 * pthread_key_create.c (__pthread_key_create): Do away with
4994 __pthread_keys_lock.
4996 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
4997 (__kernel_cpumask_size): Mark as hidden.
4998 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
5000 * sem_open.c (__sem_mappings_lock): Mark as hidden.
5001 * semaphoreP.h (__sem_mappings_lock): Likewise.
5003 2006-05-10 Ulrich Drepper <drepper@redhat.com>
5005 * pthread_atfork.c: Mark __dso_handle as hidden.
5007 2006-05-09 Ulrich Drepper <drepper@redhat.com>
5010 * sysdeps/pthread/unwind-forcedunwind.c: Different solution for
5011 the reload problem. Change the one path in pthread_cancel_init
5012 which causes the problem. Force gcc to reload. Simplify callers.
5013 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c
5014 (_Unwind_GetBSP): Undo last patch.
5016 2006-05-07 Ulrich Drepper <drepper@redhat.com>
5018 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: Make sure the
5019 function pointer is reloaded after pthread_cancel_init calls.
5022 * sysdeps/pthread/unwind-forcedunwind.c: Make sure functions
5023 pointers are reloaded after pthread_cancel_init calls.
5025 2006-05-01 Ulrich Drepper <drepper@redhat.com>
5027 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Mark with
5030 2006-04-27 Ulrich Drepper <drepper@redhat.com>
5032 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
5033 Allocate new object which is passed to timer_sigev_thread so that
5034 the timer can be deleted before the new thread is scheduled.
5036 2006-04-26 Roland McGrath <roland@redhat.com>
5038 * sysdeps/x86_64/tls.h: Include <asm/prctl.h> inside [! __ASSEMBLER__].
5040 2006-04-08 Ulrich Drepper <drepper@redhat.com>
5042 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove branch predicion
5043 suffix for conditional jumps.
5044 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
5045 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
5046 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
5047 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
5048 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
5049 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
5051 * init.c (sigcancel_handler): Compare with correct PID even if the
5052 thread is in the middle of a fork call.
5053 (sighandler_setxid): Likewise.
5054 Reported by Suzuki K P <suzuki@in.ibm.com> .
5056 2006-04-07 Jakub Jelinek <jakub@redhat.com>
5058 * pthreadP.h (FUTEX_TID_MASK): Sync with kernel.
5060 2006-04-06 Ulrich Drepper <drepper@redhat.com>
5062 * pthread_getattr_np.c (pthread_getattr_np): Close fp if getrlimit
5063 fails [Coverity CID 105].
5065 2006-04-05 Ulrich Drepper <drepper@redhat.com>
5067 * sysdeps/pthread/pthread.h: Add nonnull attributes.
5069 2006-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5072 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h [_ARCH_PWR4]:
5073 Define __lll_rel_instr using lwsync.
5075 2006-03-27 Ulrich Drepper <drepper@redhat.com>
5077 * allocatestack.c (allocate_stack): Always initialize robust_head.
5078 * descr.h: Define struct robust_list_head.
5079 (struct pthread): Use robust_list_head in robust mutex list definition.
5080 Adjust ENQUEUE_MUTEX and DEQUEUE_MUTEX.
5081 * init.c [!__ASSUME_SET_ROBUST_LIST] (__set_robust_list_avail): Define.
5082 (__pthread_initialize_minimal_internal): Register robust_list with
5084 * pthreadP.h: Remove PRIVATE_ from PTHREAD_MUTEX_ROBUST_* names.
5085 Declare __set_robust_list_avail.
5086 * pthread_create.c (start_thread): Register robust_list of new thread.
5087 [!__ASSUME_SET_ROBUST_LIST]: If robust_list is not empty wake up
5089 * pthread_mutex_destroy.c: For robust mutexes don't look at the
5090 number of users, it's unreliable.
5091 * pthread_mutex_init.c: Allow use of pshared robust mutexes if
5092 set_robust_list syscall is available.
5093 * pthread_mutex_consistent.c: Adjust for PTHREAD_MUTEX_ROBUST_* rename.
5094 * pthread_mutex_lock.c: Simplify robust mutex code a bit.
5095 Set robust_head.list_op_pending before trying to lock a robust mutex.
5096 * pthread_mutex_timedlock.c: Likewise.
5097 * pthread_mutex_trylock.c: Likewise.
5098 * pthread_mutex_unlock.c: Likewise for unlocking.
5099 * Makefile (tests): Add tst-robust8.
5100 * tst-robust8.c: New file.
5102 2006-03-08 Andreas Schwab <schwab@suse.de>
5104 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
5105 (DL_SYSINFO_IMPLEMENTATION): Add missing newline.
5107 2006-03-05 Roland McGrath <roland@redhat.com>
5109 * configure (libc_add_on): Disable add-on when $add_ons_automatic = yes
5110 and $config_os doesn't match *linux*.
5112 2006-03-05 David S. Miller <davem@sunset.davemloft.net>
5114 * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S:
5115 Use __syscall_error.
5116 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
5117 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
5118 * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Likewise.
5119 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
5120 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
5121 * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
5123 2006-03-02 Ulrich Drepper <drepper@redhat.com>
5125 * sysdeps/unix/sysv/linux/aio_misc.h: Various cleanups.
5127 2006-03-01 Ulrich Drepper <drepper@redhat.com>
5129 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
5130 (__lll_robust_lock_wait): Also set FUTEX_WAITERS bit if we got the
5132 (__lll_robust_timedlock_wait): Likewise.
5133 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S
5134 (__lll_robust_lock_wait): Likewise.
5135 (__lll_robust_timedlock_wait): Likewise.
5136 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
5137 (__lll_robust_lock_wait): Likewise.
5138 (__lll_robust_timedlock_wait): Likewise.
5140 2006-03-01 Jakub Jelinek <jakub@redhat.com>
5142 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_robust_mutex_dead,
5143 lll_robust_mutex_trylock, lll_robust_mutex_lock,
5144 lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
5145 lll_robust_mutex_unlock): Define.
5146 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
5148 2006-02-28 H.J. Lu <hongjiu.lu@intel.com>
5150 * sysdeps/unix/sysv/linux/ia64/clone2.S: Include <clone2.S>
5151 instead of <clone.S>.
5153 2006-02-27 Jakub Jelinek <jakub@redhat.com>
5155 * Makefile (libpthread-routines): Add
5156 pthread_mutexattr_[sg]etprotocol, pthread_mutexattr_[sg]etprioceiling
5157 and pthread_mutex_[sg]etprioceiling.
5158 * Versions (GLIBC_2.4): Export pthread_mutexattr_getprotocol,
5159 pthread_mutexattr_setprotocol, pthread_mutexattr_getprioceiling,
5160 pthread_mutexattr_setprioceiling, pthread_mutex_getprioceiling and
5161 pthread_mutex_setprioceiling.
5162 * sysdeps/pthread/pthread.h (PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT,
5163 PTHREAD_PRIO_PROTECT): New enum values.
5164 (pthread_mutexattr_getprotocol, pthread_mutexattr_setprotocol,
5165 pthread_mutexattr_getprioceiling, pthread_mutexattr_setprioceiling,
5166 pthread_mutex_getprioceiling, pthread_mutex_setprioceiling): New
5168 * pthreadP.h (PTHREAD_MUTEX_PRIO_INHERIT_PRIVATE_NP,
5169 PTHREAD_MUTEX_PRIO_PROTECT_PRIVATE_NP): New enum values.
5170 (PTHREAD_MUTEX_PRIO_CEILING_SHIFT, PTHREAD_MUTEX_PRIO_CEILING_MASK):
5172 (PTHREAD_MUTEXATTR_PROTOCOL_SHIFT, PTHREAD_MUTEXATTR_PROTOCOL_MASK,
5173 PTHREAD_MUTEXATTR_PRIO_CEILING_SHIFT,
5174 PTHREAD_MUTEXATTR_PRIO_CEILING_MASK): Define.
5175 (PTHREAD_MUTEXATTR_FLAG_BITS): Or in PTHREAD_MUTEXATTR_PROTOCOL_MASK
5176 and PTHREAD_MUTEXATTR_PRIO_CEILING_MASK.
5177 * pthread_mutex_init.c (__pthread_mutex_init): For the time being
5178 return ENOTSUP for PTHREAD_PRIO_INHERIT or PTHREAD_PRIO_PROTECT
5180 * pthread_mutex_getprioceiling.c: New file.
5181 * pthread_mutex_setprioceiling.c: New file.
5182 * pthread_mutexattr_getprioceiling.c: New file.
5183 * pthread_mutexattr_setprioceiling.c: New file.
5184 * pthread_mutexattr_getprotocol.c: New file.
5185 * pthread_mutexattr_setprotocol.c: New file.
5187 2006-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5189 * sysdeps/unix/sysv/linux/aio_misc.h: Include <limits.h>.
5191 2006-02-27 Roland McGrath <roland@redhat.com>
5193 * sysdeps/pthread/Subdirs: List nptl here too.
5194 * configure (libc_add_on_canonical): New variable.
5196 * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Use #include_next.
5198 * sysdeps/unix/sysv/linux/sleep.c: Use #include_next after #include of
5199 self to get main source tree's file.
5200 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5201 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5202 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5203 * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
5204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
5205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
5206 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
5207 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
5208 * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
5209 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
5210 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
5211 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5212 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5214 * Makefile: Use $(sysdirs) in vpath directive.
5216 * sysdeps/pthread/Makefile (CFLAGS-libc-start.c): Variable removed.
5217 (CPPFLAGS-timer_routines.c): Likewise.
5219 * Makeconfig (includes): Variable removed.
5221 2006-02-26 Roland McGrath <roland@redhat.com>
5223 * sysdeps/generic/pt-raise.c: Moved to ...
5224 * pt-raise.c: ... here.
5225 * sysdeps/generic/lowlevellock.h: Moved to ...
5226 * lowlevellock.h: ... here.
5228 2006-02-23 Roland McGrath <roland@redhat.com>
5230 * descr.h (struct pthread): Add final member `end_padding'.
5231 (PTHREAD_STRUCT_END_PADDING): Use it.
5233 2006-02-20 Roland McGrath <roland@redhat.com>
5235 * sysdeps/mips: Directory removed, saved in ports repository.
5236 * sysdeps/unix/sysv/linux/mips: Likewise.
5238 2006-02-18 Ulrich Drepper <drepper@redhat.com>
5240 * tst-robust1.c: Add second mutex to check that the mutex list is
5243 2006-02-17 Jakub Jelinek <jakub@redhat.com>
5245 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_mutex_dead,
5246 lll_robust_mutex_trylock, lll_robust_mutex_lock,
5247 lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
5248 lll_robust_mutex_unlock): New macros.
5249 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
5250 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
5251 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
5252 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
5253 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: New file.
5255 2006-02-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5257 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Add lll_robust_mutex_*
5259 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: New file.
5261 2006-02-17 Ulrich Drepper <drepper@redhat.com>
5263 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
5264 (lll_robust_mutex_unlock): Avoid unnecessary wakeups.
5265 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
5266 (lll_robust_mutex_unlock): Likewise.
5268 2006-02-13 Jakub Jelinek <jakub@redhat.com>
5270 * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX):
5271 Set robust_list.__next rather than robust_list.
5272 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
5273 (__pthread_list_t): New typedef.
5274 (pthread_mutex_t): Replace __next and __prev fields with __list.
5275 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
5276 (__pthread_list_t): New typedef.
5277 (pthread_mutex_t): Replace __next and __prev fields with __list.
5278 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5279 (__pthread_list_t, __pthread_slist_t): New typedefs.
5280 (pthread_mutex_t): Replace __next and __prev fields with __list.
5281 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
5282 (__pthread_list_t, __pthread_slist_t): New typedefs.
5283 (pthread_mutex_t): Replace __next and __prev fields with __list.
5284 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
5285 (__pthread_list_t, __pthread_slist_t): New typedefs.
5286 (pthread_mutex_t): Replace __next and __prev fields with __list.
5287 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
5288 (__pthread_slist_t): New typedef.
5289 (pthread_mutex_t): Replace __next field with __list.
5291 2006-02-15 Ulrich Drepper <drepper@redhat.com>
5293 * pthreadP.h: Define PTHREAD_MUTEX_INCONSISTENT instead of
5294 PTHREAD_MUTEX_OWNERDEAD.
5295 (PTHREAD_MUTEX_ROBUST_PRIVATE_NP): Define as 16, not 256.
5296 Define FUTEX_WAITERS, FUTEX_OWNER_DIED, FUTEX_TID_MASK.
5297 * Makefile (libpthread-routines): Add lowlevelrobustlock.
5298 * pthread_create.c (start_thread): Very much simplify robust_list loop.
5299 * pthread_mutex_consistent.c: Inconsistent mutex have __owner now set
5300 to PTHREAD_MUTEX_INCONSISTENT.
5301 * pthread_mutex_destroy.c: Allow destroying of inconsistent mutexes.
5302 * pthread_mutex_lock.c: Reimplement robust mutex handling.
5303 * pthread_mutex_trylock.c: Likewise.
5304 * pthread_mutex_timedlock.c: Likewise.
5305 * pthread_mutex_unlock.c: Likewise.
5306 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
5307 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
5308 lowlevelrobustlock.sym.
5309 * sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: New file.
5310 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add lll_robust_mutex_*
5312 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
5313 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: New file.
5314 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: New file.
5315 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: New file.
5316 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: New file.
5318 2006-02-12 Ulrich Drepper <drepper@redhat.com>
5320 * allocatestack.c (allocate_stack): Initialize robust_list.
5321 * init.c (__pthread_initialize_minimal_internal): Likewise.
5322 * descr.h (struct xid_command): Pretty printing.
5323 (struct pthread): Use __pthread_list_t or __pthread_slist_t for
5324 robust_list. Adjust macros.
5325 * pthread_create.c (start_thread): Adjust robust_list handling.
5326 * phtread_mutex_unlock.c: Don't allow unlocking from any thread
5327 but the owner for all robust mutex types.
5328 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
5329 __pthread_list_t and __pthread_slist_t. Use them in pthread_mutex_t.
5330 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5331 * sysdeps/pthread/pthread.h: Adjust mutex initializers.
5333 * sysdeps/unix/sysv/linux/i386/not-cancel.h: Define openat_not_cancel,
5334 openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3.
5336 2006-02-08 Jakub Jelinek <jakub@redhat.com>
5338 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait,
5339 lll_futex_timedwait, lll_wait_tid): Add "memory" clobber.
5341 2006-01-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5343 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_wait):
5345 (lll_futex_timed_wait): Define.
5347 2006-01-19 Ulrich Drepper <drepper@redhat.com>
5349 * tst-cancel4.c: Test ppoll.
5351 2006-01-18 Andreas Jaeger <aj@suse.de>
5354 * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
5355 (pthread_mutex_t): Follow changes for other archs. Based on patch
5356 by Jim Gifford <patches@jg555.com>.
5358 2006-01-13 Richard Henderson <rth@redhat.com>
5360 * sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private.
5362 2006-01-10 Roland McGrath <roland@redhat.com>
5364 * sysdeps/alpha/jmpbuf-unwind.h: File moved to main source tree.
5365 * sysdeps/i386/jmpbuf-unwind.h: Likewise.
5366 * sysdeps/mips/jmpbuf-unwind.h: Likewise.
5367 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
5368 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
5369 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
5370 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
5371 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
5372 * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
5373 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
5375 2006-01-09 Roland McGrath <roland@redhat.com>
5377 * tst-initializers1-c89.c: New file.
5378 * tst-initializers1-c99.c: New file.
5379 * tst-initializers1-gnu89.c: New file.
5380 * tst-initializers1-gnu99.c: New file.
5381 * Makefile (tests): Add them.
5382 (CFLAGS-tst-initializers1-c89.c): New variable.
5383 (CFLAGS-tst-initializers1-c99.c): New variable.
5384 (CFLAGS-tst-initializers1-gnu89.c): New variable.
5385 (CFLAGS-tst-initializers1-gnu99.c): New variable.
5387 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
5388 Use __extension__ on anonymous union definition.
5389 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5390 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
5391 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5392 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5393 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5395 2006-01-08 Jakub Jelinek <jakub@redhat.com>
5397 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
5398 Don't give the union a name because it changes the mangled name.
5399 Instead name the struct for __data.
5400 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_mutex_t):
5402 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_mutex_t):
5405 2006-01-09 Jakub Jelinek <jakub@redhat.com>
5407 * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Add
5408 stack bias to mc_ftp field.
5410 2006-01-07 Ulrich Drepper <drepper@redhat.com>
5412 * sysdeps/pthread/aio_misc.h (AIO_MISC_WAIT): Work around gcc
5413 being too clever and reloading the futex value where it shouldn't.
5415 2006-01-06 Ulrich Drepper <drepper@redhat.com>
5417 * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX): Use
5420 2006-01-06 Jakub Jelinek <jakub@redhat.com>
5422 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
5425 2006-01-06 Ulrich Drepper <drepper@redhat.com>
5427 * sysdeps/ia64/tls.h (tcbhead_t): Rename private member to __private.
5428 * sysdeps/ia64/tcb-offsets.sym: Adjust for private->__private
5429 rename in tcbhead_t.
5431 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
5432 Don't give the union a name because it changes the mangled name.
5433 Instead name the struct for __data.
5434 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5435 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5436 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5437 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5438 * pthread_create.c (start_thread): Adjust robust mutex free loop.
5439 * descr.h (ENQUEUE_MUTEX, DEQUEUE_MUTEX): Adjust.
5441 2006-01-05 Ulrich Drepper <drepper@redhat.com>
5443 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
5445 (lll_futex_timed_wait): Define.
5446 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
5447 * sysdeps/pthread/aio_misc.h: New file.
5449 2006-01-03 Joseph S. Myers <joseph@codesourcery.com>
5451 * Makefile ($(objpfx)$(multidir)): Use mkdir -p.
5453 2006-01-03 Steven Munroe <sjmunroe@us.ibm.com>
5455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
5456 (PSEUDO): Remove redundant cfi_startproc and cfi_endproc directives.
5457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
5459 2006-01-04 Ulrich Drepper <drepper@redhat.com>
5461 * tst-cancel24.cc: Use C headers instead of C++ headers.
5463 2006-01-03 Jakub Jelinek <jakub@redhat.com>
5465 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Remove #error for
5466 sparc-linux configured glibc.
5467 (lll_futex_wake_unlock): Define to 1 for sparc-linux configured glibc.
5468 (__lll_mutex_trylock, __lll_mutex_cond_trylock, __lll_mutex_lock,
5469 __lll_mutex_cond_lock, __lll_mutex_timedlock): Use
5470 atomic_compare_and_exchange_val_24_acq instead of
5471 atomic_compare_and_exchange_val_acq.
5472 (lll_mutex_unlock, lll_mutex_unlock_force): Use atomic_exchange_24_rel
5473 instead of atomic_exchange_rel.
5474 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: New file.
5475 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c: New
5477 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c: New
5479 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: New file.
5480 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: New file.
5481 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: New file.
5482 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: New file.
5483 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: New file.
5484 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
5486 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
5488 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: New file.
5489 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: New file.
5490 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c: New
5492 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c: New
5494 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: New file.
5496 2006-01-03 Ulrich Drepper <drepper@redhat.com>
5498 * sysdeps/pthread/pthread.h [__WORDSIZE==64]: Don't use cast in
5501 2006-01-02 Jakub Jelinek <jakub@redhat.com>
5503 * sysdeps/sparc/tls.h (tcbhead_t): Add pointer_guard field.
5504 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5505 THREAD_COPY_POINTER_GUARD): Define.
5506 * sysdeps/sparc/tcb-offsets.sym (POINTER_GUARD): Define.
5507 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Revert 2005-12-27 changes.
5509 2006-01-01 Ulrich Drepper <drepper@redhat.com>
5511 * version.c: Update copyright year.
5513 2005-12-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5515 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Remove explicit
5516 .eh_frame section, use cfi_* directives.
5517 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Add cfi instrumentation.
5519 2005-12-30 Ulrich Drepper <drepper@redhat.com>
5521 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Undo last change for
5524 2005-12-29 Ulrich Drepper <drepper@redhat.com>
5526 * sysdeps/pthread/sigaction.c: Removed.
5527 * sigaction.c: New file.
5528 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-sigaction.c.
5530 2005-12-28 Ulrich Drepper <drepper@redhat.com>
5532 * Makefile (tests): Add tst-signal7.
5533 * tst-signal7.c: New file.
5535 2005-12-27 Roland McGrath <roland@redhat.com>
5537 * sysdeps/x86_64/jmpbuf-unwind.h (_jmpbuf_sp): New inline function.
5538 (_JMPBUF_UNWINDS_ADJ): Use it, to PTR_DEMANGLE before comparison.
5539 * sysdeps/alpha/jmpbuf-unwind.h: Likewise.
5540 * sysdeps/i386/jmpbuf-unwind.h: Likewise.
5541 * sysdeps/mips/jmpbuf-unwind.h: Likewise.
5542 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
5543 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
5544 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
5545 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
5546 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
5547 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
5549 2005-12-27 Jakub Jelinek <jakub@redhat.com>
5551 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Add __next
5552 and __prev field to pthread_mutex_t.
5553 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5554 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5555 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5556 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5557 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Add __next field
5560 2005-12-26 Ulrich Drepper <drepper@redhat.com>
5562 * pthreadP.h: Define PTHREAD_MUTEX_ROBUST_PRIVATE_NP,
5563 PTHREAD_MUTEX_ROBUST_PRIVATE_RECURSIVE_NP,
5564 PTHREAD_MUTEX_ROBUST_PRIVATE_ERRORCHECK_NP,
5565 PTHREAD_MUTEX_ROBUST_PRIVATE_ADAPTIVE_NP,
5566 PTHREAD_MUTEXATTR_FLAG_ROBUST, PTHREAD_MUTEXATTR_FLAG_PSHARED,
5567 and PTHREAD_MUTEXATTR_FLAG_BITS.
5568 * descr.h (struct pthread): Add robust_list field and define
5569 ENQUEUE_MUTEX and DEQUEUE_MUTEX macros.
5570 * pthread_mutexattr_getrobust.c: New file.
5571 * pthread_mutexattr_setrobust.c: New file.
5572 * pthread_mutex_consistent.c: New file.
5573 * sysdeps/pthread/pthread.h: Declare pthread_mutexattr_getrobust,
5574 pthread_mutexattr_setrobust, and pthread_mutex_consistent.
5575 Define PTHREAD_MUTEX_STALLED_NP and PTHREAD_MUTEX_ROBUST_NP.
5576 Adjust pthread_mutex_t initializers.
5577 * nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Add __next
5578 field to pthread_mutex_t.
5579 * nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Add __next
5580 and __prev field to pthread_mutex_t.
5581 * Versions [GLIBC_2.4]: Export pthread_mutexattr_getrobust_np,
5582 pthread_mutexattr_setrobust_np, and pthread_mutex_consistent_np.
5583 * pthread_mutexattr_getpshared.c: Use PTHREAD_MUTEXATTR_FLAG_PSHARED
5584 and PTHREAD_MUTEXATTR_FLAG_BITS macros instead of magic numbers.
5585 * pthread_mutexattr_gettype.c: Likewise.
5586 * pthread_mutexattr_setpshared.c: Likewise.
5587 * pthread_mutexattr_settype.c: Likewise.
5588 * pthread_mutex_init.c: Reject robust+pshared attribute for now.
5589 Initialize mutex kind according to robust flag.
5590 * pthread_mutex_lock.c: Implement local robust mutex.
5591 * pthread_mutex_timedlock.c: Likewise.
5592 * pthread_mutex_trylock.c: Likewise.
5593 * pthread_mutex_unlock.c: Likewise.
5594 * pthread_create.c (start_thread): Mark robust mutexes which remained
5596 * tst-robust1.c: New file.
5597 * tst-robust2.c: New file.
5598 * tst-robust3.c: New file.
5599 * tst-robust4.c: New file.
5600 * tst-robust5.c: New file.
5601 * tst-robust6.c: New file.
5602 * tst-robust7.c: New file.
5603 * Makefile (libpthread-routines): Add pthread_mutexattr_getrobust,
5604 pthread_mutexattr_setrobust, and pthread_mutex_consistent.
5605 (tests): Add tst-robust1, tst-robust2, tst-robust3, tst-robust4,
5606 tst-robust5, tst-robust6, and tst-robust7.
5608 * tst-typesizes.c: New file.
5609 * Makefile (tests): Add tst-typesizes.
5611 * tst-once3.c: More debug output.
5613 2005-12-24 Ulrich Drepper <drepper@redhat.com>
5615 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Add break
5616 missing after last change.
5618 * version.c: Update copyright year.
5620 2005-12-23 Ulrich Drepper <drepper@redhat.com>
5622 * pthread_mutex_destroy.c: Set mutex type to an invalid value.
5623 * pthread_mutex_lock.c: Return EINVAL for invalid mutex type.
5624 * pthread_mutex_trylock.c: Likewise.
5625 * pthread_mutex_timedlock.c: Likewise.
5626 * pthread_mutex_unlock.c: Likewise.
5628 2005-12-22 Roland McGrath <roland@redhat.com>
5630 * sysdeps/pthread/sigaction.c: Use "" instead of <> to include self,
5631 so that #include_next's search location is not reset to the -I..
5632 directory where <nptl/...> can be found.
5634 2005-12-22 Ulrich Drepper <drepper@redhat.com>
5637 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
5638 Fix unwind info. Remove useless branch prediction prefix.
5639 * tst-cancel24.cc: New file.
5640 * Makefile: Add rules to build and run tst-cancel24.
5642 2005-12-21 Roland McGrath <roland@redhat.com>
5644 * libc-cancellation.c: Use <> rather than "" #includes.
5645 * pt-cleanup.c: Likewise.
5646 * pthread_create.c: Likewise.
5647 * pthread_join.c: Likewise.
5648 * pthread_timedjoin.c: Likewise.
5649 * pthread_tryjoin.c: Likewise.
5650 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Likewise.
5651 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
5652 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
5653 * unwind.c: Likewise.
5655 2005-12-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5657 * sysdeps/sh/tcb-offsets.sym: Add POINTER_GUARD.
5658 * sysdeps/sh/tls.h (tcbhead_t): Remove private and add pointer_guard.
5659 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5660 THREAD_COPY_POINTER_GUARD): Define.
5662 2005-12-19 Jakub Jelinek <jakub@redhat.com>
5664 * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): Make room for 2 uintptr_t's
5666 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5667 THREAD_COPY_POINTER_GUARD): Define.
5668 * sysdeps/powerpc/tcb-offsets.sym (POINTER_GUARD): Add.
5669 * sysdeps/powerpc/tls.h (tcbhead_t): Add pointer_guard field.
5670 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5671 THREAD_COPY_POINTER_GUARD): Define.
5672 * sysdeps/s390/tcb-offsets.sym (STACK_GUARD): Add.
5673 * sysdeps/s390/tls.h (THREAD_GET_POINTER_GUARD,
5674 THREAD_SET_POINTER_GUARD, THREAD_COPY_POINTER_GUARD): Define.
5675 * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S (__ia64_longjmp):
5676 Use PTR_DEMANGLE for B0 if defined.
5678 2005-12-17 Ulrich Drepper <drepper@redhat.com>
5680 * pthread_create.c (__pthread_create_2_1): Use
5681 THREAD_COPY_POINTER_GUARD if available.
5682 * sysdeps/i386/tcb-offsets.sym: Add POINTER_GUARD.
5683 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
5684 * sysdeps/i386/tls.h (tcbhead_t): Add pointer_guard.
5685 Define THREAD_SET_POINTER_GUARD and THREAD_COPY_POINTER_GUARD.
5686 * sysdeps/x86_64/tls.h: Likewise.
5688 2005-12-15 Roland McGrath <roland@redhat.com>
5690 * sysdeps/unix/sysv/linux/mq_notify.c: Don't use sysdeps/generic.
5692 2005-12-13 Ulrich Drepper <drepper@redhat.com>
5694 * sysdeps/pthread/sigfillset.c: Adjust for files moved out of
5696 * errno-loc.c: New file.
5698 2005-12-12 Roland McGrath <roland@redhat.com>
5700 * init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
5701 adjustments before choosing stack size. Update minimum stack size
5702 calculation to match allocate_stack change.
5704 2005-12-12 Ulrich Drepper <drepper@redhat.com>
5706 * allocatestack.c (allocate_stack): Don't demand that there is an
5707 additional full page available on the stack beside guard, TLS, the
5710 2005-11-24 Ulrich Drepper <drepper@redhat.com>
5712 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
5713 (__cleanup_fct_attribute): Use __regparm__ not regparm.
5715 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: When
5716 compiling 32-bit code we must define __cleanup_fct_attribute.
5718 005-11-24 Jakub Jelinek <jakub@redhat.com>
5721 * sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
5722 __attribute__ instead of __attribute.
5723 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
5724 (__cleanup_fct_attribute): Likewise.
5726 2005-11-17 Jakub Jelinek <jakub@redhat.com>
5728 * sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
5729 a write barrier before writing libgcc_s_getcfa.
5731 2005-11-06 Ulrich Drepper <drepper@redhat.com>
5733 * sysdeps/unix/sysv/linux/configure: Removed.
5735 2005-11-05 Ulrich Drepper <drepper@redhat.com>
5737 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Remove trace of
5738 optional init_array/fini_array support.
5740 2005-10-24 Roland McGrath <roland@redhat.com>
5742 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove unnecessary
5743 versioned_symbol use.
5745 2005-10-16 Roland McGrath <roland@redhat.com>
5747 * init.c (__pthread_initialize_minimal_internal): Even when using a
5748 compile-time default stack size, apply the minimum that allocate_stack
5749 will require, and round up to page size.
5751 2005-10-10 Daniel Jacobowitz <dan@codesourcery.com>
5753 * Makefile ($(test-modules)): Remove static pattern rule.
5755 2005-10-14 Jakub Jelinek <jakub@redhat.com>
5756 Ulrich Drepper <drepper@redhat.com>
5758 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix stack
5759 alignment in callback function.
5760 * Makefile: Add rules to build and run tst-align3.
5761 * tst-align3.c: New file.
5763 2005-10-03 Jakub Jelinek <jakub@redhat.com>
5765 * allocatestack.c (setxid_signal_thread): Add
5766 INTERNAL_SYSCALL_DECL (err).
5768 2005-10-02 Jakub Jelinek <jakub@redhat.com>
5770 * allocatestack.c (setxid_signal_thread): Need to use
5771 atomic_compare_and_exchange_bool_acq.
5773 2005-10-01 Ulrich Drepper <drepper@redhat.com>
5774 Jakub Jelinek <jakub@redhat.com>
5776 * descr.h: Define SETXID_BIT and SETXID_BITMASK. Adjust
5778 (struct pthread): Move specific_used field to avoid padding.
5779 Add setxid_futex field.
5780 * init.c (sighandler_setxid): Reset setxid flag and release the
5782 * allocatestack.c (setxid_signal_thread): New function. Broken
5783 out of the bodies of the two loops in __nptl_setxid. For undetached
5784 threads check whether they are exiting and if yes, don't send a signal.
5785 (__nptl_setxid): Simplify loops by using setxid_signal_thread.
5786 * pthread_create.c (start_thread): For undetached threads, check
5787 whether setxid bit is set. If yes, wait until signal has been
5790 * allocatestack.c (STACK_VARIABLES): Initialize them.
5791 * pthread_create.c (__pthread_create_2_1): Initialize pd.
5793 2004-09-02 Jakub Jelinek <jakub@redhat.com>
5795 * pthread_cond_destroy.c (__pthread_cond_destroy): If there are
5796 waiters, awake all waiters on the associated mutex.
5798 2005-09-22 Roland McGrath <roland@redhat.com>
5800 * perf.c [__x86_64__] (HP_TIMING_NOW): New macro (copied from
5801 ../sysdeps/x86_64/hp-timing.h).
5803 2005-08-29 Jakub Jelinek <jakub@redhat.com>
5805 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_WAKE_OP,
5806 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5807 (lll_futex_wake_unlock): Define.
5808 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_WAKE_OP,
5809 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5810 (lll_futex_wake_unlock): Define.
5811 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_WAKE_OP,
5812 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5813 (lll_futex_wake_unlock): Define.
5814 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_WAKE_OP,
5815 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5816 (lll_futex_wake_unlock): Define.
5817 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_WAKE_OP,
5818 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5819 (lll_futex_wake_unlock): Define.
5820 * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): Use
5821 lll_futex_wake_unlock.
5822 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
5823 (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5824 (__pthread_cond_signal): Use FUTEX_WAKE_OP.
5825 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5826 (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5827 (__pthread_cond_signal): Use FUTEX_WAKE_OP.
5829 2005-09-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5831 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
5832 Fix typo in register name.
5834 2005-08-23 Ulrich Drepper <drepper@redhat.com>
5836 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
5837 Use __sigfillset. Document that sigfillset does the right thing wrt
5840 2005-07-11 Jakub Jelinek <jakub@redhat.com>
5843 * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER,
5844 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
5845 PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
5846 PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_RWLOCK_INITIALIZER,
5847 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
5848 PTHREAD_COND_INITIALIZER): Supply zeros for all fields
5850 * Makefile (tests): Add tst-initializers1.
5851 (CFLAGS-tst-initializers1.c): Set.
5852 * tst-initializers1.c: New test.
5854 2005-07-11 Jakub Jelinek <jakub@redhat.com>
5856 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_rwlock_t):
5857 Make sure __flags are located at offset 48 from the start of the
5860 2005-07-02 Roland McGrath <roland@redhat.com>
5862 * Makeconfig: Comment fix.
5864 2005-07-05 Jakub Jelinek <jakub@redhat.com>
5866 * descr.h (PTHREAD_STRUCT_END_PADDING): Define.
5867 * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): If PTHREAD_STRUCT_END_PADDING
5868 is smaller than 8 bytes, increase TLS_PRE_TCB_SIZE by 16 bytes.
5869 (THREAD_SYSINFO, THREAD_SELF, DB_THREAD_SELF): Don't assume
5870 TLS_PRE_TCB_SIZE is sizeof (struct pthread).
5871 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5872 * sysdeps/ia64/tcb-offsets.sym (PID, TID, MULTIPLE_THREADS_OFFSET):
5873 Use TLS_PRE_TCB_SIZE instead of sizeof (struct pthread).
5874 * sysdeps/unix/sysv/linux/ia64/createthread.c (TLS_VALUE): Don't
5875 assume TLS_PRE_TCB_SIZE is sizeof (struct pthread).
5877 2005-06-25 Jakub Jelinek <jakub@redhat.com>
5879 * sysdeps/i386/tls.h (tcbhead_t): Add stack_guard field.
5880 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5881 * sysdeps/x86_64/tls.h (tcbhead_t): Add sysinfo and stack_guard
5883 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5884 * sysdeps/s390/tls.h (tcbhead_t): Add stack_guard
5885 field. Put in sysinfo field unconditionally.
5886 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5887 * sysdeps/powerpc/tls.h (tcbhead_t): Add stack_guard field.
5888 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5889 * sysdeps/sparc/tls.h (tcbhead_t): Add sysinfo and stack_guard
5891 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5892 * pthread_create.c (__pthread_create_2_1): Use
5893 THREAD_COPY_STACK_GUARD macro.
5894 * Makefile: Add rules to build and run tst-stackguard1{,-static}
5896 * tst-stackguard1.c: New file.
5897 * tst-stackguard1-static.c: New file.
5899 2005-06-14 Alan Modra <amodra@bigpond.net.au>
5901 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
5902 Invoke CGOTSETUP and CGOTRESTORE.
5903 (CGOTSETUP, CGOTRESTORE): Define.
5905 2005-05-29 Richard Henderson <rth@redhat.com>
5907 * tst-cancel4.c (WRITE_BUFFER_SIZE): New.
5908 (tf_write, tf_writev): Use it.
5909 (do_test): Use socketpair instead of pipe. Set SO_SNDBUF to
5912 2005-05-23 Jakub Jelinek <jakub@redhat.com>
5914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
5915 [IS_IN_librt] (CENABLE, CDISABLE): Use JUMPTARGET instead of
5916 __librt_*_asynccancel@local.
5918 2005-05-17 Alan Modra <amodra@bigpond.net.au>
5920 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Delete
5921 all occurrences of JUMPTARGET. Instead append @local to labels.
5923 2005-05-20 Jakub Jelinek <jakub@redhat.com>
5925 * sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
5926 size/alignment of struct pthread rather than tcbhead_t.
5927 * sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5929 * sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5931 * sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5934 2005-05-19 Richard Henderson <rth@redhat.com>
5936 * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use
5937 __sync_val_compare_and_swap, not explicit _si variant.
5938 * sysdeps/ia64/pthread_spin_trylock.c (pthread_spin_trylock): Likewise.
5940 2005-05-03 Ulrich Drepper <drepper@redhat.com>
5943 * sysdeps/pthread/pthread.h: Avoid empty initializers.
5945 2005-05-03 Jakub Jelinek <jakub@redhat.com>
5947 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
5948 .eh_frame section, use cfi_* directives.
5950 2005-04-27 Jakub Jelinek <jakub@redhat.com>
5952 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
5955 2005-04-27 Ulrich Drepper <drepper@redhat.com>
5958 * tst-cancel17.c (do_test): Add arbitrary factor to make sure
5961 2005-04-27 Roland McGrath <roland@redhat.com>
5963 * Makefile (tests): Remove tst-clock2.
5965 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle
5966 CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
5967 translating to the kernel clockid_t for our own process/thread clock.
5969 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
5971 2005-04-15 Jakub Jelinek <jakub@redhat.com>
5973 * old_pthread_cond_init.c: Include <errno.h>.
5974 (__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is
5975 process shared or uses clock other than CLOCK_REALTIME.
5976 * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
5978 2005-04-13 David S. Miller <davem@davemloft.net>
5980 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file.
5981 * sysdeps/sparc/sparc64/clone.S: New file.
5983 2005-04-05 Jakub Jelinek <jakub@redhat.com>
5986 * sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use
5987 __inline instead of inline.
5988 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise.
5990 2005-03-31 Jakub Jelinek <jakub@redhat.com>
5992 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use
5993 functionally equivalent, but shorter instructions.
5994 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
5995 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
5996 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
5998 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
5999 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
6000 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
6001 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
6002 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6003 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
6004 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
6006 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
6007 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6008 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6009 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
6010 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
6012 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
6014 * sysdeps/mips/Makefile: New file.
6015 * sysdeps/mips/nptl-sysdep.S: New file.
6016 * sysdeps/mips/tcb-offsets.sym: New file.
6017 * sysdeps/mips/pthread_spin_lock.S: New file.
6018 * sysdeps/mips/pthread_spin_trylock.S: New file.
6019 * sysdeps/mips/pthreaddef.h: New file.
6020 * sysdeps/mips/tls.h: New file.
6021 * sysdeps/mips/jmpbuf-unwind.h: New file.
6022 * sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file.
6023 * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file.
6024 * sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file.
6025 * sysdeps/unix/sysv/linux/mips/pthread_once.c: New file.
6026 * sysdeps/unix/sysv/linux/mips/fork.c: New file.
6027 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
6028 * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
6029 * sysdeps/unix/sysv/linux/mips/clone.S: New file.
6030 * sysdeps/unix/sysv/linux/mips/createthread.c: New file.
6031 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
6033 2005-03-23 Ulrich Drepper <drepper@redhat.com>
6036 * pthread_create.c (__pthread_create_2_1): Rename syscall error
6039 2005-03-10 Jakub Jelinek <jakub@redhat.com>
6041 * tst-getpid1.c (do_test): Align stack passed to clone{2,}.
6043 2005-02-25 Roland McGrath <roland@redhat.com>
6045 * alloca_cutoff.c: Correct license text.
6046 * tst-unload.c: Likewise.
6047 * sysdeps/pthread/allocalim.h: Likewise.
6048 * sysdeps/pthread/pt-initfini.c: Likewise.
6049 * sysdeps/pthread/bits/libc-lock.h: Likewise.
6050 * sysdeps/pthread/bits/sigthread.h: Likewise.
6051 * sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
6052 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
6054 2005-02-16 Roland McGrath <roland@redhat.com>
6056 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
6057 Use unsigned int * for ptr_nthreads.
6059 2005-02-14 Alan Modra <amodra@bigpond.net.au>
6062 * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
6065 2005-02-07 Richard Henderson <rth@redhat.com>
6068 * sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first
6071 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
6073 * sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix
6074 order of arguments in invocation of atomic_add_zero.
6076 2005-01-26 Jakub Jelinek <jakub@redhat.com>
6079 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait):
6080 Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS,
6081 at least gotntpoff relocation and addition.
6082 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
6084 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
6086 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
6089 2005-01-06 Ulrich Drepper <drepper@redhat.com>
6091 * allocatestack.c (init_one_static_tls): Adjust initialization of DTV
6092 entry for static tls deallocation fix.
6093 * sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which
6094 also contains information whether the memory pointed to is static
6096 * sysdeps/i386/tls.h: Likewise.
6097 * sysdeps/ia64/tls.h: Likewise.
6098 * sysdeps/powerpc/tls.h: Likewise.
6099 * sysdeps/s390/tls.h: Likewise.
6100 * sysdeps/sh/tls.h: Likewise.
6101 * sysdeps/sparc/tls.h: Likewise.
6102 * sysdeps/x86_64/tls.h: Likewise.
6104 2004-12-27 Ulrich Drepper <drepper@redhat.com>
6106 * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
6108 2004-12-21 Jakub Jelinek <jakub@redhat.com>
6110 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of
6112 * Makefile (tests): Add tst-align2.
6113 * tst-align2.c: New test.
6114 * sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add
6115 -mpreferred-stack-boundary=4.
6117 2004-12-18 Roland McGrath <roland@redhat.com>
6119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h:
6120 New file removed withdrawn for the moment.
6122 2004-12-17 Richard Henderson <rth@redhat.com>
6124 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
6125 * sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
6127 2004-12-16 Ulrich Drepper <drepper@redhat.com>
6129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file.
6130 Increased PTHREAD_STACK_MIN.
6132 * tst-context1.c (stacks): Use bigger stack size.
6134 2004-12-16 Jakub Jelinek <jakub@redhat.com>
6136 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
6137 * sysdeps/sparc/tcb-offsets.sym: Add TID.
6139 2004-12-15 Jakub Jelinek <jakub@redhat.com>
6141 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file.
6142 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
6143 * sysdeps/s390/tcb-offsets.sym (TID): Add.
6145 2004-12-15 Ulrich Drepper <drepper@redhat.com>
6147 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file.
6149 2004-12-14 Ulrich Drepper <drepper@redhat.com>
6151 * sysdeps/powerpc/tcb-offsets.sym: Add TID.
6152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
6154 * tst-getpid1.c: If child crashes, report this first. Print which
6157 2004-12-09 Ulrich Drepper <drepper@redhat.com>
6159 * init.c (__pthread_initialize_minimal_internal): Also unblock
6162 2004-12-01 Jakub Jelinek <jakub@redhat.com>
6164 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
6165 _POSIX_THREAD_CPUTIME): Define to 0.
6166 * sysdeps/pthread/timer_create.c (timer_create): Remove unused code
6167 handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
6168 * sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
6169 __timer_signal_thread_tclk): Remove.
6170 (init_module): Remove their initialization.
6171 (thread_cleanup): Remove their cleanup assertions.
6172 * sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
6173 __timer_signal_thread_tclk): Remove.
6174 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
6175 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
6176 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
6178 2004-12-07 Jakub Jelinek <jakub@redhat.com>
6180 * sysdeps/ia64/tcb-offsets.sym (TID): Add.
6181 * sysdeps/unix/sysv/linux/ia64/clone2.S: New file.
6183 * Makefile (tests): Add tst-getpid2.
6184 * tst-getpid1.c (TEST_CLONE_FLAGS): Define.
6185 (do_test): Use it. Use __clone2 instead of clone on ia64.
6186 * tst-getpid2.c: New test.
6188 2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6190 * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6192 2004-12-04 Ulrich Drepper <drepper@redhat.com>
6194 * Makefile (tests): Add tst-getpid1.
6195 * tst-getpid1.c: New file.
6196 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
6197 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
6199 2004-12-02 Roland McGrath <roland@redhat.com>
6201 * Makefile (libpthread-nonshared): Variable removed.
6202 ($(objpfx)libpthread_nonshared.a): Target removed.
6203 ($(inst_libdir)/libpthread_nonshared.a): Likewise.
6204 These are now handled by generic magic from
6205 libpthread-static-only-routines being set.
6207 2004-11-27 Ulrich Drepper <drepper@redhat.com>
6209 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO,
6210 _POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT,
6211 _POSIX_THREAD_PRIO_PROTECT): Define.
6212 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
6213 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
6214 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
6216 2004-11-26 Jakub Jelinek <jakub@redhat.com>
6218 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
6219 _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
6220 _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
6221 _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
6222 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
6223 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
6224 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
6226 2004-11-24 Ulrich Drepper <drepper@redhat.com>
6228 * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
6230 * Makefile (libpthread-routines): Add pthread_setschedprio.
6231 * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
6232 * sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
6233 * pthread_setschedprio.c: New file.
6235 2004-11-20 Jakub Jelinek <jakub@redhat.com>
6237 * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE.
6238 * pthread_cancel.c (pthread_create): Likewise.
6240 * Makefile (libpthread-routines): Add vars.
6241 * sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove.
6242 * init.c (__default_stacksize, __is_smp): Remove.
6244 * pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function
6245 and define a wrapper macro.
6246 (PTHREAD_STATIC_FN_REQUIRE): Define.
6247 * allocatestack.c (__find_thread_by_id): Undefine.
6248 * pthread_create (__pthread_keys): Remove.
6249 (pthread_mutex_lock, pthread_mutex_unlock, pthread_once,
6250 pthread_key_create, pthread_setspecific, pthread_getspecific): Add
6251 PTHREAD_STATIC_FN_REQUIRE.
6253 2004-11-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6255 * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias
6256 parameter to REGISTER macro.
6258 2004-11-17 Roland McGrath <roland@redhat.com>
6260 * sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
6261 Make sure SIGCANCEL is blocked as well.
6263 2004-11-10 Jakub Jelinek <jakub@redhat.com>
6265 * sysdeps/pthread/setxid.h: New file.
6266 * sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove.
6267 (struct xid_command): Add forward decl.
6268 (struct pthread_functions): Change return type of __nptl_setxid hook
6270 * pthreadP.h (__nptl_setxid): Change return type to int.
6271 * allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the
6272 calling thread, return its return value and set errno on failure.
6273 * descr.h (struct xid_command): Change id type to long array.
6275 * Makefile: Add rules to build and test tst-setuid1 and
6277 * tst-setuid1.c: New test.
6278 * tst-setuid1-static.c: New test.
6280 2004-11-10 Jakub Jelinek <jakub@redhat.com>
6282 * Makefile (tests): Add tst-exit3.
6283 * tst-exit3.c: New test.
6285 2004-11-09 Ulrich Drepper <drepper@redhat.com>
6287 * Makefile (tests): Add tst-exit2.
6288 * tst-exit2.c: New file.
6290 2004-11-09 Roland McGrath <roland@redhat.com>
6293 * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
6294 here, before calling clone.
6295 * pthread_create.c (start_thread): Don't do it here.
6297 2004-11-02 Jakub Jelinek <jakub@redhat.com>
6299 * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
6301 2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6303 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
6304 Set ETIMEDOUT to errno when time is up. Tweak to avoid
6307 2004-10-28 Jakub Jelinek <jakub@redhat.com>
6309 * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
6310 if sched_priority is not between minprio and maxprio.
6312 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6314 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
6315 (__pthread_cond_timedwait): Use clock_gettime syscall if exists.
6317 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
6318 (__lll_mutex_timedlock_wait): Fix a bad branch condition.
6320 2004-10-24 Ulrich Drepper <drepper@redhat.com>
6322 * sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use
6323 not-cancelable I/O functions.
6325 2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6327 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
6328 (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
6329 make sure 2 is stored in the futex and we looked at the old value.
6330 Fix a few other problems to return the correct value.
6332 2004-10-14 Richard Henderson <rth@redhat.com>
6334 * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
6337 2004-10-06 Jakub Jelinek <jakub@redhat.com>
6339 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
6340 of pthread-functions.h and pthreaddef.h.
6341 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
6343 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
6344 Change __data.__nwaiters from int to unsigned int.
6346 * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
6347 sysconf (_SC_THREAD_CPUTIME) returns negative value.
6349 * allocatestack.c (__find_thread_by_id): Move attribute_hidden
6352 * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
6353 (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
6355 2004-10-06 Ulrich Drepper <drepper@redhat.com>
6357 * tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the
6358 test fails, remove message queue.
6359 (tf_msgsnd): Likewise.
6361 2004-10-05 Jakub Jelinek <jakub@redhat.com>
6363 * tst-clock1.c: Change #ifdef to #if defined.
6364 * tst-clock2.c: Likewise.
6365 * tst-cond11.c: Likewise.
6367 * sysdeps/pthread/timer_create.c (timer_create): Use
6368 defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of
6369 defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for
6372 2004-10-05 Jakub Jelinek <jakub@redhat.com>
6374 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME,
6375 _POSIX_THREAD_CPUTIME): Define to 0.
6377 2004-10-04 Ulrich Drepper <drepper@redhat.com>
6379 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
6380 and _POSIX_THREAD_CPUTIME to zero.
6381 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
6382 * tst-barrier2.c: Fix testing for POSIX feature.
6383 * tst-clock1.c: Likewise.
6384 * tst-clock2.c: Likewise.
6385 * tst-cond11.c: Likewise.
6386 * tst-cond4.c: Likewise.
6387 * tst-cond6.c: Likewise.
6388 * tst-flock2.c: Likewise.
6389 * tst-mutex4.c: Likewise.
6390 * tst-mutex9.c: Likewise.
6391 * tst-rwlock12.c: Likewise.
6392 * tst-rwlock4.c: Likewise.
6393 * tst-signal1.c: Likewise.
6394 * tst-spin2.c: Likewise.
6395 * sysdeps/pthread/posix-timer.h: Likewise.
6396 * sysdeps/pthread/timer_create.c: Likewise.
6397 * sysdeps/pthread/timer_routines.c: Likewise.
6399 2004-10-01 Ulrich Drepper <drepper@redhat.com>
6401 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
6402 (__lll_mutex_timedlock_wait): Address futex correctly.
6404 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
6405 (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
6406 make sure 2 is stored in the futex and we looked at the old value.
6407 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
6408 (__lll_mutex_timedlock_wait): Likewise. Fix a few other problems
6409 which might very well made the code not working at all before.
6412 2004-09-28 Ulrich Drepper <drepper@redhat.com>
6414 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
6415 allow SIGSETXID to be sent.
6416 * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
6417 for SIGSETXID to be defined.
6418 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
6419 SIGSETXID cannot be blocked.
6421 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6422 Add __extension__ to long long types.
6423 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6424 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6425 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6426 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6427 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
6428 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6429 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
6431 2004-09-25 Ulrich Drepper <drepper@redhat.com>
6433 * descr.h (struct pthread): Add stopped_start field.
6434 * sysdeps/pthread/createthread.c (create_thread): Set
6435 start_stopped flag in descriptor for new thread appropriately.
6436 * pthread_create.c (start_thread): Only take lock to be stopped on
6437 startup if stopped_start flag says so.
6439 2004-09-24 Ulrich Drepper <drepper@redhat.com>
6441 * pthread_create.c (__pthread_create_2_1): Remember whether thread
6442 is created detached and if yes, do not try to free the stack in case
6443 the thread creation failed.
6444 * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
6445 call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
6446 case there has been no error. [BZ #405]
6448 * pthread_create.c (start_thread): Don't wait for scheduler data
6449 etc to be set at the beginning of the function. The cancellation
6450 infrastructure must have been set up. And enable async
6451 cancellation before potentially going to sleep. [BZ #401]
6453 2004-09-20 Ulrich Drepper <drepper@redhat.com>
6455 * Versions: Remove exports for pthread_set*id_np functions.
6456 * sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes
6458 * Makefile: Don't build pthread_set*id code for now.
6460 2004-09-19 Ulrich Drepper <drepper@redhat.com>
6462 * sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for
6464 * allocatestack.c (__nptl_setxid): New function.
6465 * descr.h (struct xid_command): Define type.
6466 * init.c (pthread_functions): Add ptr__nptl_setxid initialization.
6467 (sighandler_setxid): New function.
6468 (__pthread_initialize_minimal): Register sighandler_setxid for
6470 * pt-allocrtsig.c: Update comment.
6471 * pthreadP.h: Define SIGSETXID. Declare __xidcmd variable.
6472 Declare __nptl_setxid.
6473 * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid.
6474 * sysdeps/pthread/pthread.h: Declare pthread_setgid_np,
6475 pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
6476 pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
6477 and pthread_setresuid_np.
6478 * pthread_setgid_np.c: New file.
6479 * pthread_setuid_np.c: New file.
6480 * pthread_setegid_np.c: New file.
6481 * pthread_seteuid_np.c: New file.
6482 * pthread_setregid_np.c: New file.
6483 * pthread_setreuid_np.c: New file.
6484 * pthread_setresgid_np.c: New file.
6485 * pthread_setresuid_np.c: New file.
6486 * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np,
6487 pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
6488 pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
6489 and pthread_setresuid_np.
6490 * Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid,
6491 pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid,
6492 pthread_setregid, and pthread_setresgid.
6494 2004-09-18 Ulrich Drepper <drepper@redhat.com>
6496 * allocatestack.c (allocate_stack): Return EAGAIN instead of
6497 ENOMEM when out of memory.
6499 2004-09-10 Roland McGrath <roland@redhat.com>
6502 * allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED]
6503 code, since we don't try to use the broken CLONE_STOPPED any more.
6504 * pthread_create.c (start_thread): Likewise.
6506 2004-09-15 Richard Henderson <rth@redhat.com>
6508 * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
6510 2004-09-01 David Mosberger <davidm@hpl.hp.com>
6512 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
6513 (__libc_unwind_longjmp): Delete macro and declare as function.
6514 * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
6515 __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
6517 * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
6518 * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
6519 * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
6521 2004-09-12 Ulrich Drepper <drepper@redhat.com>
6523 * sysdeps/pthread/pthread.h: Make rwlock prototypes available also
6525 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock
6526 types also for __USE_XOPEN2K.
6527 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6528 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6529 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6530 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6531 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
6532 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6533 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
6536 2004-09-08 Ulrich Drepper <drepper@redhat.com>
6538 * sysdeps/pthread/pthread.h
6539 (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
6540 (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
6541 (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
6542 (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
6545 2004-09-07 Ulrich Drepper <drepper@redhat.com>
6547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow
6548 PSEUDO to be used with . prefix.
6550 * sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once):
6551 Use atomic_increment instead of atomic_exchange_and_add.
6552 * sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once):
6554 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
6556 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
6559 * allocatestack.c (allocate_stack): Use atomic_increment_val
6560 instead of atomic_exchange_and_add.
6561 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise.
6562 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
6564 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
6567 * sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
6568 the initialization function might throw.
6570 2005-09-05 Richard Henderson <rth@redhat.com>
6572 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
6573 Move definition inside libpthread, libc, librt check. Provide
6574 definition for rtld.
6576 2004-09-02 Ulrich Drepper <drepper@redhat.com>
6578 * sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
6579 * sysdeps/i386/jmpbuf-unwind.h: Likewise
6580 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
6581 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
6582 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
6583 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
6584 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
6585 * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
6588 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
6589 Rename __data.__clock to __data.__nwaiters, make it unsigned int.
6590 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
6592 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
6593 Decrement __nwaiters. If pthread_cond_destroy has been called and
6594 this is the last waiter, signal pthread_cond_destroy caller and
6595 avoid using the pthread_cond_t structure after unlock.
6596 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6597 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6598 Read clock type from the least significant bits of __nwaiters instead
6600 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6601 * sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS.
6603 2004-08-31 Jakub Jelinek <jakub@redhat.com>
6606 * Makefile (tests): Add tst-cond20 and tst-cond21.
6607 * tst-cond20.c: New test.
6608 * tst-cond21.c: New test.
6609 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
6610 (pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make
6612 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
6614 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
6615 (pthread_cond_t): Likewise.
6616 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
6618 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6620 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
6622 * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove.
6623 (cond_nwaiters): New.
6625 * pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY
6626 if there are waiters not signalled yet.
6627 Wait until all already signalled waiters wake up.
6628 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement
6629 __nwaiters. If pthread_cond_destroy has been called and this is the
6630 last waiter, signal pthread_cond_destroy caller and avoid using
6631 the pthread_cond_t structure after unlock.
6632 (__pthread_cond_wait): Increment __nwaiters in the beginning,
6633 decrement it when leaving. If pthread_cond_destroy has been called
6634 and this is the last waiter, signal pthread_cond_destroy caller.
6635 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6636 Likewise. Read clock type from the least significant bits of
6637 __nwaiters instead of __clock.
6638 * pthread_condattr_setclock.c (pthread_condattr_setclock): Check
6639 whether clock ID can be encoded in COND_CLOCK_BITS bits.
6640 * pthread_condattr_getclock.c (pthread_condattr_getclock): Decode
6641 clock type just from the last COND_CLOCK_BITS bits of value.
6642 * pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters
6643 instead of __clock, just from second bit of condattr's value.
6645 2004-08-30 Jakub Jelinek <jakub@redhat.com>
6647 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include
6648 bits/wordsize.h. Make the header match i386 header when __WORDSIZE
6650 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
6652 2004-08-15 Roland McGrath <roland@frob.com>
6654 * pthread_atfork.c: Update copyright terms including special exception
6655 for these trivial files, which are statically linked into executables
6656 that use dynamic linking for the significant library code.
6658 2004-08-09 Jakub Jelinek <jakub@redhat.com>
6660 * DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to
6661 pthread_rwlock_rdlock.
6662 * sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
6663 Decrease __nr_readers_queued after reacquiring lock.
6664 * sysdeps/pthread/pthread_rwlock_timedrdlock
6665 (pthread_rwlock_timedrdlock): Likewise.
6666 Reported by Bob Cook <bobcook47@hotmail.com>.
6668 2004-08-11 Jakub Jelinek <jakub@redhat.com>
6670 * tst-rwlock14.c (tf): Read main thread handle from *ARG
6671 before pthread_barrier_wait.
6673 2004-08-07 Ulrich Drepper <drepper@redhat.com>
6675 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
6676 Remove unnecessary exception handling data.
6678 2004-07-23 Jakub Jelinek <jakub@redhat.com>
6681 * sysdeps/pthread/pthread.h (pthread_getcpuclockid): Use __clockid_t
6682 instead of clockid_t.
6684 2004-07-21 Roland McGrath <roland@redhat.com>
6686 * Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
6688 2004-07-19 Roland McGrath <roland@redhat.com>
6690 * tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
6692 2004-07-02 Roland McGrath <roland@redhat.com>
6694 * configure: Don't exit.
6696 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6698 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
6699 (__pthread_cond_timedwait): Check for invalid nanosecond in
6702 2004-07-07 Ulrich Drepper <drepper@redhat.com>
6704 * Makefile: Add rules to build and run tst-fini1.
6705 * tst-fini1.c: New file.
6706 * tst-fini1mod.c: New file.
6708 2004-07-05 Ulrich Drepper <drepper@redhat.com>
6710 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define NO_CANCELLATION
6711 if no cancellation support is needed.
6712 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
6713 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
6714 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
6715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
6716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
6717 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
6718 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
6719 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
6720 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
6722 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define __NR_futex
6723 only if not already defined.
6725 2004-07-05 Jakub Jelinek <jakub@redhat.com>
6727 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use
6728 constraint "m" instead of "0" for futex.
6730 * shlib-versions: Add powerpc64-.*-linux.*.
6732 2004-07-04 Jakub Jelinek <jakub@redhat.com>
6734 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
6735 (pthread_rwlock_timedrdlock): Use cmpq instead of cmpl to check
6737 * tst-rwlock14.c (do_test): Test for invalid tv_nsec equal to
6738 1 billion and 64-bit tv_nsec which is valid when truncated to 32
6741 2004-06-29 Roland McGrath <roland@redhat.com>
6743 * Banner: NPTL no longer has its own version number.
6744 * Makefile (nptl-version): Variable removed.
6745 * sysdeps/pthread/Makefile (CFLAGS-confstr.c): Set LIBPTHREAD_VERSION
6746 using $(version), the glibc version number.
6748 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6750 * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
6751 Fix branch offset for a PLT entry.
6752 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
6754 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
6756 * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
6758 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait):
6761 2004-06-28 Jakub Jelinek <jakub@redhat.com>
6763 * sysdeps/alpha/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define
6766 2004-06-28 Jakub Jelinek <jakub@redhat.com>
6768 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
6769 (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
6771 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
6772 (pthread_rwlock_timedrdlock): Likewise.
6774 2004-06-22 Jakub Jelinek <jakub@redhat.com>
6776 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
6777 Set __r7 to val, not mutex.
6779 2004-06-27 Ulrich Drepper <drepper@redhat.com>
6781 * Makefile: Add rules to build tst-rwlock14.
6782 * tst-rwlock14.c: New file.
6784 2004-06-24 Boris Hu <boris.hu@intel.com>
6786 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation
6788 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
6790 2004-06-19 Andreas Jaeger <aj@suse.de>
6792 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix
6793 assembler in last patch.
6795 2004-06-17 Ulrich Drepper <drepper@redhat.com>
6797 * sysdeps/pthread/pthread_cond_timedwait.c
6798 (__pthread_cond_timedwait): Also check for negativ nanoseconds.
6799 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6800 (__pthread_cond_timedwait): Check for invalid nanosecond in
6802 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6803 * tst-cond19.c: New file.
6804 * Makefile: Add rules to build and run tst-cond19.
6806 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
6808 * tst-context1.c (GUARD_PATTERN): Defined.
6809 (tst_context_t): Define struct containing ucontext_t & guard words.
6810 (ctx): Declare as an array of tst_context_t.
6811 (fct): Verify uc_link & guard words are still valid.
6812 (tf): Initialize guard words in ctx. Adjust ctx refs for new struct.
6814 2004-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6816 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6817 Add __data.__futex field, reshuffle __data.__clock.
6818 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
6819 (__pthread_cond_signal): Increment __futex at the same time as
6820 __wakeup_seq or __total_seq. Pass address of __futex instead of
6821 address of low 32-bits of __wakeup_seq to futex syscall.
6822 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
6823 (__pthread_cond_wait): Likewise. Pass __futex value from before
6824 releasing internal lock to FUTEX_WAIT.
6825 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
6826 (__pthread_cond_timedwait): Likewise.
6827 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
6828 (FUTEX_CMP_REQUEUE): Define.
6829 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6830 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6831 Pass __futex value from before the unlock and __futex address instead
6832 of address of low 32-bits of __wakeup_seq to futex syscall.
6833 Fallback to FUTEX_WAKE all on any errors.
6835 2004-06-08 Jakub Jelinek <jakub@redhat.com>
6837 * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix
6839 * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise.
6840 * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
6841 * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise.
6842 * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
6843 Likewise. Reported by Bob Cook <bobcook47@hotmail.com>.
6845 2004-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
6847 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap):
6848 Add memory clobber to inline assembly.
6849 (__lll_mutex_trylock): Likewise.
6850 (__lll_mutex_cond_trylock): Likewise.
6852 2004-06-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6854 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
6855 Pass val argument as 6th system call argument in %r7.
6857 2004-05-21 Jakub Jelinek <jakub@redhat.com>
6859 * Makefile (tests): Add tst-cond16.
6860 * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add.
6861 * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex.
6862 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
6863 Add __data.__futex field, reshuffle __data.__clock.
6864 * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S
6865 (__pthread_cond_signal): Increment __futex at the same time as
6866 __wakeup_seq or __total_seq. Pass address of __futex instead of
6867 address of low 32-bits of __wakeup_seq to futex syscall.
6868 * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S
6869 (__pthread_cond_wait): Likewise. Pass __futex value from before
6870 releasing internal lock to FUTEX_WAIT.
6871 * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S
6872 (__pthread_cond_timedwait): Likewise.
6873 * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S
6874 (FUTEX_CMP_REQUEUE): Define.
6875 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6876 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6877 Pass __futex value from before the unlock and __futex address instead
6878 of address of low 32-bits of __wakeup_seq to futex syscall.
6879 Fallback to FUTEX_WAKE all on any errors.
6880 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE):
6882 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6883 internally. Return non-zero if error, zero if success.
6884 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
6885 Add __data.__futex field, reshuffle __data.__clock.
6886 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE):
6888 (lll_futex_requeue): Add val argument, return 1 unconditionally
6890 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
6891 Add __data.__futex field, reshuffle __data.__clock.
6892 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE):
6894 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6895 internally. Return non-zero if error, zero if success.
6896 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
6897 (pthread_cond_t): Add __data.__futex field, reshuffle __data.__clock.
6898 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_CMP_REQUEUE):
6900 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6901 internally. Return non-zero if error, zero if success.
6902 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
6903 Add __data.__futex field, reshuffle __data.__clock.
6904 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_CMP_REQUEUE):
6906 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6907 internally. Return non-zero if error, zero if success.
6908 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
6909 Add __data.__futex field, reshuffle __data.__clock.
6910 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
6911 Add __data.__futex field, reshuffle __data.__clock.
6912 * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal):
6913 Increment __futex at the same time as __wakeup_seq or __total_seq.
6914 Pass address of __futex instead of address of low 32-bits of
6915 __wakeup_seq to futex syscall.
6916 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
6917 Pass __futex value from before releasing internal lock
6919 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6920 Likewise. Avoid unnecessary shadowing of variables.
6921 * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast):
6922 Set __futex to 2 * __total_seq. Pass __futex value from before the
6923 unlock and __futex address instead of address of low 32-bits of
6924 __wakeup_seq to futex_requeue macro, adjust for new return value
6926 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
6927 (__pthread_cond_signal): Increment __futex at the same time as
6928 __wakeup_seq or __total_seq. Pass address of __futex instead of
6929 address of low 32-bits of __wakeup_seq to futex syscall.
6930 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
6931 (__pthread_cond_wait): Likewise. Pass __futex value from before
6932 releasing internal lock to FUTEX_WAIT.
6933 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
6934 (__pthread_cond_timedwait): Likewise.
6935 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
6936 (FUTEX_CMP_REQUEUE): Define.
6937 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6938 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6939 Pass __futex value from before the unlock and __futex address instead
6940 of address of low 32-bits of __wakeup_seq to futex syscall.
6941 Fallback to FUTEX_WAKE all on any errors.
6943 2004-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6945 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_mutex_lock):
6946 Add nop to align the end of critical section.
6947 (lll_mutex_cond_lock, lll_mutex_timedlock): Likewise.
6949 2004-06-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6951 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6952 Add __broadcast_seq field.
6953 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Mark
6954 all waiters as woken with woken_seq and bump broadcast counter.
6955 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use new
6956 __broadcast_seq. Increment __woken_seq correctly when cleanuped.
6957 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
6958 Comment typo fixes. Avoid returning -ETIMEDOUT.
6960 2004-06-01 Ulrich Drepper <drepper@redhat.com>
6962 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6963 (__condvar_tw_cleanup): Fix access to saved broadcast_seq value.
6964 Reported by Kaz Kojima.
6966 2004-05-25 Jakub Jelinek <jakub@redhat.com>
6968 * sysdeps/unix/sysv/linux/aio_misc.h: New file.
6970 2004-05-21 Jakub Jelinek <jakub@redhat.com>
6972 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare
6973 __broadcast_seq with bc_seq after acquiring internal lock instead of
6976 2004-05-18 Jakub Jelinek <jakub@redhat.com>
6978 * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not
6980 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6981 (__pthread_cond_timedwait): Avoid returning -ETIMEDOUT.
6982 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
6983 (pthread_cond_t): Add __data.__broadcast_seq field.
6984 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
6985 (FRAME_SIZE): Define.
6986 (__pthread_cond_timedwait): Use it. Store/check broadcast_seq.
6988 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (FRAME_SIZE):
6990 (__pthread_cond_wait): Use it. Store/check broadcast_seq. Comment
6992 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
6993 (__pthread_cond_broadcast): Increment broadcast_seq. Comment typo
6996 2004-05-18 Ulrich Drepper <drepper@redhat.com>
6998 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add broadcast_seq entry.
6999 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
7000 Add __broadcast_seq field.
7001 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7002 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7003 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
7004 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
7005 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7006 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Mark
7007 all waiters as woken with woken_seq and bump broadcast counter.
7008 * sysdeps/pthread/pthread_cond_broadcast.c: Likewise.
7009 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use new
7010 __broadcast_seq field.
7011 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
7012 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
7013 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
7014 * pthread_cond_init.c: Initialize __broadcast_seq field.
7015 * Makefile (tests): Add tst-cond17 and tst-cond18.
7016 Add .NOTPARALLEL goal.
7017 * tst-cond16.c: New file. From Jakub.
7018 * tst-cond17.c: New file. From Jakub.
7019 * tst-cond18.c: New file. From Jakub.
7021 2004-05-16 Ulrich Drepper <drepper@redhat.com>
7023 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Correct some
7026 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
7027 Parametrize frame size. Correct some unwind info.
7028 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
7030 2004-05-04 Jakub Jelinek <jakub@redhat.com>
7032 * tst-stack3.c: Note testing functionality beyond POSIX.
7034 2004-05-04 Jakub Jelinek <jakub@redhat.com>
7036 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD):
7037 Change conditional from ifdef to if.
7039 2004-04-23 Jakub Jelinek <jakub@redhat.com>
7041 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SYSDEP_CANCEL_ERRNO,
7042 SYSDEP_CANCEL_ERROR): Define.
7045 2004-05-01 Jakub Jelinek <jakub@redhat.com>
7047 * Versions (libpthread): Remove __pthread_cleanup_upto@@GLIBC_PRIVATE.
7049 2004-04-20 Jakub Jelinek <jakub@redhat.com>
7051 * sem_unlink.c (sem_unlink): Change EPERM into EACCES.
7053 2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7055 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
7056 Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
7057 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove unneeded frame
7058 info. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
7060 2004-04-19 Ulrich Drepper <drepper@redhat.com>
7062 * sysdeps/unix/sysv/linux/timer_routines.c: Make sure helper
7063 thread has all signals blocked.
7065 2004-04-18 Andreas Jaeger <aj@suse.de>
7067 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h
7068 (SEM_VALUE_MAX): Add missing brace.
7070 2004-04-17 Jakub Jelinek <jakub@redhat.com>
7072 * sysdeps/pthread/Makefile (tests): Add tst-mqueue8x
7074 (CFLAGS-tst-mqueue8x.c): Add -fexceptions.
7075 * sysdeps/pthread/tst-mqueue8x.c: New test.
7076 * tst-cancel4.c: Update comment about message queues.
7078 * sysdeps/pthread/timer_gettime.c (timer_gettime): For expired timer
7079 return it_value { 0, 0 }.
7080 * sysdeps/pthread/timer_create.c (timer_create): Handle SIGEV_NONE
7082 * sysdeps/pthread/timer_routines.c (thread_expire_timer): Remove
7083 assertion for SIGEV_NONE.
7084 (thread_attr_compare): Compare all attributes, not just a partial
7087 2004-04-17 Jakub Jelinek <jakub@redhat.com>
7089 * sysdeps/unix/sysv/linux/mq_notify.c: Include stdlib.h.
7091 2004-04-17 Ulrich Drepper <drepper@redhat.com>
7093 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h (SEM_VALUE_MAX):
7094 Just use a plain number.
7095 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
7096 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
7097 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
7098 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
7099 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
7100 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
7101 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
7103 2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7105 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded
7107 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
7109 2004-04-15 Jakub Jelinek <jakub@redhat.com>
7111 * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h.
7112 (timer_helper_thread): Use inline rt_sigtimedwait syscall instead
7113 of calling sigwaitinfo.
7115 2004-04-16 Ulrich Drepper <drepper@redhat.com>
7117 * allocatestack.c (allocate_stack): Set reported_guardsize
7119 * pthread_getattr_np.c (pthread_getattr_np): Use
7120 reported_guardsize instead of guardsize.
7121 * descr.h (struct pthread): Add reported_guardsize field.
7123 2004-04-13 Jakub Jelinek <jakub@redhat.com>
7125 * sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.
7127 2004-04-12 Ulrich Drepper <drepper@redhat.com>
7129 * sysdeps/unix/sysv/linux/mq-notify.c: New file.
7131 2004-04-08 Jakub Jelinek <jakub@redhat.com>
7133 * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define.
7134 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h (MQ_PRIO_MAX): Define.
7135 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h (MQ_PRIO_MAX): Define.
7136 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h (MQ_PRIO_MAX): Define.
7137 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_MESSAGE_PASSING):
7139 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h
7140 (_POSIX_MESSAGE_PASSING): Define.
7141 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h
7142 (_POSIX_MESSAGE_PASSING): Define.
7143 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h
7144 (_POSIX_MESSAGE_PASSING): Define.
7146 2004-04-04 Ulrich Drepper <drepper@redhat.com>
7148 * tst-context1.c (fct): Check whether correct stack is used.
7150 2004-04-03 Ulrich Drepper <drepper@redhat.com>
7152 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
7153 matching constraints for asm mem parameters.
7155 * tst-clock2.c (tf): Don't define unless needed.
7157 2004-03-30 H.J. Lu <hongjiu.lu@intel.com>
7159 * Makefile (link-libc-static): Use $(static-gnulib) instead of
7162 2004-03-30 Ulrich Drepper <drepper@redhat.com>
7164 * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_deallocate_tsd.
7165 * init.c (pthread_functions): Add ptr__nptl_deallocate_tsd.
7166 * pthreadP.h: Declare __nptl_deallocate_tsd.
7167 * pthread_create.c (deallocate_tsd): Remove to __nptl_deallocate_tsd.
7170 * Makefile (tests): Add tst-tsd5.
7171 * tst-tsd5.c: New file.
7173 2004-03-29 Ulrich Drepper <drepper@redhat.com>
7175 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
7176 (__pthread_attr_setaffinity_old): Prepend GLIBC_ to version names
7177 is SHLIB_COMPAT check.
7178 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
7179 (__pthread_attr_getaffinity_old): Likewise.
7180 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
7181 (__pthread_getaffinity_old): Likewise.
7182 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7183 (__pthread_setaffinity_old): Likewise.
7185 2004-03-26 Ulrich Drepper <drepper@redhat.com>
7187 * allocatestack.c (_make_stacks_executable): Call
7188 _dl_make_stack_executable first.
7190 2004-03-24 Roland McGrath <roland@redhat.com>
7192 * sysdeps/i386/pthread_spin_lock.c (pthread_spin_lock): Use "m"
7193 constraint instead of "0".
7195 2004-03-24 Ulrich Drepper <drepper@redhat.com>
7197 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
7198 (lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock.
7200 * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Reorganize
7201 code to avoid warning.
7203 2004-03-24 Andreas Jaeger <aj@suse.de>
7205 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
7206 (__pthread_attr_setaffinity_old): Remove const.
7208 2004-03-23 Ulrich Drepper <drepper@redhat.com>
7210 * sysdeps/unix/sysv/linux/smp.h: New file.
7211 * sysdeps/unix/sysv/linux/sh/smp.h: New file.
7212 * init.c: Define __is_smp.
7213 (__pthread_initialize_minimal_internal): Call is_smp_system to
7214 initialize __is_smp.
7215 * pthreadP.h: Declare __is_smp.
7216 Define MAX_ADAPTIVE_COUNT is necessary.
7217 * pthread_mutex_init.c: Add comment regarding __spins field.
7218 * pthread_mutex_lock.c: Implement adaptive mutex type.
7219 * pthread_mutex_timedlock.c: Likewise.
7220 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
7221 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
7223 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
7224 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7225 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7226 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
7227 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7228 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
7229 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
7230 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define
7231 lll_mutex_cond_trylock.
7232 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7233 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
7234 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7235 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
7236 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
7237 Define BUSY_WAIT_NOP.
7238 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7239 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
7241 * tst-mutex5.c: Add support for testing adaptive mutexes.
7242 * tst-mutex7.c: Likewise.
7243 * tst-mutex5a.c: New file.
7244 * tst-mutex7a.c: New file.
7245 * Makefile (tests): Add tst-mutex5a and tst-mutex7a.
7247 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
7248 (__lll_mutex_timedlock_wait): Preserve r8 and r9 since the
7249 vgettimeofday call might destroy the content.
7251 * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use hint
7254 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
7255 No need to restrict type of ret. Make it int. Add comment.
7257 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
7258 Remove unnecessary setne instruction.
7260 2004-03-22 Jakub Jelinek <jakub@redhat.com>
7262 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
7263 (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
7264 * pthread_getattr_np.c (pthread_getattr_np): Double size every cycle.
7265 If realloc fails, break out of the loop.
7267 2004-03-20 Andreas Jaeger <aj@suse.de>
7269 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7270 (__pthread_setaffinity_old): Fix interface.
7271 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
7272 (__pthread_getaffinity_old): Likewise.
7274 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7275 (__pthread_setaffinity_new): Remove duplicate declaration.
7277 2004-03-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7279 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save
7280 the return value to a safe register.
7281 (CDISABLE): Set the function argument correctly.
7283 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7285 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XCHG): Define.
7286 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
7287 Rewrite so that only one locked memory operation per round is needed.
7288 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
7289 (pthread_barrier_wait): After wakeup, release lock only when the
7290 last thread stopped using the barrier object.
7291 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
7292 (__pthread_cond_wait): Don't store mutex address if the current
7293 value is ~0l. Add correct cleanup support and unwind info.
7294 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
7295 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
7296 (__pthread_cond_broadcast): Don't use requeue for pshared condvars.
7297 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Update comment.
7298 * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
7299 Add correct cleanup support and unwind info.
7300 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
7301 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Add unwind
7302 information for syscall wrappers.
7304 2004-03-18 Ulrich Drepper <drepper@redhat.com>
7306 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
7307 cpusetsize field, remove next.
7308 * sysdeps/pthread/pthread.h (pthread_getaffinity_np): Add new second
7309 parameter for size of the CPU set.
7310 (pthread_setaffinity_np): Likewise.
7311 (pthread_attr_getaffinity_np): Likewise.
7312 (pthread_attr_setaffinity_np): Likewise.
7313 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Implement
7314 interface change, keep compatibility code.
7315 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
7316 * sysdeps/unix/sysv/linux/pthread_getaffinity.c: Likewise.
7317 * sysdeps/unix/sysv/linux/pthread_setaffinity.c: Likewise.
7318 * pthreadP.h: Remove hidden_proto for pthread_getaffinity_np. Declare
7319 __pthread_getaffinity_np.
7320 * Versions: Add version for changed interfaces.
7321 * tst-attr3.c: Adjust test for interface change.
7322 * pthread_getattr_np.c: Query the kernel about the affinity mask with
7323 increasing buffer sizes.
7324 * pthread_attr_destroy.c: Remove unused list handling.
7325 * pthread_attr_init.c: Likewise.
7327 2004-03-17 Roland McGrath <roland@redhat.com>
7329 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing
7330 first argument to clock_getres so we ever enable kernel timers.
7332 2004-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7334 * init.c (nptl_version): Add __attribute_used__ to nptl_version.
7336 2004-03-12 Richard Henderson <rth@redhat.com>
7338 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate
7339 oldvalue from CENABLE to CDISABLE.
7341 2004-03-12 Ulrich Drepper <drepper@redhat.com>
7343 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
7344 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
7345 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
7346 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
7348 2004-03-11 Richard Henderson <rth@redhat.com>
7350 * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
7351 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID.
7352 * sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
7354 2004-03-11 Jakub Jelinek <jakub@redhat.com>
7356 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Use jgnl
7357 instead of jnl instruction to jump to SYSCALL_ERROR_LABEL.
7358 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S (__vfork): Likewise.
7360 2004-03-11 Jakub Jelinek <jakub@redhat.com>
7362 * forward.c (__pthread_cond_broadcast_2_0,
7363 __pthread_cond_destroy_2_0, __pthread_cond_init_2_0,
7364 __pthread_cond_signal_2_0, __pthread_cond_wait_2_0,
7365 __pthread_cond_timedwait_2_0): Use return 0 as defaction instead of 0.
7367 2004-03-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7369 * sysdeps/sh/tcb-offsets.sym: Add PID.
7370 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Properly handle PID cache.
7371 * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
7373 2004-03-10 Ulrich Drepper <drepper@redhat.com>
7375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: No need to
7376 include <sysdep-cancel.h>, vfork is no cancellation point.
7377 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
7378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: Likewise.
7379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: Likewise.
7381 2004-03-10 Jakub Jelinek <jakub@redhat.com>
7383 * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add
7385 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise.
7386 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork):
7388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
7390 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise.
7391 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise.
7392 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Include tcb-offsets.h.
7393 * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Use DO_CALL instead
7394 of DO_CALL_VIA_BREAK. Work around a gas problem.
7396 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: Remove.
7397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
7398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: New file.
7399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
7400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: New file.
7401 * sysdeps/powerpc/tcb-offsets.sym: Add PID.
7403 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S (__vfork): Don't use
7404 a local register for saving old PID. Negate PID in parent upon exit.
7406 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Include
7408 (__vfork): Negate PID if non-zero and set to INT_MIN if zero
7409 before syscall, set to the old value in the parent afterwards.
7410 * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: New file.
7411 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Include
7413 (__vfork): Negate PID if non-zero and set to INT_MIN if zero
7414 before syscall, set to the old value in the parent afterwards.
7415 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: New file.
7416 * sysdeps/s390/tcb-offsets.sym: Add PID.
7418 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Remove.
7419 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: New file.
7420 * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: New file.
7421 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: New file.
7422 * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: New file.
7423 * sysdeps/sparc/tcb-offsets.sym: Add PID.
7425 2004-03-10 Andreas Schwab <schwab@suse.de>
7427 * sysdeps/ia64/tcb-offsets.sym: Add PID.
7428 * sysdeps/unix/sysv/linux/ia64/vfork.S: New file.
7429 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Properly handle PID cache.
7431 2004-03-09 Jakub Jelinek <jakub@redhat.com>
7433 * tst-cancel20.c (do_one_test): Clear in_sh_body first.
7434 * tst-cancel21.c (do_one_test): Likewise.
7435 Reported by Gordon Jin <gordon.jin@intel.com>.
7437 2004-02-09 Jakub Jelinek <jakub@redhat.com>
7439 * sysdeps/unix/sysv/linux/i386/vfork.S (SAVE_PID): Negate PID
7440 if non-zero and set to INT_MIN if zero.
7441 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SAVE_PID): Likewise.
7442 * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Include tcb-offsets.h.
7443 (SAVE_PID, RESTORE_PID): Define.
7445 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: Include tcb-offsets.h.
7446 Use relative path to avoid including NPTL i386/vfork.S.
7447 (SAVE_PID, RESTORE_PID): Define.
7448 * sysdeps/unix/sysv/linux/raise.c: Include limits.h.
7449 (raise): Handle THREAD_SELF->pid INT_MIN the same as 0.
7450 * Makefile (tests): Add tst-vfork1, tst-vfork2, tst-vfork1x and
7452 (tests-reverse): Add tst-vfork1x and tst-vfork2x.
7453 * tst-vfork1.c: New test.
7454 * tst-vfork2.c: New test.
7455 * tst-vfork1x.c: New test.
7456 * tst-vfork2x.c: New test.
7458 2004-03-08 Ulrich Drepper <drepper@redhat.com>
7460 * sysdeps/i386/tcb-offsets.sym: Add PID.
7461 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
7462 * sysdeps/unix/sysv/linux/i386/vfork.S: New file.
7463 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
7465 2004-03-08 Steven Munroe <sjmunroe@us.ibm.com>
7467 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove leading tabs.
7469 2004-03-08 H.J. Lu <hongjiu.lu@intel.com>
7471 * sysdeps/s390/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
7474 2004-03-07 Ulrich Drepper <drepper@redhat.com>
7476 * sysdeps/ia64/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
7479 * tst-once4.c: Remove unnecessary macro definition.
7481 * tst-mutex7.c (do_test): Limit thread stack size.
7482 * tst-once2.c (do_test): Likewise.
7483 * tst-tls3.c (do_test): Likewise.
7484 * tst-tls1.c (do_test): Likewise.
7485 * tst-signal3.c (do_test): Likewise.
7486 * tst-kill6.c (do_test): Likewise.
7487 * tst-key4.c (do_test): Likewise.
7488 * tst-join4.c (do_test): Likewise.
7489 * tst-fork1.c (do_test): Likewise.
7490 * tst-context1.c (do_test): Likewise.
7491 * tst-cond2.c (do_test): Likewise.
7492 * tst-cond10.c (do_test): Likewise.
7493 * tst-clock2.c (do_test): Likewise.
7494 * tst-cancel10.c (do_test): Likewise.
7495 * tst-basic2.c (do_test): Likewise.
7496 * tst-barrier4.c (do_test): Likewise.
7498 2004-03-05 Ulrich Drepper <drepper@redhat.com>
7500 * sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate.
7502 2004-03-01 Ulrich Drepper <drepper@redhat.com>
7504 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7505 (__pthread_cond_timedwait): Optimize wakeup test.
7506 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
7507 (__pthread_cond_wait): Likewise.
7508 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
7509 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
7512 2004-02-29 Ulrich Drepper <drepper@redhat.com>
7514 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
7515 (__lll_mutex_lock_wait): Optimize a bit more. Just one copy of
7516 the atomic instruction needed.
7517 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
7518 (__lll_mutex_lock_wait): Likewise.
7520 2004-02-28 Ulrich Drepper <drepper@redhat.com>
7522 * Makefile (tests): Add tst-cond14 and tst-cond15.
7523 * tst-cond14.c: New file.
7524 * tst-cond15.c: New file.
7526 2004-02-27 Ulrich Drepper <drepper@redhat.com>
7528 * sysdeps/pthread/createthread.c (create_thread): Remove use of
7529 CLONE_STOPPED. We cannot use SIGCONT which means CLONE_STOPPED
7530 needs to be implemented differently to be useful.
7532 2004-02-26 Ulrich Drepper <drepper@redhat.com>
7534 * pthread_attr_setschedparam.c: Don't test priority against limits
7535 here. Set ATTR_FLAG_SCHED_SET flag.
7536 * pthread_attr_setschedpolicy.c: Set ATTR_FLAG_POLICY_SET flag.
7537 * pthread_create.c (__pthread_create_2_1): Copy scheduling attributes
7538 from parent thread to child. If attribute is used and scheduling
7539 parameters are not inherited, copy parameters from attribute or
7540 compute them. Check priority value.
7541 * pthread_getschedparam.c: If the parameters aren't known yet get
7542 them from the kernel.
7543 * pthread_setschedparam.c: Set ATTR_FLAG_SCHED_SET and
7544 ATTR_FLAG_POLICY_SET flag for thread.
7545 * sysdeps/unix/sysv/linux/internaltypes.h: Define ATTR_FLAG_SCHED_SET
7546 and ATTR_FLAG_POLICY_SET.
7548 * sysdeps/pthread/createthread.c: Use tgkill if possible.
7550 * pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Don't
7551 fail if stack address hasn't been set. Just return 0.
7553 2004-02-25 Ulrich Drepper <drepper@redhat.com>
7555 * Makefile (tests-nolibpthread): Add tst-unload. Don't link with
7556 libpthread for the files in this list.
7557 (CFLAGS-tst-unload): Removed.
7558 * tst-unload.c (do_test): Don't use complete path for
7561 * Makefile: Define sonames for tst-tls5mod, tst-_res1mod1, and
7564 2004-02-22 Ulrich Drepper <drepper@redhat.com>
7566 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
7567 (__lll_mutex_lock_wait): Rewrite so that only one locked memory
7568 operation per round is needed.
7569 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
7570 (__lll_mutex_lock_wait): Likewise.
7572 2004-02-20 Ulrich Drepper <drepper@redhat.com>
7574 * tst-cancel9.c (cleanup): Don't print to stderr.
7576 2004-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7578 * sysdeps/sh/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Fix variable name.
7580 2004-02-20 Jakub Jelinek <jakub@redhat.com>
7582 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
7583 (__syscall_error_handler2): Call CDISABLE.
7584 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
7585 (__syscall_error_handler2): Call CDISABLE.
7587 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7588 Release lock before the loop, don't reacquire it.
7590 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define.
7592 2004-02-19 Andreas Schwab <schwab@suse.de>
7594 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7597 2004-02-18 Ulrich Drepper <drepper@redhat.com>
7599 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
7600 (pthread_barrier_wait): After wakeup, release lock only when the
7601 last thread stopped using the barrier object.
7602 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
7603 (pthread_barrier_wait): Likewise.
7604 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7606 * Makefile (tests): Add tst-barrier4.
7607 * tst-barrier4.c: New file.
7609 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7610 (__pthread_cond_timedwait): Perform timeout test while holding
7611 internal lock to prevent wakeup race.
7612 Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
7613 * sysdeps/pthread/pthread_cond_timedwait.c
7614 (__pthread_cond_timedwait): Likewise.
7615 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
7616 (__pthread_cond_timedwait): Likewise.
7618 2004-02-18 Jakub Jelinek <jakub@redhat.com>
7620 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S
7621 (__pthread_rwlock_unlock): Access WRITER as 32-bit value.
7622 * Makefile (tests): Add tst-rwlock13.
7623 * tst-rwlock13.c: New test.
7625 2004-02-16 Ulrich Drepper <drepper@redhat.com>
7627 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7628 (__condvar_tw_cleanup): Little optimization.
7629 Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
7631 2004-02-16 Steven Munroe <sjmunroe@us.ibm.com>
7633 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Replace libc with
7634 libpthread as "lib" parameter to SHLIB_COMPAT.
7635 (__novmx_siglongjmp): Fix typo in function name.
7636 (__novmx_longjmp): Fix typo in function name.
7638 2004-02-13 Ulrich Drepper <drepper@redhat.com>
7640 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a
7643 * sysdeps/generic/pt-longjmp.c: Moved to...
7644 * sysdeps/pthread/pt-longjmp.c: ...here. New file.
7646 2004-01-29 Steven Munroe <sjmunroe@us.ibm.com>
7648 * Makefile (libpthread-routines): Add pt-cleanup.
7649 * pt-longjmp.c: Removed.
7650 * pt-cleanup.c: Copied __pthread_cleanup_upto to here. New file.
7651 * sysdeps/generic/pt-longjmp.c: Copied longjmp to here. New file.
7652 * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
7653 Version longjmp, siglongjmp for GLIBC_2.3.4.
7654 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: New File.
7656 2004-02-13 Ulrich Drepper <drepper@redhat.com>
7658 * sysdeps/pthread/pthread_cond_timedwait.c
7659 (__pthread_cond_timedwait): Optimize. Drop internal lock earlier.
7660 Reuse code. Add __builtin_expects.
7662 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7663 (__pthread_cond_timedwait): Get internal lock in case timeout has
7664 passed before the futex syscall.
7665 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
7667 2004-01-20 Ulrich Drepper <drepper@redhat.com>
7669 * allocatestack.c: Pretty printing.
7671 * sysdeps/pthread/createthread.c (create_thread): Don't add
7672 CLONE_DETACHED bit if it is not necessary.
7674 2004-01-16 Ulrich Drepper <drepper@redhat.com>
7676 * pthread_getattr_np.c: Include ldsodefs.h.
7678 2004-01-16 Richard Henderson <rth@redhat.com>
7680 * allocatestack.c: Don't declare __libc_stack_end.
7681 * init.c (__pthread_initialize_minimal_internal): Likewise.
7682 * pthread_getattr_np.c (pthread_getattr_np): Likewise.
7684 2004-01-15 Richard Henderson <rth@redhat.com>
7686 * sysdeps/alpha/tls.h (tcbhead_t): Add private.
7687 (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
7688 TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
7689 GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
7690 (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
7691 (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
7692 (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
7693 * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
7695 2004-01-14 Ulrich Drepper <drepper@redhat.com>
7697 * init.c (pthread_functions): Make array const.
7699 2004-01-13 Ulrich Drepper <drepper@redhat.com>
7701 * allocatestack.c (__make_stacks_executable): Change interface.
7702 Check parameters. Pass parameter on to libc counterpart.
7703 * pthreadP.h: Change declaration.
7705 2004-01-13 Richard Henderson <rth@redhat.com>
7707 * pthread_attr_setstack.c (__old_pthread_attr_setstack): Use
7709 * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize):
7712 * sysdeps/alpha/Makefile: New file.
7713 * sysdeps/alpha/tcb-offsets.sym: New file.
7714 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
7715 Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.
7717 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
7720 2004-01-08 Jakub Jelinek <jakub@redhat.com>
7722 * Makefile (tests): Add tst-backtrace1.
7723 * tst-backtrace1.c: New test.
7725 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
7727 * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
7728 register as second parameter to the REGISTER macro.
7729 * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
7730 * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
7731 * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
7732 * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
7733 * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
7734 of thread register as second parameter to REGISTER macro in 64 case.
7736 2004-01-03 Ulrich Drepper <drepper@redhat.com>
7738 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
7739 (CFLAGS-getpid.o): Defined.
7740 (CFLAGS-getpid.os): Defined.
7742 2003-12-31 Ulrich Drepper <drepper@redhat.com>
7744 * pthread_getattr_np.c (pthread_getattr_np): Make sure stack info
7745 returned for main thread does not overlap with any other VMA.
7746 Patch by Jakub Jelinek.
7748 2003-12-29 Jakub Jelinek <jakub@redhat.com>
7750 * tst-raise1.c: Include stdio.h.
7752 2003-12-23 Jakub Jelinek <jakub@redhat.com>
7754 * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid
7755 setting with __ASSUME_TGKILL || defined __NR_tgkill.
7756 If pid is 0, set it to selftid.
7757 * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline.
7758 Don't set self->pid but self->tid. If self->pid == 0 and self->tid
7759 != 0, return self->tid without doing a syscall.
7760 * descr.h (struct pthread): Move pid field after tid.
7762 * Makefile (tests): Add tst-raise1.
7763 * tst-raise1.c: New file.
7765 2003-12-23 Roland McGrath <roland@redhat.com>
7767 * tst-oddstacklimit.c: New file.
7768 * Makefile (tests): Add it.
7769 (tst-oddstacklimit-ENV): New variable.
7771 * init.c (__pthread_initialize_minimal_internal): Round stack rlimit
7772 value up to page size for __default_stacksize.
7774 2003-12-21 Ulrich Drepper <drepper@redhat.com>
7776 * Makefile (tests): Add tst-eintr5.
7777 * tst-eintr5.c: New file.
7779 * eintr.c (eintr_source): Prevent sending signal to self.
7781 * tst-eintr2.c (tf1): Improve error message.
7783 2003-12-20 Ulrich Drepper <drepper@redhat.com>
7785 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define.
7786 * sysdeps/unix/sysv/linux/getpid.c: New file.
7787 * pthread_cancel.c: Add comment explaining use of PID field.
7788 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
7789 * pthread_getattr_np.c: Use abs() when comparing PID and TID fields.
7790 * sysdeps/unix/sysv/linux/fork.c: Negate PID field of parent
7791 temporarily to signal the field must not be relied on and updated
7793 * sysdeps/unix/sysv/linux/pt-raise.c: Handle case where PID is
7794 temporarily negative.
7795 * sysdeps/unix/sysv/linux/raise.c: Likewise.
7797 2003-12-19 Ulrich Drepper <drepper@redhat.com>
7799 * eintr.c (setup_eintr): Add new parameter. Pass to thread function.
7800 (eintr_source): If ARG != NULL, use pthread_kill.
7801 * tst-eintr1.c: Adjust for this change.
7802 * tst-eintr2.c: Likewise.
7803 * Makefile (tests): Add tst-eintr3 and tst-eintr4.
7804 * tst-eintr3.c: New file.
7805 * tst-eintr4.c: New file.
7807 2003-12-19 Jakub Jelinek <jakub@redhat.com>
7809 * libc-cancellation.c (__libc_enable_asynccancel): Don't cancel
7810 if CANCELSTATE_BITMASK is set.
7811 * sysdeps/pthread/librt-cancellation.c (__librt_enable_asynccancel):
7814 * Makefile (tests): Add tst-cancel22 and tst-cancel23.
7815 (tests-reverse): Add tst-cancel23.
7816 * tst-cancel22.c: New test.
7817 * tst-cancel23.c: New test.
7819 2003-12-18 Ulrich Drepper <drepper@redhat.com>
7821 * tst-eintr1.c: Better error messages.
7823 * Makefile (tests): Add tst-eintr2.
7824 * tst-eintr2.c: New file.
7826 2003-12-18 Jakub Jelinek <jakub@redhat.com>
7828 * Makefile (tests): Add tst-cancel21 and tst-cancelx21.
7829 (CFLAGS-tst-cancelx21.c): Set.
7830 * tst-cancel21.c: New test.
7831 * tst-cancelx21.c: New test.
7833 * unwind.c (FRAME_LEFT): Add adj argument. Subtract it from each
7835 (unwind_stop): Use _JMPBUF_CFA_UNWINDS_ADJ macro instead of
7836 _JMPBUF_CFA_UNWINDS. Adjust FRAME_LEFT invocations.
7837 * pt-longjmp.c: Include jmpbuf-unwind.h.
7838 (__pthread_cleanup_upto): Use _JMPBUF_UNWINDS_ADJ macro instead of
7839 _JMPBUF_UNWINDS. Adjust compared pointers.
7840 * init.c (__pthread_initialize_minimal_internal): Initialize
7841 pd->stackblock_size.
7842 * sysdeps/pthread/jmpbuf-unwind.h: Removed.
7843 * sysdeps/alpha/jmpbuf-unwind.h: New file.
7844 * sysdeps/i386/jmpbuf-unwind.h: New file.
7845 * sysdeps/powerpc/jmpbuf-unwind.h: New file.
7846 * sysdeps/s390/jmpbuf-unwind.h: New file.
7847 * sysdeps/sh/jmpbuf-unwind.h: New file.
7848 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file.
7849 * sysdeps/x86_64/jmpbuf-unwind.h: New file.
7850 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Include stdint.h.
7851 (_JMPBUF_CFA_UNWINDS): Remove.
7852 (_JMPBUF_CFA_UNWINDS_ADJ, _JMPBUF_UNWINDS_ADJ): Define.
7854 2003-12-12 Jakub Jelinek <jakub@redhat.com>
7856 * Makefile (tests): Add tst-cancel20 and tst-cancelx20.
7857 (CFLAGS-tst-cancelx20.c): Set.
7858 * tst-cancel20.c: New test.
7859 * tst-cancelx20.c: New test.
7861 2003-12-17 Ulrich Drepper <drepper@redhat.com>
7863 * init.c (__pthread_initialize_minimal_internal): Don't treat
7864 architectures with separate register stack special here when
7865 computing default stack size.
7867 2003-12-17 Roland McGrath <roland@redhat.com>
7869 * Makefile (tst-cancelx7-ARGS): New variable.
7870 Reportd by Greg Schafer <gschafer@zip.com.au>.
7872 2003-12-17 Jakub Jelinek <jakub@redhat.com>
7874 * Makefile (tests): Add tst-stack3. Depend on $(objpfx)tst-stack3-mem.
7875 (generated): Add tst-stack3.mtrace and tst-stack3-mem.
7876 (tst-stack3-ENV): Set.
7877 ($(objpfx)tst-stack3-mem): New.
7878 * tst-stack3.c: New test.
7880 2003-12-10 David Mosberger <davidm@hpl.hp.com>
7882 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init_EPILOG_BEGINS):
7883 Add unwind directives. Drop unused .regstk directive.
7884 (_fini_EPILOG_BEGINS): Add unwind directives.
7886 2003-12-11 Ulrich Drepper <drepper@redhat.com>
7888 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
7889 Assume parameter is a pointer.
7890 (lll_futex_wake): Likewise.
7891 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wait):
7893 (lll_futex_wake): Likewise.
7894 Reported by Boris Hu.
7895 * sysdeps/unix/sysv/linux/unregister-atfork.c
7896 (__unregister_atfork): Pass pointer to refcntr to lll_futex_wait.
7898 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Simplify a bit.
7900 2003-12-10 Ulrich Drepper <drepper@redhat.com>
7902 * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define.
7903 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call
7904 __rtld_lock_initialize for ld.so lock.
7905 Patch in part by Adam Li <adam.li@intel.com>.
7907 2003-12-02 David Mosberger <davidm@hpl.hp.com>
7909 * Makefile (link-libc-static): Remove -lgcc_eh---it's already mentioned
7910 in $(gnulib). Also, remove stale comment.
7912 2003-11-12 David Mosberger <davidm@hpl.hp.com>
7914 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Take
7915 advantage of new syscall stub and optimize accordingly.
7917 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__NR_futex): Rename
7918 from SYS_futex, to match expectations of
7919 sysdep.h:DO_INLINE_SYSCALL.
7920 (lll_futex_clobbers): Remove.
7921 (lll_futex_timed_wait): Rewrite in terms of DO_INLINE_SYSCALL.
7922 (lll_futex_wake): Likewise.
7923 (lll_futex_requeue): Likewise.
7924 (__lll_mutex_trylock): Rewrite to a macro, so we can include this
7925 file before DO_INLINE_SYSCALL is defined (proposed by Jakub
7927 (__lll_mutex_lock): Likewise.
7928 (__lll_mutex_cond_lock): Likewise.
7929 (__lll_mutex_timed_lock): Likewise.
7930 (__lll_mutex_unlock): Likewise.
7931 (__lll_mutex_unlock_force): Likewise.
7933 * sysdeps/ia64/tls.h: Move declaration of __thread_self up so it
7934 comes before the include of <sysdep.h>.
7935 (THREAD_SELF_SYSINFO): New macro.
7936 (THREAD_SYSINFO): Likewise.
7937 (INIT_SYSINFO): New macro.
7938 (TLS_INIT_TP): Call INIT_SYSINFO.
7940 * sysdeps/ia64/tcb-offsets.sym: Add SYSINFO_OFFSET.
7942 * sysdeps/pthread/createthread.c (create_thread): Use
7943 THREAD_SELF_SYSINFO and THREAD_SYSINFO instead of open code.
7944 * allocatestack.c (allocate_stack): Use THREAD_SYSINFO and
7945 THREAD_SELF_SYSINFO instead of open code.
7946 * sysdeps/i386/tls.h (THREAD_SELF_SYSINFO): New macro.
7947 (THREAD_SYSINFO): Likewise.
7949 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: New file.
7951 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Work around gas problem.
7953 2003-12-06 Ulrich Drepper <drepper@redhat.com>
7955 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Use .init_array
7956 instead of .init. Patch by David Mosberger.
7958 2003-11-30 Thorsten Kukuk <kukuk@suse.de>
7960 * sysdeps/pthread/configure.in: Remove broken declaration in C
7961 cleanup handling check.
7963 2003-11-30 Andreas Jaeger <aj@suse.de>
7965 * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
7966 * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
7969 2003-11-27 Jakub Jelinek <jakub@redhat.com>
7971 * sysdeps/unix/sysv/linux/internaltypes.h (ATTR_FLAG_OLDATTR): Define.
7972 * pthread_attr_destroy.c: Include shlib-compat.h.
7973 (__pthread_attr_destroy): Return immediately if ATTR_FLAG_OLDATTR
7974 is set in iattr->flags.
7975 * pthread_attr_init.c (__pthread_attr_init_2_0): Set ATTR_FLAG_OLDATTR.
7977 2003-11-21 Jakub Jelinek <jakub@redhat.com>
7979 * Makefile (distribute): Add tst-cleanup4aux.c.
7981 * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c
7984 2003-11-21 Ulrich Drepper <drepper@redhat.com>
7986 * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use
7987 pthread_cond_signal.
7989 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Don't
7990 store mutex address if the current value is ~0l.
7991 * sysdeps/pthread/pthread_cond_timedwait.c
7992 (__pthread_cond_timedwait): Likewise.
7993 * sysdeps/pthread/pthread_cond_broadcast.c
7994 (__pthread_cond_broadcast): Don't use requeue for pshared
7997 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
7998 (__pthread_cond_wait): Don't store mutex address if the current
8000 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
8001 (__pthread_cond_timedwait): Likewise.
8002 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
8003 (__pthread_cond_broadcast): Don't use requeue for pshared
8006 * pthread_cond_init.c (__pthread_cond_init): Initialize __mutex
8007 element with ~0l for pshared condvars, with NULL otherwise.
8009 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
8010 (__pthread_cond_wait): Don't store mutex address if the current
8012 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
8013 (__pthread_cond_timedwait): Likewise.
8014 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
8015 (__pthread_cond_broadcast): Don't use requeue for pshared
8018 * Makefile: Add rules to build and run tst-cond12 and tst-cond13.
8019 * tst-cond12.c: New file.
8020 * tst-cond13.c: New file.
8022 2003-11-17 Ulrich Drepper <drepper@redhat.com>
8024 * sysdeps/pthread/configure.in: Make missing forced unwind support
8027 2003-11-11 Ulrich Drepper <drepper@redhat.com>
8029 * pthreadP.h: Don't declare __pthread_unwind as weak inside libpthread.
8031 2003-11-06 Ulrich Drepper <drepper@redhat.com>
8033 * Makefile: Add magic to clean up correctly.
8035 2003-11-05 Jakub Jelinek <jakub@redhat.com>
8037 * unwind.c (FRAME_LEFT): Define.
8038 (unwind_stop): Handle old style cleanups here.
8039 (__pthread_unwind): Handle old style cleanups only if
8040 !HAVE_FORCED_UNWIND.
8041 * Makefile (tests): Add tst-cleanup4 and tst-cleanupx4.
8042 (CFLAGS-tst-cleanupx4.c): Add -fexceptions.
8043 ($(objpfx)tst-cleanup4): Depend on $(objpfx)tst-cleanup4aux.o.
8044 ($(objpfx)tst-cleanupx4): Likewise.
8045 * tst-cleanup4.c: New test.
8046 * tst-cleanup4aux.c: New.
8047 * tst-cleanupx4.c: New test.
8049 2003-11-04 Ulrich Drepper <drepper@redhat.com>
8051 * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
8052 lll_mutex_*lock macros to skip atomic operations on some archs.
8054 2003-11-03 Ulrich Drepper <drepper@redhat.com>
8056 * sysdeps/pthread/tst-timer.c (main): Initialize
8057 sigev2.sigev_value as well.
8059 2003-10-15 Roland McGrath <roland@redhat.com>
8061 * sysdeps/pthread/configure.in: Barf if visibility attribute support
8063 * sysdeps/pthread/configure: Regenerated.
8065 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8067 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Completely revamp the
8068 locking macros. No distinction between normal and mutex locking
8070 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Rewrite mutex locking.
8071 Merge bits from lowlevelmutex.S we still need.
8072 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Remove.
8073 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
8074 * sysdeps/unix/sysv/linux/sh/not-cancel.h: New file.
8075 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Adjust for
8076 new mutex implementation.
8077 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
8078 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
8079 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
8080 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
8081 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
8082 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
8083 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
8084 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
8085 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
8086 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Also defined
8087 symbol for entry point to avoid cancellation.
8089 2003-10-07 Jakub Jelinek <jakub@redhat.com>
8091 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Backout 2003-10-02
8093 (SAVE_OLDTYPE_0): Fix a typo.
8095 2003-10-03 Ulrich Drepper <drepper@redhat.com>
8097 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
8098 Check __sigsetjmp return value. Reported by Daniel Jacobowitz.
8100 2003-10-02 Ulrich Drepper <drepper@redhat.com>
8102 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (DOCARGS_1): Use
8105 2003-10-02 Jakub Jelinek <jakub@redhat.com>
8107 * Makefile (tests): Add tst-cancel19.
8108 * tst-cancel19.c: New test.
8110 2003-10-02 Ulrich Drepper <drepper@redhat.com>
8112 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix saving and
8113 restoring of the old cancellation type.
8115 2003-09-30 Jakub Jelinek <jakub@redhat.com>
8117 * sysdeps/pthread/malloc-machine.h: Remove misleading comment.
8119 2003-09-27 Wolfram Gloger <wg@malloc.de>
8121 * sysdeps/pthread/malloc-machine.h: New file
8123 2003-09-24 Roland McGrath <roland@redhat.com>
8125 * allocatestack.c (__make_stacks_executable): Don't ignore return
8126 value from _dl_make_stack_executable.
8128 2003-09-24 Ulrich Drepper <drepper@redhat.com>
8130 * allocatestack.c (__make_stacks_executable): Also change
8131 permission of the currently unused stacks.
8133 * allocatestack.c (change_stack_perm): Split out from
8134 __make_stacks_executable.
8135 (allocate_stack): If the required permission changed between the time
8136 we started preparing the stack and queueing it, change the permission.
8137 (__make_stacks_executable): Call change_stack_perm.
8139 * Makefile: Build tst-execstack-mod locally.
8140 * tst-execstack-mod.c: New file.
8142 2003-09-23 Jakub Jelinek <jakub@redhat.com>
8144 * Makefile (tests): Only add tst-execstack if have-z-execstack is yes.
8146 2003-09-23 Roland McGrath <roland@redhat.com>
8148 * tst-execstack.c: New file.
8149 * Makefile (tests): Add it.
8150 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
8151 (LDFLAGS-tst-execstack): New variable.
8153 * allocatestack.c (allocate_stack): Use GL(dl_stack_flags) to decide
8154 whether to use PROT_EXEC for stack mmap.
8155 (__make_stacks_executable): New function.
8156 * pthreadP.h: Declare it.
8157 * init.c (__pthread_initialize_minimal_internal): Set
8158 GL(dl_make_stack_executable_hook) to that.
8160 2003-09-22 Ulrich Drepper <drepper@redhat.com>
8162 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Adjust for latest
8163 recommendation from AMD re avoidance of lock prefix.
8165 2003-09-22 Jakub Jelinek <jakub@redhat.com>
8167 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Use
8168 lll_futex_timed_wait instead of lll_futex_wait.
8169 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Removed.
8170 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Removed.
8171 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: Removed.
8172 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: Removed.
8173 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Removed.
8174 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Removed.
8175 * sysdeps/unix/sysv/linux/s390/sem_post.c: Removed.
8176 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Removed.
8177 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include atomic.h.
8178 Completely revamp the locking macros. No distinction between
8179 normal and mutex locking anymore.
8180 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
8181 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock_wait,
8182 __lll_lock_timedwait): Fix prototypes.
8183 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_lock_wait,
8184 __lll_lock_timedwait): Likewise.
8185 (lll_mutex_lock, lll_mutex_cond_lock): Use _val instead of _bool
8186 macros, add __builtin_expect.
8187 (lll_mutex_timedlock): Likewise. Fix return value.
8188 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Removed.
8189 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: Removed.
8190 * sysdeps/unix/sysv/linux/i386/i586/lowlevelmutex.S: Removed.
8191 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: Removed.
8192 * sysdeps/unix/sysv/linux/i386/i686/lowlevelmutex.S: Removed.
8193 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: Removed.
8194 * sysdeps/unix/sysv/linux/lowlevelmutex.c: Removed.
8195 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: Removed.
8197 2003-09-22 Ulrich Drepper <drepper@redhat.com>
8199 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
8200 (__lll_mutex_lock_wait): Minor optimization to avoid one atomic
8201 operation if possible.
8203 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks
8204 like jumping over the lock prefix.
8206 2003-09-21 Ulrich Drepper <drepper@redhat.com>
8208 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the
8209 locking macros. No distinction between normal and mutex locking
8211 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
8212 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
8213 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
8214 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Rewrite mutex
8215 locking. Merge bits from lowlevelmutex.S we still need.
8216 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
8217 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
8218 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Removed.
8219 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Removed.
8220 * Makefile (routines): Remove libc-lowlevelmutex.
8221 (libpthread-rountines): Remove lowlevelmutex.
8222 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Adjust
8223 for new mutex implementation.
8224 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
8225 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8226 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8227 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
8228 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
8230 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
8232 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
8233 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
8234 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise
8235 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
8236 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8237 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8238 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
8239 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
8241 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
8243 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
8244 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
8245 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
8247 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
8248 * sysdeps/pthread/pthread_cond_signal.c: Don't use requeue.
8250 2003-09-20 Ulrich Drepper <drepper@redhat.com>
8252 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't match memory
8253 in parameters of asm with output parameters.
8255 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change
8256 type of DECR parameter to int.
8257 * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
8259 2003-09-18 Jakub Jelinek <jakub@redhat.com>
8261 * tst-attr3.c (tf, do_test): Print stack start/end/size and
8262 guardsize for each thread.
8264 2003-09-17 Jakub Jelinek <jakub@redhat.com>
8266 * sysdeps/pthread/pthread.h (pthread_getattr_np): Clarify usage.
8267 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
8268 (pthread_attr_setaffinity_np): Handle cpuset == NULL.
8270 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
8271 (pthread_attr_getaffinity_np): Don't segfault if iattr->cpuset is
8273 * pthread_getattr_np.c: Set cpuset using pthread_getaffinity_np.
8274 * pthreadP.h (pthread_getaffinity_np): Add hidden_proto.
8275 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
8276 (pthread_getaffinity_np): Add hidden_def.
8278 * Makefile (tests): Add tst-attr3.
8279 * tst-attr3.c: New test.
8281 * sysdeps/i386/Makefile (CFLAGS-tst-align.c): Remove.
8283 2003-09-15 Jakub Jelinek <jakub@redhat.com>
8285 * sysdeps/i386/Makefile (CFLAGS-pthread_create.c,
8286 CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
8288 2003-09-17 Jakub Jelinek <jakub@redhat.com>
8290 * Makefile (CFLAGS-tst-align.c): Add $(stack-align-test-flags).
8291 * tst-align.c: Include tst-stack-align.h.
8292 (tf, do_test): Use TEST_STACK_ALIGN macro.
8294 2003-09-17 Ulrich Drepper <drepper@redhat.com>
8296 * pthread_attr_init.c (__pthread_attr_init_2_0): Remove unused
8299 2003-09-16 Ulrich Drepper <drepper@redhat.com>
8301 * pthread_getattr_np.c (pthread_getattr_np): Correctly fill in the
8302 stack-related values for the initial thread.
8304 2003-09-15 Jakub Jelinek <jakub@redhat.com>
8306 * Makefile (CFLAGS-pthread_once.c): Add $(uses-callbacks).
8308 2003-09-11 Ulrich Drepper <drepper@redhat.com>
8310 * pthread_mutex_lock.c: Minor code rearrangements.
8312 2003-09-05 Roland McGrath <roland@redhat.com>
8314 * pthread_create.c (__pthread_pthread_sizeof_descr): Removed.
8315 Instead, include ../nptl_db/db_info.c to do its magic.
8316 * pthread_key_create.c (__pthread_pthread_keys_max): Removed.
8317 (__pthread_pthread_key_2ndlevel_size): Likewise.
8318 * sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro.
8319 * sysdeps/i386/tls.h (DB_THREAD_SELF): New macro.
8320 * sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro.
8321 * sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro.
8322 * sysdeps/s390/tls.h (DB_THREAD_SELF): New macro.
8323 * sysdeps/sh/tls.h (DB_THREAD_SELF): New macro.
8324 * sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro.
8325 * sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro.
8326 * sysdeps/alpha/td_ta_map_lwp2thr.c: File removed.
8327 * sysdeps/generic/td_ta_map_lwp2thr.c: File removed.
8328 * sysdeps/i386/td_ta_map_lwp2thr.c: File removed.
8329 * sysdeps/ia64/td_ta_map_lwp2thr.c: File removed.
8330 * sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed.
8331 * sysdeps/s390/td_ta_map_lwp2thr.c: File removed.
8332 * sysdeps/sh/td_ta_map_lwp2thr.c: File removed.
8333 * sysdeps/sparc/td_ta_map_lwp2thr.c: File removed.
8334 * sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed.
8336 2003-09-08 Ulrich Drepper <drepper@redhat.com>
8338 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Change type
8339 of pthread_t to be compatible with LT.
8340 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
8341 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
8342 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8343 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8344 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
8345 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8346 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
8348 2003-09-04 Ulrich Drepper <drepper@redhat.com>
8350 * sysdeps/unix/sysv/linux/i386/not-cancel.h (fcntl_not_cancel): Define.
8352 2003-09-04 Jakub Jelinek <jakub@redhat.com>
8354 * unwind-forcedunwind.c: Move to...
8355 * sysdeps/pthread/unwind-forcedunwind.c: ...here.
8356 (pthread_cancel_init): Use ARCH_CANCEL_INIT if defined.
8357 * sysdeps/pthread/jmpbuf-unwind.h: New file.
8358 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: New file.
8359 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: New file.
8360 * unwind.c: Include jmpbuf-unwind.h.
8361 (unwind_stop): Use _JMPBUF_CFA_UNWINDS macro.
8363 2003-09-02 Jakub Jelinek <jakub@redhat.com>
8365 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
8366 * sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export
8367 pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3.
8368 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
8369 * sysdeps/unix/sysv/linux/alpha/Versions: New file.
8370 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
8371 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
8372 * pthread_attr_setstack.c (__old_pthread_attr_setstack): New function.
8373 (pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
8374 as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
8375 * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New
8377 (pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
8378 as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
8379 * Makefile (tests): Add tst-stack2.
8380 * tst-stack2.c: New test.
8381 * tst-stack1.c: Include limits.h and sys/param.h.
8382 (do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN).
8384 * pthread_condattr_setpshared.c: Include errno.h.
8385 (pthread_condattr_setpshared): Return EINVAL if pshared
8386 is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
8388 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also
8389 defined symbol for entry point to avoid cancellation.
8390 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
8392 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
8394 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
8396 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h (PSEUDO):
8398 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
8400 * sysdeps/unix/sysv/linux/i386/not-cancel.h (__open_nocancel,
8401 __close_nocancel, __read_nocancel, __write_nocancel,
8402 __waitpid_nocancel): Add attribute_hidden. If not in libc.so,
8403 libpthread.so or librt.so, define to corresponding function
8404 without _nocancel suffix.
8405 * sysdeps/unix/sysv/linux/s390/not-cancel.h: New file.
8406 * sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file.
8407 * sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file.
8409 * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo.
8411 2003-09-02 Ulrich Drepper <drepper@redhat.com>
8413 * sysdeps/unix/sysv/linux/i386/not-cancel.h: New file.
8414 * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: New file.
8416 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Make sure the code
8417 in subsections has a symbol associated with it.
8419 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Also
8420 defined symbol for entry point to avoid cancellation.
8421 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Likewise.
8423 2003-09-01 Jakub Jelinek <jakub@redhat.com>
8425 * Makefile (tests): Add tst-tls5.
8426 (module-names): Add tst-tls5mod{,a,b,c,d,e,f}.
8427 ($(objpfx)tst-tls5mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes.
8428 ($(objpfx)tst-tls5): New.
8429 ($(objpfx)tst-tls6.out): Likewise.
8430 (tests): Depend on $(objpfx)tst-tls6.out.
8431 * tst-tls3.c: Include stdint.h and pthreaddef.h.
8432 (do_test): Check pthread_self () return value alignment.
8433 * tst-tls3mod.c: Include stdint.h and pthreaddef.h.
8434 (tf): Check pthread_self () return value alignment.
8435 * tst-tls5.c: New test.
8437 * tst-tls5mod.c: New.
8438 * tst-tls5moda.c: New.
8439 * tst-tls5modb.c: New.
8440 * tst-tls5modc.c: New.
8441 * tst-tls5modd.c: New.
8442 * tst-tls5mode.c: New.
8443 * tst-tls5modf.c: New.
8444 * tst-tls6.sh: New test.
8446 * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Add
8447 ptr___pthread_cond_timedwait and ptr___pthread_cond_timedwait_2_0.
8448 * init.c (pthread_functions): Initialize them.
8449 * forward.c (pthread_cond_timedwait@GLIBC_2.0,
8450 pthread_cond_timedwait@@GLIBC_2.3.2): New forwards.
8451 * Versions (libc): Export pthread_cond_timedwait@GLIBC_2.0,
8452 pthread_cond_timedwait@@GLIBC_2.3.2.
8454 2003-09-01 Jakub Jelinek <jakub@redhat.com>
8456 * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file.
8457 * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file.
8458 * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file.
8459 * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file.
8460 * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file.
8461 * sysdeps/unix/sysv/linux/alpha/Versions: New file.
8463 * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file.
8465 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define
8466 _POSIX_THREAD_PRIORITY_SCHEDULING.
8467 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
8469 2003-08-31 Ulrich Drepper <drepper@redhat.com>
8471 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock): Avoid
8472 nested function, use static inline function from libio.h.
8473 Code by Richard Henderson.
8475 * sysdeps/pthread/bits/libc-lock.h: Mark pthread_setcancelstate as
8478 2003-08-30 Jakub Jelinek <jakub@redhat.com>
8480 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
8481 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: New file.
8482 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: New file.
8483 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: New file.
8484 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: New file.
8485 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: New file.
8486 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: New file.
8487 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: New file.
8488 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: New file.
8489 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: New file.
8490 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: New file.
8491 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: New file.
8492 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
8493 * sysdeps/unix/sysv/linux/sparc/fork.c: New file.
8494 * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: New file.
8495 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: New file.
8496 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: New file.
8497 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: New file.
8498 * sysdeps/sparc/sparc32/pthread_spin_lock.c: New file.
8499 * sysdeps/sparc/sparc32/pthread_spin_trylock.c: New file.
8500 * sysdeps/sparc/sparc32/pthreaddef.h: New file.
8501 * sysdeps/sparc/sparc64/pthread_spin_lock.c: New file.
8502 * sysdeps/sparc/sparc64/pthread_spin_trylock.c: New file.
8503 * sysdeps/sparc/sparc64/pthread_spin_unlock.c: New file.
8504 * sysdeps/sparc/sparc64/pthreaddef.h: New file.
8505 * sysdeps/sparc/tls.h: New file.
8506 * sysdeps/sparc/tcb-offsets.sym: New file.
8507 * sysdeps/sparc/Makefile: New file.
8508 * sysdeps/sparc/td_ta_map_lwp2thr.c: New file.
8509 * init.c [__sparc__] (__NR_set_tid_address): Define.
8511 2003-08-29 Jakub Jelinek <jakub@redhat.com>
8513 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock,
8514 _IO_release_lock): Define.
8516 2003-08-29 Jakub Jelinek <jakuB@redhat.com>
8518 * tst-cancel4.c (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add
8519 sigemptyset before sigaddset. Reported by jreiser@BitWagon.com.
8521 2003-08-27 Ulrich Drepper <drepper@redhat.com>
8523 * sysdeps/pthread/pthread.h (pthread_exit): Remove __THROW.
8524 (__pthread_cleanup_class): Add missing return types of member
8527 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
8529 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
8530 (lll_mutex_unlock_force): Add memory barrier between store and futex
8533 2003-08-25 Ulrich Drepper <drepper@redhat.com>
8535 * tst-cancel4.c (do_test): Also unlink tempfname and remove
8536 tempmsg in first loop.
8538 2003-08-18 Ulrich Drepper <drepper@redhat.com>
8540 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8541 _POSIX_THREAD_PRIORITY_SCHEDULING.
8542 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
8544 2003-08-07 Jakub Jelinek <jakub@redhat.com>
8546 * sysdeps/pthread/bits/libc-lock.h [_LIBC && SHARED]
8547 (__rtld_lock_default_lock_recursive,
8548 __rtld_lock_default_unlock_recursive): Define.
8549 [_LIBC && SHARED] (__rtld_lock_lock_recursive,
8550 __rtld_lock_unlock_recursive): Define using
8551 GL(_dl_rtld_*lock_recursive).
8552 * init.c (__pthread_initialize_minimal_internal): Initialize
8553 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
8554 Lock GL(_dl_load_lock) the same number of times as
8555 GL(_dl_load_lock) using non-mt implementation was nested.
8557 * pthreadP.h (__pthread_cleanup_upto): Add hidden_proto.
8558 * pt-longjmp.c (__pthread_cleanup_upto): Add hidden_def.
8560 2003-08-06 Jakub Jelinek <jakub@redhat.com>
8562 * tst-cancel17.c (do_test): Make len2 maximum of page size and
8565 2003-08-07 Jakub Jelinek <jakub@redhat.com>
8567 * pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.
8569 2003-08-03 Jakub Jelinek <jakub@redhat.com>
8571 * sysdeps/pthread/createthread.c (do_clone): Move error handling
8572 to first syscall error check. Move syscall error check for tkill
8573 into __ASSUME_CLONE_STOPPED #ifdef.
8575 2003-08-02 Ulrich Drepper <drepper@redhat.com>
8577 * sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED
8578 is not defined, do explicit synchronization.
8579 (create_thread): Do not lock pd->lock here. If __ASSUME_CLONE_STOPPED
8580 is not defined also unlock pd->lock for non-debugging case in case
8582 * pthread_create.c (start_thread): Always get and release pd->lock
8583 if __ASSUME_CLONE_STOPPED is not defined.
8584 (start_thread_debug): Removed. Adjust users.
8585 * allocatestack.c (allocate_stack): Always initialize lock if
8586 __ASSUME_CLONE_STOPPED is not defined.
8587 * Makefile (tests): Add tst-sched1.
8588 * tst-sched1.c: New file.
8590 * sysdeps/pthread/createthread.c (do_clone): Only use
8591 sched_setschduler and pass correct parameters.
8593 2003-07-31 Jakub Jelinek <jakub@redhat.com>
8595 * sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
8596 pthread_attr_setstacksize): Change PTHREAD_STACK_SIZE to
8597 PTHREAD_STACK_MIN in comments.
8599 2003-07-31 Jakub Jelinek <jakub@redhat.com>
8601 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
8602 Shut up warnings if INTERNAL_SYSCALL_ERROR_P does not use its first
8604 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8605 * pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise.
8606 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Include pthreaddef.h.
8607 (__pthread_cleanup_upto): Fix prototype.
8608 (_longjmp_unwind): Adjust caller.
8609 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_timedlock):
8610 Change second argument to const struct pointer.
8611 * tst-sem8.c (main): Remove unused s2 and s3 variables.
8612 * tst-sem9.c (main): Likewise.
8613 * unwind.c: Include string.h for strlen prototype.
8615 2003-07-31 Ulrich Drepper <drepper@redhat.com>
8617 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
8618 (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined.
8619 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
8621 Patch by Nicholas Miell <nmiell@attbi.com>.
8623 2003-07-30 Jakub Jelinek <jakub@redhat.com>
8625 * init.c (__pthread_initialize_minimal_internal): Initialize
8626 GL(dl_init_static_tls).
8627 * pthreadP.h (__pthread_init_static_tls): New prototype.
8628 * allocatestack.c (init_one_static_tls, __pthread_init_static_tls):
8630 * Makefile (tests): Add tst-tls4.
8631 (modules-names): Add tst-tls4moda and tst-tls4modb.
8632 ($(objpfx)tst-tls4): Link against libdl and libpthread.
8633 ($(objpfx)tst-tls4.out): Depend on tst-tls4moda.so and
8635 * tst-tls4.c: New file.
8636 * tst-tls4moda.c: New file.
8637 * tst-tls4modb.c: New file.
8639 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
8641 * sysdeps/pthread/timer_create.c (timer_create): Call timer_delref
8642 before __timer_dealloc.
8643 * sysdeps/pthread/timer_routines.c (__timer_thread_find_matching):
8644 Don't call list_unlink.
8646 2003-07-29 Roland McGrath <roland@redhat.com>
8648 * Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules).
8650 2003-07-25 Jakub Jelinek <jakub@redhat.com>
8652 * tst-cancel17.c (do_test): Check if aio_cancel failed.
8653 Don't reuse struct aiocb A if it failed.
8654 Write fpathconf (fds[1], _PC_PIPE_BUF) + 2 bytes using aio_write,
8655 not just one byte, as that does not block.
8657 2003-07-22 Jakub Jelinek <jakub@redhat.com>
8659 * sysdeps/pthread/unwind-resume.c: New file.
8660 * sysdeps/pthread/Makefile (routines, shared-only-routines): Add
8661 unwind-resume in csu subdir.
8662 (CFLAGS-unwind-resume.c, CFLAGS-rt-unwind-resume.c): Compile with
8664 (librt-sysdep_routines, librt-shared-only-routines): Add
8666 * sysdeps/pthread/rt-unwind-resume.c: New file.
8667 * unwind-forcedunwind.c: New file.
8668 * Makefile (libpthread-routines): Add unwind-forcedunwind.
8669 (libpthread-shared-only-routines): Likewise.
8670 (CFLAGS-unwind-forcedunwind.c): Compile with exceptions.
8671 * pthreadP.h (pthread_cancel_init): New prototype.
8672 * pthread_cancel.c (pthread_cancel): Call pthread_cancel_init.
8674 * sysdeps/pthread/createthread.c (do_thread, create_thread): Make
8675 attr argument const struct pthread_attr *.
8677 * res.c (__res_state): Return __resp.
8678 * descr.h: Include resolv.h.
8679 (struct pthread): Add res field.
8680 * pthread_create.c: Include resolv.h.
8681 (start_thread): Initialize __resp.
8682 * Makefile (tests): Add tst-_res1.
8683 (module-names): Add tst-_res1mod1, tst-_res1mod2.
8684 ($(objpfx)tst-_res1mod2.so): Depend on $(objpfx)tst-_res1mod1.so.
8685 ($(objpfx)tst-_res1): Depend on $(objpfx)tst-_res1mod2.so and
8687 * tst-_res1.c: New file.
8688 * tst-_res1mod1.c: New file.
8689 * tst-_res1mod2.c: New file.
8691 2003-07-21 Ulrich Drepper <drepper@redhat.com>
8693 * sysdeps/pthread/createthread.c: Don't define CLONE_STOPPED.
8695 * Makefile: Define various *-no-z-defs variables for test DSOs
8696 which has undefined symbols.
8698 2003-07-21 Steven Munroe <sjmunroe@us.ibm.com>
8700 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
8701 Retry if the stwcx fails to store once_control.
8703 2003-07-20 Ulrich Drepper <drepper@redhat.com>
8705 * Makefile (libpthread-routines): Add pthread_attr_getaffinity and
8706 pthread_attr_setaffinity.
8707 * Versions [libpthread] (GLIBC_2.3.3): Likewise.
8708 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
8709 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
8710 * pthread_attr_destroy.c: Free cpuset element if allocated.
8711 * pthread_create.c: Pass iattr as additional parameter to
8713 * sysdeps/pthread/createthread.c: If attribute is provided and
8714 a new thread is created with affinity set or scheduling parameters,
8715 start thread with CLONE_STOPPED.
8716 * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
8717 pthread_attr_setaffinity.
8718 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
8721 2003-07-15 Ulrich Drepper <drepper@redhat.com>
8723 * tst-tcancel-wrappers.sh: lseek and llseek are not cancelation points.
8725 2003-07-14 Ulrich Drepper <drepper@redhat.com>
8727 * sysdeps/pthread/configure.in: Require CFI directives also for
8730 2003-07-15 Jakub Jelinek <jakub@redhat.com>
8732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
8735 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8737 * sysdeps/sh/tcb-offsets.sym: Add RESULT, TID, CANCELHANDLING and
8739 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use more
8740 registers as variables. Call __pthread_mutex_unlock_usercnt.
8741 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
8742 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Store TID
8743 not self pointer in __writer. Compare with TID to determine
8745 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
8746 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
8748 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
8750 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add cancellation support.
8751 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
8752 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Define all the nice
8753 macros also when compiling librt.
8755 2003-07-11 Jakub Jelinek <jakub@redhat.com>
8757 * Makefile (CFLAGS-pthread_once.c): Add -fexceptions
8758 -fasynchronous-unwind-tables.
8759 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
8760 (PSEUDO): Add cfi directives.
8761 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO):
8763 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
8766 2003-07-08 Jakub Jelinek <jakub@redhat.com>
8768 * pthreadP.h (__pthread_unwind_next, __pthread_register_cancel,
8769 __pthread_unregister_cancel): Add prototypes and hidden_proto.
8770 * unwind.c (__pthread_unwind_next): Add hidden_def.
8771 * cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel):
8773 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
8774 Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
8775 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
8777 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
8778 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
8780 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use
8781 HIDDEN_JUMPTARGET to call __pthread_register_cancel,
8782 __pthread_unregister_cancel and __pthread_unwind_next.
8784 2003-07-04 Jakub Jelinek <jakub@redhat.com>
8786 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Use
8787 different symbol for the cancellation syscall wrapper and
8788 non-cancellation syscall wrapper.
8789 (PSEUDO_END): Define.
8791 2003-07-05 Richard Henderson <rth@redhat.com>
8793 * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end.
8794 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_wait,
8795 lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
8796 return actual return value from the syscall, not 0.
8798 2003-07-07 Ulrich Drepper <drepper@redhat.com>
8800 * descr.h (struct pthread): Add pid field.
8801 * allocatestack.c (allocate_stack): Initialize pid field in descriptor.
8802 (__reclaim_stacks): Likewise.
8803 * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined
8804 also check for PID of the signal source.
8805 (__pthread_initialize_minimal_internal): Also initialize pid field
8806 of initial thread's descriptor.
8807 * pthread_cancel.c: Use tgkill instead of tkill if possible.
8808 * sysdeps/unix/sysv/linux/fork.c: Likewise.
8809 * sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
8810 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
8811 * sysdeps/unix/sysv/linux/raise.c: Likewise.
8813 2003-07-05 Ulrich Drepper <drepper@redhat.com>
8815 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed.
8816 Fix use of parameter.
8817 (__libc_cleanup_pop): Likewise.
8819 2003-07-04 Ulrich Drepper <drepper@redhat.com>
8821 * init.c (sigcancel_handler): Change parameters to match handler
8822 for SA_SIGACTION. Check signal number and code to recognize
8823 invalid invocations.
8825 2003-07-03 Roland McGrath <roland@redhat.com>
8827 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr):
8828 Apply sizeof (struct pthread) bias to r13 value.
8830 2003-07-03 Ulrich Drepper <drepper@redhat.com>
8832 * sysdeps/pthread/configure.in: Require CFI directives.
8834 * sysdeps/pthread/librt-cancellation.c (__pthread_unwind): Remove
8836 * pthreadP.h (__pthread_unwind): Add hidden_proto if used in
8837 libpthread compilation.
8838 * unwind.c (__pthread_unwind): Add hidden_def.
8839 * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_unwind.
8841 2003-07-01 Ulrich Drepper <drepper@redhat.com>
8843 * libc-cancellation.c (__libc_cleanup_routine): Define.
8844 * sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define.
8845 (__pthread_cleanup_pop): Define.
8847 2003-07-01 Richard Henderson <rth@redhat.com>
8849 * sysdeps/alpha/elf/pt-initfini.c: New file.
8850 * sysdeps/alpha/pthread_spin_lock.S: New file.
8851 * sysdeps/alpha/pthread_spin_trylock.S: New file.
8852 * sysdeps/alpha/pthreaddef.h: New file.
8853 * sysdeps/alpha/td_ta_map_lwp2thr.c: New file.
8854 * sysdeps/alpha/tls.h: New file.
8855 * sysdeps/unix/sysv/linux/alpha/Makefile: New file.
8856 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: New file.
8857 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: New file.
8858 * sysdeps/unix/sysv/linux/alpha/createthread.c: New file.
8859 * sysdeps/unix/sysv/linux/alpha/fork.c: New file.
8860 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: New file.
8861 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
8862 * sysdeps/unix/sysv/linux/alpha/pthread_once.c: New file.
8863 * sysdeps/unix/sysv/linux/alpha/sem_post.c: New file.
8864 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: New file.
8866 2003-07-01 Ulrich Drepper <drepper@redhat.com>
8868 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Add correct
8869 cleanup support and unwind info.
8871 2003-06-30 Ulrich Drepper <drepper@redhat.com>
8873 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
8874 Use correct cleanup handler registration. Add unwind info.
8875 * sysdeps/unix/sysv/linux/unwindbuf.sym: New file.
8876 * sysdeps/unix/sysv/linux/Makefile: Add rule to build unwindbuf.h.
8877 * tst-once3.c: Add cleanup handler and check it is called.
8878 * tst-once4.c: Likewise.
8879 * tst-oncex3.c: New file.
8880 * tst-oncex4.c: New file.
8881 * Makefile: Add rules to build and run tst-oncex3 and tst-oncex4.
8883 2003-06-29 Ulrich Drepper <drepper@redhat.com>
8885 * sysdeps/pthread/configure.in: Check for C cleanup handling in gcc.
8887 2003-06-27 Ulrich Drepper <drepper@redhat.com>
8889 * tst-cancel4.c (tf_msgrcv): Use IPC_PRIVATE in msgget call.
8890 (tf_msgsnd): Likewise.
8892 * tst-cancel4.c (tf_msgrcv): Strengthen test against valid
8893 premature returns a bit more.
8895 2003-06-26 Ulrich Drepper <drepper@redhat.com>
8897 * sysdeps/pthread/librt-cancellation.c: Move __pthread_unwind
8898 definition to the front.
8900 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rename
8901 the cleanup functions to make the names unique. Fix dwarf opcode
8903 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Rename cleanup
8904 functions to make the names unique. Fix CFA offset for two blocks.
8906 2003-06-25 Ulrich Drepper <drepper@redhat.com>
8908 * sysdeps/pthread/pthread.h (class __pthread_cleanup_class): Add
8909 missing closing braces.
8910 Patch by Christophe Saout <christophe@saout.de>.
8912 2003-06-24 Roland McGrath <roland@redhat.com>
8914 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Typo fix.
8916 2003-06-24 Ulrich Drepper <drepper@redhat.com>
8918 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: New file.
8919 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: New file.
8921 * pthreadP.h: Declare __find_thread_by_id.
8922 * allocatestack.c [HP_TIMING_AVAIL]: Define __find_thread_by_id.
8923 * pthread_clock_gettime.c: Allow using other thread's clock.
8924 * pthread_clock_settime.c: Likewise.
8925 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
8926 * Makefile: Add rules to build and run tst-clock2.
8927 * tst-clock2.c: New file.
8929 2003-06-23 Ulrich Drepper <drepper@redhat.com>
8931 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rewrite
8932 to use exception-based cleanup handler.
8933 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8935 * tst-cond8.c (ch): Announce that we are done.
8937 * pthreadP.h (__pthread_mutex_cond_lock): Mark with internal_function.
8939 * tst-cancel17.c (tf): Retry aio_suspend in case of EINTR.
8940 Also test aio_suspend with timeout value.
8942 2003-06-22 Ulrich Drepper <drepper@redhat.com>
8944 * pthreadP.h: Mark __pthread_mutex_unlock_usercnt also hidden.
8945 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Add
8948 * pthreadP.h (__pthread_mutex_init_internal): Mark hidden.
8949 (__pthread_mutex_lock_internal): Likewise.
8950 (__pthread_mutex_unlock_internal): Likewise.
8951 (__pthread_mutex_unlock_usercnt): Declare.
8952 * pthread_mutex_destroy.c: Always fail if used in any way.
8953 * pthread_mutex_init.c: Update comment.
8954 * pthread_mutex_lock.c: If NO_INCR is not defined adjust __nusers.
8955 * pthread_mutex_timedlock.c: Adjust __nusers.
8956 * pthread_mutex_trylock.c: Adjust __nusers.
8957 * pthread_mutex_unlock.c: Old code is in __pthread_mutex_unlock_usercnt
8958 and public interfaces are wrapper with pass additional parameter.
8959 __pthread_mutex_unlock_usercnt does not adjust __nusers if second
8961 * tst-mutex8.c: New file.
8962 * Makefile (tests): Add tst-mutex8.
8963 * sysdeps/pthread/pthread_cond_timedwait.c: Call
8964 __pthread_mutex_unlock_usercnt.
8965 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
8966 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8967 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8968 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8969 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8970 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Define NO_INCR.
8971 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
8973 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8974 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8975 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8976 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
8977 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8979 * pthread_mutex_lock.c: Don't store THREAD_ID in __owner, use TID.
8980 * pthread_mutex_timedlock.c: Likewise.
8981 * pthread_mutex_trylock.c: Adjust __nusers.
8982 * pthread_mutex_unlock.c: Compare with TID not THREAD_ID.
8983 * tst-mutex9.c: New file.
8984 * Makefile (tests): Add tst-mutex9.
8985 * sysdeps/i386/tls.h: Remove THREAD_ID definition.
8986 * sysdeps/ia64/tls.h: Likewise.
8987 * sysdeps/powerpc/tls.h: Likewise.
8988 * sysdeps/s390/tls.h: Likewise.
8989 * sysdeps/sh/tls.h: Likewise.
8990 * sysdeps/x86_64/tls.h: Likewise.
8991 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
8992 Change type of __owner.
8993 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8994 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8995 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8996 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
8997 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8999 2003-06-19 Jakub Jelinek <jakub@redhat.com>
9001 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Move to...
9002 * sysdeps/unix/sysv/linux/sem_post.c: ...here.
9004 * sysdeps/unix/sysv/linux/sem_post.c: Move to...
9005 * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here. Pass nr + 1
9006 instead of nr to lll_futex_wake. Only set errno and return -1
9009 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_wait,
9010 lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
9011 return actual return value from the syscall, not 0.
9013 2003-06-18 Ulrich Drepper <drepper@redhat.com>
9015 * tst-cancel4.c (tf_msgsnd): Don't always use 100 as the type,
9016 find a random value.
9017 (tf_msgrcv): Likewise. Also don't report msgrcv returns if
9020 * sysdeps/unix/sysv/linux/timer_settime.c: Add prototype for
9021 compat_timer_settime.
9022 * sysdeps/unix/sysv/linux/timer_gettime.c: Add prototype for
9023 compat_timer_gettime.
9024 * sysdeps/unix/sysv/linux/timer_getoverr.c: Add prototype for
9025 compat_timer_getoverrun.
9026 * sysdeps/unix/sysv/linux/timer_delete.c: Add prototype for
9027 compat_timer_delete.
9029 * pthread_mutex_destroy.c (__pthread_mutex_destroy): For
9030 error-checking mutex detect busy mutexes.
9032 2003-06-17 Ulrich Drepper <drepper@redhat.com>
9034 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_mutex_lock):
9035 Add ax to clobber list.
9036 (lll_mutex_cond_lock): Likewise.
9037 (lll_mutex_unlock): Likewise.
9038 (lll_lock): Likewise.
9039 (lll_unlock): Likewise.
9041 * Makefile: Add rules to build and run tst-cancel18 and tst-cancelx18.
9042 * tst-cancel18.c: New file.
9043 * tst-cancelx18.c: New file.
9045 * tst-cancel4.c: Test connect, creat, msgrcv, msgsnd, sendmsg, sendto,
9048 * Makefile: Add rules to build and run tst-cancel17 and tst-cancel17x.
9049 * tst-cancel17.c: New file.
9050 * tst-cancelx17.c: New file.
9052 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
9053 * sysdeps/unix/sysv/linux/sigwait.c: New file.
9054 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
9056 * tst-cancel4.c: Test open, close, pread, pwrite, fsync, and msync.
9058 2003-06-16 Jakub Jelinek <jakub@redhat.com>
9060 * sysdeps/pthread/createthread.c (create_thread): Set
9061 header.multiple_threads unconditionally.
9062 * allocatestack.c (allocate_stack): Likewise.
9063 * descr.h (struct pthread): Add header.multiple_threads
9065 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (CENABLE, CDISABLE):
9066 Define for librt. #error if neither libpthread, libc nor librt.
9067 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (CENABLE, CDISABLE):
9069 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (CENABLE,
9070 CDISABLE): Likewise.
9071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (CENABLE,
9072 CDISABLE): Likewise.
9073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (CENABLE,
9074 CDISABLE): Likewise.
9075 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (CENABLE,
9076 CDISABLE): Likewise. Access header.multiple_threads outside of
9077 libc and libpthread.
9078 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (CENABLE, CDISABLE):
9080 * sysdeps/x86_64/tls.h (tcbhead_t): Add multiple_threads.
9081 * sysdeps/x86_64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define.
9083 2003-06-17 Ulrich Drepper <drepper@redhat.com>
9085 * tst-cancel4.c: Add tests for the socket and signal functions, pause.
9086 Also test early cancellation before the thread reaches the cancellation
9089 * Makefile: Compile forward.c with exceptions.
9091 * sysdeps/unix/sysv/linux/sleep.c: New file.
9093 2003-06-16 Ulrich Drepper <drepper@redhat.com>
9095 * Makefile: Add CFLAGS definition to compile function wrappers
9096 duplicated from libc with exceptions.
9097 * tst-cancel4.c: Also check cancellation handlers.
9099 * Makefile: Add rules to build and run tst-cancel16 and
9100 tst-cancelx16. Add missing CFLAGS definitions.
9101 * tst-cancel16.c: New file.
9102 * tst-cancelx16.c: New file.
9104 2003-06-15 Ulrich Drepper <drepper@redhat.com>
9106 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
9107 (DL_SYSINFO_IMPLEMENTATION): Use CFI opcodes.
9108 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
9109 (DL_SYSINFO_IMPLEMENTATION): Likewise.
9111 * pthreadP.h (LIBC_CANCEL_ASYNC): Also define for librt.
9112 (LIBC_CANCEL_RESET): Likewise.
9113 Declare __librt_enable_asynccancel and __librt_disable_asynccancel.
9114 * sysdeps/pthread/Makefile (librt-sysdep_routines): Add
9116 (CFLAGS-libcrt-cancellation.c): Define.
9117 * sysdeps/pthread/librt-cancellation.c: New file.
9118 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define all the nice
9119 macros also when compiling librt.
9120 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
9121 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
9122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
9123 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
9124 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
9125 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
9126 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
9128 * sysdeps/unix/sysv/linux/timer_create.c: Add prototype for
9129 compat_timer_create.
9131 2003-06-14 Ulrich Drepper <drepper@redhat.com>
9133 * sysdeps/pthread/posix-timer.h (timespec_compare): Always inline.
9135 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
9137 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
9138 Add libc_hidden_def.
9140 2003-06-13 Roland McGrath <roland@redhat.com>
9142 * sysdeps/x86_64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Pass FS
9143 constant from <sys/reg.h> to ps_get_thread_area, not register contents.
9145 2003-06-11 Ulrich Drepper <drepper@redhat.com>
9147 * allocatestack.c (queue_stack): Always inline.
9148 * ptreadhP.h (__do_cancel): Likewise.
9150 2003-06-10 Jakub Jelinek <jakub@redhat.com>
9152 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): Fix
9155 2003-06-10 Ulrich Drepper <drepper@redhat.com>
9157 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
9158 (__pthread_cond_signal): Remove incorrect second addition for
9161 2003-06-09 Ulrich Drepper <drepper@redhat.com>
9163 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
9164 (__pthread_cond_signal): Use correct futex pointer in
9165 __lll_mutex_lock_wait call.
9167 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
9168 (__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.
9170 2003-06-08 Ulrich Drepper <drepper@redhat.com>
9172 * sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make
9174 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
9177 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Remove
9178 hand-written CFI generation code. Since ENTRY/END also initiated
9179 CFI frames this caused two CFI sets to be generated.
9181 2003-06-07 Ulrich Drepper <drepper@redhat.com>
9183 * cleanup_routine.c: New file.
9184 * Versions (libpthread) [GLIBC_2.3.3]: Add __pthread_cleanup_routine.
9185 * sysdeps/pthread/pthread.h: Add support for fully exception-based
9187 * Makefile (libpthread-routines): Add cleanup_routine.
9188 Add more CFLAGS variables to compile with exceptions. Add comments
9189 why which file needs unwind tables.
9190 (tests) [have-forced-unwind==yes]: Add tst-cancelx* and tst-cleanupx*
9192 * tst-cancelx1.c: New file.
9193 * tst-cancelx2.c: New file.
9194 * tst-cancelx3.c: New file.
9195 * tst-cancelx4.c: New file.
9196 * tst-cancelx5.c: New file.
9197 * tst-cancelx6.c: New file.
9198 * tst-cancelx7.c: New file.
9199 * tst-cancelx8.c: New file.
9200 * tst-cancelx9.c: New file.
9201 * tst-cancelx10.c: New file.
9202 * tst-cancelx11.c: New file.
9203 * tst-cancelx12.c: New file.
9204 * tst-cancelx13.c: New file.
9205 * tst-cancelx14.c: New file.
9206 * tst-cancelx15.c: New file.
9207 * tst-cleanupx0.c: New file.
9208 * tst-cleanupx0.expect: New file.
9209 * tst-cleanupx1.c: New file.
9210 * tst-cleanupx2.c: New file.
9211 * tst-cleanupx3.c: New file.
9213 * tst-cleanup0.c: Make standard compliant.
9214 * tst-cleanup1.c: Likewise.
9216 * sysdeps/unix/sysv/linux/sem_timedwait.c: Add cancellation support.
9217 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
9218 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
9219 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
9220 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
9221 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
9222 * sysdeps/i386/tcb-offsets.sym: Add RESULT, CANCELHANDLING, and
9224 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
9225 * tst-cancel12.c: New file.
9226 * tst-cancel13.c: New file.
9227 * tst-cancel14.c: New file.
9228 * tst-cancel15.c: New file.
9229 * Makefile (tests): Add tst-cancel12, tst-cancel13, tst-cancel14,
9232 * tst-cancel1.c: Add some comments.
9234 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Compute relative
9237 2003-06-06 Ulrich Drepper <drepper@redhat.com>
9239 * Makefile (CFLAGS-pthread_cancel.c): Define.
9241 2003-06-05 Ulrich Drepper <drepper@redhat.com>
9243 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_rwlock_t):
9244 Change type of __writer element to int.
9245 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9246 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
9247 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
9248 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
9249 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
9250 * sysdeps/i386/tcb-offsets.sym: Replace SELF entry with TID entry.
9251 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
9252 * pthread_rwlock_trywrlock.c: Store TID not self pointer in __writer.
9253 Compare with TID to determine deadlocks.
9254 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
9255 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
9256 * sysdeps/pthread/pthread_rwlock_timedwrlock.: Likewise.
9257 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
9258 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
9259 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
9261 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
9263 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
9264 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
9265 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
9267 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
9269 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
9270 * Makefile (tests): Add tst-rwlock12.
9271 * tst-rwlock12.c: New file.
9273 2003-06-05 Jakub Jelinek <jakub@redhat.com>
9275 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait,
9276 __lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid):
9277 Remove bogus hidden_proto.
9278 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
9280 * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock,
9281 lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise.
9282 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock,
9283 ___lll_mutex_timedlock): Likewise.
9285 2003-06-04 Ulrich Drepper <drepper@redhat.com>
9287 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
9288 (__pthread_cond_signal): Add some code to eventually handle
9291 2003-06-01 Ulrich Drepper <drepper@redhat.com>
9293 * Makefile (tests): Add tst-exec4.
9294 (tst-exec4-ARGS): Define.
9295 * tst-exec4.c: New file.
9297 2003-05-31 Ulrich Drepper <drepper@redhat.com>
9299 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
9300 Also fail if tv_nsec < 0.
9301 (__lll_timedwait_tid): Likewise.
9302 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
9303 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_timedwait_tid):
9305 * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_timedwait_tid):
9307 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (__lll_mutex_timedlock):
9309 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
9311 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_timedwait_tid):
9313 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_timedwait_tid):
9316 * Makefile (tests): Add tst-sem8 and tst-sem9.
9317 * tst-sem8.c: New file.
9318 * tst-sem9.c: New file.
9319 * sem_open.c: Fix creation of in_use record if the file exists but
9322 * posix-timer.h: Remove old, unused timer_id2ptr and timer_ptr2id
9325 * sysdeps/pthread/timer_create.c (timer_create): In case
9326 evp==NULL, assign timer ID to sival_ptr.
9328 * descr.h (struct pthread_unwind_buf): Change type of prev element to
9329 struct pthread_unwind_buf *.
9330 (struct pthread): Likewise for cleanup_jmp_buf element.
9332 * cleanup.c (__pthread_register_cancel): Add cast to avoid warning.
9333 * cleanup_defer.c (__pthread_register_cancel_defer): Likewise.
9334 * unwind.c (__pthread_unwind_next): Likewise.
9336 2003-05-30 Ulrich Drepper <drepper@redhat.com>
9338 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
9339 (lll_futex_timed_wait): Use int for futex value parameter.
9340 (lll_futex_wake): Likewise.
9341 (lll_futex_requeue): Likewise.
9343 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
9344 Replace one memory operation with one register operation.
9346 * tst-join4.c (do_test): Fix error message.
9348 * tst-rwlock6.c (do_test): Use correct format specifier.
9350 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
9351 (__lll_mutex_lock_wait): Replace one memory operation with one
9353 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S
9354 (__lll_mutex_lock_wait): Likewise.
9356 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
9357 (__lll_mutex_cond_lock): Add one to value parameter of
9358 __lll_lock_wait to reflect reality in the futex syscall.
9359 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9360 (lll_mutex_cond_lock): Likewise.
9362 2003-05-30 Jakub Jelinek <jakub@redhat.com>
9364 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_cond_lock):
9366 (lll_mutex_cond_lock): Define.
9368 2003-05-29 Ulrich Drepper <drepper@redhat.com>
9370 * Makefile (tests): Add tst-signal6.
9371 * tst-signal6.c: New file.
9373 * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9374 (__lll_mutex_unlock_force): New function
9375 (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
9377 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
9378 (__lll_mutex_unlock_force): New function.
9379 (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
9381 * tst-rwlock7.c (do_test): Use correct format specifier.
9383 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
9384 Find break parameter in correct asm argument.
9386 2003-05-27 Jakub Jelinek <jakub@redhat.com>
9388 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_clobbers):
9390 (lll_futex_requeue): Fix __o3 constraint, return negative errno if
9392 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
9394 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_REQUEUE,
9395 lll_futex_requeue, lll_mutex_unlock_force): Define.
9397 2003-05-30 Jakub Jelinek <jakub@redhat.com>
9399 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9400 (pthread_cond_t): Add __mutex.
9401 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_REQUEUE,
9402 lll_futex_requeue, lll_mutex_unlock_force): Define.
9404 2003-05-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9406 * sysdeps/sh/tcb-offsets.sym: Define MUTEX_FUTEX.
9407 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
9409 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (SYSCALL_WITH_INST_PAD):
9411 (lll_futex_wait, lll_futex_wake): Define.
9412 * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: New file.
9413 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Try using
9414 FUTEX_REQUEUE instead of FUTEX_WAIT.
9415 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
9416 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Remember
9417 mutex which was used in condvar structure. Call
9418 __pthread_mutex_cond_lock instead of __pthread_mutex_lock_internal.
9419 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
9421 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Don't
9422 include tcb-offsets.h. Read wakeup value in locked region.
9423 Use the value of gbr register as THREAD_ID.
9424 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
9425 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
9426 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
9428 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove futex related
9431 2003-05-28 Ulrich Drepper <drepper@redhat.com>
9433 * sysdeps/pthread/pthread_cond_broadcast.c
9434 (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX.
9436 2003-05-26 Ulrich Drepper <drepper@redhat.com>
9438 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix
9439 typo in register name.
9440 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use parameters
9441 correctly. Actually use requeue. Little optimization.
9442 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Store
9443 mutex address early. Handle cancellation state as 32-bit value.
9444 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
9445 Remove unnecessary label.
9447 2003-05-25 Ulrich Drepper <drepper@redhat.com>
9449 * sysdeps/pthread/pthread_cond_broadcast.c: Try using FUTEX_REQUEUE
9450 instead of FUTEX_WAIT.
9451 * sysdeps/pthread/pthread_cond_signal.c: Likewise.
9452 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
9453 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
9454 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
9455 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
9456 * sysdeps/pthread/pthread_cond_timedwait.c: Remember mutex which was
9457 used in condvar structure. Call __pthread_mutex_cond_lock instead
9458 of __pthread_mutex_lock_internal.
9459 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9460 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9461 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
9462 (__condvar_cleanup): Always call __pthread_mutex_cond_lock.
9463 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9464 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
9465 * sysdeps/unix/sysv/linux/Makefile (libpthread-sysdep_routines):
9466 Add pthread_mutex_cond_lock.
9467 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add dep_mutex.
9468 * sysdeps/unix/sysv/linux/pthread_cond_mutex_lock.c: New file.
9469 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define
9470 lll_mutex_cond_lock.
9471 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
9472 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
9473 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
9475 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9476 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
9478 * sysdeps/i386/tcb-offsets.sym: Define MUTEX_FUTEX.
9479 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
9481 * pthreadP.h: Declare __pthread_mutex_cond_lock.
9482 * pthread_mutex_lock.c: Define LLL_MUTEX_LOCK if not already defined.
9483 Use it instead of lll_mutex_lock. If __pthread_mutex_lock is a
9484 macro don't define aliases.
9486 * cancellation.c: Remove __pthread_enable_asynccancel_2.
9487 * pthreadP.h: Remove declaration of __pthread_enable_asynccancel_2.
9488 * sysdeps/pthread/pthread_cond_timedwait.c: Use
9489 __pthread_enable_asynccancel instead of __pthread_enable_asynccancel_2.
9490 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9491 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9492 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
9493 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9494 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
9496 2003-05-17 Ulrich Drepper <drepper@redhat.com>
9498 * sem_open.c: Fix one endless loop. Implement correct semantics
9499 wrt opening the same semaphore more then once.
9500 * sem_close.c: Adjust for sem_open change.
9501 * semaphoreP.h: Include <semaphore.h>. Define struct inuse_sem.
9502 Declare __sem_mappings, __sem_mappings_lock, __sem_search.
9503 * Makefile (tests): Add tst-sem7.
9504 * tst-sem7.c: New file.
9506 2003-05-16 Roland McGrath <roland@redhat.com>
9508 * sysdeps/unix/sysv/linux/register-atfork.c (libc_freeres_fn): Fix
9509 uninitialized variable braino.
9511 2003-05-16 Ulrich Drepper <drepper@redhat.com>
9513 * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Correct
9514 test for syscall availability.
9516 * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime): Set
9517 __no_posix_timers to -1 if the syscalls don't exist.
9519 * pthread_join.c (pthread_join): Set tid field of the joined
9520 thread to -1. This isn't necessary but helps to recognize some
9521 error conditions with almost no cost.
9523 * allocatestack.c (FREE_P): Also negative values indicate an
9526 * unwind.c: Include <unistd.h>.
9528 2003-05-14 Ulrich Drepper <drepper@redhat.com>
9530 * Makefile ($(objpfx)$(multidir)): Add rule to create the directory.
9532 2003-05-14 Jakub Jelinek <jakub@redhat.com>
9534 * Makefile (crti-objs, crtn-objs): New variables.
9535 (omit-deps, extra-objs): Add crtn.
9536 ($(objpfx)libpthread.so): Depend on both crti and crtn
9537 and links to them in multidir.
9538 ($(objpfx)crtn.S, $(objpfx)crtn.o): New rules.
9540 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
9542 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9543 (lll_mutex_unlock): Use atomic_exchange_rel.
9545 2003-05-11 Ulrich Drepper <drepper@redhat.com>
9547 * cond-perf.c (cons): Add missing locking around setting of alldone.
9549 2003-05-10 Ulrich Drepper <drepper@redhat.com>
9551 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove futex
9553 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
9555 2003-05-09 Ulrich Drepper <drepper@redhat.com>
9557 * tst-sem6.c: New file.
9558 * Makefile (tests): Add tst-sem6.
9560 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (___lll_mutex_unlock):
9561 Use atomic_exchange_rel instead of atomic_exchange.
9562 * sysdeps/unix/sysv/linux/lowlevellock.c (lll_unlock_wake_cb):
9565 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Improve quality of
9566 code for lll_futex_wait and lll_futex_wake in static apps. Use
9567 vsyscall is possible.
9569 * sysdeps/unix/sysv/linux/pthread_getaffinity.c: New file.
9570 * sysdeps/unix/sysv/linux/pthread_setaffinity.c: New file.
9571 * sysdeps/pthread/pthread.h: Declare pthread_getaffinity_np and
9572 pthread_setaffinity_np.
9573 * Versions [libpthread] (GLIBC_2.3.3): Add pthread_getaffinity_np
9574 and pthread_setaffinity_np.
9575 * Makefile (libpthread-routines): Add pthread_getaffinity and
9576 pthread_setaffinity.
9578 * allocatestack.c (allocate_stack): If ARCH_RETRY_MMAP is defined,
9579 use it in case mmap to allocate the stack fails.
9580 * sysdeps/unix/sysv/linux/x86_64/Makefile: Don't define
9581 ARCH_MAP_FLAGS here.
9582 * sysdeps/x86_64/pthreaddef.h: Define ARCH_MAP_FLAGS and
9585 2003-05-08 Ulrich Drepper <drepper@redhat.com>
9587 * sysdeps/unix/sysv/linux/fork.c: Complete rewrite of the atfork
9588 handler implementation. It is now lockless in fork().
9589 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
9590 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
9591 * sysdeps/unix/sysv/linux/fork.h: Don't include <link.h>. Don't
9592 declare the __fork_*_lists.
9593 (struct fork_handler): Include pointers to all three functions.
9594 Add next, refcntr and need_signal elements.
9595 (__fork_handlers): New declaration.
9596 (__register_atfork_malloc): Remove declaration.
9597 (HAVE_register_atfork_malloc): Remove definition.
9598 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove
9599 __pthread_child_handler variable.
9600 (__libc_pthread_init): Use __register_atfork instead of explicitly
9602 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define lll_futex_wait
9604 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
9606 * unwind.c (unwind_cleanup): Print error message and then abort. This
9607 function must never be reached.
9609 * cond-perf.c: New file.
9611 2003-05-05 Ulrich Drepper <drepper@redhat.com>
9613 * sysdeps/i386/tls.h (TLS_INIT_TP): Include \n in error message.
9615 2003-05-04 Roland McGrath <roland@redhat.com>
9617 * Makefile ($(objpfx)../libc.so): New target.
9619 2003-05-02 Ulrich Drepper <drepper@redhat.com>
9621 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9622 (pthread_condattr_t): Size is only an int, don't use long for
9624 (pthread_mutexattr_t): Likewise.
9625 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9626 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
9627 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
9629 2003-05-01 Ulrich Drepper <drepper@redhat.com>
9631 * sysdeps/i386/tls.h: Define THREAD_ID.
9632 * sysdeps/ia64/tls.h: Likewise.
9633 * sysdeps/powerpc/tls.h: Likewise.
9634 * sysdeps/s390/tls.h: Likewise.
9635 * sysdeps/sh/tls.h: Likewise.
9636 * sysdeps/x86_64/tls.h: Likewise.
9637 * pthread_mutex_lock.c: Use THREAD_ID instead of THREAD_SELF to
9639 * pthread_mutex_timedlock.c: Likewise.
9640 * pthread_mutex_trylock.c: Likewise.
9641 * pthread_mutex_unlock.c: Likewise.
9642 * pthread_rwlock_trywrlock.c: Likewise.
9643 * sysdeps/pthread/pthread_rwlocklock_rdlock.c: Likewise.
9644 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
9645 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
9646 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
9648 * sysdeps/pthread/createthread.c (create_thread): Use CLONE_SYSVSEM
9651 2003-04-29 Jakub Jelinek <jakub@redhat.com>
9653 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
9654 (__SIZEOF_PTHREAD_COND_T): Define to 48.
9655 (pthread_rwlock_t): Add 16 bytes of pad instead of 8 before __flags.
9656 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
9657 Make __align long long instead of long.
9658 (pthread_rwlock_t): Formatting.
9659 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
9660 (pthread_rwlock_t): Formatting.
9661 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9662 (pthread_cond_t): Make __align long long instead of long.
9663 (pthread_rwlock_t): Move __flags field to the same position as in
9666 2003-04-30 Ulrich Drepper <drepper@redhat.com>
9668 * tst-rwlock6.c (do_test): Use correct printf format specifiers.
9669 * tst-rwlock7.c (do_test): Likewise.
9671 2003-04-26 Roland McGrath <roland@redhat.com>
9673 * Makefile ($(test-modules)): Depend on $(common-objpfx)shlib.lds.
9675 2003-04-22 Jakub Jelinek <jakub@redhat.com>
9677 * allocatestack.c (TLS_TPADJ): Add TLS_PRE_TCB_SIZE instead of
9678 sizeof (struct pthread).
9679 (allocate_stack): Subtract TLS_PRE_TCB_SIZE bytes instead of
9681 * sysdeps/powerpc/tls.h (TLS_INIT_TCB_SIZE, TLS_TCB_SIZE): Define
9683 (TLS_INIT_TCB_ALIGN, TLS_TCB_ALIGN): Define to alignment of
9685 (TLS_PRE_TCB_SIZE): Increase to cover tcbhead_t preceeded by pad
9687 (INSTALL_DTV, GET_DTV, THREAD_DTV): tcbhead_t is immediately before
9689 (TLS_INIT_TP, THREAD_SELF, INIT_THREAD_SELF): Don't add TLS_TCB_SIZE
9691 (NO_TLS_OFFSET): Define.
9692 * sysdeps/unix/sysv/linux/powerpc/createthread.c (TLS_VALUE): Don't
9693 add TLS_TCB_SIZE unnecessarily.
9695 2003-04-22 Roland McGrath <roland@redhat.com>
9697 * Makeconfig (shared-thread-library): Reverse link order to work
9700 2003-04-22 Ulrich Drepper <drepper@redhat.com>
9702 * semaphore.h: Fix typo in comment.
9704 2003-04-21 Ulrich Drepper <drepper@redhat.com>
9706 * sysdeps/pthread/sigfillset.c: New file.
9708 * init.c (__pthread_initialize_minimal): Don't block SIGTIMER.
9709 * pthreadP.h: Make SIGTIMER and SIGCANCEL the same.
9710 * sysdeps/pthread/pthread_sigmask.c: Remove handling of SIGTIMER.
9711 * sysdeps/pthread/sigaction.c: Likewise.
9712 * sysdeps/pthread/sigprocmask.c: New file.
9713 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): Define as
9715 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
9716 Block SIGTIMER. Also handle SI_TKILL events and terminate thread
9719 2003-04-19 Ulrich Drepper <drepper@redhat.com>
9721 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
9722 (DL_SYSINFO_IMPLEMENTATION): Add .eh_frame information.
9724 * sysdeps/unix/sysv/linux/unregister-atfork.c
9725 (__unregister_atfork): Don't free memory not allocated dynamically.
9727 * semaphore.h: Remove __THROW marker from cancellation points.
9728 * nptl/sysdeps/pthread/pthread.h: Likewise.
9730 2003-04-18 Ulrich Drepper <drepper@redhat.com>
9732 * sysdeps/pthread/pthread.h: Don't mark pthread_testcancel,
9733 pthread_cancel, pthread_setcancelstate, and pthread_setcanceltype with
9736 2003-04-16 Jakub Jelinek <jakub@redhat.com>
9738 * tst-cancel4.c (do_test): Use %zd instead of %d when printing cnt.
9740 2003-04-15 Roland McGrath <roland@redhat.com>
9742 * forward.c (__pthread_unwind): Tweak to avoid warning.
9744 2003-04-15 Ulrich Drepper <drepper@redhat.com>
9746 * pthreadP.h: Move THREAD_ATOMIC_* replacements to the top.
9748 2003-04-14 Ulrich Drepper <drepper@redhat.com>
9750 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't
9751 overflow CFA advance instructions.
9752 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9754 2003-04-14 Jakub Jelinek <jakub@redhat.com>
9756 * sysdeps/i386/tls.h: Rename LOCK to LOCK_PREFIX.
9757 * sysdeps/i386/pthread_spin_lock.c: Likewise.
9758 * sysdeps/x86_64/tls.h: Likewise. Define LOCK_PREFIX if not already
9761 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Use
9762 DW_CFA_advance_loc2 for .Laddl-.Lsubl.
9763 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
9764 DW_CFA_advance_loc for .Laddl-.Lsubl.
9766 2003-04-13 Ulrich Drepper <drepper@redhat.com>
9768 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Don't use
9769 position-independent unwind data for static libraries.
9770 Add missing unwind info. Add comments.
9772 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Add unwind info.
9773 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9774 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9775 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9777 2003-04-12 Ulrich Drepper <drepper@redhat.com>
9779 * Makefile: Make sure all cancellation points are compiled with
9780 exception and asynchronous unwind tables.
9782 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug
9783 which mishandles loading of global object addresses in PIC.
9784 (THREAD_SETMEM_NC): Likewise.
9786 2003-04-11 Ulrich Drepper <drepper@redhat.com>
9788 * pthread.h: Define new data structure for cleanup buffer. Declare
9789 new cleanup handler interfaces.
9790 * descr.h: Include <unwind.h> if necessary. Define pthread_unwind_buf.
9791 (struct pthread): Add cleanup_jmp_buf pointer. Define
9792 HAVE_CLEANUP_JMP_BUF and not HAVE_CANCELBUF.
9793 * pthreadP.h: Declare __pthread_unwind. Define __do_cancel to use
9794 it. Declare old cleanup handler installation functions.
9795 * cleanup.c: Rewrite. Install handler for unwind-based cleanup
9797 * cleanup_defer.c: Likewise.
9798 * cleanup_compat.c: New file. Old cleanup code.
9799 * cleanup_def_compat.c: New file. Old cleanup code.
9800 * pthread_create.c (start_thread): Initialize cleanup_jmp_buf element
9801 if own thread descriptor.
9802 * unwind.c: New file.
9803 * forward.c: Add __pthread_unwind.
9804 * init.c (pthread_functions): Add __pthread_unwind.
9805 * sysdeps/pthread/pthread-functions.s (struct pthread_functions):
9806 Add ptr___pthread_unwind.
9807 * Versions [GLIBC_2.3.3] (libpthread): Export new cleanup handling
9808 and unwind function.
9809 * Makefile (libpthread-routines): Add cleanup_compat,
9810 cleanup_def_compat, and unwind. Define CFLAGS to enable unwind
9811 table generation if necessary.
9812 * version.c: Record whether unwind support is compiled in.
9813 * sysdeps/pthread/configure.in: Add checks for unwind unterfaces.
9814 * sysdeps/pthread/bits/libc-lock.h: Add prototypes of the old cleanup
9816 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add quite a bit of
9817 complication to generate unwind information for syscall wrappers.
9818 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
9819 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
9820 __cleanup_fct_attribute.
9822 * Makefile: Add rules to build and run tst-cleanup0.
9823 * tst-cleanup0.c: New file.
9824 * tst-cleanup0.expect: New file.
9826 * pthread_create.c (deallocate_tsd): Don't take parameter. Adjust
9827 caller. Optimize to avoid often unecessary local variable.
9829 2003-04-11 Roland McGrath <roland@redhat.com>
9831 * Makefile ($(objpfx)multidir.mk): New target, generated makefile that
9832 sets variable `multidir'; include that.
9833 (generated): Add it.
9834 ($(objpfx)$(multidir)/crti.o): New target.
9835 [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it.
9837 2003-04-11 Ulrich Drepper <drepper@redhat.com>
9839 * tst-attr2.c (do_test): Add cast to avoid warning.
9840 * tst-mutex4.c (do_test): Likewise.
9842 2003-04-10 Ulrich Drepper <drepper@redhat.com>
9844 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset CPU clocks
9847 2003-04-09 Ulrich Drepper <drepper@redhat.com>
9849 * Makefile (tests): Add tst-detach1.
9850 * tst-detach1.c: New file.
9852 2003-04-08 Ulrich Drepper <drepper@redhat.com>
9854 * sysdeps/pthread/pthread.h: Remove duplicate
9855 pthread_cleanup_{push,pop} definitions.
9857 * tst-barrier2.c: Eliminate warnings.
9858 * tst-cancel4.c: Likewise.
9859 * tst-cond4.c: Likewise.
9860 * tst-cond6.c: Likewise.
9861 * tst-detach1.c: Likewise.
9862 * tst-rwlock4.c: Likewise.
9863 * tst-rwlock6.c: Likewise.
9864 * tst-rwlock7.c: Likewise.
9865 * tst-sem3.c: Likewise.
9866 * tst-spin2.c: Likewise.
9867 * tst-umask1.c: Likewise.
9869 2003-04-07 Ulrich Drepper <drepper@redhat.com>
9871 * pthread_detach.c (pthread_detach): Fix test for invalid TID.
9873 2003-04-06 Ulrich Drepper <drepper@redhat.com>
9875 * descr.h (struct pthread): Move cancelhandling member to the front.
9877 2003-04-05 Ulrich Drepper <drepper@redhat.com>
9879 * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare,
9880 malloc_parent, and malloc_child statically.
9881 (__register_atfork_malloc): New function.
9882 (free_mem): Don't free any of the malloc_* variables on the list.
9883 * sysdeps/unix/sysv/linux/fork.h: Declare __register_atfork_malloc.
9884 Define HAVE_register_atfork_malloc.
9886 2003-04-04 Ulrich Drepper <drepper@redhat.com>
9888 * sysdeps/pthread/createthread.c (create_thread): Add some more
9889 comments explaining when to set multiple_threads and when not.
9891 * pthreadP.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
9892 THREAD_ATOMIC_BIT_SET if not already defined.
9893 * sysdeps/i386/tls.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
9894 THREAD_ATOMIC_BIT_SET:
9895 * sysdeps/x86_64/tls.h: Likewise.
9896 * cleanup_defer.c (_pthread_cleanup_push_defer): Rewrite to use
9897 THREAD_ATOMIC_CMPXCHG_VAL.
9898 (_pthread_cleanup_pop_restore): Likewise.
9899 * cancellation.c (__pthread_enable_asynccancel): Likewise.
9900 (__pthread_enable_asynccancel_2): Likewise.
9901 (__pthread_disable_asynccancel): Likewise.
9902 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
9903 (__libc_disable_asynccancel): Likewise.
9904 * init.c (sigcancel_handler): Likewise.
9905 * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise.
9906 * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise.
9908 2003-04-03 Ulrich Drepper <drepper@redhat.com>
9910 * init.c (sigcancel_handler): Don't set EXITING_BIT here.
9911 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
9912 * pthreadP.h (__do_cancel): Set EXITING_BIT here.
9913 * Makefile (tests): Add tst-cancel11.
9914 * tst-cancel11.c: New file.
9916 2003-04-01 Ulrich Drepper <drepper@redhat.com>
9918 * pthread_create.c (deallocate_tsd): Clear/free memory after the last
9919 round, not the first. Use specific_used flag instead of local
9920 found_nonzero variable. Use THREAD_[SG]ETMEM where possible.
9921 (__free_tcb): Don't call deallocate_tsd here.
9922 (start_thread): Call deallocate_tsd here.
9923 * pthread_setspecific.c: Set specific_used flag really only when
9925 * Makefile (tests): Add tst-tsd3.c and tst-tsd4.
9926 * tst-tsd3.c: New file.
9927 * tst-tsd4.c: New file.
9929 2003-03-31 Ulrich Drepper <drepper@redhat.com>
9931 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock):
9932 Use atomic_exchange_and_add instead of __lll_add.
9933 (__lll_mutex_timedlock): Likewise.
9934 Patch by Ian Wienand.
9936 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
9938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
9939 (SINGLE_THREAD_P): Fix typo.
9940 * tst-cancel-wrappers.sh: Handle '.'ed symbols.
9942 2003-03-31 Ulrich Drepper <drepper@redhat.com>
9944 * Makefile (tests): Add tst-align.
9945 * tst-align.c: New file.
9946 * sysdeps/i386/Makefile: Define CFLAGS-tst-align.
9948 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called
9951 * tst-tsd2.c: Add casts to avoid warnings.
9953 2003-03-30 Ulrich Drepper <drepper@redhat.com>
9955 * descr.h (struct pthread): Move most often used elements to the front.
9957 2003-03-29 Ulrich Drepper <drepper@redhat.com>
9959 * Makefile (libpthread-routines): Add pthread_atfork.
9960 (libpthread-static-only-routines): Add pthread_atfork.
9962 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9964 * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
9966 (INSTALL_DTV): Add parens.
9967 (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC):
9968 Use passed descr instead of THREAD_SELF.
9969 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S
9970 (__lll_mutex_timedlock_wait): Correct expected value after
9972 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S:
9973 Release lock before waking up the waiters.
9974 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit
9975 criteria. Reorderstruct passed to cleanup handler. Fix
9976 handling of cancellation and failung pthread_mutex_unlock call.
9977 Use __pthread_enable_asynccancel_2 instead of
9978 __pthread_enable_asynccancel.
9979 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
9980 Return result of lock re-get if it fails.
9981 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument
9982 for __pthread_cleanup_push.
9983 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix
9984 completely broken rwlock implementation.
9985 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
9986 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
9987 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
9988 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
9989 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
9990 * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use
9991 versioned_symbol macro.
9992 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro.
9993 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
9995 2003-03-27 Ulrich Drepper <drepper@redhat.com>
9997 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare
9998 __timer_helper_thread. Declare __start_helper_thread, __helper_once,
10000 (struct timer): Remove th and bar field.
10001 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove
10002 debugging code. Create only one helper thread.
10003 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill
10005 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
10006 Renamed. Define statically. Use thread info from siginfo.
10007 (__helper_once): New variable.
10008 (__helper_tid): New variable.
10009 (__reset_helper_control): New function.
10010 (__start_helper_thread): New function.
10012 * pthread_create.c (start_thread): Don't use setjmp inside
10013 __builtin_expect to work around gcc bug.
10015 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
10016 timer_delete syscall fails, but not with ENOSYS, set
10019 * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
10020 (timer_settime): Fix typo.
10021 * sysdeps/unix/sysv/linux/timer_getoverr.c
10022 [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise.
10024 2003-03-27 Jakub Jelinek <jakub@redhat.com>
10026 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
10027 offset of cleanupbuf.__prev.
10029 2003-03-26 Jakub Jelinek <jakub@redhat.com>
10031 * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
10034 2003-03-26 Ulrich Drepper <drepper@redhat.com>
10036 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP ==
10037 NULL provide default definition to syscall.
10039 2003-03-25 Roland McGrath <roland@redhat.com>
10041 * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
10042 (timer_id2ptr): Fix typo.
10044 2003-03-25 Ulrich Drepper <drepper@redhat.com>
10046 * pthreadP.h: Define SIGCANCEL and SIGTIMER.
10047 * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition.
10048 * sysdeps/ia64/pthreaddef.h: Likewise.
10049 * sysdeps/powerpc/pthreaddef.h: Likewise.
10050 * sysdeps/s390/pthreaddef.h: Likewise.
10051 * sysdeps/sh/pthreaddef.h: Likewise.
10052 * sysdeps/x86_64/pthreaddef.h: Likewise.
10053 * init.c (__pthread_initialize_minimal): Block SIGTIMER.
10054 * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from
10056 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
10057 SIGTIMER is not unblocked.
10058 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more
10060 * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to
10062 * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just
10063 pass pointer through as ID.
10064 * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed.
10065 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file.
10066 * sysdeps/unix/sysv/linux/timer_create.c: New file.
10067 * sysdeps/unix/sysv/linux/timer_delete.c: New file.
10068 * sysdeps/unix/sysv/linux/timer_getoverr.c: New file.
10069 * sysdeps/unix/sysv/linux/timer_gettime.c: New file.
10070 * sysdeps/unix/sysv/linux/timer_routines.c: New file.
10071 * sysdeps/unix/sysv/linux/timer_settime.c: New file.
10072 * sysdeps/unix/sysv/linux/ia64/Versions: New file.
10073 * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file.
10074 * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file.
10075 * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file.
10076 * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file.
10077 * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file.
10078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file.
10079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file.
10080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file.
10081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file.
10082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file.
10083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file.
10084 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
10085 * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file.
10086 * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file.
10087 * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file.
10088 * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file.
10089 * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file.
10090 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
10091 * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file.
10092 * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file.
10093 * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file.
10094 * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file.
10095 * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file.
10096 * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file.
10098 * pthreadP.h: Remove FRAME_LEFT definition.
10099 * cleanup.c (_pthread_cleanup_push): Don't check for reference to
10100 already left frame. Programs which have this problem are not POSIX
10102 * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise.
10104 2003-03-24 Ulrich Drepper <drepper@redhat.com>
10106 * sysdeps/pthread/tst-timer.c: Check return values of the
10109 2003-03-23 Roland McGrath <roland@redhat.com>
10111 * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
10112 * tst-tls3mod.c: Likewise.
10113 * tst-tls1.c: Likewise.
10114 * tst-tls2.c: Likewise.
10116 * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
10117 undefined behavior.
10119 * tst-join5.c (tf1, tf2): Add a cast.
10121 * Makeconfig (includes): Append -I$(..)nptl to this variable.
10123 * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
10124 Don't test anything.
10125 * tst-cond4.c: Likewise.
10126 * tst-cond6.c: Likewise.
10127 * tst-flock2.c: Likewise.
10128 * tst-mutex4.c: Likewise.
10129 * tst-rwlock4.c: Likewise.
10130 * tst-signal1.c: Likewise.
10131 * tst-spin2.c: Likewise.
10132 * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.
10134 * tst-mutex4.c: Use test-skeleton.c.
10135 * tst-spin2.c: Likewise.
10136 * tst-sysconf.c: Likewise.
10137 * tst-barrier2.c: Likewise.
10138 * tst-cond4.c: Likewise.
10139 * tst-cond6.c: Likewise.
10140 * tst-rwlock4.c: Likewise.
10141 * tst-unload.c: Likewise.
10142 * tst-flock2.c (do_test): Use return instead of exit.
10144 2003-03-22 Jakub Jelinek <jakub@redhat.com>
10146 * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
10148 2003-03-21 Ulrich Drepper <drepper@redhat.com>
10150 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
10151 (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq
10152 instead of __lll_compare_and_swap.
10153 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
10155 Removed definition if __lll_compare_and_swap.
10157 * cancellation.c: Adjust for new form of compare&exchange macros.
10158 * cleanup_defer.c: Likewise.
10159 * init.c: Likewise.
10160 * libc-cancellation.c: Likewise.
10161 * old_pthread_cond_broadcast.c: Likewise.
10162 * old_pthread_cond_signal.c: Likewise.
10163 * old_pthread_cond_timedwait.c: Likewise.
10164 * old_pthread_cond_wait.c: Likewise.
10165 * pthread_cancel.c: Likewise.
10166 * pthread_create.c: Likewise.
10167 * pthread_detach.c: Likewise.
10168 * pthread_join.c: Likewise.
10169 * pthread_key_delete.c: Likewise.
10170 * pthread_setcancelstate.c: Likewise.
10171 * pthread_setcanceltype.c: Likewise.
10172 * pthread_timedjoin.c: Likewise.
10173 * pthread_tryjoin.c: Likewise.
10174 * sysdeps/pthread/createthread.c: Likewise.
10176 2003-03-20 Ulrich Drepper <drepper@redhat.com>
10178 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
10179 Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
10180 definitions. Replace uses with calls to atomic_* functions.
10181 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
10182 * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
10183 __lll_test_and_set calls with atomic_exchange_and_add and
10184 atomic_exchange calls respectively.
10185 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
10186 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
10187 * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
10188 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
10189 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
10190 * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
10191 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
10193 * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
10194 returns the old value.
10196 2003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com>
10198 * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
10199 int for variable OLDVAL and correct inline assembler contraint.
10200 * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
10201 type int for variable OLD.
10203 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
10205 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
10206 (SINGLE_THREAD_P): Use global variable __local_multiple_threads
10207 instead of multiple_threads field in the TCB.
10209 2003-03-19 Ulrich Drepper <drepper@redhat.com>
10211 * sysdeps/i386/i686/bits/atomic.h: Removed.
10212 * sysdeps/i386/i586/bits/atomic.h: Removed.
10213 * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc.
10214 * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc.
10215 * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc.
10216 * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc.
10217 * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc.
10218 * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc.
10219 * atomic.h: Removed. Moved to glibc.
10221 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add
10222 support for clock selection.
10224 * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
10225 signalling waiters.
10227 2003-03-18 Roland McGrath <roland@redhat.com>
10229 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
10230 Add __lll_rel_instr first. Add memory clobber.
10231 (lll_mutex_unlock): Use __lll_test_and_set.
10232 From Paul Mackerras <paulus@samba.org>.
10234 * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define
10236 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
10237 (SINGLE_THREAD_P): Add `header.' prefix.
10238 From Paul Mackerras <paulus@samba.org>.
10240 * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
10241 pthread_timedjoin_np to ...
10242 (libpthread: GLIBC_2.3.3): ... here.
10243 (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
10245 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
10246 Avoid shadowing VAL variable.
10248 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
10251 2003-03-18 Ulrich Drepper <drepper@redhat.com>
10253 * Makefile (tests): Add tst-cond11.
10254 * tst-cond11.c: New file.
10256 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder
10257 struct passed to cleanup handler to eliminate one more
10259 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10261 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
10262 (pthrad_cond_t): Replace __unused field with __clock.
10264 * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
10265 waken all waiters in cleanup handler.
10266 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
10267 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
10269 * pthread_condattr_getclock.c: New file.
10270 * pthread_condattr_setclock.c: New file.
10271 * sysdeps/pthread/pthread.h: Declare these new functions.
10272 * Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
10273 * Makefile (libpthread-routines): Add the new functions.
10274 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
10275 Renamed field to value. Document use of the bits.
10276 * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
10278 * pthread_condattr_setpshared.c: Likewise.
10279 * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
10280 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
10281 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
10283 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
10284 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
10285 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
10286 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
10287 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10288 Implement clock selection.
10289 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
10290 * pthread-errnos.sym: Add ENOSYS.
10291 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
10292 _POSIX_CLOCK_SELECTION.
10293 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
10295 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
10296 invalid .size directive.
10298 2003-03-17 Roland McGrath <roland@redhat.com>
10300 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
10303 2003-03-17 Ulrich Drepper <drepper@redhat.com>
10305 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
10306 Use __lll_add instead of spelling it out. Use protected symbol names.
10307 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
10309 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
10310 Renamed from lll_compare_and_swap. Use new name where necessary.
10311 (__lll_add): Defined.
10312 (__lll_dec_if_positive): Defined.
10313 (__lll_test_and_set): Defined.
10314 * sysdeps/ia64/pthread_spin_init.c: Removed.
10315 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
10316 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
10317 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
10318 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
10319 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
10320 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
10321 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
10322 * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
10323 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
10324 __sync_lock_release_si.
10325 Patch by Jakub Jelinek.
10327 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
10328 Fix timeout handling.
10329 (__lll_timedwait_tid): Likewise.
10330 (lll_unlock_wake_cb): Wake up other waiters if necessary.
10331 Patch by Jakub Jelinek.
10333 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
10335 2003-03-17 Roland McGrath <roland@redhat.com>
10337 PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
10338 * sysdeps/pthread/pthread_spin_init.c: New file.
10339 * sysdeps/pthread/pthread_spin_unlock.c: New file.
10340 * sysdeps/powerpc/Makefile: New file.
10341 * sysdeps/powerpc/pthread_spin_lock.c: New file.
10342 * sysdeps/powerpc/pthread_spin_trylock.c: New file.
10343 * sysdeps/powerpc/pthreaddef.h: New file.
10344 * sysdeps/powerpc/tcb-offsets.sym: New file.
10345 * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
10346 * sysdeps/powerpc/tls.h: New file.
10347 * sysdeps/powerpc/bits/atomic.h: New file.
10348 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
10349 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
10350 * sysdeps/unix/sysv/linux/lowlevellock.c: New file.
10352 * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
10353 * sysdeps/unix/sysv/linux/sem_post.c: New file.
10354 * sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
10355 * sysdeps/unix/sysv/linux/sem_trywait.c: New file.
10356 * sysdeps/unix/sysv/linux/sem_wait.c: New file.
10357 * sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
10358 * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
10359 * sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
10360 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
10361 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
10362 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
10363 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
10364 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
10365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
10366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.
10368 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
10370 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
10371 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
10372 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
10373 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
10374 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
10376 2003-03-17 Ulrich Drepper <drepper@redhat.com>
10378 * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria.
10379 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
10380 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10381 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
10382 Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>.
10384 2003-03-16 Roland McGrath <roland@redhat.com>
10386 * tst-fork4.c: Include <string.h>.
10387 * tst-signal2.c: Likewise.
10388 * tst-mutex5.c (do_test): exit -> return.
10389 * tst-mutex2.c: Include <stdlib.h>.
10391 2003-03-16 Ulrich Drepper <drepper@redhat.com>
10393 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
10394 (__lll_mutex_timedlock_wait): Correct expected value after
10395 spurious wakeup. Otherwise we would never wait again.
10397 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
10398 zone versus inline asm stupidity. Use correct instructions.
10400 * tst-rwlock6.c: Add some more status output.
10402 2003-03-15 Roland McGrath <roland@redhat.com>
10404 * sysdeps/pthread/configure.in: New file.
10405 * sysdeps/pthread/configure: New file (generated).
10407 2003-03-15 Ulrich Drepper <drepper@redhat.com>
10409 * allocatestack.c (allocate_stack): Store the exact stack size of
10410 user allocated stacks.
10412 2003-03-15 Jakub Jelinek <jakub@redhat.com>
10414 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
10415 (SINGLE_THREAD): Use `header' prefix instead of `header.data'.
10416 * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
10417 * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
10418 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
10419 Use `header.' prefix.
10420 * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
10422 2003-03-15 Ulrich Drepper <drepper@redhat.com>
10424 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
10425 __builtin_frame_address, use stack pointer.
10427 * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
10428 instead of __builtin_frame_pointer.
10430 2003-03-14 Ulrich Drepper <drepper@redhat.com>
10432 * tst-basic1.c (do_test): Add cast to avoid warning.
10433 * tst-basic2.c (do_test): Likewise.
10435 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
10436 amount of stack correction.
10438 * tst-fork4.c: Use test-skeleton.c.
10440 2003-03-14 Roland McGrath <roland@redhat.com>
10442 * init.c: Fix typo "#eli" for "#else".
10444 2003-03-14 Steven Munroe <sjmunroe@us.ibm.com>
10446 * allocatestack.c (__stack_user): Use hidden_data_def.
10447 * pthread_create.c (__pthread_keys): Likewise.
10449 * init.c [__powerpc__] (__NR_set_tid_address): Define it.
10451 2003-03-14 Roland McGrath <roland@redhat.com>
10453 * tst-fork4.c: New file.
10454 * Makefile (tests): Add it.
10456 * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so
10457 we always define the padding space.
10458 [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC
10459 stopped supporting its own extensions fully.
10460 [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper
10461 struct also called `header', so `header.multiple_threads' is the field
10462 name to use on all machines.
10463 * allocatestack.c (allocate_stack): Use `header.' prefix.
10464 * sysdeps/pthread/createthread.c (create_thread): Likewise.
10465 * pthread_create.c (__pthread_create_2_1): Likewise.
10466 * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise.
10467 (THREAD_SELF): Likewise.
10468 * sysdeps/x86_64/tls.h: Likewise.
10469 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
10470 (SINGLE_THREAD_P): Likewise.
10471 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
10472 (SINGLE_THREAD_P): Likewise.
10473 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
10474 (SINGLE_THREAD_P): Likewise.
10476 * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18]
10479 2003-03-14 Ulrich Drepper <drepper@redhat.com>
10481 * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
10482 * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
10484 * pthread_create.c (start_thread): setjmp is expected to return 0.
10486 * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile.
10487 (THREAD_GETMEM_NC): Likewise.
10489 2003-03-13 Ulrich Drepper <drepper@redhat.com>
10491 * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined
10492 and the size of the stack which must be allocated is a multiple,
10493 allocate one more page.
10494 * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but
10495 MULTI_PAGE_ALIASING.
10497 2003-03-13 Roland McGrath <roland@redhat.com>
10499 * pthread_create.c (start_thread): Set EXITING_BIT after the
10500 event-reporting (and destructors), not before.
10502 2003-03-13 Jakub Jelinek <jakub@redhat.com>
10504 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait,
10505 lll_futex_wake): Declare register variables as long int instead of
10506 unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
10507 Make syscall arguments clobbered by the syscall.
10508 (lll_futex_wait): Define using lll_futex_timed_wait.
10510 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13]
10513 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
10514 PPID if [! NDEBUG].
10516 * allocatestack.c (nptl_ncreated): Only declare if
10517 COLORING_INCREMENT != 0.
10519 * pthreadP.h (__pthread_enable_asynccancel_2): New prototype.
10520 (__libc_enable_asynccancel_2): Remove prototype.
10522 * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
10523 ctid to match kernel.
10525 2003-03-12 Ulrich Drepper <drepper@redhat.com>
10527 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
10528 libc_multiple_threads.
10529 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
10530 __libc_multiple_threads to...
10531 * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
10533 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
10535 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10536 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10538 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
10539 (__pthread_once_internal): Define.
10541 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
10542 macros instead of .symver directly.
10543 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
10544 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
10546 * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
10547 * sysdeps/x86_64/tcb-offsets.sym: New file.
10548 * sysdeps/x86_64/Makefile: New file.
10550 * sysdeps/i386/tcb-offsets.sym: Add SELF.
10551 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
10552 to access own pthread_t in TCB.
10553 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10555 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10557 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10559 2003-03-12 Roland McGrath <roland@redhat.com>
10561 * pthread-errnos.sym: New file.
10562 * Makefile (gen-as-const-headers): New variable, list that file.
10563 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
10564 header <pthread-errnos.h> instead of defining errno values here.
10565 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
10566 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
10567 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
10568 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10569 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10571 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10573 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
10574 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10575 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
10576 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
10577 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10578 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10579 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
10580 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
10581 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
10582 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
10583 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10584 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
10585 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
10586 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
10587 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
10588 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
10589 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
10590 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
10591 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
10592 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
10593 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
10594 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
10595 * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
10596 * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
10597 * sysdeps/sh/pthread_spin_trylock.S: Likewise.
10598 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
10599 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
10601 * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
10602 CLONE_CHILD_SETTID worked.
10604 2003-03-12 Ulrich Drepper <drepper@redhat.com>
10606 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
10608 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
10611 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
10612 (pthread_cond_t): Add padding.
10614 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
10615 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
10616 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
10618 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
10619 (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
10620 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
10621 (__pthread_rwlock_timedrdlock): Likewise.
10622 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
10623 (__pthread_rwlock_wrlock): Likewise.
10624 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
10625 (__pthread_rwlock_rdlock): Likewise.
10627 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
10629 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
10630 result of lock re-get if it fails.
10632 2003-03-11 Ulrich Drepper <drepper@redhat.com>
10634 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
10635 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
10636 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
10637 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
10638 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
10639 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
10640 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
10641 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
10642 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10643 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10645 * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
10646 THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
10648 * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
10649 Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
10650 * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
10651 (create_thread): Likewise.
10652 Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
10653 * init.c (__pthread_initialize_minimal_internal): Initialize
10654 __libc_multiple_threads_ptr if necessary.
10655 * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
10656 __pthread_multiple_threads and __libc_multiple_threads_ptr.
10657 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
10658 __libc_multiple_threads.
10659 (__libc_pthread_init): Return pointer to __libc_pthread_init if
10662 * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
10663 (THREAD_SETMEM_NC): Likewise.
10665 * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
10666 * sysdeps/x86_64/pthread_spin_trylock.S: New file.
10667 * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
10668 * sysdeps/x86_64/pthread_spin_unlock.S: New file.
10670 * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
10671 Eliminate one entire instruction.
10673 * cancellation.c (__pthread_enable_asynccancel_2): New function.
10674 * pthreadP.h: Declare __pthread_enable_asynccancel_2.
10675 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
10676 (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
10677 instead of __pthread_enable_asynccancel.
10678 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
10679 (__pthread_cond_wait): Likewise.
10680 * sysdeps/pthread/pthread_cond_timedwait.c
10681 (__pthread_cond_timedwait): Likewise.
10682 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
10684 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
10685 (__condvar_cleanup): Wake up all waiters in case we got signaled
10686 after being woken up but before disabling asynchronous
10688 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
10689 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10690 (__condvar_cleanup): Likewise.
10692 * init.c (__NR_set_tid_address): If already defined, don't redefine.
10693 Make it an error if architecture has no #if case. Add x86-64.
10695 * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
10696 pt-initfini.s generation.
10698 * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
10699 (TLS_INIT_TP): Fix typo.
10701 2003-03-11 Jakub Jelinek <jakub@redhat.com>
10703 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
10704 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
10706 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
10707 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
10708 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
10709 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
10710 * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
10711 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
10712 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
10713 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
10715 2003-03-11 Ulrich Drepper <drepper@redhat.com>
10717 * sysdeps/pthread/pthread_cond_timedwait.c
10718 (__pthread_cond_timedwait): Return the result of the final
10719 locking. If it succeeds, the regular function return value.
10721 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
10722 Return result of the final locking.
10723 * version.c (__nptl_main): Work around problems with the strange
10724 INTERNAL_SYSCALL macro on ppc32.
10725 * init.c (__pthread_initialize_minimal_internal): Unblock
10726 SIGCANCEL in case the parent blocked it.
10727 Reported by Paul Mackerras <paulus@samba.org>.
10729 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
10730 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
10731 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
10733 2003-03-11 Jakub Jelinek <jakub@redhat.com>
10735 * sysdeps/pthread/pthread_cond_timedwait.c
10736 (__pthread_cond_timedwait): Unlock and fail if
10737 __pthread_mutex_unlock_internal failed.
10739 * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
10740 (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
10742 * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
10743 [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
10744 STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
10745 ALLOCATE_STACK): New macros.
10746 (TLS_TPADJ): New macro.
10747 (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
10748 (allocate_stack): Handle TLS_DTV_AT_TP and
10749 NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
10750 * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
10751 Don't set PD->self.
10752 * init.c [__ia64__] (__NR_set_tid_address): Define.
10754 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
10755 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
10756 * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
10757 * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
10758 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
10759 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
10760 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
10761 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
10762 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
10763 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
10764 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
10765 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
10766 * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
10767 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
10768 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
10769 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
10770 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
10771 * sysdeps/ia64/bits/atomic.h: New file.
10772 * sysdeps/ia64/Makefile: New file.
10773 * sysdeps/ia64/pthread_spin_init.c: New file.
10774 * sysdeps/ia64/pthread_spin_lock.c: New file.
10775 * sysdeps/ia64/pthread_spin_trylock.c: New file.
10776 * sysdeps/ia64/pthread_spin_unlock.c: New file.
10777 * sysdeps/ia64/pthreaddef.h: New file.
10778 * sysdeps/ia64/tcb-offsets.sym: New file.
10779 * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
10780 * sysdeps/ia64/tls.h: New file.
10782 * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
10783 to syscall instead of no arguments.
10785 2003-03-10 Ulrich Drepper <drepper@redhat.com>
10787 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
10788 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
10789 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
10790 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
10792 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
10795 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
10797 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
10798 lowlevelbarrier.sym.
10799 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
10800 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10801 Include lowlevelbarrier.h and don't define offsets locally.
10802 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
10804 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10805 (__lll_mutex_lock_wait): Reverse order of first two parameters.
10806 (__lll_mutex_timedlock_wait): Likewise.
10807 (lll_mutex_lock): Adjust asm for that.
10808 (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
10809 (lll_lock): Adjust asm for operand order change.
10810 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
10811 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
10813 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
10814 Reverse order of parameters.
10815 (__lll_timedwait_tid): Remove regparms attribute.
10816 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
10817 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
10819 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
10820 (__lll_timedwait_tid): Remove one unnecessary instruction.
10822 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
10823 __lll_mutex_timedlock_wait only for NOT_IN_libc.
10824 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
10827 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
10828 lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
10830 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
10833 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
10834 LOCK is already defined. Don't define __lll_mutex_timedlock_wait
10836 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
10837 define LOCK here (if UP is not defined). The actual code is in
10840 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
10841 LOCK is already defined. Don't define lll_unlock_wake_cb and
10842 __lll_timedwait_tid for libc.so.
10843 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
10844 define LOCK here (if UP is not defined). The actual code is in
10847 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
10848 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
10849 * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
10850 instead of lowlevelsem.h.
10851 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
10852 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
10853 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
10855 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
10856 lowlevelrwlock.sym.
10857 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
10858 * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
10859 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
10861 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
10863 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
10864 last changed. D'oh.
10866 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
10868 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
10869 of __libc_locking_needed.
10870 (lll_trylock): Initialize %eax to zero.
10872 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
10873 pthread_cond_t definition.
10875 2003-03-10 Roland McGrath <roland@redhat.com>
10877 * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
10878 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
10879 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
10880 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
10881 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
10883 * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
10884 Instead of setting PD->multiple_threads, set globals
10885 __pthread_multiple_threads and __libc_multiple_threads.
10886 * sysdeps/pthread/createthread.c (create_thread): Likewise.
10887 * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
10888 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
10890 * descr.h (struct pthread): Conditionalize first member on
10891 [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
10892 containing an anonymous tcbhead_t. Move `list' member out.
10893 [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
10894 * allocatestack.c: Remove use of `header.data.' prefix.
10895 * pthread_create.c: Likewise.
10896 * init.c (__pthread_initialize_minimal_internal): Likewise.
10897 * sysdeps/pthread/createthread.c (create_thread): Likewise.
10898 * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
10899 (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
10900 * sysdeps/x86_64/tls.h: Likewise.
10901 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
10902 (SINGLE_THREAD_P): Likewise.
10903 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
10904 (SINGLE_THREAD_P): Likewise.
10905 * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
10906 * sysdeps/s390/tls.h (tcbhead_t): Likewise.
10908 2003-03-09 Ulrich Drepper <drepper@redhat.com>
10910 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
10912 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
10913 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
10915 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
10916 leftovers from the ia32 code.
10918 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
10920 (clear_once_control): Don't load %esi.
10922 * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
10925 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
10927 * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
10928 * sysdeps/unix/sysv/linux/createthread.c: ...here.
10930 * Makefile (tests): Add tst-cond10.
10931 * tst-cond10.c: New file.
10933 2003-03-08 Ulrich Drepper <drepper@redhat.com>
10935 * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
10936 * tst-signal3.c (do_test): Likewise.
10937 * tst-sem5.c (do_test): Likewise.
10938 * tst-kill6.c (do_test): Likewise.
10939 * tst-tls3.c (do_test): Likewise. Include <errno.h>.
10941 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
10943 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
10944 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
10945 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
10946 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
10947 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10948 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
10949 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10951 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10953 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
10954 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
10955 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10956 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
10957 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
10958 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
10959 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
10960 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
10962 * allocatestack.c (allocate_stack): If mprotect() fails free the
10965 2003-03-07 Ulrich Drepper <drepper@redhat.com>
10967 * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
10969 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
10970 lll_wake_tid. This was used only to work around kernel limits in
10972 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
10973 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
10974 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
10975 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
10977 * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
10978 (__pthread_initialize_minimal_internal): Change initialization of
10979 __static_tls_align_m1 appropriately.
10980 * pthreadP.h (__static_tls_align_m1): Renamed from
10981 __static_tls_align.
10982 * allocatestack.c (allocate_stack): Use __static_tls_align_m1
10983 instead of __static_tls_align-1.
10985 2003-03-04 Ulrich Drepper <drepper@redhat.com>
10987 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
10989 * pthread_create.c: Define __pthread_keys using nocommon
10990 attribute, not by placing it explicitly in bss.
10991 Remove DEFINE_DEALLOC definition. Not needed anymore.
10993 * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
10994 Use it in mmap call to allocate stacks.
10996 * sysdeps/pthread/createthread.c (create_thread): Fix comment.
10998 * pthread_create.c (start_thread): Use THREAD_SETMEM to store
10999 result of the thread function.
11001 2003-03-03 Ulrich Drepper <drepper@redhat.com>
11003 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
11004 version is just fine.
11006 * sysdeps/unix/sysv/linux/libc_pthread_init.c
11007 (__pthread_child_handler): Renamed from pthread_child_handler,
11008 exported, and marked hidden. Change all users.
11009 * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
11010 free __pthread_child_handler from child list.
11012 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
11014 * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
11016 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
11017 Fix handling of cancellation and failing pthread_mutex_unlock call.
11018 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
11019 (__pthread_cond_wait): Likewise.
11021 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
11022 (pthread_rwlock_timedrdlock): Fix clobber of result variable by
11023 lll_futex_timed_wait call.
11024 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
11025 (pthread_rwlock_timedwrlock): Likewise.
11027 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
11028 Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
11029 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
11031 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
11032 check of lll_futex_wake return value.
11034 2003-03-03 Roland McGrath <roland@redhat.com>
11036 * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
11038 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
11039 Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
11040 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
11042 2003-03-02 Ulrich Drepper <drepper@redhat.com>
11044 * sysdeps/pthread/timer_create.c (timer_create): Return correct
11045 error for CPU clocks.
11047 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
11048 _POSIX_MONOTONIC_CLOCK.
11049 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
11051 * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
11054 2003-03-01 Ulrich Drepper <drepper@redhat.com>
11056 * descr.h (struct pthread): Move cleanup field to the front.
11058 2003-03-01 Roland McGrath <roland@redhat.com>
11060 * sem_open.c (sem_open): Braino fix.
11062 2003-03-01 Ulrich Drepper <drepper@redhat.com>
11064 * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
11065 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
11066 __pthread_cleanup_pop functionality.
11067 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
11069 * descr.h (struct pthread): Move tid field to the front now that
11072 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
11073 (__lll_mutex_timedlock_wait): Remove.
11074 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
11075 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
11076 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
11077 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
11078 (lll_unlock_wake_cb): Don't save and restore %esi.
11079 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
11081 (__lll_timedwait_tid): Add alignment.
11082 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
11083 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
11085 (__lll_timedwait_tid): Removed.
11086 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
11087 (__pthread_cond_broadcast): Don't save, load, and restore %esi.
11088 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
11089 (pthread_barrier_wait): Don't save, load, and restore %esi for
11091 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
11092 (__pthread_cond_signal): Don't save, load, and restore %esi.
11093 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
11094 (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
11095 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
11096 Don't save, load, and restore %esi.
11098 2003-02-27 Ulrich Drepper <drepper@redhat.com>
11100 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11101 Release lock before waking up the waiters.
11103 * tst-exit1.c (do_test): Don't start more than one thread in parallel.
11105 * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
11106 (reader_thread): Likewise.
11108 * sysdeps/pthread/pthread_rwlock_unlock.c
11109 (__pthread_rwlock_unlock): Release internal lock early. Don't try
11110 to wake up readers if there are none.
11112 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
11113 Release internal lock before wake threads.
11115 2003-02-26 Ulrich Drepper <drepper@redhat.com>
11117 * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
11118 * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
11120 * tst-rwlock9.c: Likewise.
11121 * tst-rwlock10.c: New file.
11122 * tst-rwlock11.c: New file.
11124 * Makefile (tests): Add tst-dlsym1.
11125 * tst-dlsym1.c: New file.
11127 * init.c (__pthread_initialize_minimal_internal): Set
11128 GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
11129 * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
11131 2003-02-24 Ulrich Drepper <drepper@redhat.com>
11133 * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
11135 * tst-cond2.c: Fix sychronization with child.
11137 * tst-rwlock8.c (reader_thread): Remove unused variable.
11139 * Makefile: Add rules to build and run tst-tls3.
11140 * tst-tls3.c: New file.
11141 * tst-tls3mod.c: New file.
11143 * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
11144 * tst-rwlock8.c: New file.
11145 * tst-rwlock9.c: New file.
11146 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
11147 complete broken rwlock implementation.
11148 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
11150 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
11152 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
11153 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
11154 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
11155 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
11156 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
11157 * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
11158 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
11160 2003-02-23 Roland McGrath <roland@redhat.com>
11162 * Makefile (nptl-version): Change regexp so case sensitivity is ok.
11164 2003-02-23 Ulrich Drepper <drepper@redhat.com>
11166 * Makefile (tests): Add tst-context1.
11167 * tst-context1.c: New file.
11169 * Makefile (tests): Add tst-tls1 and tst-tls2.
11170 * tst-tls1.c: New file.
11171 * tst-tls2.c: New file.
11173 * libc-cancellation.c (__libc_enable_asynccancel): Correct test
11174 for failed cmpxchg.
11176 * pthread_create.c (start_thread): Set EXITING_BIT early.
11178 * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
11179 (THREAD_GETMEM_NC): Likewise.
11181 2003-02-22 Ulrich Drepper <drepper@redhat.com>
11183 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
11184 off 3 more bytes by using offset-less instructions when possible.
11186 * Makefile: Add dependency for $(objpfx)version.d.
11188 * eintr.c (eintr_source): Add unnecessary return but the compiler
11191 * tst-kill3.c: Include <unistd.h>.
11193 2003-02-21 Roland McGrath <roland@redhat.com>
11195 * pthread_create.c (start_thread): Call __libc_thread_freeres.
11197 2003-02-21 Ulrich Drepper <drepper@redhat.com>
11199 * Makefile (tests): Add tst-eintr1.
11200 (distribute): Add eintr.c.
11201 * tst-eintr1.c: New file.
11202 * eintr.c: New file.
11204 * pthread_cancel.c (pthread_cancel): Use tkill directly.
11206 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
11207 Disallow sending SIGCANCEL.
11209 * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
11210 tst-kill3, tst-kill4, tst-kill5, tst-kill6.
11211 * tst-kill1.c: New file.
11212 * tst-kill2.c: New file.
11213 * tst-kill3.c: New file.
11214 * tst-kill5.c: New file.
11215 * tst-kill6.c: New file.
11216 * tst-basic7.c: Renamed to...
11217 * tst-kill4.c: ...this.
11219 2003-02-21 Roland McGrath <roland@redhat.com>
11221 * Makefile (install-lib-ldscripts): New variable.
11223 2003-02-21 Ulrich Drepper <drepper@redhat.com>
11225 * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
11226 * pthread_cancel.c: Use INVALID_TD_P.
11227 * pthread_detach.c: Likewise.
11228 * pthread_getschedparam.c: Likewise.
11229 * pthread_setschedparam.c: Likewise.
11230 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
11231 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
11232 * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
11233 * pthread_timedjoin.c: Likewise.
11235 * tst-basic7.c: Include <signal.h>.
11237 * pthread_join.c (pthread_join): Limited checking for invalid
11239 * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
11241 2003-02-20 Ulrich Drepper <drepper@redhat.com>
11243 * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
11244 beginning of the loop. Clear the entire first block of TSD.
11245 * Makefile (tests): Add tst-key4.
11246 * tst-key4.c: New file.
11248 2003-02-18 Ulrich Drepper <drepper@redhat.com>
11250 * Makefile (tests): Add tst-basic7.
11251 * tst-basic7.c: New file.
11253 * pthread_create.c (deallocate_tsd): Mark as internal_function.
11254 Add some more __builtin_expect.
11256 * pthreadP.h: Define dummy version of DEBUGGING_P.
11258 2003-02-17 Ulrich Drepper <drepper@redhat.com>
11260 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
11261 _POSIX_THREAD_PRIORITY_SCHEDULING.
11262 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
11263 _XOPEN_REALTIME_THREADS.
11264 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
11266 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
11267 kernel returns EINVAL for PID <= 0, work around it.
11269 * Makefile (tests): Add tst-signal5.
11270 * tst-signal5.c: New file.
11272 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
11273 and LOGIN_NAME_MAX.
11275 * tst-cancel1.c (tf): Block all signals.
11277 * Makefile (tests): Add tst-basic6.
11278 * tst-basic6.c: New file.
11280 * tst-basic1.c: Add test for process ID.
11282 * Makefile (tests): Add tst-cancel10.
11283 * tst-cancel10.c: New file.
11285 * Makefile (tests): Add tst-signal4.
11286 * tst-signal4.c: New file.
11288 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
11289 __sigismember instead of sigismember. Add __builtin_expect.
11291 2003-02-16 Ulrich Drepper <drepper@redhat.com>
11293 * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
11294 pthread_setcancelstate, and pthread_rwlock_setpshared.
11296 * tst-cancel7.c (do_test): Make sure the pid file exists before
11297 canceling the thread.
11299 * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
11300 pthread_rwlock_timedrdlock tests.
11301 * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
11302 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
11303 Check for invalid tv_nsec field.
11304 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
11307 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
11308 recursive mutex of overflow.
11310 * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
11312 * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
11313 going into an endless loop.
11314 * Makefile (tests): Add tst-cancel9.
11315 * tst-cancel9.c: New file.
11317 * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
11319 2003-02-15 Ulrich Drepper <drepper@redhat.com>
11321 * tst-mutex5.c (do_test): Add more timedlock tests.
11323 * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
11324 * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
11326 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
11327 use INLINE_SYSCALL. Error number is returned, not -1.
11329 * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
11330 and __deallocate_stack with internal_function.
11331 * pthread_create.c: Adjust definitions appropriately.
11332 * allocatestack.c: Likewise.
11334 * pthread_join.c: Add one more __builtin_expect.
11335 * pthread_timedjoin.c: Likewise.
11337 * pthread_getspecific.c (__pthread_getspecific): Clear data->data
11338 not data of sequence number does not match.
11339 Add one __builtin_expect.
11341 * Makefile (tests): Add tst-clock1.
11342 * tst-clock1.c: New file.
11344 * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
11345 negative arguments.
11346 * Makefile (tests): Add tst-basic5.
11347 * tst-basic5.c: New file.
11349 2003-02-14 Ulrich Drepper <drepper@redhat.com>
11351 * Makefile (tests): Add tst-basic4.
11352 * tst-basic4.c: New file.
11354 * pthreadP.h: Add declaraction for __nptl_nthreads.
11355 * pthread_create.c: Define __nptl_nthreads
11356 (start_thread): Increment __nptl_nthreads at beginning. Decrement
11357 after thread is done. If then zero, call exit(0).
11358 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
11359 Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
11360 * init.c (pthread_functions): Initialize ptr_nthreads.
11361 * allocatestack.c (nptl_nthreads): Remove definition and all uses.
11362 (__reclaim_stacks): Decrement __nptl_nthreads.
11363 * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
11365 * Makefile (tests): Add tst-basic3.
11366 * tst-basic3.c: New file.
11368 * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
11369 after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
11370 * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
11371 * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
11372 if asynchronous canceling is enabled.
11373 * pthread_join.c (pthread_join): When recognizing circular joins,
11374 take into account the other thread might be already canceled.
11375 * Makefile (tests): Add tst-join5.
11376 * tst-join5.c: New file.
11378 * Makefile (tests): Add tst-join4.
11379 * tst-join4.c: New file.
11381 2003-02-13 Ulrich Drepper <drepper@redhat.com>
11383 * tst-cond4.c (main): Add test of pthread_attr_getpshared.
11385 2003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
11387 * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
11388 THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
11389 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
11391 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
11393 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
11394 error if lll_futex_wake failed.
11396 2003-02-13 Ulrich Drepper <drepper@redhat.com>
11398 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
11399 handling of cancellation and failung pthread_mutex_unlock call.
11400 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
11401 * Makefile (tests): Add tst-cond8 and tst-cond9.
11402 * tst-cond8.c: New file.
11403 * tst-cond9.c: New file.
11405 * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
11407 * sysdeps/pthread/pthread.h: Add missing initializers. Protect
11408 non-standard initializers with __USE_GNU.
11410 * Makefile (tests): Add tst-cleanup3.
11411 * tst-cleanup3.c: New file.
11413 2003-02-12 Ulrich Drepper <drepper@redhat.com>
11415 * Makefile (tests): Add tst-attr1 and tst-attr2.
11416 * tst-attr1.c: New file.
11417 * tst-attr2.c: New file.
11419 * Makefile: Add rules to build and run tst-atfork2 test.
11420 * tst-atfork2.c: New file.
11421 * tst-atfork2mod.c: New file.
11423 * sysdeps/unix/sysv/linux/unregister-atfork.c
11424 (__unregister_atfork): Free the memory allocated for the handlers
11425 after removing them from the lists.
11427 * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
11430 * tst-atfork1.c (do_test): Wait for the child we forked.
11431 Report error in child.
11433 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
11435 * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
11437 2003-02-10 Ulrich Drepper <drepper@redhat.com>
11439 * Makefile (tests): Add tst-cancel8.
11440 * tst-cancel8.c: New file.
11442 * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
11443 clearing of control variable.
11444 * Makefile (tests): Add tst-once3 and tst-once4.
11445 * tst-once3.c: New file.
11446 * tst-once4.c: New file.
11448 2003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
11450 * sysdeps/sh/Makefile: New file.
11451 * sysdeps/sh/bits/atomic.h: New file.
11452 * sysdeps/sh/pthread_spin_init.c: New file.
11453 * sysdeps/sh/pthread_spin_lock.c: New file.
11454 * sysdeps/sh/pthread_spin_trylock.S: New file.
11455 * sysdeps/sh/pthread_spin_unlock.S: New file.
11456 * sysdeps/sh/pthreaddef.h: New file.
11457 * sysdeps/sh/tcb-offsets.sym: New file.
11458 * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
11459 * sysdeps/sh/tls.h: New file.
11460 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
11461 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
11462 * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
11463 * sysdeps/unix/sysv/linux/sh/fork.c: New file.
11464 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
11465 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
11466 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
11467 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
11468 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
11469 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
11470 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
11471 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
11472 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
11473 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
11474 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
11475 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
11476 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
11477 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
11478 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
11479 * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
11480 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
11481 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
11482 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
11483 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
11484 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
11485 * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
11486 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
11487 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
11488 * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
11489 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
11491 2003-02-08 Ulrich Drepper <drepper@redhat.com>
11493 * tst-cond2.c: Rearrange code to not rely on behavior undefined
11494 according to POSIX.
11496 * tst-basic2.c (do_test): Lock mutex before creating the thread.
11498 2003-02-07 Ulrich Drepper <drepper@redhat.com>
11500 * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
11501 (TLS_GET_FS): New #define.
11502 (TLS_SET_FS): New #define.
11503 Correct value of __NR_set_thread_area.
11505 * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
11507 2003-02-06 Ulrich Drepper <drepper@redhat.com>
11509 * Makefile (tests): Add tst-popen1.
11510 * tst-popen1.c: New file.
11512 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
11513 but inactive generalization.
11514 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
11515 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
11516 Minor optimization, remove one instruction.
11517 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
11519 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
11521 * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
11523 2003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11525 * init.c (__NR_set_tid_address): Add #ifdef for s390.
11526 * sysdeps/pthread/pthread_barrier_wait.c: New file.
11527 * sysdeps/pthread/pthread_cond_broadcast.c: New file.
11528 * sysdeps/pthread/pthread_cond_signal.c: New file.
11529 * sysdeps/pthread/pthread_cond_timedwait.c: New file.
11530 * sysdeps/pthread/pthread_cond_wait.c: New file.
11531 * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
11532 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
11533 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
11534 * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
11535 * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
11536 * sysdeps/s390/Makefile: New file.
11537 * sysdeps/s390/bits/atomic.h: New file.
11538 * sysdeps/s390/pthread_spin_init.c: New file.
11539 * sysdeps/s390/pthread_spin_lock.c: New file.
11540 * sysdeps/s390/pthread_spin_trylock.c: New file.
11541 * sysdeps/s390/pthread_spin_unlock.c: New file.
11542 * sysdeps/s390/pthreaddef.h: New file.
11543 * sysdeps/s390/tcb-offsets.sym: New file.
11544 * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
11545 * sysdeps/s390/tls.h: New file.
11546 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
11547 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
11548 * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
11549 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
11550 * sysdeps/unix/sysv/linux/s390/fork.c: New file.
11551 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
11552 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
11553 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
11554 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
11555 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
11556 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
11557 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
11558 * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
11559 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
11560 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
11561 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
11562 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
11563 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
11564 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
11565 * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
11566 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
11567 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
11568 * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
11570 2003-02-04 Ulrich Drepper <drepper@redhat.com>
11572 * atomic.h: Add a couple more default implementations.
11573 (atomic_compare_and_exchange_acq): Use
11574 __arch_compare_and_exchange_32_acq in return value definition. It
11576 (atomic_bit_set): Renamed from atomic_set_bit.
11577 Add missing atomic_ prefixes.
11579 * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
11580 thread library is available, use correct value to mark initialized
11583 2003-02-03 Ulrich Drepper <drepper@redhat.com>
11585 * allocatestack.c (allocate_stack): Use __getpagesize instead of
11586 __sysconf to determine pagesize.
11588 * pthread_create.c: Include <atomic.h>.
11589 * allocatestack.c (allocate_stack): Implement coloring of the
11590 allocated stack memory. Rename pagesize to pagesize_m1. It's the
11591 size minus one. Adjust users.
11592 * sysdeps/i386/i686/Makefile: New file.
11594 2003-02-02 Ulrich Drepper <drepper@redhat.com>
11596 * allocatestack.c: Improve comment throughout the file.
11598 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
11599 (__lll_lock_wait): Add branch prediction.
11600 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
11601 (__lll_lock_wait): Likewise.
11602 (lll_unlock_wake_cb): Removed.
11604 2003-01-31 Ulrich Drepper <drepper@redhat.com>
11606 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
11607 _POSIX_THREAD_PRIORITY_SCHEDULING.
11609 2003-01-30 Jakub Jelinek <jakub@redhat.com>
11611 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
11612 Fix return type of ptr___pthread_getspecific.
11614 2003-01-29 Ulrich Drepper <drepper@redhat.com>
11616 * Makefile (tests): Add tst-umask1.
11617 (tst-umask1-ARGS): Define.
11618 * tst-umask1.c: New file.
11620 2003-01-28 Ulrich Drepper <drepper@redhat.com>
11622 * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
11623 pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
11624 pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
11625 pthread_rwlock_unlock.
11626 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
11627 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
11628 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
11629 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
11630 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
11632 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
11633 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
11635 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
11636 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
11637 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
11639 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
11640 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
11642 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
11643 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
11644 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
11646 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
11647 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
11649 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
11651 * Makefile (libpthread-routines): Remove lowlevelcond and
11652 lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
11653 pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
11654 and pthread_cond_broadcast.
11655 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
11656 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
11657 * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
11658 * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
11659 * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
11660 * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
11661 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
11662 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
11663 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
11664 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
11665 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
11666 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
11667 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
11668 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
11669 * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
11670 * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
11671 * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
11672 * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
11673 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
11674 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
11675 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
11676 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
11677 * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
11678 * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
11679 * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
11680 * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
11681 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
11682 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
11683 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
11684 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
11685 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
11687 * sysdeps/unix/sysv/linux/i386/createthread.c: Define
11688 PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
11689 of the code is moved to ...
11690 * sysdeps/pthread/createthread.c: ...here. New file.
11692 2003-01-27 Ulrich Drepper <drepper@redhat.com>
11694 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
11695 (__new_sem_post): Clear %eax before returning.
11696 Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
11698 * Makefile (tests): Add tst-cleanup2.
11699 * tst-cleanup2.c: New file.
11701 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
11702 Interpret first parameter correctly.
11704 2003-01-17 Ulrich Drepper <drepper@redhat.com>
11706 * Makefile (headers): Add bits/semaphore.h.
11708 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11710 * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
11713 2003-01-14 Ulrich Drepper <drepper@redhat.com>
11715 * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
11716 must be used and mapping failed.
11717 Reported by Luke Elliott <luke.elliott@activfinancial.com>.
11719 * Makefile (CFLAGS-pthread_self.os): Define this, not
11720 CFLAGS-pthread_self.c.
11722 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11724 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
11725 lll_unlock_wake_cb.
11727 * Makefile (libpthread-routines): Add version. Add rules to build
11728 version.os and banner.h.
11729 * version.c: New file.
11731 2003-01-13 Jakub Jelinek <jakub@redhat.com>
11733 * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
11734 the alias unconditional.
11735 * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
11737 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11739 * Makefile (CFLAGS-pthread_self.c): New definition.
11741 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11743 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
11744 INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
11745 * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
11746 * init.c (__pthread_initialize_minimal_internal): Likewise.
11748 2003-01-07 Jakub Jelinek <jakub@redhat.com>
11750 * pthreadP.h (__pthread_cond_timedwait): Add prototype.
11752 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
11753 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
11754 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
11755 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
11756 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
11757 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
11759 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11761 * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
11762 * pt-system.c (LIBC_CANCEL_HANDLED): Add.
11763 * tst-cancel-wrappers.sh: Remove all exceptions.
11765 2003-01-05 Ulrich Drepper <drepper@redhat.com>
11767 * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
11768 features. Reported by Marijn Ros <marijn@mad.scientist.com>.
11770 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
11771 Use __libc_pthread_functions array if SHARED.
11773 * pthreadP.h: Move pthread_cond_2_0_t definition to...
11774 * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
11776 * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
11777 (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
11778 __libc_key_create, __libc_getspecific, __libc_setspecific): Use
11779 __libc_ptf_call instead of __libc_maybe_call.
11780 (PTF): New #define.
11781 (__libc_cleanup_region_start): Wrap function name with PTF call.
11782 (__libc_cleanup_region_end): Likewise.
11783 (__libc_cleanup_end): Likewise.
11785 * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
11786 * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
11787 * pthread_key_create.c: Add __pthread_key_create_internal alias.
11788 * pthreadP.h: Add prototypes.
11790 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
11791 __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
11792 __pthread_rwlock_unlock aliases.
11793 * pthreadP.h: Add prototypes for new aliases.
11795 * pthreadP.h (struct pthead_functions): Moved to...
11796 * sysdeps/pthread/pthread-functions.h: ...here. New file.
11797 * init.c (pthread_functions): Add initializers for new elements.
11799 * cleanup_defer.c: Add __pthread_cleanup_push_defer and
11800 __pthread_cleanup_pop_restore aliases.
11801 * pthreadP.h: Add prototypes.
11803 * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
11804 and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
11805 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
11806 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
11807 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
11808 * pthreadP.h: Adjust prototypes and callers.
11810 2003-01-04 Ulrich Drepper <drepper@redhat.com>
11812 * Makefile (tests): Add tst-cancel7.
11813 (tst-cancel7-ARGS): New variable.
11814 * tst-cancel7.c: New file.
11816 * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
11817 around gcc defficiencies.
11818 * old_pthread_cond_signal.c: Likewise.
11819 * old_pthread_cond_timedwait.c: Likewise.
11820 * old_pthread_cond_wait.c: Likewise.
11822 * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
11824 2003-01-03 Ulrich Drepper <drepper@redhat.com>
11826 * Makefile (tests): Add tst-cond7.
11827 * tst-cond7.c: New file.
11829 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
11830 (condvar_cleanup): Get condvar address from the right place.
11832 * atomic.h: Correct definitions of atomic_full_barrier,
11833 atomic_read_barrier, atomic_write_barrier.
11835 * old_pthread_cond_broadcast.c: Make memory allocate and initialization
11837 * old_pthread_cond_signal.c: Likewise.
11838 * old_pthread_cond_timedwait.c: Likewise.
11839 * old_pthread_cond_wait.c: Likewise.
11841 2003-01-03 Jakub Jelinek <jakub@redhat.com>
11843 * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
11845 2003-01-03 Ulrich Drepper <drepper@redhat.com>
11847 * pthreadP.h (pthread_cond_2_0_t): New type.
11848 (struct pthread_functions): Use new type for 2.0 condvar callbacks.
11849 Use new type for the 2.0 condvar function prototypes.
11850 * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
11851 * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
11853 * old_pthread_cond_destroy.c: Likewise.
11854 * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
11855 * old_pthread_cond_signal.c: Likewise.
11856 * old_pthread_cond_timedwait.c: Likewise.
11857 * old_pthread_cond_wait.c: Likewise.
11859 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
11860 (__pthread_cond_wait): Don't save cancellation mode and seq value
11863 * herrno.c (__h_errno_location): Don't define as weak.
11865 2003-01-02 Jakub Jelinek <jakub@redhat.com>
11867 * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
11868 pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
11869 and pthread_cond_wait.
11870 * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
11872 (__pthread_cond_broadcast_2_0): ... this.
11873 * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
11875 (__pthread_cond_destroy_2_0): ... this.
11876 * old_pthread_cond_init.c (__old_pthread_cond_init):
11878 (__pthread_cond_init_2_0): ... this.
11879 * old_pthread_cond_signal.c (__old_pthread_cond_signal):
11881 (__pthread_cond_signal_2_0): ... this.
11882 * old_pthread_cond_wait.c (__old_pthread_cond_wait):
11884 (__pthread_cond_wait_2_0): ... this.
11885 * pthread_cond_destroy.c: Include shlib-compat.h.
11886 (pthread_cond_destroy): Change strong_alias into versioned_symbol.
11887 * pthread_cond_init.c: Include shlib-compat.h.
11888 (pthread_cond_init): Change strong_alias into versioned_symbol.
11889 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
11890 fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
11892 (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
11893 __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
11894 __pthread_cond_wait_2_0): New prototypes.
11895 (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
11896 __old_pthread_cond_init, __old_pthread_cond_signal,
11897 __old_pthread_cond_wait): Removed.
11898 * init.c: Include shlib-compat.h.
11899 (pthread_functions): Guard ptr___pthread_attr_init_2_0
11900 initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
11901 Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
11902 ptr___pthread_cond_*_2_0 fields.
11903 * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
11904 pthread_cond_*@GLIBC_2.0 compatibility symbols.
11906 * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
11907 LIBC_SIGACTION was not yet defined.
11908 [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
11909 [!defined LIBC_SIGACTION] (__sigaction): New function and
11911 [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
11912 [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
11914 2003-01-02 Jakub Jelinek <jakub@redhat.com>
11916 * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
11918 2003-01-02 Ulrich Drepper <drepper@redhat.com>
11920 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
11921 New, larger type definition.
11922 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
11924 * Versions [libpthread]: Add definitions for new pthread_cond_*
11925 interfaces for version GLIBC_2.3.2.
11926 * pthread_cond_init.c: Update initialization for new type definition.
11927 * Makefile (libpthread-routines): Remove pthread_cond_wait,
11928 pthread_cond_timedwait, pthread_cond_signal, and
11929 pthread_cond_broadcast. Add old_pthread_cond_init,
11930 old_pthread_cond_destroy, old_pthread_cond_wait,
11931 old_pthread_cond_timedwait, old_pthread_cond_signal, and
11932 old_pthread_cond_broadcast.
11933 * old_pthread_cond_broadcast.c: New file.
11934 * old_pthread_cond_destroy.c: New file.
11935 * old_pthread_cond_init.c: New file.
11936 * old_pthread_cond_signal.c: New file.
11937 * old_pthread_cond_timedwait.c: New file.
11938 * old_pthread_cond_wait.c: New file.
11939 * pthreadP.h: Add prototypes for the compatibility interfaces.
11941 * pthread_cond_destroy.c: Don't include <errno.h>.
11943 2003-01-01 Ulrich Drepper <drepper@redhat.com>
11945 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
11946 unnecessary zero offset when addressing MUTEX.
11948 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11950 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
11952 * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
11953 for __register_atfork.
11955 2002-12-31 Jakub Jelinek <jakub@redhat.com>
11957 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
11958 instead of ASSEMBLER test macro.
11960 * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
11961 __libc_current_sigrtmax): Add libc_hidden_def.
11963 * sysdeps/pthread/list.h: Remove assert.h include.
11965 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11967 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
11968 __pthread_initialize_minimal_internal not
11969 __pthread_initialize_minimal.
11971 2002-12-30 Ulrich Drepper <drepper@redhat.com>
11973 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
11974 __pthread_initialize_minimal as hidden.
11976 * init.c (__pthread_initialize_minimal_internal): Don't mark as
11979 2002-12-31 Jakub Jelinek <jakub@redhat.com>
11981 * Makefile ($(inst_libdir)/libpthread.so): Depend on
11982 $(common-objpfx)format.lds, include that into the output script.
11984 (extra-B-pthread.so): Change linuxthreads/ into nptl/.
11986 2002-12-28 Andreas Jaeger <aj@suse.de>
11988 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
11989 nsec resolution changes.
11990 (xstat64_conv): Likewise.
11991 (xstat32_conv): Likewise.
11992 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
11993 struct kernel_stat.
11994 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
11995 structs stat and stat64.
11996 * time/time.h (__timespec_defined): Define for __USE_MISC.
11997 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
11999 2002-12-30 Jakub Jelinek <jakub@redhat.com>
12001 * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
12003 (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
12004 (pthread_exit): Use strong_alias to avoid warnings.
12005 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
12006 and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
12007 ptr___pthread_attr_init_2_*.
12008 * init.c (pthread_functions): Adjust.
12010 2002-12-29 Ulrich Drepper <drepper@redhat.com>
12012 * forward.c: Make all functions available by default again. It
12013 caused too much trouble.
12015 * pt-siglongjmp.c: Removed.
12017 2002-12-28 Jakub Jelinek <jakub@redhat.com>
12019 * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
12020 (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
12021 * sysdeps/i386/Makefile: New file.
12022 * sysdeps/i386/tcb-offsets.sym: New file.
12023 * sysdeps/pthread/tcb-offsets.h: New file.
12024 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
12025 Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
12027 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
12028 __register_atfork...
12029 (GLIBC_2.3.2): ...here.
12031 2002-12-28 Ulrich Drepper <drepper@redhat.com>
12033 * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
12034 pthread_attr_setstackaddr with __attribute_deprecated__.
12036 2002-12-27 Jakub Jelinek <jakub@redhat.com>
12038 * pt-system.c (system): Remove cancellation handling.
12039 * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
12040 cancellation routines.
12042 2002-12-28 Ulrich Drepper <drepper@redhat.com>
12044 * descr.h: Include <dl-sysdep.h>.
12045 (struct pthread): Move header.data.list to the back of the struct.
12046 * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
12047 (MULTIPLE_THREADS_OFFSET): Adjust offset.
12048 (SYSINFO_OFFSEET): Likewise.
12050 2002-12-27 Jakub Jelinek <jakub@redhat.com>
12052 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
12054 (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
12055 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
12056 DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
12057 (USE_DL_SYSINFO): Undef.
12059 2002-12-22 Jakub Jelinek <jakub@redhat.com>
12061 * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
12062 $(common-objpfx)libc.so.
12063 * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
12064 it is bigger than pipe buffer size even on arches with bigger
12066 (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
12068 2002-12-25 Ulrich Drepper <drepper@redhat.com>
12070 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
12071 correct errno access for case that USE___THREAD is not defined.
12073 2002-12-24 Ulrich Drepper <drepper@redhat.com>
12075 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
12076 Patch by Marijn Ros <marijn@mad.scientist.com>.
12078 2002-12-22 Roland McGrath <roland@redhat.com>
12080 * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
12082 2002-12-20 Ulrich Drepper <drepper@redhat.com>
12084 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
12086 2002-12-19 Ulrich Drepper <drepper@redhat.com>
12088 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
12089 NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
12090 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
12092 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
12094 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
12095 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
12096 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
12097 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
12098 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
12099 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
12100 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
12101 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
12103 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
12105 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
12107 * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
12109 * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
12111 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
12112 that sysinfo is properly initialized.
12113 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
12114 to 1 only for ld.so.
12116 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
12117 RTLD_CORRECT_DYNAMIC_WEAK.
12119 2002-12-19 Jakub Jelinek <jakub@redhat.com>
12121 * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
12122 Use return 0 as 6th argument to FORWARD4.
12123 * pthread_equal.c: Include pthreadP.h instead of pthread.h.
12125 2002-12-18 Ulrich Drepper <drepper@redhat.com>
12127 * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
12128 * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
12129 Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
12130 (INIT_SYSINFO): New #define.
12131 (TLS_TP_INIT): Use INIT_SYSINFO.
12132 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
12133 At test to make sure SYSINFO_OFFSET value is correct.
12134 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
12136 2002-12-18 Jakub Jelinek <jakub@redhat.com>
12138 * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
12139 * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
12140 * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
12141 [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
12142 __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
12143 __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
12144 __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
12146 2002-12-18 Ulrich Drepper <drepper@redhat.com>
12148 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
12149 macro instead of using int $0x80 directly.
12151 * sysdeps/pthread/bits/stdio-lock.h: New file.
12152 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
12153 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
12154 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
12155 * Makefile (routines): Add libc-lowlevelmutex.
12157 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
12158 __i686.get_pc_thunk.dx.
12160 2002-12-17 Jakub Jelinek <jakub@redhat.com>
12162 * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
12163 (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
12164 ($(objpfx)tst-cancel-wrappers.out): New rule.
12165 * tst-cancel-wrappers.sh: New test.
12166 * tst-locale1.c: Include signal.h.
12167 (uselocale): Test static linking of __libc_current_sigrt*.
12169 2002-12-17 Ulrich Drepper <drepper@redhat.com>
12171 * Makefile (tests): Add tst-cancel6.
12172 * tst-cancel6.c: New file
12174 2002-12-17 Jakub Jelinek <jakub@redhat.com>
12176 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
12177 Define meaningfully for assembler as well.
12178 * pthreadP.h (struct pthread_functions): Remove
12179 ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
12180 and ptr_pthread_attr_init_2_1 fields.
12181 * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
12182 and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
12183 * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
12184 (FORWARD3): Define using FORWARD4.
12185 (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
12187 * pt-system.c: Remove duplicate stdlib.h include.
12189 2002-12-16 Ulrich Drepper <drepper@redhat.com>
12191 * sem_init.c: Define sem_init@GLIBC_2.0.
12192 * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
12193 * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
12195 * flockfile.c: Moved to...
12196 * sysdeps/pthread/flockfile.c: ...here. New file.
12197 * funlockfile.c: Moved to...
12198 * sysdeps/pthread/funlockfile.c: ...here. New file.
12199 * ftrylockfile.c: Moved to...
12200 * sysdeps/pthread/ftrylockfile.c: ...here. New file.
12202 2002-12-16 Jakub Jelinek <jakub@redhat.com>
12204 * libc-cancellation.c: Guard both function with
12205 #if !defined NOT_IN_libc.
12206 * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
12207 automatically provided pthread wrappers.
12208 * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
12209 CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
12211 * pt-open.c: Removed.
12212 * pt-fcntl.c: Removed.
12213 * pt-fsync.c: Removed.
12214 * pt-lseek.c: Removed.
12215 * pt-msgrcv.c: Removed.
12216 * pt-msgsnd.c: Removed.
12217 * pt-msync.c: Removed.
12218 * pt-nanosleep.c: Removed.
12219 * pt-open64.c: Removed.
12220 * pt-pause.c: Removed.
12221 * pt-pread.c: Removed.
12222 * pt-pread64.c: Removed.
12223 * pt-pwrite.c: Removed.
12224 * pt-pwrite64.c: Removed.
12225 * pt-read.c: Removed.
12226 * pt-recv.c: Removed.
12227 * pt-recvfrom.c: Removed.
12228 * pt-recvmsg.c: Removed.
12229 * pt-send.c: Removed.
12230 * pt-sendto.c: Removed.
12231 * pt-sigtimedwait.c: Removed.
12232 * pt-sigwait.c: Removed.
12233 * pt-wait.c: Removed.
12234 * pt-waitpid.c: Removed.
12235 * pt-write.c: Removed.
12236 * pt-accept.c: Removed.
12237 * pt-close.c: Removed.
12238 * pt-connect.c: Removed.
12239 * pt-lseek64.c: Removed.
12240 * pt-sendmsg.c: Removed.
12241 * pt-tcdrain.c: Removed.
12243 2002-12-15 Ulrich Drepper <drepper@redhat.com>
12245 * init.c (__pthread_initialize_minimal_internal): Renamed from
12246 __pthread_initialize_minimal. Make old name an alias. This
12247 converts a normal relocation into a relative relocation.
12249 * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
12251 * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
12252 readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
12253 * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
12254 pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
12255 pt-sigwaitinfo, pt-waitid, and pt-writev.
12256 * pt-creat.c: Removed.
12257 * pt-poll.c: Removed.
12258 * pt-pselect.c: Removed.
12259 * pt-readv.c: Removed.
12260 * pt-select.c: Removed.
12261 * pt-sigpause.c: Removed.
12262 * pt-sigsuspend.c: Removed.
12263 * pt-sigwaitinfo.c: Removed.
12264 * pt-waitid.c: Removed.
12265 * pt-writev.c: Removed.
12267 * init.c (pthread_functions): New variable.
12268 (__pthread_initialize_minimal): Pass pointer to pthread_functions
12269 (or NULL) to __libc_pthread_init.
12270 * forward.c: Rewrite to use __libc:pthread_functions array to get
12271 function addresses.
12272 * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
12274 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
12275 Take new parameter. Copy content of variable pointed to by it
12276 to __libc_pthread_init.
12278 * pthreadP.h (struct pthread_functions): New type.
12279 (__libc_pthread_init): Declare.
12281 * pthread_attr_destroy.c: Add namespace protected alias.
12282 * pthread_attr_getdetachstate.c: Likewise.
12283 * pthread_attr_getinheritsched.c: Likewise.
12284 * pthread_attr_getschedparam.c: Likewise.
12285 * pthread_attr_getschedpolicy.c: Likewise.
12286 * pthread_attr_getscope.c: Likewise.
12287 * pthread_attr_setdetachstate.c: Likewise.
12288 * pthread_attr_setinheritsched.c: Likewise.
12289 * pthread_attr_setschedparam.c: Likewise.
12290 * pthread_attr_setschedpolicy.c: Likewise.
12291 * pthread_attr_setscope.c: Likewise.
12292 * pthread_cond_broadcast.c: Likewise.
12293 * pthread_cond_destroy.c: Likewise.
12294 * pthread_cond_init.c: Likewise.
12295 * pthread_cond_signal.c: Likewise.
12296 * pthread_cond_wait.c: Likewise.
12297 * pthread_condattr_destroy.c: Likewise.
12298 * pthread_condattr_init.c: Likewise.
12299 * pthread_equal.c: Likewise.
12300 * pthread_exit.c: Likewise.
12301 * pthread_getschedparam.c: Likewise.
12302 * pthread_self.c: Likewise.
12303 * pthread_setcancelstate.c: Likewise.
12304 * pthread_setschedparam.c: Likewise.
12305 * pthread_mutex_destroy.c: Likewise.
12306 * pthread_mutex_init.c: Likewise.
12307 * pthreadP.h: Add prototypes for the aliases.
12309 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
12310 multiple_threads member in correct TCB to 1.
12312 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
12313 SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
12314 member of thread decriptor, otherwise return unconditionally 1.
12316 2002-12-14 Ulrich Drepper <drepper@redhat.com>
12318 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
12319 regular Linux version. Remove file.
12320 * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
12321 * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
12322 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
12323 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
12324 * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
12325 * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
12326 * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
12327 * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
12328 * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
12329 * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
12330 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
12331 * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
12332 * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
12333 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
12334 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
12335 * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
12336 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
12337 * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
12338 * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
12339 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
12340 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
12341 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
12342 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
12343 * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
12344 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
12345 * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
12346 * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
12347 * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
12348 * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
12349 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
12351 2002-12-14 Jakub Jelinek <jakub@redhat.com>
12353 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
12354 * sysdeps/unix/sysv/linux/open.c: Removed.
12355 * sysdeps/unix/sysv/linux/fsync.c: Removed.
12356 * sysdeps/unix/sysv/linux/lseek.c: Removed.
12357 * sysdeps/unix/sysv/linux/msync.c: Removed.
12358 * sysdeps/unix/sysv/linux/read.c: Removed.
12359 * sysdeps/unix/sysv/linux/close.c: Removed.
12360 * sysdeps/unix/sysv/linux/creat.c: Removed.
12361 * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
12362 * sysdeps/unix/sysv/linux/pause.c: Removed.
12363 * sysdeps/unix/sysv/linux/select.c: Removed.
12364 * sysdeps/unix/sysv/linux/write.c: Removed.
12366 2002-12-14 Ulrich Drepper <drepper@redhat.com>
12368 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
12369 element in TCB to see whether locking is needed.
12371 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
12372 MULTIPLE_THREADS_OFFSET value is correct.
12374 * sysdeps/unix/sysv/linux/close.c: New file.
12375 * sysdeps/unix/sysv/linux/connect.S: New file.
12376 * sysdeps/unix/sysv/linux/creat.c: New file.
12377 * sysdeps/unix/sysv/linux/fsync.c: New file.
12378 * sysdeps/unix/sysv/linux/llseek.c: New file.
12379 * sysdeps/unix/sysv/linux/lseek.c: New file.
12380 * sysdeps/unix/sysv/linux/msgrcv.c: New file.
12381 * sysdeps/unix/sysv/linux/msgsnd.c: New file.
12382 * sysdeps/unix/sysv/linux/msync.c: New file.
12383 * sysdeps/unix/sysv/linux/nanosleep.c: New file.
12384 * sysdeps/unix/sysv/linux/open.c: New file.
12385 * sysdeps/unix/sysv/linux/open64.c: New file.
12386 * sysdeps/unix/sysv/linux/pause.c: New file.
12387 * sysdeps/unix/sysv/linux/poll.c: New file.
12388 * sysdeps/unix/sysv/linux/pread.c: New file.
12389 * sysdeps/unix/sysv/linux/pread64.c: New file.
12390 * sysdeps/unix/sysv/linux/pselect.c: New file.
12391 * sysdeps/unix/sysv/linux/pwrite.c: New file.
12392 * sysdeps/unix/sysv/linux/pwrite64.c: New file.
12393 * sysdeps/unix/sysv/linux/readv.c: New file.
12394 * sysdeps/unix/sysv/linux/recv.S: New file.
12395 * sysdeps/unix/sysv/linux/recvfrom.S: New file.
12396 * sysdeps/unix/sysv/linux/recvmsg.S: New file.
12397 * sysdeps/unix/sysv/linux/select.c: New file.
12398 * sysdeps/unix/sysv/linux/send.S: New file.
12399 * sysdeps/unix/sysv/linux/sendmsg.S: New file.
12400 * sysdeps/unix/sysv/linux/sendto.S: New file.
12401 * sysdeps/unix/sysv/linux/sigpause.c: New file.
12402 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
12403 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
12404 * sysdeps/unix/sysv/linux/sigwait.c: New file.
12405 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
12406 * sysdeps/unix/sysv/linux/system.c: New file.
12407 * sysdeps/unix/sysv/linux/tcdrain.c: New file.
12408 * sysdeps/unix/sysv/linux/wait.c: New file.
12409 * sysdeps/unix/sysv/linux/waitid.c: New file.
12410 * sysdeps/unix/sysv/linux/waitpid.c: New file.
12411 * sysdeps/unix/sysv/linux/writev.c: New file.
12412 * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
12414 * pt-readv.c: Fix comment.
12416 2002-12-14 Jakub Jelinek <jakub@redhat.com>
12418 * tst-cleanup1.c: Include stdlib.h.
12420 * tst-cancel5.c: New test.
12421 * Makefile (tests): Add tst-cancel5.
12422 (tst-cancel5): Link against libc.so libpthread.so in that order.
12424 2002-12-13 Ulrich Drepper <drepper@redhat.com>
12426 * forward.c (test_loaded): Prevent recursive calls.
12428 * Makefile (routines): Add libc-cancellation.
12429 * libc-cancellation.c: New file.
12430 * descr.h (struct pthread): Add multiple_threads field.
12431 * allocatestack.c (allocate_stack): Initialize multiple_header field of
12432 new thread descriptor to 1.
12433 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
12434 Initialize multiple_thread field after successful thread creation.
12435 * cancellation.c (__do_cancel): Move to pthreadP.h.
12436 (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
12437 (__pthread_disable_asynccancel): Add internal_function attribute.
12438 * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
12439 * pthread_setcancelstate.c: Likewise.
12440 * pthread_setcanceltype.c: Likewise.
12441 * pthread_exit.c: Likewise.
12442 * pthreadP.h (CANCELLATION_P): Likewise.
12443 (__do_cancel): Define as static inline.
12444 (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
12445 (__libc_enable_asynccancel, __libc_disable_asynccancel): New
12447 * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
12448 fields. Define MULTIPLE_THREADS_OFFSET.
12449 * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
12451 * sysdeps/unix/sysv/linux/accept.S: New file.
12452 * sysdeps/unix/sysv/linux/read.c: New file.
12453 * sysdeps/unix/sysv/linux/write.c: New file.
12454 * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
12455 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
12456 initialization of __libc_locking_needed.
12457 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
12458 __libc_locking_needed, use multiple_threads field in TCB.
12459 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
12461 2002-12-12 Ulrich Drepper <drepper@redhat.com>
12463 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
12465 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
12467 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
12468 access to __libc_locking_needed for PIC.
12470 2002-12-12 Jakub Jelinek <jakub@redhat.com>
12472 * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
12473 declare for libc.so.
12474 (__libc_lock_init, __libc_lock_init_recursive): Change into comma
12476 (__libc_lock_lock): Put into statement expression.
12477 (__libc_lock_unlock): Remove trailing semicolon.
12478 * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
12480 2002-12-12 Roland McGrath <roland@redhat.com>
12482 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
12483 "m" constraint to refer to __libc_locking_needed. Declare it here.
12485 2002-12-12 Ulrich Drepper <drepper@redhat.com>
12487 * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
12488 * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
12489 Initialize __libc_locking_needed.
12490 * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
12491 instead of __register_pthread_fork_handler.
12492 * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
12493 * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
12494 fork-gen with libc_pthread_init.
12495 * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
12496 of __register_pthread_fork_handler.
12497 * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
12498 of __register_pthread_fork_handler.
12499 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
12500 __libc_locking_needed to determine whether lock prefix can be avoided.
12501 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
12503 2002-12-11 Ulrich Drepper <drepper@redhat.com>
12505 * Makefile (tests): Add tst-cleanup1.
12506 * tst-cleanup1.c: New file.
12507 * cancellation.c (__cleanup_thread): Removed.
12508 (__do_cancel): Remove call to __cleanup_thread.
12509 * pthreadP.h: Remove __cleanup_thread prorotype.
12511 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
12512 Remember function and argument even if cancellation handler
12513 function is not available.
12514 (__libc_cleanup_region_end): Execute registered function directly if
12515 pthread functions are not available.
12516 (__libc_cleanup_end): Likewise.
12518 * init.c (__pthread_initialize_minimal): Fix initialization in
12519 static lib by preventing gcc from being too clever.
12521 2002-12-10 Ulrich Drepper <drepper@redhat.com>
12523 * init.c (__pthread_initialize_minimal): Remove unneccesary
12526 * Makefile (tests): We can run tst-locale2 now.
12528 2002-12-09 Ulrich Drepper <drepper@redhat.com>
12530 * Versions: Remove duplicated sigwait entry.
12532 2002-12-08 Ulrich Drepper <drepper@redhat.com>
12534 * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
12537 * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
12539 * pthreadP.h: Declare __pthread_enable_asynccancel and
12540 __pthread_disable_asynccancel.
12541 (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
12542 (CANCEL_RESET): Use __pthread_disable_asynccancel.
12543 * cancellation.c (__pthread_enable_asynccancel): New function.
12544 (__pthread_disable_asynccancel): New function.
12545 * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
12546 * pt-close.c: Likewise.
12547 * pt-connect.c: Likewise.
12548 * pt-creat.c: Likewise.
12549 * pt-fcntl.c: Likewise.
12550 * pt-fsync.c: Likewise.
12551 * pt-lseek.c: Likewise.
12552 * pt-lseek64.c: Likewise.
12553 * pt-msgrcv.c: Likewise.
12554 * pt-msgsnd.c: Likewise.
12555 * pt-msync.c: Likewise.
12556 * pt-nanosleep.c: Likewise.
12557 * pt-open.c: Likewise.
12558 * pt-open64.c: Likewise.
12559 * pt-pause.c: Likewise.
12560 * pt-poll.c: Likewise.
12561 * pt-pread.c: Likewise.
12562 * pt-pread64.c: Likewise.
12563 * pt-pselect.c: Likewise.
12564 * pt-pwrite.c: Likewise.
12565 * pt-pwrite64.c: Likewise.
12566 * pt-read.c: Likewise.
12567 * pt-readv.c: Likewise.
12568 * pt-recv.c: Likewise.
12569 * pt-recvfrom.c: Likewise.
12570 * pt-recvmsg.c: Likewise.
12571 * pt-select.c: Likewise.
12572 * pt-send.c: Likewise.
12573 * pt-sendmsg.c: Likewise.
12574 * pt-sendto.c: Likewise.
12575 * pt-sigpause.c: Likewise.
12576 * pt-sigsuspend.c: Likewise.
12577 * pt-sigtimedwait.c: Likewise.
12578 * pt-sigwait.c: Likewise.
12579 * pt-sigwaitinfo.c: Likewise.
12580 * pt-system.c: Likewise.
12581 * pt-tcdrain.c: Likewise.
12582 * pt-wait.c: Likewise.
12583 * pt-waitid.c: Likewise.
12584 * pt-waitpid.c: Likewise.
12585 * pt-write.c: Likewise.
12586 * pt-writev.c: Likewise.
12587 * pthread_join.c: Likewise.
12588 * pthread_timedjoin.c: Likewise.
12590 * pt-sigpause.c (sigsuspend): Call __sigsuspend.
12591 (__xpg_sigpause): New function.
12592 * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
12594 2002-12-07 Ulrich Drepper <drepper@redhat.com>
12596 * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
12598 * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
12599 _GI_pthread_cleanup_pop to pthreadP.h.
12601 * ftrylockfile.c: Use _IO_lock_trylock instead of
12602 pthread_mutex_trylock.
12604 * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
12605 (CANCEL_RESET): Likewise.
12606 (__pthread_setcanceltype_): Declare.
12607 (__pthread_mutex_lock_internal): Declare.
12608 (__pthread_mutex_unlock_internal): Declare.
12609 (__pthread_once_internal): Declare.
12610 (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
12611 (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
12613 * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
12614 and pthread_mutex_unlock.
12615 * pthread_cond_wait.c: Likewise.
12616 * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
12617 * pthread_mutex_unlock.c: Likewise.
12619 * pthread_setcanceltype.c: Add additional alias
12620 __pthread_setcanceltype.
12622 * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
12623 * sem_open.c (sem_open): Likewise.
12624 Use __libc_open, __libc_write, and __libc_close instead of
12625 open, write, and close respectively.
12627 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
12628 Rewrite as statement expression since it must return a value.
12630 * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
12631 * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
12634 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
12635 alias __pthread_once_internal.
12637 * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
12639 2002-12-06 Ulrich Drepper <drepper@redhat.com>
12641 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
12642 * tst-stdio1.c: New file.
12643 * tst-stdio2.c: New file.
12645 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
12647 * Makefile (tests): Comment out tst-locale2 for now.
12648 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
12650 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
12652 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
12653 Use _IO_lock_init instead of explicit assignment.
12655 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
12656 Define __libc_lock_* and __libc_lock_recursive macros with
12657 lowlevellock macros, not pthread mutexes.
12659 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
12660 of pthread_mutex_lock.
12661 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
12662 instead of pthread_mutex_unlock.
12664 2002-12-06 Roland McGrath <roland@redhat.com>
12666 * allocatestack.c (__stack_user): Use uninitialized defn.
12667 * init.c (__pthread_initialize_minimal): Initialize it here.
12669 2002-12-05 Roland McGrath <roland@redhat.com>
12671 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
12673 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
12675 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
12676 missing & here too.
12678 2002-12-05 Ulrich Drepper <drepper@redhat.com>
12680 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
12682 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
12683 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
12684 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
12685 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
12686 for __libc_lock_* macros.
12687 * Makefile (routines): Add libc-lowlevellock.
12689 2002-10-09 Roland McGrath <roland@redhat.com>
12691 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
12692 Under [__PIC__], call the function via the pointer fetched for
12693 comparison rather than a call by name that uses the PLT.
12694 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
12695 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
12696 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
12697 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
12698 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
12700 2002-12-04 Roland McGrath <roland@redhat.com>
12702 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
12704 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
12705 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
12707 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
12709 2002-12-04 Ulrich Drepper <drepper@redhat.com>
12711 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
12712 a completely opaque, non-integer type.
12713 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
12715 2002-12-05 Jakub Jelinek <jakub@redhat.com>
12717 * sysdeps/i386/tls.h: Include stdlib.h.
12718 * sysdeps/x86_64/tls.h: Likewise.
12720 2002-12-04 Ulrich Drepper <drepper@redhat.com>
12722 * Makefile (tests): Add tst-locale2.
12723 (tests-static): Likewise.
12724 * tst-locale2.c: New file.
12726 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
12727 volatile and add memory clobbers to lock operations.
12729 2002-12-03 Ulrich Drepper <drepper@redhat.com>
12731 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
12732 * sysdeps/i386/i486/bits/atomic.h: New file.
12733 * sysdeps/i386/i586/bits/atomic.h: New file.
12734 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
12735 include i486 version.
12736 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
12737 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
12738 Patch by Marijn Ros <marijn@mad.scientist.com>.
12740 * allocatestack.c (get_cached_stack): Don't crash if we first
12741 found a stack with a larger size then needed.
12742 Reported by Hui Huang <hui.huang@sun.com>.
12744 * Makefile (tests): Add tst-sysconf.
12745 * tst-sysconf.c: New file.
12747 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
12748 PTHREAD_THREADS_MAX.
12750 2002-12-02 Roland McGrath <roland@redhat.com>
12752 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
12753 Declare using hidden_proto instead of attribute_hidden, so there are
12754 non-.hidden static symbols for gdb to find.
12755 (__pthread_keys): Likewise.
12756 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
12757 * allocatestack.c (__stack_user): Likewise.
12758 * pthread_create.c (__pthread_keys): Likewise.
12759 (__nptl_threads_events, __nptl_last_event): Make these static instead
12761 * pthread_key_create.c (__pthread_pthread_keys_max,
12762 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
12764 2002-12-02 Ulrich Drepper <drepper@redhat.com>
12766 * Makefile (tests): Add tst-locale1. If buid-static is yes link
12768 * tst-locale1.c: New file.
12770 * pthread_cond_timedwait.c: Include <stdlib.h>.
12772 * Makefile (tests): Add tst-fork2 and tst-fork3.
12773 * tst-fork2.c: New file.
12774 * tst-fork3.c: New file.
12776 2002-11-28 Ulrich Drepper <drepper@redhat.com>
12778 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
12780 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
12781 require it to 200112L.
12783 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
12784 instruction only if HAVE_CMOV is defined.
12785 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
12787 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
12789 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
12791 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
12793 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
12795 2002-11-27 Ulrich Drepper <drepper@redhat.com>
12797 * sysdeps/x86_64/bits/atomic.h: New file.
12799 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
12802 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
12803 possible since gettid cannot fail.
12805 * sysdeps/x86_64/pthreaddef.h: New file.
12807 * sysdeps/i386/pthreaddef.h (gettid): Removed.
12809 * sysdeps/x86_64/pthread_spin_init.c: New file.
12810 * sysdeps/x86_64/pthread_spin_lock.c: New file.
12811 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
12812 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
12814 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
12815 Add missing lock prefix. Minute optimization.
12817 * tst-spin2.c (main): Also check successful trylock call.
12819 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
12820 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
12822 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
12823 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
12825 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
12826 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
12827 value in case of an error. Add support for INTERNAL_SYSCALL.
12829 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
12830 value in case of an error.
12832 * sysdeps/x86_64/tls.h: New file.
12834 2002-11-26 Ulrich Drepper <drepper@redhat.com>
12836 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
12837 takes the array member name and the index as parameters.
12838 (THREAD_SETMEM_NC): Likewise.
12839 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
12840 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
12843 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
12844 to decide which code to use.
12845 (THREAD_SETMEM_NC): Likewise.
12847 * allocatestack.c (queue_stack): Don't remove stack from list here.
12848 Do it in the caller. Correct condition to prematurely terminate
12849 loop to free stacks.
12850 (__deallocate_stack): Remove stack from list here.
12852 2002-11-26 Ulrich Drepper <drepper@redhat.com>
12854 * Makefile (tests): Add tst-stack1.
12855 * tst-stack1.c: New file.
12857 * allocatestack.c (allocate_stack): Initialize the TCB on a user
12860 * pthread_attr_getstack.c: Return bottom of the thread area.
12862 2002-11-25 Ulrich Drepper <drepper@redhat.com>
12864 * Makefile (libpthread-routines): Add pt-allocrtsig and
12865 pthread_kill_other_threads.
12866 * pt-allocrtsig.c: New file.
12867 * pthread_kill_other_threads.c: New file.
12868 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
12869 all three functions.
12870 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
12872 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
12873 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
12874 and __libc_allocate_rtsig_private.
12875 * Versions (libpthread): Export pthread_kill_other_threads_np,
12876 __libc_current_sigrtmin, and __libc_current_sigrtmax.
12878 2002-11-24 Ulrich Drepper <drepper@redhat.com>
12880 * allocatestack.c (allocate_stack): stackaddr in attribute points to
12881 the end of the stack. Adjust computations.
12882 When mprotect call fails dequeue stack and free it.
12883 * pthread_attr_setstack.c: Store top of the stack in stackaddr
12885 * pthread_getattr_np.c: Likewise.
12887 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
12890 2002-11-23 Ulrich Drepper <drepper@redhat.com>
12892 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
12893 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
12895 2002-11-22 Ulrich Drepper <drepper@redhat.com>
12897 * pthread_getspecific.c: Optimize access to first 2nd-level array.
12898 * pthread_setspecific.c: Likewise.
12900 2002-11-21 Ulrich Drepper <drepper@redhat.com>
12902 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
12903 definitions. Get them from the official place.
12904 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
12906 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
12907 Use new CLONE_ flags in clone() calls.
12909 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
12910 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
12912 * Versions: Add pthread_* functions for libc.
12913 * forward.c: New file.
12915 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
12917 * herrno.c: New file.
12920 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
12921 sem_trywait, and sem_timedwait. Add herrno and res.
12922 * sem_init.c: Don't initialize lock and waiters members.
12923 * sem_open.c: Likewise.
12924 * sem_post.c: Removed.
12925 * sem_wait.c: Removed.
12926 * sem_trywait.c: Removed.
12927 * sem_timedwait.c: Removed.
12928 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
12929 Includes full implementations of sem_post, sem_wait, sem_trywait,
12931 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
12932 for new implementation.
12933 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
12934 and waiters fields.
12936 * tst-sem3.c: Improve error message.
12937 * tst-signal3.c: Likewise.
12939 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
12940 to tell the kernel about the termination futex and to initialize tid
12941 member. Don't initialize main_thread.
12942 * descr.h (struct pthread): Remove main_thread member.
12943 * cancelllation.c (__do_cancel): Remove code handling main thread.
12944 The main thread is not special anymore.
12946 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
12947 size of the stacks to stack_cache_actsize.
12949 * pt-readv.c: Add missing "defined".
12950 * pt-sigwait.c: Likewise.
12951 * pt-writev.c: Likewise.
12953 2002-11-09 Ulrich Drepper <drepper@redhat.com>
12955 * Versions: Export __connect from libpthread.
12956 Patch by Luca Barbieri <ldb@ldb.ods.org>.
12958 * Makefile (libpthread-routines): Add pt-raise.
12959 * sysdeps/unix/sysv/linux/raise.c: New file.
12960 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
12961 * sysdeps/generic/pt-raise.c: New file.
12963 * pthread_cond_init.c: Initialize all data elements of the condvar
12964 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
12966 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
12967 * pthread_create.c: Likewise.
12969 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
12970 * tst-key1.c: New file.
12971 * tst-key2.c: New file.
12972 * tst-key3.c: New file.
12974 * Versions: Export pthread_detach for version GLIBC_2.0.
12975 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
12977 2002-11-08 Ulrich Drepper <drepper@redhat.com>
12979 * pthread_key_create.c: Terminate search after an unused key was found.
12980 Patch by Luca Barbieri <ldb@ldb.ods.org>.
12982 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
12983 Patch by Luca Barbieri <ldb@ldb.ods.org>.
12985 2002-10-10 Ulrich Drepper <drepper@redhat.com>
12987 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
12988 dynamic lookup for errno in PIC.
12990 * allocatestack.c (get_cached_stack): Rearrange code slightly to
12991 release the stack lock as soon as possible.
12992 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
12993 the static TLS block.
12994 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
12996 * cancellation.c: Renamed from cancelation.c.
12997 * Makefile: Adjust accordingly.
12998 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
12999 * cleanup_defer.c: Use CANCELLATION_P.
13000 * pthread_testcancel.c: Likewise.
13001 * descr.h: Fix spelling in comments.
13002 * init.c: Likewise.
13003 * pthread_getattr_np.c: Likewise.
13004 * pthread_getschedparam.c: Likewise.
13005 * pthread_setschedparam.c: Likewise.
13006 * Versions: Likewise.
13008 * pt-pselect.c: New file.
13009 * Makefile (libpthread-routines): Add pt-pselect.
13010 * Versions: Add pselect.
13012 * tst-cancel4.c: New file.
13013 * Makefile (tests): Add tst-cancel4.
13015 2002-10-09 Ulrich Drepper <drepper@redhat.com>
13017 * pthread_mutex_lock.c: Always record lock ownership.
13018 * pthread_mutex_timedlock.c: Likewise.
13019 * pthread_mutex_trylock.c: Likewise.
13021 * pt-readv.c: New file.
13022 * pt-writev.c: New file.
13023 * pt-creat.c: New file.
13024 * pt-msgrcv.c: New file.
13025 * pt-msgsnd.c: New file.
13026 * pt-poll.c: New file.
13027 * pt-select.c: New file.
13028 * pt-sigpause.c: New file.
13029 * pt-sigsuspend.c: New file.
13030 * pt-sigwait.c: New file.
13031 * pt-sigwaitinfo.c: New file.
13032 * pt-waitid.c: New file.
13033 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
13034 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
13035 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
13036 * Versions: Add all the new functions.
13038 * tst-exit1.c: New file.
13039 * Makefile (tests): Add tst-exit1.
13041 * sem_timedwait.c: Minor optimization for more optimal fastpath.
13043 2002-10-08 Ulrich Drepper <drepper@redhat.com>
13045 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
13047 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
13048 call. pthread_join is an official cancellation point.
13049 * pthread_timedjoin.c: Likewise.
13051 * pthread_cond_wait.c: Revert order in which internal lock are dropped
13052 and the condvar's mutex are retrieved.
13053 * pthread_cond_timedwait.c: Likewise.
13054 Reported by dice@saros.East.Sun.COM.
13056 2002-10-07 Ulrich Drepper <drepper@redhat.com>
13058 * pthreadP.h: Cut out all type definitions and move them...
13059 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
13060 * pthreadP.h: Include <internaltypes.h>.
13062 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
13063 performance tweaks.
13065 * sem_trywait.c: Shuffle #includes around to get right order.
13066 * sem_timedwait.c: Likewise.
13067 * sem_post.c: Likewise.
13068 * sem_wait.c: Likewise.
13070 * nptl 0.3 released.
13072 * Makefile (tests): Add tst-signal3.
13073 * tst-signal3.c: New file.
13075 2002-10-05 Ulrich Drepper <drepper@redhat.com>
13077 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
13078 the asms modify the sem object.
13079 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
13081 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
13082 the actual members.
13083 * pthreadP.h (struct sem): New type. Actual semaphore type.
13084 * semaphoreP.h: Include pthreadP.h.
13085 * sem_getvalue.c: Adjust to sem_t change.
13086 * sem_init.c: Likewise.
13087 * sem_open.c: Likewise.
13088 * sem_post.c: Likewise.
13089 * sem_timedwait.c: Likewise.
13090 * sem_trywait.c: Likewise.
13091 * sem_wait.c: Likewise.
13093 2002-10-04 Ulrich Drepper <drepper@redhat.com>
13095 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
13096 * tst-basic2.c: New file.
13097 * tst-exec1.c: New file.
13098 * tst-exec2.c: New file.
13099 * tst-exec3.c: New file.
13101 * tst-fork1.c: Remove extra */.
13103 * nptl 0.2 released. The API for IA-32 is complete.