1 2014-02-05 Carlos O'Donell <carlos@redhat.com>
3 * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Skip the
4 test if !__ASSUME_PROC_PID_TASK_COMM and get_self_comm returns
7 2014-01-23 Stefan Liebler <stli@linux.vnet.ibm.com>
9 * tst-tls7.c: Adjust testcase timeout
11 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
14 * tst-cancel-wrappers.sh: Remove system.
16 2014-01-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18 * tst-tls7.c (action): New function.
20 * tst-tls7mod.c (action): Move sem_post to caller.
22 2011-12-12 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24 * sysdeps/powerpc/tls.h (struct tcbhead_t): Add DSO and TAR fields.
25 * nptl/sysdeps/powerpc/tcb-offsets.sym: Likewise.
27 2013-12-09 Carlos O'Donell <carlos@redhat.com>
29 * sysdeps/unix/sysv/linux/tst-setgetname.c: New file.
30 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-setgetname.
32 2013-12-09 Andreas Schwab <schwab@suse.de>
35 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
36 (__pthread_cond_timedwait): Remove wrong cfi_adjust_cfa_offset
37 before __condvar_tw_cleanup2 label.
39 2013-12-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
41 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
42 (CANCEL_FRAMESIZE, CANCEL_PARM_SAVE): New macros to save parameters
43 into our own stack frame instead of the caller's.
44 (PSEUDO): Use them. Use symbolic stack frame offsets.
45 (DOCARGS_1, UNDOCARGS_1): Use CANCEL_PARM_SAVE.
46 (DOCARGS_2, UNDOCARGS_2): Likewise.
47 (DOCARGS_3, UNDOCARGS_3): Likewise.
48 (DOCARGS_4, UNDOCARGS_4): Likewise.
49 (DOCARGS_5, UNDOCARGS_5): Likewise.
50 (DOCARGS_6, UNDOCARGS_6): Likewise.
52 2013-11-26 Ondřej Bílka <neleai@seznam.cz>
54 * sysdeps/i386/tls.h: Use __glibc_reserved instead __unused.
55 * sysdeps/x86_64/tls.h: Likewise.
57 2013-11-25 Paul Pluzhnikov <ppluzhnikov@google.com>
60 * Makefile (tst-getpid2-ENV): New variable.
62 2013-11-20 Paul Pluzhnikov <ppluzhnikov@google.com>
64 * Makefile (tst-cleanup2, tst-cleanupx2): Add -fno-builtin
66 2013-10-30 Mike Frysinger <vapier@gentoo.org>
68 * sysdeps/pthread/configure.in: Moved to ...
69 * sysdeps/pthread/configure.ac: ... here.
70 * sysdeps/x86_64/configure.in: Moved to ...
71 * sysdeps/x86_64/configure.ac: ... here.
72 * sysdeps/pthread/configure: Regenerated.
73 * sysdeps/x86_64/configure: Likewise.
75 2013-10-04 Maciej W. Rozycki <macro@codesourcery.com>
77 * tst-mutex8.c (check_type) [ENABLE_PI]: Handle ENOTSUP failure
78 from pthread_mutex_init.
80 2013-10-01 Siddhesh Poyarekar <siddhesh@redhat.com>
83 * pthread_cond_broadcast.c (__pthread_cond_broadcast)
84 [lll_futex_cmp_requeue_pi && __ASSUME_REQUEUE_PI]: Use
86 * pthread_cond_signal.c (__pthread_cond_signal)
87 [lll_futex_cmd_requeue_pi && __ASSUME_REQUEUE_PI]: Likewise.
89 2013-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
91 * sysdeps/pthread/bits/libc-lock.h [_LIBC && (!NOT_IN_libc ||
92 IS_IN_libpthread)] (__libc_lock_fini_recursive): Use the mutex
93 member of the argument.
94 (__libc_lock_trylock_recursive): Likewise.
95 (__libc_lock_unlock_recursive): Likewise.
97 2013-09-04 Joseph Myers <joseph@codesourcery.com>
99 * sysdeps/unix/sysv/linux/x86_64/cancellation.S
100 [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
101 [SHARED && !NO_HIDDEN].
103 2013-09-03 Siddhesh Poyarekar <siddhesh@redhat.com>
106 * tst-cleanup2.c (do_test): New volatile variable RET to
109 2013-08-30 Ondřej Bílka <neleai@seznam.cz>
111 * sysdeps/pthread/pthread.h: Fix typos.
112 * sysdeps/unix/sysv/linux/internaltypes.h: Likewise.
113 * tst-cancel4.c: Likewise.
115 2013-08-21 Ondřej Bílka <neleai@seznam.cz>
117 * pthread_getschedparam.c: Fix typos.
118 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
120 2013-07-23 David S. Miller <davem@davemloft.net>
122 * tst-cancel4.c (WRITE_BUFFER_SIZE): Adjust comment.
124 2013-07-22 David S. Miller <davem@davemloft.net>
126 * tst-cancel4.c (WRITE_BUFFER_SIZE): Increase to 16384.
128 2013-07-19 Dominik Vogt <vogt@de.ibm.com>
130 * pthread_mutex_lock.c: Fix whitespace.
131 * pthread_mutex_trylock.c: Likewise.
132 * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Likewise.
133 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
134 * sysdeps/unix/sysv/linux/x86/elision-conf.h: Likewise.
135 * sysdeps/unix/sysv/linux/x86/elision-lock.c: Likewise.
136 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
137 * sysdeps/unix/sysv/linux/x86/elision-trylock.c: Likewise.
138 * sysdeps/unix/sysv/linux/x86/force-elision.h: Likewise.
139 * sysdeps/unix/sysv/linux/x86/hle.h: Likewise.
140 * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
141 * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Likewise.
142 * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Likewise.
143 * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Likewise.
145 * sysdeps/unix/sysv/linux/x86/elision-conf.c:
146 Remove __rwlock_rtm_enabled and __rwlock_rtm_read_retries.
147 (elision_init): Don't set __rwlock_rtm_enabled.
148 * sysdeps/unix/sysv/linux/x86/elision-conf.h:
149 Remove __rwlock_rtm_enabled.
151 2013-07-03 H.J. Lu <hongjiu.lu@intel.com>
153 * sysdeps/unix/sysv/linux/x86/init-arch.c: New file.
154 * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
156 2013-07-02 Andi Kleen <ak@linux.intel.com>
158 * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
159 Check ENABLE_LOCK_ELISION.
161 2013-07-02 Andi Kleen <ak@linux.intel.com>
163 * pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
164 Disable elision for PTHREAD_MUTEX_DEFAULT.
166 2013-07-02 Andi Kleen <ak@linux.intel.com>
167 Hongjiu Lu <hongjiu.lu@intel.com>
169 * pthread_mutex_lock.c
170 (__pthread_mutex_lock): Add lock elision support.
171 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
172 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
173 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
174 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
175 * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Likewise.
176 * sysdeps/unix/sysv/linux/x86/Makefile: New file.
177 * sysdeps/unix/sysv/linux/x86/force-elision.h: New file
178 * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
179 * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Likewise.
180 * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Likewise.
181 * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Likewise.
182 * sysdeps/unix/sysv/linux/x86/pthread_mutex_unlock.c: Likewise.
184 2013-07-02 Andi Kleen <ak@linux.intel.com>
186 * tst-mutex5.c: Include config.h.
187 (do_test): Add checks for ENABLE_LOCK_ELISION.
188 * tst-mutex8.c: Include config.h
189 (tf): Add checks for ENABLE_LOCK_ELISION.
190 (check_type): Likewise.
192 2013-07-02 Andi Kleen <ak@linux.intel.com>
194 * pthreadP.h: Add elision types.
195 (PTHREAD_MUTEX_TYPE_ELISION): Add.
196 * sysdeps/pthread/pthread.h: Add elision initializers.
197 (PTHREAD_MUTEX_ELISION_NP, PTHREAD_MUTEX_NO_ELISION_NP,
198 PTHREAD_MUTEX_PSHARED_NP): Add new flags.
199 (__PTHREAD_SPINS): Add.
201 2013-07-02 Andi Kleen <ak@linux.intel.com>
202 Hongjiu Lu <hongjiu.lu@intel.com>
204 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid,
205 lll_timedlock_elision, __lll_lock_elision, __lll_unlock_elision,
206 __lll_trylock_elision, lll_lock_elision, lll_unlock_elision,
207 lll_trylock_elision): Add.
208 * sysdeps/unix/sysv/linux/x86/Makefile: Imply x86.
209 * sysdeps/unix/sysv/linux/x86/elision-conf.c: New file.
210 * sysdeps/unix/sysv/linux/x86/elision-conf.h: New file.
211 * sysdeps/unix/sysv/linux/x86/elision-lock.c: New file.
212 * sysdeps/unix/sysv/linux/x86/elision-timed.c: New file.
213 * sysdeps/unix/sysv/linux/x86/elision-trylock.c: New file.
214 * sysdeps/unix/sysv/linux/x86/elision-unlock.c: New file.
215 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid,
216 lll_timedlock_elision, __lll_lock_elision, __lll_unlock_elision,
217 __lll_trylock_elision, lll_lock_elision, lll_unlock_elision,
218 lll_trylock_elision): Add.
219 * nptl/sysdeps/unix/sysv/linux/x86/hle.h: New file.
220 * elision-conf.h: New file.
222 2013-06-24 Vladimir Nikulichev <v.nikulichev@gmail.com>
225 * pthread_exit.c: Add reference to pthread_create.
227 2013-06-22 Joseph Myers <joseph@codesourcery.com>
229 * pthread_getattr_default_np.c: Include <string.h>.
231 2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com>
233 * Versions (libpthread): Add GLIBC_2.18.
234 (GLIBC_2.18): Add pthread_setattr_default_np and
235 pthread_getattr_default_np.
236 * allocatestack.c (allocate_stack): Synchronize read from
237 __default_pthread_attr.
238 (__reclaim_stacks): Initialize __default_pthread_attr_lock.
239 * nptl-init.c (__pthread_initialize_minimal_internal):
240 Synchronize write to __default_pthread_attr.
241 * pthreadP.h (__default_pthread_attr_lock): Declare.
242 * pthread_attr_getstacksize (__pthread_attr_getstacksize):
243 Synchronize read from __default_pthread_attr.
244 * pthread_create.c (__pthread_create_2_1): Make a local copy of
245 __default_pthread_attr. Check value of flags in IATTR even if
247 * pthread_getattr_default_np.c: New file.
248 * pthread_setattr_default_np.c: New file.
249 * sysdeps/pthread/pthread.h [__USE_GNU]
250 (pthread_getattr_default_np, pthread_setattr_default_np):
252 * tst-default-attr.c: New test case.
253 * Makefile (libpthread-routines): Add
254 pthread_setattr_default_np and pthread_getattr_default_np.
255 (tests): Add tst-default-attr.
256 * vars.c (__default_pthread_attr_lock): Declare and initialize.
258 2013-06-13 Siddhesh Poyarekar <siddhesh@redhat.com>
259 Carlos O'Donell <carlos@redhat.com>
262 * tst-pthread-attr-affinity: New test case.
263 * Makefile (tests): Add it.
264 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
265 (__pthread_attr_getaffinity_new): Copy minimum of source and
266 destination sizes to avoid a buffer overrun.
268 2013-06-10 Carlos O'Donell <carlos@redhat.com>
270 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
271 (lll_futex_wake): Return syscall error.
272 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
273 (lll_futex_wake): Return syscall error.
275 2013-08-06 Ondřej Bílka <neleai@seznam.cz>
277 * sysdeps/pthread/allocalim.h: (__libc_use_alloca): Fix warning.
279 2013-06-06 Ondřej Bílka <neleai@seznam.cz>
281 * tst-cond22.c: Fix leading whitespaces.
282 * tst-umask1.c: Likewise.
284 2013-06-06 Joseph Myers <joseph@codesourcery.com>
286 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Remove
288 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
289 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
290 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
291 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
292 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
293 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
294 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
295 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Likewise.
296 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
297 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
298 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
299 * tst-mutexpp10.c: Likewise.
300 * tst-stackguard1.c: Likewise.
302 2013-05-31 Joseph Myers <joseph@codesourcery.com>
304 * Makefile ($(objpfx)libpthread.so): Remove dependencies on libc
307 2013-05-16 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
309 * pthread_create.c: Add missing #include <stdint.h> due to uint64_t or
311 * sysdeps/pthread/createthread.c: Likewise.
313 2013-05-14 Andreas Jaeger <aj@suse.de>
316 * sysdeps/x86_64/tls.h (struct tcbhead_t): Add __private_ss field.
317 * sysdeps/i386/tls.h (struct tcbhead_t): Likewise.
319 2013-05-09 Andi Kleen <ak@linux.intel.com>
321 * tst-mutex8.c (do_test): Check for ENABLE_PI.
323 2013-04-22 Siddhesh Poyarekar <siddhesh@redhat.com>
325 * pthreadP.h (check_sched_policy_attr): New inline function.
326 (check_sched_priority_attr): Likewise.
327 (check_stacksize_attr): Likewise.
328 (__kernel_cpumask_size, __determine_cpumask_size): Declare
330 (check_cpuset_attr): New inline function.
331 * pthread_attr_setschedparam (__pthread_attr_setschedparam):
332 Use check_sched_priority_attr.
333 * pthread_attr_setschedpolicy.c
334 (__pthread_attr_setschedpolicy): Use check_sched_policy_attr.
335 * pthread_attr_setstack.c (__pthread_attr_setstack): Use
336 check_stacksize_attr.
337 * pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
339 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
340 (__pthread_attr_setaffinity_new): Use check_cpuset_attr.
342 2013-04-11 Andreas Schwab <schwab@suse.de>
344 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
345 (__pthread_cond_timedwait): If possible use FUTEX_WAIT_BITSET to
346 directly use absolute timeout.
348 2013-04-07 Carlos O'Donell <carlos@redhat.com>
350 * sysdeps/unix/sysv/linux/sem_post.c: Include atomic.h.
352 2013-04-04 Siddhesh Poyarekar <siddhesh@redhat.com>
355 * sysdeps/unix/sysv/linux/x86_64/cancellation.S
357 [SHARED && defined DO_VERSIONING && !defined NO_HIDDEN]: Mark
358 __pthread_unwind hidden.
360 2013-03-28 Roland McGrath <roland@hack.frob.com>
362 * pthread_create.c (start_thread) [!SHARED]:
363 Call __call_tls_dtors only if it's not NULL.
365 2013-03-19 Siddhesh Poyarekar <siddhesh@redhat.com>
367 * allocatestack.c (allocate_stack): Use __default_pthread_attr
368 instead of __default_stacksize.
369 * nptl-init.c (__pthread_initialize_minimal_internal):
370 Likewise. Initialize guardsize.
371 * pthreadP.h (__default_pthread_attr): Declare.
372 * pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
373 Use __default_pthread_attr instead of __default_stacksize.
374 * pthread_create.c (default_attr): Remove.
375 (__pthread_create_2_1): Use __default_pthread_attr instead of
377 * vars.c (__default_stacksize): Remove.
378 (__default_pthread_attr): New static variable to store
379 default thread attributes.
381 2013-03-18 Siddhesh Poyarekar <siddhesh@redhat.com>
383 * pthread_barrier_init.c (default_attr): Rename to
385 (pthread_barrier_init): Adjust for the rename.
386 * pthread_mutex_init.c (default_attr): Rename to
388 (__pthread_mutex_init): Adjust for the rename.
389 * pthread_rwlock_init.c (default_attr): Rebane to
391 (__pthread_rwlock_init): Adjust for the rename.
393 2013-03-12 Carlos O'Donell <carlos@redhat.com>
395 * sysdeps/unix/sysv/linux/lowlevellock.c: Include <atomic.h>.
397 2013-03-04 Roland McGrath <roland@hack.frob.com>
399 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h:
400 Change multiple inclusion guard to _LINUX_I686_DL_SYSDEP_H.
402 (HAVE_DL_DISCOVER_OSVERSION): Remove definition, now redundant.
403 (RTLD_PRIVATE_ERRNO): Likewise.
404 (NEED_DL_SYSINFO, DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION):
405 Move macros and associated declaration to ...
406 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
407 Change multiple include guard to _LINUX_I386_DL_SYSDEP_H.
410 2013-03-01 Carlos O'Donell <carlos@redhat.com>
412 * Makefile (tests): Revert last change.
413 (tst-pthread-stack-env-ENV): Likewise.
414 * nptl-init.c (set_default_stacksize): Likewise.
415 (__pthread_initialize_minimal_internal): Likewise.
416 * tst-pthread-stack-env.c: Likewise.
418 2013-03-01 Siddhesh Poyarekar <siddhesh@redhat.com>
420 * tst-oddstacklimit.c: Include stdlib.h.
422 * Makefile (tests): Add tst-pthread-stack-env.
423 (tst-pthread-stack-env-ENV): Set environment for test.
424 * nptl-init.c (set_default_stacksize): New function.
425 (__pthread_initialize_minimal_internal): Accept ARGC, ARGV and
426 ENVP. Initialize __ENVIRON and set __DEFAULT_STACKSIZE.
427 * tst-pthread-stack-env.c: New test case.
429 2013-02-21 David S. Miller <davem@davemloft.net>
431 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
432 (FUTEX_WAIT_REQUEUE_PI): Define.
433 (FUTEX_CMP_REQUEUE_PI): Likewise.
434 (lll_futex_wait_requeue_pi): Likewise.
435 (lll_futex_timed_wait_requeue_pi): Likewise.
436 (lll_futex_cmp_requeue_pi): Likewise.
438 2013-02-21 Carlos O'Donell <carlos@redhat.com>
440 * sysdeps/unix/sysv/linux/fork.c: Fix comment typo.
442 2013-02-18 Siddhesh Poyarekar <siddhesh@redhat.com>
444 * sysdeps/pthread/tst-timer.c: Include stdlib.h for declaration
446 * tst-barrier4.c: Likewise.
447 * tst-robust7.c: Likewise.
450 * pthreadP.h (USE_REQUEUE_PI): New macro to check if mutex is
452 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Use
453 PI-aware futex operations if available and mutex is PI-aware.
454 * pthread_cond_signal.c (__pthread_cond_signal): Likewise.
455 * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait):
457 * pthread_cond_wait.c (__condvar_cleanup): Adjust lock if
458 cancellation occurred just after futex returned successfully
459 from a PI operation with the mutex held.
460 (__pthread_cond_wait): Use PI-aware futex operations if
461 available and mutex is PI-aware.
462 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
463 (FUTEX_WAIT_REQUEUE_PI): Define.
464 (FUTEX_CMP_REQUEUE_PI): Likewise.
465 (lll_futex_wait_requeue_pi): Likewise.
466 (lll_futex_timed_wait_requeue_pi): Likewise.
467 (lll_futex_cmp_requeue_pi): Likewise.
468 * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h
469 (FUTEX_WAIT_REQUEUE_PI): Define.
470 (FUTEX_CMP_REQUEUE_PI): Likewise.
471 (lll_futex_wait_requeue_pi): Likewise.
472 (lll_futex_timed_wait_requeue_pi): Likewise.
473 (lll_futex_cmp_requeue_pi): Likewise.
474 * sysdeps/unix/sysv/linux/kernel-features.h: Define
475 __ASSUME_REQUEUE_PI for Linux version higher than 2.6.31.
477 2013-02-04 Andreas Schwab <schwab@suse.de>
480 * tst-cancel14.c: Include <sys/time.h>.
481 * tst-cancel15.c: Likewise.
482 * tst-mutex9.c: Include <stdint.h>, <stdlib.h> and <sys/time.h>.
483 * tst-stackguard1.c: Include <tls.h>
485 2013-01-16 Andreas Schwab <schwab@suse.de>
488 * sem_open.c (sem_open): Use __mktemp instead of mktemp.
490 2013-01-11 Carlos O'Donell <codonell@redhat.com>
492 * allocatestack.c (allocate_stack): Add comment. Remove assert
495 2013-01-11 H.J. Lu <hongjiu.lu@intel.com>
497 * Makefile (tst-cancel7-ARGS: Replace $(host-built-program-cmd)
498 with $(host-test-program-cmd).
499 (tst-exec4-ARGS): Likewise.
500 (tst-stackguard1-ARGS): Likewise.
501 ($(objpfx)tst-tls6.out): Don't pass $(elf-objpfx) to tst-tls6.sh.
502 Replace $(rtld-installed-name) with $(test-via-rtld-prefix).
503 * tst-tls6.sh (elf_objpfx): Removed.
504 (rtld_installed_name): Renamed to ...
505 (test_via_rtld_prefix): This.
506 (tst_tls5): Prepend ${test_via_rtld_prefix}.
508 2013-01-02 Joseph Myers <joseph@codesourcery.com>
510 * All files with FSF copyright notices: Update copyright dates
511 using scripts/update-copyrights.
513 2013-01-01 Joseph Myers <joseph@codesourcery.com>
515 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Reformat
518 2012-12-28 Andi Kleen <ak@linux.intel.com>
520 * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Convert
522 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
525 2012-12-27 David S. Miller <davem@davemloft.net>
527 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
528 (lll_futex_timed_wait_bitset): New macro.
530 2012-12-27 Siddhesh Poyarekar <siddhesh@redhat.com>
532 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (SYS_futex):
534 (lll_futex_timed_wait): Replace assembly code with
536 (lll_futex_timed_wait_bitset): Likewise.
537 (lll_futex_wake): Likewise.
538 (lll_futex_requeue): Likewise.
539 (lll_futex_wake_unlock): Likewise.
541 2012-12-08 Siddhesh Poyarekar <siddhesh@redhat.com>
543 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind):
544 Declare LOCAL_VAR as char.
546 2012-12-04 Joseph Myers <joseph@codesourcery.com>
548 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__old_sem_post):
549 Cast result of atomic_increment_val to (void) instead of storing
550 in otherwise-unused variable.
552 2012-12-03 Allan McRae <allan@archlinux.org>
554 * Makefile (LDFLAGS-tst-cond24, LDFLAGS-tst-cond25): Remove.
556 2012-11-26 H.J. Lu <hongjiu.lu@intel.com>
558 * unwind.c (__pthread_unwind): Pass address of unwind_cleanup
560 * sysdeps/i386/tls.h: Include <libc-internal.h>.
561 (THREAD_SETMEM): Use cast_to_integer before casting to uint64_t.
562 (THREAD_SETMEM_NC): Likewise.
563 * sysdeps/x86_64/tls.h: Include <libc-internal.h>.
564 (THREAD_SETMEM): Use cast_to_integer before casting to uint64_t.
565 (THREAD_SETMEM_NC): Likewise.
567 2012-11-21 Joseph Myers <joseph@codesourcery.com>
569 * sysdeps/unix/sysv/linux/sem_post.c (__old_sem_post): Cast result
570 of atomic_increment_val to (void) instead of storing in
571 otherwise-unused variable.
573 * pthread_cond_timedwait.c (__pthread_cond_timedwait)
574 [__NR_clock_gettime]: Cast result of INTERNAL_VSYSCALL to void
575 instead of storing in otherwise-unused variable.
577 2012-11-14 Marcus Shawcroft <marcus.shawcroft@linaro.org>
579 * Makefile (CFLAGS-open.c, CFLAGS-open64.c, CFLAGS-pause.c)
580 (CFLAGS-recv.c, CFLAGS-send.c): Define.
582 2012-11-06 Chris Metcalf <cmetcalf@tilera.com>
584 * tst-sem14.c (TIMEOUT): Set timeout to 10 seconds.
585 * tst-cond24.c (TIMEOUT): Increase from 10 to 20 seconds.
587 2012-11-05 Siddhesh Poyarekar <siddhesh@redhat.com>
589 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Time out
590 if absolute timeout is negative.
591 [__ASSUME_FUTEX_CLOCK_REALTIME &&
592 lll_futex_timed_wait_bitset]: Use lll_futex_timed_wait_bitset.
593 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
595 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
597 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
598 (__lll_robust_timedlock_wait): Likewise.
599 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
600 (lll_futex_timed_wait_bitset): New macro.
601 * sysdeps/unix/sysv/linux/s390/lowlevellock.h
602 (lll_futex_timed_wait_bitset): Likewise.
604 2012-11-03 David S. Miller <davem@davemloft.net>
606 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
608 (__cpu_relax): Likewise.
610 2012-11-02 H.J. Lu <hongjiu.lu@intel.com>
612 * sysdeps/x86_64/tls.h: Don't include <xmmintrin.h>.
613 (__128bits): New struct typedef.
614 (tcbhead_t): Replace __m128 with __128bits.
616 2012-10-30 Aurelien Jarno <aurelien@aurel32.net>
617 Joseph Myers <joseph@codesourcery.com>
619 * Makefile (tst-cancel7-ARGS): Use exec in --command argument.
621 2012-10-28 David S. Miller <davem@davemloft.net>
623 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
624 Define when we have v9 instructions available.
625 * sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: New file.
626 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S: New
628 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile: New
630 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: Add cpu_relax
631 to libpthread-routines.
633 2012-10-25 Roland McGrath <roland@hack.frob.com>
635 * tst-cond-except.c (TEST_FUNCTION): New macro.
637 2012-10-25 Joseph Myers <joseph@codesourcery.com>
639 * Makefile ($(objpfx)tst-tls6.out): Use $(BASH) not $(SHELL) to
641 * tst-tls6.sh: Use /bin/bash not /bin/sh.
643 2012-10-25 Roland McGrath <roland@hack.frob.com>
645 * tst-basic2.c (do_test): Return RESULT, not always zero.
647 * tst-cond25.c: Include <stdint.h>
648 (waiter): Add casts to uintptr_t between casting integer<->pointer.
649 (timed_waiter): Likewise.
650 (do_test_wait): Likewise.
651 * tst-cond-except.c (thr): Likewise.
652 (do_test): Use prototype definition.
654 2012-10-24 Joseph Myers <joseph@codesourcery.com>
655 Jim Blandy <jimb@codesourcery.com>
657 * Makefile ($(objpfx)tst-tls6.out): Pass $(test-wrapper-env) to
659 * tst-tls6.sh (test_wrapper_env): New variable. Use it to run
660 programs with LD_PRELOAD set.
662 2012-10-24 Roland McGrath <roland@hack.frob.com>
664 * Makefile ($(objpfx)tst-cond11, $(objpfx)tst-cond19): Targets removed.
665 ($(objpfx)tst-sem5, $(objpfx)tst-cancel18): Likewise.
666 ((objpfx)tst-cancelx18, $(objpfx)tst-clock2): Likewise.
667 ($(objpfx)tst-rwlock14): Likewise.
669 2012-10-24 Joseph Myers <joseph@codesourcery.com>
671 * Makefile (tests): Remove tst-oddstacklimit.
672 (test-srcs): New variable.
673 (tst-oddstacklimit-ENV): Remove.
674 [$(run-built-tests) = yes] (tests): Depend on
675 $(objpfx)tst-oddstacklimit.out.
676 [$(run-built-tests) = yes] ($(objpfx)tst-oddstacklimit.out): New
678 * tst-oddstacklimit.c: Do not include "tst-basic1.c". Use
679 setrlimit before executing tst-basic1 test passed to --command.
681 2012-10-23 Joseph Myers <joseph@codesourcery.com>
683 * Makefile [$(cross-compiling) = no]: Change condition to
684 [$(run-built-tests) = yes].
686 2012-10-23 Jim Blandy <jimb@codesourcery.com>
687 Joseph Myers <joseph@codesourcery.com>
689 * Makefile (tst-cancel7-ARGS): Use $(host-built-program-cmd).
690 (tst-exec4-ARGS): Likewise.
691 (tst-stackguard1-ARGS): Likewise.
693 2012-10-21 Jim Blandy <jimb@codesourcery.com>
694 Joseph Myers <joseph@codesourcery.com>
696 * Makefile ($(objpfx)tst-cancel-wrappers.out): Pass $(NM) to
697 tst-cancel-wrappers.sh.
698 * tst-cancel-wrappers.sh: Use nm program given as first argument,
701 2012-10-17 Siddhesh Poyarekar <siddhesh@redhat.com>
703 * tst-cond25.c (do_test_wait): Don't check for return value from
706 2012-10-16 Siddhesh Poyarekar <siddhesh@redhat.com>
709 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
710 (__condvar_tw_cleanup): Adjust the mutex data structure if it
711 was locked by FUTEX_WAIT_REQUEUE_PI.
712 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait
713 (__condvar_w_cleanup): Likewise.
714 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
715 (__condvar_cleanup2): Likewise.
716 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
717 (__condvar_cleanup1): Likewise.
719 2012-10-10 Carlos O'Donell <carlos@systemhalted.org>
721 * sysdeps/pthread/pthread.h [!(defined __GNUC__ &&
722 defined __EXCEPTIONS) && defined __USE_GNU]
723 (pthread_cleanup_push_defer_np): Fix formatting.
725 2012-10-10 Siddhesh Poyarekar <siddhesh@redhat.com>
728 * Makefile (tests): New test case tst-cond25.
729 (LDFLAGS-tst-cond25): Link tst-cond25 against librt.
730 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
731 (__condvar_tw_cleanup): Lock mutex only if we don't already
733 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
734 (__condvar_w_cleanup): Likewise.
735 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add TID_MASK.
736 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
737 (__condvar_cleanup2): Lock mutex only if we don't already
739 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
740 (__condvar_cleanup1): Likewise.
741 * tst-cond25.c: New test case.
743 2012-10-09 Roland McGrath <roland@hack.frob.com>
745 * sysdeps/pthread/configure: Regenerated.
746 * sysdeps/x86_64/configure: Regenerated.
748 2012-10-05 David S. Miller <davem@davemloft.net>
751 * sysdeps/sparc/tls.h (DB_THREAD_SELF_INCLUDE): Delete.
752 (DB_THREAD_SELF): Use constants for the register offsets. Correct
753 the case of a 64-bit debugger with a 32-bit inferior.
755 2012-10-05 H.J. Lu <hongjiu.lu@intel.com>
758 * Makefile (tests-static): Add tst-cancel24-static,
759 tst-cond8-static tst-mutex8-static, tst-mutexpi8-static,
760 tst-sem11-static and tst-sem12-static.
762 (LDLIBS-tst-cancel24-static): New macro.
763 * tst-cancel24-static.cc: New file.
764 * tst-cond8-static.c: Likewise.
765 * tst-mutex8-static.c: Likewise.
766 * tst-mutexpi8-static.c: Likewise.
767 * tst-sem11-static.c: Likewise.
768 * tst-sem12-static.c: Likewise.
770 2012-10-05 Siddhesh Poyarekar <siddhesh@redhat.com>
773 * Makefile (tests): New test case tst-cond24.
774 (LDFLAGS-tst-cond24): Link tst-cond24 against librt.
775 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
776 (__pthread_cond_timedwait): Unlock mutex before going back to
778 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
779 (__pthread_cond_wait): Likewise. Revert handling of EAGAIN
780 return from futex_wait.
781 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
782 (__pthread_cond_timedwait): Unlock mutex before going back to
783 wait in PI case. Set requeue_pi flag only if wait returned 0.
784 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
785 (__pthread_cond_wait): Likewise. Revert handling of EAGAIN
786 return from futex_wait.
787 * tst-cond24.c: New test case.
789 2012-10-04 Roland McGrath <roland@hack.frob.com>
791 * pthread_create.c (start_thread): Use __madvise, not madvise.
793 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
795 * sysdeps/i386/tls.h: Update copyright years.
797 2012-10-02 Siddhesh Poyarekar <siddhesh@redhat.com>
799 * pthread_create.c (start_thread): Fix clone flag name in
800 comment to CLONE_CHILD_CLEARTID.
801 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
802 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
803 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
804 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
805 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
806 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
808 2012-10-01 Siddhesh Poyarekar <siddhesh@redhat.com>
811 * Makefile (tests): Add tst-cond-except.
812 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
813 (__pthread_cond_timedwait): Mark instructions where %ebx is
814 incremented in PI case.
815 (.gcc_except_table): Add entry to jump to __condvar_tw_cleanup2
816 for the marked PI case instructions.
817 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
818 (__pthread_cond_wait): Mark instructions where %ebx is
819 incremented in PI case.
820 (.gcc_except_table): Add entry to jump to __condvar_w_cleanup2
821 for the marked PI case instructions.
822 * tst-cond-except.c: New test case.
824 2012-09-24 Dmitry V. Levin <ldv@altlinux.org>
826 * tst-tls6.sh: Add "set -e".
827 * Makefile: Do not specify -e option when running testsuite
830 * tst-tls6.sh: Add copyright header.
832 2012-09-24 H.J. Lu <hongjiu.lu@intel.com>
834 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Add "()" when casting
835 to uint64_t for 64-bit store.
836 (THREAD_SETMEM_NC): Likewise.
838 2012-09-19 H.J. Lu <hongjiu.lu@intel.com>
840 * sysdeps/i386/tls.h (THREAD_SETMEM): Cast to uint64_t for
842 (THREAD_SETMEM_NC): Likewise.
844 2012-09-14 Jeff Law <law@redhat.com>
847 * sysdeps/pthread/pthread.h: Fix prototype of __sigsetjmp.
849 2012-09-13 H.J. Lu <hongjiu.lu@intel.com>
852 * sysdeps/pthread/bits/libc-lockP.h (__rtld_lock_init_recursive):
855 2012-09-07 H.J. Lu <hongjiu.lu@intel.com>
857 * Makefile (LDFLAGS-tst-cancel24): Renamed to ...
858 (LDLIBS-tst-cancel24): This.
860 2012-09-06 H.J. Lu <hongjiu.lu@intel.com>
863 * Makefile (tests-static): Add tst-cancel21-static.
865 * tst-cancel21-static.c: New file.
867 2012-09-01 Joseph Myers <joseph@codesourcery.com>
869 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
870 [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
871 [__NR_clock_getres]: Make code unconditional.
872 (pthread_getcpuclockid): Remove code left unreachable by removal
875 2012-08-31 Joseph Myers <joseph@codesourcery.com>
878 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Use
879 atomic_compare_and_exchange_bool_rel.
880 * tst-sem14.c: New file.
881 * Makefile (tests): Add tst-sem14.
883 2012-08-15 Roland McGrath <roland@hack.frob.com>
885 * Makefile (CFLAGS-flockfile.c): Use $(libio-mtsafe) instead
887 (CFLAGS-ftrylockfile.c, CFLAGS-funlockfile.c): Likewise.
888 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-fork.c): Likewise.
890 2012-08-16 Joseph Myers <joseph@codesourcery.com>
892 * pthread_cond_timedwait.c (__pthread_cond_timedwait)
893 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
894 * pthread_condattr_setclock.c (pthread_condattr_setclock)
895 [!__ASSUME_POSIX_TIMERS]: Likewise.
896 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
897 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Likewise.
898 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
899 [!__ASSUME_POSIX_TIMERS]: Likewise.
900 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
901 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Likewise.
902 * sysdeps/unix/sysv/linux/timer_create.c [__NR_timer_create]: Make
904 [!__NR-timer_create]: Remove conditional code.
905 (timer_create) [!__ASSUME_POSIX_TIMERS]: Likewise.
906 * sysdeps/unix/sysv/linux/timer_delete.c [__NR_timer_delete]: Make
908 [!__NR_timer_delete]: Remove conditional code.
909 (timer_delete) [!__ASSUME_POSIX_TIMERS]: Likewise.
910 * sysdeps/unix/sysv/linux/timer_getoverr.c
911 [__NR_timer_getoverrun]: Make code unconditional.
912 [!__NR_timer_getoverrun]: Remove conditional code.
913 (timer_getoverrun) [!__ASSUME_POSIX_TIMERS]: Likewise.
914 * sysdeps/unix/sysv/linux/timer_gettime.c [__NR_timer_gettime]:
915 Make code unconditional.
916 [!__NR_timer_gettime]: Remove conditional code.
917 (timer_gettime) [!__ASSUME_POSIX_TIMERS]: Likewise.
918 * sysdeps/unix/sysv/linux/timer_routines.c [__NR_timer_create]:
919 Make code unconditional.
920 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
921 * sysdeps/unix/sysv/linux/timer_settime.c [__NR_timer_settime]:
922 Make code unconditional.
923 [!__NR_timer_settime]: Remove conditional code.
924 (timer_settime) [!__ASSUME_POSIX_TIMERS]: Likewise.
925 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
926 (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Remove
929 2012-08-15 Tom de Vries <vries@codesourcery.com>
930 Maxim Kuvyrkov <maxim@codesourcery.com>
932 * sysdeps/pthread/bits/libc-lockP.h (__libc_lock_lock)
933 (__libc_lock_trylock): Allow pre-existing definitions.
935 2012-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
937 * pthread_spin_lock.c: New file.
938 * pthread_spin_trylock.c: New file.
940 2012-08-08 Joseph Myers <joseph@codesourcery.com>
942 * allocatestack.c (setxid_signal_thread) [__ASSUME_TGKILL]: Make
944 (setxid_signal_thread) [!__ASSUME_TGKILL]: Remove conditional code.
945 * pthread_cancel.c (pthread_cancel) [__ASSUME_TGKILL]: Make code
947 (pthread_cancel) [!__ASSUME_TGKILL]: Remove conditional code.
948 * sysdeps/pthread/createthread.c (do_clone) [__ASSUME_TGKILL]:
949 Make code unconditional.
950 (do_clone) [!__ASSUME_TGKILL]: Remove conditional code.
951 * sysdeps/unix/sysv/linux/pt-raise.c (raise) [__ASSUME_TGKILL ||
952 __NR_tgkill]: Make code unconditional.
953 (raise) [__ASSUME_TGKILL]: Likewise.
954 (raise) [!__ASSUME_TGKILL]: Remove conditional code.
955 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill)
956 [__ASSUME_TGKILL]: Make code unconditional.
957 (__pthread_kill) [!__ASSUME_TGKILL]: Remove conditional code.
958 * sysdeps/unix/sysv/linux/raise.c (raise) [__ASSUME_TGKILL ||
959 __NR_tgkill]: Make code unconditional.
960 (raise) [__ASSUME_TGKILL]: Likewise.
961 (raise) [!__ASSUME_TGKILL]: Remove conditional code.
963 2012-08-07 Joseph Myers <joseph@codesourcery.com>
965 * sysdeps/pthread/createthread.c (create_thread)
966 [!__ASSUME_NO_CLONE_DETACHED]: Remove conditional code.
968 2012-08-03 Joseph Myers <joseph@codesourcery.com>
970 * nptl-init.c (sigcancel_handler) [__ASSUME_CORRECT_SI_PID]: Make
972 (sighandler_setxid) [__ASSUME_CORRECT_SI_PID]: Likewise.
974 2012-07-28 Siddhesh Poyarekar <siddhesh@redhat.com>
976 * tst-pthread-getattr.c (MAX_STACK_SIZE): New macro.
977 (pagesize): New static variable.
978 (allocate_and_test): Return MEM. Rename parameter to TARGET.
979 (check_stack_top): New local variables MEM and PAGEMASK. Cap
980 stack size to MAX_STACK_SIZE. Call allocate_and_test for
981 halfway up the stack top page. Verify that the top page was
983 (do_test): Get pagesize using sysconf.
985 2012-07-25 Andreas Schwab <schwab@linux-m68k.org>
987 * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Remove pseudo_end
989 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Likewise.
990 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO):
993 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
995 * tst-pthread-getattr.c: Revert last change.
997 2012-07-20 Siddhesh Poyarekar <siddhesh@redhat.com>
999 * tst-pthread-getattr.c (MAX_STACK_SIZE): New max cap for stack
1002 (allocate_and_test): Return STACKADDR. Access STACKADDR instead
1004 (check_stack_top): Read valued written into STACKADDR in
1005 allocate_and_test. Cap stack size to MAX_STACK_SIZE.
1007 2012-07-19 Siddhesh Poyarekar <siddhesh@redhat.com>
1009 * nptl-init.c (sighandler_setxid): Fix the comment that
1012 2012-06-23 Thomas Schwinge <thomas@codesourcery.com>
1014 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
1015 (__lll_robust_timedlock_wait): Simplify CFI directives.
1017 2012-06-20 Siddhesh Poyarekar <siddhesh@redhat.com>
1020 * Makefile (tests): Add test case.
1021 * pthread_getattr_np.c (pthread_getattr_np): Deduct pages below
1022 the __libc_stack_end page from stacksize. Truncate stacksize to
1023 make it page aligned when it is computed from RLIMIT_STACK.
1024 * tst-pthread-getattr.c: New test case. Verify that stackaddr is
1027 2012-06-07 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
1030 * sysdeps/sparc/sparc32/pthread_spin_lock.S: Do not use v9
1033 2012-06-04 Siddhesh Poyarekar <siddhesh@redhat.com>
1034 Jakub Jelinek <jakub@redhat.com>
1037 * sysdeps/pthread/pthread.h
1038 [!(defined __GNUC__ && defined __EXCEPTIONS)]
1039 (pthread_cleanup_push, pthread_cleanup_push_defer_np): Use
1040 __libc_unlikely instead of __builtin_expect.
1042 2012-05-30 H.J. Lu <hongjiu.lu@intel.com>
1045 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Removed.
1046 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
1047 * sysdeps/unix/sysv/linux/i386/Implies: New file.
1048 * sysdeps/unix/sysv/linux/x86_64/Implies: Likewise.
1049 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Renamed
1051 * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: This.
1052 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Renamed
1054 * sysdeps/unix/sysv/linux/x86/bits/semaphore.h: This.
1056 2012-05-30 Andreas Schwab <schwab@linux-m68k.org>
1059 * nptl-init.c (pthread_functions): Remove use of INTUSE and
1061 (__pthread_initialize_minimal_internal): Likewise.
1062 * sem_open.c: Likewise.
1063 * sem_unlink.c: Likewise.
1064 * pthreadP.h: Replace _internal aliases by hidden_proto
1066 * pthread_getspecific.c: Replace _internal alias by hidden_def.
1067 * pthread_key_create.c: Likewise.
1068 * pthread_mutex_destroy.c: Likewise.
1069 * pthread_mutex_init.c: Likewise.
1070 * pthread_mutex_lock.c: Likewise.
1071 * pthread_mutex_unlock.c: Likewise.
1072 * pthread_once.c: Likewise.
1073 * pthread_rwlock_rdlock.c: Likewise.
1074 * pthread_rwlock_unlock.c: Likewise.
1075 * pthread_rwlock_wrlock.c: Likewise.
1076 * pthread_setspecific.c: Likewise.
1077 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
1079 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
1081 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
1083 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
1084 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
1085 * sysdeps/unix/sysv/linux/s390/pthread_once.c: Likewise.
1086 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Likewise.
1087 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
1088 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
1089 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
1090 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
1091 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
1092 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
1094 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
1096 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
1099 2012-05-27 Chung-Lin Tang <cltang@codesourcery.com>
1101 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO, LOAD_ARGS_1)
1102 (LOAD_ARGS_2 ,LOAD_ARGS_3 ,LOAD_ARGS_4): Add CFI restores.
1104 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_lock_wait_private)
1105 (__lll_lock_wait, __lll_timedlock_wait, __lll_timedwait_tid): Add CFI
1107 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
1108 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Likewise.
1109 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
1110 (pthread_barrier_wait): Likewise.
1111 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
1112 (__pthread_cond_broadcast): Likewise.
1113 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
1114 (__pthread_cond_signal): Likewise.
1115 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
1116 (__pthread_cond_timedwait): Likewise.
1117 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S (__pthread_cond_wait):
1119 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S
1120 (__pthread_rwlock_rdlock): Likewise.
1121 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
1122 (pthread_rwlock_timedrdlock): Likewise.
1123 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
1124 (pthread_rwlock_timedwrlock): Likewise.
1125 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S
1126 (__pthread_rwlock_unlock): Likewise.
1127 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S
1128 (__pthread_rwlock_wrlock): Likewise.
1129 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post): Likewise.
1130 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Likewise.
1131 * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
1133 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
1135 2012-05-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1138 * nptl/pthread_getattr_np.c (pthread_getattr_np): Use
1139 __libc_stack_end rounded to the end of containing page as the
1142 2012-05-25 Rayson Ho <rho@redhat.com>
1144 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Low-level SystemTap
1146 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
1147 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
1148 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
1149 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
1150 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1151 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
1152 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
1153 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
1155 2012-05-25 Rayson Ho <rho@redhat.com>
1156 Roland McGrath <roland@hack.frob.com>
1158 * DESIGN-systemtap-probes.txt: New file.
1159 * pthread_cond_broadcast.c: SystemTap probes.
1160 * pthread_cond_init.c: Likewise.
1161 * pthread_cond_signal.c: Likewise.
1162 * pthread_cond_wait.c: Likewise.
1163 * pthread_cond_destroy.c: Likewise.
1164 * pthread_create.c: Likewise.
1165 * pthread_join.c: Likewise.
1166 * pthread_mutex_destroy.c: Likewise.
1167 * pthread_mutex_init.c: Likewise.
1168 * pthread_mutex_lock.c: Likewise.
1169 * pthread_mutex_timedlock.c: Likewise.
1170 * pthread_mutex_unlock.c: Likewise.
1171 * pthread_rwlock_destroy.c: Likewise.
1172 * pthread_rwlock_rdlock.c: Likewise.
1173 * pthread_rwlock_unlock.c: Likewise.
1174 * pthread_rwlock_wrlock.c: Likewise.
1175 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1176 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1177 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
1178 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
1179 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1180 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1181 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
1182 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
1184 2012-05-24 Roland McGrath <roland@hack.frob.com>
1186 * pthread_create.c (start_thread): Define pthread_start LIBC_PROBE.
1188 2012-05-17 Andreas Jaeger <aj@suse.de>
1190 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
1191 (HAVE_DL_DISCOVER_OSVERSION): Don't declare _dl_discover_osversion
1192 only for older kernels.
1194 2012-05-15 Joseph Myers <joseph@codesourcery.com>
1196 * pthreadP.h [!__NR_set_robust_list] (__NR_set_robust_list): Do
1199 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1201 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock): Load
1202 futex pointer into RDI_LP. Use RSP_LP to operate on stack.
1203 (lll_robust_lock): Likewise.
1204 (lll_cond_lock): Likewise.
1205 (lll_robust_cond_lock): Likewise.
1206 (lll_timedlock): Likewise.
1207 (lll_robust_timedlock): Likewise.
1208 (lll_unlock): Likewise.
1209 (lll_robust_unlock): Likewise.
1211 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1213 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use
1214 LP_OP(cmp) and RCX_LP on dep_mutex pointer.
1216 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1218 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Use LP_OP(op)
1220 (__gcc_personality_v0): Replace 8-byte data alignment with
1221 LP_SIZE alignment and .quad with ASM_ADDR.
1223 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1225 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Use LP_OP(op)
1227 (__gcc_personality_v0): Replace 8-byte data alignment with
1228 LP_SIZE alignment and .quad with ASM_ADDR.
1230 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1232 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Use LP_OP(cmp) on
1233 NWAITERS, which is unsigned long int.
1235 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1237 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
1238 (__gcc_personality_v0): Replace 8-byte data alignment with
1239 LP_SIZE alignment and .quad with ASM_ADDR.
1241 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1243 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Use
1244 LP_OP(cmp), RSI_LP and R8_LP on dep_mutex pointer. Load
1245 __vdso_clock_gettime pointer into RAX_LP.
1246 (__gcc_personality_v0): Replace 8-byte data alignment with
1247 LP_SIZE alignment and .quad with ASM_ADDR.
1249 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1251 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Use
1252 LP_OP(cmp), RSI_LP and R8_LP on dep_mutex pointer. Load
1253 __vdso_clock_gettime pointer into RAX_LP.
1254 (__gcc_personality_v0): Replace 8-byte data alignment with
1255 LP_SIZE alignment and .quad with ASM_ADDR.
1257 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1259 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Use
1260 LP_OP(cmp) and R8_LP on dep_mutex pointer.
1262 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1264 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Use LP_OP(mov)
1265 to update pointer in memory. Load pointer into RDI_LP.
1267 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
1269 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
1270 (LLL_STUB_UNWIND_INFO_START): Align label to LP_SIZE instead
1272 (LLL_STUB_UNWIND_INFO_END): Likewise.
1273 (lll_timedlock): Load timeout pointer into RDX_LP.
1274 (lll_robust_timedlock): Likewise.
1276 2012-05-15 Siddhesh Poyarekar <siddhesh@redhat.com>
1277 Jakub Jelinek <jakub@redhat.com>
1280 * Makefile (tests): Add test cases.
1281 * descr.h (struct pthread): Add a comment describing multiple_threads.
1282 * pthreadP.h (__pthread_multiple_threads): Expand comment to include
1283 single-process case.
1284 * pthread_cancel.c (pthread_cancel): Enable multiple_threads
1285 before setting cancelstate of the thread.
1286 * sysdeps/unix/sysv/linux/libc_multiple_threads.c
1287 (__libc_multiple_threads): Add explanatory comment.
1288 * tst-cancel-self-cancelstate.c: New test case.
1289 * tst-cancel-self-canceltype.c: Likewise.
1290 * tst-cancel-self-cleanup.c: Supporting file for test cases.
1291 * tst-cancel-self-testcancel.c: New test case.
1292 * tst-cancel-self.c: Likewise.
1293 * vars.c: Expand comment to include single-process case.
1295 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1297 * sysdeps/x86_64/tls.h: Don't include <bits/wordsize.h>.
1298 (tcbhead_t): Remove __x86_64__ check. Align rtld_savespace_sse
1301 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1303 * sysdeps/pthread/pthread.h (__PTHREAD_RWLOCK_INT_FLAGS_SHARED):
1305 (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Check
1306 __PTHREAD_RWLOCK_INT_FLAGS_SHARED instead of __WORDSIZE.
1308 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1310 * shlib-versions: Move x86_64-.*-linux.* entry to ...
1311 * sysdeps/x86_64/64/shlib-versions: Here. New file.
1312 * sysdeps/x86_64/x32/shlib-versions: New file.
1314 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1316 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Define x32
1317 __SIZEOF_PTHREAD_XXX_T.
1318 (__pthread_internal_list): Check __x86_64__ instead of __WORDSIZE.
1319 (pthread_mutex_t): Likewise.
1320 (pthread_rwlock_t): Likewise.
1321 (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New. Defined if __x86_64__
1324 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1326 * sysdeps/x86_64/x32/tls.h: New file.
1328 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1330 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Use uint64_t on 64-bit
1332 (THREAD_SETMEM_NC): Likewise.
1334 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1336 * sysdeps/x86_64/tls.h (THREAD_SELF): Replace movq/%q0 with
1339 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1341 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
1342 (__cleanup_fct_attribute): Check __x86_64__ instead of
1345 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1347 * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER): Check
1348 __PTHREAD_MUTEX_HAVE_PREV instead of __WORDSIZE.
1349 (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Likewise.
1350 (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
1351 (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
1353 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1355 * pthread_create.c (start_thread): Check __PTHREAD_MUTEX_HAVE_PREV
1356 instead of __WORDSIZE.
1358 2012-05-10 Thomas Schwinge <thomas@schwinge.name>
1361 * sysdeps/pthread/bits/libc-lockP.h (__libc_once_get): New macro.
1363 2012-05-09 Chung-Lin Tang <cltang@codesourcery.com>
1365 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
1366 (__pthread_cond_timedwait): Use CFI directives.
1367 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
1368 (__pthread_cond_wait): Likewise.
1369 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Likewise.
1370 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
1372 2012-05-03 David S. Miller <davem@davemloft.net>
1374 * sysdeps/sparc/sparc64/pthread_spin_unlock.S: Fix thinko, we
1375 always have to return 0, especially for the pthread_spin_init
1377 * sysdeps/sparc/sparc32/pthread_spin_lock.S: Add missing trailing
1379 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
1380 * sysdeps/sparc/sparc64/pthread_spin_lock.S: Likewise.
1382 2012-05-02 David S. Miller <davem@davemloft.net>
1384 * sysdeps/sparc/sparc64/pthread_spin_lock.S: New.
1385 * sysdeps/sparc/sparc64/pthread_spin_lock.c: Delete.
1386 * sysdeps/sparc/sparc64/pthread_spin_unlock.S: New.
1387 * sysdeps/sparc/sparc64/pthread_spin_unlock.c: Delete.
1388 * sysdeps/sparc/sparc64/pthread_spin_trylock.S: New.
1389 * sysdeps/sparc/sparc64/pthread_spin_trylock.c: Delete.
1390 * sysdeps/sparc/sparc64/pthread_spin_init.c: New.
1391 * sysdeps/sparc/sparc32/pthread_spin_lock.S: New.
1392 * sysdeps/sparc/sparc32/pthread_spin_lock.c: Delete.
1393 * sysdeps/sparc/sparc32/pthread_spin_trylock.S: New.
1394 * sysdeps/sparc/sparc32/pthread_spin_trylock.c: Delete.
1395 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: New.
1396 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: Delete.
1397 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: New.
1398 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: Delete.
1399 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: New.
1400 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: Delete.
1401 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: New.
1403 2012-05-02 Allan McRae <allan@archlinux.org>
1405 * Makefile: (LDFLAGS-tst-tls5): Use $(no-as-needed).
1406 (LDFLAGS-tst-cancel24): Likewise.
1408 2012-05-02 Paul Pluzhnikov <ppluzhnikov@google.com>
1410 * sysdeps/i386/pthread_spin_lock.S: New.
1411 * sysdeps/i386/pthread_spin_lock.c: Delete.
1412 * sysdeps/x86_64/pthread_spin_lock.S: New.
1413 * sysdeps/x86_64/pthread_spin_lock.c: Delete.
1415 2012-04-28 Andreas Schwab <schwab@linux-m68k.org>
1417 * Makefile ($(objpfx)tst-stack3-mem, $(objpfx)tst-tls6.out): Don't
1418 run when cross-compiling.
1420 2012-04-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1422 * sysdeps/pthread/unwind-forcedunwind.c: Include gnu/lib-names.h
1423 instead of libgcc_s.h.
1425 2012-04-20 Paul Pluzhnikov <ppluzhnikov@google.com>
1427 * sysdeps/x86_64/tls.h (TLS_GET_FS, TLS_SET_FS): Delete.
1429 2012-03-27 David S. Miller <davem@davemloft.net>
1431 * tst-cond16.c (do_test): Use a thread stack size which is either
1432 PTHREAD_STACK_MIN or the page size, whichever is larger.
1433 * tst-cond18.c (do_test): Likewise.
1435 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
1437 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Use
1438 register char * __asm__("rsp") to get stack frame.
1440 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
1442 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (SYS_futex): Use
1443 __NR_futex directly.
1445 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
1447 * unwind.c (unwind_stop): Cast _Unwind_GetCFA return to
1450 2012-03-16 David S. Miller <davem@davemloft.net>
1453 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: Include using <..>
1455 * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c:
1458 2012-03-15 David S. Miller <davem@davemloft.net>
1461 * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: New file.
1463 2012-03-09 Paul Eggert <eggert@cs.ucla.edu>
1466 * pt-crti.S: Replace FSF snail mail address with URL.
1468 2012-03-09 Joseph Myers <joseph@codesourcery.com>
1470 * sysdeps/pthread/pthread.h (__need_clockid_t, __need_timespec):
1471 Do not define before including <time.h>.
1473 2012-03-08 David S. Miller <davem@davemloft.net>
1475 * sysdeps/unix/sysv/linux/sparc/sem_post.c: Update copyright year.
1477 2012-03-08 Thomas Schwinge <thomas@codesourcery.com>
1479 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
1480 Check for timestamp before the Epoch.
1482 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Fix
1485 * tst-sem13.c (do_test): Add another test case.
1486 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
1487 Fix updating nwaiters.
1489 2012-03-07 Joseph Myers <joseph@codesourcery.com>
1492 * sysdeps/pthread/configure.in (libc_cv_forced_unwind): Change
1493 link test to a compile test.
1494 (libc_cv_c_cleanup): Likewise. Declare puts rather than including
1496 * sysdeps/pthread/configure: Regenerated.
1498 2012-03-07 Ulrich Drepper <drepper@gmail.com>
1500 * Makefile (distribute): Remove variable.
1502 2012-01-23 Thomas Schwinge <thomas@codesourcery.com>
1504 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Get rid of
1505 superfluous assignment.
1506 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c (sem_timedwait):
1508 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
1509 (sem_timedwait): Likewise.
1511 2012-03-06 Ulrich Drepper <drepper@gmail.com>
1513 * sysdeps/pthread/bits/libc-lock.h: Move information not needed in
1514 installed headers to...
1515 * sysdeps/pthread/bits/libc-lockP.h: ...here. New file.
1517 2012-03-06 David S. Miller <davem@davemloft.net>
1519 * sysdeps/unix/sysv/linux/sparc/sem_post.c (__new_sem_post): Use
1520 atomic_increment and remove unused local variable.
1521 (__old_sem_post): Likewise.
1523 2012-02-27 David S. Miller <davem@davemloft.net>
1525 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Don't refer to
1526 non-existing __pthread_attr.
1527 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
1528 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
1529 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
1530 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
1531 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
1533 2012-02-26 Ulrich Drepper <drepper@gmail.com>
1535 * sysdeps/pthread/pthread.h: Define __need_clockid_t for __USE_XOPEN2K.
1537 * sysdeps/pthread/pthread.h: Define __need_timespec before including
1539 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Name pthread_attr_t
1541 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
1542 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
1543 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
1544 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
1545 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
1547 2012-02-21 Joseph Myers <joseph@codesourcery.com>
1550 * Makefile (generated): Remove crti.S, crtn.S, defs.h and
1552 [crti.S not in sysdirs] (omit-deps): Do not append.
1553 [crti.S not in sysdirs] (CFLAGS-pt-initfini.s): Remove variable.
1554 [crti.S not in sysdirs] (pt-initfini.c): Remove vpath directive.
1555 [crti.S not in sysdirs] ($(objpfx)crti.S): Remove rule.
1556 [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
1557 [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
1558 [crti.S not in sysdirs] ($(objpfx)crti.o): Likewise.
1559 [crti.S not in sysdirs] ($(objpfx)crtn.o): Likewise.
1560 [crti.S in sysdirs] (extra-objs): Append unconditionally.
1561 [crti.S in sysdirs] ($(objpfx)crti.o): Define rule
1563 * sysdeps/pthread/pt-initfini.c: Remove file.
1565 2012-02-16 Richard Henderson <rth@twiddle.net>
1567 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: Remove file.
1568 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: Remove file.
1570 2012-02-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1572 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: Remove file.
1574 2012-02-16 David S. Miller <davem@davemloft.net>
1576 * sysdeps/sparc/Makefile: Add -fPIC when building pt-crti.S and crtn.S
1578 2012-02-15 Marek Polacek <polacek@redhat.com>
1580 * sysdeps/unix/sysv/linux/x86_64/Makefile: Remove file.
1582 2012-02-09 Paul Eggert <eggert@cs.ucla.edu>
1584 Replace FSF snail mail address with URLs, as per GNU coding standards.
1586 2012-02-08 Andreas Schwab <schwab@linux-m68k.org>
1588 * Makefile (extra-objs) [crti.S in sysdirs]: Add pt-crti.o.
1590 2012-02-08 Joseph Myers <joseph@codesourcery.com>
1592 Support crti.S and crtn.S provided directly by architectures.
1593 * Makefile [crti.S in sysdirs] (omit-deps): Do not append.
1594 [crti.S in sysdirs] (CFLAGS-pt-initfini.s): Do not define variable.
1595 [crti.S in sysdirs] ($(objpfx)pt-initfini.s): Disable rule.
1596 [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
1597 [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
1598 [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
1599 [crti.S in sysdirs] ($(objpfx)crti.o): Likewise.
1600 [crti.S in sysdirs] ($(objpfx)crtn.o): Likewise.
1601 [crti.S in sysdirs] (pt-initfini.c): Remove vpath directive.
1602 [crti.S in sysdirs] ($(objpfx)crti.o): New rule.
1603 * pt-crti.S: New file.
1604 * sysdeps/unix/sysv/linux/i386/Makefile: Remove file.
1606 2012-02-03 Joseph Myers <joseph@codesourcery.com>
1608 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
1609 macros for PIC register setup.
1610 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
1611 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
1612 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
1613 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
1614 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
1616 2012-01-11 Marek Polacek <polacek@redhat.com>
1618 * forward.c (FORWARD_NORETURN): Define macro.
1619 (__pthread_unwind): Use FORWARD_NORETURN macro to avoid warning.
1620 (__pthread_exit): Likewise.
1622 2012-01-10 Ulrich Drepper <drepper@gmail.com>
1624 * sysdeps/pthread/pthread.h: Add const attribute to pthread_equal.
1626 * pthreadP.h: Add noreturn to __pthread_exit.
1627 * sysdeps/pthread/pthread-functions.h: Likewise for ptr___pthread_exit.
1629 2011-12-30 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1631 * sysdeps/unix/sysv/linux/aio_misc.h (__aio_create_helper_thread):
1632 Call pthread_attr_setstacksize() with result of
1633 __pthread_get_minstack() to account for application TLS usage.
1635 2012-01-08 Marek Polacek <polacek@redhat.com>
1637 * sysdeps/unix/sysv/linux/mq_notify.c: Include <nptl/pthreadP.h>.
1639 2012-01-07 Ulrich Drepper <drepper@gmail.com>
1642 * pthreadP.h: Use const instead of __const.
1643 * semaphore.h: Likewise.
1644 * sysdeps/pthread/bits/libc-lock.h: Likewise.
1645 * sysdeps/pthread/bits/sigthread.h: Likewise.
1646 * sysdeps/pthread/pthread.h: Likewise.
1648 * Makefile: Remove elf=yes test, only ELF is supported.
1650 * shlib-versions: Remove entries for ports architectures.
1652 In case anyone cares, the IA-64 architecture could move to ports.
1653 * sysdeps/ia64/*: Removed.
1654 * sysdeps/unix/sysv/linux/ia64/*: Removed.
1656 2011-12-22 Ulrich Drepper <drepper@gmail.com>
1658 * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread): Use
1659 __pthread_get_minstack.
1660 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
1663 * sysdeps/unix/sysv/linux/timer_routines.c: Get minimum stack size
1664 through __pthread_get_minstack.
1665 * nptl-init.c (__pthread_initialize_minimal_internal): Get page size
1666 directly from _rtld_global_ro.
1667 (__pthread_get_minstack): New function.
1668 * pthreadP.h: Declare __pthread_get_minstack.
1669 * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_get_minstack.
1671 2011-12-21 Ulrich Drepper <drepper@gmail.com>
1674 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1675 Correct reading name from file.
1677 2011-12-14 Carlos O'Donell <carlos@systemhalted.org>
1679 * allocatestack.c (allocate_stack): Return errno on failure.
1681 2011-12-14 Jeff Law <law@redhat.com>
1684 * pthread_create.c (__pthread_create_2_1): Translate ENOMEM to EAGAIN.
1686 2011-11-28 Andreas Schwab <schwab@redhat.com>
1688 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Handle
1689 EAGAIN from FUTEX_WAIT_REQUEUE_PI.
1690 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1692 2011-11-15 Ulrich Drepper <drepper@gmail.com>
1694 * pthread_getattr_np.c (pthread_getattr_np): Set FD_CLOEXEC for
1697 2011-10-29 Ulrich Drepper <drepper@gmail.com>
1700 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1701 (__pthread_cond_timedwait): Initialize %r15 correctly also for code
1702 path for kernels with FUTEX_CLOCK_REALTIME.
1703 Debugged by H.J. Lu <hjl.tools@gmail.com>.
1705 2011-10-27 Andreas Schwab <schwab@redhat.com>
1708 * sysdeps/pthread/pthread.h: Use __THREADNL instead of __THREAD
1709 for memory synchronization functions.
1710 * semaphore.h: Likewise.
1712 2011-10-24 Ulrich Drepper <drepper@gmail.com>
1714 * tst-cancel7.c: Avoid warning.
1715 * tst-mutex6.c: Likewise.
1716 * tst-mutex9.c: Likewise.
1717 * tst-mutexpi6.c: Likewise.
1719 2011-10-23 Ulrich Drepper <drepper@gmail.com>
1721 * sysdeps/i386/tls.h: Remove #include <list.h>.
1723 2011-10-15 Ulrich Drepper <drepper@gmail.com>
1725 * pthread_create.c (start_thread): Call __ctype_init.
1727 2011-09-15 Andreas Schwab <schwab@redhat.com>
1729 * sysdeps/pthread/list.h: Define only list_t if __need_list_t is
1731 (list_add): Add atomic_write_barrier.
1732 * descr.h: Define __need_list_t before including <list.h>.
1733 * nptl-init.c: Include <list.h>
1734 * allocatestack.c: Likewise.
1736 2011-09-11 Ulrich Drepper <drepper@gmail.com>
1738 * sysdeps/i386/tls.h: Remove HAVE_TLS_SUPPORT test.
1739 * sysdeps/ia64/tls.h: Likewise.
1740 * sysdeps/powerpc/tls.h: Likewise.
1741 * sysdeps/s390/tls.h: Likewise.
1742 * sysdeps/sh/tls.h: Likewise.
1743 * sysdeps/sparc/tls.h: Likewise.
1744 * sysdeps/x86_64/tls.h: Likewise.
1746 2011-09-10 Ulrich Drepper <drepper@gmail.com>
1748 * sysdeps/pthread/malloc-machine.h: Define MUTEX_INITIALIZER.
1750 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Don't handle
1752 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
1753 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
1754 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
1755 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
1756 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
1757 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
1758 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
1759 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
1760 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
1761 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
1762 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
1763 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
1765 * tst-tls1.c: Support for __thread is now mandatory.
1766 * tst-tls2.c: Likewise.
1767 * tst-tls3.c: Likewise.
1768 * tst-tls3mod.c: Likewise.
1769 * tst-tls4.c: Likewise.
1770 * tst-tls4moda.c: Likewise.
1771 * tst-tls4modb.c: Likewise.
1772 * tst-tls5.h: Likewise.
1774 2011-09-08 Ulrich Drepper <drepper@gmail.com>
1777 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
1778 (pthread_rwlock_timedwrlock): Use correct macro in test.
1779 Patch by H.J. Lu <hongjiu.lu@intel.com>.
1781 2011-09-06 Ulrich Drepper <drepper@gmail.com>
1783 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait): Don't
1784 use gettimeofday vsyscall, just call gettimeofday.
1785 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1786 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
1787 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
1789 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
1791 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1792 Simplify __vdso_clock_gettime use.
1794 2011-09-05 David S. Miller <davem@davemloft.net>
1796 * sysdeps/unix/sysv/linux/sem_timedwait.c (do_futex_timed_wait):
1798 (sem_timedwait): Call it to force an exception region around
1799 the async cancel enable and the futex operation.
1800 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Likewise.
1801 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Likewise.
1802 * sysdeps/unix/sysv/linux/sem_wait.c (do_futex_wait): New function.
1803 (__new_sem_wait): Call it to force an exception region around
1804 the async cancel enable and the futex operation.
1805 * sysdeps/unix/sysv/linux/sparc/sem_wait.c: Likewise.
1806 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Likewise.
1808 2011-08-31 Andreas Schwab <schwab@redhat.com>
1810 * allocatestack.c (setxid_mark_thread): Ensure that the exiting
1813 2011-08-20 David S. Miller <davem@davemloft.net>
1815 * Makefile (tst-cleanup0.out): Fix typo in output redirection.
1817 2011-08-14 Roland McGrath <roland@hack.frob.com>
1819 * sysdeps/i386/pthreaddef.h (TCB_ALIGNMENT): Set to 64, optimal on Atom.
1820 * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Likewise.
1822 2011-08-08 Andreas Schwab <schwab@redhat.com>
1824 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Maintain aligned
1826 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1827 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1829 2011-07-22 Ulrich Drepper <drepper@gmail.com>
1831 * sysdeps/pthread/unwind-forcedunwind.c (_Unwind_Resume): Add read
1833 (__gcc_personality_v0): Likewise.
1834 (_Unwind_ForcedUnwind): Likewise.
1835 (_Unwind_GetCFA): Likewise.
1837 2011-07-14 Roland McGrath <roland@hack.frob.com>
1839 * allocatestack.c (__reclaim_stacks): Use uintptr_t cast rather than
1842 2011-06-30 Ulrich Drepper <drepper@gmail.com>
1844 * nptl-init.c (__nptl_set_robust): New function.
1845 (pthread_functions): Add reference.
1846 * npthreadP.h: Declare __nptl_set_robust.
1847 * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
1848 ptr_set_robust member.
1849 * sysdeps/unix/sysv/linux/fork.c: Call set_robust_list syscall in
1850 child if threads are used.
1852 2011-06-14 Andreas Jaeger <aj@suse.de>
1854 * pthread_rwlock_init.c: Include <string.h> for memset declaration.
1856 2011-05-11 Ulrich Drepper <drepper@gmail.com>
1859 * allocatestack.c (allocate_stack): Convert ENOMEM error to EAGAIN.
1861 2011-04-10 Ulrich Drepper <drepper@gmail.com>
1864 * allocatestack.c (get_cached_stack): Deallocate DTV entries before
1866 Patch partly by Robert Rex <robert.rex@exasol.com>.
1868 2011-01-19 Roland McGrath <roland@redhat.com>
1870 * pthread_cond_wait.c (__pthread_cond_wait): Fix comment typo.
1871 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
1872 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Likewise.
1873 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
1874 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise.
1875 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Likewise.
1877 2011-01-16 Andreas Schwab <schwab@linux-m68k.org>
1879 * Makefile (test-extras): Add tst-cleanup4aux.
1881 2011-01-14 Ulrich Drepper <drepper@gmail.com>
1884 * sysdeps/pthread/setxid.h (__SETXID_1): Add cast to assignment.
1885 (__SETXID_2): Likewise.
1886 (__SETXID_3): Likewise.
1888 2011-01-13 Ulrich Drepper <drepper@gmail.com>
1891 * Versions [libc] (GLIBC_PRIVATE): Export __libc_alloca_cutoff.
1892 * alloca_cutoff.c: Add libc_hidden_def.
1894 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
1897 * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Changed to 32.
1898 * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Defined with alignment
1899 of "struct pthread".
1901 2010-09-21 Andreas Schwab <schwab@redhat.com>
1903 * sysdeps/pthread/pthread.h (pthread_cleanup_push)
1904 [!__EXCEPTIONS]: Mangle local variable not_first_call.
1905 (pthread_cleanup_push_defer_np): Likewise.
1907 2010-09-03 Ulrich Drepper <drepper@redhat.com>
1909 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Expect blocks are
1912 2010-08-10 Dinakar Guniguntala <dino@in.ibm.com>
1913 Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
1915 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: If
1916 FUTEX_WAKE_OP fails make sure to call FUTEX_WAKE instead.
1918 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
1920 * sysdeps/unix/sysv/linux/i386/Makefile: New file.
1922 2010-05-01 Alan Modra <amodra@gmail.com>
1924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
1925 (PSEUDO): Use correct cr save. Don't use wrong parm save area
1926 to save temps. Correct cfi for possible later frame manipulation.
1927 (DOCARGS_1, UNDOCARGS_1): Use the correct parm save area.
1928 (DOCARGS_2, UNDOCARGS_2, DOCARGS_3, UNDOCARGS_3): Likewise.
1929 (DOCARGS_4, UNDOCARGS_4, DOCARGS_5, UNDOCARGS_5): Likewise.
1930 (DOCARGS_6, UNDOCARGS_6): Likewise.
1931 (CENABLE, CDISABLE): Add nops for non-shared calls.
1933 2010-07-06 Andreas Schwab <schwab@redhat.com>
1935 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1938 2010-07-03 Ulrich Drepper <drepper@redhat.com>
1940 * tst-abstime.c (do_test): Some more cleanups
1942 2010-07-02 Ulrich Drepper <drepper@redhat.com>
1944 * tst-abstime.c: Correct testing and add test for sem_timedwait.
1946 2010-07-01 Andreas Schwab <schwab@redhat.com>
1947 Ulrich Drepper <drepper@redhat.com>
1949 * Makefile (tests): Add tst-abstime.
1950 * tst-abstime.c: New file.
1951 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1952 (__lll_timedlock_wait): Check for timestamp before the Epoch.
1953 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
1954 (__lll_timedlock_wait): Likewise.
1955 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
1956 (__lll_robust_timedlock_wait): Likewise.
1957 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1958 (__pthread_cond_timedwait): Likewise.
1959 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
1960 (pthread_rwlock_timedrdlock): Likewise.
1961 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
1962 (pthread_rwlock_timedwrlock): Likewise.
1963 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
1966 2010-07-01 Ulrich Drepper <drepper@redhat.com>
1968 * Makefile (tst-_res1): Add tst-_res1mod1 to dependency list.
1970 2010-06-01 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
1972 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Fix incorrect
1973 location of ifndef __ASSUME_FUTEX_CLOCK_REALTIME.
1975 2010-04-09 Ulrich Drepper <drepper@redhat.com>
1978 * sysdeps/unix/sysv/linux/pthread_getname.c: New file.
1979 * sysdeps/unix/sysv/linux/pthread_setname.c: New file.
1980 * nptl/sysdeps/pthread/pthread.h: Declare pthread_getname and
1982 * Makefile (libpthread-routines): Add pthread_getname and
1984 * Versions: Export pthread_getname and pthread_setname for GLIBC_2.12.
1986 2010-04-05 Thomas Schwinge <thomas@schwinge.name>
1988 * sysdeps/pthread/unwind-resume.c: Moved to main tree sysdeps/gnu/.
1989 * sysdeps/pthread/rt-unwind-resume.c: Likewise.
1990 * sysdeps/pthread/Makefile: Remove csu section and rt section's
1991 unwind-resume bits, now in main tree sysdeps/gnu/Makefile instead.
1993 2010-03-23 Luis Machado <luisgpm@br.ibm.com>
1995 * pthread_cond_timedwait.c: Add check for
1996 HAVE_CLOCK_GETTIME_VSYSCALL to use VDSO whenever possible.
1997 (pthread_cond_timedwait): Use INTERNAL_VSYSCALL instead of
2000 2010-03-09 Ulrich Drepper <drepper@redhat.com>
2002 * pthread_create.c (__pthread_create_2_1): If priorities are incorrect
2003 and the call fails wake eventually waiting setxid threads. Don't free
2004 stack here if we try starting a thread.
2005 * sysdeps/pthread/createthread.c (do_clone): Only wake setxid waiter
2006 if the clone call failed.
2008 2010-03-08 Andreas Schwab <schwab@redhat.com>
2010 * pthread_create.c (__pthread_create_2_1): Don't set setxid_futex.
2011 * allocatestack.c (get_cached_stack): Set setxid_futex.
2012 (allocate_stack): Likewise.
2014 2010-03-05 Andreas Schwab <schwab@redhat.com>
2015 Ulrich Drepper <drepper@redhat.com>
2017 * allocatestack.c (setxid_mark_thread): Delay handling of thread if
2018 it is creating a thread or it is just being created.
2019 * pthread_create.c (start_thread): Wake setxid thread if it is
2021 (__pthread_create_2_1): Initialize setxid_futex.
2022 * sysdeps/pthread/createthread.c (do_clone): Wake setxid thread if it
2025 2010-01-15 Ulrich Drepper <drepper@redhat.com>
2027 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2029 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
2031 2010-01-15 Michal Schmidt <mschmidt@redhat.com>
2033 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2034 Fix pthread_cond_timedwait with requeue-PI.
2035 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
2036 Fix pthread_cond_wait with requeue-PI.
2038 2010-01-14 Ulrich Drepper <drepper@redhat.com>
2040 * Versions: Add pthread_mutex_consistent, pthread_mutexattr_getrobust,
2041 and pthread_mutexattr_setrobust for GLIBC_2.12.
2042 * pthread_mutex_consistent.c: Define alias pthread_mutex_consistent.
2043 * pthread_mutexattr_getrobust.c: Define alias
2044 pthread_mutexattr_getrobust.
2045 * pthread_mutexattr_setrobust.c: Define alias
2046 pthread_mutexattr_setrobust.
2048 2010-01-12 Ulrich Drepper <drepper@redhat.com>
2050 * sysdeps/pthread/pthread.h: Cleanup. Fix up for XPG7.
2052 2010-01-08 Ulrich Drepper <drepper@redhat.com>
2054 * sysdeps/pthread/pthread.h: Fix pthread_mutex_consistent declaration.
2056 2009-12-18 Thomas Schwinge <thomas@codesourcery.com>
2058 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c (_init): Don't
2059 call __gmon_start__.
2060 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c (_init): Likewise.
2062 2009-12-17 Ulrich Drepper <drepper@redhat.com>
2064 * pthread_rwlock_init.c (__pthread_rwlock_init): Simplify code by
2067 2009-12-01 Dinakar Guniguntala <dino@in.ibm.com>
2069 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.h: Define
2070 FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
2071 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: If mutex
2072 is a non robust PI mutex, then use FUTEX_CMP_REQUEUE_PI.
2073 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
2074 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: If mutex
2075 is a non robust PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
2076 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
2078 2009-12-12 Ulrich Drepper <drepper@redhat.com>
2080 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
2081 Don't update nwaiters after invalid timeout is recognized.
2083 2009-11-27 Thomas Schwinge <thomas@codesourcery.com>
2085 * sysdeps/unix/sysv/linux/sh/pt-initfini.c (_init): Don't call
2088 2009-11-27 Andreas Schwab <schwab@redhat.com>
2090 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Reload
2091 THREAD_SELF->cancelhandling after returning from futex call.
2093 2009-11-24 Ulrich Drepper <drepper@redhat.com>
2095 * tst-sem13.c: New file.
2096 * Makefile (tests): Add tst-sem13.
2098 2009-11-22 Roland McGrath <roland@redhat.com>
2100 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: # include "i686/dl-sysdep.h"
2101 instead of recapitulating its contents.
2103 2009-11-18 Ulrich Drepper <drepper@redhat.com>
2105 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Minor
2106 optimizations and cleanups.
2108 2009-11-18 Dinakar Guniguntala <dino@in.ibm.com>
2110 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2111 Remove redundant code. Fix cfi offsets.
2112 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2115 2009-11-17 Ulrich Drepper <drepper@redhat.com>
2117 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Minimally
2118 reduce size of unwind info.
2120 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Convert to use
2122 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
2123 Based on a patch by Dinakar Guniguntala <dino@in.ibm.com>.
2125 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
2128 * sysdeps/pthread/unwind-resume.c: Include <libgcc_s.h> and use
2130 * sysdeps/pthread/unwind-forcedunwind.c: Likewise.
2132 2009-10-30 Ulrich Drepper <drepper@redhat.com>
2134 * tst-sem11.c (main): Rewrite to avoid aliasing problems.
2137 * allocatestack.c (__nptl_setxid): Perform the operation in multiple
2138 steps to avoid races with creation and terminations.
2139 * nptl-init.c (sighandler_setxid): Adjust.
2140 Patch by Daniel Jacobowitz.
2142 2009-09-07 Andreas Schwab <schwab@redhat.com>
2144 * sysdeps/pthread/bits/libc-lock.h (BP_SYM): Remove space before paren.
2146 2009-09-02 Suzuki K P <suzuki@in.ibm.com>
2147 Joseph Myers <joseph@codesourcery.com>
2150 * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
2151 Initialize the sigev_notify field for newly created timer to make sure
2152 the timer gets deleted from the active timer's list upon timer_delete.
2154 2009-08-27 Andrew Stubbs <ams@codesourcery.com>
2156 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
2157 Correct a logic error.
2159 2009-08-25 Ulrich Drepper <drepper@redhat.com>
2161 * sysdeps/x86_64/tls.h (RTLD_ENABLE_FOREIGN_CALL): Store old value
2162 of the field in local variables.
2163 (RTLD_FINALIZE_FOREIGN_CALL): Restore rtld_must_xmm_save from local
2164 variable and don't unconditionally clear it.
2166 2009-08-24 Ulrich Drepper <drepper@redhat.com>
2168 * pthread_create.c (start_thread): Hint to the kernel that memory for
2169 the stack can be reused. We do not mark all the memory. The part
2170 still in use and some reserve are kept.
2172 2009-08-23 Ulrich Drepper <drepper@redhat.com>
2174 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Clean up namespace.
2176 2009-08-11 Ulrich Drepper <drepper@redhat.com>
2178 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Add CFI
2181 2009-08-10 Ulrich Drepper <drepper@redhat.com>
2183 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Add CFI
2185 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
2187 2009-08-10 Andreas Schwab <schwab@redhat.com>
2189 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
2190 (__pthread_cond_signal): Don't clobber register used for syscall
2193 2009-08-08 Ulrich Drepper <drepper@redhat.com>
2195 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
2196 Optimize code path used when FUTEX_CLOCK_REALTIME is supported.
2198 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2199 (__pthread_cond_wait): Optimize by avoiding use of callee-safe
2202 2009-08-07 Ulrich Drepper <drepper@redhat.com>
2204 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Little optimizations
2205 enabled by the special *_asynccancel functions.
2206 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2207 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
2209 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include lowlevellock.h.
2211 2009-08-04 Ulrich Drepper <drepper@redhat.com>
2213 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: New file.
2214 * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: New file.
2215 * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: New file.
2216 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Optimize
2217 since we can assume the special __*_{en,dis}able_asynccancel
2219 (PUSHARGS_*, POPARGS_*, SAVESTK_*, RESTSTK_*): Removed.
2220 * sysdeps/x86_64/tcb-offsets.sym: Add cancellation-related bits
2221 and PTHREAD_CANCELED.
2223 2009-07-31 Ulrich Drepper <drepper@redhat.com>
2225 * descr.h: Better definition of *_BITMASK macros for cancellation.
2227 2009-07-29 Ulrich Drepper <drepper@redhat.com>
2229 * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Define explicitly to 32.
2231 * sysdeps/x86_64/tls.h (tcbhead_t): Add room for SSE registers the
2232 dynamic linker might have to save.
2233 Define RTLD_CHECK_FOREIGN_CALL, RTLD_ENABLE_FOREIGN_CALL,
2234 RTLD_PREPARE_FOREIGN_CALL, and RTLD_FINALIZE_FOREIGN_CALL. Pretty
2237 * sysdeps/x86_64/tcb-offsets.sym: Add RTLD_SAVESPACE_SSE.
2239 2009-07-28 Ulrich Drepper <drepper@redhat.com>
2241 * pthread_mutex_lock.c [NO_INCR] (__pthread_mutex_cond_lock_adjust):
2243 * pthreadP.h: Declare __pthread_mutex_cond_lock_adjust.
2244 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add ROBUST_BIT.
2245 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Don't use
2246 requeue_pi for robust mutexes.
2247 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
2248 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
2249 Don't only skip __pthread_mutex_cond_lock. Call instead
2250 __pthread_mutex_cond_lock_adjust.
2251 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2253 * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Minor
2254 optimization of PI mutex handling.
2256 2009-07-27 Ulrich Drepper <drepper@redhat.com>
2259 * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Use _rel
2260 instead of of _acq variants of cmpxchg.
2262 2009-07-23 Ulrich Drepper <drepper@redhat.com>
2264 * sysdeps/x86_64/configure.in: New file.
2266 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix error
2267 path when not using absolute timeout futex.
2269 2009-07-20 Ulrich Drepper <drepper@redhat.com>
2271 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Minor
2272 optimizations of last changes.
2273 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2275 2009-07-19 Ulrich Drepper <drepper@redhat.com>
2277 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
2278 FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
2279 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: If mutex
2280 is a PI mutex, then use FUTEX_CMP_REQUEUE_PI.
2281 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
2282 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: If mutex
2283 is a PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
2284 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
2286 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2287 (__pthread_cond_timedwait): Make more robust.
2289 2009-07-18 Ulrich Drepper <drepper@redhat.com>
2291 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
2292 (__lll_robust_timedlock_wait): If possible use FUTEX_WAIT_BITSET to
2293 directly use absolute timeout.
2295 * tst-sem5.c (do_test): Add test for premature timeout.
2296 * Makefile: Linu tst-sem5 with librt.
2298 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
2299 (pthread_rwlock_timedwrlock): If possible use FUTEX_WAIT_BITSET to
2300 directly use absolute timeout.
2301 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
2302 (pthread_rwlock_timedrdlock): Likewise.
2304 * tst-cond11.c (run_test): Add test to check that the timeout is
2307 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2308 (__pthread_cond_timedwait): If possible use FUTEX_WAIT_BITSET to
2309 directly use absolute timeout.
2311 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2312 (__pthread_cond_wait): Convert to using exception handler instead of
2313 registered unwind buffer.
2314 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2315 (__pthread_cond_timedwait): Likewise.
2317 2009-07-17 Ulrich Drepper <drepper@redhat.com>
2319 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
2320 If possible use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME to directly
2321 use absolute timeout.
2323 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Optimize
2324 handling of uncontested semaphore.
2326 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2327 (__condvar_cleanup): Rewrite to use cfi directives instead of
2328 hand-coded unwind tables.
2329 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S (__pthread_once):
2331 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
2332 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
2335 2009-06-12 Ulrich Drepper <drepper@redhat.com>
2337 * Makefile (libpthread-routines): Add pthread_sigqueue.
2338 * Versions: Add pthread_sigqueue for GLIBC_2.11.
2339 * sysdeps/pthread/bits/sigthread.h: Declare pthread_sigqueue.
2340 * sysdeps/unix/sysv/linux/pthread_sigqueue.c: New file.
2342 2009-06-11 Ulrich Drepper <drepper@redhat.com>
2345 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
2346 (LOAD_FUTEX_WAIT_ABS): Fix futex parameter in case private futexes
2348 Patch by Bryan Kadzban <bz-glibc@kdzbn.homelinux.net>.
2350 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2352 * libc-cancellation.c: Move __libc_cleanup_routine to...
2353 * libc-cleanup.c: ...here. New file.
2354 * Makefile (routines): Add libc-cleanup.
2356 * cancellation.c (__pthread_disable_asynccancel): Remove unnecessary
2358 * libc-cancellation.c: Use <nptl/cancellation.c: to define the code.
2359 * sysdeps/pthread/librt-cancellation.c: Likewise.
2362 * nptl-init.c: Renamed from init.c.
2363 * Makefile: Change all occurences of init.c to nptl-init.c.
2365 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2367 * cancellation.c (__pthread_disable_asynccancel): Correct the bits
2368 to test when deciding on the delay.
2369 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
2370 * pthread_cancel.c: Close race between deciding on sending a signal
2371 and setting the CANCELING_BIT bit.
2373 * cancellation.c (__pthread_disable_asynccancel): Don't return if
2375 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
2377 2009-04-27 Ulrich Drepper <drepper@redhat.com>
2379 * cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND
2381 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
2382 * sysdeps/x86_64/tls.h: Define THREAD_ATOMIC_AND.
2383 * sysdeps/i386/tls.h: Likewise.
2384 (tcbhead_t): Add __private_tm member.
2386 2009-04-26 Ulrich Drepper <drepper@redhat.com>
2388 * sem_open.c (sem_open): Rewrite initialization of initsem to
2391 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
2392 Avoid warning by using may_alias attribute on ptrhack.
2394 2009-04-22 Ulrich Drepper <drepper@redhat.com>
2397 * pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
2398 Check policy and priority for validity.
2399 Patch mostly by Zhang Xiliang <zhangxiliang@cn.fujitsu.com>.
2401 2009-03-15 Ulrich Drepper <drepper@redhat.com>
2403 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2404 (__pthread_cond_timedwait): Change to use cfi directives instead of
2405 hand-coded unwind sections.
2407 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2409 * init.c (nptl_freeres): Compile only for SHARED.
2411 2009-03-09 Jakub Jelinek <jakub@redhat.com>
2413 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define
2414 FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME and
2415 FUTEX_BITSET_MATCH_ANY.
2417 2009-02-27 Roland McGrath <roland@redhat.com>
2419 * init.c (__nptl_initial_report_events): Mark __attribute_used__.
2420 * pthread_create.c (__nptl_threads_events, __nptl_last_event): Likewise.
2422 2009-02-26 Ulrich Drepper <drepper@redhat.com>
2424 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
2425 _POSIX_THREAD_ROBUST_PRIO_INHERIT and
2426 _POSIX_THREAD_ROBUST_PRIO_PROTECT. Reset value of macros from
2429 2009-02-25 Ulrich Drepper <drepper@redhat.com>
2431 * sysdeps/pthread/pthread.h: The robust mutex functions are in
2434 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2436 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_BITS_POSIX_OPT_H):
2437 Unify name of include protector macro.
2439 2009-02-14 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2441 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
2442 LOAD_FUTEX_WAIT_ABS even if (FUTEX_WAIT == 0).
2444 2009-01-29 Ulrich Drepper <drepper@redhat.com>
2446 * sysdeps/pthread/unwind-forcedunwind.c: Encrypt all function
2449 * allocatestack.c (__free_stacks): Renamed from free_stacks.
2450 (__free_stack_cache): Removed. Change callers to call __free_stacks.
2451 * init.c (nptl_freeres): New function.
2452 (pthread_functions): Initialize ptr_freeres to nptl_freeres.
2453 * pthreadP.h: Don't declare __free_stack_cache. Declare __free_stacks.
2454 * sysdeps/pthread/unwind-forcedunwind.c (libgcc_s_handle): New
2456 (pthread_cancel_init): Depend in libgcc_s_handle for decision to
2457 load DSO. Assign last.
2458 (__unwind_freeres): New function.
2460 * allocatestack.c (__reclaim_stacks): Reset in_flight_stack later
2461 for better debugging. No need to use stack_list_add here.
2463 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2465 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
2466 (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
2467 instead of computing relative timeout.
2468 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
2469 FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
2471 2009-01-25 Ulrich Drepper <drepper@redhat.com>
2473 * pthread_mutex_lock.c (__pthread_mutex_lock): Remove unused label out.
2475 2009-01-08 Ulrich Drepper <drepper@redhat.com>
2477 * sysdeps/pthread/list.h (list_add): Initialize new element first.
2478 (list_add_tail): Removed.
2480 2009-01-07 Ulrich Drepper <drepper@redhat.com>
2482 * (in_flight_stack): New variable.
2483 (stack_list_del): New function. Use instead of list_del.
2484 (stack_list_add): New function. Use instead of list_add when adding to
2485 stack_cache and stack_used lists.
2486 (__reclaim_stacks): Complete operations on stack_cache and stack_used lists
2487 when the fork call interrupted another thread.
2489 2009-01-04 Ulrich Drepper <drepper@redhat.com>
2491 * init.c (__pthread_initialize_minimal_internal): Optimize test
2492 FUTEX_CLOCK_REALTIME a bit.
2494 2009-01-03 Ulrich Drepper <drepper@redhat.com>
2496 * init.c (__pthread_initialize_minimal_internal): Cheat a bit by
2497 only passing five parameters to FUTEX_WAIT_BITSET call.
2499 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
2500 (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
2501 instead of computing relative timeout.
2503 2009-01-02 Ulrich Drepper <drepper@redhat.com>
2505 * init.c (__pthread_initialize_minimal_internal): Check for
2506 FUTEX_CLOCK_REALTIME flag.
2507 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
2508 Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME instead of computing
2511 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
2512 FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
2513 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2514 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2515 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2516 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2518 2008-12-09 Ulrich Drepper <drepper@redhat.com>
2520 * sysdeps/pthread/pthread.h (pthread_cleanup_pop): Use { } as empty
2521 loop body instead of ; to avoid gcc warnings.
2522 (pthread_cleanup_pop_restore_np): Likewise.
2523 Patch by Caolán McNamara <caolanm@redhat.com>.
2525 2008-12-09 Jakub Jelinek <jakub@redhat.com>
2527 * pthread_mutex_lock.c (__pthread_mutex_lock): Handle only the
2528 fast path here, for robust/PI/PP mutexes call
2529 __pthread_mutex_lock_full. Don't use switch, instead use a series
2530 of ifs according to their probability.
2531 (__pthread_mutex_lock_full): New function.
2532 * pthread_mutex_unlock.c: Include assert.h.
2533 (__pthread_mutex_unlock_usercnt): Handle only the
2534 fast path here, for robust/PI/PP mutexes call
2535 __pthread_mutex_unlock_full. Don't use switch, instead use a series
2536 of ifs according to their probability.
2537 (__pthread_mutex_unlock_full): New function.
2538 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
2539 (__pthread_mutex_lock_full): Define.
2541 2008-12-08 Ulrich Drepper <drepper@redhat.com>
2543 * sysdeps/x86_64/tls.h (tcbhead_t): Add fields reserved for TM
2544 implementation. Add necessary padding and.
2545 * descr.h (struct pthread): Increase padding for tcbhead_t to 24
2548 2008-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2550 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define FUTEX_WAIT_BITSET
2551 and FUTEX_WAKE_BITSET.
2553 2008-12-02 Ulrich Drepper <drepper@redhat.com>
2555 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_WAIT_BITSET
2556 and FUTEX_WAKE_BITSET.
2557 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2558 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2559 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2560 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2562 2008-11-25 Roland McGrath <roland@redhat.com>
2564 * sysdeps/alpha, sysdeps/unix/sysv/linux/alpha:
2565 Subdirectories moved to ports repository as
2566 sysdeps/.../nptl subdirectories.
2568 2008-11-12 Jakub Jelinek <jakub@redhat.com>
2571 * pthread_condattr_setclock.c (pthread_condattr_setclock): Fix masking
2573 * pthread_cond_init.c (__pthread_cond_init): Fix
2574 cond->__data.__nwaiters initialization.
2575 * Makefile (tests): Add tst-cond23.
2576 * tst-cond23.c: New test.
2578 2008-11-07 Jakub Jelinek <jakub@redhat.com>
2580 * sysdeps/pthread/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2582 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2585 2008-11-01 Ulrich Drepper <drepper@redhat.com>
2588 * pthread_mutex_lock.c: Add support for private PI mutexes.
2589 * pthread_mutex_timedlock.c: Likewise.
2590 * pthread_mutex_trylock.c: Likewise.
2591 * pthread_mutex_unlock.c: Likewise.
2592 Patch mostly by Ben Jackson <ben@ben.com>.
2594 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2597 * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread):
2598 Increase stack size for helper thread.
2600 2008-10-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2602 * sysdeps/s390/tls.h (THREAD_SET_STACK_GUARD): Add empty inline
2603 assembly with a clobber list for access registers a0 and a1.
2605 2008-09-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
2607 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
2608 to force runp->refcntr to be read from memory.
2610 2008-09-08 Richard Guenther <rguenther@suse.de>
2612 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock,
2613 lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
2614 lll_timedlock, lll_robust_timedlock, lll_unlock,
2615 lll_robust_unlock): Promote private to int.
2617 2008-08-15 Ulrich Drepper <drepper@redhat.com>
2619 * sysdeps/x86_64/pthreaddef.h: Remove ARCH_MAP_FLAGS and
2620 ARCH_RETRY_MMAP definitions.
2621 * allocatestack.c: Remove definition of ARCH_MAP_FLAGS.
2622 Define MAP_STACK when not defined.
2623 (allocate_stack): Use MAP_STACK instead of ARCH_MAP_FLAGS. Remove
2624 handling of ARCH_RETRY_MMAP.
2626 2008-07-30 Ulrich Drepper <drepper@redhat.com>
2628 * tst-align2.c (f): Print message that f is reached.
2630 2008-04-28 Hiroki Kaminaga <kaminaga@sm.sony.co.jp>
2633 * sysdeps/powerpc/tcb-offsets.sym (PRIVATE_FUTEX_OFFSET): Guard symbol
2634 definition with #ifndef __ASSUME_PRIVATE_FUTEX.
2636 2008-07-25 Ulrich Drepper <drepper@redhat.com>
2638 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Use
2639 SOCK_CLOEXEC if possible.
2641 2008-05-29 Ulrich Drepper <drepper@redhat.com>
2643 * Makefile (tests): Add tst-rwlock2a.
2644 * tst-rwlock2.c: Use TYPE macro to decide what rwlock type to use.
2645 * tst-rwlock2a.c: New file.
2647 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2649 * sysdeps/pthread/pthread.h: Remove inadvertant checkin.
2651 2008-05-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2653 * sysdeps/pthread/pthread.h: Fix typo in comment.
2655 2008-05-28 Ulrich Drepper <drepper@redhat.com>
2657 * sysdeps/pthread/createthread.c (do_clone): Pass accurate length
2658 of CPU set to the kernel.
2660 2008-05-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2662 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Add
2664 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
2665 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
2666 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
2667 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
2668 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
2669 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
2671 2008-05-22 Paul Pluzhnikov <ppluzhnikov@google.com>
2673 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: Add
2675 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2677 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2679 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2682 2008-05-26 Ulrich Drepper <drepper@redhat.com>
2684 * tst-typesizes.c: Explicitly check __SIZEOF_PTHREAD_* constants.
2686 2008-05-20 Jakub Jelinek <jakub@redhat.com>
2688 David S. Miller <davem@davemloft.net>
2690 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
2692 2008-05-10 Ulrich Drepper <drepper@redhat.com>
2694 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Access
2695 __pshared correctly.
2696 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2698 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2700 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2702 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2704 Reported by Clemens Kolbitsch <clemens.kol@gmx.at>.
2706 2008-04-14 David S. Miller <davem@davemloft.net>
2708 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
2709 (__old_sem_wait): Fix argument to lll_futex_wait().
2711 2007-11-26 Daniel Jacobowitz <dan@codesourcery.com>
2713 * pthread_create.c: Require pthread_mutex_trylock and
2714 pthread_key_delete for libgcc.
2716 2008-04-08 Jakub Jelinek <jakub@redhat.com>
2719 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
2720 (lll_futex_wake_unlock): Add private argument to the pre-v9 macro.
2721 Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>.
2723 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2725 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine ARG_MAX if
2726 <linux/limits.h> has defined it.
2727 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
2728 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
2729 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
2730 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
2732 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2734 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Use __ASSEMBLER__ instead
2736 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
2737 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Likewise.
2739 2008-03-14 Ulrich Drepper <drepper@redhat.com>
2741 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
2742 HAVE_DL_DISCOVER_OSVERSION.
2743 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
2744 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Likewise.
2746 2008-03-07 Ulrich Drepper <drepper@redhat.com>
2749 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2750 _POSIX_CHOWN_RESTRICTED value to zero.
2752 2008-01-31 Roland McGrath <roland@redhat.com>
2754 * Makefile (omit-deps): Variable removed.
2756 2008-01-30 Ulrich Drepper <drepper@redhat.com>
2758 * sysdeps/unix/sysv/linux/x86_64/sem_post.S (sem_post): Avoid
2759 unnecessary addr32 prefix.
2761 2008-01-29 Roland McGrath <roland@redhat.com>
2763 * Makeconfig (ptw-CPPFLAGS, sysd-rules-patterns): New variables.
2765 2008-01-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2767 * sysdeps/unix/sysv/linux/sh/sem_post.S: Don't overflow value field.
2769 2008-01-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2771 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XADD): Use
2773 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
2774 (__lll_lock_wait_private): Fix typo.
2775 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
2776 (pthread_barrier_wait): Likewise. Adjust XADD use.
2777 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
2779 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
2780 (pthread_rwlock_timedrdlock): Return correct return value.
2781 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
2782 (pthread_rwlock_timedwrlock): Likewise.
2784 2008-01-15 Ulrich Drepper <drepper@redhat.com>
2786 * tst-eintr2.c (do_test): make sure that if mutex_lock in main
2787 thread returns the program exits with an error code.
2789 2008-01-10 Ulrich Drepper <drepper@redhat.com>
2791 * pthread-errnos.sym: Add EOVERFLOW.
2792 * sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX.
2793 * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field.
2794 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
2795 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
2797 2007-12-14 Ulrich Drepper <drepper@redhat.com>
2799 * sysdeps/x86_64/pthreaddef.h (ARCH_RETRY_MMAP): Take additional
2800 parameter. Passed it as permission to mmap.
2801 * allocatestack.c (allocate_stack): Pass prot as second parameter
2804 2007-12-12 Ulrich Drepper <drepper@redhat.com>
2806 * tst-basic7.c: Allocate memory for the stack.
2809 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S [!SHARED]
2810 (__pthread_cond_timedwait): Don't use VDSO.
2811 Patch by Michal Januszewski.
2813 2007-12-07 Ulrich Drepper <drepper@redhat.com>
2816 * sysdeps/pthread/pthread.h [!__EXCEPTIONS] (pthread_cleanup_pop):
2817 Allow label before pthread_cleanup_pop.
2818 (pthread_cleanup_pop_restore_np): Likewise.
2820 2007-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2822 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
2823 Store 2 before returning ETIMEDOUT.
2825 2007-11-23 Ulrich Drepper <drepper@redhat.com>
2827 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
2828 Store 2 before returning ETIMEDOUT.
2829 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise
2830 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
2831 (__lll_lock_wait_private): Optimize.
2832 (__lll_lock_wait): Likewise.
2834 2007-11-20 Jakub Jelinek <jakub@redhat.com>
2836 * sysdeps/pthread/pthread.h (pthread_cleanup_push,
2837 pthread_cleanup_push_defer_np): Add extra (void *) cast to shut up
2838 g++ 4.1 and 4.2 -Wstrict-aliasing warnings.
2840 2007-11-08 Ulrich Drepper <drepper@redhat.com>
2843 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
2844 If we time out, try one last time to lock the futex to avoid
2845 losing a wakeup signal.
2846 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
2847 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2850 * sysdeps/pthread/createthread.c (do_clone): Translate clone error
2853 2007-11-07 Ulrich Drepper <drepper@redhat.com>
2856 * allocatestack.c (allocate_stack): Change ENOMEM error in case
2857 mmap failed to EAGAIN.
2858 * Makefile (tests): Add tst-basic7.
2859 * tst-basic7.c: New file.
2861 2007-11-05 Ulrich Drepper <drepper@redhat.com>
2863 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
2864 Use __linkin_atfork.
2866 2007-11-03 Mike Frysinger <vapier@gentoo.org>
2868 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (LOAD_FUTEX_WAIT): Add
2869 missing line continuations.
2870 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S (LOAD_FUTEX_WAIT,
2871 LOAD_FUTEX_WAKE): Likewise. Also add missing 3rd parameter.
2873 2007-10-28 Ulrich Drepper <drepper@redhat.com>
2876 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Declare
2877 __active_timer_sigev_thread and __active_timer_sigev_thread_lock.
2878 (struct timer): Add next element.
2879 * sysdeps/unix/sysv/linux/timer_create.c: For SIGEV_THREAD timers,
2880 enqueue timer structure into __active_timer_sigev_thread list.
2881 * sysdeps/unix/sysv/linux/timer_delete.c: For SIGEV_THREAD timers,
2882 remove timer struct from __active_timer_sigev_thread.
2883 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
2884 Before using timer structure make sure it is still on the
2885 __active_timer_sigev_thread list. Keep lock until done.
2886 Define __active_timer_sigev_thread and
2887 __active_timer_sigev_thread_lock.
2889 2007-10-27 Ulrich Drepper <drepper@redhat.com>
2891 * sysdeps/pthread/malloc-machine.h: Define ATFORK_MEM.
2892 Redefine thread_atfork for use of ATFORK_MEM.
2893 * sysdeps/unix/sysv/linux/fork.h: Define __linkin_atfork.
2894 * sysdeps/unix/sysv/linux/register-atfork.c (__linkin_atfork): New
2896 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
2897 Use atomic operation when removing first element of list.
2899 2007-10-17 Jakub Jelinek <jakub@redhat.com>
2901 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__old_sem_post): New
2902 routine instead of an alias to __new_sem_post.
2904 2007-10-15 Jakub Jelinek <jakub@redhat.com>
2906 * init.c (__pthread_initialize_minimal): Initialize word to appease
2909 2007-10-10 Jakub Jelinek <jakub@redhat.com>
2911 * sysdeps/pthread/bits/libc-lock.h (__libc_rwlock_init): Inside of
2912 libc.so just clear NAME.
2913 (__libc_rwlock_fini): Nop inside of libc.so.
2914 * tst-initializers1.c (main): Test if PTHREAD_RWLOCK_INITIALIZER is
2917 2007-09-02 Ulrich Drepper <drepper@redhat.com>
2919 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2920 (__pthread_cond_wait): Fix unlocking of internal lock after mutex
2922 Patch by Luca Barbieri <luca.barbieri@gmail.com>.
2924 2007-08-21 Ulrich Drepper <drepper@redhat.com>
2927 * allocatestack.c (__reclaim_stacks): Clear the TSD in the
2928 reclaimed stack if necessary.
2929 * Makefile (tests): Add tst-tsd6.
2930 * tst-tsd6.c: New file.
2932 2007-08-21 Jakub Jelinek <jakub@redhat.com>
2934 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_dead):
2935 Add private argument.
2937 2007-08-20 Ulrich Drepper <drepper@redhat.com>
2939 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2940 (__pthread_cond_timedwait): Use clock_gettime from VDSO if possible.
2942 2007-08-16 Jakub Jelinek <jakub@redhat.com>
2944 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h
2945 (__lll_robust_timedlock): Pass private as last argument to
2946 __lll_robust_timedlock_wait.
2947 (__lll_unlock): Fix a pasto.
2949 2007-08-15 Jakub Jelinek <jakub@redhat.com>
2951 * sysdeps/unix/sysv/linux/sparc/internaltypes.h (sparc_new_sem,
2952 sparc_old_sem): New structs.
2953 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
2954 (__sem_wait_cleanup): New function.
2955 (__new_sem_wait): Use sparc_new_sem structure. Bump and afterwards
2956 decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
2957 Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2959 (__old_sem_wait): New function.
2960 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: Include
2961 nptl/sysdeps/unix/sysv/linux/sparc version.
2962 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
2964 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: Likewise.
2965 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c
2966 (__new_sem_trywait): Use sparc_old_sem structure.
2967 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
2968 (sem_timedwait): Use sparc_new_sem structure. Bump and afterwards
2969 decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
2970 Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2971 lll_futex_timed_wait.
2972 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c (__new_sem_post):
2973 Use sparc_new_sem structure. Only wake if nwaiters > 0. Pass
2974 isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
2976 (__old_sem_post): New function.
2977 * sysdeps/unix/sysv/linux/sparc/sem_wait.c: New file.
2978 * sysdeps/unix/sysv/linux/sparc/sem_init.c: New file.
2979 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: New file.
2980 * sysdeps/unix/sysv/linux/sparc/sem_post.c: New file.
2981 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: Remove.
2982 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: Remove.
2984 2007-08-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2986 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
2987 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
2988 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2989 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
2990 * sysdeps/unix/sysv/linux/shpthread_cond_signal.S
2991 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
2992 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
2994 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
2995 kernel-features.h and tcb-offsets.h.
2996 (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
2997 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
2999 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
3001 (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE
3002 to lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
3004 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use #ifdef
3005 __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
3006 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
3007 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
3008 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
3009 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
3010 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
3012 2007-08-14 Jakub Jelinek <jakub@redhat.com>
3014 * sysdeps/unix/sysv/linux/lowlevellock.c: Comment fix.
3015 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
3016 (__lll_timedwait_tid): Pass LLL_SHARED as 4th argument to
3017 lll_futex_timed_wait.
3019 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (__lll_unlock,
3020 __lll_robust_unlock): Rewrite as macros instead of inline functions.
3021 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_unlock,
3022 __lll_robust_unlock, __lll_wait_tid): Likewise.
3024 2007-08-13 Jakub Jelinek <jakub@redhat.com>
3026 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
3028 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
3029 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
3030 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
3031 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
3032 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
3033 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
3034 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
3035 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Include
3037 (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
3038 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
3039 process private. Switch DW_CFA_advance_loc1 and some
3040 DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
3041 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
3042 (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE to
3043 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
3044 process private. Switch DW_CFA_advance_loc{1,2} and some
3045 DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
3046 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use
3047 #ifdef __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
3048 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3050 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
3051 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
3052 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3054 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
3055 (__pthread_cond_broadcast): Compare %r8 instead of
3056 dep_mutex-cond_*(%rdi) with $-1.
3057 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
3058 (__pthread_cond_signal): Xor FUTEX_WAKE_OP with FUTEX_WAKE instead
3061 2007-08-13 Ulrich Drepper <drepper@redhat.com>
3063 * sysdeps/unix/sysv/linux/i386/i786/Implies: New file.
3065 2007-08-13 Jakub Jelinek <jakub@redhat.com>
3067 * allocatestack.c: Include kernel-features.h.
3068 * pthread_create.c: Likewise.
3069 * pthread_mutex_init.c: Likewise.
3071 * pthread_cond_timedwait.c: Likewise.
3072 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
3073 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
3074 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
3075 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
3076 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
3077 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
3078 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3080 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3082 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
3083 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
3084 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3085 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
3087 2007-08-12 Jakub Jelinek <jakub@redhat.com>
3089 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
3090 [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
3091 byte elements. One of them is the new __shared element.
3092 [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
3093 adjust names of other padding elements.
3094 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3095 [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
3096 byte elements. One of them is the new __shared element.
3097 [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
3098 adjust names of other padding elements.
3099 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_rwlock_t):
3100 Renamed __pad1 element to __shared, adjust names of other padding
3102 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
3103 (pthread_rwlock_t): Likewise.
3104 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock): Fix a
3107 2007-08-09 Anton Blanchard <anton@samba.org>
3109 * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: New file.
3111 2007-08-12 Ulrich Drepper <drepper@redhat.com>
3113 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Include
3114 <kernel-features.h>.
3115 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
3117 2007-08-11 Ulrich Drepper <drepper@redhat.com>
3119 * pthreadP.h (PTHREAD_ROBUST_MUTEX_PSHARED): Define.
3120 * pthread_mutex_lock.c: Use it instead of PTHREAD_MUTEX_PSHARED when
3121 dealing with robust mutexes.
3122 * pthread_mutex_timedlock.c: Likewise.
3123 * pthread_mutex_trylock.c: Likewise.
3124 * pthread_mutex_unlock.c: Likewise.
3125 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
3127 2007-08-06 Jakub Jelinek <jakub@redhat.com>
3129 * pthreadP.h (PTHREAD_MUTEX_PSHARED_BIT): Define.
3130 (PTHREAD_MUTEX_TYPE): Mask __kind with 127.
3131 (PTHREAD_MUTEX_PSHARED): Define.
3132 * pthread_mutex_init.c (__pthread_mutex_init): Set
3133 PTHREAD_MUTEX_PSHARED_BIT for pshared or robust
3135 * pthread_mutex_lock.c (LLL_MUTEX_LOCK): Take mutex as argument
3136 instead of its __data.__lock field, pass PTHREAD_MUTEX_PSHARED
3137 as second argument to lll_lock.
3138 (LLL_MUTEX_TRYLOCK): Take mutex as argument
3139 instead of its __data.__lock field.
3140 (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
3141 __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
3143 (__pthread_mutex_lock): Update LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
3144 LLL_ROBUST_MUTEX_LOCK users, use PTHREAD_MUTEX_TYPE (mutex)
3145 instead of mutex->__data.__kind directly, pass
3146 PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock and lll_futex_wait.
3147 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
3148 PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
3149 directly, pass PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock.
3150 (pthread_mutex_timedlock): Pass PTHREAD_MUTEX_PSHARED (mutex)
3151 to lll_timedlock, lll_robust_timedlock, lll_unlock and
3152 lll_futex_timed_wait. Use PTHREAD_MUTEX_TYPE (mutex) instead
3153 of mutex->__data.__kind directly.
3154 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Pass
3155 PTHREAD_MUTEX_PSHARED (mutex) to lll_timedlock,
3156 lll_robust_timedlock, lll_unlock and lll_futex_timed_wait. Use
3157 PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind directly.
3158 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Pass
3159 PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock, lll_robust_unlock
3161 * pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling): Pass
3162 PTHREAD_MUTEX_PSHARED (mutex) to lll_futex_wait and lll_futex_wake.
3163 Use PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
3165 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK):
3166 Take mutex as argument instead of its __data.__lock field, pass
3167 PTHREAD_MUTEX_PSHARED as second argument to lll_cond_lock.
3168 (LLL_MUTEX_TRYLOCK): Take mutex as argument instead of its
3169 __data.__lock field.
3170 (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
3171 __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
3172 to lll_robust_cond_lock.
3173 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Add pshared
3174 variable, pass it to lll_lock, lll_unlock, lll_futex_requeue and
3175 lll_futex_wake. Don't use lll_futex_requeue if dependent mutex
3176 has PTHREAD_MUTEX_PSHARED_BIT bit set in its __data.__kind.
3177 * pthread_cond_destroy.c (__pthread_cond_destroy): Add pshared
3178 variable, pass it to lll_lock, lll_unlock, lll_futex_wake and
3180 * pthread_cond_signal.c (__pthread_cond_signal): Add pshared
3181 variable, pass it to lll_lock, lll_unlock, lll_futex_wake_unlock and
3183 * pthread_cond_timedwait.c (__pthread_cond_wait): Add
3184 pshared variable, pass it to lll_lock, lll_unlock,
3185 lll_futex_timedwait and lll_futex_wake.
3186 * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait): Add
3187 pshared variable, pass it to lll_lock, lll_unlock, lll_futex_wait
3189 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_requeue,
3190 lll_futex_wake_unlock): Add private argument, use __lll_private_flag
3192 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue,
3193 lll_futex_wake_unlock): Likewise.
3194 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_requeue):
3196 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_requeue,
3197 lll_futex_wake_unlock): Likewise.
3198 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_requeue):
3200 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue,
3201 lll_futex_wake_unlock): Likewise.
3202 (lll_futex_wake): Fix a typo.
3203 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym (PS_BIT): Add.
3204 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
3205 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
3206 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
3207 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
3208 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
3209 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
3210 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
3211 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
3212 (__pthread_cond_timedwait): Likewise.
3213 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
3214 (__condvar_cleanup, __pthread_cond_wait): Likewise.
3216 2007-08-05 Jakub Jelinek <jakub@redhat.com>
3218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
3219 Don't use CGOTSETUP and CGOTRESTORE macros.
3220 (CGOTSETUP, CGOTRESTORE): Remove.
3221 <IS_IN_rtld> (CENABLE, CDISABLE): Don't use JUMPTARGET, branch to
3224 2007-08-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3226 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove
3227 definitions for private futexes.
3228 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Include
3229 kernel-features.h and lowlevellock.h. Use private futexes if
3231 (__lll_lock_wait_private, __lll_unlock_wake_private): New.
3232 (__lll_mutex_lock_wait): Rename to
3233 (__lll_lock_wait): ... this. Don't compile in for libc.so.
3234 (__lll_mutex_timedlock_wait): Rename to ...
3235 (__lll_timedlock_wait): ... this. Use __NR_gettimeofday.
3236 Don't compile in for libc.so.
3237 (__lll_mutex_unlock_wake): Rename to ...
3238 (__lll_unlock_wake): ... this. Don't compile in for libc.so.
3239 (__lll_timedwait_tid): Use __NR_gettimeofday.
3240 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Allow including
3241 the header from assembler. Renamed all lll_mutex_* resp.
3242 lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
3243 Renamed all LLL_MUTEX_LOCK_* macros to LLL_LOCK_*.
3244 (FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE):
3246 (__lll_lock_wait_private): Add prototype.
3247 (__lll_lock_wait, __lll_timedlock_wait, __lll_robust_lock_wait,
3248 __lll_robust_timedlock_wait, __lll_unlock_wake_private,
3249 __lll_unlock_wake): Likewise.
3250 (lll_lock): Add private argument. Call __lll_lock_wait_private
3251 if private is constant LLL_PRIVATE.
3252 (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
3253 lll_timedlock, lll_robust_timedlock): Add private argument.
3254 (lll_unlock): Add private argument. Call __lll_unlock_wake_private
3255 if private is constant LLL_PRIVATE.
3256 (lll_robust_unlock, lll_robust_dead): Add private argument.
3257 (lll_lock_t): Remove.
3258 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
3259 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
3260 lll_cond_wake, lll_cond_broadcast): Remove.
3261 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Include
3262 kernel-features.h and lowlevellock.h.
3263 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
3264 (LOAD_FUTEX_WAIT): Define.
3265 (__lll_robust_mutex_lock_wait): Rename to ...
3266 (__lll_robust_lock_wait): ... this. Add private argument.
3267 Use LOAD_FUTEX_WAIT macro.
3268 (__lll_robust_mutex_timedlock_wait): Rename to ...
3269 (__lll_robust_timedlock_wait): ... this. Add private argument.
3270 Use __NR_gettimeofday. Use LOAD_FUTEX_WAIT macro.
3271 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Include
3273 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
3274 (pthread_barrier_wait): Use __lll_{lock,unlock}_* instead of
3275 __lll_mutex_{lock,unlock}_*.
3276 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Include
3277 lowlevellock.h and pthread-errnos.h.
3278 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
3279 FUTEX_CMP_REQUEUE, EINVAL): Remove.
3280 (__pthread_cond_broadcast): Use __lll_{lock,unlock}_* instead of
3281 __lll_mutex_{lock,unlock}_*.
3282 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Include
3283 lowlevellock.h and pthread-errnos.h.
3284 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE, EINVAL): Remove.
3285 (__pthread_cond_signal): Use __lll_{lock,unlock}_* instead of
3286 __lll_mutex_{lock,unlock}_*.
3287 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
3289 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE): Remove.
3290 (__pthread_cond_timedwait): Use __lll_{lock,unlock}_* instead of
3291 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
3292 (__condvar_tw_cleanup): Likewise.
3293 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
3295 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
3296 (__pthread_cond_wait): Use __lll_{lock,unlock}_* instead of
3297 __lll_mutex_{lock,unlock}_*.
3298 ( __condvar_w_cleanup): Likewise.
3299 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Include lowlevellock.h.
3300 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
3301 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Include
3303 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
3304 (__pthread_rwlock_rdlock): Use __lll_{lock,unlock}_* instead of
3305 __lll_mutex_{lock,unlock}_*.
3306 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Include
3308 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
3309 FUTEX_PRIVATE_FLAG): Remove.
3310 (pthread_rwlock_timedrdlock): Use __lll_{lock,unlock}_* instead of
3311 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
3312 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Include
3314 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
3315 FUTEX_PRIVATE_FLAG): Remove.
3316 (pthread_rwlock_timedwrlock): Use __lll_{lock,unlock}_* instead of
3317 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
3318 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Include
3320 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
3321 (__pthread_rwlock_unlock): Use __lll_{lock,unlock}_* instead of
3322 __lll_mutex_{lock,unlock}_*.
3323 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Include
3325 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
3326 (__pthread_rwlock_wrlock): Use __lll_{lock,unlock}_* instead of
3327 __lll_mutex_{lock,unlock}_*.
3328 * sysdeps/unix/sysv/linux/sh/sem_post.S: Include lowlevellock.h.
3329 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
3330 (__new_sem_post): Use standard initial exec code sequences.
3331 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Include
3333 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
3334 FUTEX_PRIVATE_FLAG): Remove.
3335 (sem_timedwait): Use __NR_gettimeofday. Use standard initial
3336 exec code sequences.
3337 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Include lowlevellock.h.
3338 (__new_sem_trywait): Use standard initial exec code sequences.
3339 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Include lowlevellock.h.
3340 (__new_sem_wait): Use standard initial exec code sequences.
3342 2007-07-31 Anton Blanchard <anton@samba.org>
3344 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
3345 Use __asm __volatile (__lll_acq_instr ::: "memory") instead of
3346 atomic_full_barrier.
3348 2007-07-31 Jakub Jelinek <jakub@redhat.com>
3350 * allocatestack.c (stack_cache_lock): Change type to int.
3351 (get_cached_stack, allocate_stack, __deallocate_stack,
3352 __make_stacks_executable, __find_thread_by_id, __nptl_setxid,
3353 __pthread_init_static_tls, __wait_lookup_done): Add LLL_PRIVATE
3354 as second argument to lll_lock and lll_unlock macros on
3356 * pthread_create.c (__find_in_stack_list): Likewise.
3357 (start_thread): Similarly with pd->lock. Use lll_robust_dead
3358 macro instead of lll_robust_mutex_dead, pass LLL_SHARED to it
3360 * descr.h (struct pthread): Change lock and setxid_futex field
3362 * old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0): Use
3363 LLL_LOCK_INITIALIZER instead of LLL_MUTEX_LOCK_INITIALIZER.
3364 * old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
3365 * old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
3367 * old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
3368 * pthread_cond_init.c (__pthread_cond_init): Likewise.
3369 * pthreadP.h (__attr_list_lock): Change type to int.
3370 * pthread_attr_init.c (__attr_list_lock): Likewise.
3371 * pthread_barrier_destroy.c (pthread_barrier_destroy): Pass
3372 ibarrier->private ^ FUTEX_PRIVATE_FLAG as second argument to
3374 * pthread_barrier_wait.c (pthread_barrier_wait): Likewise and
3375 also for lll_futex_{wake,wait}.
3376 * pthread_barrier_init.c (pthread_barrier_init): Make iattr
3378 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Pass
3379 LLL_SHARED as second argument to lll_{,un}lock.
3380 * pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
3381 * pthread_cond_signal.c (__pthread_cond_singal): Likewise.
3382 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
3383 * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait):
3385 * pthread_getattr_np.c (pthread_getattr_np): Add LLL_PRIVATE
3386 as second argument to lll_{,un}lock macros on pd->lock.
3387 * pthread_getschedparam.c (__pthread_getschedparam): Likewise.
3388 * pthread_setschedparam.c (__pthread_setschedparam): Likewise.
3389 * pthread_setschedprio.c (pthread_setschedprio): Likewise.
3390 * tpp.c (__pthread_tpp_change_priority, __pthread_current_priority):
3392 * sysdeps/pthread/createthread.c (do_clone, create_thread):
3394 * pthread_once.c (once_lock): Change type to int.
3395 (__pthread_once): Pass LLL_PRIVATE as second argument to
3396 lll_{,un}lock macros on once_lock.
3397 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Use
3398 lll_{,un}lock macros instead of lll_mutex_{,un}lock, pass
3399 rwlock->__data.__shared as second argument to them and similarly
3401 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
3403 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
3405 * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Likewise.
3406 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Likewise.
3407 * pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
3408 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
3409 * sem_close.c (sem_close): Pass LLL_PRIVATE as second argument
3410 to lll_{,un}lock macros on __sem_mappings_lock.
3411 * sem_open.c (check_add_mapping): Likewise.
3412 (__sem_mappings_lock): Change type to int.
3413 * semaphoreP.h (__sem_mappings_lock): Likewise.
3414 * pthread_mutex_lock.c (LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
3415 LLL_ROBUST_MUTEX_LOCK): Use lll_{,try,robust_}lock macros
3416 instead of lll_*mutex_*, pass LLL_SHARED as last
3418 (__pthread_mutex_lock): Use lll_unlock instead of lll_mutex_unlock,
3419 pass LLL_SHARED as last argument.
3420 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK,
3421 LLL_MUTEX_TRYLOCK, LLL_ROBUST_MUTEX_LOCK): Use
3422 lll_{cond_,cond_try,robust_cond}lock macros instead of lll_*mutex_*,
3423 pass LLL_SHARED as last argument.
3424 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
3425 lll_{timed,try,robust_timed,un}lock instead of lll_*mutex*, pass
3426 LLL_SHARED as last argument.
3427 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Similarly.
3428 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
3430 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_lock,
3431 __libc_lock_lock_recursive, __libc_lock_unlock,
3432 __libc_lock_unlock_recursive): Pass LLL_PRIVATE as second
3433 argument to lll_{,un}lock.
3434 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_lock,
3435 _IO_lock_unlock): Likewise.
3436 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Don't use
3438 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
3439 Pass LLL_PRIVATE as second argument to lll_{,un}lock macros on
3441 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork,
3442 free_mem): Likewise.
3443 (__fork_lock): Change type to int.
3444 * sysdeps/unix/sysv/linux/fork.h (__fork_lock): Likewise.
3445 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Pass
3446 isem->private ^ FUTEX_PRIVATE_FLAG as second argument to
3448 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
3449 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Likewise.
3450 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait_private):
3452 (__lll_lock_wait, __lll_timedlock_wait): Add private argument and
3453 pass it through to lll_futex_*wait, only compile in when
3455 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
3456 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Add private
3457 argument and pass it through to lll_futex_*wait.
3458 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Renamed all
3459 lll_mutex_* resp. lll_robust_mutex_* macros to lll_* resp.
3460 lll_robust_*. Renamed all __lll_mutex_* resp. __lll_robust_mutex_*
3461 inline functions to __lll_* resp. __lll_robust_*.
3462 (LLL_MUTEX_LOCK_INITIALIZER): Remove.
3463 (lll_mutex_dead): Add private argument.
3464 (__lll_lock_wait_private): New prototype.
3465 (__lll_lock_wait, __lll_robust_lock_wait, __lll_lock_timedwait,
3466 __lll_robust_lock_timedwait): Add private argument to prototypes.
3467 (__lll_lock): Add private argument, if it is constant LLL_PRIVATE,
3468 call __lll_lock_wait_private, otherwise pass private to
3470 (__lll_robust_lock, __lll_cond_lock, __lll_timedlock,
3471 __lll_robust_timedlock): Add private argument, pass it to
3472 __lll_*wait functions.
3473 (__lll_unlock): Add private argument, if it is constant LLL_PRIVATE,
3474 call __lll_unlock_wake_private, otherwise pass private to
3476 (__lll_robust_unlock): Add private argument, pass it to
3477 __lll_robust_unlock_wake.
3478 (lll_lock, lll_robust_lock, lll_cond_lock, lll_timedlock,
3479 lll_robust_timedlock, lll_unlock, lll_robust_unlock): Add private
3480 argument, pass it through to __lll_* inline function.
3481 (__lll_mutex_unlock_force, lll_mutex_unlock_force): Remove.
3482 (lll_lock_t): Remove.
3483 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
3484 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
3485 lll_cond_wake, lll_cond_broadcast): Remove.
3486 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
3487 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
3488 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
3489 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3490 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Allow including
3491 the header from assembler. Renamed all lll_mutex_* resp.
3492 lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
3493 (LOCK, FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP,
3494 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
3495 (LLL_MUTEX_LOCK_INITIALIZER, LLL_MUTEX_LOCK_INITIALIZER_LOCKED,
3496 LLL_MUTEX_LOCK_INITIALIZER_WAITERS): Remove.
3497 (__lll_mutex_lock_wait, __lll_mutex_timedlock_wait,
3498 __lll_mutex_unlock_wake, __lll_lock_wait, __lll_unlock_wake):
3500 (__lll_trylock_asm, __lll_lock_asm_start, __lll_unlock_asm): Define.
3501 (lll_robust_trylock, lll_cond_trylock): Use LLL_LOCK_INITIALIZER*
3502 rather than LLL_MUTEX_LOCK_INITIALIZER* macros.
3503 (lll_trylock): Likewise, use __lll_trylock_asm, pass
3504 MULTIPLE_THREADS_OFFSET as another asm operand.
3505 (lll_lock): Add private argument, use __lll_lock_asm_start, pass
3506 MULTIPLE_THREADS_OFFSET as last asm operand, call
3507 __lll_lock_wait_private if private is constant LLL_PRIVATE,
3508 otherwise pass private as another argument to __lll_lock_wait.
3509 (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
3510 lll_timedlock, lll_robust_timedlock): Add private argument, pass
3511 private as another argument to __lll_*lock_wait call.
3512 (lll_unlock): Add private argument, use __lll_unlock_asm, pass
3513 MULTIPLE_THREADS_OFFSET as another asm operand, call
3514 __lll_unlock_wake_private if private is constant LLL_PRIVATE,
3515 otherwise pass private as another argument to __lll_unlock_wake.
3516 (lll_robust_unlock): Add private argument, pass private as another
3517 argument to __lll_unlock_wake.
3518 (lll_robust_dead): Add private argument, use __lll_private_flag
3520 (lll_islocked): Use LLL_LOCK_INITIALIZER instead of
3521 LLL_MUTEX_LOCK_INITIALIZER.
3522 (lll_lock_t): Remove.
3523 (LLL_LOCK_INITIALIZER_WAITERS): Define.
3524 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
3525 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
3526 lll_cond_wake, lll_cond_broadcast): Remove.
3527 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3528 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Revert
3529 2007-05-2{3,9} changes.
3530 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Include
3531 kernel-features.h and lowlevellock.h.
3532 (LOAD_PRIVATE_FUTEX_WAIT): Define.
3533 (LOAD_FUTEX_WAIT): Rewritten.
3534 (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
3536 (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
3537 (__lll_mutex_lock_wait): Rename to ...
3538 (__lll_lock_wait): ... this. Take futex addr from %edx instead of
3539 %ecx, %ecx is now private argument. Don't compile in for libc.so.
3540 (__lll_mutex_timedlock_wait): Rename to ...
3541 (__lll_timedlock_wait): ... this. Use __NR_gettimeofday. %esi
3542 contains private argument. Don't compile in for libc.so.
3543 (__lll_mutex_unlock_wake): Rename to ...
3544 (__lll_unlock_wake): ... this. %ecx contains private argument.
3545 Don't compile in for libc.so.
3546 (__lll_timedwait_tid): Use __NR_gettimeofday.
3547 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Include
3548 kernel-features.h and lowlevellock.h.
3549 (LOAD_FUTEX_WAIT): Define.
3550 (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
3552 (__lll_robust_mutex_lock_wait): Rename to ...
3553 (__lll_robust_lock_wait): ... this. Futex addr is now in %edx
3554 argument, %ecx argument contains private. Use LOAD_FUTEX_WAIT
3556 (__lll_robust_mutex_timedlock_wait): Rename to ...
3557 (__lll_robust_timedlock_wait): ... this. Use __NR_gettimeofday.
3558 %esi argument contains private, use LOAD_FUTEX_WAIT macro.
3559 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Include
3561 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3562 (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
3563 PRIVATE(%ebx) ^ LLL_SHARED as private argument in %ecx to
3564 __lll_lock_wait and __lll_unlock_wake, pass MUTEX(%ebx) address
3565 to __lll_lock_wait in %edx.
3566 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
3567 Include lowlevellock.h and pthread-errnos.h.
3568 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
3569 FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
3570 (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*, pass
3571 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3572 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3574 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
3575 Include lowlevellock.h and pthread-errnos.h.
3576 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
3577 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
3578 (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*, pass
3579 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3580 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3582 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
3583 Include lowlevellock.h.
3584 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3586 (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*, pass
3587 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
3588 pass LLL_SHARED in %ecx to both __lll_lock_wait and
3589 __lll_unlock_wake. Use __NR_gettimeofday.
3590 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
3591 Include lowlevellock.h.
3592 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3593 (__pthread_cond_wait, __condvar_w_cleanup): Rename __lll_mutex_*
3594 to __lll_*, pass cond_lock address in %edx rather than %ecx to
3595 __lll_lock_wait, pass LLL_SHARED in %ecx to both __lll_lock_wait
3596 and __lll_unlock_wake.
3597 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
3598 Include lowlevellock.h.
3599 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3600 (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*, pass
3601 MUTEX(%ebx) address in %edx rather than %ecx to
3602 __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
3603 and __lll_unlock_wake. Move return value from %ecx to %edx
3605 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3606 Include lowlevellock.h.
3607 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3609 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3610 MUTEX(%ebp) address in %edx rather than %ecx to
3611 __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
3612 and __lll_unlock_wake. Move return value from %ecx to %edx
3613 register. Use __NR_gettimeofday.
3614 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3615 Include lowlevellock.h.
3616 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
3618 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3619 MUTEX(%ebp) address in %edx rather than %ecx to
3620 __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
3621 and __lll_unlock_wake. Move return value from %ecx to %edx
3622 register. Use __NR_gettimeofday.
3623 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
3624 Include lowlevellock.h.
3625 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3626 (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*, pass
3627 MUTEX(%edi) address in %edx rather than %ecx to
3628 __lll_lock_wait, pass PSHARED(%edi) in %ecx to both __lll_lock_wait
3629 and __lll_unlock_wake.
3630 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
3631 Include lowlevellock.h.
3632 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3633 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
3634 MUTEX(%ebx) address in %edx rather than %ecx to
3635 __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
3636 and __lll_unlock_wake. Move return value from %ecx to %edx
3638 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Include
3640 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
3642 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Include lowlevellock.h.
3643 (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
3644 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Include
3646 (LOCK, SYS_futex, SYS_gettimeofday, FUTEX_WAIT): Don't define.
3647 (sem_timedwait): Use __NR_gettimeofday.
3648 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Include
3650 (LOCK): Don't define.
3651 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include
3653 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3654 * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Wake only when there
3656 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Revert
3657 2007-05-2{3,9} changes.
3658 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Include
3659 kernel-features.h and lowlevellock.h.
3660 (LOAD_PRIVATE_FUTEX_WAIT): Define.
3661 (LOAD_FUTEX_WAIT): Rewritten.
3662 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
3663 (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
3664 (__lll_mutex_lock_wait): Rename to ...
3665 (__lll_lock_wait): ... this. %esi is now private argument.
3666 Don't compile in for libc.so.
3667 (__lll_mutex_timedlock_wait): Rename to ...
3668 (__lll_timedlock_wait): ... this. %esi contains private argument.
3669 Don't compile in for libc.so.
3670 (__lll_mutex_unlock_wake): Rename to ...
3671 (__lll_unlock_wake): ... this. %esi contains private argument.
3672 Don't compile in for libc.so.
3673 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Include
3674 kernel-features.h and lowlevellock.h.
3675 (LOAD_FUTEX_WAIT): Define.
3676 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
3677 (__lll_robust_mutex_lock_wait): Rename to ...
3678 (__lll_robust_lock_wait): ... this. %esi argument contains private.
3679 Use LOAD_FUTEX_WAIT macro.
3680 (__lll_robust_mutex_timedlock_wait): Rename to ...
3681 (__lll_robust_timedlock_wait): ... this. %esi argument contains
3682 private, use LOAD_FUTEX_WAIT macro.
3683 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Include
3685 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3686 (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
3687 PRIVATE(%rdi) ^ LLL_SHARED as private argument in %esi to
3688 __lll_lock_wait and __lll_unlock_wake.
3689 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3690 Include lowlevellock.h and pthread-errnos.h.
3691 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
3692 FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
3693 (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*,
3694 pass LLL_SHARED in %esi to both __lll_lock_wait and
3696 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S:
3697 Include lowlevellock.h and pthread-errnos.h.
3698 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
3699 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
3700 (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*,
3701 pass LLL_SHARED in %esi to both __lll_lock_wait and
3703 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3704 Include lowlevellock.h.
3705 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3706 (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*,
3707 pass LLL_SHARED in %esi to both __lll_lock_wait and
3709 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
3710 Include lowlevellock.h.
3711 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
3712 (__pthread_cond_wait, __condvar_cleanup): Rename __lll_mutex_*
3713 to __lll_*, pass LLL_SHARED in %esi to both __lll_lock_wait
3714 and __lll_unlock_wake.
3715 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
3716 Include lowlevellock.h.
3717 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3719 (__pthread_rwlock_rdlock): 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_timedrdlock.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 %esi to both __lll_lock_wait
3728 and __lll_unlock_wake.
3729 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3730 Include lowlevellock.h.
3731 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3733 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3734 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3735 and __lll_unlock_wake.
3736 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
3737 Include lowlevellock.h.
3738 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3740 (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*,
3741 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
3742 and __lll_unlock_wake.
3743 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
3744 Include lowlevellock.h.
3745 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
3747 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
3748 pass PSHARED(%rdi) in %ecx to both __lll_lock_wait
3749 and __lll_unlock_wake.
3750 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Include
3752 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
3754 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Include lowlevellock.h.
3755 (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
3756 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Include
3758 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3759 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Include
3761 (LOCK): Don't define.
3762 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Include
3764 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
3765 * sysdeps/unix/sysv/linux/sparc/internaltypes.h: New file.
3766 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c: New file.
3767 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: New file.
3768 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: New file.
3769 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
3770 (__lll_lock_wait_private): New function.
3771 (__lll_lock_wait, __lll_timedlock_wait): Add private argument, pass
3772 it to lll_futex_*wait. Don't compile in for libc.so.
3773 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c:
3775 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c
3776 (struct sparc_pthread_barrier): Remove.
3777 (pthread_barrier_wait): Use union sparc_pthread_barrier instead of
3778 struct sparc_pthread_barrier. Pass
3779 ibarrier->s.pshared ? LLL_SHARED : LLL_PRIVATE to lll_{,un}lock
3780 and lll_futex_wait macros.
3781 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
3783 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
3784 Include sparc pthread_barrier_wait.c instead of generic one.
3786 2007-07-30 Jakub Jelinek <jakub@redhat.com>
3788 * tst-rwlock14.c (do_test): Avoid warnings on 32-bit arches.
3790 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
3791 (pthread_rwlock_timedrdlock): Copy futex retval to %esi rather than
3793 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
3794 (pthread_rwlock_timedwrlock): Likewise.
3795 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
3796 (__pthread_rwlock_unlock): Fix MUTEX != 0 args to __lll_*.
3798 2007-07-31 Jakub Jelinek <jakub@redhat.com>
3800 * sysdeps/sparc/tls.h (tcbhead_t): Add private_futex field.
3802 2007-07-26 Jakub Jelinek <jakub@redhat.com>
3804 * tst-locale2.c (useless): Add return statement.
3806 2007-07-24 Jakub Jelinek <jakub@redhat.com>
3808 * allocatestack.c (__nptl_setxid, __wait_lookup_done): Replace
3809 lll_private_futex_* (*) with lll_futex_* (*, LLL_PRIVATE).
3810 * pthread_create.c (start_thread): Likewise.
3811 * init.c (sighandler_setxid): Likewise.
3812 * sysdeps/alpha/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3813 * sysdeps/ia64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3814 * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3815 * sysdeps/s390/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3816 * sysdeps/powerpc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3817 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3818 * sysdeps/sparc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3819 * sysdeps/sh/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
3820 * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT):
3822 * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT):
3824 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
3826 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_waitzero,
3827 __rtld_notify): Likewise.
3828 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Likewise.
3829 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (clear_once_control,
3830 __pthread_once): Likewise.
3831 * sysdeps/unix/sysv/linux/alpha/pthread_once.c (clear_once_control,
3832 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3833 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3834 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3835 (lll_futex_wait): Add private argument, define as wrapper around
3836 lll_futex_timed_wait.
3837 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3838 use __lll_private_flag macro.
3839 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3840 __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
3841 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (clear_once_control,
3842 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3843 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3844 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3845 (lll_futex_wait): Add private argument, define as wrapper around
3846 lll_futex_timed_wait.
3847 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3848 use __lll_private_flag macro.
3849 (__lll_mutex_unlock, __lll_robust_mutex_unlock, lll_wait_tid,
3850 __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
3851 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
3853 (lll_futex_timed_wait, lll_futex_wake): Use it.
3854 (lll_private_futex_wait, lll_private_futex_timed_wait,
3855 lll_private_futex_wake): Removed.
3856 * sysdeps/unix/sysv/linux/s390/pthread_once.c (clear_once_control,
3857 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3858 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3859 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3860 (lll_futex_wait): Add private argument, define as wrapper around
3861 lll_futex_timed_wait.
3862 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3863 use __lll_private_flag macro.
3864 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3865 lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
3867 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3868 (lll_private_futex_wait, lll_private_futex_timed_wait,
3869 lll_private_futex_wake): Removed.
3870 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_private_flag):
3871 Fix !__ASSUME_PRIVATE_FUTEX non-constant private case.
3872 (lll_private_futex_wait, lll_private_futex_timed_wait,
3873 lll_private_futex_wake): Removed.
3874 * sysdeps/unix/sysv/linux/sparc/pthread_once.c (clear_once_control,
3875 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
3876 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_PRIVATE_FLAG,
3877 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
3878 (lll_futex_wait): Add private argument, define as wrapper around
3879 lll_futex_timed_wait.
3880 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
3881 use __lll_private_flag macro.
3882 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
3883 lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
3885 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (__lll_private_flag):
3887 (lll_futex_timed_wait, lll_futex_wake): Use it.
3888 (lll_private_futex_wait, lll_private_futex_timed_wait,
3889 lll_private_futex_wake): Removed.
3891 2007-07-27 Jakub Jelinek <jakub@redhat.com>
3893 * sysdeps/sparc/tls.h (tcbhead_t): Move gscope_flag to the end
3894 of the structure for sparc32.
3896 2007-07-26 Aurelien Jarno <aurelien@aurel32.net>
3898 * sysdeps/sparc/tls.h (tcbhead_t): Add gscope_flag.
3900 2007-07-23 Ulrich Drepper <drepper@redhat.com>
3902 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
3903 code used when private futexes are assumed.
3904 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3907 2007-07-23 Jakub Jelinek <jakub@redhat.com>
3909 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3910 (__lll_private_flag): Define.
3911 (lll_futex_wait): Define as a wrapper around lll_futex_timed_wait.
3912 (lll_futex_timed_wait, lll_futex_wake, lll_futex_wake_unlock): Use
3914 (lll_private_futex_wait, lll_private_futex_timedwait,
3915 lll_private_futex_wake): Define as wrapper around non-_private
3917 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
3918 (__lll_private_flag): Define.
3919 (lll_futex_timed_wait, lll_futex_wake): Use __lll_private_flag.
3920 (lll_private_futex_wait, lll_private_futex_timedwait,
3921 lll_private_futex_wake): Define as wrapper around non-_private
3924 2007-07-10 Steven Munroe <sjmunroe@us.ibm.com>
3926 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add LLL_SHARED
3927 parameter to lll_futex_wait call.
3928 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
3930 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
3931 Replace lll_futex_wait with lll_private_futex_wait.
3932 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
3933 Add LLL_SHARED parameter to lll_futex_wake().
3935 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define LLL_PRIVATE
3936 LLL_SHARED, lll_private_futex_wait, lll_private_futex_timed_wait and
3937 lll_private_futex_wake.
3938 (lll_futex_wait): Add private parameter. Adjust FUTEX_PRIVATE_FLAG
3939 bit from private parm before syscall.
3940 (lll_futex_timed_wait): Likewise.
3941 (lll_futex_wake): Likewise.
3942 (lll_futex_wake_unlock): Likewise.
3943 (lll_mutex_unlock): Add LLL_SHARED parm to lll_futex_wake call.
3944 (lll_robust_mutex_unlock): Likewise.
3945 (lll_mutex_unlock_force): Likewise.
3946 (lll_wait_tid): Add LLL_SHARED parm to lll_futex_wait call.
3948 2007-07-23 Ulrich Drepper <drepper@redhat.com>
3950 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
3951 compilation when unconditionally using private futexes.
3952 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
3953 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3955 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
3956 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
3958 2007-07-17 Jakub Jelinek <jakub@redhat.com>
3960 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
3963 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3965 * sysdeps/sh/tls.h: Include stdlib.h, list.h, sysdep.h and
3968 2007-05-16 Roland McGrath <roland@redhat.com>
3970 * init.c (__nptl_initial_report_events): New variable.
3971 (__pthread_initialize_minimal_internal): Initialize pd->report_events
3974 2007-06-22 Jakub Jelinek <jakub@redhat.com>
3976 * pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
3977 cpusetsize if pthread_getaffinity_np failed with ENOSYS.
3979 2007-06-19 Ulrich Drepper <drepper@redhat.com>
3981 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Remove mrlock
3984 2007-06-18 Ulrich Drepper <drepper@redhat.com>
3986 * pthreadP.h: Define PTHREAD_MUTEX_TYPE.
3987 * phtread_mutex_lock.c: Use PTHREAD_MUTEX_TYPE.
3988 * pthread_mutex_timedlock.c: Likewise.
3989 * pthread_mutex_trylock.c: Likewise.
3990 * pthread_mutex_unlock.c: Likewise.
3992 2007-06-17 Andreas Schwab <schwab@suse.de>
3994 * sysdeps/pthread/pt-initfini.c: Tell gcc about the nonstandard
3997 2007-06-17 Ulrich Drepper <drepper@redhat.com>
3999 * allocatestack.c (allocate_stack): Make code compile if
4000 __ASSUME_PRIVATE_FUTEX is set.
4002 2007-06-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4004 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S:
4005 (__pthread_rwlock_rdlock): Don't use non SH-3/4 instruction.
4006 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S:
4007 (__pthread_rwlock_wrlock): Likewise.
4008 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
4009 (pthread_rwlock_timedrdlock): Likewise.
4010 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
4011 (pthread_rwlock_timedwrlock): Likewise.
4012 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S:
4013 (__pthread_rwlock_unlock): Likewise.
4015 2007-06-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4017 * sysdeps/sh/tcb-offsets.sym: Add PRIVATE_FUTEX.
4018 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Include endian.h.
4019 Split __flags into __flags, __shared, __pad1 and __pad2.
4020 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Use private
4021 futexes if they are available.
4022 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Adjust so that change
4023 in libc-lowlevellock.S allow using private futexes.
4024 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
4025 FUTEX_PRIVATE_FLAG. Add additional parameter to lll_futex_wait,
4026 lll_futex_timed_wait and lll_futex_wake. Change lll_futex_wait
4027 to call lll_futex_timed_wait. Add lll_private_futex_wait,
4028 lll_private_futex_timed_wait and lll_private_futex_wake.
4029 (lll_robust_mutex_unlock): Fix typo.
4030 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Use private
4031 field in futex command setup.
4032 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Use
4033 COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.
4034 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
4035 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use private futexes
4036 if they are available. Remove clear_once_control.
4037 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Use private
4038 futexes if they are available.
4039 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
4040 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
4041 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
4042 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
4043 * sysdeps/unix/sysv/linux/sh/sem_post.S: Add private futex support.
4044 Wake only when there are waiters.
4045 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add private futex
4046 support. Indicate that there are waiters. Remove unnecessary
4047 extra cancellation test.
4048 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise. Removed
4049 left-over duplication of __sem_wait_cleanup.
4051 2007-06-07 Ulrich Drepper <drepper@redhat.com>
4053 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Add additional
4054 parameter to lll_futex_wait, lll_futex_timed_wait, and
4055 lll_futex_wake. Change lll_futex_wait to call lll_futex_timed_wait.
4056 Add lll_private_futex_wait, lll_private_futex_timed_wait, and
4057 lll_private_futex_wake.
4058 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4059 * allocatestack.c: Adjust use of lll_futex_* macros.
4061 * lowlevellock.h: Likewise.
4062 * pthread_barrier_wait.c: Likewise.
4063 * pthread_cond_broadcast.c: Likewise.
4064 * pthread_cond_destroy.c: Likewise.
4065 * pthread_cond_signal.c: Likewise.
4066 * pthread_cond_timedwait.c: Likewise.
4067 * pthread_cond_wait.c: Likewise.
4068 * pthread_create.c: Likewise.
4069 * pthread_mutex_lock.c: Likewise.
4070 * pthread_mutex_setprioceiling.c: Likewise.
4071 * pthread_mutex_timedlock.c: Likewise.
4072 * pthread_mutex_unlock.c: Likewise.
4073 * pthread_rwlock_timedrdlock.c: Likewise.
4074 * pthread_rwlock_timedwrlock.c: Likewise.
4075 * pthread_rwlock_unlock.c: Likewise.
4076 * sysdeps/alpha/tls.h: Likewise.
4077 * sysdeps/i386/tls.h: Likewise.
4078 * sysdeps/ia64/tls.h: Likewise.
4079 * sysdeps/powerpc/tls.h: Likewise.
4080 * sysdeps/pthread/aio_misc.h: Likewise.
4081 * sysdeps/pthread/gai_misc.h: Likewise.
4082 * sysdeps/s390/tls.h: Likewise.
4083 * sysdeps/sh/tls.h: Likewise.
4084 * sysdeps/sparc/tls.h: Likewise.
4085 * sysdeps/unix/sysv/linux/fork.c: Likewise.
4086 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
4087 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
4088 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Likewise.
4089 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
4090 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
4091 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
4092 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
4093 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
4094 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
4096 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Likewise.
4097 * sysdeps/x86_64/tls.h: Likewise.
4099 2007-05-29 Ulrich Drepper <drepper@redhat.com>
4101 * pthread_getattr_np.c: No need to install a cancellation handler,
4102 this is no cancellation point.
4103 * pthread_getschedparam.c: Likewise.
4104 * pthread_setschedparam.c: Likewise.
4105 * pthread_setschedprio.c: Likewise.
4106 * sysdeps/unix/sysv/linux/lowlevellock.c: Remove all traces of
4108 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
4109 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4110 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
4111 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
4112 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
4113 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
4114 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
4115 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
4116 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
4117 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Likewise.
4118 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4119 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4121 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Checking
4122 whether there are more than one thread makes no sense here since
4123 we only call the slow path if the locks are taken.
4124 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4126 * sysdeps/unix/sysv/linux/internaltypes.h: Introduce
4127 COND_NWAITERS_SHIFT.
4128 * pthread_cond_destroy.c: Use COND_NWAITERS_SHIFT instead of
4130 * pthread_cond_init.c: Likewise.
4131 * pthread_cond_timedwait.c: Likewise.
4132 * pthread_cond_wait.c: Likewise.
4133 * pthread_condattr_getclock.c: Likewise.
4134 * pthread_condattr_setclock.c: Likewise.
4135 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Likewise.
4136 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
4137 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
4138 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
4139 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4141 2007-05-28 Jakub Jelinek <jakub@redhat.com>
4143 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: Include
4146 * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Use explicit
4148 (THREAD_GSCOPE_GET_FLAG): Remove.
4149 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Remove.
4150 * allocatestack.c (__wait_lookup_done): Revert 2007-05-24
4152 * sysdeps/powerpc/tls.h (tcbhead_t): Remove gscope_flag.
4153 (THREAD_GSCOPE_GET_FLAG): Remove.
4154 (THREAD_GSCOPE_RESET_FLAG): Use THREAD_SELF->header.gscope_flag
4155 instead of THREAD_GSCOPE_GET_FLAG.
4156 (THREAD_GSCOPE_SET_FLAG): Likewise. Add atomic_write_barrier after
4158 * sysdeps/s390/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
4159 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
4160 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
4161 THREAD_GSCOPE_WAIT): Define.
4162 * sysdeps/sparc/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
4163 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
4164 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
4165 THREAD_GSCOPE_WAIT): Define.
4166 * sysdeps/sh/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
4167 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
4168 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
4169 THREAD_GSCOPE_WAIT): Define.
4170 * sysdeps/ia64/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
4171 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
4172 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
4173 THREAD_GSCOPE_WAIT): Define.
4175 2007-05-24 Richard Henderson <rth@redhat.com>
4177 * descr.h (struct pthread): Add header.gscope_flag.
4178 * sysdeps/alpha/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
4179 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
4180 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
4181 THREAD_GSCOPE_WAIT): Define.
4183 2007-05-27 Ulrich Drepper <drepper@redhat.com>
4185 * init.c: Make it compile with older kernel headers.
4187 * tst-initializers1.c: Show through exit code which test failed.
4189 * pthread_rwlock_init.c: Also initialize __shared field.
4190 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Split __flags
4191 element in rwlock structure into four byte elements. One of them is
4192 the new __shared element.
4193 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h [__WORDSIZE=32]:
4195 [__WORDSIZE=64]: Renamed __pad1 element int rwlock structure to
4196 __shared, adjust names of other padding elements.
4197 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
4198 * sysdeps/pthread/pthread.h: Adjust rwlock initializers.
4199 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Add PSHARED.
4200 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define
4202 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Change main
4203 futex to use private operations if possible.
4204 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
4206 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
4208 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
4209 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
4210 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
4211 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
4213 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
4215 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
4216 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
4218 2007-05-26 Ulrich Drepper <drepper@redhat.com>
4220 * pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Define.
4221 * pthread_rwlock_rdlock.c: Use PTHREAD_RWLOCK_PREFER_READER_P.
4222 * pthread_rwlock_timedrdlock.c: Likewise.
4223 * pthread_rwlock_tryrdlock.c: Likewise.
4225 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S (sem_trywait): Tiny
4228 * sysdeps/unix/sysv/linux/sem_wait.c: Add missing break.
4229 * sysdeps/unix/sysv/linux/sem_timedwait.c: Removed left-over
4230 duplication of __sem_wait_cleanup.
4232 * allocatestack.c: Revert last change.
4234 * sysdeps/i386/tls.h: Likewise.
4235 * sysdeps/x86_64/tls.h: Likewise.
4236 * descr.h [TLS_DTV_AT_TP] (struct pthread): Add private_futex field to
4238 * sysdeps/powerpc/tcb-offsets.sym: Add PRIVATE_FUTEX_OFFSET.
4240 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_barrier):
4242 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Add PRIVATE definition.
4243 * pthread_barrier_init.c: Set private flag if pshared and private
4244 futexes are supported.
4245 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Use
4246 private field in futex command setup.
4247 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
4249 2007-05-25 Ulrich Drepper <drepper@redhat.com>
4251 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Add private futex
4253 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
4254 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
4255 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
4256 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
4257 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
4259 * semaphoreP.h: Declare __old_sem_init and __old_sem_wait.
4260 * sem_init.c (__new_sem_init): Rewrite to initialize all three
4261 fields in the structure.
4262 (__old_sem_init): New function.
4263 * sem_open.c: Initialize all fields of the structure.
4264 * sem_getvalue.c: Adjust for renamed element.
4265 * sysdeps/unix/sysv/linux/Makefile [subdir=nptl]
4266 (gen-as-const-headers): Add structsem.sym.
4267 * sysdeps/unix/sysv/linux/structsem.sym: New file.
4268 * sysdeps/unix/sysv/linux/internaltypes.h: Rename struct sem to
4269 struct new_sem. Add struct old_sem.
4270 * sysdeps/unix/sysv/linux/sem_post.c: Wake only when there are waiters.
4271 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
4272 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
4273 * sysdeps/unix/sysv/linux/sem_wait.c: Indicate that there are waiters.
4274 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
4275 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
4276 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
4277 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
4278 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
4279 * Makefile (tests): Add tst-sem10, tst-sem11, tst-sem12.
4280 * tst-sem10.c: New file.
4281 * tst-sem11.c: New file.
4282 * tst-sem12.c: New file.
4283 * tst-typesizes.c: Test struct new_sem and struct old_sem instead
4286 2007-05-25 Ulrich Drepper <drepper@redhat.com>
4287 Jakub Jelinek <jakub@redhat.com>
4289 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
4290 Move __pthread_enable_asynccancel right before futex syscall.
4291 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
4294 2007-05-24 Jakub Jelinek <jakub@redhat.com>
4296 * sysdeps/i386/tls.h (THREAD_SET_PRIVATE_FUTEX,
4297 THREAD_COPY_PRIVATE_FUTEX): Define.
4298 * sysdeps/x86_64/tls.h (THREAD_SET_PRIVATE_FUTEX,
4299 THREAD_COPY_PRIVATE_FUTEX): Define.
4300 * allocatestack.c (allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX.
4301 * init.c (__pthread_initialize_minimal_internal): Use
4302 THREAD_SET_PRIVATE_FUTEX.
4304 * sysdeps/powerpc/tls.h (tcbhead_t): Add gscope_flag.
4305 (THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED,
4306 THREAD_GSCOPE_FLAG_WAIT): Define.
4307 (THREAD_GSCOPE_GET_FLAG, THREAD_GSCOPE_SET_FLAG,
4308 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_WAIT): Define.
4309 * sysdeps/i386/tls.h (THREAD_GSCOPE_WAIT): Don't use
4311 (THREAD_GSCOPE_GET_FLAG): Define.
4312 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Define.
4313 * allocatestack.c (__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG
4314 instead of ->header.gscope_flag directly.
4316 2007-05-23 Ulrich Drepper <drepper@redhat.com>
4318 * init.c (__pthread_initialize_minimal_internal): Check whether
4319 private futexes are available.
4320 * allocatestack.c (allocate_stack): Copy private_futex field from
4321 current thread into the new stack.
4322 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Use private
4323 futexes if they are available.
4324 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise
4325 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Adjust so that change
4326 in libc-lowlevellock.S allow using private futexes.
4327 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
4328 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
4330 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4331 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use private futexes
4332 if they are available.
4333 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
4334 * sysdeps/x86_64/tcb-offsets.sym: Add PRIVATE_FUTEX.
4335 * sysdeps/i386/tcb-offsets.sym: Likewise.
4336 * sysdeps/x86_64/tls.h (tcbhead_t): Add private_futex field.
4337 * sysdeps/i386/tls.h (tcbhead_t): Likewise.
4339 2007-05-21 Ulrich Drepper <drepper@redhat.com>
4341 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
4342 Remove ptr_wait_lookup_done again.
4343 * init.c (pthread_functions): Don't add .ptr_wait_lookup_done here.
4344 (__pthread_initialize_minimal_internal): Initialize
4345 _dl_wait_lookup_done pointer in _rtld_global directly.
4346 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
4347 Remove code to code _dl_wait_lookup_done.
4348 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_WAIT): The pointer is not
4351 2007-05-21 Jakub Jelinek <jakub@redhat.com>
4353 * tst-robust9.c (do_test): Don't fail if ENABLE_PI and
4354 pthread_mutex_init failed with ENOTSUP.
4356 2007-05-19 Ulrich Drepper <drepper@redhat.com>
4358 * allocatestack.c (__wait_lookup_done): New function.
4359 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
4360 Add ptr_wait_lookup_done.
4361 * init.c (pthread_functions): Initialize .ptr_wait_lookup_done.
4362 * pthreadP.h: Declare __wait_lookup_done.
4363 * sysdeps/i386/tls.h (tcbhead_t): Add gscope_flag.
4364 Define macros to implement reference handling of global scope.
4365 * sysdeps/x86_64/tls.h: Likewise.
4366 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
4367 Initialize GL(dl_wait_lookup_done).
4369 2007-05-17 Ulrich Drepper <drepper@redhat.com>
4372 * pthread_mutex_lock.c: Preserve FUTEX_WAITERS bit when dead owner
4374 * pthread_mutex_timedlock.c: Likewise.
4375 * pthread_mutex_trylock.c: Likewise.
4376 Patch in part by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
4378 * Makefile (tests): Add tst-robust9 and tst-robustpi9.
4379 * tst-robust9.c: New file.
4380 * tst-robustpi9.c: New file.
4382 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Remove
4383 unnecessary extra cancellation test.
4385 2007-05-14 Ulrich Drepper <drepper@redhat.com>
4387 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove unnecessary
4388 extra cancellation test.
4389 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
4391 2007-05-10 Ulrich Drepper <drepper@redhat.com>
4393 * descr.h (struct pthread): Rearrange members to fill hole in
4396 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
4397 (__pthread_setaffinity_new): If syscall was successful and
4398 RESET_VGETCPU_CACHE is defined, use it before returning.
4399 * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: New file.
4401 2007-05-10 Jakub Jelinek <jakub@redhat.com>
4404 * tst-align2.c: Include stackinfo.h.
4405 * tst-getpid1.c: Likewise.
4407 2007-05-02 Carlos O'Donell <carlos@systemhalted.org>
4410 * tst-align2.c (do_test): Add _STACK_GROWS_UP case.
4411 * tst-getpid1.c (do_test): Likewise.
4414 * allocatestack.c (change_stack_perm): Add _STACK_GROWS_UP case.
4415 (allocate_stack): Likewise.
4417 2007-05-07 Ulrich Drepper <drepper@redhat.com>
4419 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
4420 (__lll_robust_lock_wait): Fix race caused by reloading of futex value.
4421 (__lll_robust_timedlock_wait): Likewise.
4422 Reported by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
4424 2007-05-06 Mike Frysinger <vapier@gentoo.org>
4427 * tst-cancel-wrappers.sh: Set C["fdatasync"] to 1.
4428 * tst-cancel4.c (tf_fdatasync): New test.
4430 2007-04-27 Ulrich Drepper <drepper@redhat.com>
4433 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Treat error
4434 check mutexes like normal mutexes.
4437 * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
4438 Initialize the whole sigevent structure to appease valgrind.
4440 2007-04-25 Ulrich Drepper <drepper@redhat.com>
4442 * sysdeps/x86_64/tls.h (tcbhead_t): Add vgetcpu_cache.
4443 * sysdeps/x86_64/tcb-offsets.sym: Add VGETCPU_CACHE_OFFSET.
4445 2007-04-06 Ulrich Drepper <drepper@redhat.com>
4447 * tst-locale1.c: Avoid warnings.
4448 * tst-locale2.c: Likewise.
4450 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
4452 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
4453 (__lll_robust_trylock): Add MUTEX_HINT_ACQ to lwarx instruction.
4455 2007-03-16 Jakub Jelinek <jakub@redhat.com>
4457 * sysdeps/pthread/bits/libc-lock.h: Use __extern_inline and
4458 __extern_always_inline where appropriate.
4459 * sysdeps/pthread/pthread.h: Likewise.
4461 2007-03-13 Richard Henderson <rth@redhat.com>
4463 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use two
4464 separate cfi regions for the two subsections.
4466 2007-02-25 Ulrich Drepper <drepper@redhat.com>
4468 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in
4469 new thread, don't just decrement it.
4470 Patch by Suzuki K P <suzuki@in.ibm.com>.
4472 2007-02-21 Ulrich Drepper <drepper@redhat.com>
4474 * sysdeps/pthread/pthread-functions.h: Correct last patch, correct
4475 PTHFCT_CALL definition.
4477 2007-02-18 Ulrich Drepper <drepper@redhat.com>
4479 * sysdeps/pthread/pthread-functions.h: If PTR_DEMANGLE is not
4480 available, don't use it.
4482 2007-02-09 Jakub Jelinek <jakub@redhat.com>
4484 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
4485 (__lll_mutex_timedlock_wait): Use correct pointer when we don't
4486 call into the kernel to delay.
4488 2007-01-18 Ulrich Drepper <drepper@redhat.com>
4490 * tst-initializers1.c: We want to test the initializers as seen
4491 outside of libc, so undefined _LIBC.
4493 * pthread_join.c (cleanup): Avoid warning.
4495 2007-01-17 Ulrich Drepper <drepper@redhat.com>
4497 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
4498 (__lll_timedwait_tid): Add unwind info.
4500 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Don't just copy the
4501 function table, mangle the pointers.
4502 * sysdeps/pthread/pthread-functions.h: Define PTHFCT_CALL.
4503 * forward.c: Use PTHFCT_CALL and __libc_pthread_functions_init.
4504 * sysdeps/pthread/bits/libc-lock.h: When using __libc_pthread_functions
4505 demangle pointers before use.
4506 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Use PTHFCT_CALL to
4508 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
4509 * sysdeps/pthread/setxid.h: Likewise.
4511 2007-01-12 Ulrich Drepper <drepper@redhat.com>
4513 * tst-rwlock7.c: Show some more information in case of correct
4516 2007-01-11 Ulrich Drepper <drepper@redhat.com>
4518 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
4519 (lll_futex_timed_wait): Undo part of last change, don't negate
4522 2007-01-10 Ulrich Drepper <drepper@redhat.com>
4524 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Cleanups. Define
4525 FUTEX_CMP_REQUEUE and lll_futex_requeue.
4527 2006-12-28 David S. Miller <davem@davemloft.net>
4529 * shlib-versions: Fix sparc64 linux target specification.
4531 2007-01-10 Jakub Jelinek <jakub@redhat.com>
4533 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
4534 Adjust include path for pthread_barrier_wait.c move.
4536 2006-12-21 Jakub Jelinek <jakub@redhat.com>
4538 * sysdeps/unix/sysv/linux/pthread_kill.c (pthread_kill): Make sure
4539 tid isn't reread from pd->tid in between ESRCH test and the syscall.
4541 2006-12-06 Jakub Jelinek <jakub@redhat.com>
4543 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Handle
4544 6 argument cancellable syscalls.
4545 (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
4546 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Handle
4547 6 argument cancellable syscalls.
4548 (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
4550 2006-12-09 Ulrich Drepper <drepper@redhat.com>
4552 * sysdeps/unix/sysv/linux/rtld-lowlevel.h
4553 (__rtld_mrlock_initialize): Add missing closing parenthesis.
4555 2006-10-30 Jakub Jelinek <jakub@redhat.com>
4557 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
4558 __sync_lock_release instead of __sync_lock_release_si.
4560 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4562 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (RTLD_SINGLE_THREAD_P):
4564 (SINGLE_THREAD_P): Define to 1 if IS_IN_rtld.
4565 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
4566 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
4567 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
4568 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
4569 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
4570 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
4571 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
4572 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
4573 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
4574 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
4576 2006-10-27 Ulrich Drepper <drepper@redhat.com>
4578 * sysdeps/pthread/pthread_barrier_wait.c: Move to...
4579 * pthread_barrier_wait.c: ...here.
4580 * sysdeps/pthread/pthread_cond_broadcast.c: Move to...
4581 * pthread_cond_broadcast.c: ...here.
4582 * sysdeps/pthread/pthread_cond_signal.c: Move to...
4583 * pthread_cond_signal.c: ...here.
4584 * sysdeps/pthread/pthread_cond_timedwait.c: Move to...
4585 * pthread_cond_timedwait.c: ...here.
4586 * sysdeps/pthread/pthread_cond_wait.c: Move to...
4587 * pthread_cond_wait.c: ...here.
4588 * sysdeps/pthread/pthread_once.c: Move to...
4589 * pthread_once.c: ...here.
4590 * sysdeps/pthread/pthread_rwlock_rdlock.c: Move to...
4591 * pthread_rwlock_rdlock.c: ...here.
4592 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Move to...
4593 * pthread_rwlock_timedrdlock.c: ...here.
4594 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Move to...
4595 * pthread_rwlock_timedwrlock.c: ...here.
4596 * sysdeps/pthread/pthread_rwlock_unlock.c: Move to...
4597 * pthread_rwlock_unlock.c: ...here.
4598 * sysdeps/pthread/pthread_rwlock_wrlock.c: Move to...
4599 * pthread_rwlock_wrlock.c: ...here.
4600 * sysdeps/pthread/pthread_spin_destroy.c: Move to...
4601 * pthread_spin_destroy.c: ...here.
4602 * sysdeps/pthread/pthread_spin_init.c: Move to...
4603 * pthread_spin_init.c: ...here.
4604 * sysdeps/pthread/pthread_spin_unlock.c: Move to...
4605 * pthread_spin_unlock.c: ...here.
4606 * sysdeps/pthread/pthread_getcpuclockid.c: Move to...
4607 * pthread_getcpuclockid.c: ...here.
4609 * init.c: USE_TLS support is now always enabled.
4610 * tst-tls5.h: Likewise.
4611 * sysdeps/alpha/tls.h: Likewise.
4612 * sysdeps/i386/tls.h: Likewise.
4613 * sysdeps/ia64/tls.h: Likewise.
4614 * sysdeps/powerpc/tls.h: Likewise.
4615 * sysdeps/s390/tls.h: Likewise.
4616 * sysdeps/sh/tls.h: Likewise.
4617 * sysdeps/sparc/tls.h: Likewise.
4618 * sysdeps/x86_64/tls.h: Likewise.
4620 2006-10-27 Jakub Jelinek <jakub@redhat.com>
4622 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
4623 __rtld_mrlock_change): Update oldval if atomic compare and exchange
4626 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
4627 Define to THREAD_SELF->header.multiple_threads.
4628 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
4630 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
4632 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
4633 (SINGLE_THREAD_P): Likewise.
4634 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
4635 (SINGLE_THREAD_P): Likewise.
4636 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
4637 (SINGLE_THREAD_P): Likewise.
4638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
4639 (SINGLE_THREAD_P): Likewise.
4640 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (SINGLE_THREAD_P):
4642 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
4643 (SINGLE_THREAD_P): Likewise.
4644 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
4645 (SINGLE_THREAD_P): Likewise.
4646 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (SINGLE_THREAD_P):
4649 2006-10-26 Jakub Jelinek <jakub@redhat.com>
4651 * pthread_attr_setstacksize.c (NEW_VERNUM): Define to GLIBC_2_3_3
4652 by default rather than 2_3_3.
4654 2006-10-17 Jakub Jelinek <jakub@redhat.com>
4656 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
4657 __rtld_mrlock_unlock, __rtld_mrlock_change, __rtld_mrlock_done): Use
4658 atomic_* instead of catomic_* macros.
4660 2006-10-12 Ulrich Drepper <drepper@redhat.com>
4663 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add SEM_VALUE_MAX.
4664 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
4665 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
4666 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
4667 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
4668 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Remove SEM_VALUE_MAX.
4669 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
4670 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
4671 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
4672 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: Likewise.
4673 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
4674 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
4675 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
4677 2006-10-11 Ulrich Drepper <drepper@redhat.com>
4679 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add support for
4680 cancelable syscalls with six parameters.
4682 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Use catomic_*
4683 operations instead of atomic_*.
4685 2006-10-09 Ulrich Drepper <drepper@redhat.com>
4687 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: New file..
4689 2006-10-07 Ulrich Drepper <drepper@redhat.com>
4691 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: New file.
4692 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: New file.
4693 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
4695 * pthread_attr_setstack.c: Allow overwriting the version number of the
4697 * pthread_attr_setstacksize.c: Likewise.
4698 (__old_pthread_attr_setstacksize): If STACKSIZE_ADJUST is defined use
4700 * sysdeps/unix/sysv/linux/powerpc/Versions (libpthread): Add
4701 pthread_attr_setstack and pthread_attr_setstacksize to GLIBC_2.6.
4703 2006-09-24 Ulrich Drepper <drepper@redhat.com>
4706 * descr.h (ENQUEUE_MUTEX_BOTH): Add cast to avoid warning.
4707 Patch by Petr Baudis.
4709 2006-09-18 Jakub Jelinek <jakub@redhat.com>
4711 * tst-kill4.c (do_test): Explicitly set tf thread's stack size.
4713 * tst-cancel2.c (tf): Loop as long as something was written.
4715 2006-09-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4717 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: For PI
4718 mutexes wake all mutexes.
4719 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Don't increment
4720 WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
4721 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
4723 2006-09-12 Ulrich Drepper <drepper@redhat.com>
4725 * tst-cond22.c (tf): Slight changes to the pthread_cond_wait use
4726 to guarantee the thread is always canceled.
4728 2006-09-08 Jakub Jelinek <jakub@redhat.com>
4730 * tst-cond22.c: Include pthread.h instead of pthreadP.h.
4732 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Only
4733 increase FUTEX if increasing WAKEUP_SEQ. Fix comment typo.
4734 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
4735 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
4736 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4738 2006-09-08 Ulrich Drepper <drepper@redhat.com>
4741 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Don't
4742 increment WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
4743 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
4744 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
4745 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4746 * Makefile (tests): Add tst-cond22.
4747 * tst-cond22.c: New file.
4749 2006-09-05 Ulrich Drepper <drepper@redhat.com>
4752 * descr.h (struct pthread): Add parent_cancelhandling.
4753 * sysdeps/pthread/createthread.c (create_thread): Pass parent
4754 cancelhandling value to child.
4755 * pthread_create.c (start_thread): If parent thread was canceled
4756 reset the SIGCANCEL mask.
4757 * Makefile (tests): Add tst-cancel25.
4758 * tst-cancel25.c: New file.
4760 2006-09-05 Jakub Jelinek <jakub@redhat.com>
4761 Ulrich Drepper <drepper@redhat.com>
4763 * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY): Don't decrement
4764 counterp if it is already zero.
4765 * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY): Likewise..
4767 2006-03-04 Jakub Jelinek <jakub@redhat.com>
4768 Roland McGrath <roland@redhat.com>
4770 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
4771 (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
4772 LLL_STUB_UNWIND_INFO_3, LLL_STUB_UNWIND_INFO_4): Define.
4773 (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
4774 lll_robust_mutex_cond_lock, lll_mutex_timedlock,
4775 lll_robust_mutex_timedlock, lll_mutex_unlock,
4776 lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
4777 Add _L_*_ symbols around the subsection.
4778 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Add unwind info.
4779 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Likewise.
4781 2006-03-03 Jakub Jelinek <jakub@redhat.com>
4782 Roland McGrath <roland@redhat.com>
4784 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
4785 (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
4786 LLL_STUB_UNWIND_INFO_5, LLL_STUB_UNWIND_INFO_6): Define.
4787 (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
4788 lll_robust_mutex_cond_lock, lll_mutex_timedlock,
4789 lll_robust_mutex_timedlock, lll_mutex_unlock,
4790 lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
4791 Add _L_*_ symbols around the subsection.
4792 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Add unwind info.
4793 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
4795 2006-08-31 Ulrich Drepper <drepper@redhat.com>
4797 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Undo last
4798 change because it can disturb too much existing code. If real hard
4799 reader preference is needed we'll introduce another type.
4800 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
4801 (pthread_rwlock_timedwrlock): Likewise.
4802 * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
4805 2006-08-30 Ulrich Drepper <drepper@redhat.com>
4807 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Respect
4809 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
4810 (pthread_rwlock_timedwrlock): Likewise.
4811 * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
4814 2006-08-25 Jakub Jelinek <jakub@redhat.com>
4816 * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libpthread):
4817 Only define ifdef SHARED.
4819 2006-08-23 Ulrich Drepper <drepper@redhat.com>
4821 * allocatestack.c (queue_stack): Move freeing of surplus stacks to...
4822 (free_stacks): ...here.
4823 (__free_stack_cache): New function.
4824 * pthreadP.h: Declare __free_stack_cache.
4825 * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
4827 * init.c (pthread_functions): Initialize ptr_freeres.
4828 * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libptread):
4829 New freeres function.
4831 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
4834 * Makefile (extra-objs): Add modules to extra-test-objs instead.
4836 2006-08-20 Ulrich Drepper <drepper@redhat.com>
4838 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4839 _XOPEN_REALTIME_THREADS.
4841 2006-08-15 Jakub Jelinek <jakub@redhat.com>
4843 * sysdeps/unix/sysv/linux/clock_settime.c (INTERNAL_VSYSCALL): Use
4844 HAVE_CLOCK_GETRES_VSYSCALL as guard macro rather than
4845 HAVE_CLOCK_GETTIME_VSYSCALL.
4846 (maybe_syscall_settime_cpu): Use plain INTERNAL_VSYSCALL here.
4848 2006-08-14 Jakub Jelinek <jakub@redhat.com>
4850 * sysdeps/unix/sysv/linux/bits/posix_opt.h
4851 (_POSIX_THREAD_PRIO_PROTECT): Define to 200112L.
4852 * descr.h (struct priority_protection_data): New type.
4853 (struct pthread): Add tpp field.
4854 * pthreadP.h (PTHREAD_MUTEX_PP_NORMAL_NP,
4855 PTHREAD_MUTEX_PP_RECURSIVE_NP, PTHREAD_MUTEX_PP_ERRORCHECK_NP,
4856 PTHREAD_MUTEX_PP_ADAPTIVE_NP): New enum values.
4857 * pthread_mutex_init.c (__pthread_mutex_init): Handle non-robust
4859 * pthread_mutex_lock.c (__pthread_mutex_lock): Handle TPP mutexes.
4860 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
4861 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
4862 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
4864 * pthread_setschedparam.c (__pthread_setschedparam): Handle priority
4866 * pthread_setschedprio.c (pthread_setschedprio): Likewise.
4867 * pthread_mutexattr_getprioceiling.c
4868 (pthread_mutexattr_getprioceiling): If ceiling is 0, ensure it is
4869 in the SCHED_FIFO priority range.
4870 * pthread_mutexattr_setprioceiling.c
4871 (pthread_mutexattr_setprioceiling): Fix prioceiling validation.
4872 * pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling): Fail
4873 if mutex is not TPP. Ceiling is now in __data.__lock.
4874 * pthread_mutex_setprioceiling.c: Include stdbool.h.
4875 (pthread_mutex_setprioceiling): Fix prioceiling validation. Ceiling
4876 is now in __data.__lock. Add locking.
4877 * pthread_create.c (__free_tcb): Free pd->tpp structure.
4878 * Makefile (libpthread-routines): Add tpp.
4879 (xtests): Add tst-mutexpp1, tst-mutexpp6 and tst-mutexpp10.
4880 * tst-tpp.h: New file.
4881 * tst-mutexpp1.c: New file.
4882 * tst-mutexpp6.c: New file.
4883 * tst-mutexpp10.c: New file.
4884 * tst-mutex1.c (TEST_FUNCTION): Don't redefine if already defined.
4885 * tst-mutex6.c (TEST_FUNCTION): Likewise.
4887 2006-08-12 Ulrich Drepper <drepper@redhat.com>
4890 * pthread_join.c (pthread_join): Account for self being canceled
4891 when checking for deadlocks.
4892 * tst-join5.c: Cleanups. Allow to be used in tst-join6.
4893 (tf1): Don't print anything after pthread_join returns, this would be
4894 another cancellation point.
4896 * tst-join6.c: New file.
4897 * Makefile (tests): Add tst-join6.
4899 2006-08-03 Ulrich Drepper <drepper@redhat.com>
4902 * pthread_setspecific.c (__pthread_setspecific): Check
4903 out-of-range index before checking for unused key.
4905 * sysdeps/pthread/gai_misc.h: New file.
4907 2006-08-01 Ulrich Drepper <drepper@redhat.com>
4909 * sysdeps/unix/sysv/linux/i386/smp.h: New file. Old Linux-specific
4910 file. Don't use sysctl.
4911 * sysdeps/unix/sysv/linux/smp.h: Always assume SMP. Archs can
4912 overwrite the file if this is likely not true.
4914 2006-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4916 * allocatestack.c (__reclaim_stacks): Reset the PID on cached stacks.
4917 * Makefile (tests): Add tst-getpid3.
4918 * tst-getpid3.c: New file.
4920 2006-07-30 Roland McGrath <roland@redhat.com>
4922 * Makefile (libpthread-routines): Add ptw-sigsuspend.
4924 * sysdeps/unix/sysv/linux/i386/not-cancel.h
4925 (pause_not_cancel): New macro.
4926 (nanosleep_not_cancel): New macro.
4927 (sigsuspend_not_cancel): New macro.
4928 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
4929 nanosleep_not_cancel macro from <not-cancel.h>.
4930 * pthread_mutex_lock.c (__pthread_mutex_lock): Use pause_not_cancel
4931 macro from <not-cancel.h>.
4933 2006-07-28 Ulrich Drepper <drepper@redhat.com>
4934 Jakub Jelinek <jakub@redhat.com>
4936 * descr.h: Change ENQUEUE_MUTEX and DEQUEUE_MUTEX for bit 0
4937 notification of PI mutex. Add ENQUEUE_MUTEX_PI.
4938 * pthreadP.h: Define PTHREAD_MUTEX_PI_* macros for PI mutex types.
4939 * pthread_mutex_setprioceilining.c: Adjust for mutex type name change.
4940 * pthread_mutex_init.c: Add support for priority inheritance mutex.
4941 * pthread_mutex_lock.c: Likewise.
4942 * pthread_mutex_timedlock.c: Likewise.
4943 * pthread_mutex_trylock.c: Likewise.
4944 * pthread_mutex_unlock.c: Likewise.
4945 * sysdeps/pthread/pthread_cond_broadcast.c: For PI mutexes wake
4947 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.c: Likewise.
4948 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.c: Likewise.
4949 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: New file.
4950 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-header): Add
4951 pthread-pi-defines.sym.
4952 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_LOCK_PI,
4953 FUTEX_UNLOCK_PI, and FUTEX_TRYLOCK_PI.
4954 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4955 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
4956 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
4957 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
4958 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
4959 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
4960 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
4961 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4962 _POSIX_THREAD_PRIO_INHERIT to 200112L.
4963 * tst-mutex1.c: Adjust to allow use in PI mutex test.
4964 * tst-mutex2.c: Likewise.
4965 * tst-mutex3.c: Likewise.
4966 * tst-mutex4.c: Likewise.
4967 * tst-mutex5.c: Likewise.
4968 * tst-mutex6.c: Likewise.
4969 * tst-mutex7.c: Likewise.
4970 * tst-mutex7a.c: Likewise.
4971 * tst-mutex8.c: Likewise.
4972 * tst-mutex9.c: Likewise.
4973 * tst-robust1.c: Likewise.
4974 * tst-robust7.c: Likewise.
4975 * tst-robust8.c: Likewise.
4976 * tst-mutexpi1.c: New file.
4977 * tst-mutexpi2.c: New file.
4978 * tst-mutexpi3.c: New file.
4979 * tst-mutexpi4.c: New file.
4980 * tst-mutexpi5.c: New file.
4981 * tst-mutexpi6.c: New file.
4982 * tst-mutexpi7.c: New file.
4983 * tst-mutexpi7a.c: New file.
4984 * tst-mutexpi8.c: New file.
4985 * tst-mutexpi9.c: New file.
4986 * tst-robust1.c: New file.
4987 * tst-robust2.c: New file.
4988 * tst-robust3.c: New file.
4989 * tst-robust4.c: New file.
4990 * tst-robust5.c: New file.
4991 * tst-robust6.c: New file.
4992 * tst-robust7.c: New file.
4993 * tst-robust8.c: New file.
4994 * Makefile (tests): Add the new tests.
4996 * pthread_create.c (start_thread): Add some casts to avoid warnings.
4997 * pthread_mutex_destroy.c: Remove unneeded label.
4999 2006-07-01 Ulrich Drepper <drepper@redhat.com>
5001 * pthread_mutex_init.c (__pthread_mutex_init): Move some
5002 computations to compile time.
5004 2006-06-04 Ulrich Drepper <drepper@redhat.com>
5006 * sysdeps/pthread/pthread.h: Add pthread_equal inline version.
5008 2006-05-15 Ulrich Drepper <drepper@redhat.com>
5010 * sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.
5012 2006-05-11 Ulrich Drepper <drepper@redhat.com>
5014 * pthread_key_create.c (__pthread_key_create): Do away with
5015 __pthread_keys_lock.
5017 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
5018 (__kernel_cpumask_size): Mark as hidden.
5019 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
5021 * sem_open.c (__sem_mappings_lock): Mark as hidden.
5022 * semaphoreP.h (__sem_mappings_lock): Likewise.
5024 2006-05-10 Ulrich Drepper <drepper@redhat.com>
5026 * pthread_atfork.c: Mark __dso_handle as hidden.
5028 2006-05-09 Ulrich Drepper <drepper@redhat.com>
5031 * sysdeps/pthread/unwind-forcedunwind.c: Different solution for
5032 the reload problem. Change the one path in pthread_cancel_init
5033 which causes the problem. Force gcc to reload. Simplify callers.
5034 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c
5035 (_Unwind_GetBSP): Undo last patch.
5037 2006-05-07 Ulrich Drepper <drepper@redhat.com>
5039 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: Make sure the
5040 function pointer is reloaded after pthread_cancel_init calls.
5043 * sysdeps/pthread/unwind-forcedunwind.c: Make sure functions
5044 pointers are reloaded after pthread_cancel_init calls.
5046 2006-05-01 Ulrich Drepper <drepper@redhat.com>
5048 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Mark with
5051 2006-04-27 Ulrich Drepper <drepper@redhat.com>
5053 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
5054 Allocate new object which is passed to timer_sigev_thread so that
5055 the timer can be deleted before the new thread is scheduled.
5057 2006-04-26 Roland McGrath <roland@redhat.com>
5059 * sysdeps/x86_64/tls.h: Include <asm/prctl.h> inside [! __ASSEMBLER__].
5061 2006-04-08 Ulrich Drepper <drepper@redhat.com>
5063 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove branch predicion
5064 suffix for conditional jumps.
5065 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
5066 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
5067 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
5068 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
5069 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
5070 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
5072 * init.c (sigcancel_handler): Compare with correct PID even if the
5073 thread is in the middle of a fork call.
5074 (sighandler_setxid): Likewise.
5075 Reported by Suzuki K P <suzuki@in.ibm.com> .
5077 2006-04-07 Jakub Jelinek <jakub@redhat.com>
5079 * pthreadP.h (FUTEX_TID_MASK): Sync with kernel.
5081 2006-04-06 Ulrich Drepper <drepper@redhat.com>
5083 * pthread_getattr_np.c (pthread_getattr_np): Close fp if getrlimit
5084 fails [Coverity CID 105].
5086 2006-04-05 Ulrich Drepper <drepper@redhat.com>
5088 * sysdeps/pthread/pthread.h: Add nonnull attributes.
5090 2006-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5093 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h [_ARCH_PWR4]:
5094 Define __lll_rel_instr using lwsync.
5096 2006-03-27 Ulrich Drepper <drepper@redhat.com>
5098 * allocatestack.c (allocate_stack): Always initialize robust_head.
5099 * descr.h: Define struct robust_list_head.
5100 (struct pthread): Use robust_list_head in robust mutex list definition.
5101 Adjust ENQUEUE_MUTEX and DEQUEUE_MUTEX.
5102 * init.c [!__ASSUME_SET_ROBUST_LIST] (__set_robust_list_avail): Define.
5103 (__pthread_initialize_minimal_internal): Register robust_list with
5105 * pthreadP.h: Remove PRIVATE_ from PTHREAD_MUTEX_ROBUST_* names.
5106 Declare __set_robust_list_avail.
5107 * pthread_create.c (start_thread): Register robust_list of new thread.
5108 [!__ASSUME_SET_ROBUST_LIST]: If robust_list is not empty wake up
5110 * pthread_mutex_destroy.c: For robust mutexes don't look at the
5111 number of users, it's unreliable.
5112 * pthread_mutex_init.c: Allow use of pshared robust mutexes if
5113 set_robust_list syscall is available.
5114 * pthread_mutex_consistent.c: Adjust for PTHREAD_MUTEX_ROBUST_* rename.
5115 * pthread_mutex_lock.c: Simplify robust mutex code a bit.
5116 Set robust_head.list_op_pending before trying to lock a robust mutex.
5117 * pthread_mutex_timedlock.c: Likewise.
5118 * pthread_mutex_trylock.c: Likewise.
5119 * pthread_mutex_unlock.c: Likewise for unlocking.
5120 * Makefile (tests): Add tst-robust8.
5121 * tst-robust8.c: New file.
5123 2006-03-08 Andreas Schwab <schwab@suse.de>
5125 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
5126 (DL_SYSINFO_IMPLEMENTATION): Add missing newline.
5128 2006-03-05 Roland McGrath <roland@redhat.com>
5130 * configure (libc_add_on): Disable add-on when $add_ons_automatic = yes
5131 and $config_os doesn't match *linux*.
5133 2006-03-05 David S. Miller <davem@sunset.davemloft.net>
5135 * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S:
5136 Use __syscall_error.
5137 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
5138 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
5139 * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Likewise.
5140 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
5141 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
5142 * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
5144 2006-03-02 Ulrich Drepper <drepper@redhat.com>
5146 * sysdeps/unix/sysv/linux/aio_misc.h: Various cleanups.
5148 2006-03-01 Ulrich Drepper <drepper@redhat.com>
5150 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
5151 (__lll_robust_lock_wait): Also set FUTEX_WAITERS bit if we got the
5153 (__lll_robust_timedlock_wait): Likewise.
5154 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S
5155 (__lll_robust_lock_wait): Likewise.
5156 (__lll_robust_timedlock_wait): Likewise.
5157 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
5158 (__lll_robust_lock_wait): Likewise.
5159 (__lll_robust_timedlock_wait): Likewise.
5161 2006-03-01 Jakub Jelinek <jakub@redhat.com>
5163 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_robust_mutex_dead,
5164 lll_robust_mutex_trylock, lll_robust_mutex_lock,
5165 lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
5166 lll_robust_mutex_unlock): Define.
5167 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
5169 2006-02-28 H.J. Lu <hongjiu.lu@intel.com>
5171 * sysdeps/unix/sysv/linux/ia64/clone2.S: Include <clone2.S>
5172 instead of <clone.S>.
5174 2006-02-27 Jakub Jelinek <jakub@redhat.com>
5176 * Makefile (libpthread-routines): Add
5177 pthread_mutexattr_[sg]etprotocol, pthread_mutexattr_[sg]etprioceiling
5178 and pthread_mutex_[sg]etprioceiling.
5179 * Versions (GLIBC_2.4): Export pthread_mutexattr_getprotocol,
5180 pthread_mutexattr_setprotocol, pthread_mutexattr_getprioceiling,
5181 pthread_mutexattr_setprioceiling, pthread_mutex_getprioceiling and
5182 pthread_mutex_setprioceiling.
5183 * sysdeps/pthread/pthread.h (PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT,
5184 PTHREAD_PRIO_PROTECT): New enum values.
5185 (pthread_mutexattr_getprotocol, pthread_mutexattr_setprotocol,
5186 pthread_mutexattr_getprioceiling, pthread_mutexattr_setprioceiling,
5187 pthread_mutex_getprioceiling, pthread_mutex_setprioceiling): New
5189 * pthreadP.h (PTHREAD_MUTEX_PRIO_INHERIT_PRIVATE_NP,
5190 PTHREAD_MUTEX_PRIO_PROTECT_PRIVATE_NP): New enum values.
5191 (PTHREAD_MUTEX_PRIO_CEILING_SHIFT, PTHREAD_MUTEX_PRIO_CEILING_MASK):
5193 (PTHREAD_MUTEXATTR_PROTOCOL_SHIFT, PTHREAD_MUTEXATTR_PROTOCOL_MASK,
5194 PTHREAD_MUTEXATTR_PRIO_CEILING_SHIFT,
5195 PTHREAD_MUTEXATTR_PRIO_CEILING_MASK): Define.
5196 (PTHREAD_MUTEXATTR_FLAG_BITS): Or in PTHREAD_MUTEXATTR_PROTOCOL_MASK
5197 and PTHREAD_MUTEXATTR_PRIO_CEILING_MASK.
5198 * pthread_mutex_init.c (__pthread_mutex_init): For the time being
5199 return ENOTSUP for PTHREAD_PRIO_INHERIT or PTHREAD_PRIO_PROTECT
5201 * pthread_mutex_getprioceiling.c: New file.
5202 * pthread_mutex_setprioceiling.c: New file.
5203 * pthread_mutexattr_getprioceiling.c: New file.
5204 * pthread_mutexattr_setprioceiling.c: New file.
5205 * pthread_mutexattr_getprotocol.c: New file.
5206 * pthread_mutexattr_setprotocol.c: New file.
5208 2006-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5210 * sysdeps/unix/sysv/linux/aio_misc.h: Include <limits.h>.
5212 2006-02-27 Roland McGrath <roland@redhat.com>
5214 * sysdeps/pthread/Subdirs: List nptl here too.
5215 * configure (libc_add_on_canonical): New variable.
5217 * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Use #include_next.
5219 * sysdeps/unix/sysv/linux/sleep.c: Use #include_next after #include of
5220 self to get main source tree's file.
5221 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5222 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5223 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5224 * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
5225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
5226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
5227 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
5228 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
5229 * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
5230 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
5231 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
5232 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5233 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5235 * Makefile: Use $(sysdirs) in vpath directive.
5237 * sysdeps/pthread/Makefile (CFLAGS-libc-start.c): Variable removed.
5238 (CPPFLAGS-timer_routines.c): Likewise.
5240 * Makeconfig (includes): Variable removed.
5242 2006-02-26 Roland McGrath <roland@redhat.com>
5244 * sysdeps/generic/pt-raise.c: Moved to ...
5245 * pt-raise.c: ... here.
5246 * sysdeps/generic/lowlevellock.h: Moved to ...
5247 * lowlevellock.h: ... here.
5249 2006-02-23 Roland McGrath <roland@redhat.com>
5251 * descr.h (struct pthread): Add final member `end_padding'.
5252 (PTHREAD_STRUCT_END_PADDING): Use it.
5254 2006-02-20 Roland McGrath <roland@redhat.com>
5256 * sysdeps/mips: Directory removed, saved in ports repository.
5257 * sysdeps/unix/sysv/linux/mips: Likewise.
5259 2006-02-18 Ulrich Drepper <drepper@redhat.com>
5261 * tst-robust1.c: Add second mutex to check that the mutex list is
5264 2006-02-17 Jakub Jelinek <jakub@redhat.com>
5266 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_mutex_dead,
5267 lll_robust_mutex_trylock, lll_robust_mutex_lock,
5268 lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
5269 lll_robust_mutex_unlock): New macros.
5270 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
5271 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
5272 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
5273 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
5274 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: New file.
5276 2006-02-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5278 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Add lll_robust_mutex_*
5280 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: New file.
5282 2006-02-17 Ulrich Drepper <drepper@redhat.com>
5284 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
5285 (lll_robust_mutex_unlock): Avoid unnecessary wakeups.
5286 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
5287 (lll_robust_mutex_unlock): Likewise.
5289 2006-02-13 Jakub Jelinek <jakub@redhat.com>
5291 * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX):
5292 Set robust_list.__next rather than robust_list.
5293 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
5294 (__pthread_list_t): New typedef.
5295 (pthread_mutex_t): Replace __next and __prev fields with __list.
5296 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
5297 (__pthread_list_t): New typedef.
5298 (pthread_mutex_t): Replace __next and __prev fields with __list.
5299 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5300 (__pthread_list_t, __pthread_slist_t): New typedefs.
5301 (pthread_mutex_t): Replace __next and __prev fields with __list.
5302 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
5303 (__pthread_list_t, __pthread_slist_t): New typedefs.
5304 (pthread_mutex_t): Replace __next and __prev fields with __list.
5305 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
5306 (__pthread_list_t, __pthread_slist_t): New typedefs.
5307 (pthread_mutex_t): Replace __next and __prev fields with __list.
5308 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
5309 (__pthread_slist_t): New typedef.
5310 (pthread_mutex_t): Replace __next field with __list.
5312 2006-02-15 Ulrich Drepper <drepper@redhat.com>
5314 * pthreadP.h: Define PTHREAD_MUTEX_INCONSISTENT instead of
5315 PTHREAD_MUTEX_OWNERDEAD.
5316 (PTHREAD_MUTEX_ROBUST_PRIVATE_NP): Define as 16, not 256.
5317 Define FUTEX_WAITERS, FUTEX_OWNER_DIED, FUTEX_TID_MASK.
5318 * Makefile (libpthread-routines): Add lowlevelrobustlock.
5319 * pthread_create.c (start_thread): Very much simplify robust_list loop.
5320 * pthread_mutex_consistent.c: Inconsistent mutex have __owner now set
5321 to PTHREAD_MUTEX_INCONSISTENT.
5322 * pthread_mutex_destroy.c: Allow destroying of inconsistent mutexes.
5323 * pthread_mutex_lock.c: Reimplement robust mutex handling.
5324 * pthread_mutex_trylock.c: Likewise.
5325 * pthread_mutex_timedlock.c: Likewise.
5326 * pthread_mutex_unlock.c: Likewise.
5327 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
5328 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
5329 lowlevelrobustlock.sym.
5330 * sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: New file.
5331 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add lll_robust_mutex_*
5333 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
5334 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: New file.
5335 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: New file.
5336 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: New file.
5337 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: New file.
5339 2006-02-12 Ulrich Drepper <drepper@redhat.com>
5341 * allocatestack.c (allocate_stack): Initialize robust_list.
5342 * init.c (__pthread_initialize_minimal_internal): Likewise.
5343 * descr.h (struct xid_command): Pretty printing.
5344 (struct pthread): Use __pthread_list_t or __pthread_slist_t for
5345 robust_list. Adjust macros.
5346 * pthread_create.c (start_thread): Adjust robust_list handling.
5347 * phtread_mutex_unlock.c: Don't allow unlocking from any thread
5348 but the owner for all robust mutex types.
5349 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
5350 __pthread_list_t and __pthread_slist_t. Use them in pthread_mutex_t.
5351 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5352 * sysdeps/pthread/pthread.h: Adjust mutex initializers.
5354 * sysdeps/unix/sysv/linux/i386/not-cancel.h: Define openat_not_cancel,
5355 openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3.
5357 2006-02-08 Jakub Jelinek <jakub@redhat.com>
5359 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait,
5360 lll_futex_timedwait, lll_wait_tid): Add "memory" clobber.
5362 2006-01-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5364 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_wait):
5366 (lll_futex_timed_wait): Define.
5368 2006-01-19 Ulrich Drepper <drepper@redhat.com>
5370 * tst-cancel4.c: Test ppoll.
5372 2006-01-18 Andreas Jaeger <aj@suse.de>
5375 * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
5376 (pthread_mutex_t): Follow changes for other archs. Based on patch
5377 by Jim Gifford <patches@jg555.com>.
5379 2006-01-13 Richard Henderson <rth@redhat.com>
5381 * sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private.
5383 2006-01-10 Roland McGrath <roland@redhat.com>
5385 * sysdeps/alpha/jmpbuf-unwind.h: File moved to main source tree.
5386 * sysdeps/i386/jmpbuf-unwind.h: Likewise.
5387 * sysdeps/mips/jmpbuf-unwind.h: Likewise.
5388 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
5389 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
5390 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
5391 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
5392 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
5393 * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
5394 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
5396 2006-01-09 Roland McGrath <roland@redhat.com>
5398 * tst-initializers1-c89.c: New file.
5399 * tst-initializers1-c99.c: New file.
5400 * tst-initializers1-gnu89.c: New file.
5401 * tst-initializers1-gnu99.c: New file.
5402 * Makefile (tests): Add them.
5403 (CFLAGS-tst-initializers1-c89.c): New variable.
5404 (CFLAGS-tst-initializers1-c99.c): New variable.
5405 (CFLAGS-tst-initializers1-gnu89.c): New variable.
5406 (CFLAGS-tst-initializers1-gnu99.c): New variable.
5408 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
5409 Use __extension__ on anonymous union definition.
5410 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5411 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
5412 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5413 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5414 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5416 2006-01-08 Jakub Jelinek <jakub@redhat.com>
5418 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
5419 Don't give the union a name because it changes the mangled name.
5420 Instead name the struct for __data.
5421 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_mutex_t):
5423 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_mutex_t):
5426 2006-01-09 Jakub Jelinek <jakub@redhat.com>
5428 * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Add
5429 stack bias to mc_ftp field.
5431 2006-01-07 Ulrich Drepper <drepper@redhat.com>
5433 * sysdeps/pthread/aio_misc.h (AIO_MISC_WAIT): Work around gcc
5434 being too clever and reloading the futex value where it shouldn't.
5436 2006-01-06 Ulrich Drepper <drepper@redhat.com>
5438 * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX): Use
5441 2006-01-06 Jakub Jelinek <jakub@redhat.com>
5443 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
5446 2006-01-06 Ulrich Drepper <drepper@redhat.com>
5448 * sysdeps/ia64/tls.h (tcbhead_t): Rename private member to __private.
5449 * sysdeps/ia64/tcb-offsets.sym: Adjust for private->__private
5450 rename in tcbhead_t.
5452 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
5453 Don't give the union a name because it changes the mangled name.
5454 Instead name the struct for __data.
5455 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5456 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5457 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5458 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5459 * pthread_create.c (start_thread): Adjust robust mutex free loop.
5460 * descr.h (ENQUEUE_MUTEX, DEQUEUE_MUTEX): Adjust.
5462 2006-01-05 Ulrich Drepper <drepper@redhat.com>
5464 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
5466 (lll_futex_timed_wait): Define.
5467 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
5468 * sysdeps/pthread/aio_misc.h: New file.
5470 2006-01-03 Joseph S. Myers <joseph@codesourcery.com>
5472 * Makefile ($(objpfx)$(multidir)): Use mkdir -p.
5474 2006-01-03 Steven Munroe <sjmunroe@us.ibm.com>
5476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
5477 (PSEUDO): Remove redundant cfi_startproc and cfi_endproc directives.
5478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
5480 2006-01-04 Ulrich Drepper <drepper@redhat.com>
5482 * tst-cancel24.cc: Use C headers instead of C++ headers.
5484 2006-01-03 Jakub Jelinek <jakub@redhat.com>
5486 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Remove #error for
5487 sparc-linux configured glibc.
5488 (lll_futex_wake_unlock): Define to 1 for sparc-linux configured glibc.
5489 (__lll_mutex_trylock, __lll_mutex_cond_trylock, __lll_mutex_lock,
5490 __lll_mutex_cond_lock, __lll_mutex_timedlock): Use
5491 atomic_compare_and_exchange_val_24_acq instead of
5492 atomic_compare_and_exchange_val_acq.
5493 (lll_mutex_unlock, lll_mutex_unlock_force): Use atomic_exchange_24_rel
5494 instead of atomic_exchange_rel.
5495 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: New file.
5496 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c: New
5498 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c: New
5500 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: New file.
5501 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: New file.
5502 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: New file.
5503 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: New file.
5504 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: New file.
5505 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
5507 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
5509 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: New file.
5510 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: New file.
5511 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c: New
5513 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c: New
5515 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: New file.
5517 2006-01-03 Ulrich Drepper <drepper@redhat.com>
5519 * sysdeps/pthread/pthread.h [__WORDSIZE==64]: Don't use cast in
5522 2006-01-02 Jakub Jelinek <jakub@redhat.com>
5524 * sysdeps/sparc/tls.h (tcbhead_t): Add pointer_guard field.
5525 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5526 THREAD_COPY_POINTER_GUARD): Define.
5527 * sysdeps/sparc/tcb-offsets.sym (POINTER_GUARD): Define.
5528 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Revert 2005-12-27 changes.
5530 2006-01-01 Ulrich Drepper <drepper@redhat.com>
5532 * version.c: Update copyright year.
5534 2005-12-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5536 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Remove explicit
5537 .eh_frame section, use cfi_* directives.
5538 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Add cfi instrumentation.
5540 2005-12-30 Ulrich Drepper <drepper@redhat.com>
5542 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Undo last change for
5545 2005-12-29 Ulrich Drepper <drepper@redhat.com>
5547 * sysdeps/pthread/sigaction.c: Removed.
5548 * sigaction.c: New file.
5549 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-sigaction.c.
5551 2005-12-28 Ulrich Drepper <drepper@redhat.com>
5553 * Makefile (tests): Add tst-signal7.
5554 * tst-signal7.c: New file.
5556 2005-12-27 Roland McGrath <roland@redhat.com>
5558 * sysdeps/x86_64/jmpbuf-unwind.h (_jmpbuf_sp): New inline function.
5559 (_JMPBUF_UNWINDS_ADJ): Use it, to PTR_DEMANGLE before comparison.
5560 * sysdeps/alpha/jmpbuf-unwind.h: Likewise.
5561 * sysdeps/i386/jmpbuf-unwind.h: Likewise.
5562 * sysdeps/mips/jmpbuf-unwind.h: Likewise.
5563 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
5564 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
5565 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
5566 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
5567 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
5568 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
5570 2005-12-27 Jakub Jelinek <jakub@redhat.com>
5572 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Add __next
5573 and __prev field to pthread_mutex_t.
5574 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5575 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5576 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5577 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5578 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Add __next field
5581 2005-12-26 Ulrich Drepper <drepper@redhat.com>
5583 * pthreadP.h: Define PTHREAD_MUTEX_ROBUST_PRIVATE_NP,
5584 PTHREAD_MUTEX_ROBUST_PRIVATE_RECURSIVE_NP,
5585 PTHREAD_MUTEX_ROBUST_PRIVATE_ERRORCHECK_NP,
5586 PTHREAD_MUTEX_ROBUST_PRIVATE_ADAPTIVE_NP,
5587 PTHREAD_MUTEXATTR_FLAG_ROBUST, PTHREAD_MUTEXATTR_FLAG_PSHARED,
5588 and PTHREAD_MUTEXATTR_FLAG_BITS.
5589 * descr.h (struct pthread): Add robust_list field and define
5590 ENQUEUE_MUTEX and DEQUEUE_MUTEX macros.
5591 * pthread_mutexattr_getrobust.c: New file.
5592 * pthread_mutexattr_setrobust.c: New file.
5593 * pthread_mutex_consistent.c: New file.
5594 * sysdeps/pthread/pthread.h: Declare pthread_mutexattr_getrobust,
5595 pthread_mutexattr_setrobust, and pthread_mutex_consistent.
5596 Define PTHREAD_MUTEX_STALLED_NP and PTHREAD_MUTEX_ROBUST_NP.
5597 Adjust pthread_mutex_t initializers.
5598 * nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Add __next
5599 field to pthread_mutex_t.
5600 * nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Add __next
5601 and __prev field to pthread_mutex_t.
5602 * Versions [GLIBC_2.4]: Export pthread_mutexattr_getrobust_np,
5603 pthread_mutexattr_setrobust_np, and pthread_mutex_consistent_np.
5604 * pthread_mutexattr_getpshared.c: Use PTHREAD_MUTEXATTR_FLAG_PSHARED
5605 and PTHREAD_MUTEXATTR_FLAG_BITS macros instead of magic numbers.
5606 * pthread_mutexattr_gettype.c: Likewise.
5607 * pthread_mutexattr_setpshared.c: Likewise.
5608 * pthread_mutexattr_settype.c: Likewise.
5609 * pthread_mutex_init.c: Reject robust+pshared attribute for now.
5610 Initialize mutex kind according to robust flag.
5611 * pthread_mutex_lock.c: Implement local robust mutex.
5612 * pthread_mutex_timedlock.c: Likewise.
5613 * pthread_mutex_trylock.c: Likewise.
5614 * pthread_mutex_unlock.c: Likewise.
5615 * pthread_create.c (start_thread): Mark robust mutexes which remained
5617 * tst-robust1.c: New file.
5618 * tst-robust2.c: New file.
5619 * tst-robust3.c: New file.
5620 * tst-robust4.c: New file.
5621 * tst-robust5.c: New file.
5622 * tst-robust6.c: New file.
5623 * tst-robust7.c: New file.
5624 * Makefile (libpthread-routines): Add pthread_mutexattr_getrobust,
5625 pthread_mutexattr_setrobust, and pthread_mutex_consistent.
5626 (tests): Add tst-robust1, tst-robust2, tst-robust3, tst-robust4,
5627 tst-robust5, tst-robust6, and tst-robust7.
5629 * tst-typesizes.c: New file.
5630 * Makefile (tests): Add tst-typesizes.
5632 * tst-once3.c: More debug output.
5634 2005-12-24 Ulrich Drepper <drepper@redhat.com>
5636 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Add break
5637 missing after last change.
5639 * version.c: Update copyright year.
5641 2005-12-23 Ulrich Drepper <drepper@redhat.com>
5643 * pthread_mutex_destroy.c: Set mutex type to an invalid value.
5644 * pthread_mutex_lock.c: Return EINVAL for invalid mutex type.
5645 * pthread_mutex_trylock.c: Likewise.
5646 * pthread_mutex_timedlock.c: Likewise.
5647 * pthread_mutex_unlock.c: Likewise.
5649 2005-12-22 Roland McGrath <roland@redhat.com>
5651 * sysdeps/pthread/sigaction.c: Use "" instead of <> to include self,
5652 so that #include_next's search location is not reset to the -I..
5653 directory where <nptl/...> can be found.
5655 2005-12-22 Ulrich Drepper <drepper@redhat.com>
5658 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
5659 Fix unwind info. Remove useless branch prediction prefix.
5660 * tst-cancel24.cc: New file.
5661 * Makefile: Add rules to build and run tst-cancel24.
5663 2005-12-21 Roland McGrath <roland@redhat.com>
5665 * libc-cancellation.c: Use <> rather than "" #includes.
5666 * pt-cleanup.c: Likewise.
5667 * pthread_create.c: Likewise.
5668 * pthread_join.c: Likewise.
5669 * pthread_timedjoin.c: Likewise.
5670 * pthread_tryjoin.c: Likewise.
5671 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Likewise.
5672 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
5673 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
5674 * unwind.c: Likewise.
5676 2005-12-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5678 * sysdeps/sh/tcb-offsets.sym: Add POINTER_GUARD.
5679 * sysdeps/sh/tls.h (tcbhead_t): Remove private and add pointer_guard.
5680 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5681 THREAD_COPY_POINTER_GUARD): Define.
5683 2005-12-19 Jakub Jelinek <jakub@redhat.com>
5685 * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): Make room for 2 uintptr_t's
5687 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5688 THREAD_COPY_POINTER_GUARD): Define.
5689 * sysdeps/powerpc/tcb-offsets.sym (POINTER_GUARD): Add.
5690 * sysdeps/powerpc/tls.h (tcbhead_t): Add pointer_guard field.
5691 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
5692 THREAD_COPY_POINTER_GUARD): Define.
5693 * sysdeps/s390/tcb-offsets.sym (STACK_GUARD): Add.
5694 * sysdeps/s390/tls.h (THREAD_GET_POINTER_GUARD,
5695 THREAD_SET_POINTER_GUARD, THREAD_COPY_POINTER_GUARD): Define.
5696 * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S (__ia64_longjmp):
5697 Use PTR_DEMANGLE for B0 if defined.
5699 2005-12-17 Ulrich Drepper <drepper@redhat.com>
5701 * pthread_create.c (__pthread_create_2_1): Use
5702 THREAD_COPY_POINTER_GUARD if available.
5703 * sysdeps/i386/tcb-offsets.sym: Add POINTER_GUARD.
5704 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
5705 * sysdeps/i386/tls.h (tcbhead_t): Add pointer_guard.
5706 Define THREAD_SET_POINTER_GUARD and THREAD_COPY_POINTER_GUARD.
5707 * sysdeps/x86_64/tls.h: Likewise.
5709 2005-12-15 Roland McGrath <roland@redhat.com>
5711 * sysdeps/unix/sysv/linux/mq_notify.c: Don't use sysdeps/generic.
5713 2005-12-13 Ulrich Drepper <drepper@redhat.com>
5715 * sysdeps/pthread/sigfillset.c: Adjust for files moved out of
5717 * errno-loc.c: New file.
5719 2005-12-12 Roland McGrath <roland@redhat.com>
5721 * init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
5722 adjustments before choosing stack size. Update minimum stack size
5723 calculation to match allocate_stack change.
5725 2005-12-12 Ulrich Drepper <drepper@redhat.com>
5727 * allocatestack.c (allocate_stack): Don't demand that there is an
5728 additional full page available on the stack beside guard, TLS, the
5731 2005-11-24 Ulrich Drepper <drepper@redhat.com>
5733 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
5734 (__cleanup_fct_attribute): Use __regparm__ not regparm.
5736 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: When
5737 compiling 32-bit code we must define __cleanup_fct_attribute.
5739 005-11-24 Jakub Jelinek <jakub@redhat.com>
5742 * sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
5743 __attribute__ instead of __attribute.
5744 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
5745 (__cleanup_fct_attribute): Likewise.
5747 2005-11-17 Jakub Jelinek <jakub@redhat.com>
5749 * sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
5750 a write barrier before writing libgcc_s_getcfa.
5752 2005-11-06 Ulrich Drepper <drepper@redhat.com>
5754 * sysdeps/unix/sysv/linux/configure: Removed.
5756 2005-11-05 Ulrich Drepper <drepper@redhat.com>
5758 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Remove trace of
5759 optional init_array/fini_array support.
5761 2005-10-24 Roland McGrath <roland@redhat.com>
5763 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove unnecessary
5764 versioned_symbol use.
5766 2005-10-16 Roland McGrath <roland@redhat.com>
5768 * init.c (__pthread_initialize_minimal_internal): Even when using a
5769 compile-time default stack size, apply the minimum that allocate_stack
5770 will require, and round up to page size.
5772 2005-10-10 Daniel Jacobowitz <dan@codesourcery.com>
5774 * Makefile ($(test-modules)): Remove static pattern rule.
5776 2005-10-14 Jakub Jelinek <jakub@redhat.com>
5777 Ulrich Drepper <drepper@redhat.com>
5779 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix stack
5780 alignment in callback function.
5781 * Makefile: Add rules to build and run tst-align3.
5782 * tst-align3.c: New file.
5784 2005-10-03 Jakub Jelinek <jakub@redhat.com>
5786 * allocatestack.c (setxid_signal_thread): Add
5787 INTERNAL_SYSCALL_DECL (err).
5789 2005-10-02 Jakub Jelinek <jakub@redhat.com>
5791 * allocatestack.c (setxid_signal_thread): Need to use
5792 atomic_compare_and_exchange_bool_acq.
5794 2005-10-01 Ulrich Drepper <drepper@redhat.com>
5795 Jakub Jelinek <jakub@redhat.com>
5797 * descr.h: Define SETXID_BIT and SETXID_BITMASK. Adjust
5799 (struct pthread): Move specific_used field to avoid padding.
5800 Add setxid_futex field.
5801 * init.c (sighandler_setxid): Reset setxid flag and release the
5803 * allocatestack.c (setxid_signal_thread): New function. Broken
5804 out of the bodies of the two loops in __nptl_setxid. For undetached
5805 threads check whether they are exiting and if yes, don't send a signal.
5806 (__nptl_setxid): Simplify loops by using setxid_signal_thread.
5807 * pthread_create.c (start_thread): For undetached threads, check
5808 whether setxid bit is set. If yes, wait until signal has been
5811 * allocatestack.c (STACK_VARIABLES): Initialize them.
5812 * pthread_create.c (__pthread_create_2_1): Initialize pd.
5814 2004-09-02 Jakub Jelinek <jakub@redhat.com>
5816 * pthread_cond_destroy.c (__pthread_cond_destroy): If there are
5817 waiters, awake all waiters on the associated mutex.
5819 2005-09-22 Roland McGrath <roland@redhat.com>
5821 * perf.c [__x86_64__] (HP_TIMING_NOW): New macro (copied from
5822 ../sysdeps/x86_64/hp-timing.h).
5824 2005-08-29 Jakub Jelinek <jakub@redhat.com>
5826 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_WAKE_OP,
5827 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5828 (lll_futex_wake_unlock): Define.
5829 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_WAKE_OP,
5830 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5831 (lll_futex_wake_unlock): Define.
5832 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_WAKE_OP,
5833 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5834 (lll_futex_wake_unlock): Define.
5835 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_WAKE_OP,
5836 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5837 (lll_futex_wake_unlock): Define.
5838 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_WAKE_OP,
5839 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5840 (lll_futex_wake_unlock): Define.
5841 * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): Use
5842 lll_futex_wake_unlock.
5843 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
5844 (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5845 (__pthread_cond_signal): Use FUTEX_WAKE_OP.
5846 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5847 (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
5848 (__pthread_cond_signal): Use FUTEX_WAKE_OP.
5850 2005-09-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5852 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
5853 Fix typo in register name.
5855 2005-08-23 Ulrich Drepper <drepper@redhat.com>
5857 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
5858 Use __sigfillset. Document that sigfillset does the right thing wrt
5861 2005-07-11 Jakub Jelinek <jakub@redhat.com>
5864 * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER,
5865 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
5866 PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
5867 PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_RWLOCK_INITIALIZER,
5868 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
5869 PTHREAD_COND_INITIALIZER): Supply zeros for all fields
5871 * Makefile (tests): Add tst-initializers1.
5872 (CFLAGS-tst-initializers1.c): Set.
5873 * tst-initializers1.c: New test.
5875 2005-07-11 Jakub Jelinek <jakub@redhat.com>
5877 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_rwlock_t):
5878 Make sure __flags are located at offset 48 from the start of the
5881 2005-07-02 Roland McGrath <roland@redhat.com>
5883 * Makeconfig: Comment fix.
5885 2005-07-05 Jakub Jelinek <jakub@redhat.com>
5887 * descr.h (PTHREAD_STRUCT_END_PADDING): Define.
5888 * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): If PTHREAD_STRUCT_END_PADDING
5889 is smaller than 8 bytes, increase TLS_PRE_TCB_SIZE by 16 bytes.
5890 (THREAD_SYSINFO, THREAD_SELF, DB_THREAD_SELF): Don't assume
5891 TLS_PRE_TCB_SIZE is sizeof (struct pthread).
5892 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5893 * sysdeps/ia64/tcb-offsets.sym (PID, TID, MULTIPLE_THREADS_OFFSET):
5894 Use TLS_PRE_TCB_SIZE instead of sizeof (struct pthread).
5895 * sysdeps/unix/sysv/linux/ia64/createthread.c (TLS_VALUE): Don't
5896 assume TLS_PRE_TCB_SIZE is sizeof (struct pthread).
5898 2005-06-25 Jakub Jelinek <jakub@redhat.com>
5900 * sysdeps/i386/tls.h (tcbhead_t): Add stack_guard field.
5901 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5902 * sysdeps/x86_64/tls.h (tcbhead_t): Add sysinfo and stack_guard
5904 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5905 * sysdeps/s390/tls.h (tcbhead_t): Add stack_guard
5906 field. Put in sysinfo field unconditionally.
5907 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5908 * sysdeps/powerpc/tls.h (tcbhead_t): Add stack_guard field.
5909 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5910 * sysdeps/sparc/tls.h (tcbhead_t): Add sysinfo and stack_guard
5912 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
5913 * pthread_create.c (__pthread_create_2_1): Use
5914 THREAD_COPY_STACK_GUARD macro.
5915 * Makefile: Add rules to build and run tst-stackguard1{,-static}
5917 * tst-stackguard1.c: New file.
5918 * tst-stackguard1-static.c: New file.
5920 2005-06-14 Alan Modra <amodra@bigpond.net.au>
5922 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
5923 Invoke CGOTSETUP and CGOTRESTORE.
5924 (CGOTSETUP, CGOTRESTORE): Define.
5926 2005-05-29 Richard Henderson <rth@redhat.com>
5928 * tst-cancel4.c (WRITE_BUFFER_SIZE): New.
5929 (tf_write, tf_writev): Use it.
5930 (do_test): Use socketpair instead of pipe. Set SO_SNDBUF to
5933 2005-05-23 Jakub Jelinek <jakub@redhat.com>
5935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
5936 [IS_IN_librt] (CENABLE, CDISABLE): Use JUMPTARGET instead of
5937 __librt_*_asynccancel@local.
5939 2005-05-17 Alan Modra <amodra@bigpond.net.au>
5941 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Delete
5942 all occurrences of JUMPTARGET. Instead append @local to labels.
5944 2005-05-20 Jakub Jelinek <jakub@redhat.com>
5946 * sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
5947 size/alignment of struct pthread rather than tcbhead_t.
5948 * sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5950 * sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5952 * sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
5955 2005-05-19 Richard Henderson <rth@redhat.com>
5957 * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use
5958 __sync_val_compare_and_swap, not explicit _si variant.
5959 * sysdeps/ia64/pthread_spin_trylock.c (pthread_spin_trylock): Likewise.
5961 2005-05-03 Ulrich Drepper <drepper@redhat.com>
5964 * sysdeps/pthread/pthread.h: Avoid empty initializers.
5966 2005-05-03 Jakub Jelinek <jakub@redhat.com>
5968 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
5969 .eh_frame section, use cfi_* directives.
5971 2005-04-27 Jakub Jelinek <jakub@redhat.com>
5973 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
5976 2005-04-27 Ulrich Drepper <drepper@redhat.com>
5979 * tst-cancel17.c (do_test): Add arbitrary factor to make sure
5982 2005-04-27 Roland McGrath <roland@redhat.com>
5984 * Makefile (tests): Remove tst-clock2.
5986 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle
5987 CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
5988 translating to the kernel clockid_t for our own process/thread clock.
5990 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
5992 2005-04-15 Jakub Jelinek <jakub@redhat.com>
5994 * old_pthread_cond_init.c: Include <errno.h>.
5995 (__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is
5996 process shared or uses clock other than CLOCK_REALTIME.
5997 * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
5999 2005-04-13 David S. Miller <davem@davemloft.net>
6001 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file.
6002 * sysdeps/sparc/sparc64/clone.S: New file.
6004 2005-04-05 Jakub Jelinek <jakub@redhat.com>
6007 * sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use
6008 __inline instead of inline.
6009 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise.
6011 2005-03-31 Jakub Jelinek <jakub@redhat.com>
6013 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use
6014 functionally equivalent, but shorter instructions.
6015 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
6016 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
6017 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
6019 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
6020 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
6021 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
6022 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
6023 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6024 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
6025 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
6027 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
6028 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6029 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6030 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
6031 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
6033 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
6035 * sysdeps/mips/Makefile: New file.
6036 * sysdeps/mips/nptl-sysdep.S: New file.
6037 * sysdeps/mips/tcb-offsets.sym: New file.
6038 * sysdeps/mips/pthread_spin_lock.S: New file.
6039 * sysdeps/mips/pthread_spin_trylock.S: New file.
6040 * sysdeps/mips/pthreaddef.h: New file.
6041 * sysdeps/mips/tls.h: New file.
6042 * sysdeps/mips/jmpbuf-unwind.h: New file.
6043 * sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file.
6044 * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file.
6045 * sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file.
6046 * sysdeps/unix/sysv/linux/mips/pthread_once.c: New file.
6047 * sysdeps/unix/sysv/linux/mips/fork.c: New file.
6048 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
6049 * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
6050 * sysdeps/unix/sysv/linux/mips/clone.S: New file.
6051 * sysdeps/unix/sysv/linux/mips/createthread.c: New file.
6052 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
6054 2005-03-23 Ulrich Drepper <drepper@redhat.com>
6057 * pthread_create.c (__pthread_create_2_1): Rename syscall error
6060 2005-03-10 Jakub Jelinek <jakub@redhat.com>
6062 * tst-getpid1.c (do_test): Align stack passed to clone{2,}.
6064 2005-02-25 Roland McGrath <roland@redhat.com>
6066 * alloca_cutoff.c: Correct license text.
6067 * tst-unload.c: Likewise.
6068 * sysdeps/pthread/allocalim.h: Likewise.
6069 * sysdeps/pthread/pt-initfini.c: Likewise.
6070 * sysdeps/pthread/bits/libc-lock.h: Likewise.
6071 * sysdeps/pthread/bits/sigthread.h: Likewise.
6072 * sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
6073 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
6075 2005-02-16 Roland McGrath <roland@redhat.com>
6077 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
6078 Use unsigned int * for ptr_nthreads.
6080 2005-02-14 Alan Modra <amodra@bigpond.net.au>
6083 * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
6086 2005-02-07 Richard Henderson <rth@redhat.com>
6089 * sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first
6092 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
6094 * sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix
6095 order of arguments in invocation of atomic_add_zero.
6097 2005-01-26 Jakub Jelinek <jakub@redhat.com>
6100 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait):
6101 Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS,
6102 at least gotntpoff relocation and addition.
6103 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
6105 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
6107 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
6110 2005-01-06 Ulrich Drepper <drepper@redhat.com>
6112 * allocatestack.c (init_one_static_tls): Adjust initialization of DTV
6113 entry for static tls deallocation fix.
6114 * sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which
6115 also contains information whether the memory pointed to is static
6117 * sysdeps/i386/tls.h: Likewise.
6118 * sysdeps/ia64/tls.h: Likewise.
6119 * sysdeps/powerpc/tls.h: Likewise.
6120 * sysdeps/s390/tls.h: Likewise.
6121 * sysdeps/sh/tls.h: Likewise.
6122 * sysdeps/sparc/tls.h: Likewise.
6123 * sysdeps/x86_64/tls.h: Likewise.
6125 2004-12-27 Ulrich Drepper <drepper@redhat.com>
6127 * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
6129 2004-12-21 Jakub Jelinek <jakub@redhat.com>
6131 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of
6133 * Makefile (tests): Add tst-align2.
6134 * tst-align2.c: New test.
6135 * sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add
6136 -mpreferred-stack-boundary=4.
6138 2004-12-18 Roland McGrath <roland@redhat.com>
6140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h:
6141 New file removed withdrawn for the moment.
6143 2004-12-17 Richard Henderson <rth@redhat.com>
6145 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
6146 * sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
6148 2004-12-16 Ulrich Drepper <drepper@redhat.com>
6150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file.
6151 Increased PTHREAD_STACK_MIN.
6153 * tst-context1.c (stacks): Use bigger stack size.
6155 2004-12-16 Jakub Jelinek <jakub@redhat.com>
6157 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
6158 * sysdeps/sparc/tcb-offsets.sym: Add TID.
6160 2004-12-15 Jakub Jelinek <jakub@redhat.com>
6162 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file.
6163 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
6164 * sysdeps/s390/tcb-offsets.sym (TID): Add.
6166 2004-12-15 Ulrich Drepper <drepper@redhat.com>
6168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file.
6170 2004-12-14 Ulrich Drepper <drepper@redhat.com>
6172 * sysdeps/powerpc/tcb-offsets.sym: Add TID.
6173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
6175 * tst-getpid1.c: If child crashes, report this first. Print which
6178 2004-12-09 Ulrich Drepper <drepper@redhat.com>
6180 * init.c (__pthread_initialize_minimal_internal): Also unblock
6183 2004-12-01 Jakub Jelinek <jakub@redhat.com>
6185 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
6186 _POSIX_THREAD_CPUTIME): Define to 0.
6187 * sysdeps/pthread/timer_create.c (timer_create): Remove unused code
6188 handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
6189 * sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
6190 __timer_signal_thread_tclk): Remove.
6191 (init_module): Remove their initialization.
6192 (thread_cleanup): Remove their cleanup assertions.
6193 * sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
6194 __timer_signal_thread_tclk): Remove.
6195 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
6196 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
6197 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
6199 2004-12-07 Jakub Jelinek <jakub@redhat.com>
6201 * sysdeps/ia64/tcb-offsets.sym (TID): Add.
6202 * sysdeps/unix/sysv/linux/ia64/clone2.S: New file.
6204 * Makefile (tests): Add tst-getpid2.
6205 * tst-getpid1.c (TEST_CLONE_FLAGS): Define.
6206 (do_test): Use it. Use __clone2 instead of clone on ia64.
6207 * tst-getpid2.c: New test.
6209 2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6211 * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6213 2004-12-04 Ulrich Drepper <drepper@redhat.com>
6215 * Makefile (tests): Add tst-getpid1.
6216 * tst-getpid1.c: New file.
6217 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
6218 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
6220 2004-12-02 Roland McGrath <roland@redhat.com>
6222 * Makefile (libpthread-nonshared): Variable removed.
6223 ($(objpfx)libpthread_nonshared.a): Target removed.
6224 ($(inst_libdir)/libpthread_nonshared.a): Likewise.
6225 These are now handled by generic magic from
6226 libpthread-static-only-routines being set.
6228 2004-11-27 Ulrich Drepper <drepper@redhat.com>
6230 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO,
6231 _POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT,
6232 _POSIX_THREAD_PRIO_PROTECT): Define.
6233 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
6234 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
6235 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
6237 2004-11-26 Jakub Jelinek <jakub@redhat.com>
6239 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
6240 _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
6241 _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
6242 _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
6243 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
6244 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
6245 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
6247 2004-11-24 Ulrich Drepper <drepper@redhat.com>
6249 * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
6251 * Makefile (libpthread-routines): Add pthread_setschedprio.
6252 * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
6253 * sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
6254 * pthread_setschedprio.c: New file.
6256 2004-11-20 Jakub Jelinek <jakub@redhat.com>
6258 * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE.
6259 * pthread_cancel.c (pthread_create): Likewise.
6261 * Makefile (libpthread-routines): Add vars.
6262 * sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove.
6263 * init.c (__default_stacksize, __is_smp): Remove.
6265 * pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function
6266 and define a wrapper macro.
6267 (PTHREAD_STATIC_FN_REQUIRE): Define.
6268 * allocatestack.c (__find_thread_by_id): Undefine.
6269 * pthread_create (__pthread_keys): Remove.
6270 (pthread_mutex_lock, pthread_mutex_unlock, pthread_once,
6271 pthread_key_create, pthread_setspecific, pthread_getspecific): Add
6272 PTHREAD_STATIC_FN_REQUIRE.
6274 2004-11-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6276 * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias
6277 parameter to REGISTER macro.
6279 2004-11-17 Roland McGrath <roland@redhat.com>
6281 * sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
6282 Make sure SIGCANCEL is blocked as well.
6284 2004-11-10 Jakub Jelinek <jakub@redhat.com>
6286 * sysdeps/pthread/setxid.h: New file.
6287 * sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove.
6288 (struct xid_command): Add forward decl.
6289 (struct pthread_functions): Change return type of __nptl_setxid hook
6291 * pthreadP.h (__nptl_setxid): Change return type to int.
6292 * allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the
6293 calling thread, return its return value and set errno on failure.
6294 * descr.h (struct xid_command): Change id type to long array.
6296 * Makefile: Add rules to build and test tst-setuid1 and
6298 * tst-setuid1.c: New test.
6299 * tst-setuid1-static.c: New test.
6301 2004-11-10 Jakub Jelinek <jakub@redhat.com>
6303 * Makefile (tests): Add tst-exit3.
6304 * tst-exit3.c: New test.
6306 2004-11-09 Ulrich Drepper <drepper@redhat.com>
6308 * Makefile (tests): Add tst-exit2.
6309 * tst-exit2.c: New file.
6311 2004-11-09 Roland McGrath <roland@redhat.com>
6314 * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
6315 here, before calling clone.
6316 * pthread_create.c (start_thread): Don't do it here.
6318 2004-11-02 Jakub Jelinek <jakub@redhat.com>
6320 * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
6322 2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6324 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
6325 Set ETIMEDOUT to errno when time is up. Tweak to avoid
6328 2004-10-28 Jakub Jelinek <jakub@redhat.com>
6330 * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
6331 if sched_priority is not between minprio and maxprio.
6333 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6335 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
6336 (__pthread_cond_timedwait): Use clock_gettime syscall if exists.
6338 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
6339 (__lll_mutex_timedlock_wait): Fix a bad branch condition.
6341 2004-10-24 Ulrich Drepper <drepper@redhat.com>
6343 * sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use
6344 not-cancelable I/O functions.
6346 2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6348 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
6349 (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
6350 make sure 2 is stored in the futex and we looked at the old value.
6351 Fix a few other problems to return the correct value.
6353 2004-10-14 Richard Henderson <rth@redhat.com>
6355 * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
6358 2004-10-06 Jakub Jelinek <jakub@redhat.com>
6360 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
6361 of pthread-functions.h and pthreaddef.h.
6362 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
6364 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
6365 Change __data.__nwaiters from int to unsigned int.
6367 * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
6368 sysconf (_SC_THREAD_CPUTIME) returns negative value.
6370 * allocatestack.c (__find_thread_by_id): Move attribute_hidden
6373 * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
6374 (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
6376 2004-10-06 Ulrich Drepper <drepper@redhat.com>
6378 * tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the
6379 test fails, remove message queue.
6380 (tf_msgsnd): Likewise.
6382 2004-10-05 Jakub Jelinek <jakub@redhat.com>
6384 * tst-clock1.c: Change #ifdef to #if defined.
6385 * tst-clock2.c: Likewise.
6386 * tst-cond11.c: Likewise.
6388 * sysdeps/pthread/timer_create.c (timer_create): Use
6389 defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of
6390 defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for
6393 2004-10-05 Jakub Jelinek <jakub@redhat.com>
6395 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME,
6396 _POSIX_THREAD_CPUTIME): Define to 0.
6398 2004-10-04 Ulrich Drepper <drepper@redhat.com>
6400 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
6401 and _POSIX_THREAD_CPUTIME to zero.
6402 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
6403 * tst-barrier2.c: Fix testing for POSIX feature.
6404 * tst-clock1.c: Likewise.
6405 * tst-clock2.c: Likewise.
6406 * tst-cond11.c: Likewise.
6407 * tst-cond4.c: Likewise.
6408 * tst-cond6.c: Likewise.
6409 * tst-flock2.c: Likewise.
6410 * tst-mutex4.c: Likewise.
6411 * tst-mutex9.c: Likewise.
6412 * tst-rwlock12.c: Likewise.
6413 * tst-rwlock4.c: Likewise.
6414 * tst-signal1.c: Likewise.
6415 * tst-spin2.c: Likewise.
6416 * sysdeps/pthread/posix-timer.h: Likewise.
6417 * sysdeps/pthread/timer_create.c: Likewise.
6418 * sysdeps/pthread/timer_routines.c: Likewise.
6420 2004-10-01 Ulrich Drepper <drepper@redhat.com>
6422 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
6423 (__lll_mutex_timedlock_wait): Address futex correctly.
6425 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
6426 (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
6427 make sure 2 is stored in the futex and we looked at the old value.
6428 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
6429 (__lll_mutex_timedlock_wait): Likewise. Fix a few other problems
6430 which might very well made the code not working at all before.
6433 2004-09-28 Ulrich Drepper <drepper@redhat.com>
6435 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
6436 allow SIGSETXID to be sent.
6437 * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
6438 for SIGSETXID to be defined.
6439 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
6440 SIGSETXID cannot be blocked.
6442 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6443 Add __extension__ to long long types.
6444 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6445 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6446 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6447 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6448 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
6449 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6450 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
6452 2004-09-25 Ulrich Drepper <drepper@redhat.com>
6454 * descr.h (struct pthread): Add stopped_start field.
6455 * sysdeps/pthread/createthread.c (create_thread): Set
6456 start_stopped flag in descriptor for new thread appropriately.
6457 * pthread_create.c (start_thread): Only take lock to be stopped on
6458 startup if stopped_start flag says so.
6460 2004-09-24 Ulrich Drepper <drepper@redhat.com>
6462 * pthread_create.c (__pthread_create_2_1): Remember whether thread
6463 is created detached and if yes, do not try to free the stack in case
6464 the thread creation failed.
6465 * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
6466 call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
6467 case there has been no error. [BZ #405]
6469 * pthread_create.c (start_thread): Don't wait for scheduler data
6470 etc to be set at the beginning of the function. The cancellation
6471 infrastructure must have been set up. And enable async
6472 cancellation before potentially going to sleep. [BZ #401]
6474 2004-09-20 Ulrich Drepper <drepper@redhat.com>
6476 * Versions: Remove exports for pthread_set*id_np functions.
6477 * sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes
6479 * Makefile: Don't build pthread_set*id code for now.
6481 2004-09-19 Ulrich Drepper <drepper@redhat.com>
6483 * sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for
6485 * allocatestack.c (__nptl_setxid): New function.
6486 * descr.h (struct xid_command): Define type.
6487 * init.c (pthread_functions): Add ptr__nptl_setxid initialization.
6488 (sighandler_setxid): New function.
6489 (__pthread_initialize_minimal): Register sighandler_setxid for
6491 * pt-allocrtsig.c: Update comment.
6492 * pthreadP.h: Define SIGSETXID. Declare __xidcmd variable.
6493 Declare __nptl_setxid.
6494 * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid.
6495 * sysdeps/pthread/pthread.h: Declare pthread_setgid_np,
6496 pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
6497 pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
6498 and pthread_setresuid_np.
6499 * pthread_setgid_np.c: New file.
6500 * pthread_setuid_np.c: New file.
6501 * pthread_setegid_np.c: New file.
6502 * pthread_seteuid_np.c: New file.
6503 * pthread_setregid_np.c: New file.
6504 * pthread_setreuid_np.c: New file.
6505 * pthread_setresgid_np.c: New file.
6506 * pthread_setresuid_np.c: New file.
6507 * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np,
6508 pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
6509 pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
6510 and pthread_setresuid_np.
6511 * Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid,
6512 pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid,
6513 pthread_setregid, and pthread_setresgid.
6515 2004-09-18 Ulrich Drepper <drepper@redhat.com>
6517 * allocatestack.c (allocate_stack): Return EAGAIN instead of
6518 ENOMEM when out of memory.
6520 2004-09-10 Roland McGrath <roland@redhat.com>
6523 * allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED]
6524 code, since we don't try to use the broken CLONE_STOPPED any more.
6525 * pthread_create.c (start_thread): Likewise.
6527 2004-09-15 Richard Henderson <rth@redhat.com>
6529 * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
6531 2004-09-01 David Mosberger <davidm@hpl.hp.com>
6533 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
6534 (__libc_unwind_longjmp): Delete macro and declare as function.
6535 * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
6536 __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
6538 * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
6539 * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
6540 * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
6542 2004-09-12 Ulrich Drepper <drepper@redhat.com>
6544 * sysdeps/pthread/pthread.h: Make rwlock prototypes available also
6546 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock
6547 types also for __USE_XOPEN2K.
6548 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6549 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6550 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6551 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6552 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
6553 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6554 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
6557 2004-09-08 Ulrich Drepper <drepper@redhat.com>
6559 * sysdeps/pthread/pthread.h
6560 (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
6561 (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
6562 (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
6563 (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
6566 2004-09-07 Ulrich Drepper <drepper@redhat.com>
6568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow
6569 PSEUDO to be used with . prefix.
6571 * sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once):
6572 Use atomic_increment instead of atomic_exchange_and_add.
6573 * sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once):
6575 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
6577 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
6580 * allocatestack.c (allocate_stack): Use atomic_increment_val
6581 instead of atomic_exchange_and_add.
6582 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise.
6583 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
6585 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
6588 * sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
6589 the initialization function might throw.
6591 2005-09-05 Richard Henderson <rth@redhat.com>
6593 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
6594 Move definition inside libpthread, libc, librt check. Provide
6595 definition for rtld.
6597 2004-09-02 Ulrich Drepper <drepper@redhat.com>
6599 * sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
6600 * sysdeps/i386/jmpbuf-unwind.h: Likewise
6601 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
6602 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
6603 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
6604 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
6605 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
6606 * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
6609 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
6610 Rename __data.__clock to __data.__nwaiters, make it unsigned int.
6611 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
6613 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
6614 Decrement __nwaiters. If pthread_cond_destroy has been called and
6615 this is the last waiter, signal pthread_cond_destroy caller and
6616 avoid using the pthread_cond_t structure after unlock.
6617 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6618 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6619 Read clock type from the least significant bits of __nwaiters instead
6621 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6622 * sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS.
6624 2004-08-31 Jakub Jelinek <jakub@redhat.com>
6627 * Makefile (tests): Add tst-cond20 and tst-cond21.
6628 * tst-cond20.c: New test.
6629 * tst-cond21.c: New test.
6630 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
6631 (pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make
6633 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
6635 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
6636 (pthread_cond_t): Likewise.
6637 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
6639 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6641 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
6643 * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove.
6644 (cond_nwaiters): New.
6646 * pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY
6647 if there are waiters not signalled yet.
6648 Wait until all already signalled waiters wake up.
6649 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement
6650 __nwaiters. If pthread_cond_destroy has been called and this is the
6651 last waiter, signal pthread_cond_destroy caller and avoid using
6652 the pthread_cond_t structure after unlock.
6653 (__pthread_cond_wait): Increment __nwaiters in the beginning,
6654 decrement it when leaving. If pthread_cond_destroy has been called
6655 and this is the last waiter, signal pthread_cond_destroy caller.
6656 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6657 Likewise. Read clock type from the least significant bits of
6658 __nwaiters instead of __clock.
6659 * pthread_condattr_setclock.c (pthread_condattr_setclock): Check
6660 whether clock ID can be encoded in COND_CLOCK_BITS bits.
6661 * pthread_condattr_getclock.c (pthread_condattr_getclock): Decode
6662 clock type just from the last COND_CLOCK_BITS bits of value.
6663 * pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters
6664 instead of __clock, just from second bit of condattr's value.
6666 2004-08-30 Jakub Jelinek <jakub@redhat.com>
6668 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include
6669 bits/wordsize.h. Make the header match i386 header when __WORDSIZE
6671 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
6673 2004-08-15 Roland McGrath <roland@frob.com>
6675 * pthread_atfork.c: Update copyright terms including special exception
6676 for these trivial files, which are statically linked into executables
6677 that use dynamic linking for the significant library code.
6679 2004-08-09 Jakub Jelinek <jakub@redhat.com>
6681 * DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to
6682 pthread_rwlock_rdlock.
6683 * sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
6684 Decrease __nr_readers_queued after reacquiring lock.
6685 * sysdeps/pthread/pthread_rwlock_timedrdlock
6686 (pthread_rwlock_timedrdlock): Likewise.
6687 Reported by Bob Cook <bobcook47@hotmail.com>.
6689 2004-08-11 Jakub Jelinek <jakub@redhat.com>
6691 * tst-rwlock14.c (tf): Read main thread handle from *ARG
6692 before pthread_barrier_wait.
6694 2004-08-07 Ulrich Drepper <drepper@redhat.com>
6696 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
6697 Remove unnecessary exception handling data.
6699 2004-07-23 Jakub Jelinek <jakub@redhat.com>
6702 * sysdeps/pthread/pthread.h (pthread_getcpuclockid): Use __clockid_t
6703 instead of clockid_t.
6705 2004-07-21 Roland McGrath <roland@redhat.com>
6707 * Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
6709 2004-07-19 Roland McGrath <roland@redhat.com>
6711 * tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
6713 2004-07-02 Roland McGrath <roland@redhat.com>
6715 * configure: Don't exit.
6717 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6719 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
6720 (__pthread_cond_timedwait): Check for invalid nanosecond in
6723 2004-07-07 Ulrich Drepper <drepper@redhat.com>
6725 * Makefile: Add rules to build and run tst-fini1.
6726 * tst-fini1.c: New file.
6727 * tst-fini1mod.c: New file.
6729 2004-07-05 Ulrich Drepper <drepper@redhat.com>
6731 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define NO_CANCELLATION
6732 if no cancellation support is needed.
6733 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
6734 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
6735 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
6736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
6737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
6738 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
6739 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
6740 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
6741 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
6743 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define __NR_futex
6744 only if not already defined.
6746 2004-07-05 Jakub Jelinek <jakub@redhat.com>
6748 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use
6749 constraint "m" instead of "0" for futex.
6751 * shlib-versions: Add powerpc64-.*-linux.*.
6753 2004-07-04 Jakub Jelinek <jakub@redhat.com>
6755 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
6756 (pthread_rwlock_timedrdlock): Use cmpq instead of cmpl to check
6758 * tst-rwlock14.c (do_test): Test for invalid tv_nsec equal to
6759 1 billion and 64-bit tv_nsec which is valid when truncated to 32
6762 2004-06-29 Roland McGrath <roland@redhat.com>
6764 * Banner: NPTL no longer has its own version number.
6765 * Makefile (nptl-version): Variable removed.
6766 * sysdeps/pthread/Makefile (CFLAGS-confstr.c): Set LIBPTHREAD_VERSION
6767 using $(version), the glibc version number.
6769 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6771 * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
6772 Fix branch offset for a PLT entry.
6773 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
6775 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
6777 * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
6779 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait):
6782 2004-06-28 Jakub Jelinek <jakub@redhat.com>
6784 * sysdeps/alpha/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define
6787 2004-06-28 Jakub Jelinek <jakub@redhat.com>
6789 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
6790 (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
6792 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
6793 (pthread_rwlock_timedrdlock): Likewise.
6795 2004-06-22 Jakub Jelinek <jakub@redhat.com>
6797 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
6798 Set __r7 to val, not mutex.
6800 2004-06-27 Ulrich Drepper <drepper@redhat.com>
6802 * Makefile: Add rules to build tst-rwlock14.
6803 * tst-rwlock14.c: New file.
6805 2004-06-24 Boris Hu <boris.hu@intel.com>
6807 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation
6809 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
6811 2004-06-19 Andreas Jaeger <aj@suse.de>
6813 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix
6814 assembler in last patch.
6816 2004-06-17 Ulrich Drepper <drepper@redhat.com>
6818 * sysdeps/pthread/pthread_cond_timedwait.c
6819 (__pthread_cond_timedwait): Also check for negativ nanoseconds.
6820 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6821 (__pthread_cond_timedwait): Check for invalid nanosecond in
6823 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6824 * tst-cond19.c: New file.
6825 * Makefile: Add rules to build and run tst-cond19.
6827 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
6829 * tst-context1.c (GUARD_PATTERN): Defined.
6830 (tst_context_t): Define struct containing ucontext_t & guard words.
6831 (ctx): Declare as an array of tst_context_t.
6832 (fct): Verify uc_link & guard words are still valid.
6833 (tf): Initialize guard words in ctx. Adjust ctx refs for new struct.
6835 2004-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6837 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6838 Add __data.__futex field, reshuffle __data.__clock.
6839 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
6840 (__pthread_cond_signal): Increment __futex at the same time as
6841 __wakeup_seq or __total_seq. Pass address of __futex instead of
6842 address of low 32-bits of __wakeup_seq to futex syscall.
6843 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
6844 (__pthread_cond_wait): Likewise. Pass __futex value from before
6845 releasing internal lock to FUTEX_WAIT.
6846 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
6847 (__pthread_cond_timedwait): Likewise.
6848 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
6849 (FUTEX_CMP_REQUEUE): Define.
6850 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6851 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6852 Pass __futex value from before the unlock and __futex address instead
6853 of address of low 32-bits of __wakeup_seq to futex syscall.
6854 Fallback to FUTEX_WAKE all on any errors.
6856 2004-06-08 Jakub Jelinek <jakub@redhat.com>
6858 * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix
6860 * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise.
6861 * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
6862 * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise.
6863 * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
6864 Likewise. Reported by Bob Cook <bobcook47@hotmail.com>.
6866 2004-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
6868 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap):
6869 Add memory clobber to inline assembly.
6870 (__lll_mutex_trylock): Likewise.
6871 (__lll_mutex_cond_trylock): Likewise.
6873 2004-06-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6875 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
6876 Pass val argument as 6th system call argument in %r7.
6878 2004-05-21 Jakub Jelinek <jakub@redhat.com>
6880 * Makefile (tests): Add tst-cond16.
6881 * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add.
6882 * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex.
6883 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
6884 Add __data.__futex field, reshuffle __data.__clock.
6885 * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S
6886 (__pthread_cond_signal): Increment __futex at the same time as
6887 __wakeup_seq or __total_seq. Pass address of __futex instead of
6888 address of low 32-bits of __wakeup_seq to futex syscall.
6889 * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S
6890 (__pthread_cond_wait): Likewise. Pass __futex value from before
6891 releasing internal lock to FUTEX_WAIT.
6892 * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S
6893 (__pthread_cond_timedwait): Likewise.
6894 * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S
6895 (FUTEX_CMP_REQUEUE): Define.
6896 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6897 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6898 Pass __futex value from before the unlock and __futex address instead
6899 of address of low 32-bits of __wakeup_seq to futex syscall.
6900 Fallback to FUTEX_WAKE all on any errors.
6901 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE):
6903 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6904 internally. Return non-zero if error, zero if success.
6905 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
6906 Add __data.__futex field, reshuffle __data.__clock.
6907 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE):
6909 (lll_futex_requeue): Add val argument, return 1 unconditionally
6911 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
6912 Add __data.__futex field, reshuffle __data.__clock.
6913 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE):
6915 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6916 internally. Return non-zero if error, zero if success.
6917 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
6918 (pthread_cond_t): Add __data.__futex field, reshuffle __data.__clock.
6919 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_CMP_REQUEUE):
6921 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6922 internally. Return non-zero if error, zero if success.
6923 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
6924 Add __data.__futex field, reshuffle __data.__clock.
6925 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_CMP_REQUEUE):
6927 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
6928 internally. Return non-zero if error, zero if success.
6929 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
6930 Add __data.__futex field, reshuffle __data.__clock.
6931 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
6932 Add __data.__futex field, reshuffle __data.__clock.
6933 * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal):
6934 Increment __futex at the same time as __wakeup_seq or __total_seq.
6935 Pass address of __futex instead of address of low 32-bits of
6936 __wakeup_seq to futex syscall.
6937 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
6938 Pass __futex value from before releasing internal lock
6940 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6941 Likewise. Avoid unnecessary shadowing of variables.
6942 * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast):
6943 Set __futex to 2 * __total_seq. Pass __futex value from before the
6944 unlock and __futex address instead of address of low 32-bits of
6945 __wakeup_seq to futex_requeue macro, adjust for new return value
6947 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
6948 (__pthread_cond_signal): Increment __futex at the same time as
6949 __wakeup_seq or __total_seq. Pass address of __futex instead of
6950 address of low 32-bits of __wakeup_seq to futex syscall.
6951 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
6952 (__pthread_cond_wait): Likewise. Pass __futex value from before
6953 releasing internal lock to FUTEX_WAIT.
6954 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
6955 (__pthread_cond_timedwait): Likewise.
6956 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
6957 (FUTEX_CMP_REQUEUE): Define.
6958 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
6959 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
6960 Pass __futex value from before the unlock and __futex address instead
6961 of address of low 32-bits of __wakeup_seq to futex syscall.
6962 Fallback to FUTEX_WAKE all on any errors.
6964 2004-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6966 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_mutex_lock):
6967 Add nop to align the end of critical section.
6968 (lll_mutex_cond_lock, lll_mutex_timedlock): Likewise.
6970 2004-06-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6972 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
6973 Add __broadcast_seq field.
6974 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Mark
6975 all waiters as woken with woken_seq and bump broadcast counter.
6976 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use new
6977 __broadcast_seq. Increment __woken_seq correctly when cleanuped.
6978 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
6979 Comment typo fixes. Avoid returning -ETIMEDOUT.
6981 2004-06-01 Ulrich Drepper <drepper@redhat.com>
6983 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6984 (__condvar_tw_cleanup): Fix access to saved broadcast_seq value.
6985 Reported by Kaz Kojima.
6987 2004-05-25 Jakub Jelinek <jakub@redhat.com>
6989 * sysdeps/unix/sysv/linux/aio_misc.h: New file.
6991 2004-05-21 Jakub Jelinek <jakub@redhat.com>
6993 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare
6994 __broadcast_seq with bc_seq after acquiring internal lock instead of
6997 2004-05-18 Jakub Jelinek <jakub@redhat.com>
6999 * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not
7001 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7002 (__pthread_cond_timedwait): Avoid returning -ETIMEDOUT.
7003 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
7004 (pthread_cond_t): Add __data.__broadcast_seq field.
7005 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
7006 (FRAME_SIZE): Define.
7007 (__pthread_cond_timedwait): Use it. Store/check broadcast_seq.
7009 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (FRAME_SIZE):
7011 (__pthread_cond_wait): Use it. Store/check broadcast_seq. Comment
7013 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
7014 (__pthread_cond_broadcast): Increment broadcast_seq. Comment typo
7017 2004-05-18 Ulrich Drepper <drepper@redhat.com>
7019 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add broadcast_seq entry.
7020 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
7021 Add __broadcast_seq field.
7022 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7023 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7024 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
7025 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
7026 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7027 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Mark
7028 all waiters as woken with woken_seq and bump broadcast counter.
7029 * sysdeps/pthread/pthread_cond_broadcast.c: Likewise.
7030 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use new
7031 __broadcast_seq field.
7032 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
7033 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
7034 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
7035 * pthread_cond_init.c: Initialize __broadcast_seq field.
7036 * Makefile (tests): Add tst-cond17 and tst-cond18.
7037 Add .NOTPARALLEL goal.
7038 * tst-cond16.c: New file. From Jakub.
7039 * tst-cond17.c: New file. From Jakub.
7040 * tst-cond18.c: New file. From Jakub.
7042 2004-05-16 Ulrich Drepper <drepper@redhat.com>
7044 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Correct some
7047 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
7048 Parametrize frame size. Correct some unwind info.
7049 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
7051 2004-05-04 Jakub Jelinek <jakub@redhat.com>
7053 * tst-stack3.c: Note testing functionality beyond POSIX.
7055 2004-05-04 Jakub Jelinek <jakub@redhat.com>
7057 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD):
7058 Change conditional from ifdef to if.
7060 2004-04-23 Jakub Jelinek <jakub@redhat.com>
7062 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SYSDEP_CANCEL_ERRNO,
7063 SYSDEP_CANCEL_ERROR): Define.
7066 2004-05-01 Jakub Jelinek <jakub@redhat.com>
7068 * Versions (libpthread): Remove __pthread_cleanup_upto@@GLIBC_PRIVATE.
7070 2004-04-20 Jakub Jelinek <jakub@redhat.com>
7072 * sem_unlink.c (sem_unlink): Change EPERM into EACCES.
7074 2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7076 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
7077 Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
7078 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove unneeded frame
7079 info. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
7081 2004-04-19 Ulrich Drepper <drepper@redhat.com>
7083 * sysdeps/unix/sysv/linux/timer_routines.c: Make sure helper
7084 thread has all signals blocked.
7086 2004-04-18 Andreas Jaeger <aj@suse.de>
7088 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h
7089 (SEM_VALUE_MAX): Add missing brace.
7091 2004-04-17 Jakub Jelinek <jakub@redhat.com>
7093 * sysdeps/pthread/Makefile (tests): Add tst-mqueue8x
7095 (CFLAGS-tst-mqueue8x.c): Add -fexceptions.
7096 * sysdeps/pthread/tst-mqueue8x.c: New test.
7097 * tst-cancel4.c: Update comment about message queues.
7099 * sysdeps/pthread/timer_gettime.c (timer_gettime): For expired timer
7100 return it_value { 0, 0 }.
7101 * sysdeps/pthread/timer_create.c (timer_create): Handle SIGEV_NONE
7103 * sysdeps/pthread/timer_routines.c (thread_expire_timer): Remove
7104 assertion for SIGEV_NONE.
7105 (thread_attr_compare): Compare all attributes, not just a partial
7108 2004-04-17 Jakub Jelinek <jakub@redhat.com>
7110 * sysdeps/unix/sysv/linux/mq_notify.c: Include stdlib.h.
7112 2004-04-17 Ulrich Drepper <drepper@redhat.com>
7114 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h (SEM_VALUE_MAX):
7115 Just use a plain number.
7116 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
7117 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
7118 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
7119 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
7120 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
7121 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
7122 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
7124 2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7126 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded
7128 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
7130 2004-04-15 Jakub Jelinek <jakub@redhat.com>
7132 * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h.
7133 (timer_helper_thread): Use inline rt_sigtimedwait syscall instead
7134 of calling sigwaitinfo.
7136 2004-04-16 Ulrich Drepper <drepper@redhat.com>
7138 * allocatestack.c (allocate_stack): Set reported_guardsize
7140 * pthread_getattr_np.c (pthread_getattr_np): Use
7141 reported_guardsize instead of guardsize.
7142 * descr.h (struct pthread): Add reported_guardsize field.
7144 2004-04-13 Jakub Jelinek <jakub@redhat.com>
7146 * sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.
7148 2004-04-12 Ulrich Drepper <drepper@redhat.com>
7150 * sysdeps/unix/sysv/linux/mq-notify.c: New file.
7152 2004-04-08 Jakub Jelinek <jakub@redhat.com>
7154 * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define.
7155 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h (MQ_PRIO_MAX): Define.
7156 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h (MQ_PRIO_MAX): Define.
7157 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h (MQ_PRIO_MAX): Define.
7158 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_MESSAGE_PASSING):
7160 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h
7161 (_POSIX_MESSAGE_PASSING): Define.
7162 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h
7163 (_POSIX_MESSAGE_PASSING): Define.
7164 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h
7165 (_POSIX_MESSAGE_PASSING): Define.
7167 2004-04-04 Ulrich Drepper <drepper@redhat.com>
7169 * tst-context1.c (fct): Check whether correct stack is used.
7171 2004-04-03 Ulrich Drepper <drepper@redhat.com>
7173 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
7174 matching constraints for asm mem parameters.
7176 * tst-clock2.c (tf): Don't define unless needed.
7178 2004-03-30 H.J. Lu <hongjiu.lu@intel.com>
7180 * Makefile (link-libc-static): Use $(static-gnulib) instead of
7183 2004-03-30 Ulrich Drepper <drepper@redhat.com>
7185 * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_deallocate_tsd.
7186 * init.c (pthread_functions): Add ptr__nptl_deallocate_tsd.
7187 * pthreadP.h: Declare __nptl_deallocate_tsd.
7188 * pthread_create.c (deallocate_tsd): Remove to __nptl_deallocate_tsd.
7191 * Makefile (tests): Add tst-tsd5.
7192 * tst-tsd5.c: New file.
7194 2004-03-29 Ulrich Drepper <drepper@redhat.com>
7196 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
7197 (__pthread_attr_setaffinity_old): Prepend GLIBC_ to version names
7198 is SHLIB_COMPAT check.
7199 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
7200 (__pthread_attr_getaffinity_old): Likewise.
7201 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
7202 (__pthread_getaffinity_old): Likewise.
7203 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7204 (__pthread_setaffinity_old): Likewise.
7206 2004-03-26 Ulrich Drepper <drepper@redhat.com>
7208 * allocatestack.c (_make_stacks_executable): Call
7209 _dl_make_stack_executable first.
7211 2004-03-24 Roland McGrath <roland@redhat.com>
7213 * sysdeps/i386/pthread_spin_lock.c (pthread_spin_lock): Use "m"
7214 constraint instead of "0".
7216 2004-03-24 Ulrich Drepper <drepper@redhat.com>
7218 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
7219 (lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock.
7221 * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Reorganize
7222 code to avoid warning.
7224 2004-03-24 Andreas Jaeger <aj@suse.de>
7226 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
7227 (__pthread_attr_setaffinity_old): Remove const.
7229 2004-03-23 Ulrich Drepper <drepper@redhat.com>
7231 * sysdeps/unix/sysv/linux/smp.h: New file.
7232 * sysdeps/unix/sysv/linux/sh/smp.h: New file.
7233 * init.c: Define __is_smp.
7234 (__pthread_initialize_minimal_internal): Call is_smp_system to
7235 initialize __is_smp.
7236 * pthreadP.h: Declare __is_smp.
7237 Define MAX_ADAPTIVE_COUNT is necessary.
7238 * pthread_mutex_init.c: Add comment regarding __spins field.
7239 * pthread_mutex_lock.c: Implement adaptive mutex type.
7240 * pthread_mutex_timedlock.c: Likewise.
7241 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
7242 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
7244 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
7245 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7246 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7247 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
7248 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7249 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
7250 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
7251 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define
7252 lll_mutex_cond_trylock.
7253 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7254 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
7255 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7256 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
7257 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
7258 Define BUSY_WAIT_NOP.
7259 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7260 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
7262 * tst-mutex5.c: Add support for testing adaptive mutexes.
7263 * tst-mutex7.c: Likewise.
7264 * tst-mutex5a.c: New file.
7265 * tst-mutex7a.c: New file.
7266 * Makefile (tests): Add tst-mutex5a and tst-mutex7a.
7268 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
7269 (__lll_mutex_timedlock_wait): Preserve r8 and r9 since the
7270 vgettimeofday call might destroy the content.
7272 * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use hint
7275 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
7276 No need to restrict type of ret. Make it int. Add comment.
7278 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
7279 Remove unnecessary setne instruction.
7281 2004-03-22 Jakub Jelinek <jakub@redhat.com>
7283 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
7284 (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
7285 * pthread_getattr_np.c (pthread_getattr_np): Double size every cycle.
7286 If realloc fails, break out of the loop.
7288 2004-03-20 Andreas Jaeger <aj@suse.de>
7290 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7291 (__pthread_setaffinity_old): Fix interface.
7292 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
7293 (__pthread_getaffinity_old): Likewise.
7295 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7296 (__pthread_setaffinity_new): Remove duplicate declaration.
7298 2004-03-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7300 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save
7301 the return value to a safe register.
7302 (CDISABLE): Set the function argument correctly.
7304 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7306 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XCHG): Define.
7307 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
7308 Rewrite so that only one locked memory operation per round is needed.
7309 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
7310 (pthread_barrier_wait): After wakeup, release lock only when the
7311 last thread stopped using the barrier object.
7312 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
7313 (__pthread_cond_wait): Don't store mutex address if the current
7314 value is ~0l. Add correct cleanup support and unwind info.
7315 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
7316 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
7317 (__pthread_cond_broadcast): Don't use requeue for pshared condvars.
7318 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Update comment.
7319 * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
7320 Add correct cleanup support and unwind info.
7321 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
7322 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Add unwind
7323 information for syscall wrappers.
7325 2004-03-18 Ulrich Drepper <drepper@redhat.com>
7327 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
7328 cpusetsize field, remove next.
7329 * sysdeps/pthread/pthread.h (pthread_getaffinity_np): Add new second
7330 parameter for size of the CPU set.
7331 (pthread_setaffinity_np): Likewise.
7332 (pthread_attr_getaffinity_np): Likewise.
7333 (pthread_attr_setaffinity_np): Likewise.
7334 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Implement
7335 interface change, keep compatibility code.
7336 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
7337 * sysdeps/unix/sysv/linux/pthread_getaffinity.c: Likewise.
7338 * sysdeps/unix/sysv/linux/pthread_setaffinity.c: Likewise.
7339 * pthreadP.h: Remove hidden_proto for pthread_getaffinity_np. Declare
7340 __pthread_getaffinity_np.
7341 * Versions: Add version for changed interfaces.
7342 * tst-attr3.c: Adjust test for interface change.
7343 * pthread_getattr_np.c: Query the kernel about the affinity mask with
7344 increasing buffer sizes.
7345 * pthread_attr_destroy.c: Remove unused list handling.
7346 * pthread_attr_init.c: Likewise.
7348 2004-03-17 Roland McGrath <roland@redhat.com>
7350 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing
7351 first argument to clock_getres so we ever enable kernel timers.
7353 2004-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7355 * init.c (nptl_version): Add __attribute_used__ to nptl_version.
7357 2004-03-12 Richard Henderson <rth@redhat.com>
7359 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate
7360 oldvalue from CENABLE to CDISABLE.
7362 2004-03-12 Ulrich Drepper <drepper@redhat.com>
7364 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
7365 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
7366 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
7367 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
7369 2004-03-11 Richard Henderson <rth@redhat.com>
7371 * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
7372 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID.
7373 * sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
7375 2004-03-11 Jakub Jelinek <jakub@redhat.com>
7377 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Use jgnl
7378 instead of jnl instruction to jump to SYSCALL_ERROR_LABEL.
7379 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S (__vfork): Likewise.
7381 2004-03-11 Jakub Jelinek <jakub@redhat.com>
7383 * forward.c (__pthread_cond_broadcast_2_0,
7384 __pthread_cond_destroy_2_0, __pthread_cond_init_2_0,
7385 __pthread_cond_signal_2_0, __pthread_cond_wait_2_0,
7386 __pthread_cond_timedwait_2_0): Use return 0 as defaction instead of 0.
7388 2004-03-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7390 * sysdeps/sh/tcb-offsets.sym: Add PID.
7391 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Properly handle PID cache.
7392 * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
7394 2004-03-10 Ulrich Drepper <drepper@redhat.com>
7396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: No need to
7397 include <sysdep-cancel.h>, vfork is no cancellation point.
7398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
7399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: Likewise.
7400 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: Likewise.
7402 2004-03-10 Jakub Jelinek <jakub@redhat.com>
7404 * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add
7406 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise.
7407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork):
7409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
7411 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise.
7412 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise.
7413 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Include tcb-offsets.h.
7414 * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Use DO_CALL instead
7415 of DO_CALL_VIA_BREAK. Work around a gas problem.
7417 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: Remove.
7418 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
7419 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: New file.
7420 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
7421 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: New file.
7422 * sysdeps/powerpc/tcb-offsets.sym: Add PID.
7424 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S (__vfork): Don't use
7425 a local register for saving old PID. Negate PID in parent upon exit.
7427 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Include
7429 (__vfork): Negate PID if non-zero and set to INT_MIN if zero
7430 before syscall, set to the old value in the parent afterwards.
7431 * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: New file.
7432 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Include
7434 (__vfork): Negate PID if non-zero and set to INT_MIN if zero
7435 before syscall, set to the old value in the parent afterwards.
7436 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: New file.
7437 * sysdeps/s390/tcb-offsets.sym: Add PID.
7439 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Remove.
7440 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: New file.
7441 * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: New file.
7442 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: New file.
7443 * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: New file.
7444 * sysdeps/sparc/tcb-offsets.sym: Add PID.
7446 2004-03-10 Andreas Schwab <schwab@suse.de>
7448 * sysdeps/ia64/tcb-offsets.sym: Add PID.
7449 * sysdeps/unix/sysv/linux/ia64/vfork.S: New file.
7450 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Properly handle PID cache.
7452 2004-03-09 Jakub Jelinek <jakub@redhat.com>
7454 * tst-cancel20.c (do_one_test): Clear in_sh_body first.
7455 * tst-cancel21.c (do_one_test): Likewise.
7456 Reported by Gordon Jin <gordon.jin@intel.com>.
7458 2004-02-09 Jakub Jelinek <jakub@redhat.com>
7460 * sysdeps/unix/sysv/linux/i386/vfork.S (SAVE_PID): Negate PID
7461 if non-zero and set to INT_MIN if zero.
7462 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SAVE_PID): Likewise.
7463 * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Include tcb-offsets.h.
7464 (SAVE_PID, RESTORE_PID): Define.
7466 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: Include tcb-offsets.h.
7467 Use relative path to avoid including NPTL i386/vfork.S.
7468 (SAVE_PID, RESTORE_PID): Define.
7469 * sysdeps/unix/sysv/linux/raise.c: Include limits.h.
7470 (raise): Handle THREAD_SELF->pid INT_MIN the same as 0.
7471 * Makefile (tests): Add tst-vfork1, tst-vfork2, tst-vfork1x and
7473 (tests-reverse): Add tst-vfork1x and tst-vfork2x.
7474 * tst-vfork1.c: New test.
7475 * tst-vfork2.c: New test.
7476 * tst-vfork1x.c: New test.
7477 * tst-vfork2x.c: New test.
7479 2004-03-08 Ulrich Drepper <drepper@redhat.com>
7481 * sysdeps/i386/tcb-offsets.sym: Add PID.
7482 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
7483 * sysdeps/unix/sysv/linux/i386/vfork.S: New file.
7484 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
7486 2004-03-08 Steven Munroe <sjmunroe@us.ibm.com>
7488 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove leading tabs.
7490 2004-03-08 H.J. Lu <hongjiu.lu@intel.com>
7492 * sysdeps/s390/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
7495 2004-03-07 Ulrich Drepper <drepper@redhat.com>
7497 * sysdeps/ia64/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
7500 * tst-once4.c: Remove unnecessary macro definition.
7502 * tst-mutex7.c (do_test): Limit thread stack size.
7503 * tst-once2.c (do_test): Likewise.
7504 * tst-tls3.c (do_test): Likewise.
7505 * tst-tls1.c (do_test): Likewise.
7506 * tst-signal3.c (do_test): Likewise.
7507 * tst-kill6.c (do_test): Likewise.
7508 * tst-key4.c (do_test): Likewise.
7509 * tst-join4.c (do_test): Likewise.
7510 * tst-fork1.c (do_test): Likewise.
7511 * tst-context1.c (do_test): Likewise.
7512 * tst-cond2.c (do_test): Likewise.
7513 * tst-cond10.c (do_test): Likewise.
7514 * tst-clock2.c (do_test): Likewise.
7515 * tst-cancel10.c (do_test): Likewise.
7516 * tst-basic2.c (do_test): Likewise.
7517 * tst-barrier4.c (do_test): Likewise.
7519 2004-03-05 Ulrich Drepper <drepper@redhat.com>
7521 * sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate.
7523 2004-03-01 Ulrich Drepper <drepper@redhat.com>
7525 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7526 (__pthread_cond_timedwait): Optimize wakeup test.
7527 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
7528 (__pthread_cond_wait): Likewise.
7529 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
7530 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
7533 2004-02-29 Ulrich Drepper <drepper@redhat.com>
7535 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
7536 (__lll_mutex_lock_wait): Optimize a bit more. Just one copy of
7537 the atomic instruction needed.
7538 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
7539 (__lll_mutex_lock_wait): Likewise.
7541 2004-02-28 Ulrich Drepper <drepper@redhat.com>
7543 * Makefile (tests): Add tst-cond14 and tst-cond15.
7544 * tst-cond14.c: New file.
7545 * tst-cond15.c: New file.
7547 2004-02-27 Ulrich Drepper <drepper@redhat.com>
7549 * sysdeps/pthread/createthread.c (create_thread): Remove use of
7550 CLONE_STOPPED. We cannot use SIGCONT which means CLONE_STOPPED
7551 needs to be implemented differently to be useful.
7553 2004-02-26 Ulrich Drepper <drepper@redhat.com>
7555 * pthread_attr_setschedparam.c: Don't test priority against limits
7556 here. Set ATTR_FLAG_SCHED_SET flag.
7557 * pthread_attr_setschedpolicy.c: Set ATTR_FLAG_POLICY_SET flag.
7558 * pthread_create.c (__pthread_create_2_1): Copy scheduling attributes
7559 from parent thread to child. If attribute is used and scheduling
7560 parameters are not inherited, copy parameters from attribute or
7561 compute them. Check priority value.
7562 * pthread_getschedparam.c: If the parameters aren't known yet get
7563 them from the kernel.
7564 * pthread_setschedparam.c: Set ATTR_FLAG_SCHED_SET and
7565 ATTR_FLAG_POLICY_SET flag for thread.
7566 * sysdeps/unix/sysv/linux/internaltypes.h: Define ATTR_FLAG_SCHED_SET
7567 and ATTR_FLAG_POLICY_SET.
7569 * sysdeps/pthread/createthread.c: Use tgkill if possible.
7571 * pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Don't
7572 fail if stack address hasn't been set. Just return 0.
7574 2004-02-25 Ulrich Drepper <drepper@redhat.com>
7576 * Makefile (tests-nolibpthread): Add tst-unload. Don't link with
7577 libpthread for the files in this list.
7578 (CFLAGS-tst-unload): Removed.
7579 * tst-unload.c (do_test): Don't use complete path for
7582 * Makefile: Define sonames for tst-tls5mod, tst-_res1mod1, and
7585 2004-02-22 Ulrich Drepper <drepper@redhat.com>
7587 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
7588 (__lll_mutex_lock_wait): Rewrite so that only one locked memory
7589 operation per round is needed.
7590 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
7591 (__lll_mutex_lock_wait): Likewise.
7593 2004-02-20 Ulrich Drepper <drepper@redhat.com>
7595 * tst-cancel9.c (cleanup): Don't print to stderr.
7597 2004-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7599 * sysdeps/sh/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Fix variable name.
7601 2004-02-20 Jakub Jelinek <jakub@redhat.com>
7603 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
7604 (__syscall_error_handler2): Call CDISABLE.
7605 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
7606 (__syscall_error_handler2): Call CDISABLE.
7608 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7609 Release lock before the loop, don't reacquire it.
7611 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define.
7613 2004-02-19 Andreas Schwab <schwab@suse.de>
7615 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7618 2004-02-18 Ulrich Drepper <drepper@redhat.com>
7620 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
7621 (pthread_barrier_wait): After wakeup, release lock only when the
7622 last thread stopped using the barrier object.
7623 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
7624 (pthread_barrier_wait): Likewise.
7625 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
7627 * Makefile (tests): Add tst-barrier4.
7628 * tst-barrier4.c: New file.
7630 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7631 (__pthread_cond_timedwait): Perform timeout test while holding
7632 internal lock to prevent wakeup race.
7633 Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
7634 * sysdeps/pthread/pthread_cond_timedwait.c
7635 (__pthread_cond_timedwait): Likewise.
7636 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
7637 (__pthread_cond_timedwait): Likewise.
7639 2004-02-18 Jakub Jelinek <jakub@redhat.com>
7641 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S
7642 (__pthread_rwlock_unlock): Access WRITER as 32-bit value.
7643 * Makefile (tests): Add tst-rwlock13.
7644 * tst-rwlock13.c: New test.
7646 2004-02-16 Ulrich Drepper <drepper@redhat.com>
7648 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7649 (__condvar_tw_cleanup): Little optimization.
7650 Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
7652 2004-02-16 Steven Munroe <sjmunroe@us.ibm.com>
7654 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Replace libc with
7655 libpthread as "lib" parameter to SHLIB_COMPAT.
7656 (__novmx_siglongjmp): Fix typo in function name.
7657 (__novmx_longjmp): Fix typo in function name.
7659 2004-02-13 Ulrich Drepper <drepper@redhat.com>
7661 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a
7664 * sysdeps/generic/pt-longjmp.c: Moved to...
7665 * sysdeps/pthread/pt-longjmp.c: ...here. New file.
7667 2004-01-29 Steven Munroe <sjmunroe@us.ibm.com>
7669 * Makefile (libpthread-routines): Add pt-cleanup.
7670 * pt-longjmp.c: Removed.
7671 * pt-cleanup.c: Copied __pthread_cleanup_upto to here. New file.
7672 * sysdeps/generic/pt-longjmp.c: Copied longjmp to here. New file.
7673 * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
7674 Version longjmp, siglongjmp for GLIBC_2.3.4.
7675 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: New File.
7677 2004-02-13 Ulrich Drepper <drepper@redhat.com>
7679 * sysdeps/pthread/pthread_cond_timedwait.c
7680 (__pthread_cond_timedwait): Optimize. Drop internal lock earlier.
7681 Reuse code. Add __builtin_expects.
7683 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7684 (__pthread_cond_timedwait): Get internal lock in case timeout has
7685 passed before the futex syscall.
7686 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
7688 2004-01-20 Ulrich Drepper <drepper@redhat.com>
7690 * allocatestack.c: Pretty printing.
7692 * sysdeps/pthread/createthread.c (create_thread): Don't add
7693 CLONE_DETACHED bit if it is not necessary.
7695 2004-01-16 Ulrich Drepper <drepper@redhat.com>
7697 * pthread_getattr_np.c: Include ldsodefs.h.
7699 2004-01-16 Richard Henderson <rth@redhat.com>
7701 * allocatestack.c: Don't declare __libc_stack_end.
7702 * init.c (__pthread_initialize_minimal_internal): Likewise.
7703 * pthread_getattr_np.c (pthread_getattr_np): Likewise.
7705 2004-01-15 Richard Henderson <rth@redhat.com>
7707 * sysdeps/alpha/tls.h (tcbhead_t): Add private.
7708 (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
7709 TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
7710 GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
7711 (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
7712 (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
7713 (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
7714 * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
7716 2004-01-14 Ulrich Drepper <drepper@redhat.com>
7718 * init.c (pthread_functions): Make array const.
7720 2004-01-13 Ulrich Drepper <drepper@redhat.com>
7722 * allocatestack.c (__make_stacks_executable): Change interface.
7723 Check parameters. Pass parameter on to libc counterpart.
7724 * pthreadP.h: Change declaration.
7726 2004-01-13 Richard Henderson <rth@redhat.com>
7728 * pthread_attr_setstack.c (__old_pthread_attr_setstack): Use
7730 * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize):
7733 * sysdeps/alpha/Makefile: New file.
7734 * sysdeps/alpha/tcb-offsets.sym: New file.
7735 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
7736 Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.
7738 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
7741 2004-01-08 Jakub Jelinek <jakub@redhat.com>
7743 * Makefile (tests): Add tst-backtrace1.
7744 * tst-backtrace1.c: New test.
7746 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
7748 * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
7749 register as second parameter to the REGISTER macro.
7750 * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
7751 * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
7752 * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
7753 * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
7754 * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
7755 of thread register as second parameter to REGISTER macro in 64 case.
7757 2004-01-03 Ulrich Drepper <drepper@redhat.com>
7759 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
7760 (CFLAGS-getpid.o): Defined.
7761 (CFLAGS-getpid.os): Defined.
7763 2003-12-31 Ulrich Drepper <drepper@redhat.com>
7765 * pthread_getattr_np.c (pthread_getattr_np): Make sure stack info
7766 returned for main thread does not overlap with any other VMA.
7767 Patch by Jakub Jelinek.
7769 2003-12-29 Jakub Jelinek <jakub@redhat.com>
7771 * tst-raise1.c: Include stdio.h.
7773 2003-12-23 Jakub Jelinek <jakub@redhat.com>
7775 * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid
7776 setting with __ASSUME_TGKILL || defined __NR_tgkill.
7777 If pid is 0, set it to selftid.
7778 * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline.
7779 Don't set self->pid but self->tid. If self->pid == 0 and self->tid
7780 != 0, return self->tid without doing a syscall.
7781 * descr.h (struct pthread): Move pid field after tid.
7783 * Makefile (tests): Add tst-raise1.
7784 * tst-raise1.c: New file.
7786 2003-12-23 Roland McGrath <roland@redhat.com>
7788 * tst-oddstacklimit.c: New file.
7789 * Makefile (tests): Add it.
7790 (tst-oddstacklimit-ENV): New variable.
7792 * init.c (__pthread_initialize_minimal_internal): Round stack rlimit
7793 value up to page size for __default_stacksize.
7795 2003-12-21 Ulrich Drepper <drepper@redhat.com>
7797 * Makefile (tests): Add tst-eintr5.
7798 * tst-eintr5.c: New file.
7800 * eintr.c (eintr_source): Prevent sending signal to self.
7802 * tst-eintr2.c (tf1): Improve error message.
7804 2003-12-20 Ulrich Drepper <drepper@redhat.com>
7806 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define.
7807 * sysdeps/unix/sysv/linux/getpid.c: New file.
7808 * pthread_cancel.c: Add comment explaining use of PID field.
7809 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
7810 * pthread_getattr_np.c: Use abs() when comparing PID and TID fields.
7811 * sysdeps/unix/sysv/linux/fork.c: Negate PID field of parent
7812 temporarily to signal the field must not be relied on and updated
7814 * sysdeps/unix/sysv/linux/pt-raise.c: Handle case where PID is
7815 temporarily negative.
7816 * sysdeps/unix/sysv/linux/raise.c: Likewise.
7818 2003-12-19 Ulrich Drepper <drepper@redhat.com>
7820 * eintr.c (setup_eintr): Add new parameter. Pass to thread function.
7821 (eintr_source): If ARG != NULL, use pthread_kill.
7822 * tst-eintr1.c: Adjust for this change.
7823 * tst-eintr2.c: Likewise.
7824 * Makefile (tests): Add tst-eintr3 and tst-eintr4.
7825 * tst-eintr3.c: New file.
7826 * tst-eintr4.c: New file.
7828 2003-12-19 Jakub Jelinek <jakub@redhat.com>
7830 * libc-cancellation.c (__libc_enable_asynccancel): Don't cancel
7831 if CANCELSTATE_BITMASK is set.
7832 * sysdeps/pthread/librt-cancellation.c (__librt_enable_asynccancel):
7835 * Makefile (tests): Add tst-cancel22 and tst-cancel23.
7836 (tests-reverse): Add tst-cancel23.
7837 * tst-cancel22.c: New test.
7838 * tst-cancel23.c: New test.
7840 2003-12-18 Ulrich Drepper <drepper@redhat.com>
7842 * tst-eintr1.c: Better error messages.
7844 * Makefile (tests): Add tst-eintr2.
7845 * tst-eintr2.c: New file.
7847 2003-12-18 Jakub Jelinek <jakub@redhat.com>
7849 * Makefile (tests): Add tst-cancel21 and tst-cancelx21.
7850 (CFLAGS-tst-cancelx21.c): Set.
7851 * tst-cancel21.c: New test.
7852 * tst-cancelx21.c: New test.
7854 * unwind.c (FRAME_LEFT): Add adj argument. Subtract it from each
7856 (unwind_stop): Use _JMPBUF_CFA_UNWINDS_ADJ macro instead of
7857 _JMPBUF_CFA_UNWINDS. Adjust FRAME_LEFT invocations.
7858 * pt-longjmp.c: Include jmpbuf-unwind.h.
7859 (__pthread_cleanup_upto): Use _JMPBUF_UNWINDS_ADJ macro instead of
7860 _JMPBUF_UNWINDS. Adjust compared pointers.
7861 * init.c (__pthread_initialize_minimal_internal): Initialize
7862 pd->stackblock_size.
7863 * sysdeps/pthread/jmpbuf-unwind.h: Removed.
7864 * sysdeps/alpha/jmpbuf-unwind.h: New file.
7865 * sysdeps/i386/jmpbuf-unwind.h: New file.
7866 * sysdeps/powerpc/jmpbuf-unwind.h: New file.
7867 * sysdeps/s390/jmpbuf-unwind.h: New file.
7868 * sysdeps/sh/jmpbuf-unwind.h: New file.
7869 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file.
7870 * sysdeps/x86_64/jmpbuf-unwind.h: New file.
7871 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Include stdint.h.
7872 (_JMPBUF_CFA_UNWINDS): Remove.
7873 (_JMPBUF_CFA_UNWINDS_ADJ, _JMPBUF_UNWINDS_ADJ): Define.
7875 2003-12-12 Jakub Jelinek <jakub@redhat.com>
7877 * Makefile (tests): Add tst-cancel20 and tst-cancelx20.
7878 (CFLAGS-tst-cancelx20.c): Set.
7879 * tst-cancel20.c: New test.
7880 * tst-cancelx20.c: New test.
7882 2003-12-17 Ulrich Drepper <drepper@redhat.com>
7884 * init.c (__pthread_initialize_minimal_internal): Don't treat
7885 architectures with separate register stack special here when
7886 computing default stack size.
7888 2003-12-17 Roland McGrath <roland@redhat.com>
7890 * Makefile (tst-cancelx7-ARGS): New variable.
7891 Reportd by Greg Schafer <gschafer@zip.com.au>.
7893 2003-12-17 Jakub Jelinek <jakub@redhat.com>
7895 * Makefile (tests): Add tst-stack3. Depend on $(objpfx)tst-stack3-mem.
7896 (generated): Add tst-stack3.mtrace and tst-stack3-mem.
7897 (tst-stack3-ENV): Set.
7898 ($(objpfx)tst-stack3-mem): New.
7899 * tst-stack3.c: New test.
7901 2003-12-10 David Mosberger <davidm@hpl.hp.com>
7903 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init_EPILOG_BEGINS):
7904 Add unwind directives. Drop unused .regstk directive.
7905 (_fini_EPILOG_BEGINS): Add unwind directives.
7907 2003-12-11 Ulrich Drepper <drepper@redhat.com>
7909 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
7910 Assume parameter is a pointer.
7911 (lll_futex_wake): Likewise.
7912 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wait):
7914 (lll_futex_wake): Likewise.
7915 Reported by Boris Hu.
7916 * sysdeps/unix/sysv/linux/unregister-atfork.c
7917 (__unregister_atfork): Pass pointer to refcntr to lll_futex_wait.
7919 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Simplify a bit.
7921 2003-12-10 Ulrich Drepper <drepper@redhat.com>
7923 * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define.
7924 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call
7925 __rtld_lock_initialize for ld.so lock.
7926 Patch in part by Adam Li <adam.li@intel.com>.
7928 2003-12-02 David Mosberger <davidm@hpl.hp.com>
7930 * Makefile (link-libc-static): Remove -lgcc_eh---it's already mentioned
7931 in $(gnulib). Also, remove stale comment.
7933 2003-11-12 David Mosberger <davidm@hpl.hp.com>
7935 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Take
7936 advantage of new syscall stub and optimize accordingly.
7938 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__NR_futex): Rename
7939 from SYS_futex, to match expectations of
7940 sysdep.h:DO_INLINE_SYSCALL.
7941 (lll_futex_clobbers): Remove.
7942 (lll_futex_timed_wait): Rewrite in terms of DO_INLINE_SYSCALL.
7943 (lll_futex_wake): Likewise.
7944 (lll_futex_requeue): Likewise.
7945 (__lll_mutex_trylock): Rewrite to a macro, so we can include this
7946 file before DO_INLINE_SYSCALL is defined (proposed by Jakub
7948 (__lll_mutex_lock): Likewise.
7949 (__lll_mutex_cond_lock): Likewise.
7950 (__lll_mutex_timed_lock): Likewise.
7951 (__lll_mutex_unlock): Likewise.
7952 (__lll_mutex_unlock_force): Likewise.
7954 * sysdeps/ia64/tls.h: Move declaration of __thread_self up so it
7955 comes before the include of <sysdep.h>.
7956 (THREAD_SELF_SYSINFO): New macro.
7957 (THREAD_SYSINFO): Likewise.
7958 (INIT_SYSINFO): New macro.
7959 (TLS_INIT_TP): Call INIT_SYSINFO.
7961 * sysdeps/ia64/tcb-offsets.sym: Add SYSINFO_OFFSET.
7963 * sysdeps/pthread/createthread.c (create_thread): Use
7964 THREAD_SELF_SYSINFO and THREAD_SYSINFO instead of open code.
7965 * allocatestack.c (allocate_stack): Use THREAD_SYSINFO and
7966 THREAD_SELF_SYSINFO instead of open code.
7967 * sysdeps/i386/tls.h (THREAD_SELF_SYSINFO): New macro.
7968 (THREAD_SYSINFO): Likewise.
7970 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: New file.
7972 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Work around gas problem.
7974 2003-12-06 Ulrich Drepper <drepper@redhat.com>
7976 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Use .init_array
7977 instead of .init. Patch by David Mosberger.
7979 2003-11-30 Thorsten Kukuk <kukuk@suse.de>
7981 * sysdeps/pthread/configure.in: Remove broken declaration in C
7982 cleanup handling check.
7984 2003-11-30 Andreas Jaeger <aj@suse.de>
7986 * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
7987 * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
7990 2003-11-27 Jakub Jelinek <jakub@redhat.com>
7992 * sysdeps/unix/sysv/linux/internaltypes.h (ATTR_FLAG_OLDATTR): Define.
7993 * pthread_attr_destroy.c: Include shlib-compat.h.
7994 (__pthread_attr_destroy): Return immediately if ATTR_FLAG_OLDATTR
7995 is set in iattr->flags.
7996 * pthread_attr_init.c (__pthread_attr_init_2_0): Set ATTR_FLAG_OLDATTR.
7998 2003-11-21 Jakub Jelinek <jakub@redhat.com>
8000 * Makefile (distribute): Add tst-cleanup4aux.c.
8002 * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c
8005 2003-11-21 Ulrich Drepper <drepper@redhat.com>
8007 * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use
8008 pthread_cond_signal.
8010 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Don't
8011 store mutex address if the current value is ~0l.
8012 * sysdeps/pthread/pthread_cond_timedwait.c
8013 (__pthread_cond_timedwait): Likewise.
8014 * sysdeps/pthread/pthread_cond_broadcast.c
8015 (__pthread_cond_broadcast): Don't use requeue for pshared
8018 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
8019 (__pthread_cond_wait): Don't store mutex address if the current
8021 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
8022 (__pthread_cond_timedwait): Likewise.
8023 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
8024 (__pthread_cond_broadcast): Don't use requeue for pshared
8027 * pthread_cond_init.c (__pthread_cond_init): Initialize __mutex
8028 element with ~0l for pshared condvars, with NULL otherwise.
8030 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
8031 (__pthread_cond_wait): Don't store mutex address if the current
8033 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
8034 (__pthread_cond_timedwait): Likewise.
8035 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
8036 (__pthread_cond_broadcast): Don't use requeue for pshared
8039 * Makefile: Add rules to build and run tst-cond12 and tst-cond13.
8040 * tst-cond12.c: New file.
8041 * tst-cond13.c: New file.
8043 2003-11-17 Ulrich Drepper <drepper@redhat.com>
8045 * sysdeps/pthread/configure.in: Make missing forced unwind support
8048 2003-11-11 Ulrich Drepper <drepper@redhat.com>
8050 * pthreadP.h: Don't declare __pthread_unwind as weak inside libpthread.
8052 2003-11-06 Ulrich Drepper <drepper@redhat.com>
8054 * Makefile: Add magic to clean up correctly.
8056 2003-11-05 Jakub Jelinek <jakub@redhat.com>
8058 * unwind.c (FRAME_LEFT): Define.
8059 (unwind_stop): Handle old style cleanups here.
8060 (__pthread_unwind): Handle old style cleanups only if
8061 !HAVE_FORCED_UNWIND.
8062 * Makefile (tests): Add tst-cleanup4 and tst-cleanupx4.
8063 (CFLAGS-tst-cleanupx4.c): Add -fexceptions.
8064 ($(objpfx)tst-cleanup4): Depend on $(objpfx)tst-cleanup4aux.o.
8065 ($(objpfx)tst-cleanupx4): Likewise.
8066 * tst-cleanup4.c: New test.
8067 * tst-cleanup4aux.c: New.
8068 * tst-cleanupx4.c: New test.
8070 2003-11-04 Ulrich Drepper <drepper@redhat.com>
8072 * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
8073 lll_mutex_*lock macros to skip atomic operations on some archs.
8075 2003-11-03 Ulrich Drepper <drepper@redhat.com>
8077 * sysdeps/pthread/tst-timer.c (main): Initialize
8078 sigev2.sigev_value as well.
8080 2003-10-15 Roland McGrath <roland@redhat.com>
8082 * sysdeps/pthread/configure.in: Barf if visibility attribute support
8084 * sysdeps/pthread/configure: Regenerated.
8086 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8088 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Completely revamp the
8089 locking macros. No distinction between normal and mutex locking
8091 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Rewrite mutex locking.
8092 Merge bits from lowlevelmutex.S we still need.
8093 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Remove.
8094 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
8095 * sysdeps/unix/sysv/linux/sh/not-cancel.h: New file.
8096 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Adjust for
8097 new mutex implementation.
8098 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
8099 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
8100 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
8101 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
8102 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
8103 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
8104 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
8105 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
8106 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
8107 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Also defined
8108 symbol for entry point to avoid cancellation.
8110 2003-10-07 Jakub Jelinek <jakub@redhat.com>
8112 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Backout 2003-10-02
8114 (SAVE_OLDTYPE_0): Fix a typo.
8116 2003-10-03 Ulrich Drepper <drepper@redhat.com>
8118 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
8119 Check __sigsetjmp return value. Reported by Daniel Jacobowitz.
8121 2003-10-02 Ulrich Drepper <drepper@redhat.com>
8123 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (DOCARGS_1): Use
8126 2003-10-02 Jakub Jelinek <jakub@redhat.com>
8128 * Makefile (tests): Add tst-cancel19.
8129 * tst-cancel19.c: New test.
8131 2003-10-02 Ulrich Drepper <drepper@redhat.com>
8133 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix saving and
8134 restoring of the old cancellation type.
8136 2003-09-30 Jakub Jelinek <jakub@redhat.com>
8138 * sysdeps/pthread/malloc-machine.h: Remove misleading comment.
8140 2003-09-27 Wolfram Gloger <wg@malloc.de>
8142 * sysdeps/pthread/malloc-machine.h: New file
8144 2003-09-24 Roland McGrath <roland@redhat.com>
8146 * allocatestack.c (__make_stacks_executable): Don't ignore return
8147 value from _dl_make_stack_executable.
8149 2003-09-24 Ulrich Drepper <drepper@redhat.com>
8151 * allocatestack.c (__make_stacks_executable): Also change
8152 permission of the currently unused stacks.
8154 * allocatestack.c (change_stack_perm): Split out from
8155 __make_stacks_executable.
8156 (allocate_stack): If the required permission changed between the time
8157 we started preparing the stack and queueing it, change the permission.
8158 (__make_stacks_executable): Call change_stack_perm.
8160 * Makefile: Build tst-execstack-mod locally.
8161 * tst-execstack-mod.c: New file.
8163 2003-09-23 Jakub Jelinek <jakub@redhat.com>
8165 * Makefile (tests): Only add tst-execstack if have-z-execstack is yes.
8167 2003-09-23 Roland McGrath <roland@redhat.com>
8169 * tst-execstack.c: New file.
8170 * Makefile (tests): Add it.
8171 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
8172 (LDFLAGS-tst-execstack): New variable.
8174 * allocatestack.c (allocate_stack): Use GL(dl_stack_flags) to decide
8175 whether to use PROT_EXEC for stack mmap.
8176 (__make_stacks_executable): New function.
8177 * pthreadP.h: Declare it.
8178 * init.c (__pthread_initialize_minimal_internal): Set
8179 GL(dl_make_stack_executable_hook) to that.
8181 2003-09-22 Ulrich Drepper <drepper@redhat.com>
8183 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Adjust for latest
8184 recommendation from AMD re avoidance of lock prefix.
8186 2003-09-22 Jakub Jelinek <jakub@redhat.com>
8188 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Use
8189 lll_futex_timed_wait instead of lll_futex_wait.
8190 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Removed.
8191 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Removed.
8192 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: Removed.
8193 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: Removed.
8194 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Removed.
8195 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Removed.
8196 * sysdeps/unix/sysv/linux/s390/sem_post.c: Removed.
8197 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Removed.
8198 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include atomic.h.
8199 Completely revamp the locking macros. No distinction between
8200 normal and mutex locking anymore.
8201 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
8202 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock_wait,
8203 __lll_lock_timedwait): Fix prototypes.
8204 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_lock_wait,
8205 __lll_lock_timedwait): Likewise.
8206 (lll_mutex_lock, lll_mutex_cond_lock): Use _val instead of _bool
8207 macros, add __builtin_expect.
8208 (lll_mutex_timedlock): Likewise. Fix return value.
8209 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Removed.
8210 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: Removed.
8211 * sysdeps/unix/sysv/linux/i386/i586/lowlevelmutex.S: Removed.
8212 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: Removed.
8213 * sysdeps/unix/sysv/linux/i386/i686/lowlevelmutex.S: Removed.
8214 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: Removed.
8215 * sysdeps/unix/sysv/linux/lowlevelmutex.c: Removed.
8216 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: Removed.
8218 2003-09-22 Ulrich Drepper <drepper@redhat.com>
8220 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
8221 (__lll_mutex_lock_wait): Minor optimization to avoid one atomic
8222 operation if possible.
8224 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks
8225 like jumping over the lock prefix.
8227 2003-09-21 Ulrich Drepper <drepper@redhat.com>
8229 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the
8230 locking macros. No distinction between normal and mutex locking
8232 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
8233 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
8234 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
8235 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Rewrite mutex
8236 locking. Merge bits from lowlevelmutex.S we still need.
8237 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
8238 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
8239 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Removed.
8240 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Removed.
8241 * Makefile (routines): Remove libc-lowlevelmutex.
8242 (libpthread-rountines): Remove lowlevelmutex.
8243 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Adjust
8244 for new mutex implementation.
8245 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
8246 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8247 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8248 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
8249 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
8251 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
8253 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
8254 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
8255 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise
8256 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
8257 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8258 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8259 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
8260 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
8262 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
8264 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
8265 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
8266 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
8268 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
8269 * sysdeps/pthread/pthread_cond_signal.c: Don't use requeue.
8271 2003-09-20 Ulrich Drepper <drepper@redhat.com>
8273 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't match memory
8274 in parameters of asm with output parameters.
8276 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change
8277 type of DECR parameter to int.
8278 * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
8280 2003-09-18 Jakub Jelinek <jakub@redhat.com>
8282 * tst-attr3.c (tf, do_test): Print stack start/end/size and
8283 guardsize for each thread.
8285 2003-09-17 Jakub Jelinek <jakub@redhat.com>
8287 * sysdeps/pthread/pthread.h (pthread_getattr_np): Clarify usage.
8288 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
8289 (pthread_attr_setaffinity_np): Handle cpuset == NULL.
8291 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
8292 (pthread_attr_getaffinity_np): Don't segfault if iattr->cpuset is
8294 * pthread_getattr_np.c: Set cpuset using pthread_getaffinity_np.
8295 * pthreadP.h (pthread_getaffinity_np): Add hidden_proto.
8296 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
8297 (pthread_getaffinity_np): Add hidden_def.
8299 * Makefile (tests): Add tst-attr3.
8300 * tst-attr3.c: New test.
8302 * sysdeps/i386/Makefile (CFLAGS-tst-align.c): Remove.
8304 2003-09-15 Jakub Jelinek <jakub@redhat.com>
8306 * sysdeps/i386/Makefile (CFLAGS-pthread_create.c,
8307 CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
8309 2003-09-17 Jakub Jelinek <jakub@redhat.com>
8311 * Makefile (CFLAGS-tst-align.c): Add $(stack-align-test-flags).
8312 * tst-align.c: Include tst-stack-align.h.
8313 (tf, do_test): Use TEST_STACK_ALIGN macro.
8315 2003-09-17 Ulrich Drepper <drepper@redhat.com>
8317 * pthread_attr_init.c (__pthread_attr_init_2_0): Remove unused
8320 2003-09-16 Ulrich Drepper <drepper@redhat.com>
8322 * pthread_getattr_np.c (pthread_getattr_np): Correctly fill in the
8323 stack-related values for the initial thread.
8325 2003-09-15 Jakub Jelinek <jakub@redhat.com>
8327 * Makefile (CFLAGS-pthread_once.c): Add $(uses-callbacks).
8329 2003-09-11 Ulrich Drepper <drepper@redhat.com>
8331 * pthread_mutex_lock.c: Minor code rearrangements.
8333 2003-09-05 Roland McGrath <roland@redhat.com>
8335 * pthread_create.c (__pthread_pthread_sizeof_descr): Removed.
8336 Instead, include ../nptl_db/db_info.c to do its magic.
8337 * pthread_key_create.c (__pthread_pthread_keys_max): Removed.
8338 (__pthread_pthread_key_2ndlevel_size): Likewise.
8339 * sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro.
8340 * sysdeps/i386/tls.h (DB_THREAD_SELF): New macro.
8341 * sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro.
8342 * sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro.
8343 * sysdeps/s390/tls.h (DB_THREAD_SELF): New macro.
8344 * sysdeps/sh/tls.h (DB_THREAD_SELF): New macro.
8345 * sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro.
8346 * sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro.
8347 * sysdeps/alpha/td_ta_map_lwp2thr.c: File removed.
8348 * sysdeps/generic/td_ta_map_lwp2thr.c: File removed.
8349 * sysdeps/i386/td_ta_map_lwp2thr.c: File removed.
8350 * sysdeps/ia64/td_ta_map_lwp2thr.c: File removed.
8351 * sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed.
8352 * sysdeps/s390/td_ta_map_lwp2thr.c: File removed.
8353 * sysdeps/sh/td_ta_map_lwp2thr.c: File removed.
8354 * sysdeps/sparc/td_ta_map_lwp2thr.c: File removed.
8355 * sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed.
8357 2003-09-08 Ulrich Drepper <drepper@redhat.com>
8359 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Change type
8360 of pthread_t to be compatible with LT.
8361 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
8362 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
8363 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8364 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8365 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
8366 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8367 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
8369 2003-09-04 Ulrich Drepper <drepper@redhat.com>
8371 * sysdeps/unix/sysv/linux/i386/not-cancel.h (fcntl_not_cancel): Define.
8373 2003-09-04 Jakub Jelinek <jakub@redhat.com>
8375 * unwind-forcedunwind.c: Move to...
8376 * sysdeps/pthread/unwind-forcedunwind.c: ...here.
8377 (pthread_cancel_init): Use ARCH_CANCEL_INIT if defined.
8378 * sysdeps/pthread/jmpbuf-unwind.h: New file.
8379 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: New file.
8380 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: New file.
8381 * unwind.c: Include jmpbuf-unwind.h.
8382 (unwind_stop): Use _JMPBUF_CFA_UNWINDS macro.
8384 2003-09-02 Jakub Jelinek <jakub@redhat.com>
8386 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
8387 * sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export
8388 pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3.
8389 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
8390 * sysdeps/unix/sysv/linux/alpha/Versions: New file.
8391 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
8392 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
8393 * pthread_attr_setstack.c (__old_pthread_attr_setstack): New function.
8394 (pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
8395 as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
8396 * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New
8398 (pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
8399 as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
8400 * Makefile (tests): Add tst-stack2.
8401 * tst-stack2.c: New test.
8402 * tst-stack1.c: Include limits.h and sys/param.h.
8403 (do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN).
8405 * pthread_condattr_setpshared.c: Include errno.h.
8406 (pthread_condattr_setpshared): Return EINVAL if pshared
8407 is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
8409 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also
8410 defined symbol for entry point to avoid cancellation.
8411 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
8413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
8415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
8417 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h (PSEUDO):
8419 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
8421 * sysdeps/unix/sysv/linux/i386/not-cancel.h (__open_nocancel,
8422 __close_nocancel, __read_nocancel, __write_nocancel,
8423 __waitpid_nocancel): Add attribute_hidden. If not in libc.so,
8424 libpthread.so or librt.so, define to corresponding function
8425 without _nocancel suffix.
8426 * sysdeps/unix/sysv/linux/s390/not-cancel.h: New file.
8427 * sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file.
8428 * sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file.
8430 * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo.
8432 2003-09-02 Ulrich Drepper <drepper@redhat.com>
8434 * sysdeps/unix/sysv/linux/i386/not-cancel.h: New file.
8435 * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: New file.
8437 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Make sure the code
8438 in subsections has a symbol associated with it.
8440 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Also
8441 defined symbol for entry point to avoid cancellation.
8442 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Likewise.
8444 2003-09-01 Jakub Jelinek <jakub@redhat.com>
8446 * Makefile (tests): Add tst-tls5.
8447 (module-names): Add tst-tls5mod{,a,b,c,d,e,f}.
8448 ($(objpfx)tst-tls5mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes.
8449 ($(objpfx)tst-tls5): New.
8450 ($(objpfx)tst-tls6.out): Likewise.
8451 (tests): Depend on $(objpfx)tst-tls6.out.
8452 * tst-tls3.c: Include stdint.h and pthreaddef.h.
8453 (do_test): Check pthread_self () return value alignment.
8454 * tst-tls3mod.c: Include stdint.h and pthreaddef.h.
8455 (tf): Check pthread_self () return value alignment.
8456 * tst-tls5.c: New test.
8458 * tst-tls5mod.c: New.
8459 * tst-tls5moda.c: New.
8460 * tst-tls5modb.c: New.
8461 * tst-tls5modc.c: New.
8462 * tst-tls5modd.c: New.
8463 * tst-tls5mode.c: New.
8464 * tst-tls5modf.c: New.
8465 * tst-tls6.sh: New test.
8467 * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Add
8468 ptr___pthread_cond_timedwait and ptr___pthread_cond_timedwait_2_0.
8469 * init.c (pthread_functions): Initialize them.
8470 * forward.c (pthread_cond_timedwait@GLIBC_2.0,
8471 pthread_cond_timedwait@@GLIBC_2.3.2): New forwards.
8472 * Versions (libc): Export pthread_cond_timedwait@GLIBC_2.0,
8473 pthread_cond_timedwait@@GLIBC_2.3.2.
8475 2003-09-01 Jakub Jelinek <jakub@redhat.com>
8477 * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file.
8478 * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file.
8479 * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file.
8480 * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file.
8481 * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file.
8482 * sysdeps/unix/sysv/linux/alpha/Versions: New file.
8484 * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file.
8486 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define
8487 _POSIX_THREAD_PRIORITY_SCHEDULING.
8488 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
8490 2003-08-31 Ulrich Drepper <drepper@redhat.com>
8492 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock): Avoid
8493 nested function, use static inline function from libio.h.
8494 Code by Richard Henderson.
8496 * sysdeps/pthread/bits/libc-lock.h: Mark pthread_setcancelstate as
8499 2003-08-30 Jakub Jelinek <jakub@redhat.com>
8501 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
8502 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: New file.
8503 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: New file.
8504 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: New file.
8505 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: New file.
8506 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: New file.
8507 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: New file.
8508 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: New file.
8509 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: New file.
8510 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: New file.
8511 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: New file.
8512 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: New file.
8513 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
8514 * sysdeps/unix/sysv/linux/sparc/fork.c: New file.
8515 * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: New file.
8516 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: New file.
8517 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: New file.
8518 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: New file.
8519 * sysdeps/sparc/sparc32/pthread_spin_lock.c: New file.
8520 * sysdeps/sparc/sparc32/pthread_spin_trylock.c: New file.
8521 * sysdeps/sparc/sparc32/pthreaddef.h: New file.
8522 * sysdeps/sparc/sparc64/pthread_spin_lock.c: New file.
8523 * sysdeps/sparc/sparc64/pthread_spin_trylock.c: New file.
8524 * sysdeps/sparc/sparc64/pthread_spin_unlock.c: New file.
8525 * sysdeps/sparc/sparc64/pthreaddef.h: New file.
8526 * sysdeps/sparc/tls.h: New file.
8527 * sysdeps/sparc/tcb-offsets.sym: New file.
8528 * sysdeps/sparc/Makefile: New file.
8529 * sysdeps/sparc/td_ta_map_lwp2thr.c: New file.
8530 * init.c [__sparc__] (__NR_set_tid_address): Define.
8532 2003-08-29 Jakub Jelinek <jakub@redhat.com>
8534 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock,
8535 _IO_release_lock): Define.
8537 2003-08-29 Jakub Jelinek <jakuB@redhat.com>
8539 * tst-cancel4.c (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add
8540 sigemptyset before sigaddset. Reported by jreiser@BitWagon.com.
8542 2003-08-27 Ulrich Drepper <drepper@redhat.com>
8544 * sysdeps/pthread/pthread.h (pthread_exit): Remove __THROW.
8545 (__pthread_cleanup_class): Add missing return types of member
8548 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
8550 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
8551 (lll_mutex_unlock_force): Add memory barrier between store and futex
8554 2003-08-25 Ulrich Drepper <drepper@redhat.com>
8556 * tst-cancel4.c (do_test): Also unlink tempfname and remove
8557 tempmsg in first loop.
8559 2003-08-18 Ulrich Drepper <drepper@redhat.com>
8561 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8562 _POSIX_THREAD_PRIORITY_SCHEDULING.
8563 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
8565 2003-08-07 Jakub Jelinek <jakub@redhat.com>
8567 * sysdeps/pthread/bits/libc-lock.h [_LIBC && SHARED]
8568 (__rtld_lock_default_lock_recursive,
8569 __rtld_lock_default_unlock_recursive): Define.
8570 [_LIBC && SHARED] (__rtld_lock_lock_recursive,
8571 __rtld_lock_unlock_recursive): Define using
8572 GL(_dl_rtld_*lock_recursive).
8573 * init.c (__pthread_initialize_minimal_internal): Initialize
8574 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
8575 Lock GL(_dl_load_lock) the same number of times as
8576 GL(_dl_load_lock) using non-mt implementation was nested.
8578 * pthreadP.h (__pthread_cleanup_upto): Add hidden_proto.
8579 * pt-longjmp.c (__pthread_cleanup_upto): Add hidden_def.
8581 2003-08-06 Jakub Jelinek <jakub@redhat.com>
8583 * tst-cancel17.c (do_test): Make len2 maximum of page size and
8586 2003-08-07 Jakub Jelinek <jakub@redhat.com>
8588 * pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.
8590 2003-08-03 Jakub Jelinek <jakub@redhat.com>
8592 * sysdeps/pthread/createthread.c (do_clone): Move error handling
8593 to first syscall error check. Move syscall error check for tkill
8594 into __ASSUME_CLONE_STOPPED #ifdef.
8596 2003-08-02 Ulrich Drepper <drepper@redhat.com>
8598 * sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED
8599 is not defined, do explicit synchronization.
8600 (create_thread): Do not lock pd->lock here. If __ASSUME_CLONE_STOPPED
8601 is not defined also unlock pd->lock for non-debugging case in case
8603 * pthread_create.c (start_thread): Always get and release pd->lock
8604 if __ASSUME_CLONE_STOPPED is not defined.
8605 (start_thread_debug): Removed. Adjust users.
8606 * allocatestack.c (allocate_stack): Always initialize lock if
8607 __ASSUME_CLONE_STOPPED is not defined.
8608 * Makefile (tests): Add tst-sched1.
8609 * tst-sched1.c: New file.
8611 * sysdeps/pthread/createthread.c (do_clone): Only use
8612 sched_setschduler and pass correct parameters.
8614 2003-07-31 Jakub Jelinek <jakub@redhat.com>
8616 * sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
8617 pthread_attr_setstacksize): Change PTHREAD_STACK_SIZE to
8618 PTHREAD_STACK_MIN in comments.
8620 2003-07-31 Jakub Jelinek <jakub@redhat.com>
8622 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
8623 Shut up warnings if INTERNAL_SYSCALL_ERROR_P does not use its first
8625 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8626 * pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise.
8627 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Include pthreaddef.h.
8628 (__pthread_cleanup_upto): Fix prototype.
8629 (_longjmp_unwind): Adjust caller.
8630 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_timedlock):
8631 Change second argument to const struct pointer.
8632 * tst-sem8.c (main): Remove unused s2 and s3 variables.
8633 * tst-sem9.c (main): Likewise.
8634 * unwind.c: Include string.h for strlen prototype.
8636 2003-07-31 Ulrich Drepper <drepper@redhat.com>
8638 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
8639 (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined.
8640 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
8642 Patch by Nicholas Miell <nmiell@attbi.com>.
8644 2003-07-30 Jakub Jelinek <jakub@redhat.com>
8646 * init.c (__pthread_initialize_minimal_internal): Initialize
8647 GL(dl_init_static_tls).
8648 * pthreadP.h (__pthread_init_static_tls): New prototype.
8649 * allocatestack.c (init_one_static_tls, __pthread_init_static_tls):
8651 * Makefile (tests): Add tst-tls4.
8652 (modules-names): Add tst-tls4moda and tst-tls4modb.
8653 ($(objpfx)tst-tls4): Link against libdl and libpthread.
8654 ($(objpfx)tst-tls4.out): Depend on tst-tls4moda.so and
8656 * tst-tls4.c: New file.
8657 * tst-tls4moda.c: New file.
8658 * tst-tls4modb.c: New file.
8660 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
8662 * sysdeps/pthread/timer_create.c (timer_create): Call timer_delref
8663 before __timer_dealloc.
8664 * sysdeps/pthread/timer_routines.c (__timer_thread_find_matching):
8665 Don't call list_unlink.
8667 2003-07-29 Roland McGrath <roland@redhat.com>
8669 * Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules).
8671 2003-07-25 Jakub Jelinek <jakub@redhat.com>
8673 * tst-cancel17.c (do_test): Check if aio_cancel failed.
8674 Don't reuse struct aiocb A if it failed.
8675 Write fpathconf (fds[1], _PC_PIPE_BUF) + 2 bytes using aio_write,
8676 not just one byte, as that does not block.
8678 2003-07-22 Jakub Jelinek <jakub@redhat.com>
8680 * sysdeps/pthread/unwind-resume.c: New file.
8681 * sysdeps/pthread/Makefile (routines, shared-only-routines): Add
8682 unwind-resume in csu subdir.
8683 (CFLAGS-unwind-resume.c, CFLAGS-rt-unwind-resume.c): Compile with
8685 (librt-sysdep_routines, librt-shared-only-routines): Add
8687 * sysdeps/pthread/rt-unwind-resume.c: New file.
8688 * unwind-forcedunwind.c: New file.
8689 * Makefile (libpthread-routines): Add unwind-forcedunwind.
8690 (libpthread-shared-only-routines): Likewise.
8691 (CFLAGS-unwind-forcedunwind.c): Compile with exceptions.
8692 * pthreadP.h (pthread_cancel_init): New prototype.
8693 * pthread_cancel.c (pthread_cancel): Call pthread_cancel_init.
8695 * sysdeps/pthread/createthread.c (do_thread, create_thread): Make
8696 attr argument const struct pthread_attr *.
8698 * res.c (__res_state): Return __resp.
8699 * descr.h: Include resolv.h.
8700 (struct pthread): Add res field.
8701 * pthread_create.c: Include resolv.h.
8702 (start_thread): Initialize __resp.
8703 * Makefile (tests): Add tst-_res1.
8704 (module-names): Add tst-_res1mod1, tst-_res1mod2.
8705 ($(objpfx)tst-_res1mod2.so): Depend on $(objpfx)tst-_res1mod1.so.
8706 ($(objpfx)tst-_res1): Depend on $(objpfx)tst-_res1mod2.so and
8708 * tst-_res1.c: New file.
8709 * tst-_res1mod1.c: New file.
8710 * tst-_res1mod2.c: New file.
8712 2003-07-21 Ulrich Drepper <drepper@redhat.com>
8714 * sysdeps/pthread/createthread.c: Don't define CLONE_STOPPED.
8716 * Makefile: Define various *-no-z-defs variables for test DSOs
8717 which has undefined symbols.
8719 2003-07-21 Steven Munroe <sjmunroe@us.ibm.com>
8721 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
8722 Retry if the stwcx fails to store once_control.
8724 2003-07-20 Ulrich Drepper <drepper@redhat.com>
8726 * Makefile (libpthread-routines): Add pthread_attr_getaffinity and
8727 pthread_attr_setaffinity.
8728 * Versions [libpthread] (GLIBC_2.3.3): Likewise.
8729 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
8730 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
8731 * pthread_attr_destroy.c: Free cpuset element if allocated.
8732 * pthread_create.c: Pass iattr as additional parameter to
8734 * sysdeps/pthread/createthread.c: If attribute is provided and
8735 a new thread is created with affinity set or scheduling parameters,
8736 start thread with CLONE_STOPPED.
8737 * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
8738 pthread_attr_setaffinity.
8739 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
8742 2003-07-15 Ulrich Drepper <drepper@redhat.com>
8744 * tst-tcancel-wrappers.sh: lseek and llseek are not cancelation points.
8746 2003-07-14 Ulrich Drepper <drepper@redhat.com>
8748 * sysdeps/pthread/configure.in: Require CFI directives also for
8751 2003-07-15 Jakub Jelinek <jakub@redhat.com>
8753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
8756 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8758 * sysdeps/sh/tcb-offsets.sym: Add RESULT, TID, CANCELHANDLING and
8760 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use more
8761 registers as variables. Call __pthread_mutex_unlock_usercnt.
8762 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
8763 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Store TID
8764 not self pointer in __writer. Compare with TID to determine
8766 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
8767 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
8769 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
8771 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add cancellation support.
8772 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
8773 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Define all the nice
8774 macros also when compiling librt.
8776 2003-07-11 Jakub Jelinek <jakub@redhat.com>
8778 * Makefile (CFLAGS-pthread_once.c): Add -fexceptions
8779 -fasynchronous-unwind-tables.
8780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
8781 (PSEUDO): Add cfi directives.
8782 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO):
8784 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
8787 2003-07-08 Jakub Jelinek <jakub@redhat.com>
8789 * pthreadP.h (__pthread_unwind_next, __pthread_register_cancel,
8790 __pthread_unregister_cancel): Add prototypes and hidden_proto.
8791 * unwind.c (__pthread_unwind_next): Add hidden_def.
8792 * cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel):
8794 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
8795 Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
8796 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
8798 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
8799 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
8801 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use
8802 HIDDEN_JUMPTARGET to call __pthread_register_cancel,
8803 __pthread_unregister_cancel and __pthread_unwind_next.
8805 2003-07-04 Jakub Jelinek <jakub@redhat.com>
8807 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Use
8808 different symbol for the cancellation syscall wrapper and
8809 non-cancellation syscall wrapper.
8810 (PSEUDO_END): Define.
8812 2003-07-05 Richard Henderson <rth@redhat.com>
8814 * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end.
8815 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_wait,
8816 lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
8817 return actual return value from the syscall, not 0.
8819 2003-07-07 Ulrich Drepper <drepper@redhat.com>
8821 * descr.h (struct pthread): Add pid field.
8822 * allocatestack.c (allocate_stack): Initialize pid field in descriptor.
8823 (__reclaim_stacks): Likewise.
8824 * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined
8825 also check for PID of the signal source.
8826 (__pthread_initialize_minimal_internal): Also initialize pid field
8827 of initial thread's descriptor.
8828 * pthread_cancel.c: Use tgkill instead of tkill if possible.
8829 * sysdeps/unix/sysv/linux/fork.c: Likewise.
8830 * sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
8831 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
8832 * sysdeps/unix/sysv/linux/raise.c: Likewise.
8834 2003-07-05 Ulrich Drepper <drepper@redhat.com>
8836 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed.
8837 Fix use of parameter.
8838 (__libc_cleanup_pop): Likewise.
8840 2003-07-04 Ulrich Drepper <drepper@redhat.com>
8842 * init.c (sigcancel_handler): Change parameters to match handler
8843 for SA_SIGACTION. Check signal number and code to recognize
8844 invalid invocations.
8846 2003-07-03 Roland McGrath <roland@redhat.com>
8848 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr):
8849 Apply sizeof (struct pthread) bias to r13 value.
8851 2003-07-03 Ulrich Drepper <drepper@redhat.com>
8853 * sysdeps/pthread/configure.in: Require CFI directives.
8855 * sysdeps/pthread/librt-cancellation.c (__pthread_unwind): Remove
8857 * pthreadP.h (__pthread_unwind): Add hidden_proto if used in
8858 libpthread compilation.
8859 * unwind.c (__pthread_unwind): Add hidden_def.
8860 * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_unwind.
8862 2003-07-01 Ulrich Drepper <drepper@redhat.com>
8864 * libc-cancellation.c (__libc_cleanup_routine): Define.
8865 * sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define.
8866 (__pthread_cleanup_pop): Define.
8868 2003-07-01 Richard Henderson <rth@redhat.com>
8870 * sysdeps/alpha/elf/pt-initfini.c: New file.
8871 * sysdeps/alpha/pthread_spin_lock.S: New file.
8872 * sysdeps/alpha/pthread_spin_trylock.S: New file.
8873 * sysdeps/alpha/pthreaddef.h: New file.
8874 * sysdeps/alpha/td_ta_map_lwp2thr.c: New file.
8875 * sysdeps/alpha/tls.h: New file.
8876 * sysdeps/unix/sysv/linux/alpha/Makefile: New file.
8877 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: New file.
8878 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: New file.
8879 * sysdeps/unix/sysv/linux/alpha/createthread.c: New file.
8880 * sysdeps/unix/sysv/linux/alpha/fork.c: New file.
8881 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: New file.
8882 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
8883 * sysdeps/unix/sysv/linux/alpha/pthread_once.c: New file.
8884 * sysdeps/unix/sysv/linux/alpha/sem_post.c: New file.
8885 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: New file.
8887 2003-07-01 Ulrich Drepper <drepper@redhat.com>
8889 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Add correct
8890 cleanup support and unwind info.
8892 2003-06-30 Ulrich Drepper <drepper@redhat.com>
8894 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
8895 Use correct cleanup handler registration. Add unwind info.
8896 * sysdeps/unix/sysv/linux/unwindbuf.sym: New file.
8897 * sysdeps/unix/sysv/linux/Makefile: Add rule to build unwindbuf.h.
8898 * tst-once3.c: Add cleanup handler and check it is called.
8899 * tst-once4.c: Likewise.
8900 * tst-oncex3.c: New file.
8901 * tst-oncex4.c: New file.
8902 * Makefile: Add rules to build and run tst-oncex3 and tst-oncex4.
8904 2003-06-29 Ulrich Drepper <drepper@redhat.com>
8906 * sysdeps/pthread/configure.in: Check for C cleanup handling in gcc.
8908 2003-06-27 Ulrich Drepper <drepper@redhat.com>
8910 * tst-cancel4.c (tf_msgrcv): Use IPC_PRIVATE in msgget call.
8911 (tf_msgsnd): Likewise.
8913 * tst-cancel4.c (tf_msgrcv): Strengthen test against valid
8914 premature returns a bit more.
8916 2003-06-26 Ulrich Drepper <drepper@redhat.com>
8918 * sysdeps/pthread/librt-cancellation.c: Move __pthread_unwind
8919 definition to the front.
8921 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rename
8922 the cleanup functions to make the names unique. Fix dwarf opcode
8924 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Rename cleanup
8925 functions to make the names unique. Fix CFA offset for two blocks.
8927 2003-06-25 Ulrich Drepper <drepper@redhat.com>
8929 * sysdeps/pthread/pthread.h (class __pthread_cleanup_class): Add
8930 missing closing braces.
8931 Patch by Christophe Saout <christophe@saout.de>.
8933 2003-06-24 Roland McGrath <roland@redhat.com>
8935 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Typo fix.
8937 2003-06-24 Ulrich Drepper <drepper@redhat.com>
8939 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: New file.
8940 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: New file.
8942 * pthreadP.h: Declare __find_thread_by_id.
8943 * allocatestack.c [HP_TIMING_AVAIL]: Define __find_thread_by_id.
8944 * pthread_clock_gettime.c: Allow using other thread's clock.
8945 * pthread_clock_settime.c: Likewise.
8946 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
8947 * Makefile: Add rules to build and run tst-clock2.
8948 * tst-clock2.c: New file.
8950 2003-06-23 Ulrich Drepper <drepper@redhat.com>
8952 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rewrite
8953 to use exception-based cleanup handler.
8954 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8956 * tst-cond8.c (ch): Announce that we are done.
8958 * pthreadP.h (__pthread_mutex_cond_lock): Mark with internal_function.
8960 * tst-cancel17.c (tf): Retry aio_suspend in case of EINTR.
8961 Also test aio_suspend with timeout value.
8963 2003-06-22 Ulrich Drepper <drepper@redhat.com>
8965 * pthreadP.h: Mark __pthread_mutex_unlock_usercnt also hidden.
8966 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Add
8969 * pthreadP.h (__pthread_mutex_init_internal): Mark hidden.
8970 (__pthread_mutex_lock_internal): Likewise.
8971 (__pthread_mutex_unlock_internal): Likewise.
8972 (__pthread_mutex_unlock_usercnt): Declare.
8973 * pthread_mutex_destroy.c: Always fail if used in any way.
8974 * pthread_mutex_init.c: Update comment.
8975 * pthread_mutex_lock.c: If NO_INCR is not defined adjust __nusers.
8976 * pthread_mutex_timedlock.c: Adjust __nusers.
8977 * pthread_mutex_trylock.c: Adjust __nusers.
8978 * pthread_mutex_unlock.c: Old code is in __pthread_mutex_unlock_usercnt
8979 and public interfaces are wrapper with pass additional parameter.
8980 __pthread_mutex_unlock_usercnt does not adjust __nusers if second
8982 * tst-mutex8.c: New file.
8983 * Makefile (tests): Add tst-mutex8.
8984 * sysdeps/pthread/pthread_cond_timedwait.c: Call
8985 __pthread_mutex_unlock_usercnt.
8986 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
8987 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8988 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8989 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8990 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8991 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Define NO_INCR.
8992 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
8994 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8995 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8996 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8997 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
8998 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
9000 * pthread_mutex_lock.c: Don't store THREAD_ID in __owner, use TID.
9001 * pthread_mutex_timedlock.c: Likewise.
9002 * pthread_mutex_trylock.c: Adjust __nusers.
9003 * pthread_mutex_unlock.c: Compare with TID not THREAD_ID.
9004 * tst-mutex9.c: New file.
9005 * Makefile (tests): Add tst-mutex9.
9006 * sysdeps/i386/tls.h: Remove THREAD_ID definition.
9007 * sysdeps/ia64/tls.h: Likewise.
9008 * sysdeps/powerpc/tls.h: Likewise.
9009 * sysdeps/s390/tls.h: Likewise.
9010 * sysdeps/sh/tls.h: Likewise.
9011 * sysdeps/x86_64/tls.h: Likewise.
9012 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
9013 Change type of __owner.
9014 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9015 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
9016 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
9017 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
9018 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
9020 2003-06-19 Jakub Jelinek <jakub@redhat.com>
9022 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Move to...
9023 * sysdeps/unix/sysv/linux/sem_post.c: ...here.
9025 * sysdeps/unix/sysv/linux/sem_post.c: Move to...
9026 * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here. Pass nr + 1
9027 instead of nr to lll_futex_wake. Only set errno and return -1
9030 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_wait,
9031 lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
9032 return actual return value from the syscall, not 0.
9034 2003-06-18 Ulrich Drepper <drepper@redhat.com>
9036 * tst-cancel4.c (tf_msgsnd): Don't always use 100 as the type,
9037 find a random value.
9038 (tf_msgrcv): Likewise. Also don't report msgrcv returns if
9041 * sysdeps/unix/sysv/linux/timer_settime.c: Add prototype for
9042 compat_timer_settime.
9043 * sysdeps/unix/sysv/linux/timer_gettime.c: Add prototype for
9044 compat_timer_gettime.
9045 * sysdeps/unix/sysv/linux/timer_getoverr.c: Add prototype for
9046 compat_timer_getoverrun.
9047 * sysdeps/unix/sysv/linux/timer_delete.c: Add prototype for
9048 compat_timer_delete.
9050 * pthread_mutex_destroy.c (__pthread_mutex_destroy): For
9051 error-checking mutex detect busy mutexes.
9053 2003-06-17 Ulrich Drepper <drepper@redhat.com>
9055 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_mutex_lock):
9056 Add ax to clobber list.
9057 (lll_mutex_cond_lock): Likewise.
9058 (lll_mutex_unlock): Likewise.
9059 (lll_lock): Likewise.
9060 (lll_unlock): Likewise.
9062 * Makefile: Add rules to build and run tst-cancel18 and tst-cancelx18.
9063 * tst-cancel18.c: New file.
9064 * tst-cancelx18.c: New file.
9066 * tst-cancel4.c: Test connect, creat, msgrcv, msgsnd, sendmsg, sendto,
9069 * Makefile: Add rules to build and run tst-cancel17 and tst-cancel17x.
9070 * tst-cancel17.c: New file.
9071 * tst-cancelx17.c: New file.
9073 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
9074 * sysdeps/unix/sysv/linux/sigwait.c: New file.
9075 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
9077 * tst-cancel4.c: Test open, close, pread, pwrite, fsync, and msync.
9079 2003-06-16 Jakub Jelinek <jakub@redhat.com>
9081 * sysdeps/pthread/createthread.c (create_thread): Set
9082 header.multiple_threads unconditionally.
9083 * allocatestack.c (allocate_stack): Likewise.
9084 * descr.h (struct pthread): Add header.multiple_threads
9086 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (CENABLE, CDISABLE):
9087 Define for librt. #error if neither libpthread, libc nor librt.
9088 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (CENABLE, CDISABLE):
9090 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (CENABLE,
9091 CDISABLE): Likewise.
9092 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (CENABLE,
9093 CDISABLE): Likewise.
9094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (CENABLE,
9095 CDISABLE): Likewise.
9096 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (CENABLE,
9097 CDISABLE): Likewise. Access header.multiple_threads outside of
9098 libc and libpthread.
9099 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (CENABLE, CDISABLE):
9101 * sysdeps/x86_64/tls.h (tcbhead_t): Add multiple_threads.
9102 * sysdeps/x86_64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define.
9104 2003-06-17 Ulrich Drepper <drepper@redhat.com>
9106 * tst-cancel4.c: Add tests for the socket and signal functions, pause.
9107 Also test early cancellation before the thread reaches the cancellation
9110 * Makefile: Compile forward.c with exceptions.
9112 * sysdeps/unix/sysv/linux/sleep.c: New file.
9114 2003-06-16 Ulrich Drepper <drepper@redhat.com>
9116 * Makefile: Add CFLAGS definition to compile function wrappers
9117 duplicated from libc with exceptions.
9118 * tst-cancel4.c: Also check cancellation handlers.
9120 * Makefile: Add rules to build and run tst-cancel16 and
9121 tst-cancelx16. Add missing CFLAGS definitions.
9122 * tst-cancel16.c: New file.
9123 * tst-cancelx16.c: New file.
9125 2003-06-15 Ulrich Drepper <drepper@redhat.com>
9127 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
9128 (DL_SYSINFO_IMPLEMENTATION): Use CFI opcodes.
9129 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
9130 (DL_SYSINFO_IMPLEMENTATION): Likewise.
9132 * pthreadP.h (LIBC_CANCEL_ASYNC): Also define for librt.
9133 (LIBC_CANCEL_RESET): Likewise.
9134 Declare __librt_enable_asynccancel and __librt_disable_asynccancel.
9135 * sysdeps/pthread/Makefile (librt-sysdep_routines): Add
9137 (CFLAGS-libcrt-cancellation.c): Define.
9138 * sysdeps/pthread/librt-cancellation.c: New file.
9139 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define all the nice
9140 macros also when compiling librt.
9141 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
9142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
9143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
9144 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
9145 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
9146 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
9147 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
9149 * sysdeps/unix/sysv/linux/timer_create.c: Add prototype for
9150 compat_timer_create.
9152 2003-06-14 Ulrich Drepper <drepper@redhat.com>
9154 * sysdeps/pthread/posix-timer.h (timespec_compare): Always inline.
9156 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
9158 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
9159 Add libc_hidden_def.
9161 2003-06-13 Roland McGrath <roland@redhat.com>
9163 * sysdeps/x86_64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Pass FS
9164 constant from <sys/reg.h> to ps_get_thread_area, not register contents.
9166 2003-06-11 Ulrich Drepper <drepper@redhat.com>
9168 * allocatestack.c (queue_stack): Always inline.
9169 * ptreadhP.h (__do_cancel): Likewise.
9171 2003-06-10 Jakub Jelinek <jakub@redhat.com>
9173 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): Fix
9176 2003-06-10 Ulrich Drepper <drepper@redhat.com>
9178 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
9179 (__pthread_cond_signal): Remove incorrect second addition for
9182 2003-06-09 Ulrich Drepper <drepper@redhat.com>
9184 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
9185 (__pthread_cond_signal): Use correct futex pointer in
9186 __lll_mutex_lock_wait call.
9188 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
9189 (__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.
9191 2003-06-08 Ulrich Drepper <drepper@redhat.com>
9193 * sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make
9195 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
9198 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Remove
9199 hand-written CFI generation code. Since ENTRY/END also initiated
9200 CFI frames this caused two CFI sets to be generated.
9202 2003-06-07 Ulrich Drepper <drepper@redhat.com>
9204 * cleanup_routine.c: New file.
9205 * Versions (libpthread) [GLIBC_2.3.3]: Add __pthread_cleanup_routine.
9206 * sysdeps/pthread/pthread.h: Add support for fully exception-based
9208 * Makefile (libpthread-routines): Add cleanup_routine.
9209 Add more CFLAGS variables to compile with exceptions. Add comments
9210 why which file needs unwind tables.
9211 (tests) [have-forced-unwind==yes]: Add tst-cancelx* and tst-cleanupx*
9213 * tst-cancelx1.c: New file.
9214 * tst-cancelx2.c: New file.
9215 * tst-cancelx3.c: New file.
9216 * tst-cancelx4.c: New file.
9217 * tst-cancelx5.c: New file.
9218 * tst-cancelx6.c: New file.
9219 * tst-cancelx7.c: New file.
9220 * tst-cancelx8.c: New file.
9221 * tst-cancelx9.c: New file.
9222 * tst-cancelx10.c: New file.
9223 * tst-cancelx11.c: New file.
9224 * tst-cancelx12.c: New file.
9225 * tst-cancelx13.c: New file.
9226 * tst-cancelx14.c: New file.
9227 * tst-cancelx15.c: New file.
9228 * tst-cleanupx0.c: New file.
9229 * tst-cleanupx0.expect: New file.
9230 * tst-cleanupx1.c: New file.
9231 * tst-cleanupx2.c: New file.
9232 * tst-cleanupx3.c: New file.
9234 * tst-cleanup0.c: Make standard compliant.
9235 * tst-cleanup1.c: Likewise.
9237 * sysdeps/unix/sysv/linux/sem_timedwait.c: Add cancellation support.
9238 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
9239 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
9240 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
9241 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
9242 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
9243 * sysdeps/i386/tcb-offsets.sym: Add RESULT, CANCELHANDLING, and
9245 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
9246 * tst-cancel12.c: New file.
9247 * tst-cancel13.c: New file.
9248 * tst-cancel14.c: New file.
9249 * tst-cancel15.c: New file.
9250 * Makefile (tests): Add tst-cancel12, tst-cancel13, tst-cancel14,
9253 * tst-cancel1.c: Add some comments.
9255 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Compute relative
9258 2003-06-06 Ulrich Drepper <drepper@redhat.com>
9260 * Makefile (CFLAGS-pthread_cancel.c): Define.
9262 2003-06-05 Ulrich Drepper <drepper@redhat.com>
9264 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_rwlock_t):
9265 Change type of __writer element to int.
9266 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9267 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
9268 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
9269 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
9270 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
9271 * sysdeps/i386/tcb-offsets.sym: Replace SELF entry with TID entry.
9272 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
9273 * pthread_rwlock_trywrlock.c: Store TID not self pointer in __writer.
9274 Compare with TID to determine deadlocks.
9275 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
9276 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
9277 * sysdeps/pthread/pthread_rwlock_timedwrlock.: Likewise.
9278 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
9279 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
9280 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
9282 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
9284 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
9285 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
9286 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
9288 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
9290 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
9291 * Makefile (tests): Add tst-rwlock12.
9292 * tst-rwlock12.c: New file.
9294 2003-06-05 Jakub Jelinek <jakub@redhat.com>
9296 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait,
9297 __lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid):
9298 Remove bogus hidden_proto.
9299 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
9301 * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock,
9302 lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise.
9303 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock,
9304 ___lll_mutex_timedlock): Likewise.
9306 2003-06-04 Ulrich Drepper <drepper@redhat.com>
9308 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
9309 (__pthread_cond_signal): Add some code to eventually handle
9312 2003-06-01 Ulrich Drepper <drepper@redhat.com>
9314 * Makefile (tests): Add tst-exec4.
9315 (tst-exec4-ARGS): Define.
9316 * tst-exec4.c: New file.
9318 2003-05-31 Ulrich Drepper <drepper@redhat.com>
9320 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
9321 Also fail if tv_nsec < 0.
9322 (__lll_timedwait_tid): Likewise.
9323 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
9324 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_timedwait_tid):
9326 * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_timedwait_tid):
9328 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (__lll_mutex_timedlock):
9330 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
9332 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_timedwait_tid):
9334 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_timedwait_tid):
9337 * Makefile (tests): Add tst-sem8 and tst-sem9.
9338 * tst-sem8.c: New file.
9339 * tst-sem9.c: New file.
9340 * sem_open.c: Fix creation of in_use record if the file exists but
9343 * posix-timer.h: Remove old, unused timer_id2ptr and timer_ptr2id
9346 * sysdeps/pthread/timer_create.c (timer_create): In case
9347 evp==NULL, assign timer ID to sival_ptr.
9349 * descr.h (struct pthread_unwind_buf): Change type of prev element to
9350 struct pthread_unwind_buf *.
9351 (struct pthread): Likewise for cleanup_jmp_buf element.
9353 * cleanup.c (__pthread_register_cancel): Add cast to avoid warning.
9354 * cleanup_defer.c (__pthread_register_cancel_defer): Likewise.
9355 * unwind.c (__pthread_unwind_next): Likewise.
9357 2003-05-30 Ulrich Drepper <drepper@redhat.com>
9359 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
9360 (lll_futex_timed_wait): Use int for futex value parameter.
9361 (lll_futex_wake): Likewise.
9362 (lll_futex_requeue): Likewise.
9364 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
9365 Replace one memory operation with one register operation.
9367 * tst-join4.c (do_test): Fix error message.
9369 * tst-rwlock6.c (do_test): Use correct format specifier.
9371 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
9372 (__lll_mutex_lock_wait): Replace one memory operation with one
9374 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S
9375 (__lll_mutex_lock_wait): Likewise.
9377 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
9378 (__lll_mutex_cond_lock): Add one to value parameter of
9379 __lll_lock_wait to reflect reality in the futex syscall.
9380 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9381 (lll_mutex_cond_lock): Likewise.
9383 2003-05-30 Jakub Jelinek <jakub@redhat.com>
9385 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_cond_lock):
9387 (lll_mutex_cond_lock): Define.
9389 2003-05-29 Ulrich Drepper <drepper@redhat.com>
9391 * Makefile (tests): Add tst-signal6.
9392 * tst-signal6.c: New file.
9394 * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9395 (__lll_mutex_unlock_force): New function
9396 (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
9398 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
9399 (__lll_mutex_unlock_force): New function.
9400 (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
9402 * tst-rwlock7.c (do_test): Use correct format specifier.
9404 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
9405 Find break parameter in correct asm argument.
9407 2003-05-27 Jakub Jelinek <jakub@redhat.com>
9409 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_clobbers):
9411 (lll_futex_requeue): Fix __o3 constraint, return negative errno if
9413 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
9415 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_REQUEUE,
9416 lll_futex_requeue, lll_mutex_unlock_force): Define.
9418 2003-05-30 Jakub Jelinek <jakub@redhat.com>
9420 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9421 (pthread_cond_t): Add __mutex.
9422 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_REQUEUE,
9423 lll_futex_requeue, lll_mutex_unlock_force): Define.
9425 2003-05-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9427 * sysdeps/sh/tcb-offsets.sym: Define MUTEX_FUTEX.
9428 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
9430 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (SYSCALL_WITH_INST_PAD):
9432 (lll_futex_wait, lll_futex_wake): Define.
9433 * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: New file.
9434 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Try using
9435 FUTEX_REQUEUE instead of FUTEX_WAIT.
9436 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
9437 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Remember
9438 mutex which was used in condvar structure. Call
9439 __pthread_mutex_cond_lock instead of __pthread_mutex_lock_internal.
9440 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
9442 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Don't
9443 include tcb-offsets.h. Read wakeup value in locked region.
9444 Use the value of gbr register as THREAD_ID.
9445 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
9446 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
9447 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
9449 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove futex related
9452 2003-05-28 Ulrich Drepper <drepper@redhat.com>
9454 * sysdeps/pthread/pthread_cond_broadcast.c
9455 (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX.
9457 2003-05-26 Ulrich Drepper <drepper@redhat.com>
9459 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix
9460 typo in register name.
9461 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use parameters
9462 correctly. Actually use requeue. Little optimization.
9463 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Store
9464 mutex address early. Handle cancellation state as 32-bit value.
9465 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
9466 Remove unnecessary label.
9468 2003-05-25 Ulrich Drepper <drepper@redhat.com>
9470 * sysdeps/pthread/pthread_cond_broadcast.c: Try using FUTEX_REQUEUE
9471 instead of FUTEX_WAIT.
9472 * sysdeps/pthread/pthread_cond_signal.c: Likewise.
9473 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
9474 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
9475 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
9476 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
9477 * sysdeps/pthread/pthread_cond_timedwait.c: Remember mutex which was
9478 used in condvar structure. Call __pthread_mutex_cond_lock instead
9479 of __pthread_mutex_lock_internal.
9480 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9481 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9482 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
9483 (__condvar_cleanup): Always call __pthread_mutex_cond_lock.
9484 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9485 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
9486 * sysdeps/unix/sysv/linux/Makefile (libpthread-sysdep_routines):
9487 Add pthread_mutex_cond_lock.
9488 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add dep_mutex.
9489 * sysdeps/unix/sysv/linux/pthread_cond_mutex_lock.c: New file.
9490 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define
9491 lll_mutex_cond_lock.
9492 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
9493 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
9494 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
9496 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9497 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
9499 * sysdeps/i386/tcb-offsets.sym: Define MUTEX_FUTEX.
9500 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
9502 * pthreadP.h: Declare __pthread_mutex_cond_lock.
9503 * pthread_mutex_lock.c: Define LLL_MUTEX_LOCK if not already defined.
9504 Use it instead of lll_mutex_lock. If __pthread_mutex_lock is a
9505 macro don't define aliases.
9507 * cancellation.c: Remove __pthread_enable_asynccancel_2.
9508 * pthreadP.h: Remove declaration of __pthread_enable_asynccancel_2.
9509 * sysdeps/pthread/pthread_cond_timedwait.c: Use
9510 __pthread_enable_asynccancel instead of __pthread_enable_asynccancel_2.
9511 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9512 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9513 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
9514 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9515 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
9517 2003-05-17 Ulrich Drepper <drepper@redhat.com>
9519 * sem_open.c: Fix one endless loop. Implement correct semantics
9520 wrt opening the same semaphore more then once.
9521 * sem_close.c: Adjust for sem_open change.
9522 * semaphoreP.h: Include <semaphore.h>. Define struct inuse_sem.
9523 Declare __sem_mappings, __sem_mappings_lock, __sem_search.
9524 * Makefile (tests): Add tst-sem7.
9525 * tst-sem7.c: New file.
9527 2003-05-16 Roland McGrath <roland@redhat.com>
9529 * sysdeps/unix/sysv/linux/register-atfork.c (libc_freeres_fn): Fix
9530 uninitialized variable braino.
9532 2003-05-16 Ulrich Drepper <drepper@redhat.com>
9534 * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Correct
9535 test for syscall availability.
9537 * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime): Set
9538 __no_posix_timers to -1 if the syscalls don't exist.
9540 * pthread_join.c (pthread_join): Set tid field of the joined
9541 thread to -1. This isn't necessary but helps to recognize some
9542 error conditions with almost no cost.
9544 * allocatestack.c (FREE_P): Also negative values indicate an
9547 * unwind.c: Include <unistd.h>.
9549 2003-05-14 Ulrich Drepper <drepper@redhat.com>
9551 * Makefile ($(objpfx)$(multidir)): Add rule to create the directory.
9553 2003-05-14 Jakub Jelinek <jakub@redhat.com>
9555 * Makefile (crti-objs, crtn-objs): New variables.
9556 (omit-deps, extra-objs): Add crtn.
9557 ($(objpfx)libpthread.so): Depend on both crti and crtn
9558 and links to them in multidir.
9559 ($(objpfx)crtn.S, $(objpfx)crtn.o): New rules.
9561 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
9563 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9564 (lll_mutex_unlock): Use atomic_exchange_rel.
9566 2003-05-11 Ulrich Drepper <drepper@redhat.com>
9568 * cond-perf.c (cons): Add missing locking around setting of alldone.
9570 2003-05-10 Ulrich Drepper <drepper@redhat.com>
9572 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove futex
9574 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
9576 2003-05-09 Ulrich Drepper <drepper@redhat.com>
9578 * tst-sem6.c: New file.
9579 * Makefile (tests): Add tst-sem6.
9581 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (___lll_mutex_unlock):
9582 Use atomic_exchange_rel instead of atomic_exchange.
9583 * sysdeps/unix/sysv/linux/lowlevellock.c (lll_unlock_wake_cb):
9586 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Improve quality of
9587 code for lll_futex_wait and lll_futex_wake in static apps. Use
9588 vsyscall is possible.
9590 * sysdeps/unix/sysv/linux/pthread_getaffinity.c: New file.
9591 * sysdeps/unix/sysv/linux/pthread_setaffinity.c: New file.
9592 * sysdeps/pthread/pthread.h: Declare pthread_getaffinity_np and
9593 pthread_setaffinity_np.
9594 * Versions [libpthread] (GLIBC_2.3.3): Add pthread_getaffinity_np
9595 and pthread_setaffinity_np.
9596 * Makefile (libpthread-routines): Add pthread_getaffinity and
9597 pthread_setaffinity.
9599 * allocatestack.c (allocate_stack): If ARCH_RETRY_MMAP is defined,
9600 use it in case mmap to allocate the stack fails.
9601 * sysdeps/unix/sysv/linux/x86_64/Makefile: Don't define
9602 ARCH_MAP_FLAGS here.
9603 * sysdeps/x86_64/pthreaddef.h: Define ARCH_MAP_FLAGS and
9606 2003-05-08 Ulrich Drepper <drepper@redhat.com>
9608 * sysdeps/unix/sysv/linux/fork.c: Complete rewrite of the atfork
9609 handler implementation. It is now lockless in fork().
9610 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
9611 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
9612 * sysdeps/unix/sysv/linux/fork.h: Don't include <link.h>. Don't
9613 declare the __fork_*_lists.
9614 (struct fork_handler): Include pointers to all three functions.
9615 Add next, refcntr and need_signal elements.
9616 (__fork_handlers): New declaration.
9617 (__register_atfork_malloc): Remove declaration.
9618 (HAVE_register_atfork_malloc): Remove definition.
9619 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove
9620 __pthread_child_handler variable.
9621 (__libc_pthread_init): Use __register_atfork instead of explicitly
9623 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define lll_futex_wait
9625 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
9627 * unwind.c (unwind_cleanup): Print error message and then abort. This
9628 function must never be reached.
9630 * cond-perf.c: New file.
9632 2003-05-05 Ulrich Drepper <drepper@redhat.com>
9634 * sysdeps/i386/tls.h (TLS_INIT_TP): Include \n in error message.
9636 2003-05-04 Roland McGrath <roland@redhat.com>
9638 * Makefile ($(objpfx)../libc.so): New target.
9640 2003-05-02 Ulrich Drepper <drepper@redhat.com>
9642 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9643 (pthread_condattr_t): Size is only an int, don't use long for
9645 (pthread_mutexattr_t): Likewise.
9646 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
9647 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
9648 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
9650 2003-05-01 Ulrich Drepper <drepper@redhat.com>
9652 * sysdeps/i386/tls.h: Define THREAD_ID.
9653 * sysdeps/ia64/tls.h: Likewise.
9654 * sysdeps/powerpc/tls.h: Likewise.
9655 * sysdeps/s390/tls.h: Likewise.
9656 * sysdeps/sh/tls.h: Likewise.
9657 * sysdeps/x86_64/tls.h: Likewise.
9658 * pthread_mutex_lock.c: Use THREAD_ID instead of THREAD_SELF to
9660 * pthread_mutex_timedlock.c: Likewise.
9661 * pthread_mutex_trylock.c: Likewise.
9662 * pthread_mutex_unlock.c: Likewise.
9663 * pthread_rwlock_trywrlock.c: Likewise.
9664 * sysdeps/pthread/pthread_rwlocklock_rdlock.c: Likewise.
9665 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
9666 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
9667 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
9669 * sysdeps/pthread/createthread.c (create_thread): Use CLONE_SYSVSEM
9672 2003-04-29 Jakub Jelinek <jakub@redhat.com>
9674 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
9675 (__SIZEOF_PTHREAD_COND_T): Define to 48.
9676 (pthread_rwlock_t): Add 16 bytes of pad instead of 8 before __flags.
9677 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
9678 Make __align long long instead of long.
9679 (pthread_rwlock_t): Formatting.
9680 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
9681 (pthread_rwlock_t): Formatting.
9682 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9683 (pthread_cond_t): Make __align long long instead of long.
9684 (pthread_rwlock_t): Move __flags field to the same position as in
9687 2003-04-30 Ulrich Drepper <drepper@redhat.com>
9689 * tst-rwlock6.c (do_test): Use correct printf format specifiers.
9690 * tst-rwlock7.c (do_test): Likewise.
9692 2003-04-26 Roland McGrath <roland@redhat.com>
9694 * Makefile ($(test-modules)): Depend on $(common-objpfx)shlib.lds.
9696 2003-04-22 Jakub Jelinek <jakub@redhat.com>
9698 * allocatestack.c (TLS_TPADJ): Add TLS_PRE_TCB_SIZE instead of
9699 sizeof (struct pthread).
9700 (allocate_stack): Subtract TLS_PRE_TCB_SIZE bytes instead of
9702 * sysdeps/powerpc/tls.h (TLS_INIT_TCB_SIZE, TLS_TCB_SIZE): Define
9704 (TLS_INIT_TCB_ALIGN, TLS_TCB_ALIGN): Define to alignment of
9706 (TLS_PRE_TCB_SIZE): Increase to cover tcbhead_t preceeded by pad
9708 (INSTALL_DTV, GET_DTV, THREAD_DTV): tcbhead_t is immediately before
9710 (TLS_INIT_TP, THREAD_SELF, INIT_THREAD_SELF): Don't add TLS_TCB_SIZE
9712 (NO_TLS_OFFSET): Define.
9713 * sysdeps/unix/sysv/linux/powerpc/createthread.c (TLS_VALUE): Don't
9714 add TLS_TCB_SIZE unnecessarily.
9716 2003-04-22 Roland McGrath <roland@redhat.com>
9718 * Makeconfig (shared-thread-library): Reverse link order to work
9721 2003-04-22 Ulrich Drepper <drepper@redhat.com>
9723 * semaphore.h: Fix typo in comment.
9725 2003-04-21 Ulrich Drepper <drepper@redhat.com>
9727 * sysdeps/pthread/sigfillset.c: New file.
9729 * init.c (__pthread_initialize_minimal): Don't block SIGTIMER.
9730 * pthreadP.h: Make SIGTIMER and SIGCANCEL the same.
9731 * sysdeps/pthread/pthread_sigmask.c: Remove handling of SIGTIMER.
9732 * sysdeps/pthread/sigaction.c: Likewise.
9733 * sysdeps/pthread/sigprocmask.c: New file.
9734 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): Define as
9736 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
9737 Block SIGTIMER. Also handle SI_TKILL events and terminate thread
9740 2003-04-19 Ulrich Drepper <drepper@redhat.com>
9742 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
9743 (DL_SYSINFO_IMPLEMENTATION): Add .eh_frame information.
9745 * sysdeps/unix/sysv/linux/unregister-atfork.c
9746 (__unregister_atfork): Don't free memory not allocated dynamically.
9748 * semaphore.h: Remove __THROW marker from cancellation points.
9749 * nptl/sysdeps/pthread/pthread.h: Likewise.
9751 2003-04-18 Ulrich Drepper <drepper@redhat.com>
9753 * sysdeps/pthread/pthread.h: Don't mark pthread_testcancel,
9754 pthread_cancel, pthread_setcancelstate, and pthread_setcanceltype with
9757 2003-04-16 Jakub Jelinek <jakub@redhat.com>
9759 * tst-cancel4.c (do_test): Use %zd instead of %d when printing cnt.
9761 2003-04-15 Roland McGrath <roland@redhat.com>
9763 * forward.c (__pthread_unwind): Tweak to avoid warning.
9765 2003-04-15 Ulrich Drepper <drepper@redhat.com>
9767 * pthreadP.h: Move THREAD_ATOMIC_* replacements to the top.
9769 2003-04-14 Ulrich Drepper <drepper@redhat.com>
9771 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't
9772 overflow CFA advance instructions.
9773 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9775 2003-04-14 Jakub Jelinek <jakub@redhat.com>
9777 * sysdeps/i386/tls.h: Rename LOCK to LOCK_PREFIX.
9778 * sysdeps/i386/pthread_spin_lock.c: Likewise.
9779 * sysdeps/x86_64/tls.h: Likewise. Define LOCK_PREFIX if not already
9782 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Use
9783 DW_CFA_advance_loc2 for .Laddl-.Lsubl.
9784 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
9785 DW_CFA_advance_loc for .Laddl-.Lsubl.
9787 2003-04-13 Ulrich Drepper <drepper@redhat.com>
9789 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Don't use
9790 position-independent unwind data for static libraries.
9791 Add missing unwind info. Add comments.
9793 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Add unwind info.
9794 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9795 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9796 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9798 2003-04-12 Ulrich Drepper <drepper@redhat.com>
9800 * Makefile: Make sure all cancellation points are compiled with
9801 exception and asynchronous unwind tables.
9803 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug
9804 which mishandles loading of global object addresses in PIC.
9805 (THREAD_SETMEM_NC): Likewise.
9807 2003-04-11 Ulrich Drepper <drepper@redhat.com>
9809 * pthread.h: Define new data structure for cleanup buffer. Declare
9810 new cleanup handler interfaces.
9811 * descr.h: Include <unwind.h> if necessary. Define pthread_unwind_buf.
9812 (struct pthread): Add cleanup_jmp_buf pointer. Define
9813 HAVE_CLEANUP_JMP_BUF and not HAVE_CANCELBUF.
9814 * pthreadP.h: Declare __pthread_unwind. Define __do_cancel to use
9815 it. Declare old cleanup handler installation functions.
9816 * cleanup.c: Rewrite. Install handler for unwind-based cleanup
9818 * cleanup_defer.c: Likewise.
9819 * cleanup_compat.c: New file. Old cleanup code.
9820 * cleanup_def_compat.c: New file. Old cleanup code.
9821 * pthread_create.c (start_thread): Initialize cleanup_jmp_buf element
9822 if own thread descriptor.
9823 * unwind.c: New file.
9824 * forward.c: Add __pthread_unwind.
9825 * init.c (pthread_functions): Add __pthread_unwind.
9826 * sysdeps/pthread/pthread-functions.s (struct pthread_functions):
9827 Add ptr___pthread_unwind.
9828 * Versions [GLIBC_2.3.3] (libpthread): Export new cleanup handling
9829 and unwind function.
9830 * Makefile (libpthread-routines): Add cleanup_compat,
9831 cleanup_def_compat, and unwind. Define CFLAGS to enable unwind
9832 table generation if necessary.
9833 * version.c: Record whether unwind support is compiled in.
9834 * sysdeps/pthread/configure.in: Add checks for unwind unterfaces.
9835 * sysdeps/pthread/bits/libc-lock.h: Add prototypes of the old cleanup
9837 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add quite a bit of
9838 complication to generate unwind information for syscall wrappers.
9839 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
9840 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
9841 __cleanup_fct_attribute.
9843 * Makefile: Add rules to build and run tst-cleanup0.
9844 * tst-cleanup0.c: New file.
9845 * tst-cleanup0.expect: New file.
9847 * pthread_create.c (deallocate_tsd): Don't take parameter. Adjust
9848 caller. Optimize to avoid often unecessary local variable.
9850 2003-04-11 Roland McGrath <roland@redhat.com>
9852 * Makefile ($(objpfx)multidir.mk): New target, generated makefile that
9853 sets variable `multidir'; include that.
9854 (generated): Add it.
9855 ($(objpfx)$(multidir)/crti.o): New target.
9856 [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it.
9858 2003-04-11 Ulrich Drepper <drepper@redhat.com>
9860 * tst-attr2.c (do_test): Add cast to avoid warning.
9861 * tst-mutex4.c (do_test): Likewise.
9863 2003-04-10 Ulrich Drepper <drepper@redhat.com>
9865 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset CPU clocks
9868 2003-04-09 Ulrich Drepper <drepper@redhat.com>
9870 * Makefile (tests): Add tst-detach1.
9871 * tst-detach1.c: New file.
9873 2003-04-08 Ulrich Drepper <drepper@redhat.com>
9875 * sysdeps/pthread/pthread.h: Remove duplicate
9876 pthread_cleanup_{push,pop} definitions.
9878 * tst-barrier2.c: Eliminate warnings.
9879 * tst-cancel4.c: Likewise.
9880 * tst-cond4.c: Likewise.
9881 * tst-cond6.c: Likewise.
9882 * tst-detach1.c: Likewise.
9883 * tst-rwlock4.c: Likewise.
9884 * tst-rwlock6.c: Likewise.
9885 * tst-rwlock7.c: Likewise.
9886 * tst-sem3.c: Likewise.
9887 * tst-spin2.c: Likewise.
9888 * tst-umask1.c: Likewise.
9890 2003-04-07 Ulrich Drepper <drepper@redhat.com>
9892 * pthread_detach.c (pthread_detach): Fix test for invalid TID.
9894 2003-04-06 Ulrich Drepper <drepper@redhat.com>
9896 * descr.h (struct pthread): Move cancelhandling member to the front.
9898 2003-04-05 Ulrich Drepper <drepper@redhat.com>
9900 * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare,
9901 malloc_parent, and malloc_child statically.
9902 (__register_atfork_malloc): New function.
9903 (free_mem): Don't free any of the malloc_* variables on the list.
9904 * sysdeps/unix/sysv/linux/fork.h: Declare __register_atfork_malloc.
9905 Define HAVE_register_atfork_malloc.
9907 2003-04-04 Ulrich Drepper <drepper@redhat.com>
9909 * sysdeps/pthread/createthread.c (create_thread): Add some more
9910 comments explaining when to set multiple_threads and when not.
9912 * pthreadP.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
9913 THREAD_ATOMIC_BIT_SET if not already defined.
9914 * sysdeps/i386/tls.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
9915 THREAD_ATOMIC_BIT_SET:
9916 * sysdeps/x86_64/tls.h: Likewise.
9917 * cleanup_defer.c (_pthread_cleanup_push_defer): Rewrite to use
9918 THREAD_ATOMIC_CMPXCHG_VAL.
9919 (_pthread_cleanup_pop_restore): Likewise.
9920 * cancellation.c (__pthread_enable_asynccancel): Likewise.
9921 (__pthread_enable_asynccancel_2): Likewise.
9922 (__pthread_disable_asynccancel): Likewise.
9923 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
9924 (__libc_disable_asynccancel): Likewise.
9925 * init.c (sigcancel_handler): Likewise.
9926 * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise.
9927 * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise.
9929 2003-04-03 Ulrich Drepper <drepper@redhat.com>
9931 * init.c (sigcancel_handler): Don't set EXITING_BIT here.
9932 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
9933 * pthreadP.h (__do_cancel): Set EXITING_BIT here.
9934 * Makefile (tests): Add tst-cancel11.
9935 * tst-cancel11.c: New file.
9937 2003-04-01 Ulrich Drepper <drepper@redhat.com>
9939 * pthread_create.c (deallocate_tsd): Clear/free memory after the last
9940 round, not the first. Use specific_used flag instead of local
9941 found_nonzero variable. Use THREAD_[SG]ETMEM where possible.
9942 (__free_tcb): Don't call deallocate_tsd here.
9943 (start_thread): Call deallocate_tsd here.
9944 * pthread_setspecific.c: Set specific_used flag really only when
9946 * Makefile (tests): Add tst-tsd3.c and tst-tsd4.
9947 * tst-tsd3.c: New file.
9948 * tst-tsd4.c: New file.
9950 2003-03-31 Ulrich Drepper <drepper@redhat.com>
9952 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock):
9953 Use atomic_exchange_and_add instead of __lll_add.
9954 (__lll_mutex_timedlock): Likewise.
9955 Patch by Ian Wienand.
9957 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
9959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
9960 (SINGLE_THREAD_P): Fix typo.
9961 * tst-cancel-wrappers.sh: Handle '.'ed symbols.
9963 2003-03-31 Ulrich Drepper <drepper@redhat.com>
9965 * Makefile (tests): Add tst-align.
9966 * tst-align.c: New file.
9967 * sysdeps/i386/Makefile: Define CFLAGS-tst-align.
9969 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called
9972 * tst-tsd2.c: Add casts to avoid warnings.
9974 2003-03-30 Ulrich Drepper <drepper@redhat.com>
9976 * descr.h (struct pthread): Move most often used elements to the front.
9978 2003-03-29 Ulrich Drepper <drepper@redhat.com>
9980 * Makefile (libpthread-routines): Add pthread_atfork.
9981 (libpthread-static-only-routines): Add pthread_atfork.
9983 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9985 * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
9987 (INSTALL_DTV): Add parens.
9988 (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC):
9989 Use passed descr instead of THREAD_SELF.
9990 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S
9991 (__lll_mutex_timedlock_wait): Correct expected value after
9993 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S:
9994 Release lock before waking up the waiters.
9995 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit
9996 criteria. Reorderstruct passed to cleanup handler. Fix
9997 handling of cancellation and failung pthread_mutex_unlock call.
9998 Use __pthread_enable_asynccancel_2 instead of
9999 __pthread_enable_asynccancel.
10000 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
10001 Return result of lock re-get if it fails.
10002 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument
10003 for __pthread_cleanup_push.
10004 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix
10005 completely broken rwlock implementation.
10006 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
10007 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
10008 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
10009 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
10010 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
10011 * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use
10012 versioned_symbol macro.
10013 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro.
10014 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
10016 2003-03-27 Ulrich Drepper <drepper@redhat.com>
10018 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare
10019 __timer_helper_thread. Declare __start_helper_thread, __helper_once,
10021 (struct timer): Remove th and bar field.
10022 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove
10023 debugging code. Create only one helper thread.
10024 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill
10026 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
10027 Renamed. Define statically. Use thread info from siginfo.
10028 (__helper_once): New variable.
10029 (__helper_tid): New variable.
10030 (__reset_helper_control): New function.
10031 (__start_helper_thread): New function.
10033 * pthread_create.c (start_thread): Don't use setjmp inside
10034 __builtin_expect to work around gcc bug.
10036 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
10037 timer_delete syscall fails, but not with ENOSYS, set
10040 * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
10041 (timer_settime): Fix typo.
10042 * sysdeps/unix/sysv/linux/timer_getoverr.c
10043 [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise.
10045 2003-03-27 Jakub Jelinek <jakub@redhat.com>
10047 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
10048 offset of cleanupbuf.__prev.
10050 2003-03-26 Jakub Jelinek <jakub@redhat.com>
10052 * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
10055 2003-03-26 Ulrich Drepper <drepper@redhat.com>
10057 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP ==
10058 NULL provide default definition to syscall.
10060 2003-03-25 Roland McGrath <roland@redhat.com>
10062 * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
10063 (timer_id2ptr): Fix typo.
10065 2003-03-25 Ulrich Drepper <drepper@redhat.com>
10067 * pthreadP.h: Define SIGCANCEL and SIGTIMER.
10068 * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition.
10069 * sysdeps/ia64/pthreaddef.h: Likewise.
10070 * sysdeps/powerpc/pthreaddef.h: Likewise.
10071 * sysdeps/s390/pthreaddef.h: Likewise.
10072 * sysdeps/sh/pthreaddef.h: Likewise.
10073 * sysdeps/x86_64/pthreaddef.h: Likewise.
10074 * init.c (__pthread_initialize_minimal): Block SIGTIMER.
10075 * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from
10077 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
10078 SIGTIMER is not unblocked.
10079 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more
10081 * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to
10083 * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just
10084 pass pointer through as ID.
10085 * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed.
10086 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file.
10087 * sysdeps/unix/sysv/linux/timer_create.c: New file.
10088 * sysdeps/unix/sysv/linux/timer_delete.c: New file.
10089 * sysdeps/unix/sysv/linux/timer_getoverr.c: New file.
10090 * sysdeps/unix/sysv/linux/timer_gettime.c: New file.
10091 * sysdeps/unix/sysv/linux/timer_routines.c: New file.
10092 * sysdeps/unix/sysv/linux/timer_settime.c: New file.
10093 * sysdeps/unix/sysv/linux/ia64/Versions: New file.
10094 * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file.
10095 * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file.
10096 * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file.
10097 * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file.
10098 * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file.
10099 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file.
10100 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file.
10101 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file.
10102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file.
10103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file.
10104 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file.
10105 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
10106 * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file.
10107 * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file.
10108 * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file.
10109 * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file.
10110 * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file.
10111 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
10112 * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file.
10113 * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file.
10114 * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file.
10115 * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file.
10116 * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file.
10117 * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file.
10119 * pthreadP.h: Remove FRAME_LEFT definition.
10120 * cleanup.c (_pthread_cleanup_push): Don't check for reference to
10121 already left frame. Programs which have this problem are not POSIX
10123 * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise.
10125 2003-03-24 Ulrich Drepper <drepper@redhat.com>
10127 * sysdeps/pthread/tst-timer.c: Check return values of the
10130 2003-03-23 Roland McGrath <roland@redhat.com>
10132 * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
10133 * tst-tls3mod.c: Likewise.
10134 * tst-tls1.c: Likewise.
10135 * tst-tls2.c: Likewise.
10137 * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
10138 undefined behavior.
10140 * tst-join5.c (tf1, tf2): Add a cast.
10142 * Makeconfig (includes): Append -I$(..)nptl to this variable.
10144 * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
10145 Don't test anything.
10146 * tst-cond4.c: Likewise.
10147 * tst-cond6.c: Likewise.
10148 * tst-flock2.c: Likewise.
10149 * tst-mutex4.c: Likewise.
10150 * tst-rwlock4.c: Likewise.
10151 * tst-signal1.c: Likewise.
10152 * tst-spin2.c: Likewise.
10153 * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.
10155 * tst-mutex4.c: Use test-skeleton.c.
10156 * tst-spin2.c: Likewise.
10157 * tst-sysconf.c: Likewise.
10158 * tst-barrier2.c: Likewise.
10159 * tst-cond4.c: Likewise.
10160 * tst-cond6.c: Likewise.
10161 * tst-rwlock4.c: Likewise.
10162 * tst-unload.c: Likewise.
10163 * tst-flock2.c (do_test): Use return instead of exit.
10165 2003-03-22 Jakub Jelinek <jakub@redhat.com>
10167 * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
10169 2003-03-21 Ulrich Drepper <drepper@redhat.com>
10171 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
10172 (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq
10173 instead of __lll_compare_and_swap.
10174 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
10176 Removed definition if __lll_compare_and_swap.
10178 * cancellation.c: Adjust for new form of compare&exchange macros.
10179 * cleanup_defer.c: Likewise.
10180 * init.c: Likewise.
10181 * libc-cancellation.c: Likewise.
10182 * old_pthread_cond_broadcast.c: Likewise.
10183 * old_pthread_cond_signal.c: Likewise.
10184 * old_pthread_cond_timedwait.c: Likewise.
10185 * old_pthread_cond_wait.c: Likewise.
10186 * pthread_cancel.c: Likewise.
10187 * pthread_create.c: Likewise.
10188 * pthread_detach.c: Likewise.
10189 * pthread_join.c: Likewise.
10190 * pthread_key_delete.c: Likewise.
10191 * pthread_setcancelstate.c: Likewise.
10192 * pthread_setcanceltype.c: Likewise.
10193 * pthread_timedjoin.c: Likewise.
10194 * pthread_tryjoin.c: Likewise.
10195 * sysdeps/pthread/createthread.c: Likewise.
10197 2003-03-20 Ulrich Drepper <drepper@redhat.com>
10199 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
10200 Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
10201 definitions. Replace uses with calls to atomic_* functions.
10202 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
10203 * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
10204 __lll_test_and_set calls with atomic_exchange_and_add and
10205 atomic_exchange calls respectively.
10206 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
10207 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
10208 * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
10209 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
10210 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
10211 * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
10212 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
10214 * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
10215 returns the old value.
10217 2003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com>
10219 * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
10220 int for variable OLDVAL and correct inline assembler contraint.
10221 * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
10222 type int for variable OLD.
10224 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
10226 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
10227 (SINGLE_THREAD_P): Use global variable __local_multiple_threads
10228 instead of multiple_threads field in the TCB.
10230 2003-03-19 Ulrich Drepper <drepper@redhat.com>
10232 * sysdeps/i386/i686/bits/atomic.h: Removed.
10233 * sysdeps/i386/i586/bits/atomic.h: Removed.
10234 * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc.
10235 * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc.
10236 * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc.
10237 * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc.
10238 * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc.
10239 * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc.
10240 * atomic.h: Removed. Moved to glibc.
10242 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add
10243 support for clock selection.
10245 * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
10246 signalling waiters.
10248 2003-03-18 Roland McGrath <roland@redhat.com>
10250 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
10251 Add __lll_rel_instr first. Add memory clobber.
10252 (lll_mutex_unlock): Use __lll_test_and_set.
10253 From Paul Mackerras <paulus@samba.org>.
10255 * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define
10257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
10258 (SINGLE_THREAD_P): Add `header.' prefix.
10259 From Paul Mackerras <paulus@samba.org>.
10261 * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
10262 pthread_timedjoin_np to ...
10263 (libpthread: GLIBC_2.3.3): ... here.
10264 (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
10266 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
10267 Avoid shadowing VAL variable.
10269 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
10272 2003-03-18 Ulrich Drepper <drepper@redhat.com>
10274 * Makefile (tests): Add tst-cond11.
10275 * tst-cond11.c: New file.
10277 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder
10278 struct passed to cleanup handler to eliminate one more
10280 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10282 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
10283 (pthrad_cond_t): Replace __unused field with __clock.
10285 * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
10286 waken all waiters in cleanup handler.
10287 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
10288 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
10290 * pthread_condattr_getclock.c: New file.
10291 * pthread_condattr_setclock.c: New file.
10292 * sysdeps/pthread/pthread.h: Declare these new functions.
10293 * Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
10294 * Makefile (libpthread-routines): Add the new functions.
10295 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
10296 Renamed field to value. Document use of the bits.
10297 * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
10299 * pthread_condattr_setpshared.c: Likewise.
10300 * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
10301 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
10302 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
10304 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
10305 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
10306 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
10307 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
10308 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10309 Implement clock selection.
10310 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
10311 * pthread-errnos.sym: Add ENOSYS.
10312 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
10313 _POSIX_CLOCK_SELECTION.
10314 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
10316 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
10317 invalid .size directive.
10319 2003-03-17 Roland McGrath <roland@redhat.com>
10321 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
10324 2003-03-17 Ulrich Drepper <drepper@redhat.com>
10326 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
10327 Use __lll_add instead of spelling it out. Use protected symbol names.
10328 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
10330 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
10331 Renamed from lll_compare_and_swap. Use new name where necessary.
10332 (__lll_add): Defined.
10333 (__lll_dec_if_positive): Defined.
10334 (__lll_test_and_set): Defined.
10335 * sysdeps/ia64/pthread_spin_init.c: Removed.
10336 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
10337 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
10338 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
10339 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
10340 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
10341 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
10342 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
10343 * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
10344 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
10345 __sync_lock_release_si.
10346 Patch by Jakub Jelinek.
10348 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
10349 Fix timeout handling.
10350 (__lll_timedwait_tid): Likewise.
10351 (lll_unlock_wake_cb): Wake up other waiters if necessary.
10352 Patch by Jakub Jelinek.
10354 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
10356 2003-03-17 Roland McGrath <roland@redhat.com>
10358 PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
10359 * sysdeps/pthread/pthread_spin_init.c: New file.
10360 * sysdeps/pthread/pthread_spin_unlock.c: New file.
10361 * sysdeps/powerpc/Makefile: New file.
10362 * sysdeps/powerpc/pthread_spin_lock.c: New file.
10363 * sysdeps/powerpc/pthread_spin_trylock.c: New file.
10364 * sysdeps/powerpc/pthreaddef.h: New file.
10365 * sysdeps/powerpc/tcb-offsets.sym: New file.
10366 * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
10367 * sysdeps/powerpc/tls.h: New file.
10368 * sysdeps/powerpc/bits/atomic.h: New file.
10369 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
10370 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
10371 * sysdeps/unix/sysv/linux/lowlevellock.c: New file.
10373 * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
10374 * sysdeps/unix/sysv/linux/sem_post.c: New file.
10375 * sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
10376 * sysdeps/unix/sysv/linux/sem_trywait.c: New file.
10377 * sysdeps/unix/sysv/linux/sem_wait.c: New file.
10378 * sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
10379 * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
10380 * sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
10381 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
10382 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
10383 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
10384 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
10385 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
10386 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
10387 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.
10389 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
10391 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
10392 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
10393 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
10394 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
10395 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
10397 2003-03-17 Ulrich Drepper <drepper@redhat.com>
10399 * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria.
10400 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
10401 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10402 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
10403 Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>.
10405 2003-03-16 Roland McGrath <roland@redhat.com>
10407 * tst-fork4.c: Include <string.h>.
10408 * tst-signal2.c: Likewise.
10409 * tst-mutex5.c (do_test): exit -> return.
10410 * tst-mutex2.c: Include <stdlib.h>.
10412 2003-03-16 Ulrich Drepper <drepper@redhat.com>
10414 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
10415 (__lll_mutex_timedlock_wait): Correct expected value after
10416 spurious wakeup. Otherwise we would never wait again.
10418 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
10419 zone versus inline asm stupidity. Use correct instructions.
10421 * tst-rwlock6.c: Add some more status output.
10423 2003-03-15 Roland McGrath <roland@redhat.com>
10425 * sysdeps/pthread/configure.in: New file.
10426 * sysdeps/pthread/configure: New file (generated).
10428 2003-03-15 Ulrich Drepper <drepper@redhat.com>
10430 * allocatestack.c (allocate_stack): Store the exact stack size of
10431 user allocated stacks.
10433 2003-03-15 Jakub Jelinek <jakub@redhat.com>
10435 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
10436 (SINGLE_THREAD): Use `header' prefix instead of `header.data'.
10437 * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
10438 * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
10439 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
10440 Use `header.' prefix.
10441 * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
10443 2003-03-15 Ulrich Drepper <drepper@redhat.com>
10445 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
10446 __builtin_frame_address, use stack pointer.
10448 * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
10449 instead of __builtin_frame_pointer.
10451 2003-03-14 Ulrich Drepper <drepper@redhat.com>
10453 * tst-basic1.c (do_test): Add cast to avoid warning.
10454 * tst-basic2.c (do_test): Likewise.
10456 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
10457 amount of stack correction.
10459 * tst-fork4.c: Use test-skeleton.c.
10461 2003-03-14 Roland McGrath <roland@redhat.com>
10463 * init.c: Fix typo "#eli" for "#else".
10465 2003-03-14 Steven Munroe <sjmunroe@us.ibm.com>
10467 * allocatestack.c (__stack_user): Use hidden_data_def.
10468 * pthread_create.c (__pthread_keys): Likewise.
10470 * init.c [__powerpc__] (__NR_set_tid_address): Define it.
10472 2003-03-14 Roland McGrath <roland@redhat.com>
10474 * tst-fork4.c: New file.
10475 * Makefile (tests): Add it.
10477 * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so
10478 we always define the padding space.
10479 [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC
10480 stopped supporting its own extensions fully.
10481 [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper
10482 struct also called `header', so `header.multiple_threads' is the field
10483 name to use on all machines.
10484 * allocatestack.c (allocate_stack): Use `header.' prefix.
10485 * sysdeps/pthread/createthread.c (create_thread): Likewise.
10486 * pthread_create.c (__pthread_create_2_1): Likewise.
10487 * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise.
10488 (THREAD_SELF): Likewise.
10489 * sysdeps/x86_64/tls.h: Likewise.
10490 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
10491 (SINGLE_THREAD_P): Likewise.
10492 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
10493 (SINGLE_THREAD_P): Likewise.
10494 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
10495 (SINGLE_THREAD_P): Likewise.
10497 * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18]
10500 2003-03-14 Ulrich Drepper <drepper@redhat.com>
10502 * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
10503 * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
10505 * pthread_create.c (start_thread): setjmp is expected to return 0.
10507 * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile.
10508 (THREAD_GETMEM_NC): Likewise.
10510 2003-03-13 Ulrich Drepper <drepper@redhat.com>
10512 * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined
10513 and the size of the stack which must be allocated is a multiple,
10514 allocate one more page.
10515 * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but
10516 MULTI_PAGE_ALIASING.
10518 2003-03-13 Roland McGrath <roland@redhat.com>
10520 * pthread_create.c (start_thread): Set EXITING_BIT after the
10521 event-reporting (and destructors), not before.
10523 2003-03-13 Jakub Jelinek <jakub@redhat.com>
10525 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait,
10526 lll_futex_wake): Declare register variables as long int instead of
10527 unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
10528 Make syscall arguments clobbered by the syscall.
10529 (lll_futex_wait): Define using lll_futex_timed_wait.
10531 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13]
10534 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
10535 PPID if [! NDEBUG].
10537 * allocatestack.c (nptl_ncreated): Only declare if
10538 COLORING_INCREMENT != 0.
10540 * pthreadP.h (__pthread_enable_asynccancel_2): New prototype.
10541 (__libc_enable_asynccancel_2): Remove prototype.
10543 * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
10544 ctid to match kernel.
10546 2003-03-12 Ulrich Drepper <drepper@redhat.com>
10548 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
10549 libc_multiple_threads.
10550 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
10551 __libc_multiple_threads to...
10552 * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
10554 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
10556 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10557 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10559 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
10560 (__pthread_once_internal): Define.
10562 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
10563 macros instead of .symver directly.
10564 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
10565 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
10567 * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
10568 * sysdeps/x86_64/tcb-offsets.sym: New file.
10569 * sysdeps/x86_64/Makefile: New file.
10571 * sysdeps/i386/tcb-offsets.sym: Add SELF.
10572 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
10573 to access own pthread_t in TCB.
10574 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10576 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10578 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10580 2003-03-12 Roland McGrath <roland@redhat.com>
10582 * pthread-errnos.sym: New file.
10583 * Makefile (gen-as-const-headers): New variable, list that file.
10584 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
10585 header <pthread-errnos.h> instead of defining errno values here.
10586 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
10587 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
10588 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
10589 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10590 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10592 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10594 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
10595 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10596 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
10597 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
10598 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10599 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10600 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
10601 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
10602 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
10603 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
10604 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10605 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
10606 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
10607 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
10608 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
10609 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
10610 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
10611 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
10612 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
10613 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
10614 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
10615 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
10616 * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
10617 * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
10618 * sysdeps/sh/pthread_spin_trylock.S: Likewise.
10619 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
10620 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
10622 * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
10623 CLONE_CHILD_SETTID worked.
10625 2003-03-12 Ulrich Drepper <drepper@redhat.com>
10627 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
10629 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
10632 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
10633 (pthread_cond_t): Add padding.
10635 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
10636 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
10637 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
10639 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
10640 (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
10641 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
10642 (__pthread_rwlock_timedrdlock): Likewise.
10643 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
10644 (__pthread_rwlock_wrlock): Likewise.
10645 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
10646 (__pthread_rwlock_rdlock): Likewise.
10648 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
10650 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
10651 result of lock re-get if it fails.
10653 2003-03-11 Ulrich Drepper <drepper@redhat.com>
10655 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
10656 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
10657 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
10658 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
10659 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
10660 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
10661 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
10662 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
10663 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
10664 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
10666 * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
10667 THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
10669 * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
10670 Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
10671 * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
10672 (create_thread): Likewise.
10673 Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
10674 * init.c (__pthread_initialize_minimal_internal): Initialize
10675 __libc_multiple_threads_ptr if necessary.
10676 * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
10677 __pthread_multiple_threads and __libc_multiple_threads_ptr.
10678 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
10679 __libc_multiple_threads.
10680 (__libc_pthread_init): Return pointer to __libc_pthread_init if
10683 * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
10684 (THREAD_SETMEM_NC): Likewise.
10686 * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
10687 * sysdeps/x86_64/pthread_spin_trylock.S: New file.
10688 * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
10689 * sysdeps/x86_64/pthread_spin_unlock.S: New file.
10691 * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
10692 Eliminate one entire instruction.
10694 * cancellation.c (__pthread_enable_asynccancel_2): New function.
10695 * pthreadP.h: Declare __pthread_enable_asynccancel_2.
10696 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
10697 (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
10698 instead of __pthread_enable_asynccancel.
10699 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
10700 (__pthread_cond_wait): Likewise.
10701 * sysdeps/pthread/pthread_cond_timedwait.c
10702 (__pthread_cond_timedwait): Likewise.
10703 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
10705 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
10706 (__condvar_cleanup): Wake up all waiters in case we got signaled
10707 after being woken up but before disabling asynchronous
10709 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
10710 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10711 (__condvar_cleanup): Likewise.
10713 * init.c (__NR_set_tid_address): If already defined, don't redefine.
10714 Make it an error if architecture has no #if case. Add x86-64.
10716 * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
10717 pt-initfini.s generation.
10719 * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
10720 (TLS_INIT_TP): Fix typo.
10722 2003-03-11 Jakub Jelinek <jakub@redhat.com>
10724 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
10725 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
10727 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
10728 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
10729 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
10730 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
10731 * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
10732 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
10733 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
10734 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
10736 2003-03-11 Ulrich Drepper <drepper@redhat.com>
10738 * sysdeps/pthread/pthread_cond_timedwait.c
10739 (__pthread_cond_timedwait): Return the result of the final
10740 locking. If it succeeds, the regular function return value.
10742 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
10743 Return result of the final locking.
10744 * version.c (__nptl_main): Work around problems with the strange
10745 INTERNAL_SYSCALL macro on ppc32.
10746 * init.c (__pthread_initialize_minimal_internal): Unblock
10747 SIGCANCEL in case the parent blocked it.
10748 Reported by Paul Mackerras <paulus@samba.org>.
10750 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
10751 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
10752 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
10754 2003-03-11 Jakub Jelinek <jakub@redhat.com>
10756 * sysdeps/pthread/pthread_cond_timedwait.c
10757 (__pthread_cond_timedwait): Unlock and fail if
10758 __pthread_mutex_unlock_internal failed.
10760 * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
10761 (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
10763 * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
10764 [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
10765 STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
10766 ALLOCATE_STACK): New macros.
10767 (TLS_TPADJ): New macro.
10768 (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
10769 (allocate_stack): Handle TLS_DTV_AT_TP and
10770 NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
10771 * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
10772 Don't set PD->self.
10773 * init.c [__ia64__] (__NR_set_tid_address): Define.
10775 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
10776 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
10777 * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
10778 * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
10779 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
10780 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
10781 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
10782 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
10783 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
10784 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
10785 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
10786 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
10787 * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
10788 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
10789 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
10790 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
10791 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
10792 * sysdeps/ia64/bits/atomic.h: New file.
10793 * sysdeps/ia64/Makefile: New file.
10794 * sysdeps/ia64/pthread_spin_init.c: New file.
10795 * sysdeps/ia64/pthread_spin_lock.c: New file.
10796 * sysdeps/ia64/pthread_spin_trylock.c: New file.
10797 * sysdeps/ia64/pthread_spin_unlock.c: New file.
10798 * sysdeps/ia64/pthreaddef.h: New file.
10799 * sysdeps/ia64/tcb-offsets.sym: New file.
10800 * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
10801 * sysdeps/ia64/tls.h: New file.
10803 * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
10804 to syscall instead of no arguments.
10806 2003-03-10 Ulrich Drepper <drepper@redhat.com>
10808 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
10809 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
10810 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
10811 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
10813 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
10816 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
10818 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
10819 lowlevelbarrier.sym.
10820 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
10821 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10822 Include lowlevelbarrier.h and don't define offsets locally.
10823 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
10825 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10826 (__lll_mutex_lock_wait): Reverse order of first two parameters.
10827 (__lll_mutex_timedlock_wait): Likewise.
10828 (lll_mutex_lock): Adjust asm for that.
10829 (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
10830 (lll_lock): Adjust asm for operand order change.
10831 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
10832 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
10834 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
10835 Reverse order of parameters.
10836 (__lll_timedwait_tid): Remove regparms attribute.
10837 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
10838 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
10840 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
10841 (__lll_timedwait_tid): Remove one unnecessary instruction.
10843 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
10844 __lll_mutex_timedlock_wait only for NOT_IN_libc.
10845 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
10848 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
10849 lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
10851 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
10854 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
10855 LOCK is already defined. Don't define __lll_mutex_timedlock_wait
10857 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
10858 define LOCK here (if UP is not defined). The actual code is in
10861 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
10862 LOCK is already defined. Don't define lll_unlock_wake_cb and
10863 __lll_timedwait_tid for libc.so.
10864 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
10865 define LOCK here (if UP is not defined). The actual code is in
10868 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
10869 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
10870 * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
10871 instead of lowlevelsem.h.
10872 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
10873 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
10874 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
10876 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
10877 lowlevelrwlock.sym.
10878 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
10879 * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
10880 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
10882 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
10884 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
10885 last changed. D'oh.
10887 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
10889 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
10890 of __libc_locking_needed.
10891 (lll_trylock): Initialize %eax to zero.
10893 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
10894 pthread_cond_t definition.
10896 2003-03-10 Roland McGrath <roland@redhat.com>
10898 * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
10899 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
10900 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
10901 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
10902 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
10904 * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
10905 Instead of setting PD->multiple_threads, set globals
10906 __pthread_multiple_threads and __libc_multiple_threads.
10907 * sysdeps/pthread/createthread.c (create_thread): Likewise.
10908 * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
10909 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
10911 * descr.h (struct pthread): Conditionalize first member on
10912 [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
10913 containing an anonymous tcbhead_t. Move `list' member out.
10914 [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
10915 * allocatestack.c: Remove use of `header.data.' prefix.
10916 * pthread_create.c: Likewise.
10917 * init.c (__pthread_initialize_minimal_internal): Likewise.
10918 * sysdeps/pthread/createthread.c (create_thread): Likewise.
10919 * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
10920 (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
10921 * sysdeps/x86_64/tls.h: Likewise.
10922 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
10923 (SINGLE_THREAD_P): Likewise.
10924 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
10925 (SINGLE_THREAD_P): Likewise.
10926 * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
10927 * sysdeps/s390/tls.h (tcbhead_t): Likewise.
10929 2003-03-09 Ulrich Drepper <drepper@redhat.com>
10931 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
10933 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
10934 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
10936 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
10937 leftovers from the ia32 code.
10939 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
10941 (clear_once_control): Don't load %esi.
10943 * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
10946 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
10948 * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
10949 * sysdeps/unix/sysv/linux/createthread.c: ...here.
10951 * Makefile (tests): Add tst-cond10.
10952 * tst-cond10.c: New file.
10954 2003-03-08 Ulrich Drepper <drepper@redhat.com>
10956 * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
10957 * tst-signal3.c (do_test): Likewise.
10958 * tst-sem5.c (do_test): Likewise.
10959 * tst-kill6.c (do_test): Likewise.
10960 * tst-tls3.c (do_test): Likewise. Include <errno.h>.
10962 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
10964 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
10965 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
10966 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
10967 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
10968 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
10969 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
10970 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10972 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10974 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
10975 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
10976 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10977 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
10978 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
10979 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
10980 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
10981 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
10983 * allocatestack.c (allocate_stack): If mprotect() fails free the
10986 2003-03-07 Ulrich Drepper <drepper@redhat.com>
10988 * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
10990 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
10991 lll_wake_tid. This was used only to work around kernel limits in
10993 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
10994 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
10995 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
10996 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
10998 * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
10999 (__pthread_initialize_minimal_internal): Change initialization of
11000 __static_tls_align_m1 appropriately.
11001 * pthreadP.h (__static_tls_align_m1): Renamed from
11002 __static_tls_align.
11003 * allocatestack.c (allocate_stack): Use __static_tls_align_m1
11004 instead of __static_tls_align-1.
11006 2003-03-04 Ulrich Drepper <drepper@redhat.com>
11008 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11010 * pthread_create.c: Define __pthread_keys using nocommon
11011 attribute, not by placing it explicitly in bss.
11012 Remove DEFINE_DEALLOC definition. Not needed anymore.
11014 * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
11015 Use it in mmap call to allocate stacks.
11017 * sysdeps/pthread/createthread.c (create_thread): Fix comment.
11019 * pthread_create.c (start_thread): Use THREAD_SETMEM to store
11020 result of the thread function.
11022 2003-03-03 Ulrich Drepper <drepper@redhat.com>
11024 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
11025 version is just fine.
11027 * sysdeps/unix/sysv/linux/libc_pthread_init.c
11028 (__pthread_child_handler): Renamed from pthread_child_handler,
11029 exported, and marked hidden. Change all users.
11030 * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
11031 free __pthread_child_handler from child list.
11033 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
11035 * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
11037 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
11038 Fix handling of cancellation and failing pthread_mutex_unlock call.
11039 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
11040 (__pthread_cond_wait): Likewise.
11042 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
11043 (pthread_rwlock_timedrdlock): Fix clobber of result variable by
11044 lll_futex_timed_wait call.
11045 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
11046 (pthread_rwlock_timedwrlock): Likewise.
11048 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
11049 Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
11050 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
11052 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
11053 check of lll_futex_wake return value.
11055 2003-03-03 Roland McGrath <roland@redhat.com>
11057 * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
11059 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
11060 Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
11061 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
11063 2003-03-02 Ulrich Drepper <drepper@redhat.com>
11065 * sysdeps/pthread/timer_create.c (timer_create): Return correct
11066 error for CPU clocks.
11068 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
11069 _POSIX_MONOTONIC_CLOCK.
11070 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
11072 * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
11075 2003-03-01 Ulrich Drepper <drepper@redhat.com>
11077 * descr.h (struct pthread): Move cleanup field to the front.
11079 2003-03-01 Roland McGrath <roland@redhat.com>
11081 * sem_open.c (sem_open): Braino fix.
11083 2003-03-01 Ulrich Drepper <drepper@redhat.com>
11085 * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
11086 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
11087 __pthread_cleanup_pop functionality.
11088 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
11090 * descr.h (struct pthread): Move tid field to the front now that
11093 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
11094 (__lll_mutex_timedlock_wait): Remove.
11095 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
11096 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
11097 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
11098 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
11099 (lll_unlock_wake_cb): Don't save and restore %esi.
11100 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
11102 (__lll_timedwait_tid): Add alignment.
11103 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
11104 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
11106 (__lll_timedwait_tid): Removed.
11107 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
11108 (__pthread_cond_broadcast): Don't save, load, and restore %esi.
11109 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
11110 (pthread_barrier_wait): Don't save, load, and restore %esi for
11112 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
11113 (__pthread_cond_signal): Don't save, load, and restore %esi.
11114 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
11115 (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
11116 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
11117 Don't save, load, and restore %esi.
11119 2003-02-27 Ulrich Drepper <drepper@redhat.com>
11121 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11122 Release lock before waking up the waiters.
11124 * tst-exit1.c (do_test): Don't start more than one thread in parallel.
11126 * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
11127 (reader_thread): Likewise.
11129 * sysdeps/pthread/pthread_rwlock_unlock.c
11130 (__pthread_rwlock_unlock): Release internal lock early. Don't try
11131 to wake up readers if there are none.
11133 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
11134 Release internal lock before wake threads.
11136 2003-02-26 Ulrich Drepper <drepper@redhat.com>
11138 * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
11139 * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
11141 * tst-rwlock9.c: Likewise.
11142 * tst-rwlock10.c: New file.
11143 * tst-rwlock11.c: New file.
11145 * Makefile (tests): Add tst-dlsym1.
11146 * tst-dlsym1.c: New file.
11148 * init.c (__pthread_initialize_minimal_internal): Set
11149 GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
11150 * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
11152 2003-02-24 Ulrich Drepper <drepper@redhat.com>
11154 * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
11156 * tst-cond2.c: Fix sychronization with child.
11158 * tst-rwlock8.c (reader_thread): Remove unused variable.
11160 * Makefile: Add rules to build and run tst-tls3.
11161 * tst-tls3.c: New file.
11162 * tst-tls3mod.c: New file.
11164 * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
11165 * tst-rwlock8.c: New file.
11166 * tst-rwlock9.c: New file.
11167 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
11168 complete broken rwlock implementation.
11169 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
11171 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
11173 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
11174 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
11175 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
11176 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
11177 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
11178 * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
11179 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
11181 2003-02-23 Roland McGrath <roland@redhat.com>
11183 * Makefile (nptl-version): Change regexp so case sensitivity is ok.
11185 2003-02-23 Ulrich Drepper <drepper@redhat.com>
11187 * Makefile (tests): Add tst-context1.
11188 * tst-context1.c: New file.
11190 * Makefile (tests): Add tst-tls1 and tst-tls2.
11191 * tst-tls1.c: New file.
11192 * tst-tls2.c: New file.
11194 * libc-cancellation.c (__libc_enable_asynccancel): Correct test
11195 for failed cmpxchg.
11197 * pthread_create.c (start_thread): Set EXITING_BIT early.
11199 * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
11200 (THREAD_GETMEM_NC): Likewise.
11202 2003-02-22 Ulrich Drepper <drepper@redhat.com>
11204 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
11205 off 3 more bytes by using offset-less instructions when possible.
11207 * Makefile: Add dependency for $(objpfx)version.d.
11209 * eintr.c (eintr_source): Add unnecessary return but the compiler
11212 * tst-kill3.c: Include <unistd.h>.
11214 2003-02-21 Roland McGrath <roland@redhat.com>
11216 * pthread_create.c (start_thread): Call __libc_thread_freeres.
11218 2003-02-21 Ulrich Drepper <drepper@redhat.com>
11220 * Makefile (tests): Add tst-eintr1.
11221 (distribute): Add eintr.c.
11222 * tst-eintr1.c: New file.
11223 * eintr.c: New file.
11225 * pthread_cancel.c (pthread_cancel): Use tkill directly.
11227 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
11228 Disallow sending SIGCANCEL.
11230 * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
11231 tst-kill3, tst-kill4, tst-kill5, tst-kill6.
11232 * tst-kill1.c: New file.
11233 * tst-kill2.c: New file.
11234 * tst-kill3.c: New file.
11235 * tst-kill5.c: New file.
11236 * tst-kill6.c: New file.
11237 * tst-basic7.c: Renamed to...
11238 * tst-kill4.c: ...this.
11240 2003-02-21 Roland McGrath <roland@redhat.com>
11242 * Makefile (install-lib-ldscripts): New variable.
11244 2003-02-21 Ulrich Drepper <drepper@redhat.com>
11246 * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
11247 * pthread_cancel.c: Use INVALID_TD_P.
11248 * pthread_detach.c: Likewise.
11249 * pthread_getschedparam.c: Likewise.
11250 * pthread_setschedparam.c: Likewise.
11251 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
11252 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
11253 * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
11254 * pthread_timedjoin.c: Likewise.
11256 * tst-basic7.c: Include <signal.h>.
11258 * pthread_join.c (pthread_join): Limited checking for invalid
11260 * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
11262 2003-02-20 Ulrich Drepper <drepper@redhat.com>
11264 * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
11265 beginning of the loop. Clear the entire first block of TSD.
11266 * Makefile (tests): Add tst-key4.
11267 * tst-key4.c: New file.
11269 2003-02-18 Ulrich Drepper <drepper@redhat.com>
11271 * Makefile (tests): Add tst-basic7.
11272 * tst-basic7.c: New file.
11274 * pthread_create.c (deallocate_tsd): Mark as internal_function.
11275 Add some more __builtin_expect.
11277 * pthreadP.h: Define dummy version of DEBUGGING_P.
11279 2003-02-17 Ulrich Drepper <drepper@redhat.com>
11281 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
11282 _POSIX_THREAD_PRIORITY_SCHEDULING.
11283 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
11284 _XOPEN_REALTIME_THREADS.
11285 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
11287 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
11288 kernel returns EINVAL for PID <= 0, work around it.
11290 * Makefile (tests): Add tst-signal5.
11291 * tst-signal5.c: New file.
11293 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
11294 and LOGIN_NAME_MAX.
11296 * tst-cancel1.c (tf): Block all signals.
11298 * Makefile (tests): Add tst-basic6.
11299 * tst-basic6.c: New file.
11301 * tst-basic1.c: Add test for process ID.
11303 * Makefile (tests): Add tst-cancel10.
11304 * tst-cancel10.c: New file.
11306 * Makefile (tests): Add tst-signal4.
11307 * tst-signal4.c: New file.
11309 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
11310 __sigismember instead of sigismember. Add __builtin_expect.
11312 2003-02-16 Ulrich Drepper <drepper@redhat.com>
11314 * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
11315 pthread_setcancelstate, and pthread_rwlock_setpshared.
11317 * tst-cancel7.c (do_test): Make sure the pid file exists before
11318 canceling the thread.
11320 * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
11321 pthread_rwlock_timedrdlock tests.
11322 * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
11323 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
11324 Check for invalid tv_nsec field.
11325 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
11328 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
11329 recursive mutex of overflow.
11331 * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
11333 * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
11334 going into an endless loop.
11335 * Makefile (tests): Add tst-cancel9.
11336 * tst-cancel9.c: New file.
11338 * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
11340 2003-02-15 Ulrich Drepper <drepper@redhat.com>
11342 * tst-mutex5.c (do_test): Add more timedlock tests.
11344 * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
11345 * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
11347 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
11348 use INLINE_SYSCALL. Error number is returned, not -1.
11350 * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
11351 and __deallocate_stack with internal_function.
11352 * pthread_create.c: Adjust definitions appropriately.
11353 * allocatestack.c: Likewise.
11355 * pthread_join.c: Add one more __builtin_expect.
11356 * pthread_timedjoin.c: Likewise.
11358 * pthread_getspecific.c (__pthread_getspecific): Clear data->data
11359 not data of sequence number does not match.
11360 Add one __builtin_expect.
11362 * Makefile (tests): Add tst-clock1.
11363 * tst-clock1.c: New file.
11365 * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
11366 negative arguments.
11367 * Makefile (tests): Add tst-basic5.
11368 * tst-basic5.c: New file.
11370 2003-02-14 Ulrich Drepper <drepper@redhat.com>
11372 * Makefile (tests): Add tst-basic4.
11373 * tst-basic4.c: New file.
11375 * pthreadP.h: Add declaraction for __nptl_nthreads.
11376 * pthread_create.c: Define __nptl_nthreads
11377 (start_thread): Increment __nptl_nthreads at beginning. Decrement
11378 after thread is done. If then zero, call exit(0).
11379 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
11380 Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
11381 * init.c (pthread_functions): Initialize ptr_nthreads.
11382 * allocatestack.c (nptl_nthreads): Remove definition and all uses.
11383 (__reclaim_stacks): Decrement __nptl_nthreads.
11384 * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
11386 * Makefile (tests): Add tst-basic3.
11387 * tst-basic3.c: New file.
11389 * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
11390 after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
11391 * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
11392 * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
11393 if asynchronous canceling is enabled.
11394 * pthread_join.c (pthread_join): When recognizing circular joins,
11395 take into account the other thread might be already canceled.
11396 * Makefile (tests): Add tst-join5.
11397 * tst-join5.c: New file.
11399 * Makefile (tests): Add tst-join4.
11400 * tst-join4.c: New file.
11402 2003-02-13 Ulrich Drepper <drepper@redhat.com>
11404 * tst-cond4.c (main): Add test of pthread_attr_getpshared.
11406 2003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
11408 * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
11409 THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
11410 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
11412 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
11414 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
11415 error if lll_futex_wake failed.
11417 2003-02-13 Ulrich Drepper <drepper@redhat.com>
11419 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
11420 handling of cancellation and failung pthread_mutex_unlock call.
11421 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
11422 * Makefile (tests): Add tst-cond8 and tst-cond9.
11423 * tst-cond8.c: New file.
11424 * tst-cond9.c: New file.
11426 * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
11428 * sysdeps/pthread/pthread.h: Add missing initializers. Protect
11429 non-standard initializers with __USE_GNU.
11431 * Makefile (tests): Add tst-cleanup3.
11432 * tst-cleanup3.c: New file.
11434 2003-02-12 Ulrich Drepper <drepper@redhat.com>
11436 * Makefile (tests): Add tst-attr1 and tst-attr2.
11437 * tst-attr1.c: New file.
11438 * tst-attr2.c: New file.
11440 * Makefile: Add rules to build and run tst-atfork2 test.
11441 * tst-atfork2.c: New file.
11442 * tst-atfork2mod.c: New file.
11444 * sysdeps/unix/sysv/linux/unregister-atfork.c
11445 (__unregister_atfork): Free the memory allocated for the handlers
11446 after removing them from the lists.
11448 * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
11451 * tst-atfork1.c (do_test): Wait for the child we forked.
11452 Report error in child.
11454 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
11456 * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
11458 2003-02-10 Ulrich Drepper <drepper@redhat.com>
11460 * Makefile (tests): Add tst-cancel8.
11461 * tst-cancel8.c: New file.
11463 * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
11464 clearing of control variable.
11465 * Makefile (tests): Add tst-once3 and tst-once4.
11466 * tst-once3.c: New file.
11467 * tst-once4.c: New file.
11469 2003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
11471 * sysdeps/sh/Makefile: New file.
11472 * sysdeps/sh/bits/atomic.h: New file.
11473 * sysdeps/sh/pthread_spin_init.c: New file.
11474 * sysdeps/sh/pthread_spin_lock.c: New file.
11475 * sysdeps/sh/pthread_spin_trylock.S: New file.
11476 * sysdeps/sh/pthread_spin_unlock.S: New file.
11477 * sysdeps/sh/pthreaddef.h: New file.
11478 * sysdeps/sh/tcb-offsets.sym: New file.
11479 * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
11480 * sysdeps/sh/tls.h: New file.
11481 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
11482 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
11483 * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
11484 * sysdeps/unix/sysv/linux/sh/fork.c: New file.
11485 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
11486 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
11487 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
11488 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
11489 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
11490 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
11491 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
11492 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
11493 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
11494 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
11495 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
11496 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
11497 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
11498 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
11499 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
11500 * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
11501 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
11502 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
11503 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
11504 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
11505 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
11506 * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
11507 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
11508 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
11509 * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
11510 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
11512 2003-02-08 Ulrich Drepper <drepper@redhat.com>
11514 * tst-cond2.c: Rearrange code to not rely on behavior undefined
11515 according to POSIX.
11517 * tst-basic2.c (do_test): Lock mutex before creating the thread.
11519 2003-02-07 Ulrich Drepper <drepper@redhat.com>
11521 * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
11522 (TLS_GET_FS): New #define.
11523 (TLS_SET_FS): New #define.
11524 Correct value of __NR_set_thread_area.
11526 * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
11528 2003-02-06 Ulrich Drepper <drepper@redhat.com>
11530 * Makefile (tests): Add tst-popen1.
11531 * tst-popen1.c: New file.
11533 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
11534 but inactive generalization.
11535 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
11536 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
11537 Minor optimization, remove one instruction.
11538 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
11540 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
11542 * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
11544 2003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11546 * init.c (__NR_set_tid_address): Add #ifdef for s390.
11547 * sysdeps/pthread/pthread_barrier_wait.c: New file.
11548 * sysdeps/pthread/pthread_cond_broadcast.c: New file.
11549 * sysdeps/pthread/pthread_cond_signal.c: New file.
11550 * sysdeps/pthread/pthread_cond_timedwait.c: New file.
11551 * sysdeps/pthread/pthread_cond_wait.c: New file.
11552 * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
11553 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
11554 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
11555 * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
11556 * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
11557 * sysdeps/s390/Makefile: New file.
11558 * sysdeps/s390/bits/atomic.h: New file.
11559 * sysdeps/s390/pthread_spin_init.c: New file.
11560 * sysdeps/s390/pthread_spin_lock.c: New file.
11561 * sysdeps/s390/pthread_spin_trylock.c: New file.
11562 * sysdeps/s390/pthread_spin_unlock.c: New file.
11563 * sysdeps/s390/pthreaddef.h: New file.
11564 * sysdeps/s390/tcb-offsets.sym: New file.
11565 * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
11566 * sysdeps/s390/tls.h: New file.
11567 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
11568 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
11569 * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
11570 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
11571 * sysdeps/unix/sysv/linux/s390/fork.c: New file.
11572 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
11573 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
11574 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
11575 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
11576 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
11577 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
11578 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
11579 * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
11580 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
11581 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
11582 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
11583 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
11584 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
11585 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
11586 * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
11587 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
11588 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
11589 * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
11591 2003-02-04 Ulrich Drepper <drepper@redhat.com>
11593 * atomic.h: Add a couple more default implementations.
11594 (atomic_compare_and_exchange_acq): Use
11595 __arch_compare_and_exchange_32_acq in return value definition. It
11597 (atomic_bit_set): Renamed from atomic_set_bit.
11598 Add missing atomic_ prefixes.
11600 * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
11601 thread library is available, use correct value to mark initialized
11604 2003-02-03 Ulrich Drepper <drepper@redhat.com>
11606 * allocatestack.c (allocate_stack): Use __getpagesize instead of
11607 __sysconf to determine pagesize.
11609 * pthread_create.c: Include <atomic.h>.
11610 * allocatestack.c (allocate_stack): Implement coloring of the
11611 allocated stack memory. Rename pagesize to pagesize_m1. It's the
11612 size minus one. Adjust users.
11613 * sysdeps/i386/i686/Makefile: New file.
11615 2003-02-02 Ulrich Drepper <drepper@redhat.com>
11617 * allocatestack.c: Improve comment throughout the file.
11619 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
11620 (__lll_lock_wait): Add branch prediction.
11621 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
11622 (__lll_lock_wait): Likewise.
11623 (lll_unlock_wake_cb): Removed.
11625 2003-01-31 Ulrich Drepper <drepper@redhat.com>
11627 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
11628 _POSIX_THREAD_PRIORITY_SCHEDULING.
11630 2003-01-30 Jakub Jelinek <jakub@redhat.com>
11632 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
11633 Fix return type of ptr___pthread_getspecific.
11635 2003-01-29 Ulrich Drepper <drepper@redhat.com>
11637 * Makefile (tests): Add tst-umask1.
11638 (tst-umask1-ARGS): Define.
11639 * tst-umask1.c: New file.
11641 2003-01-28 Ulrich Drepper <drepper@redhat.com>
11643 * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
11644 pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
11645 pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
11646 pthread_rwlock_unlock.
11647 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
11648 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
11649 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
11650 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
11651 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
11653 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
11654 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
11656 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
11657 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
11658 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
11660 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
11661 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
11663 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
11664 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
11665 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
11667 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
11668 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
11670 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
11672 * Makefile (libpthread-routines): Remove lowlevelcond and
11673 lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
11674 pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
11675 and pthread_cond_broadcast.
11676 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
11677 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
11678 * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
11679 * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
11680 * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
11681 * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
11682 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
11683 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
11684 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
11685 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
11686 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
11687 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
11688 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
11689 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
11690 * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
11691 * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
11692 * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
11693 * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
11694 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
11695 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
11696 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
11697 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
11698 * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
11699 * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
11700 * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
11701 * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
11702 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
11703 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
11704 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
11705 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
11706 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
11708 * sysdeps/unix/sysv/linux/i386/createthread.c: Define
11709 PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
11710 of the code is moved to ...
11711 * sysdeps/pthread/createthread.c: ...here. New file.
11713 2003-01-27 Ulrich Drepper <drepper@redhat.com>
11715 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
11716 (__new_sem_post): Clear %eax before returning.
11717 Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
11719 * Makefile (tests): Add tst-cleanup2.
11720 * tst-cleanup2.c: New file.
11722 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
11723 Interpret first parameter correctly.
11725 2003-01-17 Ulrich Drepper <drepper@redhat.com>
11727 * Makefile (headers): Add bits/semaphore.h.
11729 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11731 * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
11734 2003-01-14 Ulrich Drepper <drepper@redhat.com>
11736 * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
11737 must be used and mapping failed.
11738 Reported by Luke Elliott <luke.elliott@activfinancial.com>.
11740 * Makefile (CFLAGS-pthread_self.os): Define this, not
11741 CFLAGS-pthread_self.c.
11743 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11745 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
11746 lll_unlock_wake_cb.
11748 * Makefile (libpthread-routines): Add version. Add rules to build
11749 version.os and banner.h.
11750 * version.c: New file.
11752 2003-01-13 Jakub Jelinek <jakub@redhat.com>
11754 * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
11755 the alias unconditional.
11756 * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
11758 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11760 * Makefile (CFLAGS-pthread_self.c): New definition.
11762 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11764 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
11765 INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
11766 * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
11767 * init.c (__pthread_initialize_minimal_internal): Likewise.
11769 2003-01-07 Jakub Jelinek <jakub@redhat.com>
11771 * pthreadP.h (__pthread_cond_timedwait): Add prototype.
11773 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
11774 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
11775 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
11776 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
11777 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
11778 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
11780 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11782 * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
11783 * pt-system.c (LIBC_CANCEL_HANDLED): Add.
11784 * tst-cancel-wrappers.sh: Remove all exceptions.
11786 2003-01-05 Ulrich Drepper <drepper@redhat.com>
11788 * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
11789 features. Reported by Marijn Ros <marijn@mad.scientist.com>.
11791 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
11792 Use __libc_pthread_functions array if SHARED.
11794 * pthreadP.h: Move pthread_cond_2_0_t definition to...
11795 * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
11797 * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
11798 (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
11799 __libc_key_create, __libc_getspecific, __libc_setspecific): Use
11800 __libc_ptf_call instead of __libc_maybe_call.
11801 (PTF): New #define.
11802 (__libc_cleanup_region_start): Wrap function name with PTF call.
11803 (__libc_cleanup_region_end): Likewise.
11804 (__libc_cleanup_end): Likewise.
11806 * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
11807 * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
11808 * pthread_key_create.c: Add __pthread_key_create_internal alias.
11809 * pthreadP.h: Add prototypes.
11811 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
11812 __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
11813 __pthread_rwlock_unlock aliases.
11814 * pthreadP.h: Add prototypes for new aliases.
11816 * pthreadP.h (struct pthead_functions): Moved to...
11817 * sysdeps/pthread/pthread-functions.h: ...here. New file.
11818 * init.c (pthread_functions): Add initializers for new elements.
11820 * cleanup_defer.c: Add __pthread_cleanup_push_defer and
11821 __pthread_cleanup_pop_restore aliases.
11822 * pthreadP.h: Add prototypes.
11824 * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
11825 and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
11826 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
11827 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
11828 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
11829 * pthreadP.h: Adjust prototypes and callers.
11831 2003-01-04 Ulrich Drepper <drepper@redhat.com>
11833 * Makefile (tests): Add tst-cancel7.
11834 (tst-cancel7-ARGS): New variable.
11835 * tst-cancel7.c: New file.
11837 * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
11838 around gcc defficiencies.
11839 * old_pthread_cond_signal.c: Likewise.
11840 * old_pthread_cond_timedwait.c: Likewise.
11841 * old_pthread_cond_wait.c: Likewise.
11843 * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
11845 2003-01-03 Ulrich Drepper <drepper@redhat.com>
11847 * Makefile (tests): Add tst-cond7.
11848 * tst-cond7.c: New file.
11850 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
11851 (condvar_cleanup): Get condvar address from the right place.
11853 * atomic.h: Correct definitions of atomic_full_barrier,
11854 atomic_read_barrier, atomic_write_barrier.
11856 * old_pthread_cond_broadcast.c: Make memory allocate and initialization
11858 * old_pthread_cond_signal.c: Likewise.
11859 * old_pthread_cond_timedwait.c: Likewise.
11860 * old_pthread_cond_wait.c: Likewise.
11862 2003-01-03 Jakub Jelinek <jakub@redhat.com>
11864 * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
11866 2003-01-03 Ulrich Drepper <drepper@redhat.com>
11868 * pthreadP.h (pthread_cond_2_0_t): New type.
11869 (struct pthread_functions): Use new type for 2.0 condvar callbacks.
11870 Use new type for the 2.0 condvar function prototypes.
11871 * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
11872 * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
11874 * old_pthread_cond_destroy.c: Likewise.
11875 * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
11876 * old_pthread_cond_signal.c: Likewise.
11877 * old_pthread_cond_timedwait.c: Likewise.
11878 * old_pthread_cond_wait.c: Likewise.
11880 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
11881 (__pthread_cond_wait): Don't save cancellation mode and seq value
11884 * herrno.c (__h_errno_location): Don't define as weak.
11886 2003-01-02 Jakub Jelinek <jakub@redhat.com>
11888 * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
11889 pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
11890 and pthread_cond_wait.
11891 * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
11893 (__pthread_cond_broadcast_2_0): ... this.
11894 * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
11896 (__pthread_cond_destroy_2_0): ... this.
11897 * old_pthread_cond_init.c (__old_pthread_cond_init):
11899 (__pthread_cond_init_2_0): ... this.
11900 * old_pthread_cond_signal.c (__old_pthread_cond_signal):
11902 (__pthread_cond_signal_2_0): ... this.
11903 * old_pthread_cond_wait.c (__old_pthread_cond_wait):
11905 (__pthread_cond_wait_2_0): ... this.
11906 * pthread_cond_destroy.c: Include shlib-compat.h.
11907 (pthread_cond_destroy): Change strong_alias into versioned_symbol.
11908 * pthread_cond_init.c: Include shlib-compat.h.
11909 (pthread_cond_init): Change strong_alias into versioned_symbol.
11910 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
11911 fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
11913 (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
11914 __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
11915 __pthread_cond_wait_2_0): New prototypes.
11916 (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
11917 __old_pthread_cond_init, __old_pthread_cond_signal,
11918 __old_pthread_cond_wait): Removed.
11919 * init.c: Include shlib-compat.h.
11920 (pthread_functions): Guard ptr___pthread_attr_init_2_0
11921 initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
11922 Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
11923 ptr___pthread_cond_*_2_0 fields.
11924 * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
11925 pthread_cond_*@GLIBC_2.0 compatibility symbols.
11927 * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
11928 LIBC_SIGACTION was not yet defined.
11929 [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
11930 [!defined LIBC_SIGACTION] (__sigaction): New function and
11932 [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
11933 [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
11935 2003-01-02 Jakub Jelinek <jakub@redhat.com>
11937 * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
11939 2003-01-02 Ulrich Drepper <drepper@redhat.com>
11941 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
11942 New, larger type definition.
11943 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
11945 * Versions [libpthread]: Add definitions for new pthread_cond_*
11946 interfaces for version GLIBC_2.3.2.
11947 * pthread_cond_init.c: Update initialization for new type definition.
11948 * Makefile (libpthread-routines): Remove pthread_cond_wait,
11949 pthread_cond_timedwait, pthread_cond_signal, and
11950 pthread_cond_broadcast. Add old_pthread_cond_init,
11951 old_pthread_cond_destroy, old_pthread_cond_wait,
11952 old_pthread_cond_timedwait, old_pthread_cond_signal, and
11953 old_pthread_cond_broadcast.
11954 * old_pthread_cond_broadcast.c: New file.
11955 * old_pthread_cond_destroy.c: New file.
11956 * old_pthread_cond_init.c: New file.
11957 * old_pthread_cond_signal.c: New file.
11958 * old_pthread_cond_timedwait.c: New file.
11959 * old_pthread_cond_wait.c: New file.
11960 * pthreadP.h: Add prototypes for the compatibility interfaces.
11962 * pthread_cond_destroy.c: Don't include <errno.h>.
11964 2003-01-01 Ulrich Drepper <drepper@redhat.com>
11966 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
11967 unnecessary zero offset when addressing MUTEX.
11969 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11971 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
11973 * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
11974 for __register_atfork.
11976 2002-12-31 Jakub Jelinek <jakub@redhat.com>
11978 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
11979 instead of ASSEMBLER test macro.
11981 * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
11982 __libc_current_sigrtmax): Add libc_hidden_def.
11984 * sysdeps/pthread/list.h: Remove assert.h include.
11986 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11988 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
11989 __pthread_initialize_minimal_internal not
11990 __pthread_initialize_minimal.
11992 2002-12-30 Ulrich Drepper <drepper@redhat.com>
11994 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
11995 __pthread_initialize_minimal as hidden.
11997 * init.c (__pthread_initialize_minimal_internal): Don't mark as
12000 2002-12-31 Jakub Jelinek <jakub@redhat.com>
12002 * Makefile ($(inst_libdir)/libpthread.so): Depend on
12003 $(common-objpfx)format.lds, include that into the output script.
12005 (extra-B-pthread.so): Change linuxthreads/ into nptl/.
12007 2002-12-28 Andreas Jaeger <aj@suse.de>
12009 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
12010 nsec resolution changes.
12011 (xstat64_conv): Likewise.
12012 (xstat32_conv): Likewise.
12013 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
12014 struct kernel_stat.
12015 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
12016 structs stat and stat64.
12017 * time/time.h (__timespec_defined): Define for __USE_MISC.
12018 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
12020 2002-12-30 Jakub Jelinek <jakub@redhat.com>
12022 * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
12024 (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
12025 (pthread_exit): Use strong_alias to avoid warnings.
12026 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
12027 and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
12028 ptr___pthread_attr_init_2_*.
12029 * init.c (pthread_functions): Adjust.
12031 2002-12-29 Ulrich Drepper <drepper@redhat.com>
12033 * forward.c: Make all functions available by default again. It
12034 caused too much trouble.
12036 * pt-siglongjmp.c: Removed.
12038 2002-12-28 Jakub Jelinek <jakub@redhat.com>
12040 * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
12041 (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
12042 * sysdeps/i386/Makefile: New file.
12043 * sysdeps/i386/tcb-offsets.sym: New file.
12044 * sysdeps/pthread/tcb-offsets.h: New file.
12045 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
12046 Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
12048 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
12049 __register_atfork...
12050 (GLIBC_2.3.2): ...here.
12052 2002-12-28 Ulrich Drepper <drepper@redhat.com>
12054 * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
12055 pthread_attr_setstackaddr with __attribute_deprecated__.
12057 2002-12-27 Jakub Jelinek <jakub@redhat.com>
12059 * pt-system.c (system): Remove cancellation handling.
12060 * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
12061 cancellation routines.
12063 2002-12-28 Ulrich Drepper <drepper@redhat.com>
12065 * descr.h: Include <dl-sysdep.h>.
12066 (struct pthread): Move header.data.list to the back of the struct.
12067 * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
12068 (MULTIPLE_THREADS_OFFSET): Adjust offset.
12069 (SYSINFO_OFFSEET): Likewise.
12071 2002-12-27 Jakub Jelinek <jakub@redhat.com>
12073 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
12075 (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
12076 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
12077 DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
12078 (USE_DL_SYSINFO): Undef.
12080 2002-12-22 Jakub Jelinek <jakub@redhat.com>
12082 * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
12083 $(common-objpfx)libc.so.
12084 * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
12085 it is bigger than pipe buffer size even on arches with bigger
12087 (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
12089 2002-12-25 Ulrich Drepper <drepper@redhat.com>
12091 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
12092 correct errno access for case that USE___THREAD is not defined.
12094 2002-12-24 Ulrich Drepper <drepper@redhat.com>
12096 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
12097 Patch by Marijn Ros <marijn@mad.scientist.com>.
12099 2002-12-22 Roland McGrath <roland@redhat.com>
12101 * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
12103 2002-12-20 Ulrich Drepper <drepper@redhat.com>
12105 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
12107 2002-12-19 Ulrich Drepper <drepper@redhat.com>
12109 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
12110 NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
12111 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
12113 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
12115 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
12116 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
12117 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
12118 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
12119 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
12120 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
12121 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
12122 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
12124 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
12126 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
12128 * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
12130 * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
12132 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
12133 that sysinfo is properly initialized.
12134 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
12135 to 1 only for ld.so.
12137 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
12138 RTLD_CORRECT_DYNAMIC_WEAK.
12140 2002-12-19 Jakub Jelinek <jakub@redhat.com>
12142 * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
12143 Use return 0 as 6th argument to FORWARD4.
12144 * pthread_equal.c: Include pthreadP.h instead of pthread.h.
12146 2002-12-18 Ulrich Drepper <drepper@redhat.com>
12148 * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
12149 * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
12150 Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
12151 (INIT_SYSINFO): New #define.
12152 (TLS_TP_INIT): Use INIT_SYSINFO.
12153 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
12154 At test to make sure SYSINFO_OFFSET value is correct.
12155 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
12157 2002-12-18 Jakub Jelinek <jakub@redhat.com>
12159 * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
12160 * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
12161 * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
12162 [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
12163 __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
12164 __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
12165 __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
12167 2002-12-18 Ulrich Drepper <drepper@redhat.com>
12169 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
12170 macro instead of using int $0x80 directly.
12172 * sysdeps/pthread/bits/stdio-lock.h: New file.
12173 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
12174 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
12175 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
12176 * Makefile (routines): Add libc-lowlevelmutex.
12178 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
12179 __i686.get_pc_thunk.dx.
12181 2002-12-17 Jakub Jelinek <jakub@redhat.com>
12183 * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
12184 (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
12185 ($(objpfx)tst-cancel-wrappers.out): New rule.
12186 * tst-cancel-wrappers.sh: New test.
12187 * tst-locale1.c: Include signal.h.
12188 (uselocale): Test static linking of __libc_current_sigrt*.
12190 2002-12-17 Ulrich Drepper <drepper@redhat.com>
12192 * Makefile (tests): Add tst-cancel6.
12193 * tst-cancel6.c: New file
12195 2002-12-17 Jakub Jelinek <jakub@redhat.com>
12197 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
12198 Define meaningfully for assembler as well.
12199 * pthreadP.h (struct pthread_functions): Remove
12200 ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
12201 and ptr_pthread_attr_init_2_1 fields.
12202 * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
12203 and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
12204 * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
12205 (FORWARD3): Define using FORWARD4.
12206 (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
12208 * pt-system.c: Remove duplicate stdlib.h include.
12210 2002-12-16 Ulrich Drepper <drepper@redhat.com>
12212 * sem_init.c: Define sem_init@GLIBC_2.0.
12213 * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
12214 * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
12216 * flockfile.c: Moved to...
12217 * sysdeps/pthread/flockfile.c: ...here. New file.
12218 * funlockfile.c: Moved to...
12219 * sysdeps/pthread/funlockfile.c: ...here. New file.
12220 * ftrylockfile.c: Moved to...
12221 * sysdeps/pthread/ftrylockfile.c: ...here. New file.
12223 2002-12-16 Jakub Jelinek <jakub@redhat.com>
12225 * libc-cancellation.c: Guard both function with
12226 #if !defined NOT_IN_libc.
12227 * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
12228 automatically provided pthread wrappers.
12229 * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
12230 CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
12232 * pt-open.c: Removed.
12233 * pt-fcntl.c: Removed.
12234 * pt-fsync.c: Removed.
12235 * pt-lseek.c: Removed.
12236 * pt-msgrcv.c: Removed.
12237 * pt-msgsnd.c: Removed.
12238 * pt-msync.c: Removed.
12239 * pt-nanosleep.c: Removed.
12240 * pt-open64.c: Removed.
12241 * pt-pause.c: Removed.
12242 * pt-pread.c: Removed.
12243 * pt-pread64.c: Removed.
12244 * pt-pwrite.c: Removed.
12245 * pt-pwrite64.c: Removed.
12246 * pt-read.c: Removed.
12247 * pt-recv.c: Removed.
12248 * pt-recvfrom.c: Removed.
12249 * pt-recvmsg.c: Removed.
12250 * pt-send.c: Removed.
12251 * pt-sendto.c: Removed.
12252 * pt-sigtimedwait.c: Removed.
12253 * pt-sigwait.c: Removed.
12254 * pt-wait.c: Removed.
12255 * pt-waitpid.c: Removed.
12256 * pt-write.c: Removed.
12257 * pt-accept.c: Removed.
12258 * pt-close.c: Removed.
12259 * pt-connect.c: Removed.
12260 * pt-lseek64.c: Removed.
12261 * pt-sendmsg.c: Removed.
12262 * pt-tcdrain.c: Removed.
12264 2002-12-15 Ulrich Drepper <drepper@redhat.com>
12266 * init.c (__pthread_initialize_minimal_internal): Renamed from
12267 __pthread_initialize_minimal. Make old name an alias. This
12268 converts a normal relocation into a relative relocation.
12270 * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
12272 * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
12273 readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
12274 * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
12275 pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
12276 pt-sigwaitinfo, pt-waitid, and pt-writev.
12277 * pt-creat.c: Removed.
12278 * pt-poll.c: Removed.
12279 * pt-pselect.c: Removed.
12280 * pt-readv.c: Removed.
12281 * pt-select.c: Removed.
12282 * pt-sigpause.c: Removed.
12283 * pt-sigsuspend.c: Removed.
12284 * pt-sigwaitinfo.c: Removed.
12285 * pt-waitid.c: Removed.
12286 * pt-writev.c: Removed.
12288 * init.c (pthread_functions): New variable.
12289 (__pthread_initialize_minimal): Pass pointer to pthread_functions
12290 (or NULL) to __libc_pthread_init.
12291 * forward.c: Rewrite to use __libc:pthread_functions array to get
12292 function addresses.
12293 * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
12295 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
12296 Take new parameter. Copy content of variable pointed to by it
12297 to __libc_pthread_init.
12299 * pthreadP.h (struct pthread_functions): New type.
12300 (__libc_pthread_init): Declare.
12302 * pthread_attr_destroy.c: Add namespace protected alias.
12303 * pthread_attr_getdetachstate.c: Likewise.
12304 * pthread_attr_getinheritsched.c: Likewise.
12305 * pthread_attr_getschedparam.c: Likewise.
12306 * pthread_attr_getschedpolicy.c: Likewise.
12307 * pthread_attr_getscope.c: Likewise.
12308 * pthread_attr_setdetachstate.c: Likewise.
12309 * pthread_attr_setinheritsched.c: Likewise.
12310 * pthread_attr_setschedparam.c: Likewise.
12311 * pthread_attr_setschedpolicy.c: Likewise.
12312 * pthread_attr_setscope.c: Likewise.
12313 * pthread_cond_broadcast.c: Likewise.
12314 * pthread_cond_destroy.c: Likewise.
12315 * pthread_cond_init.c: Likewise.
12316 * pthread_cond_signal.c: Likewise.
12317 * pthread_cond_wait.c: Likewise.
12318 * pthread_condattr_destroy.c: Likewise.
12319 * pthread_condattr_init.c: Likewise.
12320 * pthread_equal.c: Likewise.
12321 * pthread_exit.c: Likewise.
12322 * pthread_getschedparam.c: Likewise.
12323 * pthread_self.c: Likewise.
12324 * pthread_setcancelstate.c: Likewise.
12325 * pthread_setschedparam.c: Likewise.
12326 * pthread_mutex_destroy.c: Likewise.
12327 * pthread_mutex_init.c: Likewise.
12328 * pthreadP.h: Add prototypes for the aliases.
12330 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
12331 multiple_threads member in correct TCB to 1.
12333 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
12334 SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
12335 member of thread decriptor, otherwise return unconditionally 1.
12337 2002-12-14 Ulrich Drepper <drepper@redhat.com>
12339 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
12340 regular Linux version. Remove file.
12341 * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
12342 * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
12343 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
12344 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
12345 * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
12346 * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
12347 * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
12348 * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
12349 * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
12350 * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
12351 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
12352 * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
12353 * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
12354 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
12355 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
12356 * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
12357 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
12358 * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
12359 * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
12360 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
12361 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
12362 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
12363 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
12364 * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
12365 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
12366 * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
12367 * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
12368 * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
12369 * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
12370 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
12372 2002-12-14 Jakub Jelinek <jakub@redhat.com>
12374 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
12375 * sysdeps/unix/sysv/linux/open.c: Removed.
12376 * sysdeps/unix/sysv/linux/fsync.c: Removed.
12377 * sysdeps/unix/sysv/linux/lseek.c: Removed.
12378 * sysdeps/unix/sysv/linux/msync.c: Removed.
12379 * sysdeps/unix/sysv/linux/read.c: Removed.
12380 * sysdeps/unix/sysv/linux/close.c: Removed.
12381 * sysdeps/unix/sysv/linux/creat.c: Removed.
12382 * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
12383 * sysdeps/unix/sysv/linux/pause.c: Removed.
12384 * sysdeps/unix/sysv/linux/select.c: Removed.
12385 * sysdeps/unix/sysv/linux/write.c: Removed.
12387 2002-12-14 Ulrich Drepper <drepper@redhat.com>
12389 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
12390 element in TCB to see whether locking is needed.
12392 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
12393 MULTIPLE_THREADS_OFFSET value is correct.
12395 * sysdeps/unix/sysv/linux/close.c: New file.
12396 * sysdeps/unix/sysv/linux/connect.S: New file.
12397 * sysdeps/unix/sysv/linux/creat.c: New file.
12398 * sysdeps/unix/sysv/linux/fsync.c: New file.
12399 * sysdeps/unix/sysv/linux/llseek.c: New file.
12400 * sysdeps/unix/sysv/linux/lseek.c: New file.
12401 * sysdeps/unix/sysv/linux/msgrcv.c: New file.
12402 * sysdeps/unix/sysv/linux/msgsnd.c: New file.
12403 * sysdeps/unix/sysv/linux/msync.c: New file.
12404 * sysdeps/unix/sysv/linux/nanosleep.c: New file.
12405 * sysdeps/unix/sysv/linux/open.c: New file.
12406 * sysdeps/unix/sysv/linux/open64.c: New file.
12407 * sysdeps/unix/sysv/linux/pause.c: New file.
12408 * sysdeps/unix/sysv/linux/poll.c: New file.
12409 * sysdeps/unix/sysv/linux/pread.c: New file.
12410 * sysdeps/unix/sysv/linux/pread64.c: New file.
12411 * sysdeps/unix/sysv/linux/pselect.c: New file.
12412 * sysdeps/unix/sysv/linux/pwrite.c: New file.
12413 * sysdeps/unix/sysv/linux/pwrite64.c: New file.
12414 * sysdeps/unix/sysv/linux/readv.c: New file.
12415 * sysdeps/unix/sysv/linux/recv.S: New file.
12416 * sysdeps/unix/sysv/linux/recvfrom.S: New file.
12417 * sysdeps/unix/sysv/linux/recvmsg.S: New file.
12418 * sysdeps/unix/sysv/linux/select.c: New file.
12419 * sysdeps/unix/sysv/linux/send.S: New file.
12420 * sysdeps/unix/sysv/linux/sendmsg.S: New file.
12421 * sysdeps/unix/sysv/linux/sendto.S: New file.
12422 * sysdeps/unix/sysv/linux/sigpause.c: New file.
12423 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
12424 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
12425 * sysdeps/unix/sysv/linux/sigwait.c: New file.
12426 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
12427 * sysdeps/unix/sysv/linux/system.c: New file.
12428 * sysdeps/unix/sysv/linux/tcdrain.c: New file.
12429 * sysdeps/unix/sysv/linux/wait.c: New file.
12430 * sysdeps/unix/sysv/linux/waitid.c: New file.
12431 * sysdeps/unix/sysv/linux/waitpid.c: New file.
12432 * sysdeps/unix/sysv/linux/writev.c: New file.
12433 * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
12435 * pt-readv.c: Fix comment.
12437 2002-12-14 Jakub Jelinek <jakub@redhat.com>
12439 * tst-cleanup1.c: Include stdlib.h.
12441 * tst-cancel5.c: New test.
12442 * Makefile (tests): Add tst-cancel5.
12443 (tst-cancel5): Link against libc.so libpthread.so in that order.
12445 2002-12-13 Ulrich Drepper <drepper@redhat.com>
12447 * forward.c (test_loaded): Prevent recursive calls.
12449 * Makefile (routines): Add libc-cancellation.
12450 * libc-cancellation.c: New file.
12451 * descr.h (struct pthread): Add multiple_threads field.
12452 * allocatestack.c (allocate_stack): Initialize multiple_header field of
12453 new thread descriptor to 1.
12454 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
12455 Initialize multiple_thread field after successful thread creation.
12456 * cancellation.c (__do_cancel): Move to pthreadP.h.
12457 (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
12458 (__pthread_disable_asynccancel): Add internal_function attribute.
12459 * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
12460 * pthread_setcancelstate.c: Likewise.
12461 * pthread_setcanceltype.c: Likewise.
12462 * pthread_exit.c: Likewise.
12463 * pthreadP.h (CANCELLATION_P): Likewise.
12464 (__do_cancel): Define as static inline.
12465 (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
12466 (__libc_enable_asynccancel, __libc_disable_asynccancel): New
12468 * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
12469 fields. Define MULTIPLE_THREADS_OFFSET.
12470 * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
12472 * sysdeps/unix/sysv/linux/accept.S: New file.
12473 * sysdeps/unix/sysv/linux/read.c: New file.
12474 * sysdeps/unix/sysv/linux/write.c: New file.
12475 * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
12476 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
12477 initialization of __libc_locking_needed.
12478 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
12479 __libc_locking_needed, use multiple_threads field in TCB.
12480 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
12482 2002-12-12 Ulrich Drepper <drepper@redhat.com>
12484 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
12486 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
12488 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
12489 access to __libc_locking_needed for PIC.
12491 2002-12-12 Jakub Jelinek <jakub@redhat.com>
12493 * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
12494 declare for libc.so.
12495 (__libc_lock_init, __libc_lock_init_recursive): Change into comma
12497 (__libc_lock_lock): Put into statement expression.
12498 (__libc_lock_unlock): Remove trailing semicolon.
12499 * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
12501 2002-12-12 Roland McGrath <roland@redhat.com>
12503 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
12504 "m" constraint to refer to __libc_locking_needed. Declare it here.
12506 2002-12-12 Ulrich Drepper <drepper@redhat.com>
12508 * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
12509 * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
12510 Initialize __libc_locking_needed.
12511 * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
12512 instead of __register_pthread_fork_handler.
12513 * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
12514 * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
12515 fork-gen with libc_pthread_init.
12516 * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
12517 of __register_pthread_fork_handler.
12518 * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
12519 of __register_pthread_fork_handler.
12520 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
12521 __libc_locking_needed to determine whether lock prefix can be avoided.
12522 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
12524 2002-12-11 Ulrich Drepper <drepper@redhat.com>
12526 * Makefile (tests): Add tst-cleanup1.
12527 * tst-cleanup1.c: New file.
12528 * cancellation.c (__cleanup_thread): Removed.
12529 (__do_cancel): Remove call to __cleanup_thread.
12530 * pthreadP.h: Remove __cleanup_thread prorotype.
12532 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
12533 Remember function and argument even if cancellation handler
12534 function is not available.
12535 (__libc_cleanup_region_end): Execute registered function directly if
12536 pthread functions are not available.
12537 (__libc_cleanup_end): Likewise.
12539 * init.c (__pthread_initialize_minimal): Fix initialization in
12540 static lib by preventing gcc from being too clever.
12542 2002-12-10 Ulrich Drepper <drepper@redhat.com>
12544 * init.c (__pthread_initialize_minimal): Remove unneccesary
12547 * Makefile (tests): We can run tst-locale2 now.
12549 2002-12-09 Ulrich Drepper <drepper@redhat.com>
12551 * Versions: Remove duplicated sigwait entry.
12553 2002-12-08 Ulrich Drepper <drepper@redhat.com>
12555 * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
12558 * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
12560 * pthreadP.h: Declare __pthread_enable_asynccancel and
12561 __pthread_disable_asynccancel.
12562 (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
12563 (CANCEL_RESET): Use __pthread_disable_asynccancel.
12564 * cancellation.c (__pthread_enable_asynccancel): New function.
12565 (__pthread_disable_asynccancel): New function.
12566 * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
12567 * pt-close.c: Likewise.
12568 * pt-connect.c: Likewise.
12569 * pt-creat.c: Likewise.
12570 * pt-fcntl.c: Likewise.
12571 * pt-fsync.c: Likewise.
12572 * pt-lseek.c: Likewise.
12573 * pt-lseek64.c: Likewise.
12574 * pt-msgrcv.c: Likewise.
12575 * pt-msgsnd.c: Likewise.
12576 * pt-msync.c: Likewise.
12577 * pt-nanosleep.c: Likewise.
12578 * pt-open.c: Likewise.
12579 * pt-open64.c: Likewise.
12580 * pt-pause.c: Likewise.
12581 * pt-poll.c: Likewise.
12582 * pt-pread.c: Likewise.
12583 * pt-pread64.c: Likewise.
12584 * pt-pselect.c: Likewise.
12585 * pt-pwrite.c: Likewise.
12586 * pt-pwrite64.c: Likewise.
12587 * pt-read.c: Likewise.
12588 * pt-readv.c: Likewise.
12589 * pt-recv.c: Likewise.
12590 * pt-recvfrom.c: Likewise.
12591 * pt-recvmsg.c: Likewise.
12592 * pt-select.c: Likewise.
12593 * pt-send.c: Likewise.
12594 * pt-sendmsg.c: Likewise.
12595 * pt-sendto.c: Likewise.
12596 * pt-sigpause.c: Likewise.
12597 * pt-sigsuspend.c: Likewise.
12598 * pt-sigtimedwait.c: Likewise.
12599 * pt-sigwait.c: Likewise.
12600 * pt-sigwaitinfo.c: Likewise.
12601 * pt-system.c: Likewise.
12602 * pt-tcdrain.c: Likewise.
12603 * pt-wait.c: Likewise.
12604 * pt-waitid.c: Likewise.
12605 * pt-waitpid.c: Likewise.
12606 * pt-write.c: Likewise.
12607 * pt-writev.c: Likewise.
12608 * pthread_join.c: Likewise.
12609 * pthread_timedjoin.c: Likewise.
12611 * pt-sigpause.c (sigsuspend): Call __sigsuspend.
12612 (__xpg_sigpause): New function.
12613 * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
12615 2002-12-07 Ulrich Drepper <drepper@redhat.com>
12617 * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
12619 * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
12620 _GI_pthread_cleanup_pop to pthreadP.h.
12622 * ftrylockfile.c: Use _IO_lock_trylock instead of
12623 pthread_mutex_trylock.
12625 * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
12626 (CANCEL_RESET): Likewise.
12627 (__pthread_setcanceltype_): Declare.
12628 (__pthread_mutex_lock_internal): Declare.
12629 (__pthread_mutex_unlock_internal): Declare.
12630 (__pthread_once_internal): Declare.
12631 (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
12632 (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
12634 * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
12635 and pthread_mutex_unlock.
12636 * pthread_cond_wait.c: Likewise.
12637 * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
12638 * pthread_mutex_unlock.c: Likewise.
12640 * pthread_setcanceltype.c: Add additional alias
12641 __pthread_setcanceltype.
12643 * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
12644 * sem_open.c (sem_open): Likewise.
12645 Use __libc_open, __libc_write, and __libc_close instead of
12646 open, write, and close respectively.
12648 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
12649 Rewrite as statement expression since it must return a value.
12651 * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
12652 * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
12655 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
12656 alias __pthread_once_internal.
12658 * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
12660 2002-12-06 Ulrich Drepper <drepper@redhat.com>
12662 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
12663 * tst-stdio1.c: New file.
12664 * tst-stdio2.c: New file.
12666 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
12668 * Makefile (tests): Comment out tst-locale2 for now.
12669 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
12671 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
12673 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
12674 Use _IO_lock_init instead of explicit assignment.
12676 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
12677 Define __libc_lock_* and __libc_lock_recursive macros with
12678 lowlevellock macros, not pthread mutexes.
12680 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
12681 of pthread_mutex_lock.
12682 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
12683 instead of pthread_mutex_unlock.
12685 2002-12-06 Roland McGrath <roland@redhat.com>
12687 * allocatestack.c (__stack_user): Use uninitialized defn.
12688 * init.c (__pthread_initialize_minimal): Initialize it here.
12690 2002-12-05 Roland McGrath <roland@redhat.com>
12692 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
12694 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
12696 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
12697 missing & here too.
12699 2002-12-05 Ulrich Drepper <drepper@redhat.com>
12701 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
12703 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
12704 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
12705 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
12706 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
12707 for __libc_lock_* macros.
12708 * Makefile (routines): Add libc-lowlevellock.
12710 2002-10-09 Roland McGrath <roland@redhat.com>
12712 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
12713 Under [__PIC__], call the function via the pointer fetched for
12714 comparison rather than a call by name that uses the PLT.
12715 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
12716 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
12717 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
12718 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
12719 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
12721 2002-12-04 Roland McGrath <roland@redhat.com>
12723 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
12725 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
12726 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
12728 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
12730 2002-12-04 Ulrich Drepper <drepper@redhat.com>
12732 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
12733 a completely opaque, non-integer type.
12734 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
12736 2002-12-05 Jakub Jelinek <jakub@redhat.com>
12738 * sysdeps/i386/tls.h: Include stdlib.h.
12739 * sysdeps/x86_64/tls.h: Likewise.
12741 2002-12-04 Ulrich Drepper <drepper@redhat.com>
12743 * Makefile (tests): Add tst-locale2.
12744 (tests-static): Likewise.
12745 * tst-locale2.c: New file.
12747 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
12748 volatile and add memory clobbers to lock operations.
12750 2002-12-03 Ulrich Drepper <drepper@redhat.com>
12752 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
12753 * sysdeps/i386/i486/bits/atomic.h: New file.
12754 * sysdeps/i386/i586/bits/atomic.h: New file.
12755 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
12756 include i486 version.
12757 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
12758 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
12759 Patch by Marijn Ros <marijn@mad.scientist.com>.
12761 * allocatestack.c (get_cached_stack): Don't crash if we first
12762 found a stack with a larger size then needed.
12763 Reported by Hui Huang <hui.huang@sun.com>.
12765 * Makefile (tests): Add tst-sysconf.
12766 * tst-sysconf.c: New file.
12768 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
12769 PTHREAD_THREADS_MAX.
12771 2002-12-02 Roland McGrath <roland@redhat.com>
12773 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
12774 Declare using hidden_proto instead of attribute_hidden, so there are
12775 non-.hidden static symbols for gdb to find.
12776 (__pthread_keys): Likewise.
12777 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
12778 * allocatestack.c (__stack_user): Likewise.
12779 * pthread_create.c (__pthread_keys): Likewise.
12780 (__nptl_threads_events, __nptl_last_event): Make these static instead
12782 * pthread_key_create.c (__pthread_pthread_keys_max,
12783 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
12785 2002-12-02 Ulrich Drepper <drepper@redhat.com>
12787 * Makefile (tests): Add tst-locale1. If buid-static is yes link
12789 * tst-locale1.c: New file.
12791 * pthread_cond_timedwait.c: Include <stdlib.h>.
12793 * Makefile (tests): Add tst-fork2 and tst-fork3.
12794 * tst-fork2.c: New file.
12795 * tst-fork3.c: New file.
12797 2002-11-28 Ulrich Drepper <drepper@redhat.com>
12799 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
12801 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
12802 require it to 200112L.
12804 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
12805 instruction only if HAVE_CMOV is defined.
12806 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
12808 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
12810 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
12812 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
12814 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
12816 2002-11-27 Ulrich Drepper <drepper@redhat.com>
12818 * sysdeps/x86_64/bits/atomic.h: New file.
12820 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
12823 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
12824 possible since gettid cannot fail.
12826 * sysdeps/x86_64/pthreaddef.h: New file.
12828 * sysdeps/i386/pthreaddef.h (gettid): Removed.
12830 * sysdeps/x86_64/pthread_spin_init.c: New file.
12831 * sysdeps/x86_64/pthread_spin_lock.c: New file.
12832 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
12833 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
12835 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
12836 Add missing lock prefix. Minute optimization.
12838 * tst-spin2.c (main): Also check successful trylock call.
12840 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
12841 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
12843 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
12844 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
12846 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
12847 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
12848 value in case of an error. Add support for INTERNAL_SYSCALL.
12850 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
12851 value in case of an error.
12853 * sysdeps/x86_64/tls.h: New file.
12855 2002-11-26 Ulrich Drepper <drepper@redhat.com>
12857 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
12858 takes the array member name and the index as parameters.
12859 (THREAD_SETMEM_NC): Likewise.
12860 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
12861 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
12864 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
12865 to decide which code to use.
12866 (THREAD_SETMEM_NC): Likewise.
12868 * allocatestack.c (queue_stack): Don't remove stack from list here.
12869 Do it in the caller. Correct condition to prematurely terminate
12870 loop to free stacks.
12871 (__deallocate_stack): Remove stack from list here.
12873 2002-11-26 Ulrich Drepper <drepper@redhat.com>
12875 * Makefile (tests): Add tst-stack1.
12876 * tst-stack1.c: New file.
12878 * allocatestack.c (allocate_stack): Initialize the TCB on a user
12881 * pthread_attr_getstack.c: Return bottom of the thread area.
12883 2002-11-25 Ulrich Drepper <drepper@redhat.com>
12885 * Makefile (libpthread-routines): Add pt-allocrtsig and
12886 pthread_kill_other_threads.
12887 * pt-allocrtsig.c: New file.
12888 * pthread_kill_other_threads.c: New file.
12889 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
12890 all three functions.
12891 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
12893 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
12894 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
12895 and __libc_allocate_rtsig_private.
12896 * Versions (libpthread): Export pthread_kill_other_threads_np,
12897 __libc_current_sigrtmin, and __libc_current_sigrtmax.
12899 2002-11-24 Ulrich Drepper <drepper@redhat.com>
12901 * allocatestack.c (allocate_stack): stackaddr in attribute points to
12902 the end of the stack. Adjust computations.
12903 When mprotect call fails dequeue stack and free it.
12904 * pthread_attr_setstack.c: Store top of the stack in stackaddr
12906 * pthread_getattr_np.c: Likewise.
12908 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
12911 2002-11-23 Ulrich Drepper <drepper@redhat.com>
12913 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
12914 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
12916 2002-11-22 Ulrich Drepper <drepper@redhat.com>
12918 * pthread_getspecific.c: Optimize access to first 2nd-level array.
12919 * pthread_setspecific.c: Likewise.
12921 2002-11-21 Ulrich Drepper <drepper@redhat.com>
12923 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
12924 definitions. Get them from the official place.
12925 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
12927 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
12928 Use new CLONE_ flags in clone() calls.
12930 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
12931 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
12933 * Versions: Add pthread_* functions for libc.
12934 * forward.c: New file.
12936 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
12938 * herrno.c: New file.
12941 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
12942 sem_trywait, and sem_timedwait. Add herrno and res.
12943 * sem_init.c: Don't initialize lock and waiters members.
12944 * sem_open.c: Likewise.
12945 * sem_post.c: Removed.
12946 * sem_wait.c: Removed.
12947 * sem_trywait.c: Removed.
12948 * sem_timedwait.c: Removed.
12949 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
12950 Includes full implementations of sem_post, sem_wait, sem_trywait,
12952 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
12953 for new implementation.
12954 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
12955 and waiters fields.
12957 * tst-sem3.c: Improve error message.
12958 * tst-signal3.c: Likewise.
12960 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
12961 to tell the kernel about the termination futex and to initialize tid
12962 member. Don't initialize main_thread.
12963 * descr.h (struct pthread): Remove main_thread member.
12964 * cancelllation.c (__do_cancel): Remove code handling main thread.
12965 The main thread is not special anymore.
12967 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
12968 size of the stacks to stack_cache_actsize.
12970 * pt-readv.c: Add missing "defined".
12971 * pt-sigwait.c: Likewise.
12972 * pt-writev.c: Likewise.
12974 2002-11-09 Ulrich Drepper <drepper@redhat.com>
12976 * Versions: Export __connect from libpthread.
12977 Patch by Luca Barbieri <ldb@ldb.ods.org>.
12979 * Makefile (libpthread-routines): Add pt-raise.
12980 * sysdeps/unix/sysv/linux/raise.c: New file.
12981 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
12982 * sysdeps/generic/pt-raise.c: New file.
12984 * pthread_cond_init.c: Initialize all data elements of the condvar
12985 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
12987 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
12988 * pthread_create.c: Likewise.
12990 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
12991 * tst-key1.c: New file.
12992 * tst-key2.c: New file.
12993 * tst-key3.c: New file.
12995 * Versions: Export pthread_detach for version GLIBC_2.0.
12996 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
12998 2002-11-08 Ulrich Drepper <drepper@redhat.com>
13000 * pthread_key_create.c: Terminate search after an unused key was found.
13001 Patch by Luca Barbieri <ldb@ldb.ods.org>.
13003 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
13004 Patch by Luca Barbieri <ldb@ldb.ods.org>.
13006 2002-10-10 Ulrich Drepper <drepper@redhat.com>
13008 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
13009 dynamic lookup for errno in PIC.
13011 * allocatestack.c (get_cached_stack): Rearrange code slightly to
13012 release the stack lock as soon as possible.
13013 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
13014 the static TLS block.
13015 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
13017 * cancellation.c: Renamed from cancelation.c.
13018 * Makefile: Adjust accordingly.
13019 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
13020 * cleanup_defer.c: Use CANCELLATION_P.
13021 * pthread_testcancel.c: Likewise.
13022 * descr.h: Fix spelling in comments.
13023 * init.c: Likewise.
13024 * pthread_getattr_np.c: Likewise.
13025 * pthread_getschedparam.c: Likewise.
13026 * pthread_setschedparam.c: Likewise.
13027 * Versions: Likewise.
13029 * pt-pselect.c: New file.
13030 * Makefile (libpthread-routines): Add pt-pselect.
13031 * Versions: Add pselect.
13033 * tst-cancel4.c: New file.
13034 * Makefile (tests): Add tst-cancel4.
13036 2002-10-09 Ulrich Drepper <drepper@redhat.com>
13038 * pthread_mutex_lock.c: Always record lock ownership.
13039 * pthread_mutex_timedlock.c: Likewise.
13040 * pthread_mutex_trylock.c: Likewise.
13042 * pt-readv.c: New file.
13043 * pt-writev.c: New file.
13044 * pt-creat.c: New file.
13045 * pt-msgrcv.c: New file.
13046 * pt-msgsnd.c: New file.
13047 * pt-poll.c: New file.
13048 * pt-select.c: New file.
13049 * pt-sigpause.c: New file.
13050 * pt-sigsuspend.c: New file.
13051 * pt-sigwait.c: New file.
13052 * pt-sigwaitinfo.c: New file.
13053 * pt-waitid.c: New file.
13054 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
13055 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
13056 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
13057 * Versions: Add all the new functions.
13059 * tst-exit1.c: New file.
13060 * Makefile (tests): Add tst-exit1.
13062 * sem_timedwait.c: Minor optimization for more optimal fastpath.
13064 2002-10-08 Ulrich Drepper <drepper@redhat.com>
13066 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
13068 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
13069 call. pthread_join is an official cancellation point.
13070 * pthread_timedjoin.c: Likewise.
13072 * pthread_cond_wait.c: Revert order in which internal lock are dropped
13073 and the condvar's mutex are retrieved.
13074 * pthread_cond_timedwait.c: Likewise.
13075 Reported by dice@saros.East.Sun.COM.
13077 2002-10-07 Ulrich Drepper <drepper@redhat.com>
13079 * pthreadP.h: Cut out all type definitions and move them...
13080 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
13081 * pthreadP.h: Include <internaltypes.h>.
13083 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
13084 performance tweaks.
13086 * sem_trywait.c: Shuffle #includes around to get right order.
13087 * sem_timedwait.c: Likewise.
13088 * sem_post.c: Likewise.
13089 * sem_wait.c: Likewise.
13091 * nptl 0.3 released.
13093 * Makefile (tests): Add tst-signal3.
13094 * tst-signal3.c: New file.
13096 2002-10-05 Ulrich Drepper <drepper@redhat.com>
13098 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
13099 the asms modify the sem object.
13100 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
13102 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
13103 the actual members.
13104 * pthreadP.h (struct sem): New type. Actual semaphore type.
13105 * semaphoreP.h: Include pthreadP.h.
13106 * sem_getvalue.c: Adjust to sem_t change.
13107 * sem_init.c: Likewise.
13108 * sem_open.c: Likewise.
13109 * sem_post.c: Likewise.
13110 * sem_timedwait.c: Likewise.
13111 * sem_trywait.c: Likewise.
13112 * sem_wait.c: Likewise.
13114 2002-10-04 Ulrich Drepper <drepper@redhat.com>
13116 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
13117 * tst-basic2.c: New file.
13118 * tst-exec1.c: New file.
13119 * tst-exec2.c: New file.
13120 * tst-exec3.c: New file.
13122 * tst-fork1.c: Remove extra */.
13124 * nptl 0.2 released. The API for IA-32 is complete.