1 2012-03-07 Joseph Myers <joseph@codesourcery.com>
4 * sysdeps/pthread/configure.in (libc_cv_forced_unwind): Change
5 link test to a compile test.
6 (libc_cv_c_cleanup): Likewise. Declare puts rather than including
8 * sysdeps/pthread/configure: Regenerated.
10 2012-03-07 Ulrich Drepper <drepper@gmail.com>
12 * Makefile (distribute): Remove variable.
14 2012-01-23 Thomas Schwinge <thomas@codesourcery.com>
16 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Get rid of
17 superfluous assignment.
18 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c (sem_timedwait):
20 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
21 (sem_timedwait): Likewise.
23 2012-03-06 Ulrich Drepper <drepper@gmail.com>
25 * sysdeps/pthread/bits/libc-lock.h: Move information not needed in
26 installed headers to...
27 * sysdeps/pthread/bits/libc-lockP.h: ...here. New file.
29 2012-03-06 David S. Miller <davem@davemloft.net>
31 * sysdeps/unix/sysv/linux/sparc/sem_post.c (__new_sem_post): Use
32 atomic_increment and remove unused local variable.
33 (__old_sem_post): Likewise.
35 2012-02-27 David S. Miller <davem@davemloft.net>
37 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Don't refer to
38 non-existing __pthread_attr.
39 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
40 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
41 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
42 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
43 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
45 2012-02-26 Ulrich Drepper <drepper@gmail.com>
47 * sysdeps/pthread/pthread.h: Define __need_clockid_t for __USE_XOPEN2K.
49 * sysdeps/pthread/pthread.h: Define __need_timespec before including
51 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Name pthread_attr_t
53 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
54 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
55 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
56 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
57 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
59 2012-02-21 Joseph Myers <joseph@codesourcery.com>
62 * Makefile (generated): Remove crti.S, crtn.S, defs.h and
64 [crti.S not in sysdirs] (omit-deps): Do not append.
65 [crti.S not in sysdirs] (CFLAGS-pt-initfini.s): Remove variable.
66 [crti.S not in sysdirs] (pt-initfini.c): Remove vpath directive.
67 [crti.S not in sysdirs] ($(objpfx)crti.S): Remove rule.
68 [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
69 [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
70 [crti.S not in sysdirs] ($(objpfx)crti.o): Likewise.
71 [crti.S not in sysdirs] ($(objpfx)crtn.o): Likewise.
72 [crti.S in sysdirs] (extra-objs): Append unconditionally.
73 [crti.S in sysdirs] ($(objpfx)crti.o): Define rule
75 * sysdeps/pthread/pt-initfini.c: Remove file.
77 2012-02-16 Richard Henderson <rth@twiddle.net>
79 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: Remove file.
80 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: Remove file.
82 2012-02-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
84 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: Remove file.
86 2012-02-16 David S. Miller <davem@davemloft.net>
88 * sysdeps/sparc/Makefile: Add -fPIC when building pt-crti.S and crtn.S
90 2012-02-15 Marek Polacek <polacek@redhat.com>
92 * sysdeps/unix/sysv/linux/x86_64/Makefile: Remove file.
94 2012-02-09 Paul Eggert <eggert@cs.ucla.edu>
96 Replace FSF snail mail address with URLs, as per GNU coding standards.
98 2012-02-08 Andreas Schwab <schwab@linux-m68k.org>
100 * Makefile (extra-objs) [crti.S in sysdirs]: Add pt-crti.o.
102 2012-02-08 Joseph Myers <joseph@codesourcery.com>
104 Support crti.S and crtn.S provided directly by architectures.
105 * Makefile [crti.S in sysdirs] (omit-deps): Do not append.
106 [crti.S in sysdirs] (CFLAGS-pt-initfini.s): Do not define variable.
107 [crti.S in sysdirs] ($(objpfx)pt-initfini.s): Disable rule.
108 [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
109 [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
110 [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
111 [crti.S in sysdirs] ($(objpfx)crti.o): Likewise.
112 [crti.S in sysdirs] ($(objpfx)crtn.o): Likewise.
113 [crti.S in sysdirs] (pt-initfini.c): Remove vpath directive.
114 [crti.S in sysdirs] ($(objpfx)crti.o): New rule.
115 * pt-crti.S: New file.
116 * sysdeps/unix/sysv/linux/i386/Makefile: Remove file.
118 2012-02-03 Joseph Myers <joseph@codesourcery.com>
120 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
121 macros for PIC register setup.
122 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
123 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
124 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
125 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
126 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
128 2012-01-11 Marek Polacek <polacek@redhat.com>
130 * forward.c (FORWARD_NORETURN): Define macro.
131 (__pthread_unwind): Use FORWARD_NORETURN macro to avoid warning.
132 (__pthread_exit): Likewise.
134 2012-01-10 Ulrich Drepper <drepper@gmail.com>
136 * sysdeps/pthread/pthread.h: Add const attribute to pthread_equal.
138 * pthreadP.h: Add noreturn to __pthread_exit.
139 * sysdeps/pthread/pthread-functions.h: Likewise for ptr___pthread_exit.
141 2011-12-30 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
143 * sysdeps/unix/sysv/linux/aio_misc.h (__aio_create_helper_thread):
144 Call pthread_attr_setstacksize() with result of
145 __pthread_get_minstack() to account for application TLS usage.
147 2012-01-08 Marek Polacek <polacek@redhat.com>
149 * sysdeps/unix/sysv/linux/mq_notify.c: Include <nptl/pthreadP.h>.
151 2012-01-07 Ulrich Drepper <drepper@gmail.com>
154 * pthreadP.h: Use const instead of __const.
155 * semaphore.h: Likewise.
156 * sysdeps/pthread/bits/libc-lock.h: Likewise.
157 * sysdeps/pthread/bits/sigthread.h: Likewise.
158 * sysdeps/pthread/pthread.h: Likewise.
160 * Makefile: Remove elf=yes test, only ELF is supported.
162 * shlib-versions: Remove entries for ports architectures.
164 In case anyone cares, the IA-64 architecture could move to ports.
165 * sysdeps/ia64/*: Removed.
166 * sysdeps/unix/sysv/linux/ia64/*: Removed.
168 2011-12-22 Ulrich Drepper <drepper@gmail.com>
170 * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread): Use
171 __pthread_get_minstack.
172 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
175 * sysdeps/unix/sysv/linux/timer_routines.c: Get minimum stack size
176 through __pthread_get_minstack.
177 * nptl-init.c (__pthread_initialize_minimal_internal): Get page size
178 directly from _rtld_global_ro.
179 (__pthread_get_minstack): New function.
180 * pthreadP.h: Declare __pthread_get_minstack.
181 * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_get_minstack.
183 2011-12-21 Ulrich Drepper <drepper@gmail.com>
186 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
187 Correct reading name from file.
189 2011-12-14 Carlos O'Donell <carlos@systemhalted.org>
191 * allocatestack.c (allocate_stack): Return errno on failure.
193 2011-12-14 Jeff Law <law@redhat.com>
196 * pthread_create.c (__pthread_create_2_1): Translate ENOMEM to EAGAIN.
198 2011-11-28 Andreas Schwab <schwab@redhat.com>
200 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Handle
201 EAGAIN from FUTEX_WAIT_REQUEUE_PI.
202 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
204 2011-11-15 Ulrich Drepper <drepper@gmail.com>
206 * pthread_getattr_np.c (pthread_getattr_np): Set FD_CLOEXEC for
209 2011-10-29 Ulrich Drepper <drepper@gmail.com>
212 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
213 (__pthread_cond_timedwait): Initialize %r15 correctly also for code
214 path for kernels with FUTEX_CLOCK_REALTIME.
215 Debugged by H.J. Lu <hjl.tools@gmail.com>.
217 2011-10-27 Andreas Schwab <schwab@redhat.com>
220 * sysdeps/pthread/pthread.h: Use __THREADNL instead of __THREAD
221 for memory synchronization functions.
222 * semaphore.h: Likewise.
224 2011-10-24 Ulrich Drepper <drepper@gmail.com>
226 * tst-cancel7.c: Avoid warning.
227 * tst-mutex6.c: Likewise.
228 * tst-mutex9.c: Likewise.
229 * tst-mutexpi6.c: Likewise.
231 2011-10-23 Ulrich Drepper <drepper@gmail.com>
233 * sysdeps/i386/tls.h: Remove #include <list.h>.
235 2011-10-15 Ulrich Drepper <drepper@gmail.com>
237 * pthread_create.c (start_thread): Call __ctype_init.
239 2011-09-15 Andreas Schwab <schwab@redhat.com>
241 * sysdeps/pthread/list.h: Define only list_t if __need_list_t is
243 (list_add): Add atomic_write_barrier.
244 * descr.h: Define __need_list_t before including <list.h>.
245 * nptl-init.c: Include <list.h>
246 * allocatestack.c: Likewise.
248 2011-09-11 Ulrich Drepper <drepper@gmail.com>
250 * sysdeps/i386/tls.h: Remove HAVE_TLS_SUPPORT test.
251 * sysdeps/ia64/tls.h: Likewise.
252 * sysdeps/powerpc/tls.h: Likewise.
253 * sysdeps/s390/tls.h: Likewise.
254 * sysdeps/sh/tls.h: Likewise.
255 * sysdeps/sparc/tls.h: Likewise.
256 * sysdeps/x86_64/tls.h: Likewise.
258 2011-09-10 Ulrich Drepper <drepper@gmail.com>
260 * sysdeps/pthread/malloc-machine.h: Define MUTEX_INITIALIZER.
262 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Don't handle
264 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
265 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
266 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
267 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
268 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
269 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
270 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
271 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
272 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
273 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
274 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
275 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
277 * tst-tls1.c: Support for __thread is now mandatory.
278 * tst-tls2.c: Likewise.
279 * tst-tls3.c: Likewise.
280 * tst-tls3mod.c: Likewise.
281 * tst-tls4.c: Likewise.
282 * tst-tls4moda.c: Likewise.
283 * tst-tls4modb.c: Likewise.
284 * tst-tls5.h: Likewise.
286 2011-09-08 Ulrich Drepper <drepper@gmail.com>
289 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
290 (pthread_rwlock_timedwrlock): Use correct macro in test.
291 Patch by H.J. Lu <hongjiu.lu@intel.com>.
293 2011-09-06 Ulrich Drepper <drepper@gmail.com>
295 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait): Don't
296 use gettimeofday vsyscall, just call gettimeofday.
297 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
298 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
299 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
301 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
303 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
304 Simplify __vdso_clock_gettime use.
306 2011-09-05 David S. Miller <davem@davemloft.net>
308 * sysdeps/unix/sysv/linux/sem_timedwait.c (do_futex_timed_wait):
310 (sem_timedwait): Call it to force an exception region around
311 the async cancel enable and the futex operation.
312 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Likewise.
313 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Likewise.
314 * sysdeps/unix/sysv/linux/sem_wait.c (do_futex_wait): New function.
315 (__new_sem_wait): Call it to force an exception region around
316 the async cancel enable and the futex operation.
317 * sysdeps/unix/sysv/linux/sparc/sem_wait.c: Likewise.
318 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Likewise.
320 2011-08-31 Andreas Schwab <schwab@redhat.com>
322 * allocatestack.c (setxid_mark_thread): Ensure that the exiting
325 2011-08-20 David S. Miller <davem@davemloft.net>
327 * Makefile (tst-cleanup0.out): Fix typo in output redirection.
329 2011-08-14 Roland McGrath <roland@hack.frob.com>
331 * sysdeps/i386/pthreaddef.h (TCB_ALIGNMENT): Set to 64, optimal on Atom.
332 * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Likewise.
334 2011-08-08 Andreas Schwab <schwab@redhat.com>
336 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Maintain aligned
338 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
339 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
341 2011-07-22 Ulrich Drepper <drepper@gmail.com>
343 * sysdeps/pthread/unwind-forcedunwind.c (_Unwind_Resume): Add read
345 (__gcc_personality_v0): Likewise.
346 (_Unwind_ForcedUnwind): Likewise.
347 (_Unwind_GetCFA): Likewise.
349 2011-07-14 Roland McGrath <roland@hack.frob.com>
351 * allocatestack.c (__reclaim_stacks): Use uintptr_t cast rather than
354 2011-06-30 Ulrich Drepper <drepper@gmail.com>
356 * nptl-init.c (__nptl_set_robust): New function.
357 (pthread_functions): Add reference.
358 * npthreadP.h: Declare __nptl_set_robust.
359 * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
360 ptr_set_robust member.
361 * sysdeps/unix/sysv/linux/fork.c: Call set_robust_list syscall in
362 child if threads are used.
364 2011-06-14 Andreas Jaeger <aj@suse.de>
366 * pthread_rwlock_init.c: Include <string.h> for memset declaration.
368 2011-05-11 Ulrich Drepper <drepper@gmail.com>
371 * allocatestack.c (allocate_stack): Convert ENOMEM error to EAGAIN.
373 2011-04-10 Ulrich Drepper <drepper@gmail.com>
376 * allocatestack.c (get_cached_stack): Deallocate DTV entries before
378 Patch partly by Robert Rex <robert.rex@exasol.com>.
380 2011-01-19 Roland McGrath <roland@redhat.com>
382 * pthread_cond_wait.c (__pthread_cond_wait): Fix comment typo.
383 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
384 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Likewise.
385 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
386 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise.
387 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Likewise.
389 2011-01-16 Andreas Schwab <schwab@linux-m68k.org>
391 * Makefile (test-extras): Add tst-cleanup4aux.
393 2011-01-14 Ulrich Drepper <drepper@gmail.com>
396 * sysdeps/pthread/setxid.h (__SETXID_1): Add cast to assignment.
397 (__SETXID_2): Likewise.
398 (__SETXID_3): Likewise.
400 2011-01-13 Ulrich Drepper <drepper@gmail.com>
403 * Versions [libc] (GLIBC_PRIVATE): Export __libc_alloca_cutoff.
404 * alloca_cutoff.c: Add libc_hidden_def.
406 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
409 * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Changed to 32.
410 * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Defined with alignment
413 2010-09-21 Andreas Schwab <schwab@redhat.com>
415 * sysdeps/pthread/pthread.h (pthread_cleanup_push)
416 [!__EXCEPTIONS]: Mangle local variable not_first_call.
417 (pthread_cleanup_push_defer_np): Likewise.
419 2010-09-03 Ulrich Drepper <drepper@redhat.com>
421 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Expect blocks are
424 2010-08-10 Dinakar Guniguntala <dino@in.ibm.com>
425 Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
427 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: If
428 FUTEX_WAKE_OP fails make sure to call FUTEX_WAKE instead.
430 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
432 * sysdeps/unix/sysv/linux/i386/Makefile: New file.
434 2010-05-01 Alan Modra <amodra@gmail.com>
436 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
437 (PSEUDO): Use correct cr save. Don't use wrong parm save area
438 to save temps. Correct cfi for possible later frame manipulation.
439 (DOCARGS_1, UNDOCARGS_1): Use the correct parm save area.
440 (DOCARGS_2, UNDOCARGS_2, DOCARGS_3, UNDOCARGS_3): Likewise.
441 (DOCARGS_4, UNDOCARGS_4, DOCARGS_5, UNDOCARGS_5): Likewise.
442 (DOCARGS_6, UNDOCARGS_6): Likewise.
443 (CENABLE, CDISABLE): Add nops for non-shared calls.
445 2010-07-06 Andreas Schwab <schwab@redhat.com>
447 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
450 2010-07-03 Ulrich Drepper <drepper@redhat.com>
452 * tst-abstime.c (do_test): Some more cleanups
454 2010-07-02 Ulrich Drepper <drepper@redhat.com>
456 * tst-abstime.c: Correct testing and add test for sem_timedwait.
458 2010-07-01 Andreas Schwab <schwab@redhat.com>
459 Ulrich Drepper <drepper@redhat.com>
461 * Makefile (tests): Add tst-abstime.
462 * tst-abstime.c: New file.
463 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
464 (__lll_timedlock_wait): Check for timestamp before the Epoch.
465 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
466 (__lll_timedlock_wait): Likewise.
467 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
468 (__lll_robust_timedlock_wait): Likewise.
469 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
470 (__pthread_cond_timedwait): Likewise.
471 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
472 (pthread_rwlock_timedrdlock): Likewise.
473 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
474 (pthread_rwlock_timedwrlock): Likewise.
475 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
478 2010-07-01 Ulrich Drepper <drepper@redhat.com>
480 * Makefile (tst-_res1): Add tst-_res1mod1 to dependency list.
482 2010-06-01 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
484 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Fix incorrect
485 location of ifndef __ASSUME_FUTEX_CLOCK_REALTIME.
487 2010-04-09 Ulrich Drepper <drepper@redhat.com>
490 * sysdeps/unix/sysv/linux/pthread_getname.c: New file.
491 * sysdeps/unix/sysv/linux/pthread_setname.c: New file.
492 * nptl/sysdeps/pthread/pthread.h: Declare pthread_getname and
494 * Makefile (libpthread-routines): Add pthread_getname and
496 * Versions: Export pthread_getname and pthread_setname for GLIBC_2.12.
498 2010-04-05 Thomas Schwinge <thomas@schwinge.name>
500 * sysdeps/pthread/unwind-resume.c: Moved to main tree sysdeps/gnu/.
501 * sysdeps/pthread/rt-unwind-resume.c: Likewise.
502 * sysdeps/pthread/Makefile: Remove csu section and rt section's
503 unwind-resume bits, now in main tree sysdeps/gnu/Makefile instead.
505 2010-03-23 Luis Machado <luisgpm@br.ibm.com>
507 * pthread_cond_timedwait.c: Add check for
508 HAVE_CLOCK_GETTIME_VSYSCALL to use VDSO whenever possible.
509 (pthread_cond_timedwait): Use INTERNAL_VSYSCALL instead of
512 2010-03-09 Ulrich Drepper <drepper@redhat.com>
514 * pthread_create.c (__pthread_create_2_1): If priorities are incorrect
515 and the call fails wake eventually waiting setxid threads. Don't free
516 stack here if we try starting a thread.
517 * sysdeps/pthread/createthread.c (do_clone): Only wake setxid waiter
518 if the clone call failed.
520 2010-03-08 Andreas Schwab <schwab@redhat.com>
522 * pthread_create.c (__pthread_create_2_1): Don't set setxid_futex.
523 * allocatestack.c (get_cached_stack): Set setxid_futex.
524 (allocate_stack): Likewise.
526 2010-03-05 Andreas Schwab <schwab@redhat.com>
527 Ulrich Drepper <drepper@redhat.com>
529 * allocatestack.c (setxid_mark_thread): Delay handling of thread if
530 it is creating a thread or it is just being created.
531 * pthread_create.c (start_thread): Wake setxid thread if it is
533 (__pthread_create_2_1): Initialize setxid_futex.
534 * sysdeps/pthread/createthread.c (do_clone): Wake setxid thread if it
537 2010-01-15 Ulrich Drepper <drepper@redhat.com>
539 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
541 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
543 2010-01-15 Michal Schmidt <mschmidt@redhat.com>
545 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
546 Fix pthread_cond_timedwait with requeue-PI.
547 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
548 Fix pthread_cond_wait with requeue-PI.
550 2010-01-14 Ulrich Drepper <drepper@redhat.com>
552 * Versions: Add pthread_mutex_consistent, pthread_mutexattr_getrobust,
553 and pthread_mutexattr_setrobust for GLIBC_2.12.
554 * pthread_mutex_consistent.c: Define alias pthread_mutex_consistent.
555 * pthread_mutexattr_getrobust.c: Define alias
556 pthread_mutexattr_getrobust.
557 * pthread_mutexattr_setrobust.c: Define alias
558 pthread_mutexattr_setrobust.
560 2010-01-12 Ulrich Drepper <drepper@redhat.com>
562 * sysdeps/pthread/pthread.h: Cleanup. Fix up for XPG7.
564 2010-01-08 Ulrich Drepper <drepper@redhat.com>
566 * sysdeps/pthread/pthread.h: Fix pthread_mutex_consistent declaration.
568 2009-12-18 Thomas Schwinge <thomas@codesourcery.com>
570 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c (_init): Don't
572 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c (_init): Likewise.
574 2009-12-17 Ulrich Drepper <drepper@redhat.com>
576 * pthread_rwlock_init.c (__pthread_rwlock_init): Simplify code by
579 2009-12-01 Dinakar Guniguntala <dino@in.ibm.com>
581 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.h: Define
582 FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
583 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: If mutex
584 is a non robust PI mutex, then use FUTEX_CMP_REQUEUE_PI.
585 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
586 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: If mutex
587 is a non robust PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
588 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
590 2009-12-12 Ulrich Drepper <drepper@redhat.com>
592 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
593 Don't update nwaiters after invalid timeout is recognized.
595 2009-11-27 Thomas Schwinge <thomas@codesourcery.com>
597 * sysdeps/unix/sysv/linux/sh/pt-initfini.c (_init): Don't call
600 2009-11-27 Andreas Schwab <schwab@redhat.com>
602 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Reload
603 THREAD_SELF->cancelhandling after returning from futex call.
605 2009-11-24 Ulrich Drepper <drepper@redhat.com>
607 * tst-sem13.c: New file.
608 * Makefile (tests): Add tst-sem13.
610 2009-11-22 Roland McGrath <roland@redhat.com>
612 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: # include "i686/dl-sysdep.h"
613 instead of recapitulating its contents.
615 2009-11-18 Ulrich Drepper <drepper@redhat.com>
617 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Minor
618 optimizations and cleanups.
620 2009-11-18 Dinakar Guniguntala <dino@in.ibm.com>
622 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
623 Remove redundant code. Fix cfi offsets.
624 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
627 2009-11-17 Ulrich Drepper <drepper@redhat.com>
629 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Minimally
630 reduce size of unwind info.
632 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Convert to use
634 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
635 Based on a patch by Dinakar Guniguntala <dino@in.ibm.com>.
637 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
640 * sysdeps/pthread/unwind-resume.c: Include <libgcc_s.h> and use
642 * sysdeps/pthread/unwind-forcedunwind.c: Likewise.
644 2009-10-30 Ulrich Drepper <drepper@redhat.com>
646 * tst-sem11.c (main): Rewrite to avoid aliasing problems.
649 * allocatestack.c (__nptl_setxid): Perform the operation in multiple
650 steps to avoid races with creation and terminations.
651 * nptl-init.c (sighandler_setxid): Adjust.
652 Patch by Daniel Jacobowitz.
654 2009-09-07 Andreas Schwab <schwab@redhat.com>
656 * sysdeps/pthread/bits/libc-lock.h (BP_SYM): Remove space before paren.
658 2009-09-02 Suzuki K P <suzuki@in.ibm.com>
659 Joseph Myers <joseph@codesourcery.com>
662 * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
663 Initialize the sigev_notify field for newly created timer to make sure
664 the timer gets deleted from the active timer's list upon timer_delete.
666 2009-08-27 Andrew Stubbs <ams@codesourcery.com>
668 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
669 Correct a logic error.
671 2009-08-25 Ulrich Drepper <drepper@redhat.com>
673 * sysdeps/x86_64/tls.h (RTLD_ENABLE_FOREIGN_CALL): Store old value
674 of the field in local variables.
675 (RTLD_FINALIZE_FOREIGN_CALL): Restore rtld_must_xmm_save from local
676 variable and don't unconditionally clear it.
678 2009-08-24 Ulrich Drepper <drepper@redhat.com>
680 * pthread_create.c (start_thread): Hint to the kernel that memory for
681 the stack can be reused. We do not mark all the memory. The part
682 still in use and some reserve are kept.
684 2009-08-23 Ulrich Drepper <drepper@redhat.com>
686 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Clean up namespace.
688 2009-08-11 Ulrich Drepper <drepper@redhat.com>
690 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Add CFI
693 2009-08-10 Ulrich Drepper <drepper@redhat.com>
695 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Add CFI
697 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
699 2009-08-10 Andreas Schwab <schwab@redhat.com>
701 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
702 (__pthread_cond_signal): Don't clobber register used for syscall
705 2009-08-08 Ulrich Drepper <drepper@redhat.com>
707 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
708 Optimize code path used when FUTEX_CLOCK_REALTIME is supported.
710 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
711 (__pthread_cond_wait): Optimize by avoiding use of callee-safe
714 2009-08-07 Ulrich Drepper <drepper@redhat.com>
716 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Little optimizations
717 enabled by the special *_asynccancel functions.
718 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
719 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
721 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include lowlevellock.h.
723 2009-08-04 Ulrich Drepper <drepper@redhat.com>
725 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: New file.
726 * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: New file.
727 * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: New file.
728 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Optimize
729 since we can assume the special __*_{en,dis}able_asynccancel
731 (PUSHARGS_*, POPARGS_*, SAVESTK_*, RESTSTK_*): Removed.
732 * sysdeps/x86_64/tcb-offsets.sym: Add cancellation-related bits
733 and PTHREAD_CANCELED.
735 2009-07-31 Ulrich Drepper <drepper@redhat.com>
737 * descr.h: Better definition of *_BITMASK macros for cancellation.
739 2009-07-29 Ulrich Drepper <drepper@redhat.com>
741 * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Define explicitly to 32.
743 * sysdeps/x86_64/tls.h (tcbhead_t): Add room for SSE registers the
744 dynamic linker might have to save.
745 Define RTLD_CHECK_FOREIGN_CALL, RTLD_ENABLE_FOREIGN_CALL,
746 RTLD_PREPARE_FOREIGN_CALL, and RTLD_FINALIZE_FOREIGN_CALL. Pretty
749 * sysdeps/x86_64/tcb-offsets.sym: Add RTLD_SAVESPACE_SSE.
751 2009-07-28 Ulrich Drepper <drepper@redhat.com>
753 * pthread_mutex_lock.c [NO_INCR] (__pthread_mutex_cond_lock_adjust):
755 * pthreadP.h: Declare __pthread_mutex_cond_lock_adjust.
756 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add ROBUST_BIT.
757 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Don't use
758 requeue_pi for robust mutexes.
759 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
760 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
761 Don't only skip __pthread_mutex_cond_lock. Call instead
762 __pthread_mutex_cond_lock_adjust.
763 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
765 * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Minor
766 optimization of PI mutex handling.
768 2009-07-27 Ulrich Drepper <drepper@redhat.com>
771 * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Use _rel
772 instead of of _acq variants of cmpxchg.
774 2009-07-23 Ulrich Drepper <drepper@redhat.com>
776 * sysdeps/x86_64/configure.in: New file.
778 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix error
779 path when not using absolute timeout futex.
781 2009-07-20 Ulrich Drepper <drepper@redhat.com>
783 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Minor
784 optimizations of last changes.
785 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
787 2009-07-19 Ulrich Drepper <drepper@redhat.com>
789 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
790 FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
791 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: If mutex
792 is a PI mutex, then use FUTEX_CMP_REQUEUE_PI.
793 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
794 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: If mutex
795 is a PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
796 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
798 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
799 (__pthread_cond_timedwait): Make more robust.
801 2009-07-18 Ulrich Drepper <drepper@redhat.com>
803 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
804 (__lll_robust_timedlock_wait): If possible use FUTEX_WAIT_BITSET to
805 directly use absolute timeout.
807 * tst-sem5.c (do_test): Add test for premature timeout.
808 * Makefile: Linu tst-sem5 with librt.
810 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
811 (pthread_rwlock_timedwrlock): If possible use FUTEX_WAIT_BITSET to
812 directly use absolute timeout.
813 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
814 (pthread_rwlock_timedrdlock): Likewise.
816 * tst-cond11.c (run_test): Add test to check that the timeout is
819 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
820 (__pthread_cond_timedwait): If possible use FUTEX_WAIT_BITSET to
821 directly use absolute timeout.
823 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
824 (__pthread_cond_wait): Convert to using exception handler instead of
825 registered unwind buffer.
826 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
827 (__pthread_cond_timedwait): Likewise.
829 2009-07-17 Ulrich Drepper <drepper@redhat.com>
831 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
832 If possible use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME to directly
833 use absolute timeout.
835 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Optimize
836 handling of uncontested semaphore.
838 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
839 (__condvar_cleanup): Rewrite to use cfi directives instead of
840 hand-coded unwind tables.
841 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S (__pthread_once):
843 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
844 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
847 2009-06-12 Ulrich Drepper <drepper@redhat.com>
849 * Makefile (libpthread-routines): Add pthread_sigqueue.
850 * Versions: Add pthread_sigqueue for GLIBC_2.11.
851 * sysdeps/pthread/bits/sigthread.h: Declare pthread_sigqueue.
852 * sysdeps/unix/sysv/linux/pthread_sigqueue.c: New file.
854 2009-06-11 Ulrich Drepper <drepper@redhat.com>
857 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
858 (LOAD_FUTEX_WAIT_ABS): Fix futex parameter in case private futexes
860 Patch by Bryan Kadzban <bz-glibc@kdzbn.homelinux.net>.
862 2009-05-16 Ulrich Drepper <drepper@redhat.com>
864 * libc-cancellation.c: Move __libc_cleanup_routine to...
865 * libc-cleanup.c: ...here. New file.
866 * Makefile (routines): Add libc-cleanup.
868 * cancellation.c (__pthread_disable_asynccancel): Remove unnecessary
870 * libc-cancellation.c: Use <nptl/cancellation.c: to define the code.
871 * sysdeps/pthread/librt-cancellation.c: Likewise.
874 * nptl-init.c: Renamed from init.c.
875 * Makefile: Change all occurences of init.c to nptl-init.c.
877 2009-05-15 Ulrich Drepper <drepper@redhat.com>
879 * cancellation.c (__pthread_disable_asynccancel): Correct the bits
880 to test when deciding on the delay.
881 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
882 * pthread_cancel.c: Close race between deciding on sending a signal
883 and setting the CANCELING_BIT bit.
885 * cancellation.c (__pthread_disable_asynccancel): Don't return if
887 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
889 2009-04-27 Ulrich Drepper <drepper@redhat.com>
891 * cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND
893 * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
894 * sysdeps/x86_64/tls.h: Define THREAD_ATOMIC_AND.
895 * sysdeps/i386/tls.h: Likewise.
896 (tcbhead_t): Add __private_tm member.
898 2009-04-26 Ulrich Drepper <drepper@redhat.com>
900 * sem_open.c (sem_open): Rewrite initialization of initsem to
903 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
904 Avoid warning by using may_alias attribute on ptrhack.
906 2009-04-22 Ulrich Drepper <drepper@redhat.com>
909 * pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
910 Check policy and priority for validity.
911 Patch mostly by Zhang Xiliang <zhangxiliang@cn.fujitsu.com>.
913 2009-03-15 Ulrich Drepper <drepper@redhat.com>
915 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
916 (__pthread_cond_timedwait): Change to use cfi directives instead of
917 hand-coded unwind sections.
919 2009-03-10 Ulrich Drepper <drepper@redhat.com>
921 * init.c (nptl_freeres): Compile only for SHARED.
923 2009-03-09 Jakub Jelinek <jakub@redhat.com>
925 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define
926 FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME and
927 FUTEX_BITSET_MATCH_ANY.
929 2009-02-27 Roland McGrath <roland@redhat.com>
931 * init.c (__nptl_initial_report_events): Mark __attribute_used__.
932 * pthread_create.c (__nptl_threads_events, __nptl_last_event): Likewise.
934 2009-02-26 Ulrich Drepper <drepper@redhat.com>
936 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
937 _POSIX_THREAD_ROBUST_PRIO_INHERIT and
938 _POSIX_THREAD_ROBUST_PRIO_PROTECT. Reset value of macros from
941 2009-02-25 Ulrich Drepper <drepper@redhat.com>
943 * sysdeps/pthread/pthread.h: The robust mutex functions are in
946 2009-02-24 Ulrich Drepper <drepper@redhat.com>
948 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_BITS_POSIX_OPT_H):
949 Unify name of include protector macro.
951 2009-02-14 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
953 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
954 LOAD_FUTEX_WAIT_ABS even if (FUTEX_WAIT == 0).
956 2009-01-29 Ulrich Drepper <drepper@redhat.com>
958 * sysdeps/pthread/unwind-forcedunwind.c: Encrypt all function
961 * allocatestack.c (__free_stacks): Renamed from free_stacks.
962 (__free_stack_cache): Removed. Change callers to call __free_stacks.
963 * init.c (nptl_freeres): New function.
964 (pthread_functions): Initialize ptr_freeres to nptl_freeres.
965 * pthreadP.h: Don't declare __free_stack_cache. Declare __free_stacks.
966 * sysdeps/pthread/unwind-forcedunwind.c (libgcc_s_handle): New
968 (pthread_cancel_init): Depend in libgcc_s_handle for decision to
969 load DSO. Assign last.
970 (__unwind_freeres): New function.
972 * allocatestack.c (__reclaim_stacks): Reset in_flight_stack later
973 for better debugging. No need to use stack_list_add here.
975 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
977 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
978 (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
979 instead of computing relative timeout.
980 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
981 FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
983 2009-01-25 Ulrich Drepper <drepper@redhat.com>
985 * pthread_mutex_lock.c (__pthread_mutex_lock): Remove unused label out.
987 2009-01-08 Ulrich Drepper <drepper@redhat.com>
989 * sysdeps/pthread/list.h (list_add): Initialize new element first.
990 (list_add_tail): Removed.
992 2009-01-07 Ulrich Drepper <drepper@redhat.com>
994 * (in_flight_stack): New variable.
995 (stack_list_del): New function. Use instead of list_del.
996 (stack_list_add): New function. Use instead of list_add when adding to
997 stack_cache and stack_used lists.
998 (__reclaim_stacks): Complete operations on stack_cache and stack_used lists
999 when the fork call interrupted another thread.
1001 2009-01-04 Ulrich Drepper <drepper@redhat.com>
1003 * init.c (__pthread_initialize_minimal_internal): Optimize test
1004 FUTEX_CLOCK_REALTIME a bit.
1006 2009-01-03 Ulrich Drepper <drepper@redhat.com>
1008 * init.c (__pthread_initialize_minimal_internal): Cheat a bit by
1009 only passing five parameters to FUTEX_WAIT_BITSET call.
1011 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1012 (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
1013 instead of computing relative timeout.
1015 2009-01-02 Ulrich Drepper <drepper@redhat.com>
1017 * init.c (__pthread_initialize_minimal_internal): Check for
1018 FUTEX_CLOCK_REALTIME flag.
1019 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
1020 Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME instead of computing
1023 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
1024 FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
1025 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1026 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
1027 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
1028 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1030 2008-12-09 Ulrich Drepper <drepper@redhat.com>
1032 * sysdeps/pthread/pthread.h (pthread_cleanup_pop): Use { } as empty
1033 loop body instead of ; to avoid gcc warnings.
1034 (pthread_cleanup_pop_restore_np): Likewise.
1035 Patch by Caolán McNamara <caolanm@redhat.com>.
1037 2008-12-09 Jakub Jelinek <jakub@redhat.com>
1039 * pthread_mutex_lock.c (__pthread_mutex_lock): Handle only the
1040 fast path here, for robust/PI/PP mutexes call
1041 __pthread_mutex_lock_full. Don't use switch, instead use a series
1042 of ifs according to their probability.
1043 (__pthread_mutex_lock_full): New function.
1044 * pthread_mutex_unlock.c: Include assert.h.
1045 (__pthread_mutex_unlock_usercnt): Handle only the
1046 fast path here, for robust/PI/PP mutexes call
1047 __pthread_mutex_unlock_full. Don't use switch, instead use a series
1048 of ifs according to their probability.
1049 (__pthread_mutex_unlock_full): New function.
1050 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
1051 (__pthread_mutex_lock_full): Define.
1053 2008-12-08 Ulrich Drepper <drepper@redhat.com>
1055 * sysdeps/x86_64/tls.h (tcbhead_t): Add fields reserved for TM
1056 implementation. Add necessary padding and.
1057 * descr.h (struct pthread): Increase padding for tcbhead_t to 24
1060 2008-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1062 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define FUTEX_WAIT_BITSET
1063 and FUTEX_WAKE_BITSET.
1065 2008-12-02 Ulrich Drepper <drepper@redhat.com>
1067 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_WAIT_BITSET
1068 and FUTEX_WAKE_BITSET.
1069 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
1070 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
1071 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1072 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1074 2008-11-25 Roland McGrath <roland@redhat.com>
1076 * sysdeps/alpha, sysdeps/unix/sysv/linux/alpha:
1077 Subdirectories moved to ports repository as
1078 sysdeps/.../nptl subdirectories.
1080 2008-11-12 Jakub Jelinek <jakub@redhat.com>
1083 * pthread_condattr_setclock.c (pthread_condattr_setclock): Fix masking
1085 * pthread_cond_init.c (__pthread_cond_init): Fix
1086 cond->__data.__nwaiters initialization.
1087 * Makefile (tests): Add tst-cond23.
1088 * tst-cond23.c: New test.
1090 2008-11-07 Jakub Jelinek <jakub@redhat.com>
1092 * sysdeps/pthread/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1094 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1097 2008-11-01 Ulrich Drepper <drepper@redhat.com>
1100 * pthread_mutex_lock.c: Add support for private PI mutexes.
1101 * pthread_mutex_timedlock.c: Likewise.
1102 * pthread_mutex_trylock.c: Likewise.
1103 * pthread_mutex_unlock.c: Likewise.
1104 Patch mostly by Ben Jackson <ben@ben.com>.
1106 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1109 * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread):
1110 Increase stack size for helper thread.
1112 2008-10-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1114 * sysdeps/s390/tls.h (THREAD_SET_STACK_GUARD): Add empty inline
1115 assembly with a clobber list for access registers a0 and a1.
1117 2008-09-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
1119 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
1120 to force runp->refcntr to be read from memory.
1122 2008-09-08 Richard Guenther <rguenther@suse.de>
1124 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock,
1125 lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
1126 lll_timedlock, lll_robust_timedlock, lll_unlock,
1127 lll_robust_unlock): Promote private to int.
1129 2008-08-15 Ulrich Drepper <drepper@redhat.com>
1131 * sysdeps/x86_64/pthreaddef.h: Remove ARCH_MAP_FLAGS and
1132 ARCH_RETRY_MMAP definitions.
1133 * allocatestack.c: Remove definition of ARCH_MAP_FLAGS.
1134 Define MAP_STACK when not defined.
1135 (allocate_stack): Use MAP_STACK instead of ARCH_MAP_FLAGS. Remove
1136 handling of ARCH_RETRY_MMAP.
1138 2008-07-30 Ulrich Drepper <drepper@redhat.com>
1140 * tst-align2.c (f): Print message that f is reached.
1142 2008-04-28 Hiroki Kaminaga <kaminaga@sm.sony.co.jp>
1145 * sysdeps/powerpc/tcb-offsets.sym (PRIVATE_FUTEX_OFFSET): Guard symbol
1146 definition with #ifndef __ASSUME_PRIVATE_FUTEX.
1148 2008-07-25 Ulrich Drepper <drepper@redhat.com>
1150 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Use
1151 SOCK_CLOEXEC if possible.
1153 2008-05-29 Ulrich Drepper <drepper@redhat.com>
1155 * Makefile (tests): Add tst-rwlock2a.
1156 * tst-rwlock2.c: Use TYPE macro to decide what rwlock type to use.
1157 * tst-rwlock2a.c: New file.
1159 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1161 * sysdeps/pthread/pthread.h: Remove inadvertant checkin.
1163 2008-05-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
1165 * sysdeps/pthread/pthread.h: Fix typo in comment.
1167 2008-05-28 Ulrich Drepper <drepper@redhat.com>
1169 * sysdeps/pthread/createthread.c (do_clone): Pass accurate length
1170 of CPU set to the kernel.
1172 2008-05-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1174 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Add
1176 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
1177 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
1178 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
1179 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
1180 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
1181 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
1183 2008-05-22 Paul Pluzhnikov <ppluzhnikov@google.com>
1185 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: Add
1187 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1189 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
1191 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
1194 2008-05-26 Ulrich Drepper <drepper@redhat.com>
1196 * tst-typesizes.c: Explicitly check __SIZEOF_PTHREAD_* constants.
1198 2008-05-20 Jakub Jelinek <jakub@redhat.com>
1200 David S. Miller <davem@davemloft.net>
1202 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
1204 2008-05-10 Ulrich Drepper <drepper@redhat.com>
1206 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Access
1207 __pshared correctly.
1208 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1210 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1212 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
1214 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
1216 Reported by Clemens Kolbitsch <clemens.kol@gmx.at>.
1218 2008-04-14 David S. Miller <davem@davemloft.net>
1220 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
1221 (__old_sem_wait): Fix argument to lll_futex_wait().
1223 2007-11-26 Daniel Jacobowitz <dan@codesourcery.com>
1225 * pthread_create.c: Require pthread_mutex_trylock and
1226 pthread_key_delete for libgcc.
1228 2008-04-08 Jakub Jelinek <jakub@redhat.com>
1231 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
1232 (lll_futex_wake_unlock): Add private argument to the pre-v9 macro.
1233 Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>.
1235 2008-03-27 Ulrich Drepper <drepper@redhat.com>
1237 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine ARG_MAX if
1238 <linux/limits.h> has defined it.
1239 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
1240 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
1241 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
1242 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
1244 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1246 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Use __ASSEMBLER__ instead
1248 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
1249 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Likewise.
1251 2008-03-14 Ulrich Drepper <drepper@redhat.com>
1253 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
1254 HAVE_DL_DISCOVER_OSVERSION.
1255 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
1256 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Likewise.
1258 2008-03-07 Ulrich Drepper <drepper@redhat.com>
1261 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
1262 _POSIX_CHOWN_RESTRICTED value to zero.
1264 2008-01-31 Roland McGrath <roland@redhat.com>
1266 * Makefile (omit-deps): Variable removed.
1268 2008-01-30 Ulrich Drepper <drepper@redhat.com>
1270 * sysdeps/unix/sysv/linux/x86_64/sem_post.S (sem_post): Avoid
1271 unnecessary addr32 prefix.
1273 2008-01-29 Roland McGrath <roland@redhat.com>
1275 * Makeconfig (ptw-CPPFLAGS, sysd-rules-patterns): New variables.
1277 2008-01-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1279 * sysdeps/unix/sysv/linux/sh/sem_post.S: Don't overflow value field.
1281 2008-01-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1283 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XADD): Use
1285 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
1286 (__lll_lock_wait_private): Fix typo.
1287 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
1288 (pthread_barrier_wait): Likewise. Adjust XADD use.
1289 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
1291 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
1292 (pthread_rwlock_timedrdlock): Return correct return value.
1293 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
1294 (pthread_rwlock_timedwrlock): Likewise.
1296 2008-01-15 Ulrich Drepper <drepper@redhat.com>
1298 * tst-eintr2.c (do_test): make sure that if mutex_lock in main
1299 thread returns the program exits with an error code.
1301 2008-01-10 Ulrich Drepper <drepper@redhat.com>
1303 * pthread-errnos.sym: Add EOVERFLOW.
1304 * sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX.
1305 * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field.
1306 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
1307 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
1309 2007-12-14 Ulrich Drepper <drepper@redhat.com>
1311 * sysdeps/x86_64/pthreaddef.h (ARCH_RETRY_MMAP): Take additional
1312 parameter. Passed it as permission to mmap.
1313 * allocatestack.c (allocate_stack): Pass prot as second parameter
1316 2007-12-12 Ulrich Drepper <drepper@redhat.com>
1318 * tst-basic7.c: Allocate memory for the stack.
1321 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S [!SHARED]
1322 (__pthread_cond_timedwait): Don't use VDSO.
1323 Patch by Michal Januszewski.
1325 2007-12-07 Ulrich Drepper <drepper@redhat.com>
1328 * sysdeps/pthread/pthread.h [!__EXCEPTIONS] (pthread_cleanup_pop):
1329 Allow label before pthread_cleanup_pop.
1330 (pthread_cleanup_pop_restore_np): Likewise.
1332 2007-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1334 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
1335 Store 2 before returning ETIMEDOUT.
1337 2007-11-23 Ulrich Drepper <drepper@redhat.com>
1339 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
1340 Store 2 before returning ETIMEDOUT.
1341 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise
1342 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
1343 (__lll_lock_wait_private): Optimize.
1344 (__lll_lock_wait): Likewise.
1346 2007-11-20 Jakub Jelinek <jakub@redhat.com>
1348 * sysdeps/pthread/pthread.h (pthread_cleanup_push,
1349 pthread_cleanup_push_defer_np): Add extra (void *) cast to shut up
1350 g++ 4.1 and 4.2 -Wstrict-aliasing warnings.
1352 2007-11-08 Ulrich Drepper <drepper@redhat.com>
1355 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
1356 If we time out, try one last time to lock the futex to avoid
1357 losing a wakeup signal.
1358 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
1359 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1362 * sysdeps/pthread/createthread.c (do_clone): Translate clone error
1365 2007-11-07 Ulrich Drepper <drepper@redhat.com>
1368 * allocatestack.c (allocate_stack): Change ENOMEM error in case
1369 mmap failed to EAGAIN.
1370 * Makefile (tests): Add tst-basic7.
1371 * tst-basic7.c: New file.
1373 2007-11-05 Ulrich Drepper <drepper@redhat.com>
1375 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
1376 Use __linkin_atfork.
1378 2007-11-03 Mike Frysinger <vapier@gentoo.org>
1380 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (LOAD_FUTEX_WAIT): Add
1381 missing line continuations.
1382 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S (LOAD_FUTEX_WAIT,
1383 LOAD_FUTEX_WAKE): Likewise. Also add missing 3rd parameter.
1385 2007-10-28 Ulrich Drepper <drepper@redhat.com>
1388 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Declare
1389 __active_timer_sigev_thread and __active_timer_sigev_thread_lock.
1390 (struct timer): Add next element.
1391 * sysdeps/unix/sysv/linux/timer_create.c: For SIGEV_THREAD timers,
1392 enqueue timer structure into __active_timer_sigev_thread list.
1393 * sysdeps/unix/sysv/linux/timer_delete.c: For SIGEV_THREAD timers,
1394 remove timer struct from __active_timer_sigev_thread.
1395 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
1396 Before using timer structure make sure it is still on the
1397 __active_timer_sigev_thread list. Keep lock until done.
1398 Define __active_timer_sigev_thread and
1399 __active_timer_sigev_thread_lock.
1401 2007-10-27 Ulrich Drepper <drepper@redhat.com>
1403 * sysdeps/pthread/malloc-machine.h: Define ATFORK_MEM.
1404 Redefine thread_atfork for use of ATFORK_MEM.
1405 * sysdeps/unix/sysv/linux/fork.h: Define __linkin_atfork.
1406 * sysdeps/unix/sysv/linux/register-atfork.c (__linkin_atfork): New
1408 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
1409 Use atomic operation when removing first element of list.
1411 2007-10-17 Jakub Jelinek <jakub@redhat.com>
1413 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__old_sem_post): New
1414 routine instead of an alias to __new_sem_post.
1416 2007-10-15 Jakub Jelinek <jakub@redhat.com>
1418 * init.c (__pthread_initialize_minimal): Initialize word to appease
1421 2007-10-10 Jakub Jelinek <jakub@redhat.com>
1423 * sysdeps/pthread/bits/libc-lock.h (__libc_rwlock_init): Inside of
1424 libc.so just clear NAME.
1425 (__libc_rwlock_fini): Nop inside of libc.so.
1426 * tst-initializers1.c (main): Test if PTHREAD_RWLOCK_INITIALIZER is
1429 2007-09-02 Ulrich Drepper <drepper@redhat.com>
1431 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1432 (__pthread_cond_wait): Fix unlocking of internal lock after mutex
1434 Patch by Luca Barbieri <luca.barbieri@gmail.com>.
1436 2007-08-21 Ulrich Drepper <drepper@redhat.com>
1439 * allocatestack.c (__reclaim_stacks): Clear the TSD in the
1440 reclaimed stack if necessary.
1441 * Makefile (tests): Add tst-tsd6.
1442 * tst-tsd6.c: New file.
1444 2007-08-21 Jakub Jelinek <jakub@redhat.com>
1446 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_dead):
1447 Add private argument.
1449 2007-08-20 Ulrich Drepper <drepper@redhat.com>
1451 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1452 (__pthread_cond_timedwait): Use clock_gettime from VDSO if possible.
1454 2007-08-16 Jakub Jelinek <jakub@redhat.com>
1456 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h
1457 (__lll_robust_timedlock): Pass private as last argument to
1458 __lll_robust_timedlock_wait.
1459 (__lll_unlock): Fix a pasto.
1461 2007-08-15 Jakub Jelinek <jakub@redhat.com>
1463 * sysdeps/unix/sysv/linux/sparc/internaltypes.h (sparc_new_sem,
1464 sparc_old_sem): New structs.
1465 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
1466 (__sem_wait_cleanup): New function.
1467 (__new_sem_wait): Use sparc_new_sem structure. Bump and afterwards
1468 decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
1469 Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
1471 (__old_sem_wait): New function.
1472 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: Include
1473 nptl/sysdeps/unix/sysv/linux/sparc version.
1474 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
1476 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: Likewise.
1477 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c
1478 (__new_sem_trywait): Use sparc_old_sem structure.
1479 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
1480 (sem_timedwait): Use sparc_new_sem structure. Bump and afterwards
1481 decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
1482 Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
1483 lll_futex_timed_wait.
1484 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c (__new_sem_post):
1485 Use sparc_new_sem structure. Only wake if nwaiters > 0. Pass
1486 isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
1488 (__old_sem_post): New function.
1489 * sysdeps/unix/sysv/linux/sparc/sem_wait.c: New file.
1490 * sysdeps/unix/sysv/linux/sparc/sem_init.c: New file.
1491 * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: New file.
1492 * sysdeps/unix/sysv/linux/sparc/sem_post.c: New file.
1493 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: Remove.
1494 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: Remove.
1496 2007-08-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1498 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
1499 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
1500 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
1501 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
1502 * sysdeps/unix/sysv/linux/shpthread_cond_signal.S
1503 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
1504 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
1506 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
1507 kernel-features.h and tcb-offsets.h.
1508 (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
1509 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
1511 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
1513 (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE
1514 to lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
1516 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use #ifdef
1517 __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
1518 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
1519 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
1520 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
1521 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
1522 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
1524 2007-08-14 Jakub Jelinek <jakub@redhat.com>
1526 * sysdeps/unix/sysv/linux/lowlevellock.c: Comment fix.
1527 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
1528 (__lll_timedwait_tid): Pass LLL_SHARED as 4th argument to
1529 lll_futex_timed_wait.
1531 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (__lll_unlock,
1532 __lll_robust_unlock): Rewrite as macros instead of inline functions.
1533 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_unlock,
1534 __lll_robust_unlock, __lll_wait_tid): Likewise.
1536 2007-08-13 Jakub Jelinek <jakub@redhat.com>
1538 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
1540 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
1541 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
1542 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
1543 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
1544 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
1545 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
1546 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
1547 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Include
1549 (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
1550 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
1551 process private. Switch DW_CFA_advance_loc1 and some
1552 DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
1553 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
1554 (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE to
1555 lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
1556 process private. Switch DW_CFA_advance_loc{1,2} and some
1557 DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
1558 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use
1559 #ifdef __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
1560 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1562 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
1563 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
1564 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1566 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
1567 (__pthread_cond_broadcast): Compare %r8 instead of
1568 dep_mutex-cond_*(%rdi) with $-1.
1569 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
1570 (__pthread_cond_signal): Xor FUTEX_WAKE_OP with FUTEX_WAKE instead
1573 2007-08-13 Ulrich Drepper <drepper@redhat.com>
1575 * sysdeps/unix/sysv/linux/i386/i786/Implies: New file.
1577 2007-08-13 Jakub Jelinek <jakub@redhat.com>
1579 * allocatestack.c: Include kernel-features.h.
1580 * pthread_create.c: Likewise.
1581 * pthread_mutex_init.c: Likewise.
1583 * pthread_cond_timedwait.c: Likewise.
1584 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
1585 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
1586 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
1587 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
1588 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
1589 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1590 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1592 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1594 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1595 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
1596 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1597 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
1599 2007-08-12 Jakub Jelinek <jakub@redhat.com>
1601 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
1602 [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
1603 byte elements. One of them is the new __shared element.
1604 [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
1605 adjust names of other padding elements.
1606 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
1607 [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
1608 byte elements. One of them is the new __shared element.
1609 [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
1610 adjust names of other padding elements.
1611 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_rwlock_t):
1612 Renamed __pad1 element to __shared, adjust names of other padding
1614 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
1615 (pthread_rwlock_t): Likewise.
1616 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock): Fix a
1619 2007-08-09 Anton Blanchard <anton@samba.org>
1621 * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: New file.
1623 2007-08-12 Ulrich Drepper <drepper@redhat.com>
1625 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Include
1626 <kernel-features.h>.
1627 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1629 2007-08-11 Ulrich Drepper <drepper@redhat.com>
1631 * pthreadP.h (PTHREAD_ROBUST_MUTEX_PSHARED): Define.
1632 * pthread_mutex_lock.c: Use it instead of PTHREAD_MUTEX_PSHARED when
1633 dealing with robust mutexes.
1634 * pthread_mutex_timedlock.c: Likewise.
1635 * pthread_mutex_trylock.c: Likewise.
1636 * pthread_mutex_unlock.c: Likewise.
1637 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
1639 2007-08-06 Jakub Jelinek <jakub@redhat.com>
1641 * pthreadP.h (PTHREAD_MUTEX_PSHARED_BIT): Define.
1642 (PTHREAD_MUTEX_TYPE): Mask __kind with 127.
1643 (PTHREAD_MUTEX_PSHARED): Define.
1644 * pthread_mutex_init.c (__pthread_mutex_init): Set
1645 PTHREAD_MUTEX_PSHARED_BIT for pshared or robust
1647 * pthread_mutex_lock.c (LLL_MUTEX_LOCK): Take mutex as argument
1648 instead of its __data.__lock field, pass PTHREAD_MUTEX_PSHARED
1649 as second argument to lll_lock.
1650 (LLL_MUTEX_TRYLOCK): Take mutex as argument
1651 instead of its __data.__lock field.
1652 (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
1653 __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
1655 (__pthread_mutex_lock): Update LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
1656 LLL_ROBUST_MUTEX_LOCK users, use PTHREAD_MUTEX_TYPE (mutex)
1657 instead of mutex->__data.__kind directly, pass
1658 PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock and lll_futex_wait.
1659 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
1660 PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
1661 directly, pass PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock.
1662 (pthread_mutex_timedlock): Pass PTHREAD_MUTEX_PSHARED (mutex)
1663 to lll_timedlock, lll_robust_timedlock, lll_unlock and
1664 lll_futex_timed_wait. Use PTHREAD_MUTEX_TYPE (mutex) instead
1665 of mutex->__data.__kind directly.
1666 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Pass
1667 PTHREAD_MUTEX_PSHARED (mutex) to lll_timedlock,
1668 lll_robust_timedlock, lll_unlock and lll_futex_timed_wait. Use
1669 PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind directly.
1670 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Pass
1671 PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock, lll_robust_unlock
1673 * pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling): Pass
1674 PTHREAD_MUTEX_PSHARED (mutex) to lll_futex_wait and lll_futex_wake.
1675 Use PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
1677 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK):
1678 Take mutex as argument instead of its __data.__lock field, pass
1679 PTHREAD_MUTEX_PSHARED as second argument to lll_cond_lock.
1680 (LLL_MUTEX_TRYLOCK): Take mutex as argument instead of its
1681 __data.__lock field.
1682 (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
1683 __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
1684 to lll_robust_cond_lock.
1685 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Add pshared
1686 variable, pass it to lll_lock, lll_unlock, lll_futex_requeue and
1687 lll_futex_wake. Don't use lll_futex_requeue if dependent mutex
1688 has PTHREAD_MUTEX_PSHARED_BIT bit set in its __data.__kind.
1689 * pthread_cond_destroy.c (__pthread_cond_destroy): Add pshared
1690 variable, pass it to lll_lock, lll_unlock, lll_futex_wake and
1692 * pthread_cond_signal.c (__pthread_cond_signal): Add pshared
1693 variable, pass it to lll_lock, lll_unlock, lll_futex_wake_unlock and
1695 * pthread_cond_timedwait.c (__pthread_cond_wait): Add
1696 pshared variable, pass it to lll_lock, lll_unlock,
1697 lll_futex_timedwait and lll_futex_wake.
1698 * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait): Add
1699 pshared variable, pass it to lll_lock, lll_unlock, lll_futex_wait
1701 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_requeue,
1702 lll_futex_wake_unlock): Add private argument, use __lll_private_flag
1704 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue,
1705 lll_futex_wake_unlock): Likewise.
1706 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_requeue):
1708 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_requeue,
1709 lll_futex_wake_unlock): Likewise.
1710 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_requeue):
1712 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue,
1713 lll_futex_wake_unlock): Likewise.
1714 (lll_futex_wake): Fix a typo.
1715 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym (PS_BIT): Add.
1716 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
1717 (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
1718 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
1719 Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
1720 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
1721 (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
1722 FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
1723 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1724 (__pthread_cond_timedwait): Likewise.
1725 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
1726 (__condvar_cleanup, __pthread_cond_wait): Likewise.
1728 2007-08-05 Jakub Jelinek <jakub@redhat.com>
1730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
1731 Don't use CGOTSETUP and CGOTRESTORE macros.
1732 (CGOTSETUP, CGOTRESTORE): Remove.
1733 <IS_IN_rtld> (CENABLE, CDISABLE): Don't use JUMPTARGET, branch to
1736 2007-08-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1738 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove
1739 definitions for private futexes.
1740 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Include
1741 kernel-features.h and lowlevellock.h. Use private futexes if
1743 (__lll_lock_wait_private, __lll_unlock_wake_private): New.
1744 (__lll_mutex_lock_wait): Rename to
1745 (__lll_lock_wait): ... this. Don't compile in for libc.so.
1746 (__lll_mutex_timedlock_wait): Rename to ...
1747 (__lll_timedlock_wait): ... this. Use __NR_gettimeofday.
1748 Don't compile in for libc.so.
1749 (__lll_mutex_unlock_wake): Rename to ...
1750 (__lll_unlock_wake): ... this. Don't compile in for libc.so.
1751 (__lll_timedwait_tid): Use __NR_gettimeofday.
1752 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Allow including
1753 the header from assembler. Renamed all lll_mutex_* resp.
1754 lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
1755 Renamed all LLL_MUTEX_LOCK_* macros to LLL_LOCK_*.
1756 (FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE):
1758 (__lll_lock_wait_private): Add prototype.
1759 (__lll_lock_wait, __lll_timedlock_wait, __lll_robust_lock_wait,
1760 __lll_robust_timedlock_wait, __lll_unlock_wake_private,
1761 __lll_unlock_wake): Likewise.
1762 (lll_lock): Add private argument. Call __lll_lock_wait_private
1763 if private is constant LLL_PRIVATE.
1764 (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
1765 lll_timedlock, lll_robust_timedlock): Add private argument.
1766 (lll_unlock): Add private argument. Call __lll_unlock_wake_private
1767 if private is constant LLL_PRIVATE.
1768 (lll_robust_unlock, lll_robust_dead): Add private argument.
1769 (lll_lock_t): Remove.
1770 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
1771 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
1772 lll_cond_wake, lll_cond_broadcast): Remove.
1773 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Include
1774 kernel-features.h and lowlevellock.h.
1775 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
1776 (LOAD_FUTEX_WAIT): Define.
1777 (__lll_robust_mutex_lock_wait): Rename to ...
1778 (__lll_robust_lock_wait): ... this. Add private argument.
1779 Use LOAD_FUTEX_WAIT macro.
1780 (__lll_robust_mutex_timedlock_wait): Rename to ...
1781 (__lll_robust_timedlock_wait): ... this. Add private argument.
1782 Use __NR_gettimeofday. Use LOAD_FUTEX_WAIT macro.
1783 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Include
1785 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
1786 (pthread_barrier_wait): Use __lll_{lock,unlock}_* instead of
1787 __lll_mutex_{lock,unlock}_*.
1788 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Include
1789 lowlevellock.h and pthread-errnos.h.
1790 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
1791 FUTEX_CMP_REQUEUE, EINVAL): Remove.
1792 (__pthread_cond_broadcast): Use __lll_{lock,unlock}_* instead of
1793 __lll_mutex_{lock,unlock}_*.
1794 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Include
1795 lowlevellock.h and pthread-errnos.h.
1796 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE, EINVAL): Remove.
1797 (__pthread_cond_signal): Use __lll_{lock,unlock}_* instead of
1798 __lll_mutex_{lock,unlock}_*.
1799 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
1801 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE): Remove.
1802 (__pthread_cond_timedwait): Use __lll_{lock,unlock}_* instead of
1803 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
1804 (__condvar_tw_cleanup): Likewise.
1805 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
1807 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
1808 (__pthread_cond_wait): Use __lll_{lock,unlock}_* instead of
1809 __lll_mutex_{lock,unlock}_*.
1810 ( __condvar_w_cleanup): Likewise.
1811 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Include lowlevellock.h.
1812 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
1813 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Include
1815 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
1816 (__pthread_rwlock_rdlock): Use __lll_{lock,unlock}_* instead of
1817 __lll_mutex_{lock,unlock}_*.
1818 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Include
1820 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
1821 FUTEX_PRIVATE_FLAG): Remove.
1822 (pthread_rwlock_timedrdlock): Use __lll_{lock,unlock}_* instead of
1823 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
1824 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Include
1826 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
1827 FUTEX_PRIVATE_FLAG): Remove.
1828 (pthread_rwlock_timedwrlock): Use __lll_{lock,unlock}_* instead of
1829 __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
1830 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Include
1832 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
1833 (__pthread_rwlock_unlock): Use __lll_{lock,unlock}_* instead of
1834 __lll_mutex_{lock,unlock}_*.
1835 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Include
1837 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
1838 (__pthread_rwlock_wrlock): Use __lll_{lock,unlock}_* instead of
1839 __lll_mutex_{lock,unlock}_*.
1840 * sysdeps/unix/sysv/linux/sh/sem_post.S: Include lowlevellock.h.
1841 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
1842 (__new_sem_post): Use standard initial exec code sequences.
1843 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Include
1845 (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
1846 FUTEX_PRIVATE_FLAG): Remove.
1847 (sem_timedwait): Use __NR_gettimeofday. Use standard initial
1848 exec code sequences.
1849 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Include lowlevellock.h.
1850 (__new_sem_trywait): Use standard initial exec code sequences.
1851 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Include lowlevellock.h.
1852 (__new_sem_wait): Use standard initial exec code sequences.
1854 2007-07-31 Anton Blanchard <anton@samba.org>
1856 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
1857 Use __asm __volatile (__lll_acq_instr ::: "memory") instead of
1858 atomic_full_barrier.
1860 2007-07-31 Jakub Jelinek <jakub@redhat.com>
1862 * allocatestack.c (stack_cache_lock): Change type to int.
1863 (get_cached_stack, allocate_stack, __deallocate_stack,
1864 __make_stacks_executable, __find_thread_by_id, __nptl_setxid,
1865 __pthread_init_static_tls, __wait_lookup_done): Add LLL_PRIVATE
1866 as second argument to lll_lock and lll_unlock macros on
1868 * pthread_create.c (__find_in_stack_list): Likewise.
1869 (start_thread): Similarly with pd->lock. Use lll_robust_dead
1870 macro instead of lll_robust_mutex_dead, pass LLL_SHARED to it
1872 * descr.h (struct pthread): Change lock and setxid_futex field
1874 * old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0): Use
1875 LLL_LOCK_INITIALIZER instead of LLL_MUTEX_LOCK_INITIALIZER.
1876 * old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
1877 * old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
1879 * old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
1880 * pthread_cond_init.c (__pthread_cond_init): Likewise.
1881 * pthreadP.h (__attr_list_lock): Change type to int.
1882 * pthread_attr_init.c (__attr_list_lock): Likewise.
1883 * pthread_barrier_destroy.c (pthread_barrier_destroy): Pass
1884 ibarrier->private ^ FUTEX_PRIVATE_FLAG as second argument to
1886 * pthread_barrier_wait.c (pthread_barrier_wait): Likewise and
1887 also for lll_futex_{wake,wait}.
1888 * pthread_barrier_init.c (pthread_barrier_init): Make iattr
1890 * pthread_cond_broadcast.c (__pthread_cond_broadcast): Pass
1891 LLL_SHARED as second argument to lll_{,un}lock.
1892 * pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
1893 * pthread_cond_signal.c (__pthread_cond_singal): Likewise.
1894 * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
1895 * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait):
1897 * pthread_getattr_np.c (pthread_getattr_np): Add LLL_PRIVATE
1898 as second argument to lll_{,un}lock macros on pd->lock.
1899 * pthread_getschedparam.c (__pthread_getschedparam): Likewise.
1900 * pthread_setschedparam.c (__pthread_setschedparam): Likewise.
1901 * pthread_setschedprio.c (pthread_setschedprio): Likewise.
1902 * tpp.c (__pthread_tpp_change_priority, __pthread_current_priority):
1904 * sysdeps/pthread/createthread.c (do_clone, create_thread):
1906 * pthread_once.c (once_lock): Change type to int.
1907 (__pthread_once): Pass LLL_PRIVATE as second argument to
1908 lll_{,un}lock macros on once_lock.
1909 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Use
1910 lll_{,un}lock macros instead of lll_mutex_{,un}lock, pass
1911 rwlock->__data.__shared as second argument to them and similarly
1913 * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1915 * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1917 * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Likewise.
1918 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Likewise.
1919 * pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
1920 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
1921 * sem_close.c (sem_close): Pass LLL_PRIVATE as second argument
1922 to lll_{,un}lock macros on __sem_mappings_lock.
1923 * sem_open.c (check_add_mapping): Likewise.
1924 (__sem_mappings_lock): Change type to int.
1925 * semaphoreP.h (__sem_mappings_lock): Likewise.
1926 * pthread_mutex_lock.c (LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
1927 LLL_ROBUST_MUTEX_LOCK): Use lll_{,try,robust_}lock macros
1928 instead of lll_*mutex_*, pass LLL_SHARED as last
1930 (__pthread_mutex_lock): Use lll_unlock instead of lll_mutex_unlock,
1931 pass LLL_SHARED as last argument.
1932 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK,
1933 LLL_MUTEX_TRYLOCK, LLL_ROBUST_MUTEX_LOCK): Use
1934 lll_{cond_,cond_try,robust_cond}lock macros instead of lll_*mutex_*,
1935 pass LLL_SHARED as last argument.
1936 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
1937 lll_{timed,try,robust_timed,un}lock instead of lll_*mutex*, pass
1938 LLL_SHARED as last argument.
1939 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Similarly.
1940 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
1942 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_lock,
1943 __libc_lock_lock_recursive, __libc_lock_unlock,
1944 __libc_lock_unlock_recursive): Pass LLL_PRIVATE as second
1945 argument to lll_{,un}lock.
1946 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_lock,
1947 _IO_lock_unlock): Likewise.
1948 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Don't use
1950 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
1951 Pass LLL_PRIVATE as second argument to lll_{,un}lock macros on
1953 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork,
1954 free_mem): Likewise.
1955 (__fork_lock): Change type to int.
1956 * sysdeps/unix/sysv/linux/fork.h (__fork_lock): Likewise.
1957 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Pass
1958 isem->private ^ FUTEX_PRIVATE_FLAG as second argument to
1960 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
1961 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Likewise.
1962 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait_private):
1964 (__lll_lock_wait, __lll_timedlock_wait): Add private argument and
1965 pass it through to lll_futex_*wait, only compile in when
1967 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
1968 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Add private
1969 argument and pass it through to lll_futex_*wait.
1970 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Renamed all
1971 lll_mutex_* resp. lll_robust_mutex_* macros to lll_* resp.
1972 lll_robust_*. Renamed all __lll_mutex_* resp. __lll_robust_mutex_*
1973 inline functions to __lll_* resp. __lll_robust_*.
1974 (LLL_MUTEX_LOCK_INITIALIZER): Remove.
1975 (lll_mutex_dead): Add private argument.
1976 (__lll_lock_wait_private): New prototype.
1977 (__lll_lock_wait, __lll_robust_lock_wait, __lll_lock_timedwait,
1978 __lll_robust_lock_timedwait): Add private argument to prototypes.
1979 (__lll_lock): Add private argument, if it is constant LLL_PRIVATE,
1980 call __lll_lock_wait_private, otherwise pass private to
1982 (__lll_robust_lock, __lll_cond_lock, __lll_timedlock,
1983 __lll_robust_timedlock): Add private argument, pass it to
1984 __lll_*wait functions.
1985 (__lll_unlock): Add private argument, if it is constant LLL_PRIVATE,
1986 call __lll_unlock_wake_private, otherwise pass private to
1988 (__lll_robust_unlock): Add private argument, pass it to
1989 __lll_robust_unlock_wake.
1990 (lll_lock, lll_robust_lock, lll_cond_lock, lll_timedlock,
1991 lll_robust_timedlock, lll_unlock, lll_robust_unlock): Add private
1992 argument, pass it through to __lll_* inline function.
1993 (__lll_mutex_unlock_force, lll_mutex_unlock_force): Remove.
1994 (lll_lock_t): Remove.
1995 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
1996 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
1997 lll_cond_wake, lll_cond_broadcast): Remove.
1998 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
1999 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2000 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2001 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2002 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Allow including
2003 the header from assembler. Renamed all lll_mutex_* resp.
2004 lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
2005 (LOCK, FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP,
2006 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
2007 (LLL_MUTEX_LOCK_INITIALIZER, LLL_MUTEX_LOCK_INITIALIZER_LOCKED,
2008 LLL_MUTEX_LOCK_INITIALIZER_WAITERS): Remove.
2009 (__lll_mutex_lock_wait, __lll_mutex_timedlock_wait,
2010 __lll_mutex_unlock_wake, __lll_lock_wait, __lll_unlock_wake):
2012 (__lll_trylock_asm, __lll_lock_asm_start, __lll_unlock_asm): Define.
2013 (lll_robust_trylock, lll_cond_trylock): Use LLL_LOCK_INITIALIZER*
2014 rather than LLL_MUTEX_LOCK_INITIALIZER* macros.
2015 (lll_trylock): Likewise, use __lll_trylock_asm, pass
2016 MULTIPLE_THREADS_OFFSET as another asm operand.
2017 (lll_lock): Add private argument, use __lll_lock_asm_start, pass
2018 MULTIPLE_THREADS_OFFSET as last asm operand, call
2019 __lll_lock_wait_private if private is constant LLL_PRIVATE,
2020 otherwise pass private as another argument to __lll_lock_wait.
2021 (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
2022 lll_timedlock, lll_robust_timedlock): Add private argument, pass
2023 private as another argument to __lll_*lock_wait call.
2024 (lll_unlock): Add private argument, use __lll_unlock_asm, pass
2025 MULTIPLE_THREADS_OFFSET as another asm operand, call
2026 __lll_unlock_wake_private if private is constant LLL_PRIVATE,
2027 otherwise pass private as another argument to __lll_unlock_wake.
2028 (lll_robust_unlock): Add private argument, pass private as another
2029 argument to __lll_unlock_wake.
2030 (lll_robust_dead): Add private argument, use __lll_private_flag
2032 (lll_islocked): Use LLL_LOCK_INITIALIZER instead of
2033 LLL_MUTEX_LOCK_INITIALIZER.
2034 (lll_lock_t): Remove.
2035 (LLL_LOCK_INITIALIZER_WAITERS): Define.
2036 (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
2037 __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
2038 lll_cond_wake, lll_cond_broadcast): Remove.
2039 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2040 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Revert
2041 2007-05-2{3,9} changes.
2042 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Include
2043 kernel-features.h and lowlevellock.h.
2044 (LOAD_PRIVATE_FUTEX_WAIT): Define.
2045 (LOAD_FUTEX_WAIT): Rewritten.
2046 (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
2048 (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
2049 (__lll_mutex_lock_wait): Rename to ...
2050 (__lll_lock_wait): ... this. Take futex addr from %edx instead of
2051 %ecx, %ecx is now private argument. Don't compile in for libc.so.
2052 (__lll_mutex_timedlock_wait): Rename to ...
2053 (__lll_timedlock_wait): ... this. Use __NR_gettimeofday. %esi
2054 contains private argument. Don't compile in for libc.so.
2055 (__lll_mutex_unlock_wake): Rename to ...
2056 (__lll_unlock_wake): ... this. %ecx contains private argument.
2057 Don't compile in for libc.so.
2058 (__lll_timedwait_tid): Use __NR_gettimeofday.
2059 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Include
2060 kernel-features.h and lowlevellock.h.
2061 (LOAD_FUTEX_WAIT): Define.
2062 (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
2064 (__lll_robust_mutex_lock_wait): Rename to ...
2065 (__lll_robust_lock_wait): ... this. Futex addr is now in %edx
2066 argument, %ecx argument contains private. Use LOAD_FUTEX_WAIT
2068 (__lll_robust_mutex_timedlock_wait): Rename to ...
2069 (__lll_robust_timedlock_wait): ... this. Use __NR_gettimeofday.
2070 %esi argument contains private, use LOAD_FUTEX_WAIT macro.
2071 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Include
2073 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
2074 (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
2075 PRIVATE(%ebx) ^ LLL_SHARED as private argument in %ecx to
2076 __lll_lock_wait and __lll_unlock_wake, pass MUTEX(%ebx) address
2077 to __lll_lock_wait in %edx.
2078 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2079 Include lowlevellock.h and pthread-errnos.h.
2080 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
2081 FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
2082 (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*, pass
2083 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
2084 pass LLL_SHARED in %ecx to both __lll_lock_wait and
2086 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2087 Include lowlevellock.h and pthread-errnos.h.
2088 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
2089 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
2090 (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*, pass
2091 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
2092 pass LLL_SHARED in %ecx to both __lll_lock_wait and
2094 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2095 Include lowlevellock.h.
2096 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
2098 (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*, pass
2099 cond_lock address in %edx rather than %ecx to __lll_lock_wait,
2100 pass LLL_SHARED in %ecx to both __lll_lock_wait and
2101 __lll_unlock_wake. Use __NR_gettimeofday.
2102 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
2103 Include lowlevellock.h.
2104 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
2105 (__pthread_cond_wait, __condvar_w_cleanup): Rename __lll_mutex_*
2106 to __lll_*, pass cond_lock address in %edx rather than %ecx to
2107 __lll_lock_wait, pass LLL_SHARED in %ecx to both __lll_lock_wait
2108 and __lll_unlock_wake.
2109 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
2110 Include lowlevellock.h.
2111 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
2112 (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*, pass
2113 MUTEX(%ebx) address in %edx rather than %ecx to
2114 __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
2115 and __lll_unlock_wake. Move return value from %ecx to %edx
2117 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2118 Include lowlevellock.h.
2119 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
2121 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
2122 MUTEX(%ebp) address in %edx rather than %ecx to
2123 __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
2124 and __lll_unlock_wake. Move return value from %ecx to %edx
2125 register. Use __NR_gettimeofday.
2126 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2127 Include lowlevellock.h.
2128 (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
2130 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
2131 MUTEX(%ebp) address in %edx rather than %ecx to
2132 __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
2133 and __lll_unlock_wake. Move return value from %ecx to %edx
2134 register. Use __NR_gettimeofday.
2135 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2136 Include lowlevellock.h.
2137 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
2138 (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*, pass
2139 MUTEX(%edi) address in %edx rather than %ecx to
2140 __lll_lock_wait, pass PSHARED(%edi) in %ecx to both __lll_lock_wait
2141 and __lll_unlock_wake.
2142 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2143 Include lowlevellock.h.
2144 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
2145 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
2146 MUTEX(%ebx) address in %edx rather than %ecx to
2147 __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
2148 and __lll_unlock_wake. Move return value from %ecx to %edx
2150 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Include
2152 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
2154 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Include lowlevellock.h.
2155 (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
2156 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Include
2158 (LOCK, SYS_futex, SYS_gettimeofday, FUTEX_WAIT): Don't define.
2159 (sem_timedwait): Use __NR_gettimeofday.
2160 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Include
2162 (LOCK): Don't define.
2163 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include
2165 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
2166 * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Wake only when there
2168 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Revert
2169 2007-05-2{3,9} changes.
2170 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Include
2171 kernel-features.h and lowlevellock.h.
2172 (LOAD_PRIVATE_FUTEX_WAIT): Define.
2173 (LOAD_FUTEX_WAIT): Rewritten.
2174 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
2175 (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
2176 (__lll_mutex_lock_wait): Rename to ...
2177 (__lll_lock_wait): ... this. %esi is now private argument.
2178 Don't compile in for libc.so.
2179 (__lll_mutex_timedlock_wait): Rename to ...
2180 (__lll_timedlock_wait): ... this. %esi contains private argument.
2181 Don't compile in for libc.so.
2182 (__lll_mutex_unlock_wake): Rename to ...
2183 (__lll_unlock_wake): ... this. %esi contains private argument.
2184 Don't compile in for libc.so.
2185 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Include
2186 kernel-features.h and lowlevellock.h.
2187 (LOAD_FUTEX_WAIT): Define.
2188 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
2189 (__lll_robust_mutex_lock_wait): Rename to ...
2190 (__lll_robust_lock_wait): ... this. %esi argument contains private.
2191 Use LOAD_FUTEX_WAIT macro.
2192 (__lll_robust_mutex_timedlock_wait): Rename to ...
2193 (__lll_robust_timedlock_wait): ... this. %esi argument contains
2194 private, use LOAD_FUTEX_WAIT macro.
2195 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Include
2197 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
2198 (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
2199 PRIVATE(%rdi) ^ LLL_SHARED as private argument in %esi to
2200 __lll_lock_wait and __lll_unlock_wake.
2201 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
2202 Include lowlevellock.h and pthread-errnos.h.
2203 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
2204 FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
2205 (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*,
2206 pass LLL_SHARED in %esi to both __lll_lock_wait and
2208 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S:
2209 Include lowlevellock.h and pthread-errnos.h.
2210 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
2211 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
2212 (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*,
2213 pass LLL_SHARED in %esi to both __lll_lock_wait and
2215 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
2216 Include lowlevellock.h.
2217 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
2218 (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*,
2219 pass LLL_SHARED in %esi to both __lll_lock_wait and
2221 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
2222 Include lowlevellock.h.
2223 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
2224 (__pthread_cond_wait, __condvar_cleanup): Rename __lll_mutex_*
2225 to __lll_*, pass LLL_SHARED in %esi to both __lll_lock_wait
2226 and __lll_unlock_wake.
2227 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
2228 Include lowlevellock.h.
2229 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
2231 (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*,
2232 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
2233 and __lll_unlock_wake.
2234 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2235 Include lowlevellock.h.
2236 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
2238 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
2239 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
2240 and __lll_unlock_wake.
2241 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2242 Include lowlevellock.h.
2243 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
2245 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
2246 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
2247 and __lll_unlock_wake.
2248 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
2249 Include lowlevellock.h.
2250 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
2252 (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*,
2253 pass PSHARED(%rdi) in %esi to both __lll_lock_wait
2254 and __lll_unlock_wake.
2255 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
2256 Include lowlevellock.h.
2257 (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
2259 (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
2260 pass PSHARED(%rdi) in %ecx to both __lll_lock_wait
2261 and __lll_unlock_wake.
2262 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Include
2264 (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
2266 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Include lowlevellock.h.
2267 (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
2268 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Include
2270 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
2271 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Include
2273 (LOCK): Don't define.
2274 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Include
2276 (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
2277 * sysdeps/unix/sysv/linux/sparc/internaltypes.h: New file.
2278 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c: New file.
2279 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: New file.
2280 * sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: New file.
2281 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
2282 (__lll_lock_wait_private): New function.
2283 (__lll_lock_wait, __lll_timedlock_wait): Add private argument, pass
2284 it to lll_futex_*wait. Don't compile in for libc.so.
2285 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c:
2287 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c
2288 (struct sparc_pthread_barrier): Remove.
2289 (pthread_barrier_wait): Use union sparc_pthread_barrier instead of
2290 struct sparc_pthread_barrier. Pass
2291 ibarrier->s.pshared ? LLL_SHARED : LLL_PRIVATE to lll_{,un}lock
2292 and lll_futex_wait macros.
2293 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
2295 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
2296 Include sparc pthread_barrier_wait.c instead of generic one.
2298 2007-07-30 Jakub Jelinek <jakub@redhat.com>
2300 * tst-rwlock14.c (do_test): Avoid warnings on 32-bit arches.
2302 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
2303 (pthread_rwlock_timedrdlock): Copy futex retval to %esi rather than
2305 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
2306 (pthread_rwlock_timedwrlock): Likewise.
2307 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
2308 (__pthread_rwlock_unlock): Fix MUTEX != 0 args to __lll_*.
2310 2007-07-31 Jakub Jelinek <jakub@redhat.com>
2312 * sysdeps/sparc/tls.h (tcbhead_t): Add private_futex field.
2314 2007-07-26 Jakub Jelinek <jakub@redhat.com>
2316 * tst-locale2.c (useless): Add return statement.
2318 2007-07-24 Jakub Jelinek <jakub@redhat.com>
2320 * allocatestack.c (__nptl_setxid, __wait_lookup_done): Replace
2321 lll_private_futex_* (*) with lll_futex_* (*, LLL_PRIVATE).
2322 * pthread_create.c (start_thread): Likewise.
2323 * init.c (sighandler_setxid): Likewise.
2324 * sysdeps/alpha/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
2325 * sysdeps/ia64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
2326 * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
2327 * sysdeps/s390/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
2328 * sysdeps/powerpc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
2329 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
2330 * sysdeps/sparc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
2331 * sysdeps/sh/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
2332 * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT):
2334 * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT):
2336 * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
2338 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_waitzero,
2339 __rtld_notify): Likewise.
2340 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Likewise.
2341 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (clear_once_control,
2342 __pthread_once): Likewise.
2343 * sysdeps/unix/sysv/linux/alpha/pthread_once.c (clear_once_control,
2344 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
2345 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_PRIVATE_FLAG,
2346 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
2347 (lll_futex_wait): Add private argument, define as wrapper around
2348 lll_futex_timed_wait.
2349 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
2350 use __lll_private_flag macro.
2351 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
2352 __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
2353 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (clear_once_control,
2354 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
2355 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_PRIVATE_FLAG,
2356 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
2357 (lll_futex_wait): Add private argument, define as wrapper around
2358 lll_futex_timed_wait.
2359 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
2360 use __lll_private_flag macro.
2361 (__lll_mutex_unlock, __lll_robust_mutex_unlock, lll_wait_tid,
2362 __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
2363 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
2365 (lll_futex_timed_wait, lll_futex_wake): Use it.
2366 (lll_private_futex_wait, lll_private_futex_timed_wait,
2367 lll_private_futex_wake): Removed.
2368 * sysdeps/unix/sysv/linux/s390/pthread_once.c (clear_once_control,
2369 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
2370 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_PRIVATE_FLAG,
2371 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
2372 (lll_futex_wait): Add private argument, define as wrapper around
2373 lll_futex_timed_wait.
2374 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
2375 use __lll_private_flag macro.
2376 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
2377 lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
2379 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2380 (lll_private_futex_wait, lll_private_futex_timed_wait,
2381 lll_private_futex_wake): Removed.
2382 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_private_flag):
2383 Fix !__ASSUME_PRIVATE_FUTEX non-constant private case.
2384 (lll_private_futex_wait, lll_private_futex_timed_wait,
2385 lll_private_futex_wake): Removed.
2386 * sysdeps/unix/sysv/linux/sparc/pthread_once.c (clear_once_control,
2387 __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
2388 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_PRIVATE_FLAG,
2389 LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
2390 (lll_futex_wait): Add private argument, define as wrapper around
2391 lll_futex_timed_wait.
2392 (lll_futex_timed_wait, lll_futex_wake): Add private argument,
2393 use __lll_private_flag macro.
2394 (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
2395 lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
2397 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (__lll_private_flag):
2399 (lll_futex_timed_wait, lll_futex_wake): Use it.
2400 (lll_private_futex_wait, lll_private_futex_timed_wait,
2401 lll_private_futex_wake): Removed.
2403 2007-07-27 Jakub Jelinek <jakub@redhat.com>
2405 * sysdeps/sparc/tls.h (tcbhead_t): Move gscope_flag to the end
2406 of the structure for sparc32.
2408 2007-07-26 Aurelien Jarno <aurelien@aurel32.net>
2410 * sysdeps/sparc/tls.h (tcbhead_t): Add gscope_flag.
2412 2007-07-23 Ulrich Drepper <drepper@redhat.com>
2414 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
2415 code used when private futexes are assumed.
2416 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2419 2007-07-23 Jakub Jelinek <jakub@redhat.com>
2421 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2422 (__lll_private_flag): Define.
2423 (lll_futex_wait): Define as a wrapper around lll_futex_timed_wait.
2424 (lll_futex_timed_wait, lll_futex_wake, lll_futex_wake_unlock): Use
2426 (lll_private_futex_wait, lll_private_futex_timedwait,
2427 lll_private_futex_wake): Define as wrapper around non-_private
2429 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
2430 (__lll_private_flag): Define.
2431 (lll_futex_timed_wait, lll_futex_wake): Use __lll_private_flag.
2432 (lll_private_futex_wait, lll_private_futex_timedwait,
2433 lll_private_futex_wake): Define as wrapper around non-_private
2436 2007-07-10 Steven Munroe <sjmunroe@us.ibm.com>
2438 * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add LLL_SHARED
2439 parameter to lll_futex_wait call.
2440 * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
2442 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2443 Replace lll_futex_wait with lll_private_futex_wait.
2444 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
2445 Add LLL_SHARED parameter to lll_futex_wake().
2447 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define LLL_PRIVATE
2448 LLL_SHARED, lll_private_futex_wait, lll_private_futex_timed_wait and
2449 lll_private_futex_wake.
2450 (lll_futex_wait): Add private parameter. Adjust FUTEX_PRIVATE_FLAG
2451 bit from private parm before syscall.
2452 (lll_futex_timed_wait): Likewise.
2453 (lll_futex_wake): Likewise.
2454 (lll_futex_wake_unlock): Likewise.
2455 (lll_mutex_unlock): Add LLL_SHARED parm to lll_futex_wake call.
2456 (lll_robust_mutex_unlock): Likewise.
2457 (lll_mutex_unlock_force): Likewise.
2458 (lll_wait_tid): Add LLL_SHARED parm to lll_futex_wait call.
2460 2007-07-23 Ulrich Drepper <drepper@redhat.com>
2462 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
2463 compilation when unconditionally using private futexes.
2464 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
2465 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2467 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
2468 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
2470 2007-07-17 Jakub Jelinek <jakub@redhat.com>
2472 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
2475 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2477 * sysdeps/sh/tls.h: Include stdlib.h, list.h, sysdep.h and
2480 2007-05-16 Roland McGrath <roland@redhat.com>
2482 * init.c (__nptl_initial_report_events): New variable.
2483 (__pthread_initialize_minimal_internal): Initialize pd->report_events
2486 2007-06-22 Jakub Jelinek <jakub@redhat.com>
2488 * pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
2489 cpusetsize if pthread_getaffinity_np failed with ENOSYS.
2491 2007-06-19 Ulrich Drepper <drepper@redhat.com>
2493 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Remove mrlock
2496 2007-06-18 Ulrich Drepper <drepper@redhat.com>
2498 * pthreadP.h: Define PTHREAD_MUTEX_TYPE.
2499 * phtread_mutex_lock.c: Use PTHREAD_MUTEX_TYPE.
2500 * pthread_mutex_timedlock.c: Likewise.
2501 * pthread_mutex_trylock.c: Likewise.
2502 * pthread_mutex_unlock.c: Likewise.
2504 2007-06-17 Andreas Schwab <schwab@suse.de>
2506 * sysdeps/pthread/pt-initfini.c: Tell gcc about the nonstandard
2509 2007-06-17 Ulrich Drepper <drepper@redhat.com>
2511 * allocatestack.c (allocate_stack): Make code compile if
2512 __ASSUME_PRIVATE_FUTEX is set.
2514 2007-06-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2516 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S:
2517 (__pthread_rwlock_rdlock): Don't use non SH-3/4 instruction.
2518 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S:
2519 (__pthread_rwlock_wrlock): Likewise.
2520 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
2521 (pthread_rwlock_timedrdlock): Likewise.
2522 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
2523 (pthread_rwlock_timedwrlock): Likewise.
2524 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S:
2525 (__pthread_rwlock_unlock): Likewise.
2527 2007-06-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2529 * sysdeps/sh/tcb-offsets.sym: Add PRIVATE_FUTEX.
2530 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Include endian.h.
2531 Split __flags into __flags, __shared, __pad1 and __pad2.
2532 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Use private
2533 futexes if they are available.
2534 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Adjust so that change
2535 in libc-lowlevellock.S allow using private futexes.
2536 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
2537 FUTEX_PRIVATE_FLAG. Add additional parameter to lll_futex_wait,
2538 lll_futex_timed_wait and lll_futex_wake. Change lll_futex_wait
2539 to call lll_futex_timed_wait. Add lll_private_futex_wait,
2540 lll_private_futex_timed_wait and lll_private_futex_wake.
2541 (lll_robust_mutex_unlock): Fix typo.
2542 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Use private
2543 field in futex command setup.
2544 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Use
2545 COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.
2546 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
2547 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use private futexes
2548 if they are available. Remove clear_once_control.
2549 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Use private
2550 futexes if they are available.
2551 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
2552 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
2553 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
2554 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
2555 * sysdeps/unix/sysv/linux/sh/sem_post.S: Add private futex support.
2556 Wake only when there are waiters.
2557 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add private futex
2558 support. Indicate that there are waiters. Remove unnecessary
2559 extra cancellation test.
2560 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise. Removed
2561 left-over duplication of __sem_wait_cleanup.
2563 2007-06-07 Ulrich Drepper <drepper@redhat.com>
2565 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Add additional
2566 parameter to lll_futex_wait, lll_futex_timed_wait, and
2567 lll_futex_wake. Change lll_futex_wait to call lll_futex_timed_wait.
2568 Add lll_private_futex_wait, lll_private_futex_timed_wait, and
2569 lll_private_futex_wake.
2570 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2571 * allocatestack.c: Adjust use of lll_futex_* macros.
2573 * lowlevellock.h: Likewise.
2574 * pthread_barrier_wait.c: Likewise.
2575 * pthread_cond_broadcast.c: Likewise.
2576 * pthread_cond_destroy.c: Likewise.
2577 * pthread_cond_signal.c: Likewise.
2578 * pthread_cond_timedwait.c: Likewise.
2579 * pthread_cond_wait.c: Likewise.
2580 * pthread_create.c: Likewise.
2581 * pthread_mutex_lock.c: Likewise.
2582 * pthread_mutex_setprioceiling.c: Likewise.
2583 * pthread_mutex_timedlock.c: Likewise.
2584 * pthread_mutex_unlock.c: Likewise.
2585 * pthread_rwlock_timedrdlock.c: Likewise.
2586 * pthread_rwlock_timedwrlock.c: Likewise.
2587 * pthread_rwlock_unlock.c: Likewise.
2588 * sysdeps/alpha/tls.h: Likewise.
2589 * sysdeps/i386/tls.h: Likewise.
2590 * sysdeps/ia64/tls.h: Likewise.
2591 * sysdeps/powerpc/tls.h: Likewise.
2592 * sysdeps/pthread/aio_misc.h: Likewise.
2593 * sysdeps/pthread/gai_misc.h: Likewise.
2594 * sysdeps/s390/tls.h: Likewise.
2595 * sysdeps/sh/tls.h: Likewise.
2596 * sysdeps/sparc/tls.h: Likewise.
2597 * sysdeps/unix/sysv/linux/fork.c: Likewise.
2598 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
2599 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
2600 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Likewise.
2601 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
2602 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
2603 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
2604 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
2605 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
2606 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
2608 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Likewise.
2609 * sysdeps/x86_64/tls.h: Likewise.
2611 2007-05-29 Ulrich Drepper <drepper@redhat.com>
2613 * pthread_getattr_np.c: No need to install a cancellation handler,
2614 this is no cancellation point.
2615 * pthread_getschedparam.c: Likewise.
2616 * pthread_setschedparam.c: Likewise.
2617 * pthread_setschedprio.c: Likewise.
2618 * sysdeps/unix/sysv/linux/lowlevellock.c: Remove all traces of
2620 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
2621 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2622 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
2623 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2624 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2625 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2626 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
2627 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
2628 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2629 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Likewise.
2630 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2631 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2633 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Checking
2634 whether there are more than one thread makes no sense here since
2635 we only call the slow path if the locks are taken.
2636 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
2638 * sysdeps/unix/sysv/linux/internaltypes.h: Introduce
2639 COND_NWAITERS_SHIFT.
2640 * pthread_cond_destroy.c: Use COND_NWAITERS_SHIFT instead of
2642 * pthread_cond_init.c: Likewise.
2643 * pthread_cond_timedwait.c: Likewise.
2644 * pthread_cond_wait.c: Likewise.
2645 * pthread_condattr_getclock.c: Likewise.
2646 * pthread_condattr_setclock.c: Likewise.
2647 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Likewise.
2648 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
2649 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
2650 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2651 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
2653 2007-05-28 Jakub Jelinek <jakub@redhat.com>
2655 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: Include
2658 * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Use explicit
2660 (THREAD_GSCOPE_GET_FLAG): Remove.
2661 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Remove.
2662 * allocatestack.c (__wait_lookup_done): Revert 2007-05-24
2664 * sysdeps/powerpc/tls.h (tcbhead_t): Remove gscope_flag.
2665 (THREAD_GSCOPE_GET_FLAG): Remove.
2666 (THREAD_GSCOPE_RESET_FLAG): Use THREAD_SELF->header.gscope_flag
2667 instead of THREAD_GSCOPE_GET_FLAG.
2668 (THREAD_GSCOPE_SET_FLAG): Likewise. Add atomic_write_barrier after
2670 * sysdeps/s390/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
2671 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
2672 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
2673 THREAD_GSCOPE_WAIT): Define.
2674 * sysdeps/sparc/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
2675 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
2676 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
2677 THREAD_GSCOPE_WAIT): Define.
2678 * sysdeps/sh/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
2679 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
2680 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
2681 THREAD_GSCOPE_WAIT): Define.
2682 * sysdeps/ia64/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
2683 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
2684 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
2685 THREAD_GSCOPE_WAIT): Define.
2687 2007-05-24 Richard Henderson <rth@redhat.com>
2689 * descr.h (struct pthread): Add header.gscope_flag.
2690 * sysdeps/alpha/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
2691 THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
2692 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
2693 THREAD_GSCOPE_WAIT): Define.
2695 2007-05-27 Ulrich Drepper <drepper@redhat.com>
2697 * init.c: Make it compile with older kernel headers.
2699 * tst-initializers1.c: Show through exit code which test failed.
2701 * pthread_rwlock_init.c: Also initialize __shared field.
2702 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Split __flags
2703 element in rwlock structure into four byte elements. One of them is
2704 the new __shared element.
2705 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h [__WORDSIZE=32]:
2707 [__WORDSIZE=64]: Renamed __pad1 element int rwlock structure to
2708 __shared, adjust names of other padding elements.
2709 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
2710 * sysdeps/pthread/pthread.h: Adjust rwlock initializers.
2711 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Add PSHARED.
2712 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define
2714 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Change main
2715 futex to use private operations if possible.
2716 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2718 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2720 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
2721 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
2722 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
2723 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2725 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2727 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
2728 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
2730 2007-05-26 Ulrich Drepper <drepper@redhat.com>
2732 * pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Define.
2733 * pthread_rwlock_rdlock.c: Use PTHREAD_RWLOCK_PREFER_READER_P.
2734 * pthread_rwlock_timedrdlock.c: Likewise.
2735 * pthread_rwlock_tryrdlock.c: Likewise.
2737 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S (sem_trywait): Tiny
2740 * sysdeps/unix/sysv/linux/sem_wait.c: Add missing break.
2741 * sysdeps/unix/sysv/linux/sem_timedwait.c: Removed left-over
2742 duplication of __sem_wait_cleanup.
2744 * allocatestack.c: Revert last change.
2746 * sysdeps/i386/tls.h: Likewise.
2747 * sysdeps/x86_64/tls.h: Likewise.
2748 * descr.h [TLS_DTV_AT_TP] (struct pthread): Add private_futex field to
2750 * sysdeps/powerpc/tcb-offsets.sym: Add PRIVATE_FUTEX_OFFSET.
2752 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_barrier):
2754 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Add PRIVATE definition.
2755 * pthread_barrier_init.c: Set private flag if pshared and private
2756 futexes are supported.
2757 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Use
2758 private field in futex command setup.
2759 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
2761 2007-05-25 Ulrich Drepper <drepper@redhat.com>
2763 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Add private futex
2765 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
2766 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
2767 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
2768 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
2769 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
2771 * semaphoreP.h: Declare __old_sem_init and __old_sem_wait.
2772 * sem_init.c (__new_sem_init): Rewrite to initialize all three
2773 fields in the structure.
2774 (__old_sem_init): New function.
2775 * sem_open.c: Initialize all fields of the structure.
2776 * sem_getvalue.c: Adjust for renamed element.
2777 * sysdeps/unix/sysv/linux/Makefile [subdir=nptl]
2778 (gen-as-const-headers): Add structsem.sym.
2779 * sysdeps/unix/sysv/linux/structsem.sym: New file.
2780 * sysdeps/unix/sysv/linux/internaltypes.h: Rename struct sem to
2781 struct new_sem. Add struct old_sem.
2782 * sysdeps/unix/sysv/linux/sem_post.c: Wake only when there are waiters.
2783 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
2784 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
2785 * sysdeps/unix/sysv/linux/sem_wait.c: Indicate that there are waiters.
2786 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
2787 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
2788 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
2789 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
2790 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
2791 * Makefile (tests): Add tst-sem10, tst-sem11, tst-sem12.
2792 * tst-sem10.c: New file.
2793 * tst-sem11.c: New file.
2794 * tst-sem12.c: New file.
2795 * tst-typesizes.c: Test struct new_sem and struct old_sem instead
2798 2007-05-25 Ulrich Drepper <drepper@redhat.com>
2799 Jakub Jelinek <jakub@redhat.com>
2801 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
2802 Move __pthread_enable_asynccancel right before futex syscall.
2803 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
2806 2007-05-24 Jakub Jelinek <jakub@redhat.com>
2808 * sysdeps/i386/tls.h (THREAD_SET_PRIVATE_FUTEX,
2809 THREAD_COPY_PRIVATE_FUTEX): Define.
2810 * sysdeps/x86_64/tls.h (THREAD_SET_PRIVATE_FUTEX,
2811 THREAD_COPY_PRIVATE_FUTEX): Define.
2812 * allocatestack.c (allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX.
2813 * init.c (__pthread_initialize_minimal_internal): Use
2814 THREAD_SET_PRIVATE_FUTEX.
2816 * sysdeps/powerpc/tls.h (tcbhead_t): Add gscope_flag.
2817 (THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED,
2818 THREAD_GSCOPE_FLAG_WAIT): Define.
2819 (THREAD_GSCOPE_GET_FLAG, THREAD_GSCOPE_SET_FLAG,
2820 THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_WAIT): Define.
2821 * sysdeps/i386/tls.h (THREAD_GSCOPE_WAIT): Don't use
2823 (THREAD_GSCOPE_GET_FLAG): Define.
2824 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Define.
2825 * allocatestack.c (__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG
2826 instead of ->header.gscope_flag directly.
2828 2007-05-23 Ulrich Drepper <drepper@redhat.com>
2830 * init.c (__pthread_initialize_minimal_internal): Check whether
2831 private futexes are available.
2832 * allocatestack.c (allocate_stack): Copy private_futex field from
2833 current thread into the new stack.
2834 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Use private
2835 futexes if they are available.
2836 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise
2837 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Adjust so that change
2838 in libc-lowlevellock.S allow using private futexes.
2839 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
2840 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
2842 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2843 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use private futexes
2844 if they are available.
2845 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
2846 * sysdeps/x86_64/tcb-offsets.sym: Add PRIVATE_FUTEX.
2847 * sysdeps/i386/tcb-offsets.sym: Likewise.
2848 * sysdeps/x86_64/tls.h (tcbhead_t): Add private_futex field.
2849 * sysdeps/i386/tls.h (tcbhead_t): Likewise.
2851 2007-05-21 Ulrich Drepper <drepper@redhat.com>
2853 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
2854 Remove ptr_wait_lookup_done again.
2855 * init.c (pthread_functions): Don't add .ptr_wait_lookup_done here.
2856 (__pthread_initialize_minimal_internal): Initialize
2857 _dl_wait_lookup_done pointer in _rtld_global directly.
2858 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
2859 Remove code to code _dl_wait_lookup_done.
2860 * sysdeps/x86_64/tls.h (THREAD_GSCOPE_WAIT): The pointer is not
2863 2007-05-21 Jakub Jelinek <jakub@redhat.com>
2865 * tst-robust9.c (do_test): Don't fail if ENABLE_PI and
2866 pthread_mutex_init failed with ENOTSUP.
2868 2007-05-19 Ulrich Drepper <drepper@redhat.com>
2870 * allocatestack.c (__wait_lookup_done): New function.
2871 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
2872 Add ptr_wait_lookup_done.
2873 * init.c (pthread_functions): Initialize .ptr_wait_lookup_done.
2874 * pthreadP.h: Declare __wait_lookup_done.
2875 * sysdeps/i386/tls.h (tcbhead_t): Add gscope_flag.
2876 Define macros to implement reference handling of global scope.
2877 * sysdeps/x86_64/tls.h: Likewise.
2878 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
2879 Initialize GL(dl_wait_lookup_done).
2881 2007-05-17 Ulrich Drepper <drepper@redhat.com>
2884 * pthread_mutex_lock.c: Preserve FUTEX_WAITERS bit when dead owner
2886 * pthread_mutex_timedlock.c: Likewise.
2887 * pthread_mutex_trylock.c: Likewise.
2888 Patch in part by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2890 * Makefile (tests): Add tst-robust9 and tst-robustpi9.
2891 * tst-robust9.c: New file.
2892 * tst-robustpi9.c: New file.
2894 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Remove
2895 unnecessary extra cancellation test.
2897 2007-05-14 Ulrich Drepper <drepper@redhat.com>
2899 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove unnecessary
2900 extra cancellation test.
2901 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
2903 2007-05-10 Ulrich Drepper <drepper@redhat.com>
2905 * descr.h (struct pthread): Rearrange members to fill hole in
2908 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
2909 (__pthread_setaffinity_new): If syscall was successful and
2910 RESET_VGETCPU_CACHE is defined, use it before returning.
2911 * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: New file.
2913 2007-05-10 Jakub Jelinek <jakub@redhat.com>
2916 * tst-align2.c: Include stackinfo.h.
2917 * tst-getpid1.c: Likewise.
2919 2007-05-02 Carlos O'Donell <carlos@systemhalted.org>
2922 * tst-align2.c (do_test): Add _STACK_GROWS_UP case.
2923 * tst-getpid1.c (do_test): Likewise.
2926 * allocatestack.c (change_stack_perm): Add _STACK_GROWS_UP case.
2927 (allocate_stack): Likewise.
2929 2007-05-07 Ulrich Drepper <drepper@redhat.com>
2931 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
2932 (__lll_robust_lock_wait): Fix race caused by reloading of futex value.
2933 (__lll_robust_timedlock_wait): Likewise.
2934 Reported by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
2936 2007-05-06 Mike Frysinger <vapier@gentoo.org>
2939 * tst-cancel-wrappers.sh: Set C["fdatasync"] to 1.
2940 * tst-cancel4.c (tf_fdatasync): New test.
2942 2007-04-27 Ulrich Drepper <drepper@redhat.com>
2945 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Treat error
2946 check mutexes like normal mutexes.
2949 * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
2950 Initialize the whole sigevent structure to appease valgrind.
2952 2007-04-25 Ulrich Drepper <drepper@redhat.com>
2954 * sysdeps/x86_64/tls.h (tcbhead_t): Add vgetcpu_cache.
2955 * sysdeps/x86_64/tcb-offsets.sym: Add VGETCPU_CACHE_OFFSET.
2957 2007-04-06 Ulrich Drepper <drepper@redhat.com>
2959 * tst-locale1.c: Avoid warnings.
2960 * tst-locale2.c: Likewise.
2962 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
2964 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2965 (__lll_robust_trylock): Add MUTEX_HINT_ACQ to lwarx instruction.
2967 2007-03-16 Jakub Jelinek <jakub@redhat.com>
2969 * sysdeps/pthread/bits/libc-lock.h: Use __extern_inline and
2970 __extern_always_inline where appropriate.
2971 * sysdeps/pthread/pthread.h: Likewise.
2973 2007-03-13 Richard Henderson <rth@redhat.com>
2975 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use two
2976 separate cfi regions for the two subsections.
2978 2007-02-25 Ulrich Drepper <drepper@redhat.com>
2980 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in
2981 new thread, don't just decrement it.
2982 Patch by Suzuki K P <suzuki@in.ibm.com>.
2984 2007-02-21 Ulrich Drepper <drepper@redhat.com>
2986 * sysdeps/pthread/pthread-functions.h: Correct last patch, correct
2987 PTHFCT_CALL definition.
2989 2007-02-18 Ulrich Drepper <drepper@redhat.com>
2991 * sysdeps/pthread/pthread-functions.h: If PTR_DEMANGLE is not
2992 available, don't use it.
2994 2007-02-09 Jakub Jelinek <jakub@redhat.com>
2996 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
2997 (__lll_mutex_timedlock_wait): Use correct pointer when we don't
2998 call into the kernel to delay.
3000 2007-01-18 Ulrich Drepper <drepper@redhat.com>
3002 * tst-initializers1.c: We want to test the initializers as seen
3003 outside of libc, so undefined _LIBC.
3005 * pthread_join.c (cleanup): Avoid warning.
3007 2007-01-17 Ulrich Drepper <drepper@redhat.com>
3009 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
3010 (__lll_timedwait_tid): Add unwind info.
3012 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Don't just copy the
3013 function table, mangle the pointers.
3014 * sysdeps/pthread/pthread-functions.h: Define PTHFCT_CALL.
3015 * forward.c: Use PTHFCT_CALL and __libc_pthread_functions_init.
3016 * sysdeps/pthread/bits/libc-lock.h: When using __libc_pthread_functions
3017 demangle pointers before use.
3018 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Use PTHFCT_CALL to
3020 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
3021 * sysdeps/pthread/setxid.h: Likewise.
3023 2007-01-12 Ulrich Drepper <drepper@redhat.com>
3025 * tst-rwlock7.c: Show some more information in case of correct
3028 2007-01-11 Ulrich Drepper <drepper@redhat.com>
3030 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
3031 (lll_futex_timed_wait): Undo part of last change, don't negate
3034 2007-01-10 Ulrich Drepper <drepper@redhat.com>
3036 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Cleanups. Define
3037 FUTEX_CMP_REQUEUE and lll_futex_requeue.
3039 2006-12-28 David S. Miller <davem@davemloft.net>
3041 * shlib-versions: Fix sparc64 linux target specification.
3043 2007-01-10 Jakub Jelinek <jakub@redhat.com>
3045 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
3046 Adjust include path for pthread_barrier_wait.c move.
3048 2006-12-21 Jakub Jelinek <jakub@redhat.com>
3050 * sysdeps/unix/sysv/linux/pthread_kill.c (pthread_kill): Make sure
3051 tid isn't reread from pd->tid in between ESRCH test and the syscall.
3053 2006-12-06 Jakub Jelinek <jakub@redhat.com>
3055 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Handle
3056 6 argument cancellable syscalls.
3057 (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
3058 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Handle
3059 6 argument cancellable syscalls.
3060 (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
3062 2006-12-09 Ulrich Drepper <drepper@redhat.com>
3064 * sysdeps/unix/sysv/linux/rtld-lowlevel.h
3065 (__rtld_mrlock_initialize): Add missing closing parenthesis.
3067 2006-10-30 Jakub Jelinek <jakub@redhat.com>
3069 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
3070 __sync_lock_release instead of __sync_lock_release_si.
3072 2006-10-29 Jakub Jelinek <jakub@redhat.com>
3074 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (RTLD_SINGLE_THREAD_P):
3076 (SINGLE_THREAD_P): Define to 1 if IS_IN_rtld.
3077 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
3078 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
3079 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
3080 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
3081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
3082 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
3083 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
3084 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
3085 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
3086 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
3088 2006-10-27 Ulrich Drepper <drepper@redhat.com>
3090 * sysdeps/pthread/pthread_barrier_wait.c: Move to...
3091 * pthread_barrier_wait.c: ...here.
3092 * sysdeps/pthread/pthread_cond_broadcast.c: Move to...
3093 * pthread_cond_broadcast.c: ...here.
3094 * sysdeps/pthread/pthread_cond_signal.c: Move to...
3095 * pthread_cond_signal.c: ...here.
3096 * sysdeps/pthread/pthread_cond_timedwait.c: Move to...
3097 * pthread_cond_timedwait.c: ...here.
3098 * sysdeps/pthread/pthread_cond_wait.c: Move to...
3099 * pthread_cond_wait.c: ...here.
3100 * sysdeps/pthread/pthread_once.c: Move to...
3101 * pthread_once.c: ...here.
3102 * sysdeps/pthread/pthread_rwlock_rdlock.c: Move to...
3103 * pthread_rwlock_rdlock.c: ...here.
3104 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Move to...
3105 * pthread_rwlock_timedrdlock.c: ...here.
3106 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Move to...
3107 * pthread_rwlock_timedwrlock.c: ...here.
3108 * sysdeps/pthread/pthread_rwlock_unlock.c: Move to...
3109 * pthread_rwlock_unlock.c: ...here.
3110 * sysdeps/pthread/pthread_rwlock_wrlock.c: Move to...
3111 * pthread_rwlock_wrlock.c: ...here.
3112 * sysdeps/pthread/pthread_spin_destroy.c: Move to...
3113 * pthread_spin_destroy.c: ...here.
3114 * sysdeps/pthread/pthread_spin_init.c: Move to...
3115 * pthread_spin_init.c: ...here.
3116 * sysdeps/pthread/pthread_spin_unlock.c: Move to...
3117 * pthread_spin_unlock.c: ...here.
3118 * sysdeps/pthread/pthread_getcpuclockid.c: Move to...
3119 * pthread_getcpuclockid.c: ...here.
3121 * init.c: USE_TLS support is now always enabled.
3122 * tst-tls5.h: Likewise.
3123 * sysdeps/alpha/tls.h: Likewise.
3124 * sysdeps/i386/tls.h: Likewise.
3125 * sysdeps/ia64/tls.h: Likewise.
3126 * sysdeps/powerpc/tls.h: Likewise.
3127 * sysdeps/s390/tls.h: Likewise.
3128 * sysdeps/sh/tls.h: Likewise.
3129 * sysdeps/sparc/tls.h: Likewise.
3130 * sysdeps/x86_64/tls.h: Likewise.
3132 2006-10-27 Jakub Jelinek <jakub@redhat.com>
3134 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
3135 __rtld_mrlock_change): Update oldval if atomic compare and exchange
3138 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
3139 Define to THREAD_SELF->header.multiple_threads.
3140 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
3142 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
3144 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
3145 (SINGLE_THREAD_P): Likewise.
3146 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
3147 (SINGLE_THREAD_P): Likewise.
3148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
3149 (SINGLE_THREAD_P): Likewise.
3150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
3151 (SINGLE_THREAD_P): Likewise.
3152 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (SINGLE_THREAD_P):
3154 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
3155 (SINGLE_THREAD_P): Likewise.
3156 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
3157 (SINGLE_THREAD_P): Likewise.
3158 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (SINGLE_THREAD_P):
3161 2006-10-26 Jakub Jelinek <jakub@redhat.com>
3163 * pthread_attr_setstacksize.c (NEW_VERNUM): Define to GLIBC_2_3_3
3164 by default rather than 2_3_3.
3166 2006-10-17 Jakub Jelinek <jakub@redhat.com>
3168 * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
3169 __rtld_mrlock_unlock, __rtld_mrlock_change, __rtld_mrlock_done): Use
3170 atomic_* instead of catomic_* macros.
3172 2006-10-12 Ulrich Drepper <drepper@redhat.com>
3175 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add SEM_VALUE_MAX.
3176 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
3177 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
3178 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
3179 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
3180 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Remove SEM_VALUE_MAX.
3181 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
3182 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
3183 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
3184 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: Likewise.
3185 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
3186 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
3187 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
3189 2006-10-11 Ulrich Drepper <drepper@redhat.com>
3191 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add support for
3192 cancelable syscalls with six parameters.
3194 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Use catomic_*
3195 operations instead of atomic_*.
3197 2006-10-09 Ulrich Drepper <drepper@redhat.com>
3199 * sysdeps/unix/sysv/linux/rtld-lowlevel.h: New file..
3201 2006-10-07 Ulrich Drepper <drepper@redhat.com>
3203 * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: New file.
3204 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: New file.
3205 * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
3207 * pthread_attr_setstack.c: Allow overwriting the version number of the
3209 * pthread_attr_setstacksize.c: Likewise.
3210 (__old_pthread_attr_setstacksize): If STACKSIZE_ADJUST is defined use
3212 * sysdeps/unix/sysv/linux/powerpc/Versions (libpthread): Add
3213 pthread_attr_setstack and pthread_attr_setstacksize to GLIBC_2.6.
3215 2006-09-24 Ulrich Drepper <drepper@redhat.com>
3218 * descr.h (ENQUEUE_MUTEX_BOTH): Add cast to avoid warning.
3219 Patch by Petr Baudis.
3221 2006-09-18 Jakub Jelinek <jakub@redhat.com>
3223 * tst-kill4.c (do_test): Explicitly set tf thread's stack size.
3225 * tst-cancel2.c (tf): Loop as long as something was written.
3227 2006-09-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3229 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: For PI
3230 mutexes wake all mutexes.
3231 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Don't increment
3232 WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
3233 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
3235 2006-09-12 Ulrich Drepper <drepper@redhat.com>
3237 * tst-cond22.c (tf): Slight changes to the pthread_cond_wait use
3238 to guarantee the thread is always canceled.
3240 2006-09-08 Jakub Jelinek <jakub@redhat.com>
3242 * tst-cond22.c: Include pthread.h instead of pthreadP.h.
3244 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Only
3245 increase FUTEX if increasing WAKEUP_SEQ. Fix comment typo.
3246 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
3247 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
3248 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
3250 2006-09-08 Ulrich Drepper <drepper@redhat.com>
3253 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Don't
3254 increment WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
3255 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
3256 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
3257 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
3258 * Makefile (tests): Add tst-cond22.
3259 * tst-cond22.c: New file.
3261 2006-09-05 Ulrich Drepper <drepper@redhat.com>
3264 * descr.h (struct pthread): Add parent_cancelhandling.
3265 * sysdeps/pthread/createthread.c (create_thread): Pass parent
3266 cancelhandling value to child.
3267 * pthread_create.c (start_thread): If parent thread was canceled
3268 reset the SIGCANCEL mask.
3269 * Makefile (tests): Add tst-cancel25.
3270 * tst-cancel25.c: New file.
3272 2006-09-05 Jakub Jelinek <jakub@redhat.com>
3273 Ulrich Drepper <drepper@redhat.com>
3275 * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY): Don't decrement
3276 counterp if it is already zero.
3277 * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY): Likewise..
3279 2006-03-04 Jakub Jelinek <jakub@redhat.com>
3280 Roland McGrath <roland@redhat.com>
3282 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
3283 (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
3284 LLL_STUB_UNWIND_INFO_3, LLL_STUB_UNWIND_INFO_4): Define.
3285 (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
3286 lll_robust_mutex_cond_lock, lll_mutex_timedlock,
3287 lll_robust_mutex_timedlock, lll_mutex_unlock,
3288 lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
3289 Add _L_*_ symbols around the subsection.
3290 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Add unwind info.
3291 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Likewise.
3293 2006-03-03 Jakub Jelinek <jakub@redhat.com>
3294 Roland McGrath <roland@redhat.com>
3296 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
3297 (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
3298 LLL_STUB_UNWIND_INFO_5, LLL_STUB_UNWIND_INFO_6): Define.
3299 (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
3300 lll_robust_mutex_cond_lock, lll_mutex_timedlock,
3301 lll_robust_mutex_timedlock, lll_mutex_unlock,
3302 lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
3303 Add _L_*_ symbols around the subsection.
3304 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Add unwind info.
3305 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
3307 2006-08-31 Ulrich Drepper <drepper@redhat.com>
3309 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Undo last
3310 change because it can disturb too much existing code. If real hard
3311 reader preference is needed we'll introduce another type.
3312 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
3313 (pthread_rwlock_timedwrlock): Likewise.
3314 * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
3317 2006-08-30 Ulrich Drepper <drepper@redhat.com>
3319 * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Respect
3321 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
3322 (pthread_rwlock_timedwrlock): Likewise.
3323 * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
3326 2006-08-25 Jakub Jelinek <jakub@redhat.com>
3328 * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libpthread):
3329 Only define ifdef SHARED.
3331 2006-08-23 Ulrich Drepper <drepper@redhat.com>
3333 * allocatestack.c (queue_stack): Move freeing of surplus stacks to...
3334 (free_stacks): ...here.
3335 (__free_stack_cache): New function.
3336 * pthreadP.h: Declare __free_stack_cache.
3337 * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
3339 * init.c (pthread_functions): Initialize ptr_freeres.
3340 * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libptread):
3341 New freeres function.
3343 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
3346 * Makefile (extra-objs): Add modules to extra-test-objs instead.
3348 2006-08-20 Ulrich Drepper <drepper@redhat.com>
3350 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
3351 _XOPEN_REALTIME_THREADS.
3353 2006-08-15 Jakub Jelinek <jakub@redhat.com>
3355 * sysdeps/unix/sysv/linux/clock_settime.c (INTERNAL_VSYSCALL): Use
3356 HAVE_CLOCK_GETRES_VSYSCALL as guard macro rather than
3357 HAVE_CLOCK_GETTIME_VSYSCALL.
3358 (maybe_syscall_settime_cpu): Use plain INTERNAL_VSYSCALL here.
3360 2006-08-14 Jakub Jelinek <jakub@redhat.com>
3362 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3363 (_POSIX_THREAD_PRIO_PROTECT): Define to 200112L.
3364 * descr.h (struct priority_protection_data): New type.
3365 (struct pthread): Add tpp field.
3366 * pthreadP.h (PTHREAD_MUTEX_PP_NORMAL_NP,
3367 PTHREAD_MUTEX_PP_RECURSIVE_NP, PTHREAD_MUTEX_PP_ERRORCHECK_NP,
3368 PTHREAD_MUTEX_PP_ADAPTIVE_NP): New enum values.
3369 * pthread_mutex_init.c (__pthread_mutex_init): Handle non-robust
3371 * pthread_mutex_lock.c (__pthread_mutex_lock): Handle TPP mutexes.
3372 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
3373 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
3374 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
3376 * pthread_setschedparam.c (__pthread_setschedparam): Handle priority
3378 * pthread_setschedprio.c (pthread_setschedprio): Likewise.
3379 * pthread_mutexattr_getprioceiling.c
3380 (pthread_mutexattr_getprioceiling): If ceiling is 0, ensure it is
3381 in the SCHED_FIFO priority range.
3382 * pthread_mutexattr_setprioceiling.c
3383 (pthread_mutexattr_setprioceiling): Fix prioceiling validation.
3384 * pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling): Fail
3385 if mutex is not TPP. Ceiling is now in __data.__lock.
3386 * pthread_mutex_setprioceiling.c: Include stdbool.h.
3387 (pthread_mutex_setprioceiling): Fix prioceiling validation. Ceiling
3388 is now in __data.__lock. Add locking.
3389 * pthread_create.c (__free_tcb): Free pd->tpp structure.
3390 * Makefile (libpthread-routines): Add tpp.
3391 (xtests): Add tst-mutexpp1, tst-mutexpp6 and tst-mutexpp10.
3392 * tst-tpp.h: New file.
3393 * tst-mutexpp1.c: New file.
3394 * tst-mutexpp6.c: New file.
3395 * tst-mutexpp10.c: New file.
3396 * tst-mutex1.c (TEST_FUNCTION): Don't redefine if already defined.
3397 * tst-mutex6.c (TEST_FUNCTION): Likewise.
3399 2006-08-12 Ulrich Drepper <drepper@redhat.com>
3402 * pthread_join.c (pthread_join): Account for self being canceled
3403 when checking for deadlocks.
3404 * tst-join5.c: Cleanups. Allow to be used in tst-join6.
3405 (tf1): Don't print anything after pthread_join returns, this would be
3406 another cancellation point.
3408 * tst-join6.c: New file.
3409 * Makefile (tests): Add tst-join6.
3411 2006-08-03 Ulrich Drepper <drepper@redhat.com>
3414 * pthread_setspecific.c (__pthread_setspecific): Check
3415 out-of-range index before checking for unused key.
3417 * sysdeps/pthread/gai_misc.h: New file.
3419 2006-08-01 Ulrich Drepper <drepper@redhat.com>
3421 * sysdeps/unix/sysv/linux/i386/smp.h: New file. Old Linux-specific
3422 file. Don't use sysctl.
3423 * sysdeps/unix/sysv/linux/smp.h: Always assume SMP. Archs can
3424 overwrite the file if this is likely not true.
3426 2006-07-31 Daniel Jacobowitz <dan@codesourcery.com>
3428 * allocatestack.c (__reclaim_stacks): Reset the PID on cached stacks.
3429 * Makefile (tests): Add tst-getpid3.
3430 * tst-getpid3.c: New file.
3432 2006-07-30 Roland McGrath <roland@redhat.com>
3434 * Makefile (libpthread-routines): Add ptw-sigsuspend.
3436 * sysdeps/unix/sysv/linux/i386/not-cancel.h
3437 (pause_not_cancel): New macro.
3438 (nanosleep_not_cancel): New macro.
3439 (sigsuspend_not_cancel): New macro.
3440 * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
3441 nanosleep_not_cancel macro from <not-cancel.h>.
3442 * pthread_mutex_lock.c (__pthread_mutex_lock): Use pause_not_cancel
3443 macro from <not-cancel.h>.
3445 2006-07-28 Ulrich Drepper <drepper@redhat.com>
3446 Jakub Jelinek <jakub@redhat.com>
3448 * descr.h: Change ENQUEUE_MUTEX and DEQUEUE_MUTEX for bit 0
3449 notification of PI mutex. Add ENQUEUE_MUTEX_PI.
3450 * pthreadP.h: Define PTHREAD_MUTEX_PI_* macros for PI mutex types.
3451 * pthread_mutex_setprioceilining.c: Adjust for mutex type name change.
3452 * pthread_mutex_init.c: Add support for priority inheritance mutex.
3453 * pthread_mutex_lock.c: Likewise.
3454 * pthread_mutex_timedlock.c: Likewise.
3455 * pthread_mutex_trylock.c: Likewise.
3456 * pthread_mutex_unlock.c: Likewise.
3457 * sysdeps/pthread/pthread_cond_broadcast.c: For PI mutexes wake
3459 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.c: Likewise.
3460 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.c: Likewise.
3461 * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: New file.
3462 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-header): Add
3463 pthread-pi-defines.sym.
3464 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_LOCK_PI,
3465 FUTEX_UNLOCK_PI, and FUTEX_TRYLOCK_PI.
3466 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3467 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
3468 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
3469 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
3470 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
3471 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
3472 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3473 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
3474 _POSIX_THREAD_PRIO_INHERIT to 200112L.
3475 * tst-mutex1.c: Adjust to allow use in PI mutex test.
3476 * tst-mutex2.c: Likewise.
3477 * tst-mutex3.c: Likewise.
3478 * tst-mutex4.c: Likewise.
3479 * tst-mutex5.c: Likewise.
3480 * tst-mutex6.c: Likewise.
3481 * tst-mutex7.c: Likewise.
3482 * tst-mutex7a.c: Likewise.
3483 * tst-mutex8.c: Likewise.
3484 * tst-mutex9.c: Likewise.
3485 * tst-robust1.c: Likewise.
3486 * tst-robust7.c: Likewise.
3487 * tst-robust8.c: Likewise.
3488 * tst-mutexpi1.c: New file.
3489 * tst-mutexpi2.c: New file.
3490 * tst-mutexpi3.c: New file.
3491 * tst-mutexpi4.c: New file.
3492 * tst-mutexpi5.c: New file.
3493 * tst-mutexpi6.c: New file.
3494 * tst-mutexpi7.c: New file.
3495 * tst-mutexpi7a.c: New file.
3496 * tst-mutexpi8.c: New file.
3497 * tst-mutexpi9.c: New file.
3498 * tst-robust1.c: New file.
3499 * tst-robust2.c: New file.
3500 * tst-robust3.c: New file.
3501 * tst-robust4.c: New file.
3502 * tst-robust5.c: New file.
3503 * tst-robust6.c: New file.
3504 * tst-robust7.c: New file.
3505 * tst-robust8.c: New file.
3506 * Makefile (tests): Add the new tests.
3508 * pthread_create.c (start_thread): Add some casts to avoid warnings.
3509 * pthread_mutex_destroy.c: Remove unneeded label.
3511 2006-07-01 Ulrich Drepper <drepper@redhat.com>
3513 * pthread_mutex_init.c (__pthread_mutex_init): Move some
3514 computations to compile time.
3516 2006-06-04 Ulrich Drepper <drepper@redhat.com>
3518 * sysdeps/pthread/pthread.h: Add pthread_equal inline version.
3520 2006-05-15 Ulrich Drepper <drepper@redhat.com>
3522 * sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.
3524 2006-05-11 Ulrich Drepper <drepper@redhat.com>
3526 * pthread_key_create.c (__pthread_key_create): Do away with
3527 __pthread_keys_lock.
3529 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
3530 (__kernel_cpumask_size): Mark as hidden.
3531 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
3533 * sem_open.c (__sem_mappings_lock): Mark as hidden.
3534 * semaphoreP.h (__sem_mappings_lock): Likewise.
3536 2006-05-10 Ulrich Drepper <drepper@redhat.com>
3538 * pthread_atfork.c: Mark __dso_handle as hidden.
3540 2006-05-09 Ulrich Drepper <drepper@redhat.com>
3543 * sysdeps/pthread/unwind-forcedunwind.c: Different solution for
3544 the reload problem. Change the one path in pthread_cancel_init
3545 which causes the problem. Force gcc to reload. Simplify callers.
3546 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c
3547 (_Unwind_GetBSP): Undo last patch.
3549 2006-05-07 Ulrich Drepper <drepper@redhat.com>
3551 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: Make sure the
3552 function pointer is reloaded after pthread_cancel_init calls.
3555 * sysdeps/pthread/unwind-forcedunwind.c: Make sure functions
3556 pointers are reloaded after pthread_cancel_init calls.
3558 2006-05-01 Ulrich Drepper <drepper@redhat.com>
3560 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Mark with
3563 2006-04-27 Ulrich Drepper <drepper@redhat.com>
3565 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
3566 Allocate new object which is passed to timer_sigev_thread so that
3567 the timer can be deleted before the new thread is scheduled.
3569 2006-04-26 Roland McGrath <roland@redhat.com>
3571 * sysdeps/x86_64/tls.h: Include <asm/prctl.h> inside [! __ASSEMBLER__].
3573 2006-04-08 Ulrich Drepper <drepper@redhat.com>
3575 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove branch predicion
3576 suffix for conditional jumps.
3577 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
3578 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
3579 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
3580 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
3581 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
3582 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
3584 * init.c (sigcancel_handler): Compare with correct PID even if the
3585 thread is in the middle of a fork call.
3586 (sighandler_setxid): Likewise.
3587 Reported by Suzuki K P <suzuki@in.ibm.com> .
3589 2006-04-07 Jakub Jelinek <jakub@redhat.com>
3591 * pthreadP.h (FUTEX_TID_MASK): Sync with kernel.
3593 2006-04-06 Ulrich Drepper <drepper@redhat.com>
3595 * pthread_getattr_np.c (pthread_getattr_np): Close fp if getrlimit
3596 fails [Coverity CID 105].
3598 2006-04-05 Ulrich Drepper <drepper@redhat.com>
3600 * sysdeps/pthread/pthread.h: Add nonnull attributes.
3602 2006-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3605 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h [_ARCH_PWR4]:
3606 Define __lll_rel_instr using lwsync.
3608 2006-03-27 Ulrich Drepper <drepper@redhat.com>
3610 * allocatestack.c (allocate_stack): Always initialize robust_head.
3611 * descr.h: Define struct robust_list_head.
3612 (struct pthread): Use robust_list_head in robust mutex list definition.
3613 Adjust ENQUEUE_MUTEX and DEQUEUE_MUTEX.
3614 * init.c [!__ASSUME_SET_ROBUST_LIST] (__set_robust_list_avail): Define.
3615 (__pthread_initialize_minimal_internal): Register robust_list with
3617 * pthreadP.h: Remove PRIVATE_ from PTHREAD_MUTEX_ROBUST_* names.
3618 Declare __set_robust_list_avail.
3619 * pthread_create.c (start_thread): Register robust_list of new thread.
3620 [!__ASSUME_SET_ROBUST_LIST]: If robust_list is not empty wake up
3622 * pthread_mutex_destroy.c: For robust mutexes don't look at the
3623 number of users, it's unreliable.
3624 * pthread_mutex_init.c: Allow use of pshared robust mutexes if
3625 set_robust_list syscall is available.
3626 * pthread_mutex_consistent.c: Adjust for PTHREAD_MUTEX_ROBUST_* rename.
3627 * pthread_mutex_lock.c: Simplify robust mutex code a bit.
3628 Set robust_head.list_op_pending before trying to lock a robust mutex.
3629 * pthread_mutex_timedlock.c: Likewise.
3630 * pthread_mutex_trylock.c: Likewise.
3631 * pthread_mutex_unlock.c: Likewise for unlocking.
3632 * Makefile (tests): Add tst-robust8.
3633 * tst-robust8.c: New file.
3635 2006-03-08 Andreas Schwab <schwab@suse.de>
3637 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
3638 (DL_SYSINFO_IMPLEMENTATION): Add missing newline.
3640 2006-03-05 Roland McGrath <roland@redhat.com>
3642 * configure (libc_add_on): Disable add-on when $add_ons_automatic = yes
3643 and $config_os doesn't match *linux*.
3645 2006-03-05 David S. Miller <davem@sunset.davemloft.net>
3647 * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S:
3648 Use __syscall_error.
3649 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
3650 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
3651 * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Likewise.
3652 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
3653 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
3654 * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
3656 2006-03-02 Ulrich Drepper <drepper@redhat.com>
3658 * sysdeps/unix/sysv/linux/aio_misc.h: Various cleanups.
3660 2006-03-01 Ulrich Drepper <drepper@redhat.com>
3662 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
3663 (__lll_robust_lock_wait): Also set FUTEX_WAITERS bit if we got the
3665 (__lll_robust_timedlock_wait): Likewise.
3666 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S
3667 (__lll_robust_lock_wait): Likewise.
3668 (__lll_robust_timedlock_wait): Likewise.
3669 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
3670 (__lll_robust_lock_wait): Likewise.
3671 (__lll_robust_timedlock_wait): Likewise.
3673 2006-03-01 Jakub Jelinek <jakub@redhat.com>
3675 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_robust_mutex_dead,
3676 lll_robust_mutex_trylock, lll_robust_mutex_lock,
3677 lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
3678 lll_robust_mutex_unlock): Define.
3679 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
3681 2006-02-28 H.J. Lu <hongjiu.lu@intel.com>
3683 * sysdeps/unix/sysv/linux/ia64/clone2.S: Include <clone2.S>
3684 instead of <clone.S>.
3686 2006-02-27 Jakub Jelinek <jakub@redhat.com>
3688 * Makefile (libpthread-routines): Add
3689 pthread_mutexattr_[sg]etprotocol, pthread_mutexattr_[sg]etprioceiling
3690 and pthread_mutex_[sg]etprioceiling.
3691 * Versions (GLIBC_2.4): Export pthread_mutexattr_getprotocol,
3692 pthread_mutexattr_setprotocol, pthread_mutexattr_getprioceiling,
3693 pthread_mutexattr_setprioceiling, pthread_mutex_getprioceiling and
3694 pthread_mutex_setprioceiling.
3695 * sysdeps/pthread/pthread.h (PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT,
3696 PTHREAD_PRIO_PROTECT): New enum values.
3697 (pthread_mutexattr_getprotocol, pthread_mutexattr_setprotocol,
3698 pthread_mutexattr_getprioceiling, pthread_mutexattr_setprioceiling,
3699 pthread_mutex_getprioceiling, pthread_mutex_setprioceiling): New
3701 * pthreadP.h (PTHREAD_MUTEX_PRIO_INHERIT_PRIVATE_NP,
3702 PTHREAD_MUTEX_PRIO_PROTECT_PRIVATE_NP): New enum values.
3703 (PTHREAD_MUTEX_PRIO_CEILING_SHIFT, PTHREAD_MUTEX_PRIO_CEILING_MASK):
3705 (PTHREAD_MUTEXATTR_PROTOCOL_SHIFT, PTHREAD_MUTEXATTR_PROTOCOL_MASK,
3706 PTHREAD_MUTEXATTR_PRIO_CEILING_SHIFT,
3707 PTHREAD_MUTEXATTR_PRIO_CEILING_MASK): Define.
3708 (PTHREAD_MUTEXATTR_FLAG_BITS): Or in PTHREAD_MUTEXATTR_PROTOCOL_MASK
3709 and PTHREAD_MUTEXATTR_PRIO_CEILING_MASK.
3710 * pthread_mutex_init.c (__pthread_mutex_init): For the time being
3711 return ENOTSUP for PTHREAD_PRIO_INHERIT or PTHREAD_PRIO_PROTECT
3713 * pthread_mutex_getprioceiling.c: New file.
3714 * pthread_mutex_setprioceiling.c: New file.
3715 * pthread_mutexattr_getprioceiling.c: New file.
3716 * pthread_mutexattr_setprioceiling.c: New file.
3717 * pthread_mutexattr_getprotocol.c: New file.
3718 * pthread_mutexattr_setprotocol.c: New file.
3720 2006-02-27 Daniel Jacobowitz <dan@codesourcery.com>
3722 * sysdeps/unix/sysv/linux/aio_misc.h: Include <limits.h>.
3724 2006-02-27 Roland McGrath <roland@redhat.com>
3726 * sysdeps/pthread/Subdirs: List nptl here too.
3727 * configure (libc_add_on_canonical): New variable.
3729 * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Use #include_next.
3731 * sysdeps/unix/sysv/linux/sleep.c: Use #include_next after #include of
3732 self to get main source tree's file.
3733 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
3734 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3735 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3736 * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
3737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
3738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
3739 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
3740 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
3741 * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
3742 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
3743 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
3744 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3745 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3747 * Makefile: Use $(sysdirs) in vpath directive.
3749 * sysdeps/pthread/Makefile (CFLAGS-libc-start.c): Variable removed.
3750 (CPPFLAGS-timer_routines.c): Likewise.
3752 * Makeconfig (includes): Variable removed.
3754 2006-02-26 Roland McGrath <roland@redhat.com>
3756 * sysdeps/generic/pt-raise.c: Moved to ...
3757 * pt-raise.c: ... here.
3758 * sysdeps/generic/lowlevellock.h: Moved to ...
3759 * lowlevellock.h: ... here.
3761 2006-02-23 Roland McGrath <roland@redhat.com>
3763 * descr.h (struct pthread): Add final member `end_padding'.
3764 (PTHREAD_STRUCT_END_PADDING): Use it.
3766 2006-02-20 Roland McGrath <roland@redhat.com>
3768 * sysdeps/mips: Directory removed, saved in ports repository.
3769 * sysdeps/unix/sysv/linux/mips: Likewise.
3771 2006-02-18 Ulrich Drepper <drepper@redhat.com>
3773 * tst-robust1.c: Add second mutex to check that the mutex list is
3776 2006-02-17 Jakub Jelinek <jakub@redhat.com>
3778 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_mutex_dead,
3779 lll_robust_mutex_trylock, lll_robust_mutex_lock,
3780 lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
3781 lll_robust_mutex_unlock): New macros.
3782 (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
3783 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
3784 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
3785 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
3786 * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: New file.
3788 2006-02-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3790 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Add lll_robust_mutex_*
3792 * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: New file.
3794 2006-02-17 Ulrich Drepper <drepper@redhat.com>
3796 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
3797 (lll_robust_mutex_unlock): Avoid unnecessary wakeups.
3798 * sysdeps/unix/sysv/linux/i386/lowlevellock.h
3799 (lll_robust_mutex_unlock): Likewise.
3801 2006-02-13 Jakub Jelinek <jakub@redhat.com>
3803 * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX):
3804 Set robust_list.__next rather than robust_list.
3805 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
3806 (__pthread_list_t): New typedef.
3807 (pthread_mutex_t): Replace __next and __prev fields with __list.
3808 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
3809 (__pthread_list_t): New typedef.
3810 (pthread_mutex_t): Replace __next and __prev fields with __list.
3811 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
3812 (__pthread_list_t, __pthread_slist_t): New typedefs.
3813 (pthread_mutex_t): Replace __next and __prev fields with __list.
3814 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3815 (__pthread_list_t, __pthread_slist_t): New typedefs.
3816 (pthread_mutex_t): Replace __next and __prev fields with __list.
3817 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
3818 (__pthread_list_t, __pthread_slist_t): New typedefs.
3819 (pthread_mutex_t): Replace __next and __prev fields with __list.
3820 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
3821 (__pthread_slist_t): New typedef.
3822 (pthread_mutex_t): Replace __next field with __list.
3824 2006-02-15 Ulrich Drepper <drepper@redhat.com>
3826 * pthreadP.h: Define PTHREAD_MUTEX_INCONSISTENT instead of
3827 PTHREAD_MUTEX_OWNERDEAD.
3828 (PTHREAD_MUTEX_ROBUST_PRIVATE_NP): Define as 16, not 256.
3829 Define FUTEX_WAITERS, FUTEX_OWNER_DIED, FUTEX_TID_MASK.
3830 * Makefile (libpthread-routines): Add lowlevelrobustlock.
3831 * pthread_create.c (start_thread): Very much simplify robust_list loop.
3832 * pthread_mutex_consistent.c: Inconsistent mutex have __owner now set
3833 to PTHREAD_MUTEX_INCONSISTENT.
3834 * pthread_mutex_destroy.c: Allow destroying of inconsistent mutexes.
3835 * pthread_mutex_lock.c: Reimplement robust mutex handling.
3836 * pthread_mutex_trylock.c: Likewise.
3837 * pthread_mutex_timedlock.c: Likewise.
3838 * pthread_mutex_unlock.c: Likewise.
3839 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
3840 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
3841 lowlevelrobustlock.sym.
3842 * sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: New file.
3843 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add lll_robust_mutex_*
3845 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3846 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: New file.
3847 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: New file.
3848 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: New file.
3849 * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: New file.
3851 2006-02-12 Ulrich Drepper <drepper@redhat.com>
3853 * allocatestack.c (allocate_stack): Initialize robust_list.
3854 * init.c (__pthread_initialize_minimal_internal): Likewise.
3855 * descr.h (struct xid_command): Pretty printing.
3856 (struct pthread): Use __pthread_list_t or __pthread_slist_t for
3857 robust_list. Adjust macros.
3858 * pthread_create.c (start_thread): Adjust robust_list handling.
3859 * phtread_mutex_unlock.c: Don't allow unlocking from any thread
3860 but the owner for all robust mutex types.
3861 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
3862 __pthread_list_t and __pthread_slist_t. Use them in pthread_mutex_t.
3863 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
3864 * sysdeps/pthread/pthread.h: Adjust mutex initializers.
3866 * sysdeps/unix/sysv/linux/i386/not-cancel.h: Define openat_not_cancel,
3867 openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3.
3869 2006-02-08 Jakub Jelinek <jakub@redhat.com>
3871 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait,
3872 lll_futex_timedwait, lll_wait_tid): Add "memory" clobber.
3874 2006-01-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3876 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_wait):
3878 (lll_futex_timed_wait): Define.
3880 2006-01-19 Ulrich Drepper <drepper@redhat.com>
3882 * tst-cancel4.c: Test ppoll.
3884 2006-01-18 Andreas Jaeger <aj@suse.de>
3887 * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
3888 (pthread_mutex_t): Follow changes for other archs. Based on patch
3889 by Jim Gifford <patches@jg555.com>.
3891 2006-01-13 Richard Henderson <rth@redhat.com>
3893 * sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private.
3895 2006-01-10 Roland McGrath <roland@redhat.com>
3897 * sysdeps/alpha/jmpbuf-unwind.h: File moved to main source tree.
3898 * sysdeps/i386/jmpbuf-unwind.h: Likewise.
3899 * sysdeps/mips/jmpbuf-unwind.h: Likewise.
3900 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
3901 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
3902 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
3903 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
3904 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
3905 * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
3906 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
3908 2006-01-09 Roland McGrath <roland@redhat.com>
3910 * tst-initializers1-c89.c: New file.
3911 * tst-initializers1-c99.c: New file.
3912 * tst-initializers1-gnu89.c: New file.
3913 * tst-initializers1-gnu99.c: New file.
3914 * Makefile (tests): Add them.
3915 (CFLAGS-tst-initializers1-c89.c): New variable.
3916 (CFLAGS-tst-initializers1-c99.c): New variable.
3917 (CFLAGS-tst-initializers1-gnu89.c): New variable.
3918 (CFLAGS-tst-initializers1-gnu99.c): New variable.
3920 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
3921 Use __extension__ on anonymous union definition.
3922 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
3923 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
3924 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
3925 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
3926 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
3928 2006-01-08 Jakub Jelinek <jakub@redhat.com>
3930 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
3931 Don't give the union a name because it changes the mangled name.
3932 Instead name the struct for __data.
3933 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_mutex_t):
3935 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_mutex_t):
3938 2006-01-09 Jakub Jelinek <jakub@redhat.com>
3940 * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Add
3941 stack bias to mc_ftp field.
3943 2006-01-07 Ulrich Drepper <drepper@redhat.com>
3945 * sysdeps/pthread/aio_misc.h (AIO_MISC_WAIT): Work around gcc
3946 being too clever and reloading the futex value where it shouldn't.
3948 2006-01-06 Ulrich Drepper <drepper@redhat.com>
3950 * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX): Use
3953 2006-01-06 Jakub Jelinek <jakub@redhat.com>
3955 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
3958 2006-01-06 Ulrich Drepper <drepper@redhat.com>
3960 * sysdeps/ia64/tls.h (tcbhead_t): Rename private member to __private.
3961 * sysdeps/ia64/tcb-offsets.sym: Adjust for private->__private
3962 rename in tcbhead_t.
3964 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
3965 Don't give the union a name because it changes the mangled name.
3966 Instead name the struct for __data.
3967 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
3968 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
3969 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
3970 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
3971 * pthread_create.c (start_thread): Adjust robust mutex free loop.
3972 * descr.h (ENQUEUE_MUTEX, DEQUEUE_MUTEX): Adjust.
3974 2006-01-05 Ulrich Drepper <drepper@redhat.com>
3976 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
3978 (lll_futex_timed_wait): Define.
3979 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3980 * sysdeps/pthread/aio_misc.h: New file.
3982 2006-01-03 Joseph S. Myers <joseph@codesourcery.com>
3984 * Makefile ($(objpfx)$(multidir)): Use mkdir -p.
3986 2006-01-03 Steven Munroe <sjmunroe@us.ibm.com>
3988 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
3989 (PSEUDO): Remove redundant cfi_startproc and cfi_endproc directives.
3990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
3992 2006-01-04 Ulrich Drepper <drepper@redhat.com>
3994 * tst-cancel24.cc: Use C headers instead of C++ headers.
3996 2006-01-03 Jakub Jelinek <jakub@redhat.com>
3998 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Remove #error for
3999 sparc-linux configured glibc.
4000 (lll_futex_wake_unlock): Define to 1 for sparc-linux configured glibc.
4001 (__lll_mutex_trylock, __lll_mutex_cond_trylock, __lll_mutex_lock,
4002 __lll_mutex_cond_lock, __lll_mutex_timedlock): Use
4003 atomic_compare_and_exchange_val_24_acq instead of
4004 atomic_compare_and_exchange_val_acq.
4005 (lll_mutex_unlock, lll_mutex_unlock_force): Use atomic_exchange_24_rel
4006 instead of atomic_exchange_rel.
4007 * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: New file.
4008 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c: New
4010 * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c: New
4012 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: New file.
4013 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: New file.
4014 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: New file.
4015 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: New file.
4016 * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: New file.
4017 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
4019 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
4021 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: New file.
4022 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: New file.
4023 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c: New
4025 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c: New
4027 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: New file.
4029 2006-01-03 Ulrich Drepper <drepper@redhat.com>
4031 * sysdeps/pthread/pthread.h [__WORDSIZE==64]: Don't use cast in
4034 2006-01-02 Jakub Jelinek <jakub@redhat.com>
4036 * sysdeps/sparc/tls.h (tcbhead_t): Add pointer_guard field.
4037 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
4038 THREAD_COPY_POINTER_GUARD): Define.
4039 * sysdeps/sparc/tcb-offsets.sym (POINTER_GUARD): Define.
4040 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Revert 2005-12-27 changes.
4042 2006-01-01 Ulrich Drepper <drepper@redhat.com>
4044 * version.c: Update copyright year.
4046 2005-12-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4048 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Remove explicit
4049 .eh_frame section, use cfi_* directives.
4050 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Add cfi instrumentation.
4052 2005-12-30 Ulrich Drepper <drepper@redhat.com>
4054 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Undo last change for
4057 2005-12-29 Ulrich Drepper <drepper@redhat.com>
4059 * sysdeps/pthread/sigaction.c: Removed.
4060 * sigaction.c: New file.
4061 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-sigaction.c.
4063 2005-12-28 Ulrich Drepper <drepper@redhat.com>
4065 * Makefile (tests): Add tst-signal7.
4066 * tst-signal7.c: New file.
4068 2005-12-27 Roland McGrath <roland@redhat.com>
4070 * sysdeps/x86_64/jmpbuf-unwind.h (_jmpbuf_sp): New inline function.
4071 (_JMPBUF_UNWINDS_ADJ): Use it, to PTR_DEMANGLE before comparison.
4072 * sysdeps/alpha/jmpbuf-unwind.h: Likewise.
4073 * sysdeps/i386/jmpbuf-unwind.h: Likewise.
4074 * sysdeps/mips/jmpbuf-unwind.h: Likewise.
4075 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
4076 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
4077 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
4078 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
4079 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
4080 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
4082 2005-12-27 Jakub Jelinek <jakub@redhat.com>
4084 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Add __next
4085 and __prev field to pthread_mutex_t.
4086 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
4087 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
4088 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
4089 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
4090 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Add __next field
4093 2005-12-26 Ulrich Drepper <drepper@redhat.com>
4095 * pthreadP.h: Define PTHREAD_MUTEX_ROBUST_PRIVATE_NP,
4096 PTHREAD_MUTEX_ROBUST_PRIVATE_RECURSIVE_NP,
4097 PTHREAD_MUTEX_ROBUST_PRIVATE_ERRORCHECK_NP,
4098 PTHREAD_MUTEX_ROBUST_PRIVATE_ADAPTIVE_NP,
4099 PTHREAD_MUTEXATTR_FLAG_ROBUST, PTHREAD_MUTEXATTR_FLAG_PSHARED,
4100 and PTHREAD_MUTEXATTR_FLAG_BITS.
4101 * descr.h (struct pthread): Add robust_list field and define
4102 ENQUEUE_MUTEX and DEQUEUE_MUTEX macros.
4103 * pthread_mutexattr_getrobust.c: New file.
4104 * pthread_mutexattr_setrobust.c: New file.
4105 * pthread_mutex_consistent.c: New file.
4106 * sysdeps/pthread/pthread.h: Declare pthread_mutexattr_getrobust,
4107 pthread_mutexattr_setrobust, and pthread_mutex_consistent.
4108 Define PTHREAD_MUTEX_STALLED_NP and PTHREAD_MUTEX_ROBUST_NP.
4109 Adjust pthread_mutex_t initializers.
4110 * nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Add __next
4111 field to pthread_mutex_t.
4112 * nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Add __next
4113 and __prev field to pthread_mutex_t.
4114 * Versions [GLIBC_2.4]: Export pthread_mutexattr_getrobust_np,
4115 pthread_mutexattr_setrobust_np, and pthread_mutex_consistent_np.
4116 * pthread_mutexattr_getpshared.c: Use PTHREAD_MUTEXATTR_FLAG_PSHARED
4117 and PTHREAD_MUTEXATTR_FLAG_BITS macros instead of magic numbers.
4118 * pthread_mutexattr_gettype.c: Likewise.
4119 * pthread_mutexattr_setpshared.c: Likewise.
4120 * pthread_mutexattr_settype.c: Likewise.
4121 * pthread_mutex_init.c: Reject robust+pshared attribute for now.
4122 Initialize mutex kind according to robust flag.
4123 * pthread_mutex_lock.c: Implement local robust mutex.
4124 * pthread_mutex_timedlock.c: Likewise.
4125 * pthread_mutex_trylock.c: Likewise.
4126 * pthread_mutex_unlock.c: Likewise.
4127 * pthread_create.c (start_thread): Mark robust mutexes which remained
4129 * tst-robust1.c: New file.
4130 * tst-robust2.c: New file.
4131 * tst-robust3.c: New file.
4132 * tst-robust4.c: New file.
4133 * tst-robust5.c: New file.
4134 * tst-robust6.c: New file.
4135 * tst-robust7.c: New file.
4136 * Makefile (libpthread-routines): Add pthread_mutexattr_getrobust,
4137 pthread_mutexattr_setrobust, and pthread_mutex_consistent.
4138 (tests): Add tst-robust1, tst-robust2, tst-robust3, tst-robust4,
4139 tst-robust5, tst-robust6, and tst-robust7.
4141 * tst-typesizes.c: New file.
4142 * Makefile (tests): Add tst-typesizes.
4144 * tst-once3.c: More debug output.
4146 2005-12-24 Ulrich Drepper <drepper@redhat.com>
4148 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Add break
4149 missing after last change.
4151 * version.c: Update copyright year.
4153 2005-12-23 Ulrich Drepper <drepper@redhat.com>
4155 * pthread_mutex_destroy.c: Set mutex type to an invalid value.
4156 * pthread_mutex_lock.c: Return EINVAL for invalid mutex type.
4157 * pthread_mutex_trylock.c: Likewise.
4158 * pthread_mutex_timedlock.c: Likewise.
4159 * pthread_mutex_unlock.c: Likewise.
4161 2005-12-22 Roland McGrath <roland@redhat.com>
4163 * sysdeps/pthread/sigaction.c: Use "" instead of <> to include self,
4164 so that #include_next's search location is not reset to the -I..
4165 directory where <nptl/...> can be found.
4167 2005-12-22 Ulrich Drepper <drepper@redhat.com>
4170 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
4171 Fix unwind info. Remove useless branch prediction prefix.
4172 * tst-cancel24.cc: New file.
4173 * Makefile: Add rules to build and run tst-cancel24.
4175 2005-12-21 Roland McGrath <roland@redhat.com>
4177 * libc-cancellation.c: Use <> rather than "" #includes.
4178 * pt-cleanup.c: Likewise.
4179 * pthread_create.c: Likewise.
4180 * pthread_join.c: Likewise.
4181 * pthread_timedjoin.c: Likewise.
4182 * pthread_tryjoin.c: Likewise.
4183 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Likewise.
4184 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
4185 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
4186 * unwind.c: Likewise.
4188 2005-12-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4190 * sysdeps/sh/tcb-offsets.sym: Add POINTER_GUARD.
4191 * sysdeps/sh/tls.h (tcbhead_t): Remove private and add pointer_guard.
4192 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
4193 THREAD_COPY_POINTER_GUARD): Define.
4195 2005-12-19 Jakub Jelinek <jakub@redhat.com>
4197 * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): Make room for 2 uintptr_t's
4199 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
4200 THREAD_COPY_POINTER_GUARD): Define.
4201 * sysdeps/powerpc/tcb-offsets.sym (POINTER_GUARD): Add.
4202 * sysdeps/powerpc/tls.h (tcbhead_t): Add pointer_guard field.
4203 (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
4204 THREAD_COPY_POINTER_GUARD): Define.
4205 * sysdeps/s390/tcb-offsets.sym (STACK_GUARD): Add.
4206 * sysdeps/s390/tls.h (THREAD_GET_POINTER_GUARD,
4207 THREAD_SET_POINTER_GUARD, THREAD_COPY_POINTER_GUARD): Define.
4208 * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S (__ia64_longjmp):
4209 Use PTR_DEMANGLE for B0 if defined.
4211 2005-12-17 Ulrich Drepper <drepper@redhat.com>
4213 * pthread_create.c (__pthread_create_2_1): Use
4214 THREAD_COPY_POINTER_GUARD if available.
4215 * sysdeps/i386/tcb-offsets.sym: Add POINTER_GUARD.
4216 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
4217 * sysdeps/i386/tls.h (tcbhead_t): Add pointer_guard.
4218 Define THREAD_SET_POINTER_GUARD and THREAD_COPY_POINTER_GUARD.
4219 * sysdeps/x86_64/tls.h: Likewise.
4221 2005-12-15 Roland McGrath <roland@redhat.com>
4223 * sysdeps/unix/sysv/linux/mq_notify.c: Don't use sysdeps/generic.
4225 2005-12-13 Ulrich Drepper <drepper@redhat.com>
4227 * sysdeps/pthread/sigfillset.c: Adjust for files moved out of
4229 * errno-loc.c: New file.
4231 2005-12-12 Roland McGrath <roland@redhat.com>
4233 * init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
4234 adjustments before choosing stack size. Update minimum stack size
4235 calculation to match allocate_stack change.
4237 2005-12-12 Ulrich Drepper <drepper@redhat.com>
4239 * allocatestack.c (allocate_stack): Don't demand that there is an
4240 additional full page available on the stack beside guard, TLS, the
4243 2005-11-24 Ulrich Drepper <drepper@redhat.com>
4245 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
4246 (__cleanup_fct_attribute): Use __regparm__ not regparm.
4248 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: When
4249 compiling 32-bit code we must define __cleanup_fct_attribute.
4251 005-11-24 Jakub Jelinek <jakub@redhat.com>
4254 * sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
4255 __attribute__ instead of __attribute.
4256 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
4257 (__cleanup_fct_attribute): Likewise.
4259 2005-11-17 Jakub Jelinek <jakub@redhat.com>
4261 * sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
4262 a write barrier before writing libgcc_s_getcfa.
4264 2005-11-06 Ulrich Drepper <drepper@redhat.com>
4266 * sysdeps/unix/sysv/linux/configure: Removed.
4268 2005-11-05 Ulrich Drepper <drepper@redhat.com>
4270 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Remove trace of
4271 optional init_array/fini_array support.
4273 2005-10-24 Roland McGrath <roland@redhat.com>
4275 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove unnecessary
4276 versioned_symbol use.
4278 2005-10-16 Roland McGrath <roland@redhat.com>
4280 * init.c (__pthread_initialize_minimal_internal): Even when using a
4281 compile-time default stack size, apply the minimum that allocate_stack
4282 will require, and round up to page size.
4284 2005-10-10 Daniel Jacobowitz <dan@codesourcery.com>
4286 * Makefile ($(test-modules)): Remove static pattern rule.
4288 2005-10-14 Jakub Jelinek <jakub@redhat.com>
4289 Ulrich Drepper <drepper@redhat.com>
4291 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix stack
4292 alignment in callback function.
4293 * Makefile: Add rules to build and run tst-align3.
4294 * tst-align3.c: New file.
4296 2005-10-03 Jakub Jelinek <jakub@redhat.com>
4298 * allocatestack.c (setxid_signal_thread): Add
4299 INTERNAL_SYSCALL_DECL (err).
4301 2005-10-02 Jakub Jelinek <jakub@redhat.com>
4303 * allocatestack.c (setxid_signal_thread): Need to use
4304 atomic_compare_and_exchange_bool_acq.
4306 2005-10-01 Ulrich Drepper <drepper@redhat.com>
4307 Jakub Jelinek <jakub@redhat.com>
4309 * descr.h: Define SETXID_BIT and SETXID_BITMASK. Adjust
4311 (struct pthread): Move specific_used field to avoid padding.
4312 Add setxid_futex field.
4313 * init.c (sighandler_setxid): Reset setxid flag and release the
4315 * allocatestack.c (setxid_signal_thread): New function. Broken
4316 out of the bodies of the two loops in __nptl_setxid. For undetached
4317 threads check whether they are exiting and if yes, don't send a signal.
4318 (__nptl_setxid): Simplify loops by using setxid_signal_thread.
4319 * pthread_create.c (start_thread): For undetached threads, check
4320 whether setxid bit is set. If yes, wait until signal has been
4323 * allocatestack.c (STACK_VARIABLES): Initialize them.
4324 * pthread_create.c (__pthread_create_2_1): Initialize pd.
4326 2004-09-02 Jakub Jelinek <jakub@redhat.com>
4328 * pthread_cond_destroy.c (__pthread_cond_destroy): If there are
4329 waiters, awake all waiters on the associated mutex.
4331 2005-09-22 Roland McGrath <roland@redhat.com>
4333 * perf.c [__x86_64__] (HP_TIMING_NOW): New macro (copied from
4334 ../sysdeps/x86_64/hp-timing.h).
4336 2005-08-29 Jakub Jelinek <jakub@redhat.com>
4338 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_WAKE_OP,
4339 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
4340 (lll_futex_wake_unlock): Define.
4341 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_WAKE_OP,
4342 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
4343 (lll_futex_wake_unlock): Define.
4344 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_WAKE_OP,
4345 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
4346 (lll_futex_wake_unlock): Define.
4347 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_WAKE_OP,
4348 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
4349 (lll_futex_wake_unlock): Define.
4350 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_WAKE_OP,
4351 FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
4352 (lll_futex_wake_unlock): Define.
4353 * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): Use
4354 lll_futex_wake_unlock.
4355 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
4356 (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
4357 (__pthread_cond_signal): Use FUTEX_WAKE_OP.
4358 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
4359 (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
4360 (__pthread_cond_signal): Use FUTEX_WAKE_OP.
4362 2005-09-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4364 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
4365 Fix typo in register name.
4367 2005-08-23 Ulrich Drepper <drepper@redhat.com>
4369 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
4370 Use __sigfillset. Document that sigfillset does the right thing wrt
4373 2005-07-11 Jakub Jelinek <jakub@redhat.com>
4376 * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER,
4377 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
4378 PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
4379 PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_RWLOCK_INITIALIZER,
4380 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
4381 PTHREAD_COND_INITIALIZER): Supply zeros for all fields
4383 * Makefile (tests): Add tst-initializers1.
4384 (CFLAGS-tst-initializers1.c): Set.
4385 * tst-initializers1.c: New test.
4387 2005-07-11 Jakub Jelinek <jakub@redhat.com>
4389 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_rwlock_t):
4390 Make sure __flags are located at offset 48 from the start of the
4393 2005-07-02 Roland McGrath <roland@redhat.com>
4395 * Makeconfig: Comment fix.
4397 2005-07-05 Jakub Jelinek <jakub@redhat.com>
4399 * descr.h (PTHREAD_STRUCT_END_PADDING): Define.
4400 * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): If PTHREAD_STRUCT_END_PADDING
4401 is smaller than 8 bytes, increase TLS_PRE_TCB_SIZE by 16 bytes.
4402 (THREAD_SYSINFO, THREAD_SELF, DB_THREAD_SELF): Don't assume
4403 TLS_PRE_TCB_SIZE is sizeof (struct pthread).
4404 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
4405 * sysdeps/ia64/tcb-offsets.sym (PID, TID, MULTIPLE_THREADS_OFFSET):
4406 Use TLS_PRE_TCB_SIZE instead of sizeof (struct pthread).
4407 * sysdeps/unix/sysv/linux/ia64/createthread.c (TLS_VALUE): Don't
4408 assume TLS_PRE_TCB_SIZE is sizeof (struct pthread).
4410 2005-06-25 Jakub Jelinek <jakub@redhat.com>
4412 * sysdeps/i386/tls.h (tcbhead_t): Add stack_guard field.
4413 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
4414 * sysdeps/x86_64/tls.h (tcbhead_t): Add sysinfo and stack_guard
4416 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
4417 * sysdeps/s390/tls.h (tcbhead_t): Add stack_guard
4418 field. Put in sysinfo field unconditionally.
4419 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
4420 * sysdeps/powerpc/tls.h (tcbhead_t): Add stack_guard field.
4421 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
4422 * sysdeps/sparc/tls.h (tcbhead_t): Add sysinfo and stack_guard
4424 (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
4425 * pthread_create.c (__pthread_create_2_1): Use
4426 THREAD_COPY_STACK_GUARD macro.
4427 * Makefile: Add rules to build and run tst-stackguard1{,-static}
4429 * tst-stackguard1.c: New file.
4430 * tst-stackguard1-static.c: New file.
4432 2005-06-14 Alan Modra <amodra@bigpond.net.au>
4434 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
4435 Invoke CGOTSETUP and CGOTRESTORE.
4436 (CGOTSETUP, CGOTRESTORE): Define.
4438 2005-05-29 Richard Henderson <rth@redhat.com>
4440 * tst-cancel4.c (WRITE_BUFFER_SIZE): New.
4441 (tf_write, tf_writev): Use it.
4442 (do_test): Use socketpair instead of pipe. Set SO_SNDBUF to
4445 2005-05-23 Jakub Jelinek <jakub@redhat.com>
4447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
4448 [IS_IN_librt] (CENABLE, CDISABLE): Use JUMPTARGET instead of
4449 __librt_*_asynccancel@local.
4451 2005-05-17 Alan Modra <amodra@bigpond.net.au>
4453 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Delete
4454 all occurrences of JUMPTARGET. Instead append @local to labels.
4456 2005-05-20 Jakub Jelinek <jakub@redhat.com>
4458 * sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
4459 size/alignment of struct pthread rather than tcbhead_t.
4460 * sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
4462 * sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
4464 * sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
4467 2005-05-19 Richard Henderson <rth@redhat.com>
4469 * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use
4470 __sync_val_compare_and_swap, not explicit _si variant.
4471 * sysdeps/ia64/pthread_spin_trylock.c (pthread_spin_trylock): Likewise.
4473 2005-05-03 Ulrich Drepper <drepper@redhat.com>
4476 * sysdeps/pthread/pthread.h: Avoid empty initializers.
4478 2005-05-03 Jakub Jelinek <jakub@redhat.com>
4480 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
4481 .eh_frame section, use cfi_* directives.
4483 2005-04-27 Jakub Jelinek <jakub@redhat.com>
4485 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
4488 2005-04-27 Ulrich Drepper <drepper@redhat.com>
4491 * tst-cancel17.c (do_test): Add arbitrary factor to make sure
4494 2005-04-27 Roland McGrath <roland@redhat.com>
4496 * Makefile (tests): Remove tst-clock2.
4498 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle
4499 CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
4500 translating to the kernel clockid_t for our own process/thread clock.
4502 * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
4504 2005-04-15 Jakub Jelinek <jakub@redhat.com>
4506 * old_pthread_cond_init.c: Include <errno.h>.
4507 (__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is
4508 process shared or uses clock other than CLOCK_REALTIME.
4509 * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
4511 2005-04-13 David S. Miller <davem@davemloft.net>
4513 * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file.
4514 * sysdeps/sparc/sparc64/clone.S: New file.
4516 2005-04-05 Jakub Jelinek <jakub@redhat.com>
4519 * sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use
4520 __inline instead of inline.
4521 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise.
4523 2005-03-31 Jakub Jelinek <jakub@redhat.com>
4525 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use
4526 functionally equivalent, but shorter instructions.
4527 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
4528 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
4529 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
4531 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
4532 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
4533 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
4534 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
4535 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
4536 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
4537 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
4539 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
4540 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4541 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
4542 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
4543 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
4545 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
4547 * sysdeps/mips/Makefile: New file.
4548 * sysdeps/mips/nptl-sysdep.S: New file.
4549 * sysdeps/mips/tcb-offsets.sym: New file.
4550 * sysdeps/mips/pthread_spin_lock.S: New file.
4551 * sysdeps/mips/pthread_spin_trylock.S: New file.
4552 * sysdeps/mips/pthreaddef.h: New file.
4553 * sysdeps/mips/tls.h: New file.
4554 * sysdeps/mips/jmpbuf-unwind.h: New file.
4555 * sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file.
4556 * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file.
4557 * sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file.
4558 * sysdeps/unix/sysv/linux/mips/pthread_once.c: New file.
4559 * sysdeps/unix/sysv/linux/mips/fork.c: New file.
4560 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
4561 * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
4562 * sysdeps/unix/sysv/linux/mips/clone.S: New file.
4563 * sysdeps/unix/sysv/linux/mips/createthread.c: New file.
4564 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
4566 2005-03-23 Ulrich Drepper <drepper@redhat.com>
4569 * pthread_create.c (__pthread_create_2_1): Rename syscall error
4572 2005-03-10 Jakub Jelinek <jakub@redhat.com>
4574 * tst-getpid1.c (do_test): Align stack passed to clone{2,}.
4576 2005-02-25 Roland McGrath <roland@redhat.com>
4578 * alloca_cutoff.c: Correct license text.
4579 * tst-unload.c: Likewise.
4580 * sysdeps/pthread/allocalim.h: Likewise.
4581 * sysdeps/pthread/pt-initfini.c: Likewise.
4582 * sysdeps/pthread/bits/libc-lock.h: Likewise.
4583 * sysdeps/pthread/bits/sigthread.h: Likewise.
4584 * sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
4585 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4587 2005-02-16 Roland McGrath <roland@redhat.com>
4589 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
4590 Use unsigned int * for ptr_nthreads.
4592 2005-02-14 Alan Modra <amodra@bigpond.net.au>
4595 * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
4598 2005-02-07 Richard Henderson <rth@redhat.com>
4601 * sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first
4604 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
4606 * sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix
4607 order of arguments in invocation of atomic_add_zero.
4609 2005-01-26 Jakub Jelinek <jakub@redhat.com>
4612 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait):
4613 Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS,
4614 at least gotntpoff relocation and addition.
4615 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
4617 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
4619 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
4622 2005-01-06 Ulrich Drepper <drepper@redhat.com>
4624 * allocatestack.c (init_one_static_tls): Adjust initialization of DTV
4625 entry for static tls deallocation fix.
4626 * sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which
4627 also contains information whether the memory pointed to is static
4629 * sysdeps/i386/tls.h: Likewise.
4630 * sysdeps/ia64/tls.h: Likewise.
4631 * sysdeps/powerpc/tls.h: Likewise.
4632 * sysdeps/s390/tls.h: Likewise.
4633 * sysdeps/sh/tls.h: Likewise.
4634 * sysdeps/sparc/tls.h: Likewise.
4635 * sysdeps/x86_64/tls.h: Likewise.
4637 2004-12-27 Ulrich Drepper <drepper@redhat.com>
4639 * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
4641 2004-12-21 Jakub Jelinek <jakub@redhat.com>
4643 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of
4645 * Makefile (tests): Add tst-align2.
4646 * tst-align2.c: New test.
4647 * sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add
4648 -mpreferred-stack-boundary=4.
4650 2004-12-18 Roland McGrath <roland@redhat.com>
4652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h:
4653 New file removed withdrawn for the moment.
4655 2004-12-17 Richard Henderson <rth@redhat.com>
4657 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
4658 * sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
4660 2004-12-16 Ulrich Drepper <drepper@redhat.com>
4662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file.
4663 Increased PTHREAD_STACK_MIN.
4665 * tst-context1.c (stacks): Use bigger stack size.
4667 2004-12-16 Jakub Jelinek <jakub@redhat.com>
4669 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
4670 * sysdeps/sparc/tcb-offsets.sym: Add TID.
4672 2004-12-15 Jakub Jelinek <jakub@redhat.com>
4674 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file.
4675 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
4676 * sysdeps/s390/tcb-offsets.sym (TID): Add.
4678 2004-12-15 Ulrich Drepper <drepper@redhat.com>
4680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file.
4682 2004-12-14 Ulrich Drepper <drepper@redhat.com>
4684 * sysdeps/powerpc/tcb-offsets.sym: Add TID.
4685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
4687 * tst-getpid1.c: If child crashes, report this first. Print which
4690 2004-12-09 Ulrich Drepper <drepper@redhat.com>
4692 * init.c (__pthread_initialize_minimal_internal): Also unblock
4695 2004-12-01 Jakub Jelinek <jakub@redhat.com>
4697 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
4698 _POSIX_THREAD_CPUTIME): Define to 0.
4699 * sysdeps/pthread/timer_create.c (timer_create): Remove unused code
4700 handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
4701 * sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
4702 __timer_signal_thread_tclk): Remove.
4703 (init_module): Remove their initialization.
4704 (thread_cleanup): Remove their cleanup assertions.
4705 * sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
4706 __timer_signal_thread_tclk): Remove.
4707 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
4708 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
4709 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
4711 2004-12-07 Jakub Jelinek <jakub@redhat.com>
4713 * sysdeps/ia64/tcb-offsets.sym (TID): Add.
4714 * sysdeps/unix/sysv/linux/ia64/clone2.S: New file.
4716 * Makefile (tests): Add tst-getpid2.
4717 * tst-getpid1.c (TEST_CLONE_FLAGS): Define.
4718 (do_test): Use it. Use __clone2 instead of clone on ia64.
4719 * tst-getpid2.c: New test.
4721 2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4723 * sysdeps/unix/sysv/linux/sh/clone.S: New file.
4725 2004-12-04 Ulrich Drepper <drepper@redhat.com>
4727 * Makefile (tests): Add tst-getpid1.
4728 * tst-getpid1.c: New file.
4729 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
4730 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
4732 2004-12-02 Roland McGrath <roland@redhat.com>
4734 * Makefile (libpthread-nonshared): Variable removed.
4735 ($(objpfx)libpthread_nonshared.a): Target removed.
4736 ($(inst_libdir)/libpthread_nonshared.a): Likewise.
4737 These are now handled by generic magic from
4738 libpthread-static-only-routines being set.
4740 2004-11-27 Ulrich Drepper <drepper@redhat.com>
4742 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO,
4743 _POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT,
4744 _POSIX_THREAD_PRIO_PROTECT): Define.
4745 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
4746 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
4747 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
4749 2004-11-26 Jakub Jelinek <jakub@redhat.com>
4751 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
4752 _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
4753 _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
4754 _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
4755 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
4756 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
4757 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
4759 2004-11-24 Ulrich Drepper <drepper@redhat.com>
4761 * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
4763 * Makefile (libpthread-routines): Add pthread_setschedprio.
4764 * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
4765 * sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
4766 * pthread_setschedprio.c: New file.
4768 2004-11-20 Jakub Jelinek <jakub@redhat.com>
4770 * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE.
4771 * pthread_cancel.c (pthread_create): Likewise.
4773 * Makefile (libpthread-routines): Add vars.
4774 * sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove.
4775 * init.c (__default_stacksize, __is_smp): Remove.
4777 * pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function
4778 and define a wrapper macro.
4779 (PTHREAD_STATIC_FN_REQUIRE): Define.
4780 * allocatestack.c (__find_thread_by_id): Undefine.
4781 * pthread_create (__pthread_keys): Remove.
4782 (pthread_mutex_lock, pthread_mutex_unlock, pthread_once,
4783 pthread_key_create, pthread_setspecific, pthread_getspecific): Add
4784 PTHREAD_STATIC_FN_REQUIRE.
4786 2004-11-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4788 * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias
4789 parameter to REGISTER macro.
4791 2004-11-17 Roland McGrath <roland@redhat.com>
4793 * sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
4794 Make sure SIGCANCEL is blocked as well.
4796 2004-11-10 Jakub Jelinek <jakub@redhat.com>
4798 * sysdeps/pthread/setxid.h: New file.
4799 * sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove.
4800 (struct xid_command): Add forward decl.
4801 (struct pthread_functions): Change return type of __nptl_setxid hook
4803 * pthreadP.h (__nptl_setxid): Change return type to int.
4804 * allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the
4805 calling thread, return its return value and set errno on failure.
4806 * descr.h (struct xid_command): Change id type to long array.
4808 * Makefile: Add rules to build and test tst-setuid1 and
4810 * tst-setuid1.c: New test.
4811 * tst-setuid1-static.c: New test.
4813 2004-11-10 Jakub Jelinek <jakub@redhat.com>
4815 * Makefile (tests): Add tst-exit3.
4816 * tst-exit3.c: New test.
4818 2004-11-09 Ulrich Drepper <drepper@redhat.com>
4820 * Makefile (tests): Add tst-exit2.
4821 * tst-exit2.c: New file.
4823 2004-11-09 Roland McGrath <roland@redhat.com>
4826 * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
4827 here, before calling clone.
4828 * pthread_create.c (start_thread): Don't do it here.
4830 2004-11-02 Jakub Jelinek <jakub@redhat.com>
4832 * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
4834 2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4836 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
4837 Set ETIMEDOUT to errno when time is up. Tweak to avoid
4840 2004-10-28 Jakub Jelinek <jakub@redhat.com>
4842 * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
4843 if sched_priority is not between minprio and maxprio.
4845 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4847 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
4848 (__pthread_cond_timedwait): Use clock_gettime syscall if exists.
4850 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
4851 (__lll_mutex_timedlock_wait): Fix a bad branch condition.
4853 2004-10-24 Ulrich Drepper <drepper@redhat.com>
4855 * sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use
4856 not-cancelable I/O functions.
4858 2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4860 * sysdeps/unix/sysv/linux/sh/lowlevellock.S
4861 (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
4862 make sure 2 is stored in the futex and we looked at the old value.
4863 Fix a few other problems to return the correct value.
4865 2004-10-14 Richard Henderson <rth@redhat.com>
4867 * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
4870 2004-10-06 Jakub Jelinek <jakub@redhat.com>
4872 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
4873 of pthread-functions.h and pthreaddef.h.
4874 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
4876 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
4877 Change __data.__nwaiters from int to unsigned int.
4879 * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
4880 sysconf (_SC_THREAD_CPUTIME) returns negative value.
4882 * allocatestack.c (__find_thread_by_id): Move attribute_hidden
4885 * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
4886 (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
4888 2004-10-06 Ulrich Drepper <drepper@redhat.com>
4890 * tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the
4891 test fails, remove message queue.
4892 (tf_msgsnd): Likewise.
4894 2004-10-05 Jakub Jelinek <jakub@redhat.com>
4896 * tst-clock1.c: Change #ifdef to #if defined.
4897 * tst-clock2.c: Likewise.
4898 * tst-cond11.c: Likewise.
4900 * sysdeps/pthread/timer_create.c (timer_create): Use
4901 defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of
4902 defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for
4905 2004-10-05 Jakub Jelinek <jakub@redhat.com>
4907 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME,
4908 _POSIX_THREAD_CPUTIME): Define to 0.
4910 2004-10-04 Ulrich Drepper <drepper@redhat.com>
4912 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
4913 and _POSIX_THREAD_CPUTIME to zero.
4914 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
4915 * tst-barrier2.c: Fix testing for POSIX feature.
4916 * tst-clock1.c: Likewise.
4917 * tst-clock2.c: Likewise.
4918 * tst-cond11.c: Likewise.
4919 * tst-cond4.c: Likewise.
4920 * tst-cond6.c: Likewise.
4921 * tst-flock2.c: Likewise.
4922 * tst-mutex4.c: Likewise.
4923 * tst-mutex9.c: Likewise.
4924 * tst-rwlock12.c: Likewise.
4925 * tst-rwlock4.c: Likewise.
4926 * tst-signal1.c: Likewise.
4927 * tst-spin2.c: Likewise.
4928 * sysdeps/pthread/posix-timer.h: Likewise.
4929 * sysdeps/pthread/timer_create.c: Likewise.
4930 * sysdeps/pthread/timer_routines.c: Likewise.
4932 2004-10-01 Ulrich Drepper <drepper@redhat.com>
4934 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
4935 (__lll_mutex_timedlock_wait): Address futex correctly.
4937 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
4938 (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
4939 make sure 2 is stored in the futex and we looked at the old value.
4940 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
4941 (__lll_mutex_timedlock_wait): Likewise. Fix a few other problems
4942 which might very well made the code not working at all before.
4945 2004-09-28 Ulrich Drepper <drepper@redhat.com>
4947 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
4948 allow SIGSETXID to be sent.
4949 * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
4950 for SIGSETXID to be defined.
4951 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
4952 SIGSETXID cannot be blocked.
4954 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
4955 Add __extension__ to long long types.
4956 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
4957 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
4958 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
4959 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
4960 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
4961 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
4962 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
4964 2004-09-25 Ulrich Drepper <drepper@redhat.com>
4966 * descr.h (struct pthread): Add stopped_start field.
4967 * sysdeps/pthread/createthread.c (create_thread): Set
4968 start_stopped flag in descriptor for new thread appropriately.
4969 * pthread_create.c (start_thread): Only take lock to be stopped on
4970 startup if stopped_start flag says so.
4972 2004-09-24 Ulrich Drepper <drepper@redhat.com>
4974 * pthread_create.c (__pthread_create_2_1): Remember whether thread
4975 is created detached and if yes, do not try to free the stack in case
4976 the thread creation failed.
4977 * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
4978 call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
4979 case there has been no error. [BZ #405]
4981 * pthread_create.c (start_thread): Don't wait for scheduler data
4982 etc to be set at the beginning of the function. The cancellation
4983 infrastructure must have been set up. And enable async
4984 cancellation before potentially going to sleep. [BZ #401]
4986 2004-09-20 Ulrich Drepper <drepper@redhat.com>
4988 * Versions: Remove exports for pthread_set*id_np functions.
4989 * sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes
4991 * Makefile: Don't build pthread_set*id code for now.
4993 2004-09-19 Ulrich Drepper <drepper@redhat.com>
4995 * sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for
4997 * allocatestack.c (__nptl_setxid): New function.
4998 * descr.h (struct xid_command): Define type.
4999 * init.c (pthread_functions): Add ptr__nptl_setxid initialization.
5000 (sighandler_setxid): New function.
5001 (__pthread_initialize_minimal): Register sighandler_setxid for
5003 * pt-allocrtsig.c: Update comment.
5004 * pthreadP.h: Define SIGSETXID. Declare __xidcmd variable.
5005 Declare __nptl_setxid.
5006 * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid.
5007 * sysdeps/pthread/pthread.h: Declare pthread_setgid_np,
5008 pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
5009 pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
5010 and pthread_setresuid_np.
5011 * pthread_setgid_np.c: New file.
5012 * pthread_setuid_np.c: New file.
5013 * pthread_setegid_np.c: New file.
5014 * pthread_seteuid_np.c: New file.
5015 * pthread_setregid_np.c: New file.
5016 * pthread_setreuid_np.c: New file.
5017 * pthread_setresgid_np.c: New file.
5018 * pthread_setresuid_np.c: New file.
5019 * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np,
5020 pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
5021 pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
5022 and pthread_setresuid_np.
5023 * Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid,
5024 pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid,
5025 pthread_setregid, and pthread_setresgid.
5027 2004-09-18 Ulrich Drepper <drepper@redhat.com>
5029 * allocatestack.c (allocate_stack): Return EAGAIN instead of
5030 ENOMEM when out of memory.
5032 2004-09-10 Roland McGrath <roland@redhat.com>
5035 * allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED]
5036 code, since we don't try to use the broken CLONE_STOPPED any more.
5037 * pthread_create.c (start_thread): Likewise.
5039 2004-09-15 Richard Henderson <rth@redhat.com>
5041 * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
5043 2004-09-01 David Mosberger <davidm@hpl.hp.com>
5045 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
5046 (__libc_unwind_longjmp): Delete macro and declare as function.
5047 * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
5048 __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
5050 * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
5051 * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
5052 * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
5054 2004-09-12 Ulrich Drepper <drepper@redhat.com>
5056 * sysdeps/pthread/pthread.h: Make rwlock prototypes available also
5058 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock
5059 types also for __USE_XOPEN2K.
5060 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
5061 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5062 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5063 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5064 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
5065 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5066 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5069 2004-09-08 Ulrich Drepper <drepper@redhat.com>
5071 * sysdeps/pthread/pthread.h
5072 (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
5073 (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
5074 (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
5075 (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
5078 2004-09-07 Ulrich Drepper <drepper@redhat.com>
5080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow
5081 PSEUDO to be used with . prefix.
5083 * sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once):
5084 Use atomic_increment instead of atomic_exchange_and_add.
5085 * sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once):
5087 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
5089 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
5092 * allocatestack.c (allocate_stack): Use atomic_increment_val
5093 instead of atomic_exchange_and_add.
5094 * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise.
5095 * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
5097 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
5100 * sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
5101 the initialization function might throw.
5103 2005-09-05 Richard Henderson <rth@redhat.com>
5105 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
5106 Move definition inside libpthread, libc, librt check. Provide
5107 definition for rtld.
5109 2004-09-02 Ulrich Drepper <drepper@redhat.com>
5111 * sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
5112 * sysdeps/i386/jmpbuf-unwind.h: Likewise
5113 * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
5114 * sysdeps/s390/jmpbuf-unwind.h: Likewise.
5115 * sysdeps/sh/jmpbuf-unwind.h: Likewise.
5116 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
5117 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
5118 * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
5121 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
5122 Rename __data.__clock to __data.__nwaiters, make it unsigned int.
5123 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
5125 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
5126 Decrement __nwaiters. If pthread_cond_destroy has been called and
5127 this is the last waiter, signal pthread_cond_destroy caller and
5128 avoid using the pthread_cond_t structure after unlock.
5129 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
5130 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
5131 Read clock type from the least significant bits of __nwaiters instead
5133 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
5134 * sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS.
5136 2004-08-31 Jakub Jelinek <jakub@redhat.com>
5139 * Makefile (tests): Add tst-cond20 and tst-cond21.
5140 * tst-cond20.c: New test.
5141 * tst-cond21.c: New test.
5142 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
5143 (pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make
5145 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
5147 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5148 (pthread_cond_t): Likewise.
5149 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
5151 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
5153 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
5155 * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove.
5156 (cond_nwaiters): New.
5158 * pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY
5159 if there are waiters not signalled yet.
5160 Wait until all already signalled waiters wake up.
5161 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement
5162 __nwaiters. If pthread_cond_destroy has been called and this is the
5163 last waiter, signal pthread_cond_destroy caller and avoid using
5164 the pthread_cond_t structure after unlock.
5165 (__pthread_cond_wait): Increment __nwaiters in the beginning,
5166 decrement it when leaving. If pthread_cond_destroy has been called
5167 and this is the last waiter, signal pthread_cond_destroy caller.
5168 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
5169 Likewise. Read clock type from the least significant bits of
5170 __nwaiters instead of __clock.
5171 * pthread_condattr_setclock.c (pthread_condattr_setclock): Check
5172 whether clock ID can be encoded in COND_CLOCK_BITS bits.
5173 * pthread_condattr_getclock.c (pthread_condattr_getclock): Decode
5174 clock type just from the last COND_CLOCK_BITS bits of value.
5175 * pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters
5176 instead of __clock, just from second bit of condattr's value.
5178 2004-08-30 Jakub Jelinek <jakub@redhat.com>
5180 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include
5181 bits/wordsize.h. Make the header match i386 header when __WORDSIZE
5183 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
5185 2004-08-15 Roland McGrath <roland@frob.com>
5187 * pthread_atfork.c: Update copyright terms including special exception
5188 for these trivial files, which are statically linked into executables
5189 that use dynamic linking for the significant library code.
5191 2004-08-09 Jakub Jelinek <jakub@redhat.com>
5193 * DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to
5194 pthread_rwlock_rdlock.
5195 * sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
5196 Decrease __nr_readers_queued after reacquiring lock.
5197 * sysdeps/pthread/pthread_rwlock_timedrdlock
5198 (pthread_rwlock_timedrdlock): Likewise.
5199 Reported by Bob Cook <bobcook47@hotmail.com>.
5201 2004-08-11 Jakub Jelinek <jakub@redhat.com>
5203 * tst-rwlock14.c (tf): Read main thread handle from *ARG
5204 before pthread_barrier_wait.
5206 2004-08-07 Ulrich Drepper <drepper@redhat.com>
5208 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
5209 Remove unnecessary exception handling data.
5211 2004-07-23 Jakub Jelinek <jakub@redhat.com>
5214 * sysdeps/pthread/pthread.h (pthread_getcpuclockid): Use __clockid_t
5215 instead of clockid_t.
5217 2004-07-21 Roland McGrath <roland@redhat.com>
5219 * Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
5221 2004-07-19 Roland McGrath <roland@redhat.com>
5223 * tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
5225 2004-07-02 Roland McGrath <roland@redhat.com>
5227 * configure: Don't exit.
5229 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5231 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
5232 (__pthread_cond_timedwait): Check for invalid nanosecond in
5235 2004-07-07 Ulrich Drepper <drepper@redhat.com>
5237 * Makefile: Add rules to build and run tst-fini1.
5238 * tst-fini1.c: New file.
5239 * tst-fini1mod.c: New file.
5241 2004-07-05 Ulrich Drepper <drepper@redhat.com>
5243 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define NO_CANCELLATION
5244 if no cancellation support is needed.
5245 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
5246 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
5247 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
5248 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
5249 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
5250 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
5251 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
5252 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
5253 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
5255 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define __NR_futex
5256 only if not already defined.
5258 2004-07-05 Jakub Jelinek <jakub@redhat.com>
5260 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use
5261 constraint "m" instead of "0" for futex.
5263 * shlib-versions: Add powerpc64-.*-linux.*.
5265 2004-07-04 Jakub Jelinek <jakub@redhat.com>
5267 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
5268 (pthread_rwlock_timedrdlock): Use cmpq instead of cmpl to check
5270 * tst-rwlock14.c (do_test): Test for invalid tv_nsec equal to
5271 1 billion and 64-bit tv_nsec which is valid when truncated to 32
5274 2004-06-29 Roland McGrath <roland@redhat.com>
5276 * Banner: NPTL no longer has its own version number.
5277 * Makefile (nptl-version): Variable removed.
5278 * sysdeps/pthread/Makefile (CFLAGS-confstr.c): Set LIBPTHREAD_VERSION
5279 using $(version), the glibc version number.
5281 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5283 * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
5284 Fix branch offset for a PLT entry.
5285 * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
5287 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
5289 * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
5291 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait):
5294 2004-06-28 Jakub Jelinek <jakub@redhat.com>
5296 * sysdeps/alpha/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define
5299 2004-06-28 Jakub Jelinek <jakub@redhat.com>
5301 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
5302 (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
5304 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
5305 (pthread_rwlock_timedrdlock): Likewise.
5307 2004-06-22 Jakub Jelinek <jakub@redhat.com>
5309 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
5310 Set __r7 to val, not mutex.
5312 2004-06-27 Ulrich Drepper <drepper@redhat.com>
5314 * Makefile: Add rules to build tst-rwlock14.
5315 * tst-rwlock14.c: New file.
5317 2004-06-24 Boris Hu <boris.hu@intel.com>
5319 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation
5321 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
5323 2004-06-19 Andreas Jaeger <aj@suse.de>
5325 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix
5326 assembler in last patch.
5328 2004-06-17 Ulrich Drepper <drepper@redhat.com>
5330 * sysdeps/pthread/pthread_cond_timedwait.c
5331 (__pthread_cond_timedwait): Also check for negativ nanoseconds.
5332 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
5333 (__pthread_cond_timedwait): Check for invalid nanosecond in
5335 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
5336 * tst-cond19.c: New file.
5337 * Makefile: Add rules to build and run tst-cond19.
5339 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5341 * tst-context1.c (GUARD_PATTERN): Defined.
5342 (tst_context_t): Define struct containing ucontext_t & guard words.
5343 (ctx): Declare as an array of tst_context_t.
5344 (fct): Verify uc_link & guard words are still valid.
5345 (tf): Initialize guard words in ctx. Adjust ctx refs for new struct.
5347 2004-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5349 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
5350 Add __data.__futex field, reshuffle __data.__clock.
5351 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
5352 (__pthread_cond_signal): Increment __futex at the same time as
5353 __wakeup_seq or __total_seq. Pass address of __futex instead of
5354 address of low 32-bits of __wakeup_seq to futex syscall.
5355 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
5356 (__pthread_cond_wait): Likewise. Pass __futex value from before
5357 releasing internal lock to FUTEX_WAIT.
5358 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
5359 (__pthread_cond_timedwait): Likewise.
5360 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
5361 (FUTEX_CMP_REQUEUE): Define.
5362 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
5363 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
5364 Pass __futex value from before the unlock and __futex address instead
5365 of address of low 32-bits of __wakeup_seq to futex syscall.
5366 Fallback to FUTEX_WAKE all on any errors.
5368 2004-06-08 Jakub Jelinek <jakub@redhat.com>
5370 * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix
5372 * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise.
5373 * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
5374 * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise.
5375 * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
5376 Likewise. Reported by Bob Cook <bobcook47@hotmail.com>.
5378 2004-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
5380 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap):
5381 Add memory clobber to inline assembly.
5382 (__lll_mutex_trylock): Likewise.
5383 (__lll_mutex_cond_trylock): Likewise.
5385 2004-06-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
5387 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
5388 Pass val argument as 6th system call argument in %r7.
5390 2004-05-21 Jakub Jelinek <jakub@redhat.com>
5392 * Makefile (tests): Add tst-cond16.
5393 * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add.
5394 * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex.
5395 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
5396 Add __data.__futex field, reshuffle __data.__clock.
5397 * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S
5398 (__pthread_cond_signal): Increment __futex at the same time as
5399 __wakeup_seq or __total_seq. Pass address of __futex instead of
5400 address of low 32-bits of __wakeup_seq to futex syscall.
5401 * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S
5402 (__pthread_cond_wait): Likewise. Pass __futex value from before
5403 releasing internal lock to FUTEX_WAIT.
5404 * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S
5405 (__pthread_cond_timedwait): Likewise.
5406 * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S
5407 (FUTEX_CMP_REQUEUE): Define.
5408 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
5409 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
5410 Pass __futex value from before the unlock and __futex address instead
5411 of address of low 32-bits of __wakeup_seq to futex syscall.
5412 Fallback to FUTEX_WAKE all on any errors.
5413 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE):
5415 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
5416 internally. Return non-zero if error, zero if success.
5417 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
5418 Add __data.__futex field, reshuffle __data.__clock.
5419 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE):
5421 (lll_futex_requeue): Add val argument, return 1 unconditionally
5423 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
5424 Add __data.__futex field, reshuffle __data.__clock.
5425 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE):
5427 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
5428 internally. Return non-zero if error, zero if success.
5429 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5430 (pthread_cond_t): Add __data.__futex field, reshuffle __data.__clock.
5431 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_CMP_REQUEUE):
5433 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
5434 internally. Return non-zero if error, zero if success.
5435 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
5436 Add __data.__futex field, reshuffle __data.__clock.
5437 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_CMP_REQUEUE):
5439 (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
5440 internally. Return non-zero if error, zero if success.
5441 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
5442 Add __data.__futex field, reshuffle __data.__clock.
5443 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
5444 Add __data.__futex field, reshuffle __data.__clock.
5445 * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal):
5446 Increment __futex at the same time as __wakeup_seq or __total_seq.
5447 Pass address of __futex instead of address of low 32-bits of
5448 __wakeup_seq to futex syscall.
5449 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
5450 Pass __futex value from before releasing internal lock
5452 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
5453 Likewise. Avoid unnecessary shadowing of variables.
5454 * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast):
5455 Set __futex to 2 * __total_seq. Pass __futex value from before the
5456 unlock and __futex address instead of address of low 32-bits of
5457 __wakeup_seq to futex_requeue macro, adjust for new return value
5459 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5460 (__pthread_cond_signal): Increment __futex at the same time as
5461 __wakeup_seq or __total_seq. Pass address of __futex instead of
5462 address of low 32-bits of __wakeup_seq to futex syscall.
5463 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
5464 (__pthread_cond_wait): Likewise. Pass __futex value from before
5465 releasing internal lock to FUTEX_WAIT.
5466 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
5467 (__pthread_cond_timedwait): Likewise.
5468 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5469 (FUTEX_CMP_REQUEUE): Define.
5470 (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
5471 Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
5472 Pass __futex value from before the unlock and __futex address instead
5473 of address of low 32-bits of __wakeup_seq to futex syscall.
5474 Fallback to FUTEX_WAKE all on any errors.
5476 2004-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5478 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_mutex_lock):
5479 Add nop to align the end of critical section.
5480 (lll_mutex_cond_lock, lll_mutex_timedlock): Likewise.
5482 2004-06-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5484 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
5485 Add __broadcast_seq field.
5486 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Mark
5487 all waiters as woken with woken_seq and bump broadcast counter.
5488 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use new
5489 __broadcast_seq. Increment __woken_seq correctly when cleanuped.
5490 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
5491 Comment typo fixes. Avoid returning -ETIMEDOUT.
5493 2004-06-01 Ulrich Drepper <drepper@redhat.com>
5495 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
5496 (__condvar_tw_cleanup): Fix access to saved broadcast_seq value.
5497 Reported by Kaz Kojima.
5499 2004-05-25 Jakub Jelinek <jakub@redhat.com>
5501 * sysdeps/unix/sysv/linux/aio_misc.h: New file.
5503 2004-05-21 Jakub Jelinek <jakub@redhat.com>
5505 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare
5506 __broadcast_seq with bc_seq after acquiring internal lock instead of
5509 2004-05-18 Jakub Jelinek <jakub@redhat.com>
5511 * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not
5513 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
5514 (__pthread_cond_timedwait): Avoid returning -ETIMEDOUT.
5515 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
5516 (pthread_cond_t): Add __data.__broadcast_seq field.
5517 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
5518 (FRAME_SIZE): Define.
5519 (__pthread_cond_timedwait): Use it. Store/check broadcast_seq.
5521 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (FRAME_SIZE):
5523 (__pthread_cond_wait): Use it. Store/check broadcast_seq. Comment
5525 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5526 (__pthread_cond_broadcast): Increment broadcast_seq. Comment typo
5529 2004-05-18 Ulrich Drepper <drepper@redhat.com>
5531 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add broadcast_seq entry.
5532 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
5533 Add __broadcast_seq field.
5534 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5535 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5536 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5537 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
5538 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5539 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Mark
5540 all waiters as woken with woken_seq and bump broadcast counter.
5541 * sysdeps/pthread/pthread_cond_broadcast.c: Likewise.
5542 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use new
5543 __broadcast_seq field.
5544 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
5545 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
5546 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
5547 * pthread_cond_init.c: Initialize __broadcast_seq field.
5548 * Makefile (tests): Add tst-cond17 and tst-cond18.
5549 Add .NOTPARALLEL goal.
5550 * tst-cond16.c: New file. From Jakub.
5551 * tst-cond17.c: New file. From Jakub.
5552 * tst-cond18.c: New file. From Jakub.
5554 2004-05-16 Ulrich Drepper <drepper@redhat.com>
5556 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Correct some
5559 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
5560 Parametrize frame size. Correct some unwind info.
5561 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
5563 2004-05-04 Jakub Jelinek <jakub@redhat.com>
5565 * tst-stack3.c: Note testing functionality beyond POSIX.
5567 2004-05-04 Jakub Jelinek <jakub@redhat.com>
5569 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD):
5570 Change conditional from ifdef to if.
5572 2004-04-23 Jakub Jelinek <jakub@redhat.com>
5574 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SYSDEP_CANCEL_ERRNO,
5575 SYSDEP_CANCEL_ERROR): Define.
5578 2004-05-01 Jakub Jelinek <jakub@redhat.com>
5580 * Versions (libpthread): Remove __pthread_cleanup_upto@@GLIBC_PRIVATE.
5582 2004-04-20 Jakub Jelinek <jakub@redhat.com>
5584 * sem_unlink.c (sem_unlink): Change EPERM into EACCES.
5586 2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5588 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
5589 Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
5590 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove unneeded frame
5591 info. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
5593 2004-04-19 Ulrich Drepper <drepper@redhat.com>
5595 * sysdeps/unix/sysv/linux/timer_routines.c: Make sure helper
5596 thread has all signals blocked.
5598 2004-04-18 Andreas Jaeger <aj@suse.de>
5600 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h
5601 (SEM_VALUE_MAX): Add missing brace.
5603 2004-04-17 Jakub Jelinek <jakub@redhat.com>
5605 * sysdeps/pthread/Makefile (tests): Add tst-mqueue8x
5607 (CFLAGS-tst-mqueue8x.c): Add -fexceptions.
5608 * sysdeps/pthread/tst-mqueue8x.c: New test.
5609 * tst-cancel4.c: Update comment about message queues.
5611 * sysdeps/pthread/timer_gettime.c (timer_gettime): For expired timer
5612 return it_value { 0, 0 }.
5613 * sysdeps/pthread/timer_create.c (timer_create): Handle SIGEV_NONE
5615 * sysdeps/pthread/timer_routines.c (thread_expire_timer): Remove
5616 assertion for SIGEV_NONE.
5617 (thread_attr_compare): Compare all attributes, not just a partial
5620 2004-04-17 Jakub Jelinek <jakub@redhat.com>
5622 * sysdeps/unix/sysv/linux/mq_notify.c: Include stdlib.h.
5624 2004-04-17 Ulrich Drepper <drepper@redhat.com>
5626 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h (SEM_VALUE_MAX):
5627 Just use a plain number.
5628 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
5629 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
5630 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
5631 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
5632 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
5633 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
5634 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
5636 2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5638 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded
5640 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
5642 2004-04-15 Jakub Jelinek <jakub@redhat.com>
5644 * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h.
5645 (timer_helper_thread): Use inline rt_sigtimedwait syscall instead
5646 of calling sigwaitinfo.
5648 2004-04-16 Ulrich Drepper <drepper@redhat.com>
5650 * allocatestack.c (allocate_stack): Set reported_guardsize
5652 * pthread_getattr_np.c (pthread_getattr_np): Use
5653 reported_guardsize instead of guardsize.
5654 * descr.h (struct pthread): Add reported_guardsize field.
5656 2004-04-13 Jakub Jelinek <jakub@redhat.com>
5658 * sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.
5660 2004-04-12 Ulrich Drepper <drepper@redhat.com>
5662 * sysdeps/unix/sysv/linux/mq-notify.c: New file.
5664 2004-04-08 Jakub Jelinek <jakub@redhat.com>
5666 * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define.
5667 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h (MQ_PRIO_MAX): Define.
5668 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h (MQ_PRIO_MAX): Define.
5669 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h (MQ_PRIO_MAX): Define.
5670 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_MESSAGE_PASSING):
5672 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h
5673 (_POSIX_MESSAGE_PASSING): Define.
5674 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h
5675 (_POSIX_MESSAGE_PASSING): Define.
5676 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h
5677 (_POSIX_MESSAGE_PASSING): Define.
5679 2004-04-04 Ulrich Drepper <drepper@redhat.com>
5681 * tst-context1.c (fct): Check whether correct stack is used.
5683 2004-04-03 Ulrich Drepper <drepper@redhat.com>
5685 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
5686 matching constraints for asm mem parameters.
5688 * tst-clock2.c (tf): Don't define unless needed.
5690 2004-03-30 H.J. Lu <hongjiu.lu@intel.com>
5692 * Makefile (link-libc-static): Use $(static-gnulib) instead of
5695 2004-03-30 Ulrich Drepper <drepper@redhat.com>
5697 * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_deallocate_tsd.
5698 * init.c (pthread_functions): Add ptr__nptl_deallocate_tsd.
5699 * pthreadP.h: Declare __nptl_deallocate_tsd.
5700 * pthread_create.c (deallocate_tsd): Remove to __nptl_deallocate_tsd.
5703 * Makefile (tests): Add tst-tsd5.
5704 * tst-tsd5.c: New file.
5706 2004-03-29 Ulrich Drepper <drepper@redhat.com>
5708 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
5709 (__pthread_attr_setaffinity_old): Prepend GLIBC_ to version names
5710 is SHLIB_COMPAT check.
5711 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
5712 (__pthread_attr_getaffinity_old): Likewise.
5713 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
5714 (__pthread_getaffinity_old): Likewise.
5715 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
5716 (__pthread_setaffinity_old): Likewise.
5718 2004-03-26 Ulrich Drepper <drepper@redhat.com>
5720 * allocatestack.c (_make_stacks_executable): Call
5721 _dl_make_stack_executable first.
5723 2004-03-24 Roland McGrath <roland@redhat.com>
5725 * sysdeps/i386/pthread_spin_lock.c (pthread_spin_lock): Use "m"
5726 constraint instead of "0".
5728 2004-03-24 Ulrich Drepper <drepper@redhat.com>
5730 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
5731 (lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock.
5733 * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Reorganize
5734 code to avoid warning.
5736 2004-03-24 Andreas Jaeger <aj@suse.de>
5738 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
5739 (__pthread_attr_setaffinity_old): Remove const.
5741 2004-03-23 Ulrich Drepper <drepper@redhat.com>
5743 * sysdeps/unix/sysv/linux/smp.h: New file.
5744 * sysdeps/unix/sysv/linux/sh/smp.h: New file.
5745 * init.c: Define __is_smp.
5746 (__pthread_initialize_minimal_internal): Call is_smp_system to
5747 initialize __is_smp.
5748 * pthreadP.h: Declare __is_smp.
5749 Define MAX_ADAPTIVE_COUNT is necessary.
5750 * pthread_mutex_init.c: Add comment regarding __spins field.
5751 * pthread_mutex_lock.c: Implement adaptive mutex type.
5752 * pthread_mutex_timedlock.c: Likewise.
5753 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
5754 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
5756 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
5757 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5758 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5759 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
5760 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5761 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5762 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5763 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define
5764 lll_mutex_cond_trylock.
5765 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
5766 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
5767 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
5768 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
5769 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
5770 Define BUSY_WAIT_NOP.
5771 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
5772 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
5774 * tst-mutex5.c: Add support for testing adaptive mutexes.
5775 * tst-mutex7.c: Likewise.
5776 * tst-mutex5a.c: New file.
5777 * tst-mutex7a.c: New file.
5778 * Makefile (tests): Add tst-mutex5a and tst-mutex7a.
5780 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
5781 (__lll_mutex_timedlock_wait): Preserve r8 and r9 since the
5782 vgettimeofday call might destroy the content.
5784 * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use hint
5787 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
5788 No need to restrict type of ret. Make it int. Add comment.
5790 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
5791 Remove unnecessary setne instruction.
5793 2004-03-22 Jakub Jelinek <jakub@redhat.com>
5795 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
5796 (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
5797 * pthread_getattr_np.c (pthread_getattr_np): Double size every cycle.
5798 If realloc fails, break out of the loop.
5800 2004-03-20 Andreas Jaeger <aj@suse.de>
5802 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
5803 (__pthread_setaffinity_old): Fix interface.
5804 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
5805 (__pthread_getaffinity_old): Likewise.
5807 * sysdeps/unix/sysv/linux/pthread_setaffinity.c
5808 (__pthread_setaffinity_new): Remove duplicate declaration.
5810 2004-03-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5812 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save
5813 the return value to a safe register.
5814 (CDISABLE): Set the function argument correctly.
5816 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5818 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XCHG): Define.
5819 * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
5820 Rewrite so that only one locked memory operation per round is needed.
5821 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
5822 (pthread_barrier_wait): After wakeup, release lock only when the
5823 last thread stopped using the barrier object.
5824 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
5825 (__pthread_cond_wait): Don't store mutex address if the current
5826 value is ~0l. Add correct cleanup support and unwind info.
5827 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
5828 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
5829 (__pthread_cond_broadcast): Don't use requeue for pshared condvars.
5830 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Update comment.
5831 * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
5832 Add correct cleanup support and unwind info.
5833 * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
5834 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Add unwind
5835 information for syscall wrappers.
5837 2004-03-18 Ulrich Drepper <drepper@redhat.com>
5839 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
5840 cpusetsize field, remove next.
5841 * sysdeps/pthread/pthread.h (pthread_getaffinity_np): Add new second
5842 parameter for size of the CPU set.
5843 (pthread_setaffinity_np): Likewise.
5844 (pthread_attr_getaffinity_np): Likewise.
5845 (pthread_attr_setaffinity_np): Likewise.
5846 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Implement
5847 interface change, keep compatibility code.
5848 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
5849 * sysdeps/unix/sysv/linux/pthread_getaffinity.c: Likewise.
5850 * sysdeps/unix/sysv/linux/pthread_setaffinity.c: Likewise.
5851 * pthreadP.h: Remove hidden_proto for pthread_getaffinity_np. Declare
5852 __pthread_getaffinity_np.
5853 * Versions: Add version for changed interfaces.
5854 * tst-attr3.c: Adjust test for interface change.
5855 * pthread_getattr_np.c: Query the kernel about the affinity mask with
5856 increasing buffer sizes.
5857 * pthread_attr_destroy.c: Remove unused list handling.
5858 * pthread_attr_init.c: Likewise.
5860 2004-03-17 Roland McGrath <roland@redhat.com>
5862 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing
5863 first argument to clock_getres so we ever enable kernel timers.
5865 2004-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5867 * init.c (nptl_version): Add __attribute_used__ to nptl_version.
5869 2004-03-12 Richard Henderson <rth@redhat.com>
5871 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate
5872 oldvalue from CENABLE to CDISABLE.
5874 2004-03-12 Ulrich Drepper <drepper@redhat.com>
5876 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
5877 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
5878 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
5879 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
5881 2004-03-11 Richard Henderson <rth@redhat.com>
5883 * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
5884 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID.
5885 * sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
5887 2004-03-11 Jakub Jelinek <jakub@redhat.com>
5889 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Use jgnl
5890 instead of jnl instruction to jump to SYSCALL_ERROR_LABEL.
5891 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S (__vfork): Likewise.
5893 2004-03-11 Jakub Jelinek <jakub@redhat.com>
5895 * forward.c (__pthread_cond_broadcast_2_0,
5896 __pthread_cond_destroy_2_0, __pthread_cond_init_2_0,
5897 __pthread_cond_signal_2_0, __pthread_cond_wait_2_0,
5898 __pthread_cond_timedwait_2_0): Use return 0 as defaction instead of 0.
5900 2004-03-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5902 * sysdeps/sh/tcb-offsets.sym: Add PID.
5903 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Properly handle PID cache.
5904 * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
5906 2004-03-10 Ulrich Drepper <drepper@redhat.com>
5908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: No need to
5909 include <sysdep-cancel.h>, vfork is no cancellation point.
5910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
5911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: Likewise.
5912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: Likewise.
5914 2004-03-10 Jakub Jelinek <jakub@redhat.com>
5916 * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add
5918 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise.
5919 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork):
5921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
5923 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise.
5924 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise.
5925 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Include tcb-offsets.h.
5926 * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Use DO_CALL instead
5927 of DO_CALL_VIA_BREAK. Work around a gas problem.
5929 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: Remove.
5930 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
5931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: New file.
5932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
5933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: New file.
5934 * sysdeps/powerpc/tcb-offsets.sym: Add PID.
5936 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S (__vfork): Don't use
5937 a local register for saving old PID. Negate PID in parent upon exit.
5939 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Include
5941 (__vfork): Negate PID if non-zero and set to INT_MIN if zero
5942 before syscall, set to the old value in the parent afterwards.
5943 * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: New file.
5944 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Include
5946 (__vfork): Negate PID if non-zero and set to INT_MIN if zero
5947 before syscall, set to the old value in the parent afterwards.
5948 * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: New file.
5949 * sysdeps/s390/tcb-offsets.sym: Add PID.
5951 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Remove.
5952 * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: New file.
5953 * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: New file.
5954 * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: New file.
5955 * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: New file.
5956 * sysdeps/sparc/tcb-offsets.sym: Add PID.
5958 2004-03-10 Andreas Schwab <schwab@suse.de>
5960 * sysdeps/ia64/tcb-offsets.sym: Add PID.
5961 * sysdeps/unix/sysv/linux/ia64/vfork.S: New file.
5962 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Properly handle PID cache.
5964 2004-03-09 Jakub Jelinek <jakub@redhat.com>
5966 * tst-cancel20.c (do_one_test): Clear in_sh_body first.
5967 * tst-cancel21.c (do_one_test): Likewise.
5968 Reported by Gordon Jin <gordon.jin@intel.com>.
5970 2004-02-09 Jakub Jelinek <jakub@redhat.com>
5972 * sysdeps/unix/sysv/linux/i386/vfork.S (SAVE_PID): Negate PID
5973 if non-zero and set to INT_MIN if zero.
5974 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SAVE_PID): Likewise.
5975 * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Include tcb-offsets.h.
5976 (SAVE_PID, RESTORE_PID): Define.
5978 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: Include tcb-offsets.h.
5979 Use relative path to avoid including NPTL i386/vfork.S.
5980 (SAVE_PID, RESTORE_PID): Define.
5981 * sysdeps/unix/sysv/linux/raise.c: Include limits.h.
5982 (raise): Handle THREAD_SELF->pid INT_MIN the same as 0.
5983 * Makefile (tests): Add tst-vfork1, tst-vfork2, tst-vfork1x and
5985 (tests-reverse): Add tst-vfork1x and tst-vfork2x.
5986 * tst-vfork1.c: New test.
5987 * tst-vfork2.c: New test.
5988 * tst-vfork1x.c: New test.
5989 * tst-vfork2x.c: New test.
5991 2004-03-08 Ulrich Drepper <drepper@redhat.com>
5993 * sysdeps/i386/tcb-offsets.sym: Add PID.
5994 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
5995 * sysdeps/unix/sysv/linux/i386/vfork.S: New file.
5996 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
5998 2004-03-08 Steven Munroe <sjmunroe@us.ibm.com>
6000 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove leading tabs.
6002 2004-03-08 H.J. Lu <hongjiu.lu@intel.com>
6004 * sysdeps/s390/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
6007 2004-03-07 Ulrich Drepper <drepper@redhat.com>
6009 * sysdeps/ia64/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
6012 * tst-once4.c: Remove unnecessary macro definition.
6014 * tst-mutex7.c (do_test): Limit thread stack size.
6015 * tst-once2.c (do_test): Likewise.
6016 * tst-tls3.c (do_test): Likewise.
6017 * tst-tls1.c (do_test): Likewise.
6018 * tst-signal3.c (do_test): Likewise.
6019 * tst-kill6.c (do_test): Likewise.
6020 * tst-key4.c (do_test): Likewise.
6021 * tst-join4.c (do_test): Likewise.
6022 * tst-fork1.c (do_test): Likewise.
6023 * tst-context1.c (do_test): Likewise.
6024 * tst-cond2.c (do_test): Likewise.
6025 * tst-cond10.c (do_test): Likewise.
6026 * tst-clock2.c (do_test): Likewise.
6027 * tst-cancel10.c (do_test): Likewise.
6028 * tst-basic2.c (do_test): Likewise.
6029 * tst-barrier4.c (do_test): Likewise.
6031 2004-03-05 Ulrich Drepper <drepper@redhat.com>
6033 * sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate.
6035 2004-03-01 Ulrich Drepper <drepper@redhat.com>
6037 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6038 (__pthread_cond_timedwait): Optimize wakeup test.
6039 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
6040 (__pthread_cond_wait): Likewise.
6041 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
6042 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
6045 2004-02-29 Ulrich Drepper <drepper@redhat.com>
6047 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
6048 (__lll_mutex_lock_wait): Optimize a bit more. Just one copy of
6049 the atomic instruction needed.
6050 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
6051 (__lll_mutex_lock_wait): Likewise.
6053 2004-02-28 Ulrich Drepper <drepper@redhat.com>
6055 * Makefile (tests): Add tst-cond14 and tst-cond15.
6056 * tst-cond14.c: New file.
6057 * tst-cond15.c: New file.
6059 2004-02-27 Ulrich Drepper <drepper@redhat.com>
6061 * sysdeps/pthread/createthread.c (create_thread): Remove use of
6062 CLONE_STOPPED. We cannot use SIGCONT which means CLONE_STOPPED
6063 needs to be implemented differently to be useful.
6065 2004-02-26 Ulrich Drepper <drepper@redhat.com>
6067 * pthread_attr_setschedparam.c: Don't test priority against limits
6068 here. Set ATTR_FLAG_SCHED_SET flag.
6069 * pthread_attr_setschedpolicy.c: Set ATTR_FLAG_POLICY_SET flag.
6070 * pthread_create.c (__pthread_create_2_1): Copy scheduling attributes
6071 from parent thread to child. If attribute is used and scheduling
6072 parameters are not inherited, copy parameters from attribute or
6073 compute them. Check priority value.
6074 * pthread_getschedparam.c: If the parameters aren't known yet get
6075 them from the kernel.
6076 * pthread_setschedparam.c: Set ATTR_FLAG_SCHED_SET and
6077 ATTR_FLAG_POLICY_SET flag for thread.
6078 * sysdeps/unix/sysv/linux/internaltypes.h: Define ATTR_FLAG_SCHED_SET
6079 and ATTR_FLAG_POLICY_SET.
6081 * sysdeps/pthread/createthread.c: Use tgkill if possible.
6083 * pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Don't
6084 fail if stack address hasn't been set. Just return 0.
6086 2004-02-25 Ulrich Drepper <drepper@redhat.com>
6088 * Makefile (tests-nolibpthread): Add tst-unload. Don't link with
6089 libpthread for the files in this list.
6090 (CFLAGS-tst-unload): Removed.
6091 * tst-unload.c (do_test): Don't use complete path for
6094 * Makefile: Define sonames for tst-tls5mod, tst-_res1mod1, and
6097 2004-02-22 Ulrich Drepper <drepper@redhat.com>
6099 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
6100 (__lll_mutex_lock_wait): Rewrite so that only one locked memory
6101 operation per round is needed.
6102 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
6103 (__lll_mutex_lock_wait): Likewise.
6105 2004-02-20 Ulrich Drepper <drepper@redhat.com>
6107 * tst-cancel9.c (cleanup): Don't print to stderr.
6109 2004-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6111 * sysdeps/sh/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Fix variable name.
6113 2004-02-20 Jakub Jelinek <jakub@redhat.com>
6115 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
6116 (__syscall_error_handler2): Call CDISABLE.
6117 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
6118 (__syscall_error_handler2): Call CDISABLE.
6120 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
6121 Release lock before the loop, don't reacquire it.
6123 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define.
6125 2004-02-19 Andreas Schwab <schwab@suse.de>
6127 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
6130 2004-02-18 Ulrich Drepper <drepper@redhat.com>
6132 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
6133 (pthread_barrier_wait): After wakeup, release lock only when the
6134 last thread stopped using the barrier object.
6135 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
6136 (pthread_barrier_wait): Likewise.
6137 * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
6139 * Makefile (tests): Add tst-barrier4.
6140 * tst-barrier4.c: New file.
6142 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6143 (__pthread_cond_timedwait): Perform timeout test while holding
6144 internal lock to prevent wakeup race.
6145 Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
6146 * sysdeps/pthread/pthread_cond_timedwait.c
6147 (__pthread_cond_timedwait): Likewise.
6148 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
6149 (__pthread_cond_timedwait): Likewise.
6151 2004-02-18 Jakub Jelinek <jakub@redhat.com>
6153 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S
6154 (__pthread_rwlock_unlock): Access WRITER as 32-bit value.
6155 * Makefile (tests): Add tst-rwlock13.
6156 * tst-rwlock13.c: New test.
6158 2004-02-16 Ulrich Drepper <drepper@redhat.com>
6160 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6161 (__condvar_tw_cleanup): Little optimization.
6162 Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
6164 2004-02-16 Steven Munroe <sjmunroe@us.ibm.com>
6166 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Replace libc with
6167 libpthread as "lib" parameter to SHLIB_COMPAT.
6168 (__novmx_siglongjmp): Fix typo in function name.
6169 (__novmx_longjmp): Fix typo in function name.
6171 2004-02-13 Ulrich Drepper <drepper@redhat.com>
6173 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a
6176 * sysdeps/generic/pt-longjmp.c: Moved to...
6177 * sysdeps/pthread/pt-longjmp.c: ...here. New file.
6179 2004-01-29 Steven Munroe <sjmunroe@us.ibm.com>
6181 * Makefile (libpthread-routines): Add pt-cleanup.
6182 * pt-longjmp.c: Removed.
6183 * pt-cleanup.c: Copied __pthread_cleanup_upto to here. New file.
6184 * sysdeps/generic/pt-longjmp.c: Copied longjmp to here. New file.
6185 * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
6186 Version longjmp, siglongjmp for GLIBC_2.3.4.
6187 * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: New File.
6189 2004-02-13 Ulrich Drepper <drepper@redhat.com>
6191 * sysdeps/pthread/pthread_cond_timedwait.c
6192 (__pthread_cond_timedwait): Optimize. Drop internal lock earlier.
6193 Reuse code. Add __builtin_expects.
6195 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6196 (__pthread_cond_timedwait): Get internal lock in case timeout has
6197 passed before the futex syscall.
6198 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6200 2004-01-20 Ulrich Drepper <drepper@redhat.com>
6202 * allocatestack.c: Pretty printing.
6204 * sysdeps/pthread/createthread.c (create_thread): Don't add
6205 CLONE_DETACHED bit if it is not necessary.
6207 2004-01-16 Ulrich Drepper <drepper@redhat.com>
6209 * pthread_getattr_np.c: Include ldsodefs.h.
6211 2004-01-16 Richard Henderson <rth@redhat.com>
6213 * allocatestack.c: Don't declare __libc_stack_end.
6214 * init.c (__pthread_initialize_minimal_internal): Likewise.
6215 * pthread_getattr_np.c (pthread_getattr_np): Likewise.
6217 2004-01-15 Richard Henderson <rth@redhat.com>
6219 * sysdeps/alpha/tls.h (tcbhead_t): Add private.
6220 (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
6221 TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
6222 GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
6223 (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
6224 (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
6225 (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
6226 * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
6228 2004-01-14 Ulrich Drepper <drepper@redhat.com>
6230 * init.c (pthread_functions): Make array const.
6232 2004-01-13 Ulrich Drepper <drepper@redhat.com>
6234 * allocatestack.c (__make_stacks_executable): Change interface.
6235 Check parameters. Pass parameter on to libc counterpart.
6236 * pthreadP.h: Change declaration.
6238 2004-01-13 Richard Henderson <rth@redhat.com>
6240 * pthread_attr_setstack.c (__old_pthread_attr_setstack): Use
6242 * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize):
6245 * sysdeps/alpha/Makefile: New file.
6246 * sysdeps/alpha/tcb-offsets.sym: New file.
6247 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
6248 Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.
6250 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
6253 2004-01-08 Jakub Jelinek <jakub@redhat.com>
6255 * Makefile (tests): Add tst-backtrace1.
6256 * tst-backtrace1.c: New test.
6258 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
6260 * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
6261 register as second parameter to the REGISTER macro.
6262 * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
6263 * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
6264 * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
6265 * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
6266 * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
6267 of thread register as second parameter to REGISTER macro in 64 case.
6269 2004-01-03 Ulrich Drepper <drepper@redhat.com>
6271 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
6272 (CFLAGS-getpid.o): Defined.
6273 (CFLAGS-getpid.os): Defined.
6275 2003-12-31 Ulrich Drepper <drepper@redhat.com>
6277 * pthread_getattr_np.c (pthread_getattr_np): Make sure stack info
6278 returned for main thread does not overlap with any other VMA.
6279 Patch by Jakub Jelinek.
6281 2003-12-29 Jakub Jelinek <jakub@redhat.com>
6283 * tst-raise1.c: Include stdio.h.
6285 2003-12-23 Jakub Jelinek <jakub@redhat.com>
6287 * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid
6288 setting with __ASSUME_TGKILL || defined __NR_tgkill.
6289 If pid is 0, set it to selftid.
6290 * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline.
6291 Don't set self->pid but self->tid. If self->pid == 0 and self->tid
6292 != 0, return self->tid without doing a syscall.
6293 * descr.h (struct pthread): Move pid field after tid.
6295 * Makefile (tests): Add tst-raise1.
6296 * tst-raise1.c: New file.
6298 2003-12-23 Roland McGrath <roland@redhat.com>
6300 * tst-oddstacklimit.c: New file.
6301 * Makefile (tests): Add it.
6302 (tst-oddstacklimit-ENV): New variable.
6304 * init.c (__pthread_initialize_minimal_internal): Round stack rlimit
6305 value up to page size for __default_stacksize.
6307 2003-12-21 Ulrich Drepper <drepper@redhat.com>
6309 * Makefile (tests): Add tst-eintr5.
6310 * tst-eintr5.c: New file.
6312 * eintr.c (eintr_source): Prevent sending signal to self.
6314 * tst-eintr2.c (tf1): Improve error message.
6316 2003-12-20 Ulrich Drepper <drepper@redhat.com>
6318 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define.
6319 * sysdeps/unix/sysv/linux/getpid.c: New file.
6320 * pthread_cancel.c: Add comment explaining use of PID field.
6321 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
6322 * pthread_getattr_np.c: Use abs() when comparing PID and TID fields.
6323 * sysdeps/unix/sysv/linux/fork.c: Negate PID field of parent
6324 temporarily to signal the field must not be relied on and updated
6326 * sysdeps/unix/sysv/linux/pt-raise.c: Handle case where PID is
6327 temporarily negative.
6328 * sysdeps/unix/sysv/linux/raise.c: Likewise.
6330 2003-12-19 Ulrich Drepper <drepper@redhat.com>
6332 * eintr.c (setup_eintr): Add new parameter. Pass to thread function.
6333 (eintr_source): If ARG != NULL, use pthread_kill.
6334 * tst-eintr1.c: Adjust for this change.
6335 * tst-eintr2.c: Likewise.
6336 * Makefile (tests): Add tst-eintr3 and tst-eintr4.
6337 * tst-eintr3.c: New file.
6338 * tst-eintr4.c: New file.
6340 2003-12-19 Jakub Jelinek <jakub@redhat.com>
6342 * libc-cancellation.c (__libc_enable_asynccancel): Don't cancel
6343 if CANCELSTATE_BITMASK is set.
6344 * sysdeps/pthread/librt-cancellation.c (__librt_enable_asynccancel):
6347 * Makefile (tests): Add tst-cancel22 and tst-cancel23.
6348 (tests-reverse): Add tst-cancel23.
6349 * tst-cancel22.c: New test.
6350 * tst-cancel23.c: New test.
6352 2003-12-18 Ulrich Drepper <drepper@redhat.com>
6354 * tst-eintr1.c: Better error messages.
6356 * Makefile (tests): Add tst-eintr2.
6357 * tst-eintr2.c: New file.
6359 2003-12-18 Jakub Jelinek <jakub@redhat.com>
6361 * Makefile (tests): Add tst-cancel21 and tst-cancelx21.
6362 (CFLAGS-tst-cancelx21.c): Set.
6363 * tst-cancel21.c: New test.
6364 * tst-cancelx21.c: New test.
6366 * unwind.c (FRAME_LEFT): Add adj argument. Subtract it from each
6368 (unwind_stop): Use _JMPBUF_CFA_UNWINDS_ADJ macro instead of
6369 _JMPBUF_CFA_UNWINDS. Adjust FRAME_LEFT invocations.
6370 * pt-longjmp.c: Include jmpbuf-unwind.h.
6371 (__pthread_cleanup_upto): Use _JMPBUF_UNWINDS_ADJ macro instead of
6372 _JMPBUF_UNWINDS. Adjust compared pointers.
6373 * init.c (__pthread_initialize_minimal_internal): Initialize
6374 pd->stackblock_size.
6375 * sysdeps/pthread/jmpbuf-unwind.h: Removed.
6376 * sysdeps/alpha/jmpbuf-unwind.h: New file.
6377 * sysdeps/i386/jmpbuf-unwind.h: New file.
6378 * sysdeps/powerpc/jmpbuf-unwind.h: New file.
6379 * sysdeps/s390/jmpbuf-unwind.h: New file.
6380 * sysdeps/sh/jmpbuf-unwind.h: New file.
6381 * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file.
6382 * sysdeps/x86_64/jmpbuf-unwind.h: New file.
6383 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Include stdint.h.
6384 (_JMPBUF_CFA_UNWINDS): Remove.
6385 (_JMPBUF_CFA_UNWINDS_ADJ, _JMPBUF_UNWINDS_ADJ): Define.
6387 2003-12-12 Jakub Jelinek <jakub@redhat.com>
6389 * Makefile (tests): Add tst-cancel20 and tst-cancelx20.
6390 (CFLAGS-tst-cancelx20.c): Set.
6391 * tst-cancel20.c: New test.
6392 * tst-cancelx20.c: New test.
6394 2003-12-17 Ulrich Drepper <drepper@redhat.com>
6396 * init.c (__pthread_initialize_minimal_internal): Don't treat
6397 architectures with separate register stack special here when
6398 computing default stack size.
6400 2003-12-17 Roland McGrath <roland@redhat.com>
6402 * Makefile (tst-cancelx7-ARGS): New variable.
6403 Reportd by Greg Schafer <gschafer@zip.com.au>.
6405 2003-12-17 Jakub Jelinek <jakub@redhat.com>
6407 * Makefile (tests): Add tst-stack3. Depend on $(objpfx)tst-stack3-mem.
6408 (generated): Add tst-stack3.mtrace and tst-stack3-mem.
6409 (tst-stack3-ENV): Set.
6410 ($(objpfx)tst-stack3-mem): New.
6411 * tst-stack3.c: New test.
6413 2003-12-10 David Mosberger <davidm@hpl.hp.com>
6415 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init_EPILOG_BEGINS):
6416 Add unwind directives. Drop unused .regstk directive.
6417 (_fini_EPILOG_BEGINS): Add unwind directives.
6419 2003-12-11 Ulrich Drepper <drepper@redhat.com>
6421 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
6422 Assume parameter is a pointer.
6423 (lll_futex_wake): Likewise.
6424 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wait):
6426 (lll_futex_wake): Likewise.
6427 Reported by Boris Hu.
6428 * sysdeps/unix/sysv/linux/unregister-atfork.c
6429 (__unregister_atfork): Pass pointer to refcntr to lll_futex_wait.
6431 * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Simplify a bit.
6433 2003-12-10 Ulrich Drepper <drepper@redhat.com>
6435 * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define.
6436 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call
6437 __rtld_lock_initialize for ld.so lock.
6438 Patch in part by Adam Li <adam.li@intel.com>.
6440 2003-12-02 David Mosberger <davidm@hpl.hp.com>
6442 * Makefile (link-libc-static): Remove -lgcc_eh---it's already mentioned
6443 in $(gnulib). Also, remove stale comment.
6445 2003-11-12 David Mosberger <davidm@hpl.hp.com>
6447 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Take
6448 advantage of new syscall stub and optimize accordingly.
6450 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__NR_futex): Rename
6451 from SYS_futex, to match expectations of
6452 sysdep.h:DO_INLINE_SYSCALL.
6453 (lll_futex_clobbers): Remove.
6454 (lll_futex_timed_wait): Rewrite in terms of DO_INLINE_SYSCALL.
6455 (lll_futex_wake): Likewise.
6456 (lll_futex_requeue): Likewise.
6457 (__lll_mutex_trylock): Rewrite to a macro, so we can include this
6458 file before DO_INLINE_SYSCALL is defined (proposed by Jakub
6460 (__lll_mutex_lock): Likewise.
6461 (__lll_mutex_cond_lock): Likewise.
6462 (__lll_mutex_timed_lock): Likewise.
6463 (__lll_mutex_unlock): Likewise.
6464 (__lll_mutex_unlock_force): Likewise.
6466 * sysdeps/ia64/tls.h: Move declaration of __thread_self up so it
6467 comes before the include of <sysdep.h>.
6468 (THREAD_SELF_SYSINFO): New macro.
6469 (THREAD_SYSINFO): Likewise.
6470 (INIT_SYSINFO): New macro.
6471 (TLS_INIT_TP): Call INIT_SYSINFO.
6473 * sysdeps/ia64/tcb-offsets.sym: Add SYSINFO_OFFSET.
6475 * sysdeps/pthread/createthread.c (create_thread): Use
6476 THREAD_SELF_SYSINFO and THREAD_SYSINFO instead of open code.
6477 * allocatestack.c (allocate_stack): Use THREAD_SYSINFO and
6478 THREAD_SELF_SYSINFO instead of open code.
6479 * sysdeps/i386/tls.h (THREAD_SELF_SYSINFO): New macro.
6480 (THREAD_SYSINFO): Likewise.
6482 * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: New file.
6484 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Work around gas problem.
6486 2003-12-06 Ulrich Drepper <drepper@redhat.com>
6488 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Use .init_array
6489 instead of .init. Patch by David Mosberger.
6491 2003-11-30 Thorsten Kukuk <kukuk@suse.de>
6493 * sysdeps/pthread/configure.in: Remove broken declaration in C
6494 cleanup handling check.
6496 2003-11-30 Andreas Jaeger <aj@suse.de>
6498 * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
6499 * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
6502 2003-11-27 Jakub Jelinek <jakub@redhat.com>
6504 * sysdeps/unix/sysv/linux/internaltypes.h (ATTR_FLAG_OLDATTR): Define.
6505 * pthread_attr_destroy.c: Include shlib-compat.h.
6506 (__pthread_attr_destroy): Return immediately if ATTR_FLAG_OLDATTR
6507 is set in iattr->flags.
6508 * pthread_attr_init.c (__pthread_attr_init_2_0): Set ATTR_FLAG_OLDATTR.
6510 2003-11-21 Jakub Jelinek <jakub@redhat.com>
6512 * Makefile (distribute): Add tst-cleanup4aux.c.
6514 * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c
6517 2003-11-21 Ulrich Drepper <drepper@redhat.com>
6519 * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use
6520 pthread_cond_signal.
6522 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Don't
6523 store mutex address if the current value is ~0l.
6524 * sysdeps/pthread/pthread_cond_timedwait.c
6525 (__pthread_cond_timedwait): Likewise.
6526 * sysdeps/pthread/pthread_cond_broadcast.c
6527 (__pthread_cond_broadcast): Don't use requeue for pshared
6530 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
6531 (__pthread_cond_wait): Don't store mutex address if the current
6533 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
6534 (__pthread_cond_timedwait): Likewise.
6535 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
6536 (__pthread_cond_broadcast): Don't use requeue for pshared
6539 * pthread_cond_init.c (__pthread_cond_init): Initialize __mutex
6540 element with ~0l for pshared condvars, with NULL otherwise.
6542 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
6543 (__pthread_cond_wait): Don't store mutex address if the current
6545 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
6546 (__pthread_cond_timedwait): Likewise.
6547 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
6548 (__pthread_cond_broadcast): Don't use requeue for pshared
6551 * Makefile: Add rules to build and run tst-cond12 and tst-cond13.
6552 * tst-cond12.c: New file.
6553 * tst-cond13.c: New file.
6555 2003-11-17 Ulrich Drepper <drepper@redhat.com>
6557 * sysdeps/pthread/configure.in: Make missing forced unwind support
6560 2003-11-11 Ulrich Drepper <drepper@redhat.com>
6562 * pthreadP.h: Don't declare __pthread_unwind as weak inside libpthread.
6564 2003-11-06 Ulrich Drepper <drepper@redhat.com>
6566 * Makefile: Add magic to clean up correctly.
6568 2003-11-05 Jakub Jelinek <jakub@redhat.com>
6570 * unwind.c (FRAME_LEFT): Define.
6571 (unwind_stop): Handle old style cleanups here.
6572 (__pthread_unwind): Handle old style cleanups only if
6573 !HAVE_FORCED_UNWIND.
6574 * Makefile (tests): Add tst-cleanup4 and tst-cleanupx4.
6575 (CFLAGS-tst-cleanupx4.c): Add -fexceptions.
6576 ($(objpfx)tst-cleanup4): Depend on $(objpfx)tst-cleanup4aux.o.
6577 ($(objpfx)tst-cleanupx4): Likewise.
6578 * tst-cleanup4.c: New test.
6579 * tst-cleanup4aux.c: New.
6580 * tst-cleanupx4.c: New test.
6582 2003-11-04 Ulrich Drepper <drepper@redhat.com>
6584 * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
6585 lll_mutex_*lock macros to skip atomic operations on some archs.
6587 2003-11-03 Ulrich Drepper <drepper@redhat.com>
6589 * sysdeps/pthread/tst-timer.c (main): Initialize
6590 sigev2.sigev_value as well.
6592 2003-10-15 Roland McGrath <roland@redhat.com>
6594 * sysdeps/pthread/configure.in: Barf if visibility attribute support
6596 * sysdeps/pthread/configure: Regenerated.
6598 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6600 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Completely revamp the
6601 locking macros. No distinction between normal and mutex locking
6603 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Rewrite mutex locking.
6604 Merge bits from lowlevelmutex.S we still need.
6605 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Remove.
6606 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
6607 * sysdeps/unix/sysv/linux/sh/not-cancel.h: New file.
6608 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Adjust for
6609 new mutex implementation.
6610 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
6611 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
6612 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
6613 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
6614 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
6615 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
6616 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
6617 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
6618 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
6619 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Also defined
6620 symbol for entry point to avoid cancellation.
6622 2003-10-07 Jakub Jelinek <jakub@redhat.com>
6624 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Backout 2003-10-02
6626 (SAVE_OLDTYPE_0): Fix a typo.
6628 2003-10-03 Ulrich Drepper <drepper@redhat.com>
6630 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
6631 Check __sigsetjmp return value. Reported by Daniel Jacobowitz.
6633 2003-10-02 Ulrich Drepper <drepper@redhat.com>
6635 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (DOCARGS_1): Use
6638 2003-10-02 Jakub Jelinek <jakub@redhat.com>
6640 * Makefile (tests): Add tst-cancel19.
6641 * tst-cancel19.c: New test.
6643 2003-10-02 Ulrich Drepper <drepper@redhat.com>
6645 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix saving and
6646 restoring of the old cancellation type.
6648 2003-09-30 Jakub Jelinek <jakub@redhat.com>
6650 * sysdeps/pthread/malloc-machine.h: Remove misleading comment.
6652 2003-09-27 Wolfram Gloger <wg@malloc.de>
6654 * sysdeps/pthread/malloc-machine.h: New file
6656 2003-09-24 Roland McGrath <roland@redhat.com>
6658 * allocatestack.c (__make_stacks_executable): Don't ignore return
6659 value from _dl_make_stack_executable.
6661 2003-09-24 Ulrich Drepper <drepper@redhat.com>
6663 * allocatestack.c (__make_stacks_executable): Also change
6664 permission of the currently unused stacks.
6666 * allocatestack.c (change_stack_perm): Split out from
6667 __make_stacks_executable.
6668 (allocate_stack): If the required permission changed between the time
6669 we started preparing the stack and queueing it, change the permission.
6670 (__make_stacks_executable): Call change_stack_perm.
6672 * Makefile: Build tst-execstack-mod locally.
6673 * tst-execstack-mod.c: New file.
6675 2003-09-23 Jakub Jelinek <jakub@redhat.com>
6677 * Makefile (tests): Only add tst-execstack if have-z-execstack is yes.
6679 2003-09-23 Roland McGrath <roland@redhat.com>
6681 * tst-execstack.c: New file.
6682 * Makefile (tests): Add it.
6683 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
6684 (LDFLAGS-tst-execstack): New variable.
6686 * allocatestack.c (allocate_stack): Use GL(dl_stack_flags) to decide
6687 whether to use PROT_EXEC for stack mmap.
6688 (__make_stacks_executable): New function.
6689 * pthreadP.h: Declare it.
6690 * init.c (__pthread_initialize_minimal_internal): Set
6691 GL(dl_make_stack_executable_hook) to that.
6693 2003-09-22 Ulrich Drepper <drepper@redhat.com>
6695 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Adjust for latest
6696 recommendation from AMD re avoidance of lock prefix.
6698 2003-09-22 Jakub Jelinek <jakub@redhat.com>
6700 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Use
6701 lll_futex_timed_wait instead of lll_futex_wait.
6702 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Removed.
6703 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Removed.
6704 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: Removed.
6705 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: Removed.
6706 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Removed.
6707 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Removed.
6708 * sysdeps/unix/sysv/linux/s390/sem_post.c: Removed.
6709 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Removed.
6710 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include atomic.h.
6711 Completely revamp the locking macros. No distinction between
6712 normal and mutex locking anymore.
6713 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6714 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock_wait,
6715 __lll_lock_timedwait): Fix prototypes.
6716 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_lock_wait,
6717 __lll_lock_timedwait): Likewise.
6718 (lll_mutex_lock, lll_mutex_cond_lock): Use _val instead of _bool
6719 macros, add __builtin_expect.
6720 (lll_mutex_timedlock): Likewise. Fix return value.
6721 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Removed.
6722 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: Removed.
6723 * sysdeps/unix/sysv/linux/i386/i586/lowlevelmutex.S: Removed.
6724 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: Removed.
6725 * sysdeps/unix/sysv/linux/i386/i686/lowlevelmutex.S: Removed.
6726 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: Removed.
6727 * sysdeps/unix/sysv/linux/lowlevelmutex.c: Removed.
6728 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: Removed.
6730 2003-09-22 Ulrich Drepper <drepper@redhat.com>
6732 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
6733 (__lll_mutex_lock_wait): Minor optimization to avoid one atomic
6734 operation if possible.
6736 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks
6737 like jumping over the lock prefix.
6739 2003-09-21 Ulrich Drepper <drepper@redhat.com>
6741 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the
6742 locking macros. No distinction between normal and mutex locking
6744 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6745 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
6746 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
6747 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Rewrite mutex
6748 locking. Merge bits from lowlevelmutex.S we still need.
6749 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6750 * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
6751 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Removed.
6752 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Removed.
6753 * Makefile (routines): Remove libc-lowlevelmutex.
6754 (libpthread-rountines): Remove lowlevelmutex.
6755 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Adjust
6756 for new mutex implementation.
6757 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
6758 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6759 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
6760 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
6761 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
6763 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
6765 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
6766 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
6767 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise
6768 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
6769 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6770 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6771 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
6772 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
6774 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
6776 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
6777 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
6778 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
6780 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
6781 * sysdeps/pthread/pthread_cond_signal.c: Don't use requeue.
6783 2003-09-20 Ulrich Drepper <drepper@redhat.com>
6785 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't match memory
6786 in parameters of asm with output parameters.
6788 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change
6789 type of DECR parameter to int.
6790 * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
6792 2003-09-18 Jakub Jelinek <jakub@redhat.com>
6794 * tst-attr3.c (tf, do_test): Print stack start/end/size and
6795 guardsize for each thread.
6797 2003-09-17 Jakub Jelinek <jakub@redhat.com>
6799 * sysdeps/pthread/pthread.h (pthread_getattr_np): Clarify usage.
6800 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
6801 (pthread_attr_setaffinity_np): Handle cpuset == NULL.
6803 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
6804 (pthread_attr_getaffinity_np): Don't segfault if iattr->cpuset is
6806 * pthread_getattr_np.c: Set cpuset using pthread_getaffinity_np.
6807 * pthreadP.h (pthread_getaffinity_np): Add hidden_proto.
6808 * sysdeps/unix/sysv/linux/pthread_getaffinity.c
6809 (pthread_getaffinity_np): Add hidden_def.
6811 * Makefile (tests): Add tst-attr3.
6812 * tst-attr3.c: New test.
6814 * sysdeps/i386/Makefile (CFLAGS-tst-align.c): Remove.
6816 2003-09-15 Jakub Jelinek <jakub@redhat.com>
6818 * sysdeps/i386/Makefile (CFLAGS-pthread_create.c,
6819 CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
6821 2003-09-17 Jakub Jelinek <jakub@redhat.com>
6823 * Makefile (CFLAGS-tst-align.c): Add $(stack-align-test-flags).
6824 * tst-align.c: Include tst-stack-align.h.
6825 (tf, do_test): Use TEST_STACK_ALIGN macro.
6827 2003-09-17 Ulrich Drepper <drepper@redhat.com>
6829 * pthread_attr_init.c (__pthread_attr_init_2_0): Remove unused
6832 2003-09-16 Ulrich Drepper <drepper@redhat.com>
6834 * pthread_getattr_np.c (pthread_getattr_np): Correctly fill in the
6835 stack-related values for the initial thread.
6837 2003-09-15 Jakub Jelinek <jakub@redhat.com>
6839 * Makefile (CFLAGS-pthread_once.c): Add $(uses-callbacks).
6841 2003-09-11 Ulrich Drepper <drepper@redhat.com>
6843 * pthread_mutex_lock.c: Minor code rearrangements.
6845 2003-09-05 Roland McGrath <roland@redhat.com>
6847 * pthread_create.c (__pthread_pthread_sizeof_descr): Removed.
6848 Instead, include ../nptl_db/db_info.c to do its magic.
6849 * pthread_key_create.c (__pthread_pthread_keys_max): Removed.
6850 (__pthread_pthread_key_2ndlevel_size): Likewise.
6851 * sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro.
6852 * sysdeps/i386/tls.h (DB_THREAD_SELF): New macro.
6853 * sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro.
6854 * sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro.
6855 * sysdeps/s390/tls.h (DB_THREAD_SELF): New macro.
6856 * sysdeps/sh/tls.h (DB_THREAD_SELF): New macro.
6857 * sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro.
6858 * sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro.
6859 * sysdeps/alpha/td_ta_map_lwp2thr.c: File removed.
6860 * sysdeps/generic/td_ta_map_lwp2thr.c: File removed.
6861 * sysdeps/i386/td_ta_map_lwp2thr.c: File removed.
6862 * sysdeps/ia64/td_ta_map_lwp2thr.c: File removed.
6863 * sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed.
6864 * sysdeps/s390/td_ta_map_lwp2thr.c: File removed.
6865 * sysdeps/sh/td_ta_map_lwp2thr.c: File removed.
6866 * sysdeps/sparc/td_ta_map_lwp2thr.c: File removed.
6867 * sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed.
6869 2003-09-08 Ulrich Drepper <drepper@redhat.com>
6871 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Change type
6872 of pthread_t to be compatible with LT.
6873 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
6874 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
6875 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
6876 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
6877 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
6878 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
6879 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
6881 2003-09-04 Ulrich Drepper <drepper@redhat.com>
6883 * sysdeps/unix/sysv/linux/i386/not-cancel.h (fcntl_not_cancel): Define.
6885 2003-09-04 Jakub Jelinek <jakub@redhat.com>
6887 * unwind-forcedunwind.c: Move to...
6888 * sysdeps/pthread/unwind-forcedunwind.c: ...here.
6889 (pthread_cancel_init): Use ARCH_CANCEL_INIT if defined.
6890 * sysdeps/pthread/jmpbuf-unwind.h: New file.
6891 * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: New file.
6892 * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: New file.
6893 * unwind.c: Include jmpbuf-unwind.h.
6894 (unwind_stop): Use _JMPBUF_CFA_UNWINDS macro.
6896 2003-09-02 Jakub Jelinek <jakub@redhat.com>
6898 * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
6899 * sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export
6900 pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3.
6901 * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
6902 * sysdeps/unix/sysv/linux/alpha/Versions: New file.
6903 * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
6904 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
6905 * pthread_attr_setstack.c (__old_pthread_attr_setstack): New function.
6906 (pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
6907 as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
6908 * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New
6910 (pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
6911 as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
6912 * Makefile (tests): Add tst-stack2.
6913 * tst-stack2.c: New test.
6914 * tst-stack1.c: Include limits.h and sys/param.h.
6915 (do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN).
6917 * pthread_condattr_setpshared.c: Include errno.h.
6918 (pthread_condattr_setpshared): Return EINVAL if pshared
6919 is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
6921 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also
6922 defined symbol for entry point to avoid cancellation.
6923 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
6925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
6927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
6929 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h (PSEUDO):
6931 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
6933 * sysdeps/unix/sysv/linux/i386/not-cancel.h (__open_nocancel,
6934 __close_nocancel, __read_nocancel, __write_nocancel,
6935 __waitpid_nocancel): Add attribute_hidden. If not in libc.so,
6936 libpthread.so or librt.so, define to corresponding function
6937 without _nocancel suffix.
6938 * sysdeps/unix/sysv/linux/s390/not-cancel.h: New file.
6939 * sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file.
6940 * sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file.
6942 * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo.
6944 2003-09-02 Ulrich Drepper <drepper@redhat.com>
6946 * sysdeps/unix/sysv/linux/i386/not-cancel.h: New file.
6947 * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: New file.
6949 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Make sure the code
6950 in subsections has a symbol associated with it.
6952 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Also
6953 defined symbol for entry point to avoid cancellation.
6954 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Likewise.
6956 2003-09-01 Jakub Jelinek <jakub@redhat.com>
6958 * Makefile (tests): Add tst-tls5.
6959 (module-names): Add tst-tls5mod{,a,b,c,d,e,f}.
6960 ($(objpfx)tst-tls5mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes.
6961 ($(objpfx)tst-tls5): New.
6962 ($(objpfx)tst-tls6.out): Likewise.
6963 (tests): Depend on $(objpfx)tst-tls6.out.
6964 * tst-tls3.c: Include stdint.h and pthreaddef.h.
6965 (do_test): Check pthread_self () return value alignment.
6966 * tst-tls3mod.c: Include stdint.h and pthreaddef.h.
6967 (tf): Check pthread_self () return value alignment.
6968 * tst-tls5.c: New test.
6970 * tst-tls5mod.c: New.
6971 * tst-tls5moda.c: New.
6972 * tst-tls5modb.c: New.
6973 * tst-tls5modc.c: New.
6974 * tst-tls5modd.c: New.
6975 * tst-tls5mode.c: New.
6976 * tst-tls5modf.c: New.
6977 * tst-tls6.sh: New test.
6979 * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Add
6980 ptr___pthread_cond_timedwait and ptr___pthread_cond_timedwait_2_0.
6981 * init.c (pthread_functions): Initialize them.
6982 * forward.c (pthread_cond_timedwait@GLIBC_2.0,
6983 pthread_cond_timedwait@@GLIBC_2.3.2): New forwards.
6984 * Versions (libc): Export pthread_cond_timedwait@GLIBC_2.0,
6985 pthread_cond_timedwait@@GLIBC_2.3.2.
6987 2003-09-01 Jakub Jelinek <jakub@redhat.com>
6989 * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file.
6990 * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file.
6991 * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file.
6992 * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file.
6993 * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file.
6994 * sysdeps/unix/sysv/linux/alpha/Versions: New file.
6996 * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file.
6998 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define
6999 _POSIX_THREAD_PRIORITY_SCHEDULING.
7000 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
7002 2003-08-31 Ulrich Drepper <drepper@redhat.com>
7004 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock): Avoid
7005 nested function, use static inline function from libio.h.
7006 Code by Richard Henderson.
7008 * sysdeps/pthread/bits/libc-lock.h: Mark pthread_setcancelstate as
7011 2003-08-30 Jakub Jelinek <jakub@redhat.com>
7013 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
7014 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: New file.
7015 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: New file.
7016 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: New file.
7017 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: New file.
7018 * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: New file.
7019 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: New file.
7020 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: New file.
7021 * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: New file.
7022 * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: New file.
7023 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: New file.
7024 * sysdeps/unix/sysv/linux/sparc/pthread_once.c: New file.
7025 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
7026 * sysdeps/unix/sysv/linux/sparc/fork.c: New file.
7027 * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: New file.
7028 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: New file.
7029 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: New file.
7030 * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: New file.
7031 * sysdeps/sparc/sparc32/pthread_spin_lock.c: New file.
7032 * sysdeps/sparc/sparc32/pthread_spin_trylock.c: New file.
7033 * sysdeps/sparc/sparc32/pthreaddef.h: New file.
7034 * sysdeps/sparc/sparc64/pthread_spin_lock.c: New file.
7035 * sysdeps/sparc/sparc64/pthread_spin_trylock.c: New file.
7036 * sysdeps/sparc/sparc64/pthread_spin_unlock.c: New file.
7037 * sysdeps/sparc/sparc64/pthreaddef.h: New file.
7038 * sysdeps/sparc/tls.h: New file.
7039 * sysdeps/sparc/tcb-offsets.sym: New file.
7040 * sysdeps/sparc/Makefile: New file.
7041 * sysdeps/sparc/td_ta_map_lwp2thr.c: New file.
7042 * init.c [__sparc__] (__NR_set_tid_address): Define.
7044 2003-08-29 Jakub Jelinek <jakub@redhat.com>
7046 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock,
7047 _IO_release_lock): Define.
7049 2003-08-29 Jakub Jelinek <jakuB@redhat.com>
7051 * tst-cancel4.c (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add
7052 sigemptyset before sigaddset. Reported by jreiser@BitWagon.com.
7054 2003-08-27 Ulrich Drepper <drepper@redhat.com>
7056 * sysdeps/pthread/pthread.h (pthread_exit): Remove __THROW.
7057 (__pthread_cleanup_class): Add missing return types of member
7060 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
7062 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
7063 (lll_mutex_unlock_force): Add memory barrier between store and futex
7066 2003-08-25 Ulrich Drepper <drepper@redhat.com>
7068 * tst-cancel4.c (do_test): Also unlink tempfname and remove
7069 tempmsg in first loop.
7071 2003-08-18 Ulrich Drepper <drepper@redhat.com>
7073 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
7074 _POSIX_THREAD_PRIORITY_SCHEDULING.
7075 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
7077 2003-08-07 Jakub Jelinek <jakub@redhat.com>
7079 * sysdeps/pthread/bits/libc-lock.h [_LIBC && SHARED]
7080 (__rtld_lock_default_lock_recursive,
7081 __rtld_lock_default_unlock_recursive): Define.
7082 [_LIBC && SHARED] (__rtld_lock_lock_recursive,
7083 __rtld_lock_unlock_recursive): Define using
7084 GL(_dl_rtld_*lock_recursive).
7085 * init.c (__pthread_initialize_minimal_internal): Initialize
7086 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
7087 Lock GL(_dl_load_lock) the same number of times as
7088 GL(_dl_load_lock) using non-mt implementation was nested.
7090 * pthreadP.h (__pthread_cleanup_upto): Add hidden_proto.
7091 * pt-longjmp.c (__pthread_cleanup_upto): Add hidden_def.
7093 2003-08-06 Jakub Jelinek <jakub@redhat.com>
7095 * tst-cancel17.c (do_test): Make len2 maximum of page size and
7098 2003-08-07 Jakub Jelinek <jakub@redhat.com>
7100 * pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.
7102 2003-08-03 Jakub Jelinek <jakub@redhat.com>
7104 * sysdeps/pthread/createthread.c (do_clone): Move error handling
7105 to first syscall error check. Move syscall error check for tkill
7106 into __ASSUME_CLONE_STOPPED #ifdef.
7108 2003-08-02 Ulrich Drepper <drepper@redhat.com>
7110 * sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED
7111 is not defined, do explicit synchronization.
7112 (create_thread): Do not lock pd->lock here. If __ASSUME_CLONE_STOPPED
7113 is not defined also unlock pd->lock for non-debugging case in case
7115 * pthread_create.c (start_thread): Always get and release pd->lock
7116 if __ASSUME_CLONE_STOPPED is not defined.
7117 (start_thread_debug): Removed. Adjust users.
7118 * allocatestack.c (allocate_stack): Always initialize lock if
7119 __ASSUME_CLONE_STOPPED is not defined.
7120 * Makefile (tests): Add tst-sched1.
7121 * tst-sched1.c: New file.
7123 * sysdeps/pthread/createthread.c (do_clone): Only use
7124 sched_setschduler and pass correct parameters.
7126 2003-07-31 Jakub Jelinek <jakub@redhat.com>
7128 * sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
7129 pthread_attr_setstacksize): Change PTHREAD_STACK_SIZE to
7130 PTHREAD_STACK_MIN in comments.
7132 2003-07-31 Jakub Jelinek <jakub@redhat.com>
7134 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
7135 Shut up warnings if INTERNAL_SYSCALL_ERROR_P does not use its first
7137 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
7138 * pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise.
7139 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Include pthreaddef.h.
7140 (__pthread_cleanup_upto): Fix prototype.
7141 (_longjmp_unwind): Adjust caller.
7142 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_timedlock):
7143 Change second argument to const struct pointer.
7144 * tst-sem8.c (main): Remove unused s2 and s3 variables.
7145 * tst-sem9.c (main): Likewise.
7146 * unwind.c: Include string.h for strlen prototype.
7148 2003-07-31 Ulrich Drepper <drepper@redhat.com>
7150 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
7151 (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined.
7152 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
7154 Patch by Nicholas Miell <nmiell@attbi.com>.
7156 2003-07-30 Jakub Jelinek <jakub@redhat.com>
7158 * init.c (__pthread_initialize_minimal_internal): Initialize
7159 GL(dl_init_static_tls).
7160 * pthreadP.h (__pthread_init_static_tls): New prototype.
7161 * allocatestack.c (init_one_static_tls, __pthread_init_static_tls):
7163 * Makefile (tests): Add tst-tls4.
7164 (modules-names): Add tst-tls4moda and tst-tls4modb.
7165 ($(objpfx)tst-tls4): Link against libdl and libpthread.
7166 ($(objpfx)tst-tls4.out): Depend on tst-tls4moda.so and
7168 * tst-tls4.c: New file.
7169 * tst-tls4moda.c: New file.
7170 * tst-tls4modb.c: New file.
7172 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
7174 * sysdeps/pthread/timer_create.c (timer_create): Call timer_delref
7175 before __timer_dealloc.
7176 * sysdeps/pthread/timer_routines.c (__timer_thread_find_matching):
7177 Don't call list_unlink.
7179 2003-07-29 Roland McGrath <roland@redhat.com>
7181 * Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules).
7183 2003-07-25 Jakub Jelinek <jakub@redhat.com>
7185 * tst-cancel17.c (do_test): Check if aio_cancel failed.
7186 Don't reuse struct aiocb A if it failed.
7187 Write fpathconf (fds[1], _PC_PIPE_BUF) + 2 bytes using aio_write,
7188 not just one byte, as that does not block.
7190 2003-07-22 Jakub Jelinek <jakub@redhat.com>
7192 * sysdeps/pthread/unwind-resume.c: New file.
7193 * sysdeps/pthread/Makefile (routines, shared-only-routines): Add
7194 unwind-resume in csu subdir.
7195 (CFLAGS-unwind-resume.c, CFLAGS-rt-unwind-resume.c): Compile with
7197 (librt-sysdep_routines, librt-shared-only-routines): Add
7199 * sysdeps/pthread/rt-unwind-resume.c: New file.
7200 * unwind-forcedunwind.c: New file.
7201 * Makefile (libpthread-routines): Add unwind-forcedunwind.
7202 (libpthread-shared-only-routines): Likewise.
7203 (CFLAGS-unwind-forcedunwind.c): Compile with exceptions.
7204 * pthreadP.h (pthread_cancel_init): New prototype.
7205 * pthread_cancel.c (pthread_cancel): Call pthread_cancel_init.
7207 * sysdeps/pthread/createthread.c (do_thread, create_thread): Make
7208 attr argument const struct pthread_attr *.
7210 * res.c (__res_state): Return __resp.
7211 * descr.h: Include resolv.h.
7212 (struct pthread): Add res field.
7213 * pthread_create.c: Include resolv.h.
7214 (start_thread): Initialize __resp.
7215 * Makefile (tests): Add tst-_res1.
7216 (module-names): Add tst-_res1mod1, tst-_res1mod2.
7217 ($(objpfx)tst-_res1mod2.so): Depend on $(objpfx)tst-_res1mod1.so.
7218 ($(objpfx)tst-_res1): Depend on $(objpfx)tst-_res1mod2.so and
7220 * tst-_res1.c: New file.
7221 * tst-_res1mod1.c: New file.
7222 * tst-_res1mod2.c: New file.
7224 2003-07-21 Ulrich Drepper <drepper@redhat.com>
7226 * sysdeps/pthread/createthread.c: Don't define CLONE_STOPPED.
7228 * Makefile: Define various *-no-z-defs variables for test DSOs
7229 which has undefined symbols.
7231 2003-07-21 Steven Munroe <sjmunroe@us.ibm.com>
7233 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
7234 Retry if the stwcx fails to store once_control.
7236 2003-07-20 Ulrich Drepper <drepper@redhat.com>
7238 * Makefile (libpthread-routines): Add pthread_attr_getaffinity and
7239 pthread_attr_setaffinity.
7240 * Versions [libpthread] (GLIBC_2.3.3): Likewise.
7241 * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
7242 * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
7243 * pthread_attr_destroy.c: Free cpuset element if allocated.
7244 * pthread_create.c: Pass iattr as additional parameter to
7246 * sysdeps/pthread/createthread.c: If attribute is provided and
7247 a new thread is created with affinity set or scheduling parameters,
7248 start thread with CLONE_STOPPED.
7249 * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
7250 pthread_attr_setaffinity.
7251 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
7254 2003-07-15 Ulrich Drepper <drepper@redhat.com>
7256 * tst-tcancel-wrappers.sh: lseek and llseek are not cancelation points.
7258 2003-07-14 Ulrich Drepper <drepper@redhat.com>
7260 * sysdeps/pthread/configure.in: Require CFI directives also for
7263 2003-07-15 Jakub Jelinek <jakub@redhat.com>
7265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
7268 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7270 * sysdeps/sh/tcb-offsets.sym: Add RESULT, TID, CANCELHANDLING and
7272 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use more
7273 registers as variables. Call __pthread_mutex_unlock_usercnt.
7274 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
7275 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Store TID
7276 not self pointer in __writer. Compare with TID to determine
7278 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
7279 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
7281 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
7283 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add cancellation support.
7284 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
7285 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Define all the nice
7286 macros also when compiling librt.
7288 2003-07-11 Jakub Jelinek <jakub@redhat.com>
7290 * Makefile (CFLAGS-pthread_once.c): Add -fexceptions
7291 -fasynchronous-unwind-tables.
7292 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
7293 (PSEUDO): Add cfi directives.
7294 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO):
7296 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
7299 2003-07-08 Jakub Jelinek <jakub@redhat.com>
7301 * pthreadP.h (__pthread_unwind_next, __pthread_register_cancel,
7302 __pthread_unregister_cancel): Add prototypes and hidden_proto.
7303 * unwind.c (__pthread_unwind_next): Add hidden_def.
7304 * cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel):
7306 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
7307 Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
7308 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
7310 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
7311 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
7313 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use
7314 HIDDEN_JUMPTARGET to call __pthread_register_cancel,
7315 __pthread_unregister_cancel and __pthread_unwind_next.
7317 2003-07-04 Jakub Jelinek <jakub@redhat.com>
7319 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Use
7320 different symbol for the cancellation syscall wrapper and
7321 non-cancellation syscall wrapper.
7322 (PSEUDO_END): Define.
7324 2003-07-05 Richard Henderson <rth@redhat.com>
7326 * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end.
7327 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_wait,
7328 lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
7329 return actual return value from the syscall, not 0.
7331 2003-07-07 Ulrich Drepper <drepper@redhat.com>
7333 * descr.h (struct pthread): Add pid field.
7334 * allocatestack.c (allocate_stack): Initialize pid field in descriptor.
7335 (__reclaim_stacks): Likewise.
7336 * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined
7337 also check for PID of the signal source.
7338 (__pthread_initialize_minimal_internal): Also initialize pid field
7339 of initial thread's descriptor.
7340 * pthread_cancel.c: Use tgkill instead of tkill if possible.
7341 * sysdeps/unix/sysv/linux/fork.c: Likewise.
7342 * sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
7343 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
7344 * sysdeps/unix/sysv/linux/raise.c: Likewise.
7346 2003-07-05 Ulrich Drepper <drepper@redhat.com>
7348 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed.
7349 Fix use of parameter.
7350 (__libc_cleanup_pop): Likewise.
7352 2003-07-04 Ulrich Drepper <drepper@redhat.com>
7354 * init.c (sigcancel_handler): Change parameters to match handler
7355 for SA_SIGACTION. Check signal number and code to recognize
7356 invalid invocations.
7358 2003-07-03 Roland McGrath <roland@redhat.com>
7360 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr):
7361 Apply sizeof (struct pthread) bias to r13 value.
7363 2003-07-03 Ulrich Drepper <drepper@redhat.com>
7365 * sysdeps/pthread/configure.in: Require CFI directives.
7367 * sysdeps/pthread/librt-cancellation.c (__pthread_unwind): Remove
7369 * pthreadP.h (__pthread_unwind): Add hidden_proto if used in
7370 libpthread compilation.
7371 * unwind.c (__pthread_unwind): Add hidden_def.
7372 * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_unwind.
7374 2003-07-01 Ulrich Drepper <drepper@redhat.com>
7376 * libc-cancellation.c (__libc_cleanup_routine): Define.
7377 * sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define.
7378 (__pthread_cleanup_pop): Define.
7380 2003-07-01 Richard Henderson <rth@redhat.com>
7382 * sysdeps/alpha/elf/pt-initfini.c: New file.
7383 * sysdeps/alpha/pthread_spin_lock.S: New file.
7384 * sysdeps/alpha/pthread_spin_trylock.S: New file.
7385 * sysdeps/alpha/pthreaddef.h: New file.
7386 * sysdeps/alpha/td_ta_map_lwp2thr.c: New file.
7387 * sysdeps/alpha/tls.h: New file.
7388 * sysdeps/unix/sysv/linux/alpha/Makefile: New file.
7389 * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: New file.
7390 * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: New file.
7391 * sysdeps/unix/sysv/linux/alpha/createthread.c: New file.
7392 * sysdeps/unix/sysv/linux/alpha/fork.c: New file.
7393 * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: New file.
7394 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
7395 * sysdeps/unix/sysv/linux/alpha/pthread_once.c: New file.
7396 * sysdeps/unix/sysv/linux/alpha/sem_post.c: New file.
7397 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: New file.
7399 2003-07-01 Ulrich Drepper <drepper@redhat.com>
7401 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Add correct
7402 cleanup support and unwind info.
7404 2003-06-30 Ulrich Drepper <drepper@redhat.com>
7406 * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
7407 Use correct cleanup handler registration. Add unwind info.
7408 * sysdeps/unix/sysv/linux/unwindbuf.sym: New file.
7409 * sysdeps/unix/sysv/linux/Makefile: Add rule to build unwindbuf.h.
7410 * tst-once3.c: Add cleanup handler and check it is called.
7411 * tst-once4.c: Likewise.
7412 * tst-oncex3.c: New file.
7413 * tst-oncex4.c: New file.
7414 * Makefile: Add rules to build and run tst-oncex3 and tst-oncex4.
7416 2003-06-29 Ulrich Drepper <drepper@redhat.com>
7418 * sysdeps/pthread/configure.in: Check for C cleanup handling in gcc.
7420 2003-06-27 Ulrich Drepper <drepper@redhat.com>
7422 * tst-cancel4.c (tf_msgrcv): Use IPC_PRIVATE in msgget call.
7423 (tf_msgsnd): Likewise.
7425 * tst-cancel4.c (tf_msgrcv): Strengthen test against valid
7426 premature returns a bit more.
7428 2003-06-26 Ulrich Drepper <drepper@redhat.com>
7430 * sysdeps/pthread/librt-cancellation.c: Move __pthread_unwind
7431 definition to the front.
7433 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rename
7434 the cleanup functions to make the names unique. Fix dwarf opcode
7436 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Rename cleanup
7437 functions to make the names unique. Fix CFA offset for two blocks.
7439 2003-06-25 Ulrich Drepper <drepper@redhat.com>
7441 * sysdeps/pthread/pthread.h (class __pthread_cleanup_class): Add
7442 missing closing braces.
7443 Patch by Christophe Saout <christophe@saout.de>.
7445 2003-06-24 Roland McGrath <roland@redhat.com>
7447 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Typo fix.
7449 2003-06-24 Ulrich Drepper <drepper@redhat.com>
7451 * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: New file.
7452 * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: New file.
7454 * pthreadP.h: Declare __find_thread_by_id.
7455 * allocatestack.c [HP_TIMING_AVAIL]: Define __find_thread_by_id.
7456 * pthread_clock_gettime.c: Allow using other thread's clock.
7457 * pthread_clock_settime.c: Likewise.
7458 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
7459 * Makefile: Add rules to build and run tst-clock2.
7460 * tst-clock2.c: New file.
7462 2003-06-23 Ulrich Drepper <drepper@redhat.com>
7464 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rewrite
7465 to use exception-based cleanup handler.
7466 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
7468 * tst-cond8.c (ch): Announce that we are done.
7470 * pthreadP.h (__pthread_mutex_cond_lock): Mark with internal_function.
7472 * tst-cancel17.c (tf): Retry aio_suspend in case of EINTR.
7473 Also test aio_suspend with timeout value.
7475 2003-06-22 Ulrich Drepper <drepper@redhat.com>
7477 * pthreadP.h: Mark __pthread_mutex_unlock_usercnt also hidden.
7478 * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Add
7481 * pthreadP.h (__pthread_mutex_init_internal): Mark hidden.
7482 (__pthread_mutex_lock_internal): Likewise.
7483 (__pthread_mutex_unlock_internal): Likewise.
7484 (__pthread_mutex_unlock_usercnt): Declare.
7485 * pthread_mutex_destroy.c: Always fail if used in any way.
7486 * pthread_mutex_init.c: Update comment.
7487 * pthread_mutex_lock.c: If NO_INCR is not defined adjust __nusers.
7488 * pthread_mutex_timedlock.c: Adjust __nusers.
7489 * pthread_mutex_trylock.c: Adjust __nusers.
7490 * pthread_mutex_unlock.c: Old code is in __pthread_mutex_unlock_usercnt
7491 and public interfaces are wrapper with pass additional parameter.
7492 __pthread_mutex_unlock_usercnt does not adjust __nusers if second
7494 * tst-mutex8.c: New file.
7495 * Makefile (tests): Add tst-mutex8.
7496 * sysdeps/pthread/pthread_cond_timedwait.c: Call
7497 __pthread_mutex_unlock_usercnt.
7498 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
7499 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
7500 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
7501 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
7502 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
7503 * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Define NO_INCR.
7504 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
7506 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7507 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7508 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7509 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
7510 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
7512 * pthread_mutex_lock.c: Don't store THREAD_ID in __owner, use TID.
7513 * pthread_mutex_timedlock.c: Likewise.
7514 * pthread_mutex_trylock.c: Adjust __nusers.
7515 * pthread_mutex_unlock.c: Compare with TID not THREAD_ID.
7516 * tst-mutex9.c: New file.
7517 * Makefile (tests): Add tst-mutex9.
7518 * sysdeps/i386/tls.h: Remove THREAD_ID definition.
7519 * sysdeps/ia64/tls.h: Likewise.
7520 * sysdeps/powerpc/tls.h: Likewise.
7521 * sysdeps/s390/tls.h: Likewise.
7522 * sysdeps/sh/tls.h: Likewise.
7523 * sysdeps/x86_64/tls.h: Likewise.
7524 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
7525 Change type of __owner.
7526 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7527 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7528 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7529 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
7530 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
7532 2003-06-19 Jakub Jelinek <jakub@redhat.com>
7534 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Move to...
7535 * sysdeps/unix/sysv/linux/sem_post.c: ...here.
7537 * sysdeps/unix/sysv/linux/sem_post.c: Move to...
7538 * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here. Pass nr + 1
7539 instead of nr to lll_futex_wake. Only set errno and return -1
7542 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_wait,
7543 lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
7544 return actual return value from the syscall, not 0.
7546 2003-06-18 Ulrich Drepper <drepper@redhat.com>
7548 * tst-cancel4.c (tf_msgsnd): Don't always use 100 as the type,
7549 find a random value.
7550 (tf_msgrcv): Likewise. Also don't report msgrcv returns if
7553 * sysdeps/unix/sysv/linux/timer_settime.c: Add prototype for
7554 compat_timer_settime.
7555 * sysdeps/unix/sysv/linux/timer_gettime.c: Add prototype for
7556 compat_timer_gettime.
7557 * sysdeps/unix/sysv/linux/timer_getoverr.c: Add prototype for
7558 compat_timer_getoverrun.
7559 * sysdeps/unix/sysv/linux/timer_delete.c: Add prototype for
7560 compat_timer_delete.
7562 * pthread_mutex_destroy.c (__pthread_mutex_destroy): For
7563 error-checking mutex detect busy mutexes.
7565 2003-06-17 Ulrich Drepper <drepper@redhat.com>
7567 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_mutex_lock):
7568 Add ax to clobber list.
7569 (lll_mutex_cond_lock): Likewise.
7570 (lll_mutex_unlock): Likewise.
7571 (lll_lock): Likewise.
7572 (lll_unlock): Likewise.
7574 * Makefile: Add rules to build and run tst-cancel18 and tst-cancelx18.
7575 * tst-cancel18.c: New file.
7576 * tst-cancelx18.c: New file.
7578 * tst-cancel4.c: Test connect, creat, msgrcv, msgsnd, sendmsg, sendto,
7581 * Makefile: Add rules to build and run tst-cancel17 and tst-cancel17x.
7582 * tst-cancel17.c: New file.
7583 * tst-cancelx17.c: New file.
7585 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
7586 * sysdeps/unix/sysv/linux/sigwait.c: New file.
7587 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
7589 * tst-cancel4.c: Test open, close, pread, pwrite, fsync, and msync.
7591 2003-06-16 Jakub Jelinek <jakub@redhat.com>
7593 * sysdeps/pthread/createthread.c (create_thread): Set
7594 header.multiple_threads unconditionally.
7595 * allocatestack.c (allocate_stack): Likewise.
7596 * descr.h (struct pthread): Add header.multiple_threads
7598 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (CENABLE, CDISABLE):
7599 Define for librt. #error if neither libpthread, libc nor librt.
7600 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (CENABLE, CDISABLE):
7602 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (CENABLE,
7603 CDISABLE): Likewise.
7604 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (CENABLE,
7605 CDISABLE): Likewise.
7606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (CENABLE,
7607 CDISABLE): Likewise.
7608 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (CENABLE,
7609 CDISABLE): Likewise. Access header.multiple_threads outside of
7610 libc and libpthread.
7611 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (CENABLE, CDISABLE):
7613 * sysdeps/x86_64/tls.h (tcbhead_t): Add multiple_threads.
7614 * sysdeps/x86_64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define.
7616 2003-06-17 Ulrich Drepper <drepper@redhat.com>
7618 * tst-cancel4.c: Add tests for the socket and signal functions, pause.
7619 Also test early cancellation before the thread reaches the cancellation
7622 * Makefile: Compile forward.c with exceptions.
7624 * sysdeps/unix/sysv/linux/sleep.c: New file.
7626 2003-06-16 Ulrich Drepper <drepper@redhat.com>
7628 * Makefile: Add CFLAGS definition to compile function wrappers
7629 duplicated from libc with exceptions.
7630 * tst-cancel4.c: Also check cancellation handlers.
7632 * Makefile: Add rules to build and run tst-cancel16 and
7633 tst-cancelx16. Add missing CFLAGS definitions.
7634 * tst-cancel16.c: New file.
7635 * tst-cancelx16.c: New file.
7637 2003-06-15 Ulrich Drepper <drepper@redhat.com>
7639 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
7640 (DL_SYSINFO_IMPLEMENTATION): Use CFI opcodes.
7641 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
7642 (DL_SYSINFO_IMPLEMENTATION): Likewise.
7644 * pthreadP.h (LIBC_CANCEL_ASYNC): Also define for librt.
7645 (LIBC_CANCEL_RESET): Likewise.
7646 Declare __librt_enable_asynccancel and __librt_disable_asynccancel.
7647 * sysdeps/pthread/Makefile (librt-sysdep_routines): Add
7649 (CFLAGS-libcrt-cancellation.c): Define.
7650 * sysdeps/pthread/librt-cancellation.c: New file.
7651 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define all the nice
7652 macros also when compiling librt.
7653 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
7654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
7655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
7656 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
7657 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
7658 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
7659 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
7661 * sysdeps/unix/sysv/linux/timer_create.c: Add prototype for
7662 compat_timer_create.
7664 2003-06-14 Ulrich Drepper <drepper@redhat.com>
7666 * sysdeps/pthread/posix-timer.h (timespec_compare): Always inline.
7668 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
7670 * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
7671 Add libc_hidden_def.
7673 2003-06-13 Roland McGrath <roland@redhat.com>
7675 * sysdeps/x86_64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Pass FS
7676 constant from <sys/reg.h> to ps_get_thread_area, not register contents.
7678 2003-06-11 Ulrich Drepper <drepper@redhat.com>
7680 * allocatestack.c (queue_stack): Always inline.
7681 * ptreadhP.h (__do_cancel): Likewise.
7683 2003-06-10 Jakub Jelinek <jakub@redhat.com>
7685 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): Fix
7688 2003-06-10 Ulrich Drepper <drepper@redhat.com>
7690 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
7691 (__pthread_cond_signal): Remove incorrect second addition for
7694 2003-06-09 Ulrich Drepper <drepper@redhat.com>
7696 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
7697 (__pthread_cond_signal): Use correct futex pointer in
7698 __lll_mutex_lock_wait call.
7700 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
7701 (__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.
7703 2003-06-08 Ulrich Drepper <drepper@redhat.com>
7705 * sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make
7707 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
7710 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Remove
7711 hand-written CFI generation code. Since ENTRY/END also initiated
7712 CFI frames this caused two CFI sets to be generated.
7714 2003-06-07 Ulrich Drepper <drepper@redhat.com>
7716 * cleanup_routine.c: New file.
7717 * Versions (libpthread) [GLIBC_2.3.3]: Add __pthread_cleanup_routine.
7718 * sysdeps/pthread/pthread.h: Add support for fully exception-based
7720 * Makefile (libpthread-routines): Add cleanup_routine.
7721 Add more CFLAGS variables to compile with exceptions. Add comments
7722 why which file needs unwind tables.
7723 (tests) [have-forced-unwind==yes]: Add tst-cancelx* and tst-cleanupx*
7725 * tst-cancelx1.c: New file.
7726 * tst-cancelx2.c: New file.
7727 * tst-cancelx3.c: New file.
7728 * tst-cancelx4.c: New file.
7729 * tst-cancelx5.c: New file.
7730 * tst-cancelx6.c: New file.
7731 * tst-cancelx7.c: New file.
7732 * tst-cancelx8.c: New file.
7733 * tst-cancelx9.c: New file.
7734 * tst-cancelx10.c: New file.
7735 * tst-cancelx11.c: New file.
7736 * tst-cancelx12.c: New file.
7737 * tst-cancelx13.c: New file.
7738 * tst-cancelx14.c: New file.
7739 * tst-cancelx15.c: New file.
7740 * tst-cleanupx0.c: New file.
7741 * tst-cleanupx0.expect: New file.
7742 * tst-cleanupx1.c: New file.
7743 * tst-cleanupx2.c: New file.
7744 * tst-cleanupx3.c: New file.
7746 * tst-cleanup0.c: Make standard compliant.
7747 * tst-cleanup1.c: Likewise.
7749 * sysdeps/unix/sysv/linux/sem_timedwait.c: Add cancellation support.
7750 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
7751 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
7752 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
7753 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
7754 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
7755 * sysdeps/i386/tcb-offsets.sym: Add RESULT, CANCELHANDLING, and
7757 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
7758 * tst-cancel12.c: New file.
7759 * tst-cancel13.c: New file.
7760 * tst-cancel14.c: New file.
7761 * tst-cancel15.c: New file.
7762 * Makefile (tests): Add tst-cancel12, tst-cancel13, tst-cancel14,
7765 * tst-cancel1.c: Add some comments.
7767 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Compute relative
7770 2003-06-06 Ulrich Drepper <drepper@redhat.com>
7772 * Makefile (CFLAGS-pthread_cancel.c): Define.
7774 2003-06-05 Ulrich Drepper <drepper@redhat.com>
7776 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_rwlock_t):
7777 Change type of __writer element to int.
7778 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
7779 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7780 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
7781 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
7782 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
7783 * sysdeps/i386/tcb-offsets.sym: Replace SELF entry with TID entry.
7784 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
7785 * pthread_rwlock_trywrlock.c: Store TID not self pointer in __writer.
7786 Compare with TID to determine deadlocks.
7787 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
7788 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
7789 * sysdeps/pthread/pthread_rwlock_timedwrlock.: Likewise.
7790 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
7791 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
7792 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
7794 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
7796 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
7797 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
7798 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
7800 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
7802 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
7803 * Makefile (tests): Add tst-rwlock12.
7804 * tst-rwlock12.c: New file.
7806 2003-06-05 Jakub Jelinek <jakub@redhat.com>
7808 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait,
7809 __lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid):
7810 Remove bogus hidden_proto.
7811 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
7813 * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock,
7814 lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise.
7815 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock,
7816 ___lll_mutex_timedlock): Likewise.
7818 2003-06-04 Ulrich Drepper <drepper@redhat.com>
7820 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
7821 (__pthread_cond_signal): Add some code to eventually handle
7824 2003-06-01 Ulrich Drepper <drepper@redhat.com>
7826 * Makefile (tests): Add tst-exec4.
7827 (tst-exec4-ARGS): Define.
7828 * tst-exec4.c: New file.
7830 2003-05-31 Ulrich Drepper <drepper@redhat.com>
7832 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
7833 Also fail if tv_nsec < 0.
7834 (__lll_timedwait_tid): Likewise.
7835 * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
7836 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_timedwait_tid):
7838 * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_timedwait_tid):
7840 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (__lll_mutex_timedlock):
7842 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
7844 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_timedwait_tid):
7846 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_timedwait_tid):
7849 * Makefile (tests): Add tst-sem8 and tst-sem9.
7850 * tst-sem8.c: New file.
7851 * tst-sem9.c: New file.
7852 * sem_open.c: Fix creation of in_use record if the file exists but
7855 * posix-timer.h: Remove old, unused timer_id2ptr and timer_ptr2id
7858 * sysdeps/pthread/timer_create.c (timer_create): In case
7859 evp==NULL, assign timer ID to sival_ptr.
7861 * descr.h (struct pthread_unwind_buf): Change type of prev element to
7862 struct pthread_unwind_buf *.
7863 (struct pthread): Likewise for cleanup_jmp_buf element.
7865 * cleanup.c (__pthread_register_cancel): Add cast to avoid warning.
7866 * cleanup_defer.c (__pthread_register_cancel_defer): Likewise.
7867 * unwind.c (__pthread_unwind_next): Likewise.
7869 2003-05-30 Ulrich Drepper <drepper@redhat.com>
7871 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
7872 (lll_futex_timed_wait): Use int for futex value parameter.
7873 (lll_futex_wake): Likewise.
7874 (lll_futex_requeue): Likewise.
7876 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
7877 Replace one memory operation with one register operation.
7879 * tst-join4.c (do_test): Fix error message.
7881 * tst-rwlock6.c (do_test): Use correct format specifier.
7883 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
7884 (__lll_mutex_lock_wait): Replace one memory operation with one
7886 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S
7887 (__lll_mutex_lock_wait): Likewise.
7889 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
7890 (__lll_mutex_cond_lock): Add one to value parameter of
7891 __lll_lock_wait to reflect reality in the futex syscall.
7892 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
7893 (lll_mutex_cond_lock): Likewise.
7895 2003-05-30 Jakub Jelinek <jakub@redhat.com>
7897 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_cond_lock):
7899 (lll_mutex_cond_lock): Define.
7901 2003-05-29 Ulrich Drepper <drepper@redhat.com>
7903 * Makefile (tests): Add tst-signal6.
7904 * tst-signal6.c: New file.
7906 * sysdeps/unix/sysv/linux/s390/lowlevellock.h
7907 (__lll_mutex_unlock_force): New function
7908 (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
7910 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
7911 (__lll_mutex_unlock_force): New function.
7912 (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
7914 * tst-rwlock7.c (do_test): Use correct format specifier.
7916 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
7917 Find break parameter in correct asm argument.
7919 2003-05-27 Jakub Jelinek <jakub@redhat.com>
7921 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_clobbers):
7923 (lll_futex_requeue): Fix __o3 constraint, return negative errno if
7925 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
7927 * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_REQUEUE,
7928 lll_futex_requeue, lll_mutex_unlock_force): Define.
7930 2003-05-30 Jakub Jelinek <jakub@redhat.com>
7932 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
7933 (pthread_cond_t): Add __mutex.
7934 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_REQUEUE,
7935 lll_futex_requeue, lll_mutex_unlock_force): Define.
7937 2003-05-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7939 * sysdeps/sh/tcb-offsets.sym: Define MUTEX_FUTEX.
7940 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
7942 * sysdeps/unix/sysv/linux/sh/lowlevellock.h (SYSCALL_WITH_INST_PAD):
7944 (lll_futex_wait, lll_futex_wake): Define.
7945 * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: New file.
7946 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Try using
7947 FUTEX_REQUEUE instead of FUTEX_WAIT.
7948 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
7949 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Remember
7950 mutex which was used in condvar structure. Call
7951 __pthread_mutex_cond_lock instead of __pthread_mutex_lock_internal.
7952 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
7954 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Don't
7955 include tcb-offsets.h. Read wakeup value in locked region.
7956 Use the value of gbr register as THREAD_ID.
7957 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
7958 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
7959 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
7961 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove futex related
7964 2003-05-28 Ulrich Drepper <drepper@redhat.com>
7966 * sysdeps/pthread/pthread_cond_broadcast.c
7967 (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX.
7969 2003-05-26 Ulrich Drepper <drepper@redhat.com>
7971 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix
7972 typo in register name.
7973 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use parameters
7974 correctly. Actually use requeue. Little optimization.
7975 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Store
7976 mutex address early. Handle cancellation state as 32-bit value.
7977 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
7978 Remove unnecessary label.
7980 2003-05-25 Ulrich Drepper <drepper@redhat.com>
7982 * sysdeps/pthread/pthread_cond_broadcast.c: Try using FUTEX_REQUEUE
7983 instead of FUTEX_WAIT.
7984 * sysdeps/pthread/pthread_cond_signal.c: Likewise.
7985 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
7986 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
7987 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
7988 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
7989 * sysdeps/pthread/pthread_cond_timedwait.c: Remember mutex which was
7990 used in condvar structure. Call __pthread_mutex_cond_lock instead
7991 of __pthread_mutex_lock_internal.
7992 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
7993 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
7994 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
7995 (__condvar_cleanup): Always call __pthread_mutex_cond_lock.
7996 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
7997 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
7998 * sysdeps/unix/sysv/linux/Makefile (libpthread-sysdep_routines):
7999 Add pthread_mutex_cond_lock.
8000 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add dep_mutex.
8001 * sysdeps/unix/sysv/linux/pthread_cond_mutex_lock.c: New file.
8002 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define
8003 lll_mutex_cond_lock.
8004 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
8005 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
8006 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
8008 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8009 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8011 * sysdeps/i386/tcb-offsets.sym: Define MUTEX_FUTEX.
8012 * sysdeps/x86_64/tcb-offsets.sym: Likewise.
8014 * pthreadP.h: Declare __pthread_mutex_cond_lock.
8015 * pthread_mutex_lock.c: Define LLL_MUTEX_LOCK if not already defined.
8016 Use it instead of lll_mutex_lock. If __pthread_mutex_lock is a
8017 macro don't define aliases.
8019 * cancellation.c: Remove __pthread_enable_asynccancel_2.
8020 * pthreadP.h: Remove declaration of __pthread_enable_asynccancel_2.
8021 * sysdeps/pthread/pthread_cond_timedwait.c: Use
8022 __pthread_enable_asynccancel instead of __pthread_enable_asynccancel_2.
8023 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8024 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8025 * sysdeps/pthread/pthread_cond_wait.c: Likewise.
8026 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8027 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8029 2003-05-17 Ulrich Drepper <drepper@redhat.com>
8031 * sem_open.c: Fix one endless loop. Implement correct semantics
8032 wrt opening the same semaphore more then once.
8033 * sem_close.c: Adjust for sem_open change.
8034 * semaphoreP.h: Include <semaphore.h>. Define struct inuse_sem.
8035 Declare __sem_mappings, __sem_mappings_lock, __sem_search.
8036 * Makefile (tests): Add tst-sem7.
8037 * tst-sem7.c: New file.
8039 2003-05-16 Roland McGrath <roland@redhat.com>
8041 * sysdeps/unix/sysv/linux/register-atfork.c (libc_freeres_fn): Fix
8042 uninitialized variable braino.
8044 2003-05-16 Ulrich Drepper <drepper@redhat.com>
8046 * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Correct
8047 test for syscall availability.
8049 * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime): Set
8050 __no_posix_timers to -1 if the syscalls don't exist.
8052 * pthread_join.c (pthread_join): Set tid field of the joined
8053 thread to -1. This isn't necessary but helps to recognize some
8054 error conditions with almost no cost.
8056 * allocatestack.c (FREE_P): Also negative values indicate an
8059 * unwind.c: Include <unistd.h>.
8061 2003-05-14 Ulrich Drepper <drepper@redhat.com>
8063 * Makefile ($(objpfx)$(multidir)): Add rule to create the directory.
8065 2003-05-14 Jakub Jelinek <jakub@redhat.com>
8067 * Makefile (crti-objs, crtn-objs): New variables.
8068 (omit-deps, extra-objs): Add crtn.
8069 ($(objpfx)libpthread.so): Depend on both crti and crtn
8070 and links to them in multidir.
8071 ($(objpfx)crtn.S, $(objpfx)crtn.o): New rules.
8073 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
8075 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
8076 (lll_mutex_unlock): Use atomic_exchange_rel.
8078 2003-05-11 Ulrich Drepper <drepper@redhat.com>
8080 * cond-perf.c (cons): Add missing locking around setting of alldone.
8082 2003-05-10 Ulrich Drepper <drepper@redhat.com>
8084 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove futex
8086 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
8088 2003-05-09 Ulrich Drepper <drepper@redhat.com>
8090 * tst-sem6.c: New file.
8091 * Makefile (tests): Add tst-sem6.
8093 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (___lll_mutex_unlock):
8094 Use atomic_exchange_rel instead of atomic_exchange.
8095 * sysdeps/unix/sysv/linux/lowlevellock.c (lll_unlock_wake_cb):
8098 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Improve quality of
8099 code for lll_futex_wait and lll_futex_wake in static apps. Use
8100 vsyscall is possible.
8102 * sysdeps/unix/sysv/linux/pthread_getaffinity.c: New file.
8103 * sysdeps/unix/sysv/linux/pthread_setaffinity.c: New file.
8104 * sysdeps/pthread/pthread.h: Declare pthread_getaffinity_np and
8105 pthread_setaffinity_np.
8106 * Versions [libpthread] (GLIBC_2.3.3): Add pthread_getaffinity_np
8107 and pthread_setaffinity_np.
8108 * Makefile (libpthread-routines): Add pthread_getaffinity and
8109 pthread_setaffinity.
8111 * allocatestack.c (allocate_stack): If ARCH_RETRY_MMAP is defined,
8112 use it in case mmap to allocate the stack fails.
8113 * sysdeps/unix/sysv/linux/x86_64/Makefile: Don't define
8114 ARCH_MAP_FLAGS here.
8115 * sysdeps/x86_64/pthreaddef.h: Define ARCH_MAP_FLAGS and
8118 2003-05-08 Ulrich Drepper <drepper@redhat.com>
8120 * sysdeps/unix/sysv/linux/fork.c: Complete rewrite of the atfork
8121 handler implementation. It is now lockless in fork().
8122 * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
8123 * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
8124 * sysdeps/unix/sysv/linux/fork.h: Don't include <link.h>. Don't
8125 declare the __fork_*_lists.
8126 (struct fork_handler): Include pointers to all three functions.
8127 Add next, refcntr and need_signal elements.
8128 (__fork_handlers): New declaration.
8129 (__register_atfork_malloc): Remove declaration.
8130 (HAVE_register_atfork_malloc): Remove definition.
8131 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove
8132 __pthread_child_handler variable.
8133 (__libc_pthread_init): Use __register_atfork instead of explicitly
8135 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define lll_futex_wait
8137 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
8139 * unwind.c (unwind_cleanup): Print error message and then abort. This
8140 function must never be reached.
8142 * cond-perf.c: New file.
8144 2003-05-05 Ulrich Drepper <drepper@redhat.com>
8146 * sysdeps/i386/tls.h (TLS_INIT_TP): Include \n in error message.
8148 2003-05-04 Roland McGrath <roland@redhat.com>
8150 * Makefile ($(objpfx)../libc.so): New target.
8152 2003-05-02 Ulrich Drepper <drepper@redhat.com>
8154 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
8155 (pthread_condattr_t): Size is only an int, don't use long for
8157 (pthread_mutexattr_t): Likewise.
8158 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8159 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
8160 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8162 2003-05-01 Ulrich Drepper <drepper@redhat.com>
8164 * sysdeps/i386/tls.h: Define THREAD_ID.
8165 * sysdeps/ia64/tls.h: Likewise.
8166 * sysdeps/powerpc/tls.h: Likewise.
8167 * sysdeps/s390/tls.h: Likewise.
8168 * sysdeps/sh/tls.h: Likewise.
8169 * sysdeps/x86_64/tls.h: Likewise.
8170 * pthread_mutex_lock.c: Use THREAD_ID instead of THREAD_SELF to
8172 * pthread_mutex_timedlock.c: Likewise.
8173 * pthread_mutex_trylock.c: Likewise.
8174 * pthread_mutex_unlock.c: Likewise.
8175 * pthread_rwlock_trywrlock.c: Likewise.
8176 * sysdeps/pthread/pthread_rwlocklock_rdlock.c: Likewise.
8177 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
8178 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
8179 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
8181 * sysdeps/pthread/createthread.c (create_thread): Use CLONE_SYSVSEM
8184 2003-04-29 Jakub Jelinek <jakub@redhat.com>
8186 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
8187 (__SIZEOF_PTHREAD_COND_T): Define to 48.
8188 (pthread_rwlock_t): Add 16 bytes of pad instead of 8 before __flags.
8189 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
8190 Make __align long long instead of long.
8191 (pthread_rwlock_t): Formatting.
8192 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
8193 (pthread_rwlock_t): Formatting.
8194 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
8195 (pthread_cond_t): Make __align long long instead of long.
8196 (pthread_rwlock_t): Move __flags field to the same position as in
8199 2003-04-30 Ulrich Drepper <drepper@redhat.com>
8201 * tst-rwlock6.c (do_test): Use correct printf format specifiers.
8202 * tst-rwlock7.c (do_test): Likewise.
8204 2003-04-26 Roland McGrath <roland@redhat.com>
8206 * Makefile ($(test-modules)): Depend on $(common-objpfx)shlib.lds.
8208 2003-04-22 Jakub Jelinek <jakub@redhat.com>
8210 * allocatestack.c (TLS_TPADJ): Add TLS_PRE_TCB_SIZE instead of
8211 sizeof (struct pthread).
8212 (allocate_stack): Subtract TLS_PRE_TCB_SIZE bytes instead of
8214 * sysdeps/powerpc/tls.h (TLS_INIT_TCB_SIZE, TLS_TCB_SIZE): Define
8216 (TLS_INIT_TCB_ALIGN, TLS_TCB_ALIGN): Define to alignment of
8218 (TLS_PRE_TCB_SIZE): Increase to cover tcbhead_t preceeded by pad
8220 (INSTALL_DTV, GET_DTV, THREAD_DTV): tcbhead_t is immediately before
8222 (TLS_INIT_TP, THREAD_SELF, INIT_THREAD_SELF): Don't add TLS_TCB_SIZE
8224 (NO_TLS_OFFSET): Define.
8225 * sysdeps/unix/sysv/linux/powerpc/createthread.c (TLS_VALUE): Don't
8226 add TLS_TCB_SIZE unnecessarily.
8228 2003-04-22 Roland McGrath <roland@redhat.com>
8230 * Makeconfig (shared-thread-library): Reverse link order to work
8233 2003-04-22 Ulrich Drepper <drepper@redhat.com>
8235 * semaphore.h: Fix typo in comment.
8237 2003-04-21 Ulrich Drepper <drepper@redhat.com>
8239 * sysdeps/pthread/sigfillset.c: New file.
8241 * init.c (__pthread_initialize_minimal): Don't block SIGTIMER.
8242 * pthreadP.h: Make SIGTIMER and SIGCANCEL the same.
8243 * sysdeps/pthread/pthread_sigmask.c: Remove handling of SIGTIMER.
8244 * sysdeps/pthread/sigaction.c: Likewise.
8245 * sysdeps/pthread/sigprocmask.c: New file.
8246 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): Define as
8248 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
8249 Block SIGTIMER. Also handle SI_TKILL events and terminate thread
8252 2003-04-19 Ulrich Drepper <drepper@redhat.com>
8254 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
8255 (DL_SYSINFO_IMPLEMENTATION): Add .eh_frame information.
8257 * sysdeps/unix/sysv/linux/unregister-atfork.c
8258 (__unregister_atfork): Don't free memory not allocated dynamically.
8260 * semaphore.h: Remove __THROW marker from cancellation points.
8261 * nptl/sysdeps/pthread/pthread.h: Likewise.
8263 2003-04-18 Ulrich Drepper <drepper@redhat.com>
8265 * sysdeps/pthread/pthread.h: Don't mark pthread_testcancel,
8266 pthread_cancel, pthread_setcancelstate, and pthread_setcanceltype with
8269 2003-04-16 Jakub Jelinek <jakub@redhat.com>
8271 * tst-cancel4.c (do_test): Use %zd instead of %d when printing cnt.
8273 2003-04-15 Roland McGrath <roland@redhat.com>
8275 * forward.c (__pthread_unwind): Tweak to avoid warning.
8277 2003-04-15 Ulrich Drepper <drepper@redhat.com>
8279 * pthreadP.h: Move THREAD_ATOMIC_* replacements to the top.
8281 2003-04-14 Ulrich Drepper <drepper@redhat.com>
8283 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't
8284 overflow CFA advance instructions.
8285 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8287 2003-04-14 Jakub Jelinek <jakub@redhat.com>
8289 * sysdeps/i386/tls.h: Rename LOCK to LOCK_PREFIX.
8290 * sysdeps/i386/pthread_spin_lock.c: Likewise.
8291 * sysdeps/x86_64/tls.h: Likewise. Define LOCK_PREFIX if not already
8294 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Use
8295 DW_CFA_advance_loc2 for .Laddl-.Lsubl.
8296 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
8297 DW_CFA_advance_loc for .Laddl-.Lsubl.
8299 2003-04-13 Ulrich Drepper <drepper@redhat.com>
8301 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Don't use
8302 position-independent unwind data for static libraries.
8303 Add missing unwind info. Add comments.
8305 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Add unwind info.
8306 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
8307 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8308 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8310 2003-04-12 Ulrich Drepper <drepper@redhat.com>
8312 * Makefile: Make sure all cancellation points are compiled with
8313 exception and asynchronous unwind tables.
8315 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug
8316 which mishandles loading of global object addresses in PIC.
8317 (THREAD_SETMEM_NC): Likewise.
8319 2003-04-11 Ulrich Drepper <drepper@redhat.com>
8321 * pthread.h: Define new data structure for cleanup buffer. Declare
8322 new cleanup handler interfaces.
8323 * descr.h: Include <unwind.h> if necessary. Define pthread_unwind_buf.
8324 (struct pthread): Add cleanup_jmp_buf pointer. Define
8325 HAVE_CLEANUP_JMP_BUF and not HAVE_CANCELBUF.
8326 * pthreadP.h: Declare __pthread_unwind. Define __do_cancel to use
8327 it. Declare old cleanup handler installation functions.
8328 * cleanup.c: Rewrite. Install handler for unwind-based cleanup
8330 * cleanup_defer.c: Likewise.
8331 * cleanup_compat.c: New file. Old cleanup code.
8332 * cleanup_def_compat.c: New file. Old cleanup code.
8333 * pthread_create.c (start_thread): Initialize cleanup_jmp_buf element
8334 if own thread descriptor.
8335 * unwind.c: New file.
8336 * forward.c: Add __pthread_unwind.
8337 * init.c (pthread_functions): Add __pthread_unwind.
8338 * sysdeps/pthread/pthread-functions.s (struct pthread_functions):
8339 Add ptr___pthread_unwind.
8340 * Versions [GLIBC_2.3.3] (libpthread): Export new cleanup handling
8341 and unwind function.
8342 * Makefile (libpthread-routines): Add cleanup_compat,
8343 cleanup_def_compat, and unwind. Define CFLAGS to enable unwind
8344 table generation if necessary.
8345 * version.c: Record whether unwind support is compiled in.
8346 * sysdeps/pthread/configure.in: Add checks for unwind unterfaces.
8347 * sysdeps/pthread/bits/libc-lock.h: Add prototypes of the old cleanup
8349 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add quite a bit of
8350 complication to generate unwind information for syscall wrappers.
8351 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
8352 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
8353 __cleanup_fct_attribute.
8355 * Makefile: Add rules to build and run tst-cleanup0.
8356 * tst-cleanup0.c: New file.
8357 * tst-cleanup0.expect: New file.
8359 * pthread_create.c (deallocate_tsd): Don't take parameter. Adjust
8360 caller. Optimize to avoid often unecessary local variable.
8362 2003-04-11 Roland McGrath <roland@redhat.com>
8364 * Makefile ($(objpfx)multidir.mk): New target, generated makefile that
8365 sets variable `multidir'; include that.
8366 (generated): Add it.
8367 ($(objpfx)$(multidir)/crti.o): New target.
8368 [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it.
8370 2003-04-11 Ulrich Drepper <drepper@redhat.com>
8372 * tst-attr2.c (do_test): Add cast to avoid warning.
8373 * tst-mutex4.c (do_test): Likewise.
8375 2003-04-10 Ulrich Drepper <drepper@redhat.com>
8377 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset CPU clocks
8380 2003-04-09 Ulrich Drepper <drepper@redhat.com>
8382 * Makefile (tests): Add tst-detach1.
8383 * tst-detach1.c: New file.
8385 2003-04-08 Ulrich Drepper <drepper@redhat.com>
8387 * sysdeps/pthread/pthread.h: Remove duplicate
8388 pthread_cleanup_{push,pop} definitions.
8390 * tst-barrier2.c: Eliminate warnings.
8391 * tst-cancel4.c: Likewise.
8392 * tst-cond4.c: Likewise.
8393 * tst-cond6.c: Likewise.
8394 * tst-detach1.c: Likewise.
8395 * tst-rwlock4.c: Likewise.
8396 * tst-rwlock6.c: Likewise.
8397 * tst-rwlock7.c: Likewise.
8398 * tst-sem3.c: Likewise.
8399 * tst-spin2.c: Likewise.
8400 * tst-umask1.c: Likewise.
8402 2003-04-07 Ulrich Drepper <drepper@redhat.com>
8404 * pthread_detach.c (pthread_detach): Fix test for invalid TID.
8406 2003-04-06 Ulrich Drepper <drepper@redhat.com>
8408 * descr.h (struct pthread): Move cancelhandling member to the front.
8410 2003-04-05 Ulrich Drepper <drepper@redhat.com>
8412 * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare,
8413 malloc_parent, and malloc_child statically.
8414 (__register_atfork_malloc): New function.
8415 (free_mem): Don't free any of the malloc_* variables on the list.
8416 * sysdeps/unix/sysv/linux/fork.h: Declare __register_atfork_malloc.
8417 Define HAVE_register_atfork_malloc.
8419 2003-04-04 Ulrich Drepper <drepper@redhat.com>
8421 * sysdeps/pthread/createthread.c (create_thread): Add some more
8422 comments explaining when to set multiple_threads and when not.
8424 * pthreadP.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
8425 THREAD_ATOMIC_BIT_SET if not already defined.
8426 * sysdeps/i386/tls.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
8427 THREAD_ATOMIC_BIT_SET:
8428 * sysdeps/x86_64/tls.h: Likewise.
8429 * cleanup_defer.c (_pthread_cleanup_push_defer): Rewrite to use
8430 THREAD_ATOMIC_CMPXCHG_VAL.
8431 (_pthread_cleanup_pop_restore): Likewise.
8432 * cancellation.c (__pthread_enable_asynccancel): Likewise.
8433 (__pthread_enable_asynccancel_2): Likewise.
8434 (__pthread_disable_asynccancel): Likewise.
8435 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
8436 (__libc_disable_asynccancel): Likewise.
8437 * init.c (sigcancel_handler): Likewise.
8438 * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise.
8439 * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise.
8441 2003-04-03 Ulrich Drepper <drepper@redhat.com>
8443 * init.c (sigcancel_handler): Don't set EXITING_BIT here.
8444 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
8445 * pthreadP.h (__do_cancel): Set EXITING_BIT here.
8446 * Makefile (tests): Add tst-cancel11.
8447 * tst-cancel11.c: New file.
8449 2003-04-01 Ulrich Drepper <drepper@redhat.com>
8451 * pthread_create.c (deallocate_tsd): Clear/free memory after the last
8452 round, not the first. Use specific_used flag instead of local
8453 found_nonzero variable. Use THREAD_[SG]ETMEM where possible.
8454 (__free_tcb): Don't call deallocate_tsd here.
8455 (start_thread): Call deallocate_tsd here.
8456 * pthread_setspecific.c: Set specific_used flag really only when
8458 * Makefile (tests): Add tst-tsd3.c and tst-tsd4.
8459 * tst-tsd3.c: New file.
8460 * tst-tsd4.c: New file.
8462 2003-03-31 Ulrich Drepper <drepper@redhat.com>
8464 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock):
8465 Use atomic_exchange_and_add instead of __lll_add.
8466 (__lll_mutex_timedlock): Likewise.
8467 Patch by Ian Wienand.
8469 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
8471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
8472 (SINGLE_THREAD_P): Fix typo.
8473 * tst-cancel-wrappers.sh: Handle '.'ed symbols.
8475 2003-03-31 Ulrich Drepper <drepper@redhat.com>
8477 * Makefile (tests): Add tst-align.
8478 * tst-align.c: New file.
8479 * sysdeps/i386/Makefile: Define CFLAGS-tst-align.
8481 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called
8484 * tst-tsd2.c: Add casts to avoid warnings.
8486 2003-03-30 Ulrich Drepper <drepper@redhat.com>
8488 * descr.h (struct pthread): Move most often used elements to the front.
8490 2003-03-29 Ulrich Drepper <drepper@redhat.com>
8492 * Makefile (libpthread-routines): Add pthread_atfork.
8493 (libpthread-static-only-routines): Add pthread_atfork.
8495 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8497 * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
8499 (INSTALL_DTV): Add parens.
8500 (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC):
8501 Use passed descr instead of THREAD_SELF.
8502 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S
8503 (__lll_mutex_timedlock_wait): Correct expected value after
8505 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S:
8506 Release lock before waking up the waiters.
8507 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit
8508 criteria. Reorderstruct passed to cleanup handler. Fix
8509 handling of cancellation and failung pthread_mutex_unlock call.
8510 Use __pthread_enable_asynccancel_2 instead of
8511 __pthread_enable_asynccancel.
8512 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
8513 Return result of lock re-get if it fails.
8514 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument
8515 for __pthread_cleanup_push.
8516 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix
8517 completely broken rwlock implementation.
8518 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
8519 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
8520 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
8521 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
8522 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
8523 * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use
8524 versioned_symbol macro.
8525 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro.
8526 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
8528 2003-03-27 Ulrich Drepper <drepper@redhat.com>
8530 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare
8531 __timer_helper_thread. Declare __start_helper_thread, __helper_once,
8533 (struct timer): Remove th and bar field.
8534 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove
8535 debugging code. Create only one helper thread.
8536 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill
8538 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
8539 Renamed. Define statically. Use thread info from siginfo.
8540 (__helper_once): New variable.
8541 (__helper_tid): New variable.
8542 (__reset_helper_control): New function.
8543 (__start_helper_thread): New function.
8545 * pthread_create.c (start_thread): Don't use setjmp inside
8546 __builtin_expect to work around gcc bug.
8548 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
8549 timer_delete syscall fails, but not with ENOSYS, set
8552 * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
8553 (timer_settime): Fix typo.
8554 * sysdeps/unix/sysv/linux/timer_getoverr.c
8555 [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise.
8557 2003-03-27 Jakub Jelinek <jakub@redhat.com>
8559 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
8560 offset of cleanupbuf.__prev.
8562 2003-03-26 Jakub Jelinek <jakub@redhat.com>
8564 * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
8567 2003-03-26 Ulrich Drepper <drepper@redhat.com>
8569 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP ==
8570 NULL provide default definition to syscall.
8572 2003-03-25 Roland McGrath <roland@redhat.com>
8574 * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
8575 (timer_id2ptr): Fix typo.
8577 2003-03-25 Ulrich Drepper <drepper@redhat.com>
8579 * pthreadP.h: Define SIGCANCEL and SIGTIMER.
8580 * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition.
8581 * sysdeps/ia64/pthreaddef.h: Likewise.
8582 * sysdeps/powerpc/pthreaddef.h: Likewise.
8583 * sysdeps/s390/pthreaddef.h: Likewise.
8584 * sysdeps/sh/pthreaddef.h: Likewise.
8585 * sysdeps/x86_64/pthreaddef.h: Likewise.
8586 * init.c (__pthread_initialize_minimal): Block SIGTIMER.
8587 * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from
8589 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
8590 SIGTIMER is not unblocked.
8591 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more
8593 * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to
8595 * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just
8596 pass pointer through as ID.
8597 * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed.
8598 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file.
8599 * sysdeps/unix/sysv/linux/timer_create.c: New file.
8600 * sysdeps/unix/sysv/linux/timer_delete.c: New file.
8601 * sysdeps/unix/sysv/linux/timer_getoverr.c: New file.
8602 * sysdeps/unix/sysv/linux/timer_gettime.c: New file.
8603 * sysdeps/unix/sysv/linux/timer_routines.c: New file.
8604 * sysdeps/unix/sysv/linux/timer_settime.c: New file.
8605 * sysdeps/unix/sysv/linux/ia64/Versions: New file.
8606 * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file.
8607 * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file.
8608 * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file.
8609 * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file.
8610 * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file.
8611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file.
8612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file.
8613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file.
8614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file.
8615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file.
8616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file.
8617 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
8618 * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file.
8619 * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file.
8620 * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file.
8621 * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file.
8622 * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file.
8623 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
8624 * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file.
8625 * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file.
8626 * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file.
8627 * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file.
8628 * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file.
8629 * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file.
8631 * pthreadP.h: Remove FRAME_LEFT definition.
8632 * cleanup.c (_pthread_cleanup_push): Don't check for reference to
8633 already left frame. Programs which have this problem are not POSIX
8635 * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise.
8637 2003-03-24 Ulrich Drepper <drepper@redhat.com>
8639 * sysdeps/pthread/tst-timer.c: Check return values of the
8642 2003-03-23 Roland McGrath <roland@redhat.com>
8644 * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
8645 * tst-tls3mod.c: Likewise.
8646 * tst-tls1.c: Likewise.
8647 * tst-tls2.c: Likewise.
8649 * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
8652 * tst-join5.c (tf1, tf2): Add a cast.
8654 * Makeconfig (includes): Append -I$(..)nptl to this variable.
8656 * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
8657 Don't test anything.
8658 * tst-cond4.c: Likewise.
8659 * tst-cond6.c: Likewise.
8660 * tst-flock2.c: Likewise.
8661 * tst-mutex4.c: Likewise.
8662 * tst-rwlock4.c: Likewise.
8663 * tst-signal1.c: Likewise.
8664 * tst-spin2.c: Likewise.
8665 * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.
8667 * tst-mutex4.c: Use test-skeleton.c.
8668 * tst-spin2.c: Likewise.
8669 * tst-sysconf.c: Likewise.
8670 * tst-barrier2.c: Likewise.
8671 * tst-cond4.c: Likewise.
8672 * tst-cond6.c: Likewise.
8673 * tst-rwlock4.c: Likewise.
8674 * tst-unload.c: Likewise.
8675 * tst-flock2.c (do_test): Use return instead of exit.
8677 2003-03-22 Jakub Jelinek <jakub@redhat.com>
8679 * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
8681 2003-03-21 Ulrich Drepper <drepper@redhat.com>
8683 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
8684 (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq
8685 instead of __lll_compare_and_swap.
8686 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
8688 Removed definition if __lll_compare_and_swap.
8690 * cancellation.c: Adjust for new form of compare&exchange macros.
8691 * cleanup_defer.c: Likewise.
8693 * libc-cancellation.c: Likewise.
8694 * old_pthread_cond_broadcast.c: Likewise.
8695 * old_pthread_cond_signal.c: Likewise.
8696 * old_pthread_cond_timedwait.c: Likewise.
8697 * old_pthread_cond_wait.c: Likewise.
8698 * pthread_cancel.c: Likewise.
8699 * pthread_create.c: Likewise.
8700 * pthread_detach.c: Likewise.
8701 * pthread_join.c: Likewise.
8702 * pthread_key_delete.c: Likewise.
8703 * pthread_setcancelstate.c: Likewise.
8704 * pthread_setcanceltype.c: Likewise.
8705 * pthread_timedjoin.c: Likewise.
8706 * pthread_tryjoin.c: Likewise.
8707 * sysdeps/pthread/createthread.c: Likewise.
8709 2003-03-20 Ulrich Drepper <drepper@redhat.com>
8711 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
8712 Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
8713 definitions. Replace uses with calls to atomic_* functions.
8714 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
8715 * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
8716 __lll_test_and_set calls with atomic_exchange_and_add and
8717 atomic_exchange calls respectively.
8718 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
8719 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
8720 * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
8721 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
8722 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
8723 * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
8724 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
8726 * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
8727 returns the old value.
8729 2003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com>
8731 * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
8732 int for variable OLDVAL and correct inline assembler contraint.
8733 * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
8734 type int for variable OLD.
8736 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
8738 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
8739 (SINGLE_THREAD_P): Use global variable __local_multiple_threads
8740 instead of multiple_threads field in the TCB.
8742 2003-03-19 Ulrich Drepper <drepper@redhat.com>
8744 * sysdeps/i386/i686/bits/atomic.h: Removed.
8745 * sysdeps/i386/i586/bits/atomic.h: Removed.
8746 * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc.
8747 * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc.
8748 * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc.
8749 * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc.
8750 * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc.
8751 * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc.
8752 * atomic.h: Removed. Moved to glibc.
8754 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add
8755 support for clock selection.
8757 * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
8760 2003-03-18 Roland McGrath <roland@redhat.com>
8762 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
8763 Add __lll_rel_instr first. Add memory clobber.
8764 (lll_mutex_unlock): Use __lll_test_and_set.
8765 From Paul Mackerras <paulus@samba.org>.
8767 * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define
8769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
8770 (SINGLE_THREAD_P): Add `header.' prefix.
8771 From Paul Mackerras <paulus@samba.org>.
8773 * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
8774 pthread_timedjoin_np to ...
8775 (libpthread: GLIBC_2.3.3): ... here.
8776 (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
8778 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
8779 Avoid shadowing VAL variable.
8781 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
8784 2003-03-18 Ulrich Drepper <drepper@redhat.com>
8786 * Makefile (tests): Add tst-cond11.
8787 * tst-cond11.c: New file.
8789 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder
8790 struct passed to cleanup handler to eliminate one more
8792 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8794 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
8795 (pthrad_cond_t): Replace __unused field with __clock.
8797 * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
8798 waken all waiters in cleanup handler.
8799 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
8800 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8802 * pthread_condattr_getclock.c: New file.
8803 * pthread_condattr_setclock.c: New file.
8804 * sysdeps/pthread/pthread.h: Declare these new functions.
8805 * Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
8806 * Makefile (libpthread-routines): Add the new functions.
8807 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
8808 Renamed field to value. Document use of the bits.
8809 * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
8811 * pthread_condattr_setpshared.c: Likewise.
8812 * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
8813 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
8814 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
8816 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
8817 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
8818 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
8819 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
8820 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
8821 Implement clock selection.
8822 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
8823 * pthread-errnos.sym: Add ENOSYS.
8824 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8825 _POSIX_CLOCK_SELECTION.
8826 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
8828 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
8829 invalid .size directive.
8831 2003-03-17 Roland McGrath <roland@redhat.com>
8833 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
8836 2003-03-17 Ulrich Drepper <drepper@redhat.com>
8838 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
8839 Use __lll_add instead of spelling it out. Use protected symbol names.
8840 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
8842 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
8843 Renamed from lll_compare_and_swap. Use new name where necessary.
8844 (__lll_add): Defined.
8845 (__lll_dec_if_positive): Defined.
8846 (__lll_test_and_set): Defined.
8847 * sysdeps/ia64/pthread_spin_init.c: Removed.
8848 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
8849 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
8850 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
8851 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
8852 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
8853 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
8854 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
8855 * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
8856 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
8857 __sync_lock_release_si.
8858 Patch by Jakub Jelinek.
8860 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
8861 Fix timeout handling.
8862 (__lll_timedwait_tid): Likewise.
8863 (lll_unlock_wake_cb): Wake up other waiters if necessary.
8864 Patch by Jakub Jelinek.
8866 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
8868 2003-03-17 Roland McGrath <roland@redhat.com>
8870 PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
8871 * sysdeps/pthread/pthread_spin_init.c: New file.
8872 * sysdeps/pthread/pthread_spin_unlock.c: New file.
8873 * sysdeps/powerpc/Makefile: New file.
8874 * sysdeps/powerpc/pthread_spin_lock.c: New file.
8875 * sysdeps/powerpc/pthread_spin_trylock.c: New file.
8876 * sysdeps/powerpc/pthreaddef.h: New file.
8877 * sysdeps/powerpc/tcb-offsets.sym: New file.
8878 * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
8879 * sysdeps/powerpc/tls.h: New file.
8880 * sysdeps/powerpc/bits/atomic.h: New file.
8881 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
8882 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
8883 * sysdeps/unix/sysv/linux/lowlevellock.c: New file.
8885 * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
8886 * sysdeps/unix/sysv/linux/sem_post.c: New file.
8887 * sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
8888 * sysdeps/unix/sysv/linux/sem_trywait.c: New file.
8889 * sysdeps/unix/sysv/linux/sem_wait.c: New file.
8890 * sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
8891 * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
8892 * sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
8893 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
8894 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
8895 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
8896 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
8897 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
8898 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
8899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.
8901 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
8903 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
8904 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
8905 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
8906 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
8907 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
8909 2003-03-17 Ulrich Drepper <drepper@redhat.com>
8911 * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria.
8912 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
8913 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
8914 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
8915 Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>.
8917 2003-03-16 Roland McGrath <roland@redhat.com>
8919 * tst-fork4.c: Include <string.h>.
8920 * tst-signal2.c: Likewise.
8921 * tst-mutex5.c (do_test): exit -> return.
8922 * tst-mutex2.c: Include <stdlib.h>.
8924 2003-03-16 Ulrich Drepper <drepper@redhat.com>
8926 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
8927 (__lll_mutex_timedlock_wait): Correct expected value after
8928 spurious wakeup. Otherwise we would never wait again.
8930 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
8931 zone versus inline asm stupidity. Use correct instructions.
8933 * tst-rwlock6.c: Add some more status output.
8935 2003-03-15 Roland McGrath <roland@redhat.com>
8937 * sysdeps/pthread/configure.in: New file.
8938 * sysdeps/pthread/configure: New file (generated).
8940 2003-03-15 Ulrich Drepper <drepper@redhat.com>
8942 * allocatestack.c (allocate_stack): Store the exact stack size of
8943 user allocated stacks.
8945 2003-03-15 Jakub Jelinek <jakub@redhat.com>
8947 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
8948 (SINGLE_THREAD): Use `header' prefix instead of `header.data'.
8949 * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
8950 * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
8951 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
8952 Use `header.' prefix.
8953 * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
8955 2003-03-15 Ulrich Drepper <drepper@redhat.com>
8957 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
8958 __builtin_frame_address, use stack pointer.
8960 * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
8961 instead of __builtin_frame_pointer.
8963 2003-03-14 Ulrich Drepper <drepper@redhat.com>
8965 * tst-basic1.c (do_test): Add cast to avoid warning.
8966 * tst-basic2.c (do_test): Likewise.
8968 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
8969 amount of stack correction.
8971 * tst-fork4.c: Use test-skeleton.c.
8973 2003-03-14 Roland McGrath <roland@redhat.com>
8975 * init.c: Fix typo "#eli" for "#else".
8977 2003-03-14 Steven Munroe <sjmunroe@us.ibm.com>
8979 * allocatestack.c (__stack_user): Use hidden_data_def.
8980 * pthread_create.c (__pthread_keys): Likewise.
8982 * init.c [__powerpc__] (__NR_set_tid_address): Define it.
8984 2003-03-14 Roland McGrath <roland@redhat.com>
8986 * tst-fork4.c: New file.
8987 * Makefile (tests): Add it.
8989 * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so
8990 we always define the padding space.
8991 [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC
8992 stopped supporting its own extensions fully.
8993 [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper
8994 struct also called `header', so `header.multiple_threads' is the field
8995 name to use on all machines.
8996 * allocatestack.c (allocate_stack): Use `header.' prefix.
8997 * sysdeps/pthread/createthread.c (create_thread): Likewise.
8998 * pthread_create.c (__pthread_create_2_1): Likewise.
8999 * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise.
9000 (THREAD_SELF): Likewise.
9001 * sysdeps/x86_64/tls.h: Likewise.
9002 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
9003 (SINGLE_THREAD_P): Likewise.
9004 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
9005 (SINGLE_THREAD_P): Likewise.
9006 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
9007 (SINGLE_THREAD_P): Likewise.
9009 * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18]
9012 2003-03-14 Ulrich Drepper <drepper@redhat.com>
9014 * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
9015 * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
9017 * pthread_create.c (start_thread): setjmp is expected to return 0.
9019 * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile.
9020 (THREAD_GETMEM_NC): Likewise.
9022 2003-03-13 Ulrich Drepper <drepper@redhat.com>
9024 * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined
9025 and the size of the stack which must be allocated is a multiple,
9026 allocate one more page.
9027 * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but
9028 MULTI_PAGE_ALIASING.
9030 2003-03-13 Roland McGrath <roland@redhat.com>
9032 * pthread_create.c (start_thread): Set EXITING_BIT after the
9033 event-reporting (and destructors), not before.
9035 2003-03-13 Jakub Jelinek <jakub@redhat.com>
9037 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait,
9038 lll_futex_wake): Declare register variables as long int instead of
9039 unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9040 Make syscall arguments clobbered by the syscall.
9041 (lll_futex_wait): Define using lll_futex_timed_wait.
9043 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13]
9046 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
9049 * allocatestack.c (nptl_ncreated): Only declare if
9050 COLORING_INCREMENT != 0.
9052 * pthreadP.h (__pthread_enable_asynccancel_2): New prototype.
9053 (__libc_enable_asynccancel_2): Remove prototype.
9055 * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
9056 ctid to match kernel.
9058 2003-03-12 Ulrich Drepper <drepper@redhat.com>
9060 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
9061 libc_multiple_threads.
9062 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
9063 __libc_multiple_threads to...
9064 * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
9066 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
9068 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
9069 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
9071 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
9072 (__pthread_once_internal): Define.
9074 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
9075 macros instead of .symver directly.
9076 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
9077 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
9079 * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
9080 * sysdeps/x86_64/tcb-offsets.sym: New file.
9081 * sysdeps/x86_64/Makefile: New file.
9083 * sysdeps/i386/tcb-offsets.sym: Add SELF.
9084 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
9085 to access own pthread_t in TCB.
9086 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
9088 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
9090 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
9092 2003-03-12 Roland McGrath <roland@redhat.com>
9094 * pthread-errnos.sym: New file.
9095 * Makefile (gen-as-const-headers): New variable, list that file.
9096 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
9097 header <pthread-errnos.h> instead of defining errno values here.
9098 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
9099 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
9100 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
9101 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
9102 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
9104 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
9106 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
9107 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9108 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
9109 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
9110 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
9111 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
9112 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
9113 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
9114 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
9115 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
9116 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
9117 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
9118 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
9119 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
9120 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
9121 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
9122 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
9123 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
9124 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
9125 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
9126 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
9127 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
9128 * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
9129 * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
9130 * sysdeps/sh/pthread_spin_trylock.S: Likewise.
9131 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
9132 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
9134 * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
9135 CLONE_CHILD_SETTID worked.
9137 2003-03-12 Ulrich Drepper <drepper@redhat.com>
9139 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
9141 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
9144 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
9145 (pthread_cond_t): Add padding.
9147 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
9148 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
9149 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
9151 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
9152 (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
9153 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
9154 (__pthread_rwlock_timedrdlock): Likewise.
9155 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
9156 (__pthread_rwlock_wrlock): Likewise.
9157 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
9158 (__pthread_rwlock_rdlock): Likewise.
9160 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
9162 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
9163 result of lock re-get if it fails.
9165 2003-03-11 Ulrich Drepper <drepper@redhat.com>
9167 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
9168 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
9169 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
9170 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
9171 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
9172 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
9173 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
9174 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
9175 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
9176 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
9178 * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
9179 THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
9181 * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
9182 Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
9183 * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
9184 (create_thread): Likewise.
9185 Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
9186 * init.c (__pthread_initialize_minimal_internal): Initialize
9187 __libc_multiple_threads_ptr if necessary.
9188 * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
9189 __pthread_multiple_threads and __libc_multiple_threads_ptr.
9190 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
9191 __libc_multiple_threads.
9192 (__libc_pthread_init): Return pointer to __libc_pthread_init if
9195 * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
9196 (THREAD_SETMEM_NC): Likewise.
9198 * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
9199 * sysdeps/x86_64/pthread_spin_trylock.S: New file.
9200 * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
9201 * sysdeps/x86_64/pthread_spin_unlock.S: New file.
9203 * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
9204 Eliminate one entire instruction.
9206 * cancellation.c (__pthread_enable_asynccancel_2): New function.
9207 * pthreadP.h: Declare __pthread_enable_asynccancel_2.
9208 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
9209 (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
9210 instead of __pthread_enable_asynccancel.
9211 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
9212 (__pthread_cond_wait): Likewise.
9213 * sysdeps/pthread/pthread_cond_timedwait.c
9214 (__pthread_cond_timedwait): Likewise.
9215 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
9217 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
9218 (__condvar_cleanup): Wake up all waiters in case we got signaled
9219 after being woken up but before disabling asynchronous
9221 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
9222 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
9223 (__condvar_cleanup): Likewise.
9225 * init.c (__NR_set_tid_address): If already defined, don't redefine.
9226 Make it an error if architecture has no #if case. Add x86-64.
9228 * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
9229 pt-initfini.s generation.
9231 * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
9232 (TLS_INIT_TP): Fix typo.
9234 2003-03-11 Jakub Jelinek <jakub@redhat.com>
9236 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
9237 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
9239 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
9240 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
9241 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
9242 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
9243 * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
9244 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
9245 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
9246 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
9248 2003-03-11 Ulrich Drepper <drepper@redhat.com>
9250 * sysdeps/pthread/pthread_cond_timedwait.c
9251 (__pthread_cond_timedwait): Return the result of the final
9252 locking. If it succeeds, the regular function return value.
9254 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
9255 Return result of the final locking.
9256 * version.c (__nptl_main): Work around problems with the strange
9257 INTERNAL_SYSCALL macro on ppc32.
9258 * init.c (__pthread_initialize_minimal_internal): Unblock
9259 SIGCANCEL in case the parent blocked it.
9260 Reported by Paul Mackerras <paulus@samba.org>.
9262 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
9263 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
9264 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
9266 2003-03-11 Jakub Jelinek <jakub@redhat.com>
9268 * sysdeps/pthread/pthread_cond_timedwait.c
9269 (__pthread_cond_timedwait): Unlock and fail if
9270 __pthread_mutex_unlock_internal failed.
9272 * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
9273 (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
9275 * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
9276 [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
9277 STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
9278 ALLOCATE_STACK): New macros.
9279 (TLS_TPADJ): New macro.
9280 (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
9281 (allocate_stack): Handle TLS_DTV_AT_TP and
9282 NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
9283 * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
9285 * init.c [__ia64__] (__NR_set_tid_address): Define.
9287 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
9288 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
9289 * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
9290 * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
9291 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
9292 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
9293 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
9294 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
9295 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
9296 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
9297 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
9298 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
9299 * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
9300 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
9301 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
9302 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
9303 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
9304 * sysdeps/ia64/bits/atomic.h: New file.
9305 * sysdeps/ia64/Makefile: New file.
9306 * sysdeps/ia64/pthread_spin_init.c: New file.
9307 * sysdeps/ia64/pthread_spin_lock.c: New file.
9308 * sysdeps/ia64/pthread_spin_trylock.c: New file.
9309 * sysdeps/ia64/pthread_spin_unlock.c: New file.
9310 * sysdeps/ia64/pthreaddef.h: New file.
9311 * sysdeps/ia64/tcb-offsets.sym: New file.
9312 * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
9313 * sysdeps/ia64/tls.h: New file.
9315 * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
9316 to syscall instead of no arguments.
9318 2003-03-10 Ulrich Drepper <drepper@redhat.com>
9320 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
9321 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
9322 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
9323 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
9325 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
9328 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
9330 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
9331 lowlevelbarrier.sym.
9332 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
9333 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
9334 Include lowlevelbarrier.h and don't define offsets locally.
9335 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
9337 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9338 (__lll_mutex_lock_wait): Reverse order of first two parameters.
9339 (__lll_mutex_timedlock_wait): Likewise.
9340 (lll_mutex_lock): Adjust asm for that.
9341 (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
9342 (lll_lock): Adjust asm for operand order change.
9343 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
9344 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
9346 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
9347 Reverse order of parameters.
9348 (__lll_timedwait_tid): Remove regparms attribute.
9349 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
9350 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
9352 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
9353 (__lll_timedwait_tid): Remove one unnecessary instruction.
9355 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
9356 __lll_mutex_timedlock_wait only for NOT_IN_libc.
9357 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
9360 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
9361 lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
9363 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
9366 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
9367 LOCK is already defined. Don't define __lll_mutex_timedlock_wait
9369 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
9370 define LOCK here (if UP is not defined). The actual code is in
9373 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
9374 LOCK is already defined. Don't define lll_unlock_wake_cb and
9375 __lll_timedwait_tid for libc.so.
9376 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
9377 define LOCK here (if UP is not defined). The actual code is in
9380 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
9381 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
9382 * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
9383 instead of lowlevelsem.h.
9384 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
9385 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
9386 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
9388 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
9390 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
9391 * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
9392 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
9394 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
9396 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
9399 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
9401 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
9402 of __libc_locking_needed.
9403 (lll_trylock): Initialize %eax to zero.
9405 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
9406 pthread_cond_t definition.
9408 2003-03-10 Roland McGrath <roland@redhat.com>
9410 * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
9411 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
9412 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
9413 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
9414 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
9416 * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
9417 Instead of setting PD->multiple_threads, set globals
9418 __pthread_multiple_threads and __libc_multiple_threads.
9419 * sysdeps/pthread/createthread.c (create_thread): Likewise.
9420 * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
9421 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
9423 * descr.h (struct pthread): Conditionalize first member on
9424 [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
9425 containing an anonymous tcbhead_t. Move `list' member out.
9426 [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
9427 * allocatestack.c: Remove use of `header.data.' prefix.
9428 * pthread_create.c: Likewise.
9429 * init.c (__pthread_initialize_minimal_internal): Likewise.
9430 * sysdeps/pthread/createthread.c (create_thread): Likewise.
9431 * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
9432 (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
9433 * sysdeps/x86_64/tls.h: Likewise.
9434 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
9435 (SINGLE_THREAD_P): Likewise.
9436 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
9437 (SINGLE_THREAD_P): Likewise.
9438 * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
9439 * sysdeps/s390/tls.h (tcbhead_t): Likewise.
9441 2003-03-09 Ulrich Drepper <drepper@redhat.com>
9443 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
9445 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
9446 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
9448 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
9449 leftovers from the ia32 code.
9451 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
9453 (clear_once_control): Don't load %esi.
9455 * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
9458 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
9460 * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
9461 * sysdeps/unix/sysv/linux/createthread.c: ...here.
9463 * Makefile (tests): Add tst-cond10.
9464 * tst-cond10.c: New file.
9466 2003-03-08 Ulrich Drepper <drepper@redhat.com>
9468 * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
9469 * tst-signal3.c (do_test): Likewise.
9470 * tst-sem5.c (do_test): Likewise.
9471 * tst-kill6.c (do_test): Likewise.
9472 * tst-tls3.c (do_test): Likewise. Include <errno.h>.
9474 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
9476 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
9477 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
9478 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
9479 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
9480 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
9481 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
9482 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
9484 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
9486 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
9487 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
9488 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9489 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
9490 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
9491 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
9492 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
9493 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
9495 * allocatestack.c (allocate_stack): If mprotect() fails free the
9498 2003-03-07 Ulrich Drepper <drepper@redhat.com>
9500 * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
9502 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
9503 lll_wake_tid. This was used only to work around kernel limits in
9505 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
9506 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
9507 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
9508 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
9510 * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
9511 (__pthread_initialize_minimal_internal): Change initialization of
9512 __static_tls_align_m1 appropriately.
9513 * pthreadP.h (__static_tls_align_m1): Renamed from
9515 * allocatestack.c (allocate_stack): Use __static_tls_align_m1
9516 instead of __static_tls_align-1.
9518 2003-03-04 Ulrich Drepper <drepper@redhat.com>
9520 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
9522 * pthread_create.c: Define __pthread_keys using nocommon
9523 attribute, not by placing it explicitly in bss.
9524 Remove DEFINE_DEALLOC definition. Not needed anymore.
9526 * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
9527 Use it in mmap call to allocate stacks.
9529 * sysdeps/pthread/createthread.c (create_thread): Fix comment.
9531 * pthread_create.c (start_thread): Use THREAD_SETMEM to store
9532 result of the thread function.
9534 2003-03-03 Ulrich Drepper <drepper@redhat.com>
9536 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
9537 version is just fine.
9539 * sysdeps/unix/sysv/linux/libc_pthread_init.c
9540 (__pthread_child_handler): Renamed from pthread_child_handler,
9541 exported, and marked hidden. Change all users.
9542 * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
9543 free __pthread_child_handler from child list.
9545 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
9547 * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
9549 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
9550 Fix handling of cancellation and failing pthread_mutex_unlock call.
9551 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
9552 (__pthread_cond_wait): Likewise.
9554 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
9555 (pthread_rwlock_timedrdlock): Fix clobber of result variable by
9556 lll_futex_timed_wait call.
9557 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
9558 (pthread_rwlock_timedwrlock): Likewise.
9560 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
9561 Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
9562 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
9564 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
9565 check of lll_futex_wake return value.
9567 2003-03-03 Roland McGrath <roland@redhat.com>
9569 * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
9571 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
9572 Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
9573 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
9575 2003-03-02 Ulrich Drepper <drepper@redhat.com>
9577 * sysdeps/pthread/timer_create.c (timer_create): Return correct
9578 error for CPU clocks.
9580 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
9581 _POSIX_MONOTONIC_CLOCK.
9582 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
9584 * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
9587 2003-03-01 Ulrich Drepper <drepper@redhat.com>
9589 * descr.h (struct pthread): Move cleanup field to the front.
9591 2003-03-01 Roland McGrath <roland@redhat.com>
9593 * sem_open.c (sem_open): Braino fix.
9595 2003-03-01 Ulrich Drepper <drepper@redhat.com>
9597 * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
9598 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
9599 __pthread_cleanup_pop functionality.
9600 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9602 * descr.h (struct pthread): Move tid field to the front now that
9605 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
9606 (__lll_mutex_timedlock_wait): Remove.
9607 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
9608 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
9609 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
9610 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
9611 (lll_unlock_wake_cb): Don't save and restore %esi.
9612 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
9614 (__lll_timedwait_tid): Add alignment.
9615 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
9616 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
9618 (__lll_timedwait_tid): Removed.
9619 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
9620 (__pthread_cond_broadcast): Don't save, load, and restore %esi.
9621 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
9622 (pthread_barrier_wait): Don't save, load, and restore %esi for
9624 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
9625 (__pthread_cond_signal): Don't save, load, and restore %esi.
9626 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
9627 (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
9628 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
9629 Don't save, load, and restore %esi.
9631 2003-02-27 Ulrich Drepper <drepper@redhat.com>
9633 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
9634 Release lock before waking up the waiters.
9636 * tst-exit1.c (do_test): Don't start more than one thread in parallel.
9638 * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
9639 (reader_thread): Likewise.
9641 * sysdeps/pthread/pthread_rwlock_unlock.c
9642 (__pthread_rwlock_unlock): Release internal lock early. Don't try
9643 to wake up readers if there are none.
9645 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
9646 Release internal lock before wake threads.
9648 2003-02-26 Ulrich Drepper <drepper@redhat.com>
9650 * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
9651 * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
9653 * tst-rwlock9.c: Likewise.
9654 * tst-rwlock10.c: New file.
9655 * tst-rwlock11.c: New file.
9657 * Makefile (tests): Add tst-dlsym1.
9658 * tst-dlsym1.c: New file.
9660 * init.c (__pthread_initialize_minimal_internal): Set
9661 GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
9662 * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
9664 2003-02-24 Ulrich Drepper <drepper@redhat.com>
9666 * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
9668 * tst-cond2.c: Fix sychronization with child.
9670 * tst-rwlock8.c (reader_thread): Remove unused variable.
9672 * Makefile: Add rules to build and run tst-tls3.
9673 * tst-tls3.c: New file.
9674 * tst-tls3mod.c: New file.
9676 * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
9677 * tst-rwlock8.c: New file.
9678 * tst-rwlock9.c: New file.
9679 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
9680 complete broken rwlock implementation.
9681 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
9683 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
9685 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
9686 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
9687 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
9688 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
9689 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
9690 * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
9691 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
9693 2003-02-23 Roland McGrath <roland@redhat.com>
9695 * Makefile (nptl-version): Change regexp so case sensitivity is ok.
9697 2003-02-23 Ulrich Drepper <drepper@redhat.com>
9699 * Makefile (tests): Add tst-context1.
9700 * tst-context1.c: New file.
9702 * Makefile (tests): Add tst-tls1 and tst-tls2.
9703 * tst-tls1.c: New file.
9704 * tst-tls2.c: New file.
9706 * libc-cancellation.c (__libc_enable_asynccancel): Correct test
9709 * pthread_create.c (start_thread): Set EXITING_BIT early.
9711 * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
9712 (THREAD_GETMEM_NC): Likewise.
9714 2003-02-22 Ulrich Drepper <drepper@redhat.com>
9716 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
9717 off 3 more bytes by using offset-less instructions when possible.
9719 * Makefile: Add dependency for $(objpfx)version.d.
9721 * eintr.c (eintr_source): Add unnecessary return but the compiler
9724 * tst-kill3.c: Include <unistd.h>.
9726 2003-02-21 Roland McGrath <roland@redhat.com>
9728 * pthread_create.c (start_thread): Call __libc_thread_freeres.
9730 2003-02-21 Ulrich Drepper <drepper@redhat.com>
9732 * Makefile (tests): Add tst-eintr1.
9733 (distribute): Add eintr.c.
9734 * tst-eintr1.c: New file.
9735 * eintr.c: New file.
9737 * pthread_cancel.c (pthread_cancel): Use tkill directly.
9739 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
9740 Disallow sending SIGCANCEL.
9742 * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
9743 tst-kill3, tst-kill4, tst-kill5, tst-kill6.
9744 * tst-kill1.c: New file.
9745 * tst-kill2.c: New file.
9746 * tst-kill3.c: New file.
9747 * tst-kill5.c: New file.
9748 * tst-kill6.c: New file.
9749 * tst-basic7.c: Renamed to...
9750 * tst-kill4.c: ...this.
9752 2003-02-21 Roland McGrath <roland@redhat.com>
9754 * Makefile (install-lib-ldscripts): New variable.
9756 2003-02-21 Ulrich Drepper <drepper@redhat.com>
9758 * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
9759 * pthread_cancel.c: Use INVALID_TD_P.
9760 * pthread_detach.c: Likewise.
9761 * pthread_getschedparam.c: Likewise.
9762 * pthread_setschedparam.c: Likewise.
9763 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
9764 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
9765 * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
9766 * pthread_timedjoin.c: Likewise.
9768 * tst-basic7.c: Include <signal.h>.
9770 * pthread_join.c (pthread_join): Limited checking for invalid
9772 * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
9774 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9776 * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
9777 beginning of the loop. Clear the entire first block of TSD.
9778 * Makefile (tests): Add tst-key4.
9779 * tst-key4.c: New file.
9781 2003-02-18 Ulrich Drepper <drepper@redhat.com>
9783 * Makefile (tests): Add tst-basic7.
9784 * tst-basic7.c: New file.
9786 * pthread_create.c (deallocate_tsd): Mark as internal_function.
9787 Add some more __builtin_expect.
9789 * pthreadP.h: Define dummy version of DEBUGGING_P.
9791 2003-02-17 Ulrich Drepper <drepper@redhat.com>
9793 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
9794 _POSIX_THREAD_PRIORITY_SCHEDULING.
9795 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
9796 _XOPEN_REALTIME_THREADS.
9797 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9799 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
9800 kernel returns EINVAL for PID <= 0, work around it.
9802 * Makefile (tests): Add tst-signal5.
9803 * tst-signal5.c: New file.
9805 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
9808 * tst-cancel1.c (tf): Block all signals.
9810 * Makefile (tests): Add tst-basic6.
9811 * tst-basic6.c: New file.
9813 * tst-basic1.c: Add test for process ID.
9815 * Makefile (tests): Add tst-cancel10.
9816 * tst-cancel10.c: New file.
9818 * Makefile (tests): Add tst-signal4.
9819 * tst-signal4.c: New file.
9821 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
9822 __sigismember instead of sigismember. Add __builtin_expect.
9824 2003-02-16 Ulrich Drepper <drepper@redhat.com>
9826 * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
9827 pthread_setcancelstate, and pthread_rwlock_setpshared.
9829 * tst-cancel7.c (do_test): Make sure the pid file exists before
9830 canceling the thread.
9832 * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
9833 pthread_rwlock_timedrdlock tests.
9834 * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
9835 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
9836 Check for invalid tv_nsec field.
9837 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
9840 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
9841 recursive mutex of overflow.
9843 * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
9845 * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
9846 going into an endless loop.
9847 * Makefile (tests): Add tst-cancel9.
9848 * tst-cancel9.c: New file.
9850 * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
9852 2003-02-15 Ulrich Drepper <drepper@redhat.com>
9854 * tst-mutex5.c (do_test): Add more timedlock tests.
9856 * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
9857 * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
9859 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
9860 use INLINE_SYSCALL. Error number is returned, not -1.
9862 * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
9863 and __deallocate_stack with internal_function.
9864 * pthread_create.c: Adjust definitions appropriately.
9865 * allocatestack.c: Likewise.
9867 * pthread_join.c: Add one more __builtin_expect.
9868 * pthread_timedjoin.c: Likewise.
9870 * pthread_getspecific.c (__pthread_getspecific): Clear data->data
9871 not data of sequence number does not match.
9872 Add one __builtin_expect.
9874 * Makefile (tests): Add tst-clock1.
9875 * tst-clock1.c: New file.
9877 * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
9879 * Makefile (tests): Add tst-basic5.
9880 * tst-basic5.c: New file.
9882 2003-02-14 Ulrich Drepper <drepper@redhat.com>
9884 * Makefile (tests): Add tst-basic4.
9885 * tst-basic4.c: New file.
9887 * pthreadP.h: Add declaraction for __nptl_nthreads.
9888 * pthread_create.c: Define __nptl_nthreads
9889 (start_thread): Increment __nptl_nthreads at beginning. Decrement
9890 after thread is done. If then zero, call exit(0).
9891 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
9892 Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
9893 * init.c (pthread_functions): Initialize ptr_nthreads.
9894 * allocatestack.c (nptl_nthreads): Remove definition and all uses.
9895 (__reclaim_stacks): Decrement __nptl_nthreads.
9896 * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
9898 * Makefile (tests): Add tst-basic3.
9899 * tst-basic3.c: New file.
9901 * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
9902 after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
9903 * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
9904 * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
9905 if asynchronous canceling is enabled.
9906 * pthread_join.c (pthread_join): When recognizing circular joins,
9907 take into account the other thread might be already canceled.
9908 * Makefile (tests): Add tst-join5.
9909 * tst-join5.c: New file.
9911 * Makefile (tests): Add tst-join4.
9912 * tst-join4.c: New file.
9914 2003-02-13 Ulrich Drepper <drepper@redhat.com>
9916 * tst-cond4.c (main): Add test of pthread_attr_getpshared.
9918 2003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9920 * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
9921 THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
9922 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
9924 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
9926 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
9927 error if lll_futex_wake failed.
9929 2003-02-13 Ulrich Drepper <drepper@redhat.com>
9931 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
9932 handling of cancellation and failung pthread_mutex_unlock call.
9933 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
9934 * Makefile (tests): Add tst-cond8 and tst-cond9.
9935 * tst-cond8.c: New file.
9936 * tst-cond9.c: New file.
9938 * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
9940 * sysdeps/pthread/pthread.h: Add missing initializers. Protect
9941 non-standard initializers with __USE_GNU.
9943 * Makefile (tests): Add tst-cleanup3.
9944 * tst-cleanup3.c: New file.
9946 2003-02-12 Ulrich Drepper <drepper@redhat.com>
9948 * Makefile (tests): Add tst-attr1 and tst-attr2.
9949 * tst-attr1.c: New file.
9950 * tst-attr2.c: New file.
9952 * Makefile: Add rules to build and run tst-atfork2 test.
9953 * tst-atfork2.c: New file.
9954 * tst-atfork2mod.c: New file.
9956 * sysdeps/unix/sysv/linux/unregister-atfork.c
9957 (__unregister_atfork): Free the memory allocated for the handlers
9958 after removing them from the lists.
9960 * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
9963 * tst-atfork1.c (do_test): Wait for the child we forked.
9964 Report error in child.
9966 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
9968 * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
9970 2003-02-10 Ulrich Drepper <drepper@redhat.com>
9972 * Makefile (tests): Add tst-cancel8.
9973 * tst-cancel8.c: New file.
9975 * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
9976 clearing of control variable.
9977 * Makefile (tests): Add tst-once3 and tst-once4.
9978 * tst-once3.c: New file.
9979 * tst-once4.c: New file.
9981 2003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
9983 * sysdeps/sh/Makefile: New file.
9984 * sysdeps/sh/bits/atomic.h: New file.
9985 * sysdeps/sh/pthread_spin_init.c: New file.
9986 * sysdeps/sh/pthread_spin_lock.c: New file.
9987 * sysdeps/sh/pthread_spin_trylock.S: New file.
9988 * sysdeps/sh/pthread_spin_unlock.S: New file.
9989 * sysdeps/sh/pthreaddef.h: New file.
9990 * sysdeps/sh/tcb-offsets.sym: New file.
9991 * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
9992 * sysdeps/sh/tls.h: New file.
9993 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
9994 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
9995 * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
9996 * sysdeps/unix/sysv/linux/sh/fork.c: New file.
9997 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
9998 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
9999 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
10000 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
10001 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
10002 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
10003 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
10004 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
10005 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
10006 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
10007 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
10008 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
10009 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
10010 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
10011 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
10012 * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
10013 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
10014 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
10015 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
10016 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
10017 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
10018 * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
10019 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
10020 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
10021 * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
10022 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
10024 2003-02-08 Ulrich Drepper <drepper@redhat.com>
10026 * tst-cond2.c: Rearrange code to not rely on behavior undefined
10027 according to POSIX.
10029 * tst-basic2.c (do_test): Lock mutex before creating the thread.
10031 2003-02-07 Ulrich Drepper <drepper@redhat.com>
10033 * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
10034 (TLS_GET_FS): New #define.
10035 (TLS_SET_FS): New #define.
10036 Correct value of __NR_set_thread_area.
10038 * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
10040 2003-02-06 Ulrich Drepper <drepper@redhat.com>
10042 * Makefile (tests): Add tst-popen1.
10043 * tst-popen1.c: New file.
10045 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
10046 but inactive generalization.
10047 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
10048 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
10049 Minor optimization, remove one instruction.
10050 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
10052 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
10054 * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
10056 2003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
10058 * init.c (__NR_set_tid_address): Add #ifdef for s390.
10059 * sysdeps/pthread/pthread_barrier_wait.c: New file.
10060 * sysdeps/pthread/pthread_cond_broadcast.c: New file.
10061 * sysdeps/pthread/pthread_cond_signal.c: New file.
10062 * sysdeps/pthread/pthread_cond_timedwait.c: New file.
10063 * sysdeps/pthread/pthread_cond_wait.c: New file.
10064 * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
10065 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
10066 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
10067 * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
10068 * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
10069 * sysdeps/s390/Makefile: New file.
10070 * sysdeps/s390/bits/atomic.h: New file.
10071 * sysdeps/s390/pthread_spin_init.c: New file.
10072 * sysdeps/s390/pthread_spin_lock.c: New file.
10073 * sysdeps/s390/pthread_spin_trylock.c: New file.
10074 * sysdeps/s390/pthread_spin_unlock.c: New file.
10075 * sysdeps/s390/pthreaddef.h: New file.
10076 * sysdeps/s390/tcb-offsets.sym: New file.
10077 * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
10078 * sysdeps/s390/tls.h: New file.
10079 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
10080 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
10081 * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
10082 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
10083 * sysdeps/unix/sysv/linux/s390/fork.c: New file.
10084 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
10085 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
10086 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
10087 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
10088 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
10089 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
10090 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
10091 * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
10092 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
10093 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
10094 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
10095 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
10096 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
10097 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
10098 * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
10099 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
10100 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
10101 * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
10103 2003-02-04 Ulrich Drepper <drepper@redhat.com>
10105 * atomic.h: Add a couple more default implementations.
10106 (atomic_compare_and_exchange_acq): Use
10107 __arch_compare_and_exchange_32_acq in return value definition. It
10109 (atomic_bit_set): Renamed from atomic_set_bit.
10110 Add missing atomic_ prefixes.
10112 * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
10113 thread library is available, use correct value to mark initialized
10116 2003-02-03 Ulrich Drepper <drepper@redhat.com>
10118 * allocatestack.c (allocate_stack): Use __getpagesize instead of
10119 __sysconf to determine pagesize.
10121 * pthread_create.c: Include <atomic.h>.
10122 * allocatestack.c (allocate_stack): Implement coloring of the
10123 allocated stack memory. Rename pagesize to pagesize_m1. It's the
10124 size minus one. Adjust users.
10125 * sysdeps/i386/i686/Makefile: New file.
10127 2003-02-02 Ulrich Drepper <drepper@redhat.com>
10129 * allocatestack.c: Improve comment throughout the file.
10131 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
10132 (__lll_lock_wait): Add branch prediction.
10133 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
10134 (__lll_lock_wait): Likewise.
10135 (lll_unlock_wake_cb): Removed.
10137 2003-01-31 Ulrich Drepper <drepper@redhat.com>
10139 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
10140 _POSIX_THREAD_PRIORITY_SCHEDULING.
10142 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10144 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
10145 Fix return type of ptr___pthread_getspecific.
10147 2003-01-29 Ulrich Drepper <drepper@redhat.com>
10149 * Makefile (tests): Add tst-umask1.
10150 (tst-umask1-ARGS): Define.
10151 * tst-umask1.c: New file.
10153 2003-01-28 Ulrich Drepper <drepper@redhat.com>
10155 * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
10156 pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
10157 pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
10158 pthread_rwlock_unlock.
10159 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
10160 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
10161 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
10162 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
10163 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
10165 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
10166 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
10168 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
10169 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
10170 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
10172 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
10173 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
10175 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
10176 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
10177 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
10179 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
10180 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
10182 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
10184 * Makefile (libpthread-routines): Remove lowlevelcond and
10185 lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
10186 pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
10187 and pthread_cond_broadcast.
10188 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
10189 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
10190 * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
10191 * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
10192 * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
10193 * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
10194 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
10195 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
10196 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
10197 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
10198 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
10199 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
10200 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
10201 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
10202 * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
10203 * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
10204 * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
10205 * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
10206 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
10207 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
10208 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
10209 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
10210 * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
10211 * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
10212 * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
10213 * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
10214 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
10215 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
10216 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
10217 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
10218 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
10220 * sysdeps/unix/sysv/linux/i386/createthread.c: Define
10221 PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
10222 of the code is moved to ...
10223 * sysdeps/pthread/createthread.c: ...here. New file.
10225 2003-01-27 Ulrich Drepper <drepper@redhat.com>
10227 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
10228 (__new_sem_post): Clear %eax before returning.
10229 Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
10231 * Makefile (tests): Add tst-cleanup2.
10232 * tst-cleanup2.c: New file.
10234 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
10235 Interpret first parameter correctly.
10237 2003-01-17 Ulrich Drepper <drepper@redhat.com>
10239 * Makefile (headers): Add bits/semaphore.h.
10241 2003-01-16 Jakub Jelinek <jakub@redhat.com>
10243 * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
10246 2003-01-14 Ulrich Drepper <drepper@redhat.com>
10248 * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
10249 must be used and mapping failed.
10250 Reported by Luke Elliott <luke.elliott@activfinancial.com>.
10252 * Makefile (CFLAGS-pthread_self.os): Define this, not
10253 CFLAGS-pthread_self.c.
10255 2003-01-13 Ulrich Drepper <drepper@redhat.com>
10257 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
10258 lll_unlock_wake_cb.
10260 * Makefile (libpthread-routines): Add version. Add rules to build
10261 version.os and banner.h.
10262 * version.c: New file.
10264 2003-01-13 Jakub Jelinek <jakub@redhat.com>
10266 * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
10267 the alias unconditional.
10268 * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
10270 2003-01-13 Ulrich Drepper <drepper@redhat.com>
10272 * Makefile (CFLAGS-pthread_self.c): New definition.
10274 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10276 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
10277 INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
10278 * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
10279 * init.c (__pthread_initialize_minimal_internal): Likewise.
10281 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10283 * pthreadP.h (__pthread_cond_timedwait): Add prototype.
10285 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
10286 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
10287 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
10288 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
10289 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
10290 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
10292 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10294 * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
10295 * pt-system.c (LIBC_CANCEL_HANDLED): Add.
10296 * tst-cancel-wrappers.sh: Remove all exceptions.
10298 2003-01-05 Ulrich Drepper <drepper@redhat.com>
10300 * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
10301 features. Reported by Marijn Ros <marijn@mad.scientist.com>.
10303 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
10304 Use __libc_pthread_functions array if SHARED.
10306 * pthreadP.h: Move pthread_cond_2_0_t definition to...
10307 * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
10309 * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
10310 (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
10311 __libc_key_create, __libc_getspecific, __libc_setspecific): Use
10312 __libc_ptf_call instead of __libc_maybe_call.
10313 (PTF): New #define.
10314 (__libc_cleanup_region_start): Wrap function name with PTF call.
10315 (__libc_cleanup_region_end): Likewise.
10316 (__libc_cleanup_end): Likewise.
10318 * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
10319 * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
10320 * pthread_key_create.c: Add __pthread_key_create_internal alias.
10321 * pthreadP.h: Add prototypes.
10323 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
10324 __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
10325 __pthread_rwlock_unlock aliases.
10326 * pthreadP.h: Add prototypes for new aliases.
10328 * pthreadP.h (struct pthead_functions): Moved to...
10329 * sysdeps/pthread/pthread-functions.h: ...here. New file.
10330 * init.c (pthread_functions): Add initializers for new elements.
10332 * cleanup_defer.c: Add __pthread_cleanup_push_defer and
10333 __pthread_cleanup_pop_restore aliases.
10334 * pthreadP.h: Add prototypes.
10336 * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
10337 and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
10338 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
10339 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
10340 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
10341 * pthreadP.h: Adjust prototypes and callers.
10343 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10345 * Makefile (tests): Add tst-cancel7.
10346 (tst-cancel7-ARGS): New variable.
10347 * tst-cancel7.c: New file.
10349 * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
10350 around gcc defficiencies.
10351 * old_pthread_cond_signal.c: Likewise.
10352 * old_pthread_cond_timedwait.c: Likewise.
10353 * old_pthread_cond_wait.c: Likewise.
10355 * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
10357 2003-01-03 Ulrich Drepper <drepper@redhat.com>
10359 * Makefile (tests): Add tst-cond7.
10360 * tst-cond7.c: New file.
10362 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
10363 (condvar_cleanup): Get condvar address from the right place.
10365 * atomic.h: Correct definitions of atomic_full_barrier,
10366 atomic_read_barrier, atomic_write_barrier.
10368 * old_pthread_cond_broadcast.c: Make memory allocate and initialization
10370 * old_pthread_cond_signal.c: Likewise.
10371 * old_pthread_cond_timedwait.c: Likewise.
10372 * old_pthread_cond_wait.c: Likewise.
10374 2003-01-03 Jakub Jelinek <jakub@redhat.com>
10376 * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
10378 2003-01-03 Ulrich Drepper <drepper@redhat.com>
10380 * pthreadP.h (pthread_cond_2_0_t): New type.
10381 (struct pthread_functions): Use new type for 2.0 condvar callbacks.
10382 Use new type for the 2.0 condvar function prototypes.
10383 * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
10384 * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
10386 * old_pthread_cond_destroy.c: Likewise.
10387 * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
10388 * old_pthread_cond_signal.c: Likewise.
10389 * old_pthread_cond_timedwait.c: Likewise.
10390 * old_pthread_cond_wait.c: Likewise.
10392 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
10393 (__pthread_cond_wait): Don't save cancellation mode and seq value
10396 * herrno.c (__h_errno_location): Don't define as weak.
10398 2003-01-02 Jakub Jelinek <jakub@redhat.com>
10400 * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
10401 pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
10402 and pthread_cond_wait.
10403 * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
10405 (__pthread_cond_broadcast_2_0): ... this.
10406 * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
10408 (__pthread_cond_destroy_2_0): ... this.
10409 * old_pthread_cond_init.c (__old_pthread_cond_init):
10411 (__pthread_cond_init_2_0): ... this.
10412 * old_pthread_cond_signal.c (__old_pthread_cond_signal):
10414 (__pthread_cond_signal_2_0): ... this.
10415 * old_pthread_cond_wait.c (__old_pthread_cond_wait):
10417 (__pthread_cond_wait_2_0): ... this.
10418 * pthread_cond_destroy.c: Include shlib-compat.h.
10419 (pthread_cond_destroy): Change strong_alias into versioned_symbol.
10420 * pthread_cond_init.c: Include shlib-compat.h.
10421 (pthread_cond_init): Change strong_alias into versioned_symbol.
10422 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
10423 fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
10425 (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
10426 __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
10427 __pthread_cond_wait_2_0): New prototypes.
10428 (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
10429 __old_pthread_cond_init, __old_pthread_cond_signal,
10430 __old_pthread_cond_wait): Removed.
10431 * init.c: Include shlib-compat.h.
10432 (pthread_functions): Guard ptr___pthread_attr_init_2_0
10433 initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
10434 Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
10435 ptr___pthread_cond_*_2_0 fields.
10436 * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
10437 pthread_cond_*@GLIBC_2.0 compatibility symbols.
10439 * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
10440 LIBC_SIGACTION was not yet defined.
10441 [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
10442 [!defined LIBC_SIGACTION] (__sigaction): New function and
10444 [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
10445 [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
10447 2003-01-02 Jakub Jelinek <jakub@redhat.com>
10449 * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
10451 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10453 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
10454 New, larger type definition.
10455 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
10457 * Versions [libpthread]: Add definitions for new pthread_cond_*
10458 interfaces for version GLIBC_2.3.2.
10459 * pthread_cond_init.c: Update initialization for new type definition.
10460 * Makefile (libpthread-routines): Remove pthread_cond_wait,
10461 pthread_cond_timedwait, pthread_cond_signal, and
10462 pthread_cond_broadcast. Add old_pthread_cond_init,
10463 old_pthread_cond_destroy, old_pthread_cond_wait,
10464 old_pthread_cond_timedwait, old_pthread_cond_signal, and
10465 old_pthread_cond_broadcast.
10466 * old_pthread_cond_broadcast.c: New file.
10467 * old_pthread_cond_destroy.c: New file.
10468 * old_pthread_cond_init.c: New file.
10469 * old_pthread_cond_signal.c: New file.
10470 * old_pthread_cond_timedwait.c: New file.
10471 * old_pthread_cond_wait.c: New file.
10472 * pthreadP.h: Add prototypes for the compatibility interfaces.
10474 * pthread_cond_destroy.c: Don't include <errno.h>.
10476 2003-01-01 Ulrich Drepper <drepper@redhat.com>
10478 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
10479 unnecessary zero offset when addressing MUTEX.
10481 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10483 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
10485 * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
10486 for __register_atfork.
10488 2002-12-31 Jakub Jelinek <jakub@redhat.com>
10490 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
10491 instead of ASSEMBLER test macro.
10493 * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
10494 __libc_current_sigrtmax): Add libc_hidden_def.
10496 * sysdeps/pthread/list.h: Remove assert.h include.
10498 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10500 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
10501 __pthread_initialize_minimal_internal not
10502 __pthread_initialize_minimal.
10504 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10506 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
10507 __pthread_initialize_minimal as hidden.
10509 * init.c (__pthread_initialize_minimal_internal): Don't mark as
10512 2002-12-31 Jakub Jelinek <jakub@redhat.com>
10514 * Makefile ($(inst_libdir)/libpthread.so): Depend on
10515 $(common-objpfx)format.lds, include that into the output script.
10517 (extra-B-pthread.so): Change linuxthreads/ into nptl/.
10519 2002-12-28 Andreas Jaeger <aj@suse.de>
10521 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
10522 nsec resolution changes.
10523 (xstat64_conv): Likewise.
10524 (xstat32_conv): Likewise.
10525 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
10526 struct kernel_stat.
10527 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
10528 structs stat and stat64.
10529 * time/time.h (__timespec_defined): Define for __USE_MISC.
10530 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
10532 2002-12-30 Jakub Jelinek <jakub@redhat.com>
10534 * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
10536 (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
10537 (pthread_exit): Use strong_alias to avoid warnings.
10538 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
10539 and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
10540 ptr___pthread_attr_init_2_*.
10541 * init.c (pthread_functions): Adjust.
10543 2002-12-29 Ulrich Drepper <drepper@redhat.com>
10545 * forward.c: Make all functions available by default again. It
10546 caused too much trouble.
10548 * pt-siglongjmp.c: Removed.
10550 2002-12-28 Jakub Jelinek <jakub@redhat.com>
10552 * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
10553 (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
10554 * sysdeps/i386/Makefile: New file.
10555 * sysdeps/i386/tcb-offsets.sym: New file.
10556 * sysdeps/pthread/tcb-offsets.h: New file.
10557 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
10558 Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
10560 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
10561 __register_atfork...
10562 (GLIBC_2.3.2): ...here.
10564 2002-12-28 Ulrich Drepper <drepper@redhat.com>
10566 * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
10567 pthread_attr_setstackaddr with __attribute_deprecated__.
10569 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10571 * pt-system.c (system): Remove cancellation handling.
10572 * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
10573 cancellation routines.
10575 2002-12-28 Ulrich Drepper <drepper@redhat.com>
10577 * descr.h: Include <dl-sysdep.h>.
10578 (struct pthread): Move header.data.list to the back of the struct.
10579 * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
10580 (MULTIPLE_THREADS_OFFSET): Adjust offset.
10581 (SYSINFO_OFFSEET): Likewise.
10583 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10585 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
10587 (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
10588 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
10589 DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
10590 (USE_DL_SYSINFO): Undef.
10592 2002-12-22 Jakub Jelinek <jakub@redhat.com>
10594 * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
10595 $(common-objpfx)libc.so.
10596 * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
10597 it is bigger than pipe buffer size even on arches with bigger
10599 (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
10601 2002-12-25 Ulrich Drepper <drepper@redhat.com>
10603 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
10604 correct errno access for case that USE___THREAD is not defined.
10606 2002-12-24 Ulrich Drepper <drepper@redhat.com>
10608 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
10609 Patch by Marijn Ros <marijn@mad.scientist.com>.
10611 2002-12-22 Roland McGrath <roland@redhat.com>
10613 * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
10615 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10617 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
10619 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10621 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
10622 NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
10623 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
10625 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
10627 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
10628 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
10629 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
10630 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
10631 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
10632 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
10633 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
10634 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
10636 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
10638 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
10640 * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
10642 * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
10644 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
10645 that sysinfo is properly initialized.
10646 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
10647 to 1 only for ld.so.
10649 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
10650 RTLD_CORRECT_DYNAMIC_WEAK.
10652 2002-12-19 Jakub Jelinek <jakub@redhat.com>
10654 * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
10655 Use return 0 as 6th argument to FORWARD4.
10656 * pthread_equal.c: Include pthreadP.h instead of pthread.h.
10658 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10660 * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
10661 * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
10662 Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
10663 (INIT_SYSINFO): New #define.
10664 (TLS_TP_INIT): Use INIT_SYSINFO.
10665 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
10666 At test to make sure SYSINFO_OFFSET value is correct.
10667 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
10669 2002-12-18 Jakub Jelinek <jakub@redhat.com>
10671 * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
10672 * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
10673 * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
10674 [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
10675 __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
10676 __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
10677 __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
10679 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10681 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
10682 macro instead of using int $0x80 directly.
10684 * sysdeps/pthread/bits/stdio-lock.h: New file.
10685 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
10686 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
10687 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
10688 * Makefile (routines): Add libc-lowlevelmutex.
10690 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
10691 __i686.get_pc_thunk.dx.
10693 2002-12-17 Jakub Jelinek <jakub@redhat.com>
10695 * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
10696 (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
10697 ($(objpfx)tst-cancel-wrappers.out): New rule.
10698 * tst-cancel-wrappers.sh: New test.
10699 * tst-locale1.c: Include signal.h.
10700 (uselocale): Test static linking of __libc_current_sigrt*.
10702 2002-12-17 Ulrich Drepper <drepper@redhat.com>
10704 * Makefile (tests): Add tst-cancel6.
10705 * tst-cancel6.c: New file
10707 2002-12-17 Jakub Jelinek <jakub@redhat.com>
10709 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
10710 Define meaningfully for assembler as well.
10711 * pthreadP.h (struct pthread_functions): Remove
10712 ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
10713 and ptr_pthread_attr_init_2_1 fields.
10714 * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
10715 and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
10716 * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
10717 (FORWARD3): Define using FORWARD4.
10718 (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
10720 * pt-system.c: Remove duplicate stdlib.h include.
10722 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10724 * sem_init.c: Define sem_init@GLIBC_2.0.
10725 * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
10726 * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
10728 * flockfile.c: Moved to...
10729 * sysdeps/pthread/flockfile.c: ...here. New file.
10730 * funlockfile.c: Moved to...
10731 * sysdeps/pthread/funlockfile.c: ...here. New file.
10732 * ftrylockfile.c: Moved to...
10733 * sysdeps/pthread/ftrylockfile.c: ...here. New file.
10735 2002-12-16 Jakub Jelinek <jakub@redhat.com>
10737 * libc-cancellation.c: Guard both function with
10738 #if !defined NOT_IN_libc.
10739 * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
10740 automatically provided pthread wrappers.
10741 * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
10742 CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
10744 * pt-open.c: Removed.
10745 * pt-fcntl.c: Removed.
10746 * pt-fsync.c: Removed.
10747 * pt-lseek.c: Removed.
10748 * pt-msgrcv.c: Removed.
10749 * pt-msgsnd.c: Removed.
10750 * pt-msync.c: Removed.
10751 * pt-nanosleep.c: Removed.
10752 * pt-open64.c: Removed.
10753 * pt-pause.c: Removed.
10754 * pt-pread.c: Removed.
10755 * pt-pread64.c: Removed.
10756 * pt-pwrite.c: Removed.
10757 * pt-pwrite64.c: Removed.
10758 * pt-read.c: Removed.
10759 * pt-recv.c: Removed.
10760 * pt-recvfrom.c: Removed.
10761 * pt-recvmsg.c: Removed.
10762 * pt-send.c: Removed.
10763 * pt-sendto.c: Removed.
10764 * pt-sigtimedwait.c: Removed.
10765 * pt-sigwait.c: Removed.
10766 * pt-wait.c: Removed.
10767 * pt-waitpid.c: Removed.
10768 * pt-write.c: Removed.
10769 * pt-accept.c: Removed.
10770 * pt-close.c: Removed.
10771 * pt-connect.c: Removed.
10772 * pt-lseek64.c: Removed.
10773 * pt-sendmsg.c: Removed.
10774 * pt-tcdrain.c: Removed.
10776 2002-12-15 Ulrich Drepper <drepper@redhat.com>
10778 * init.c (__pthread_initialize_minimal_internal): Renamed from
10779 __pthread_initialize_minimal. Make old name an alias. This
10780 converts a normal relocation into a relative relocation.
10782 * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
10784 * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
10785 readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
10786 * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
10787 pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
10788 pt-sigwaitinfo, pt-waitid, and pt-writev.
10789 * pt-creat.c: Removed.
10790 * pt-poll.c: Removed.
10791 * pt-pselect.c: Removed.
10792 * pt-readv.c: Removed.
10793 * pt-select.c: Removed.
10794 * pt-sigpause.c: Removed.
10795 * pt-sigsuspend.c: Removed.
10796 * pt-sigwaitinfo.c: Removed.
10797 * pt-waitid.c: Removed.
10798 * pt-writev.c: Removed.
10800 * init.c (pthread_functions): New variable.
10801 (__pthread_initialize_minimal): Pass pointer to pthread_functions
10802 (or NULL) to __libc_pthread_init.
10803 * forward.c: Rewrite to use __libc:pthread_functions array to get
10804 function addresses.
10805 * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
10807 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
10808 Take new parameter. Copy content of variable pointed to by it
10809 to __libc_pthread_init.
10811 * pthreadP.h (struct pthread_functions): New type.
10812 (__libc_pthread_init): Declare.
10814 * pthread_attr_destroy.c: Add namespace protected alias.
10815 * pthread_attr_getdetachstate.c: Likewise.
10816 * pthread_attr_getinheritsched.c: Likewise.
10817 * pthread_attr_getschedparam.c: Likewise.
10818 * pthread_attr_getschedpolicy.c: Likewise.
10819 * pthread_attr_getscope.c: Likewise.
10820 * pthread_attr_setdetachstate.c: Likewise.
10821 * pthread_attr_setinheritsched.c: Likewise.
10822 * pthread_attr_setschedparam.c: Likewise.
10823 * pthread_attr_setschedpolicy.c: Likewise.
10824 * pthread_attr_setscope.c: Likewise.
10825 * pthread_cond_broadcast.c: Likewise.
10826 * pthread_cond_destroy.c: Likewise.
10827 * pthread_cond_init.c: Likewise.
10828 * pthread_cond_signal.c: Likewise.
10829 * pthread_cond_wait.c: Likewise.
10830 * pthread_condattr_destroy.c: Likewise.
10831 * pthread_condattr_init.c: Likewise.
10832 * pthread_equal.c: Likewise.
10833 * pthread_exit.c: Likewise.
10834 * pthread_getschedparam.c: Likewise.
10835 * pthread_self.c: Likewise.
10836 * pthread_setcancelstate.c: Likewise.
10837 * pthread_setschedparam.c: Likewise.
10838 * pthread_mutex_destroy.c: Likewise.
10839 * pthread_mutex_init.c: Likewise.
10840 * pthreadP.h: Add prototypes for the aliases.
10842 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
10843 multiple_threads member in correct TCB to 1.
10845 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
10846 SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
10847 member of thread decriptor, otherwise return unconditionally 1.
10849 2002-12-14 Ulrich Drepper <drepper@redhat.com>
10851 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
10852 regular Linux version. Remove file.
10853 * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
10854 * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
10855 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
10856 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
10857 * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
10858 * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
10859 * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
10860 * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
10861 * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
10862 * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
10863 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
10864 * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
10865 * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
10866 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
10867 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
10868 * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
10869 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
10870 * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
10871 * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
10872 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
10873 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
10874 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
10875 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
10876 * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
10877 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
10878 * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
10879 * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
10880 * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
10881 * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
10882 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
10884 2002-12-14 Jakub Jelinek <jakub@redhat.com>
10886 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
10887 * sysdeps/unix/sysv/linux/open.c: Removed.
10888 * sysdeps/unix/sysv/linux/fsync.c: Removed.
10889 * sysdeps/unix/sysv/linux/lseek.c: Removed.
10890 * sysdeps/unix/sysv/linux/msync.c: Removed.
10891 * sysdeps/unix/sysv/linux/read.c: Removed.
10892 * sysdeps/unix/sysv/linux/close.c: Removed.
10893 * sysdeps/unix/sysv/linux/creat.c: Removed.
10894 * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
10895 * sysdeps/unix/sysv/linux/pause.c: Removed.
10896 * sysdeps/unix/sysv/linux/select.c: Removed.
10897 * sysdeps/unix/sysv/linux/write.c: Removed.
10899 2002-12-14 Ulrich Drepper <drepper@redhat.com>
10901 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
10902 element in TCB to see whether locking is needed.
10904 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
10905 MULTIPLE_THREADS_OFFSET value is correct.
10907 * sysdeps/unix/sysv/linux/close.c: New file.
10908 * sysdeps/unix/sysv/linux/connect.S: New file.
10909 * sysdeps/unix/sysv/linux/creat.c: New file.
10910 * sysdeps/unix/sysv/linux/fsync.c: New file.
10911 * sysdeps/unix/sysv/linux/llseek.c: New file.
10912 * sysdeps/unix/sysv/linux/lseek.c: New file.
10913 * sysdeps/unix/sysv/linux/msgrcv.c: New file.
10914 * sysdeps/unix/sysv/linux/msgsnd.c: New file.
10915 * sysdeps/unix/sysv/linux/msync.c: New file.
10916 * sysdeps/unix/sysv/linux/nanosleep.c: New file.
10917 * sysdeps/unix/sysv/linux/open.c: New file.
10918 * sysdeps/unix/sysv/linux/open64.c: New file.
10919 * sysdeps/unix/sysv/linux/pause.c: New file.
10920 * sysdeps/unix/sysv/linux/poll.c: New file.
10921 * sysdeps/unix/sysv/linux/pread.c: New file.
10922 * sysdeps/unix/sysv/linux/pread64.c: New file.
10923 * sysdeps/unix/sysv/linux/pselect.c: New file.
10924 * sysdeps/unix/sysv/linux/pwrite.c: New file.
10925 * sysdeps/unix/sysv/linux/pwrite64.c: New file.
10926 * sysdeps/unix/sysv/linux/readv.c: New file.
10927 * sysdeps/unix/sysv/linux/recv.S: New file.
10928 * sysdeps/unix/sysv/linux/recvfrom.S: New file.
10929 * sysdeps/unix/sysv/linux/recvmsg.S: New file.
10930 * sysdeps/unix/sysv/linux/select.c: New file.
10931 * sysdeps/unix/sysv/linux/send.S: New file.
10932 * sysdeps/unix/sysv/linux/sendmsg.S: New file.
10933 * sysdeps/unix/sysv/linux/sendto.S: New file.
10934 * sysdeps/unix/sysv/linux/sigpause.c: New file.
10935 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
10936 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
10937 * sysdeps/unix/sysv/linux/sigwait.c: New file.
10938 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
10939 * sysdeps/unix/sysv/linux/system.c: New file.
10940 * sysdeps/unix/sysv/linux/tcdrain.c: New file.
10941 * sysdeps/unix/sysv/linux/wait.c: New file.
10942 * sysdeps/unix/sysv/linux/waitid.c: New file.
10943 * sysdeps/unix/sysv/linux/waitpid.c: New file.
10944 * sysdeps/unix/sysv/linux/writev.c: New file.
10945 * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
10947 * pt-readv.c: Fix comment.
10949 2002-12-14 Jakub Jelinek <jakub@redhat.com>
10951 * tst-cleanup1.c: Include stdlib.h.
10953 * tst-cancel5.c: New test.
10954 * Makefile (tests): Add tst-cancel5.
10955 (tst-cancel5): Link against libc.so libpthread.so in that order.
10957 2002-12-13 Ulrich Drepper <drepper@redhat.com>
10959 * forward.c (test_loaded): Prevent recursive calls.
10961 * Makefile (routines): Add libc-cancellation.
10962 * libc-cancellation.c: New file.
10963 * descr.h (struct pthread): Add multiple_threads field.
10964 * allocatestack.c (allocate_stack): Initialize multiple_header field of
10965 new thread descriptor to 1.
10966 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
10967 Initialize multiple_thread field after successful thread creation.
10968 * cancellation.c (__do_cancel): Move to pthreadP.h.
10969 (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
10970 (__pthread_disable_asynccancel): Add internal_function attribute.
10971 * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
10972 * pthread_setcancelstate.c: Likewise.
10973 * pthread_setcanceltype.c: Likewise.
10974 * pthread_exit.c: Likewise.
10975 * pthreadP.h (CANCELLATION_P): Likewise.
10976 (__do_cancel): Define as static inline.
10977 (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
10978 (__libc_enable_asynccancel, __libc_disable_asynccancel): New
10980 * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
10981 fields. Define MULTIPLE_THREADS_OFFSET.
10982 * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
10984 * sysdeps/unix/sysv/linux/accept.S: New file.
10985 * sysdeps/unix/sysv/linux/read.c: New file.
10986 * sysdeps/unix/sysv/linux/write.c: New file.
10987 * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
10988 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
10989 initialization of __libc_locking_needed.
10990 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
10991 __libc_locking_needed, use multiple_threads field in TCB.
10992 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
10994 2002-12-12 Ulrich Drepper <drepper@redhat.com>
10996 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
10998 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
11000 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
11001 access to __libc_locking_needed for PIC.
11003 2002-12-12 Jakub Jelinek <jakub@redhat.com>
11005 * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
11006 declare for libc.so.
11007 (__libc_lock_init, __libc_lock_init_recursive): Change into comma
11009 (__libc_lock_lock): Put into statement expression.
11010 (__libc_lock_unlock): Remove trailing semicolon.
11011 * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
11013 2002-12-12 Roland McGrath <roland@redhat.com>
11015 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
11016 "m" constraint to refer to __libc_locking_needed. Declare it here.
11018 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11020 * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
11021 * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
11022 Initialize __libc_locking_needed.
11023 * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
11024 instead of __register_pthread_fork_handler.
11025 * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
11026 * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
11027 fork-gen with libc_pthread_init.
11028 * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
11029 of __register_pthread_fork_handler.
11030 * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
11031 of __register_pthread_fork_handler.
11032 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
11033 __libc_locking_needed to determine whether lock prefix can be avoided.
11034 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
11036 2002-12-11 Ulrich Drepper <drepper@redhat.com>
11038 * Makefile (tests): Add tst-cleanup1.
11039 * tst-cleanup1.c: New file.
11040 * cancellation.c (__cleanup_thread): Removed.
11041 (__do_cancel): Remove call to __cleanup_thread.
11042 * pthreadP.h: Remove __cleanup_thread prorotype.
11044 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
11045 Remember function and argument even if cancellation handler
11046 function is not available.
11047 (__libc_cleanup_region_end): Execute registered function directly if
11048 pthread functions are not available.
11049 (__libc_cleanup_end): Likewise.
11051 * init.c (__pthread_initialize_minimal): Fix initialization in
11052 static lib by preventing gcc from being too clever.
11054 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11056 * init.c (__pthread_initialize_minimal): Remove unneccesary
11059 * Makefile (tests): We can run tst-locale2 now.
11061 2002-12-09 Ulrich Drepper <drepper@redhat.com>
11063 * Versions: Remove duplicated sigwait entry.
11065 2002-12-08 Ulrich Drepper <drepper@redhat.com>
11067 * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
11070 * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
11072 * pthreadP.h: Declare __pthread_enable_asynccancel and
11073 __pthread_disable_asynccancel.
11074 (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
11075 (CANCEL_RESET): Use __pthread_disable_asynccancel.
11076 * cancellation.c (__pthread_enable_asynccancel): New function.
11077 (__pthread_disable_asynccancel): New function.
11078 * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
11079 * pt-close.c: Likewise.
11080 * pt-connect.c: Likewise.
11081 * pt-creat.c: Likewise.
11082 * pt-fcntl.c: Likewise.
11083 * pt-fsync.c: Likewise.
11084 * pt-lseek.c: Likewise.
11085 * pt-lseek64.c: Likewise.
11086 * pt-msgrcv.c: Likewise.
11087 * pt-msgsnd.c: Likewise.
11088 * pt-msync.c: Likewise.
11089 * pt-nanosleep.c: Likewise.
11090 * pt-open.c: Likewise.
11091 * pt-open64.c: Likewise.
11092 * pt-pause.c: Likewise.
11093 * pt-poll.c: Likewise.
11094 * pt-pread.c: Likewise.
11095 * pt-pread64.c: Likewise.
11096 * pt-pselect.c: Likewise.
11097 * pt-pwrite.c: Likewise.
11098 * pt-pwrite64.c: Likewise.
11099 * pt-read.c: Likewise.
11100 * pt-readv.c: Likewise.
11101 * pt-recv.c: Likewise.
11102 * pt-recvfrom.c: Likewise.
11103 * pt-recvmsg.c: Likewise.
11104 * pt-select.c: Likewise.
11105 * pt-send.c: Likewise.
11106 * pt-sendmsg.c: Likewise.
11107 * pt-sendto.c: Likewise.
11108 * pt-sigpause.c: Likewise.
11109 * pt-sigsuspend.c: Likewise.
11110 * pt-sigtimedwait.c: Likewise.
11111 * pt-sigwait.c: Likewise.
11112 * pt-sigwaitinfo.c: Likewise.
11113 * pt-system.c: Likewise.
11114 * pt-tcdrain.c: Likewise.
11115 * pt-wait.c: Likewise.
11116 * pt-waitid.c: Likewise.
11117 * pt-waitpid.c: Likewise.
11118 * pt-write.c: Likewise.
11119 * pt-writev.c: Likewise.
11120 * pthread_join.c: Likewise.
11121 * pthread_timedjoin.c: Likewise.
11123 * pt-sigpause.c (sigsuspend): Call __sigsuspend.
11124 (__xpg_sigpause): New function.
11125 * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
11127 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11129 * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
11131 * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
11132 _GI_pthread_cleanup_pop to pthreadP.h.
11134 * ftrylockfile.c: Use _IO_lock_trylock instead of
11135 pthread_mutex_trylock.
11137 * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
11138 (CANCEL_RESET): Likewise.
11139 (__pthread_setcanceltype_): Declare.
11140 (__pthread_mutex_lock_internal): Declare.
11141 (__pthread_mutex_unlock_internal): Declare.
11142 (__pthread_once_internal): Declare.
11143 (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
11144 (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
11146 * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
11147 and pthread_mutex_unlock.
11148 * pthread_cond_wait.c: Likewise.
11149 * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
11150 * pthread_mutex_unlock.c: Likewise.
11152 * pthread_setcanceltype.c: Add additional alias
11153 __pthread_setcanceltype.
11155 * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
11156 * sem_open.c (sem_open): Likewise.
11157 Use __libc_open, __libc_write, and __libc_close instead of
11158 open, write, and close respectively.
11160 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
11161 Rewrite as statement expression since it must return a value.
11163 * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
11164 * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
11167 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
11168 alias __pthread_once_internal.
11170 * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
11172 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11174 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
11175 * tst-stdio1.c: New file.
11176 * tst-stdio2.c: New file.
11178 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
11180 * Makefile (tests): Comment out tst-locale2 for now.
11181 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
11183 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
11185 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
11186 Use _IO_lock_init instead of explicit assignment.
11188 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
11189 Define __libc_lock_* and __libc_lock_recursive macros with
11190 lowlevellock macros, not pthread mutexes.
11192 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
11193 of pthread_mutex_lock.
11194 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
11195 instead of pthread_mutex_unlock.
11197 2002-12-06 Roland McGrath <roland@redhat.com>
11199 * allocatestack.c (__stack_user): Use uninitialized defn.
11200 * init.c (__pthread_initialize_minimal): Initialize it here.
11202 2002-12-05 Roland McGrath <roland@redhat.com>
11204 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
11206 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
11208 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
11209 missing & here too.
11211 2002-12-05 Ulrich Drepper <drepper@redhat.com>
11213 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
11215 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
11216 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
11217 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
11218 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
11219 for __libc_lock_* macros.
11220 * Makefile (routines): Add libc-lowlevellock.
11222 2002-10-09 Roland McGrath <roland@redhat.com>
11224 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
11225 Under [__PIC__], call the function via the pointer fetched for
11226 comparison rather than a call by name that uses the PLT.
11227 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
11228 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
11229 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
11230 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
11231 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
11233 2002-12-04 Roland McGrath <roland@redhat.com>
11235 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
11237 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
11238 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
11240 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
11242 2002-12-04 Ulrich Drepper <drepper@redhat.com>
11244 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
11245 a completely opaque, non-integer type.
11246 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
11248 2002-12-05 Jakub Jelinek <jakub@redhat.com>
11250 * sysdeps/i386/tls.h: Include stdlib.h.
11251 * sysdeps/x86_64/tls.h: Likewise.
11253 2002-12-04 Ulrich Drepper <drepper@redhat.com>
11255 * Makefile (tests): Add tst-locale2.
11256 (tests-static): Likewise.
11257 * tst-locale2.c: New file.
11259 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
11260 volatile and add memory clobbers to lock operations.
11262 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11264 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
11265 * sysdeps/i386/i486/bits/atomic.h: New file.
11266 * sysdeps/i386/i586/bits/atomic.h: New file.
11267 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
11268 include i486 version.
11269 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
11270 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
11271 Patch by Marijn Ros <marijn@mad.scientist.com>.
11273 * allocatestack.c (get_cached_stack): Don't crash if we first
11274 found a stack with a larger size then needed.
11275 Reported by Hui Huang <hui.huang@sun.com>.
11277 * Makefile (tests): Add tst-sysconf.
11278 * tst-sysconf.c: New file.
11280 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
11281 PTHREAD_THREADS_MAX.
11283 2002-12-02 Roland McGrath <roland@redhat.com>
11285 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
11286 Declare using hidden_proto instead of attribute_hidden, so there are
11287 non-.hidden static symbols for gdb to find.
11288 (__pthread_keys): Likewise.
11289 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
11290 * allocatestack.c (__stack_user): Likewise.
11291 * pthread_create.c (__pthread_keys): Likewise.
11292 (__nptl_threads_events, __nptl_last_event): Make these static instead
11294 * pthread_key_create.c (__pthread_pthread_keys_max,
11295 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
11297 2002-12-02 Ulrich Drepper <drepper@redhat.com>
11299 * Makefile (tests): Add tst-locale1. If buid-static is yes link
11301 * tst-locale1.c: New file.
11303 * pthread_cond_timedwait.c: Include <stdlib.h>.
11305 * Makefile (tests): Add tst-fork2 and tst-fork3.
11306 * tst-fork2.c: New file.
11307 * tst-fork3.c: New file.
11309 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11311 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
11313 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
11314 require it to 200112L.
11316 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
11317 instruction only if HAVE_CMOV is defined.
11318 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
11320 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
11322 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
11324 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
11326 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
11328 2002-11-27 Ulrich Drepper <drepper@redhat.com>
11330 * sysdeps/x86_64/bits/atomic.h: New file.
11332 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
11335 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
11336 possible since gettid cannot fail.
11338 * sysdeps/x86_64/pthreaddef.h: New file.
11340 * sysdeps/i386/pthreaddef.h (gettid): Removed.
11342 * sysdeps/x86_64/pthread_spin_init.c: New file.
11343 * sysdeps/x86_64/pthread_spin_lock.c: New file.
11344 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
11345 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
11347 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
11348 Add missing lock prefix. Minute optimization.
11350 * tst-spin2.c (main): Also check successful trylock call.
11352 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
11353 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
11355 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
11356 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
11358 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
11359 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
11360 value in case of an error. Add support for INTERNAL_SYSCALL.
11362 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
11363 value in case of an error.
11365 * sysdeps/x86_64/tls.h: New file.
11367 2002-11-26 Ulrich Drepper <drepper@redhat.com>
11369 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
11370 takes the array member name and the index as parameters.
11371 (THREAD_SETMEM_NC): Likewise.
11372 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
11373 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
11376 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
11377 to decide which code to use.
11378 (THREAD_SETMEM_NC): Likewise.
11380 * allocatestack.c (queue_stack): Don't remove stack from list here.
11381 Do it in the caller. Correct condition to prematurely terminate
11382 loop to free stacks.
11383 (__deallocate_stack): Remove stack from list here.
11385 2002-11-26 Ulrich Drepper <drepper@redhat.com>
11387 * Makefile (tests): Add tst-stack1.
11388 * tst-stack1.c: New file.
11390 * allocatestack.c (allocate_stack): Initialize the TCB on a user
11393 * pthread_attr_getstack.c: Return bottom of the thread area.
11395 2002-11-25 Ulrich Drepper <drepper@redhat.com>
11397 * Makefile (libpthread-routines): Add pt-allocrtsig and
11398 pthread_kill_other_threads.
11399 * pt-allocrtsig.c: New file.
11400 * pthread_kill_other_threads.c: New file.
11401 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
11402 all three functions.
11403 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
11405 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
11406 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
11407 and __libc_allocate_rtsig_private.
11408 * Versions (libpthread): Export pthread_kill_other_threads_np,
11409 __libc_current_sigrtmin, and __libc_current_sigrtmax.
11411 2002-11-24 Ulrich Drepper <drepper@redhat.com>
11413 * allocatestack.c (allocate_stack): stackaddr in attribute points to
11414 the end of the stack. Adjust computations.
11415 When mprotect call fails dequeue stack and free it.
11416 * pthread_attr_setstack.c: Store top of the stack in stackaddr
11418 * pthread_getattr_np.c: Likewise.
11420 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
11423 2002-11-23 Ulrich Drepper <drepper@redhat.com>
11425 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
11426 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
11428 2002-11-22 Ulrich Drepper <drepper@redhat.com>
11430 * pthread_getspecific.c: Optimize access to first 2nd-level array.
11431 * pthread_setspecific.c: Likewise.
11433 2002-11-21 Ulrich Drepper <drepper@redhat.com>
11435 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
11436 definitions. Get them from the official place.
11437 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
11439 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
11440 Use new CLONE_ flags in clone() calls.
11442 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
11443 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
11445 * Versions: Add pthread_* functions for libc.
11446 * forward.c: New file.
11448 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
11450 * herrno.c: New file.
11453 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
11454 sem_trywait, and sem_timedwait. Add herrno and res.
11455 * sem_init.c: Don't initialize lock and waiters members.
11456 * sem_open.c: Likewise.
11457 * sem_post.c: Removed.
11458 * sem_wait.c: Removed.
11459 * sem_trywait.c: Removed.
11460 * sem_timedwait.c: Removed.
11461 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
11462 Includes full implementations of sem_post, sem_wait, sem_trywait,
11464 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
11465 for new implementation.
11466 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
11467 and waiters fields.
11469 * tst-sem3.c: Improve error message.
11470 * tst-signal3.c: Likewise.
11472 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
11473 to tell the kernel about the termination futex and to initialize tid
11474 member. Don't initialize main_thread.
11475 * descr.h (struct pthread): Remove main_thread member.
11476 * cancelllation.c (__do_cancel): Remove code handling main thread.
11477 The main thread is not special anymore.
11479 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
11480 size of the stacks to stack_cache_actsize.
11482 * pt-readv.c: Add missing "defined".
11483 * pt-sigwait.c: Likewise.
11484 * pt-writev.c: Likewise.
11486 2002-11-09 Ulrich Drepper <drepper@redhat.com>
11488 * Versions: Export __connect from libpthread.
11489 Patch by Luca Barbieri <ldb@ldb.ods.org>.
11491 * Makefile (libpthread-routines): Add pt-raise.
11492 * sysdeps/unix/sysv/linux/raise.c: New file.
11493 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
11494 * sysdeps/generic/pt-raise.c: New file.
11496 * pthread_cond_init.c: Initialize all data elements of the condvar
11497 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
11499 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
11500 * pthread_create.c: Likewise.
11502 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
11503 * tst-key1.c: New file.
11504 * tst-key2.c: New file.
11505 * tst-key3.c: New file.
11507 * Versions: Export pthread_detach for version GLIBC_2.0.
11508 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
11510 2002-11-08 Ulrich Drepper <drepper@redhat.com>
11512 * pthread_key_create.c: Terminate search after an unused key was found.
11513 Patch by Luca Barbieri <ldb@ldb.ods.org>.
11515 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
11516 Patch by Luca Barbieri <ldb@ldb.ods.org>.
11518 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11520 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
11521 dynamic lookup for errno in PIC.
11523 * allocatestack.c (get_cached_stack): Rearrange code slightly to
11524 release the stack lock as soon as possible.
11525 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
11526 the static TLS block.
11527 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
11529 * cancellation.c: Renamed from cancelation.c.
11530 * Makefile: Adjust accordingly.
11531 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
11532 * cleanup_defer.c: Use CANCELLATION_P.
11533 * pthread_testcancel.c: Likewise.
11534 * descr.h: Fix spelling in comments.
11535 * init.c: Likewise.
11536 * pthread_getattr_np.c: Likewise.
11537 * pthread_getschedparam.c: Likewise.
11538 * pthread_setschedparam.c: Likewise.
11539 * Versions: Likewise.
11541 * pt-pselect.c: New file.
11542 * Makefile (libpthread-routines): Add pt-pselect.
11543 * Versions: Add pselect.
11545 * tst-cancel4.c: New file.
11546 * Makefile (tests): Add tst-cancel4.
11548 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11550 * pthread_mutex_lock.c: Always record lock ownership.
11551 * pthread_mutex_timedlock.c: Likewise.
11552 * pthread_mutex_trylock.c: Likewise.
11554 * pt-readv.c: New file.
11555 * pt-writev.c: New file.
11556 * pt-creat.c: New file.
11557 * pt-msgrcv.c: New file.
11558 * pt-msgsnd.c: New file.
11559 * pt-poll.c: New file.
11560 * pt-select.c: New file.
11561 * pt-sigpause.c: New file.
11562 * pt-sigsuspend.c: New file.
11563 * pt-sigwait.c: New file.
11564 * pt-sigwaitinfo.c: New file.
11565 * pt-waitid.c: New file.
11566 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
11567 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
11568 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
11569 * Versions: Add all the new functions.
11571 * tst-exit1.c: New file.
11572 * Makefile (tests): Add tst-exit1.
11574 * sem_timedwait.c: Minor optimization for more optimal fastpath.
11576 2002-10-08 Ulrich Drepper <drepper@redhat.com>
11578 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
11580 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
11581 call. pthread_join is an official cancellation point.
11582 * pthread_timedjoin.c: Likewise.
11584 * pthread_cond_wait.c: Revert order in which internal lock are dropped
11585 and the condvar's mutex are retrieved.
11586 * pthread_cond_timedwait.c: Likewise.
11587 Reported by dice@saros.East.Sun.COM.
11589 2002-10-07 Ulrich Drepper <drepper@redhat.com>
11591 * pthreadP.h: Cut out all type definitions and move them...
11592 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
11593 * pthreadP.h: Include <internaltypes.h>.
11595 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
11596 performance tweaks.
11598 * sem_trywait.c: Shuffle #includes around to get right order.
11599 * sem_timedwait.c: Likewise.
11600 * sem_post.c: Likewise.
11601 * sem_wait.c: Likewise.
11603 * nptl 0.3 released.
11605 * Makefile (tests): Add tst-signal3.
11606 * tst-signal3.c: New file.
11608 2002-10-05 Ulrich Drepper <drepper@redhat.com>
11610 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
11611 the asms modify the sem object.
11612 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
11614 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
11615 the actual members.
11616 * pthreadP.h (struct sem): New type. Actual semaphore type.
11617 * semaphoreP.h: Include pthreadP.h.
11618 * sem_getvalue.c: Adjust to sem_t change.
11619 * sem_init.c: Likewise.
11620 * sem_open.c: Likewise.
11621 * sem_post.c: Likewise.
11622 * sem_timedwait.c: Likewise.
11623 * sem_trywait.c: Likewise.
11624 * sem_wait.c: Likewise.
11626 2002-10-04 Ulrich Drepper <drepper@redhat.com>
11628 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
11629 * tst-basic2.c: New file.
11630 * tst-exec1.c: New file.
11631 * tst-exec2.c: New file.
11632 * tst-exec3.c: New file.
11634 * tst-fork1.c: Remove extra */.
11636 * nptl 0.2 released. The API for IA-32 is complete.