.
[kopensolaris-gnu/glibc.git] / nptl / ChangeLog
1 2006-01-19  Ulrich Drepper  <drepper@redhat.com>
2
3         * tst-cancel4.c: Test ppoll.
4
5 2006-01-18  Andreas Jaeger  <aj@suse.de>
6
7         [BZ #2167]
8         * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
9         (pthread_mutex_t): Follow changes for other archs.  Based on patch
10         by Jim Gifford <patches@jg555.com>.
11
12 2006-01-13  Richard Henderson  <rth@redhat.com>
13
14         * sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private.
15
16 2006-01-10  Roland McGrath  <roland@redhat.com>
17
18         * sysdeps/alpha/jmpbuf-unwind.h: File moved to main source tree.
19         * sysdeps/i386/jmpbuf-unwind.h: Likewise.
20         * sysdeps/mips/jmpbuf-unwind.h: Likewise.
21         * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
22         * sysdeps/s390/jmpbuf-unwind.h: Likewise.
23         * sysdeps/sh/jmpbuf-unwind.h: Likewise.
24         * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
25         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
26         * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
27         * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
28
29 2006-01-09  Roland McGrath  <roland@redhat.com>
30
31         * tst-initializers1-c89.c: New file.
32         * tst-initializers1-c99.c: New file.
33         * tst-initializers1-gnu89.c: New file.
34         * tst-initializers1-gnu99.c: New file.
35         * Makefile (tests): Add them.
36         (CFLAGS-tst-initializers1-c89.c): New variable.
37         (CFLAGS-tst-initializers1-c99.c): New variable.
38         (CFLAGS-tst-initializers1-gnu89.c): New variable.
39         (CFLAGS-tst-initializers1-gnu99.c): New variable.
40
41         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
42         Use __extension__ on anonymous union definition.
43         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
44         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
45         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
46         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
47         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
48
49 2006-01-08  Jakub Jelinek  <jakub@redhat.com>
50
51         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
52         Don't give the union a name because it changes the mangled name.
53         Instead name the struct for __data.
54         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_mutex_t):
55         Likewise.
56         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_mutex_t):
57         Likewise.
58
59 2006-01-09  Jakub Jelinek  <jakub@redhat.com>
60
61         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Add
62         stack bias to mc_ftp field.
63
64 2006-01-07  Ulrich Drepper  <drepper@redhat.com>
65
66         * sysdeps/pthread/aio_misc.h (AIO_MISC_WAIT): Work around gcc
67         being too clever and reloading the futex value where it shouldn't.
68
69 2006-01-06  Ulrich Drepper  <drepper@redhat.com>
70
71         * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX): Use
72         correct type.
73
74 2006-01-06  Jakub Jelinek  <jakub@redhat.com>
75
76         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
77         Add cfi directives.
78
79 2006-01-06  Ulrich Drepper  <drepper@redhat.com>
80
81         * sysdeps/ia64/tls.h (tcbhead_t): Rename private member to __private.
82         * sysdeps/ia64/tcb-offsets.sym: Adjust for private->__private
83         rename in tcbhead_t.
84
85         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
86         Don't give the union a name because it changes the mangled name.
87         Instead name the struct for __data.
88         * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
89         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
90         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
91         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
92         * pthread_create.c (start_thread): Adjust robust mutex free loop.
93         * descr.h (ENQUEUE_MUTEX, DEQUEUE_MUTEX): Adjust.
94
95 2006-01-05  Ulrich Drepper  <drepper@redhat.com>
96
97         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
98         Return status.
99         (lll_futex_timed_wait): Define.
100         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
101         * sysdeps/pthread/aio_misc.h: New file.
102
103 2006-01-03  Joseph S. Myers  <joseph@codesourcery.com>
104
105         * Makefile ($(objpfx)$(multidir)): Use mkdir -p.
106
107 2006-01-03  Steven Munroe  <sjmunroe@us.ibm.com>
108
109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
110         (PSEUDO): Remove redundant cfi_startproc and cfi_endproc directives.
111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
112
113 2006-01-04  Ulrich Drepper  <drepper@redhat.com>
114
115         * tst-cancel24.cc: Use C headers instead of C++ headers.
116
117 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
118
119         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Remove #error for
120         sparc-linux configured glibc.
121         (lll_futex_wake_unlock): Define to 1 for sparc-linux configured glibc.
122         (__lll_mutex_trylock, __lll_mutex_cond_trylock, __lll_mutex_lock,
123         __lll_mutex_cond_lock, __lll_mutex_timedlock): Use
124         atomic_compare_and_exchange_val_24_acq instead of
125         atomic_compare_and_exchange_val_acq.
126         (lll_mutex_unlock, lll_mutex_unlock_force): Use atomic_exchange_24_rel
127         instead of atomic_exchange_rel.
128         * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: New file.
129         * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c: New
130         file.
131         * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c: New
132         file.
133         * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: New file.
134         * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: New file.
135         * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: New file.
136         * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: New file.
137         * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: New file.
138         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
139         New file.
140         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
141         New file.
142         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: New file.
143         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: New file.
144         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c: New
145         file.
146         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c: New
147         file.
148         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: New file.
149
150 2006-01-03  Ulrich Drepper  <drepper@redhat.com>
151
152         * sysdeps/pthread/pthread.h [__WORDSIZE==64]: Don't use cast in
153         mutex initializers.
154
155 2006-01-02  Jakub Jelinek  <jakub@redhat.com>
156
157         * sysdeps/sparc/tls.h (tcbhead_t): Add pointer_guard field.
158         (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
159         THREAD_COPY_POINTER_GUARD): Define.
160         * sysdeps/sparc/tcb-offsets.sym (POINTER_GUARD): Define.
161         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Revert 2005-12-27 changes.
162
163 2006-01-01  Ulrich Drepper  <drepper@redhat.com>
164
165         * version.c: Update copyright year.
166
167 2005-12-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
168
169         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Remove explicit
170         .eh_frame section, use cfi_* directives.
171         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Add cfi instrumentation.
172
173 2005-12-30  Ulrich Drepper  <drepper@redhat.com>
174
175         * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Undo last change for
176         now.
177
178 2005-12-29  Ulrich Drepper  <drepper@redhat.com>
179
180         * sysdeps/pthread/sigaction.c: Removed.
181         * sigaction.c: New file.
182         * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-sigaction.c.
183
184 2005-12-28  Ulrich Drepper  <drepper@redhat.com>
185
186         * Makefile (tests): Add tst-signal7.
187         * tst-signal7.c: New file.
188
189 2005-12-27  Roland McGrath  <roland@redhat.com>
190
191         * sysdeps/x86_64/jmpbuf-unwind.h (_jmpbuf_sp): New inline function.
192         (_JMPBUF_UNWINDS_ADJ): Use it, to PTR_DEMANGLE before comparison.
193         * sysdeps/alpha/jmpbuf-unwind.h: Likewise.
194         * sysdeps/i386/jmpbuf-unwind.h: Likewise.
195         * sysdeps/mips/jmpbuf-unwind.h: Likewise.
196         * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
197         * sysdeps/s390/jmpbuf-unwind.h: Likewise.
198         * sysdeps/sh/jmpbuf-unwind.h: Likewise.
199         * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
200         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
201         * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
202
203 2005-12-27  Jakub Jelinek  <jakub@redhat.com>
204
205         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Add __next
206         and __prev field to pthread_mutex_t.
207         * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
208         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
209         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
210         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
211         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Add __next field
212         to pthread_mutex_t.
213
214 2005-12-26  Ulrich Drepper  <drepper@redhat.com>
215
216         * pthreadP.h: Define PTHREAD_MUTEX_ROBUST_PRIVATE_NP,
217         PTHREAD_MUTEX_ROBUST_PRIVATE_RECURSIVE_NP,
218         PTHREAD_MUTEX_ROBUST_PRIVATE_ERRORCHECK_NP,
219         PTHREAD_MUTEX_ROBUST_PRIVATE_ADAPTIVE_NP,
220         PTHREAD_MUTEXATTR_FLAG_ROBUST, PTHREAD_MUTEXATTR_FLAG_PSHARED,
221         and PTHREAD_MUTEXATTR_FLAG_BITS.
222         * descr.h (struct pthread): Add robust_list field and define
223         ENQUEUE_MUTEX and DEQUEUE_MUTEX macros.
224         * pthread_mutexattr_getrobust.c: New file.
225         * pthread_mutexattr_setrobust.c: New file.
226         * pthread_mutex_consistent.c: New file.
227         * sysdeps/pthread/pthread.h: Declare pthread_mutexattr_getrobust,
228         pthread_mutexattr_setrobust, and pthread_mutex_consistent.
229         Define PTHREAD_MUTEX_STALLED_NP and PTHREAD_MUTEX_ROBUST_NP.
230         Adjust pthread_mutex_t initializers.
231         * nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Add __next
232         field to pthread_mutex_t.
233         * nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Add __next
234         and __prev field to pthread_mutex_t.
235         * Versions [GLIBC_2.4]: Export pthread_mutexattr_getrobust_np,
236         pthread_mutexattr_setrobust_np, and pthread_mutex_consistent_np.
237         * pthread_mutexattr_getpshared.c: Use PTHREAD_MUTEXATTR_FLAG_PSHARED
238         and PTHREAD_MUTEXATTR_FLAG_BITS macros instead of magic numbers.
239         * pthread_mutexattr_gettype.c: Likewise.
240         * pthread_mutexattr_setpshared.c: Likewise.
241         * pthread_mutexattr_settype.c: Likewise.
242         * pthread_mutex_init.c: Reject robust+pshared attribute for now.
243         Initialize mutex kind according to robust flag.
244         * pthread_mutex_lock.c: Implement local robust mutex.
245         * pthread_mutex_timedlock.c: Likewise.
246         * pthread_mutex_trylock.c: Likewise.
247         * pthread_mutex_unlock.c: Likewise.
248         * pthread_create.c (start_thread): Mark robust mutexes which remained
249         locked as dead.
250         * tst-robust1.c: New file.
251         * tst-robust2.c: New file.
252         * tst-robust3.c: New file.
253         * tst-robust4.c: New file.
254         * tst-robust5.c: New file.
255         * tst-robust6.c: New file.
256         * tst-robust7.c: New file.
257         * Makefile (libpthread-routines): Add pthread_mutexattr_getrobust,
258         pthread_mutexattr_setrobust, and pthread_mutex_consistent.
259         (tests): Add tst-robust1, tst-robust2, tst-robust3, tst-robust4,
260         tst-robust5, tst-robust6, and tst-robust7.
261
262         * tst-typesizes.c: New file.
263         * Makefile (tests): Add tst-typesizes.
264
265         * tst-once3.c: More debug output.
266
267 2005-12-24  Ulrich Drepper  <drepper@redhat.com>
268
269         * pthread_mutex_trylock.c (__pthread_mutex_trylock): Add break
270         missing after last change.
271
272         * version.c: Update copyright year.
273
274 2005-12-23  Ulrich Drepper  <drepper@redhat.com>
275
276         * pthread_mutex_destroy.c: Set mutex type to an invalid value.
277         * pthread_mutex_lock.c: Return EINVAL for invalid mutex type.
278         * pthread_mutex_trylock.c: Likewise.
279         * pthread_mutex_timedlock.c: Likewise.
280         * pthread_mutex_unlock.c: Likewise.
281
282 2005-12-22  Roland McGrath  <roland@redhat.com>
283
284         * sysdeps/pthread/sigaction.c: Use "" instead of <> to include self,
285         so that #include_next's search location is not reset to the -I..
286         directory where <nptl/...> can be found.
287
288 2005-12-22  Ulrich Drepper  <drepper@redhat.com>
289
290         [BZ #1913]
291         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
292         Fix unwind info.  Remove useless branch prediction prefix.
293         * tst-cancel24.cc: New file.
294         * Makefile: Add rules to build and run tst-cancel24.
295
296 2005-12-21  Roland McGrath  <roland@redhat.com>
297
298         * libc-cancellation.c: Use <> rather than "" #includes.
299         * pt-cleanup.c: Likewise.
300         * pthread_create.c: Likewise.
301         * pthread_join.c: Likewise.
302         * pthread_timedjoin.c: Likewise.
303         * pthread_tryjoin.c: Likewise.
304         * sysdeps/unix/sysv/linux/libc_pthread_init.c: Likewise.
305         * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
306         * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
307         * unwind.c: Likewise.
308
309 2005-12-19  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
310
311         * sysdeps/sh/tcb-offsets.sym: Add POINTER_GUARD.
312         * sysdeps/sh/tls.h (tcbhead_t): Remove private and add pointer_guard.
313         (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
314         THREAD_COPY_POINTER_GUARD): Define.
315
316 2005-12-19  Jakub Jelinek  <jakub@redhat.com>
317
318         * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): Make room for 2 uintptr_t's
319         rather than one.
320         (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
321         THREAD_COPY_POINTER_GUARD): Define.
322         * sysdeps/powerpc/tcb-offsets.sym (POINTER_GUARD): Add.
323         * sysdeps/powerpc/tls.h (tcbhead_t): Add pointer_guard field.
324         (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
325         THREAD_COPY_POINTER_GUARD): Define.
326         * sysdeps/s390/tcb-offsets.sym (STACK_GUARD): Add.
327         * sysdeps/s390/tls.h (THREAD_GET_POINTER_GUARD,
328         THREAD_SET_POINTER_GUARD, THREAD_COPY_POINTER_GUARD): Define.
329         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S (__ia64_longjmp):
330         Use PTR_DEMANGLE for B0 if defined.
331
332 2005-12-17  Ulrich Drepper  <drepper@redhat.com>
333
334         * pthread_create.c (__pthread_create_2_1): Use
335         THREAD_COPY_POINTER_GUARD if available.
336         * sysdeps/i386/tcb-offsets.sym: Add POINTER_GUARD.
337         * sysdeps/x86_64/tcb-offsets.sym: Likewise.
338         * sysdeps/i386/tls.h (tcbhead_t): Add pointer_guard.
339         Define THREAD_SET_POINTER_GUARD and THREAD_COPY_POINTER_GUARD.
340         * sysdeps/x86_64/tls.h: Likewise.
341
342 2005-12-15  Roland McGrath  <roland@redhat.com>
343
344         * sysdeps/unix/sysv/linux/mq_notify.c: Don't use sysdeps/generic.
345
346 2005-12-13  Ulrich Drepper  <drepper@redhat.com>
347
348         * sysdeps/pthread/sigfillset.c: Adjust for files moved out of
349         sysdeps/generic.
350         * errno-loc.c: New file.
351
352 2005-12-12  Roland McGrath  <roland@redhat.com>
353
354         * init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
355         adjustments before choosing stack size.  Update minimum stack size
356         calculation to match allocate_stack change.
357
358 2005-12-12  Ulrich Drepper  <drepper@redhat.com>
359
360         * allocatestack.c (allocate_stack): Don't demand that there is an
361         additional full page available on the stack beside guard, TLS, the
362         minimum stack.
363
364 2005-11-24  Ulrich Drepper  <drepper@redhat.com>
365
366         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
367         (__cleanup_fct_attribute): Use __regparm__ not regparm.
368
369         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: When
370         compiling 32-bit code we must define __cleanup_fct_attribute.
371
372 005-11-24  Jakub Jelinek  <jakub@redhat.com>
373
374         [BZ #1920]
375         * sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
376         __attribute__ instead of __attribute.
377         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
378         (__cleanup_fct_attribute): Likewise.
379
380 2005-11-17  Jakub Jelinek  <jakub@redhat.com>
381
382         * sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
383         a write barrier before writing libgcc_s_getcfa.
384
385 2005-11-06  Ulrich Drepper  <drepper@redhat.com>
386
387         * sysdeps/unix/sysv/linux/configure: Removed.
388
389 2005-11-05  Ulrich Drepper  <drepper@redhat.com>
390
391         * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Remove trace of
392         optional init_array/fini_array support.
393
394 2005-10-24  Roland McGrath  <roland@redhat.com>
395
396         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove unnecessary
397         versioned_symbol use.
398
399 2005-10-16  Roland McGrath  <roland@redhat.com>
400
401         * init.c (__pthread_initialize_minimal_internal): Even when using a
402         compile-time default stack size, apply the minimum that allocate_stack
403         will require, and round up to page size.
404
405 2005-10-10  Daniel Jacobowitz  <dan@codesourcery.com>
406
407         * Makefile ($(test-modules)): Remove static pattern rule.
408
409 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
410             Ulrich Drepper  <drepper@redhat.com>
411
412         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix stack
413         alignment in callback function.
414         * Makefile: Add rules to build and run tst-align3.
415         * tst-align3.c: New file.
416
417 2005-10-03  Jakub Jelinek  <jakub@redhat.com>
418
419         * allocatestack.c (setxid_signal_thread): Add
420         INTERNAL_SYSCALL_DECL (err).
421
422 2005-10-02  Jakub Jelinek  <jakub@redhat.com>
423
424         * allocatestack.c (setxid_signal_thread): Need to use
425         atomic_compare_and_exchange_bool_acq.
426
427 2005-10-01  Ulrich Drepper  <drepper@redhat.com>
428             Jakub Jelinek  <jakub@redhat.com>
429
430         * descr.h: Define SETXID_BIT and SETXID_BITMASK.  Adjust
431         CANCEL_RESTMASK.
432         (struct pthread): Move specific_used field to avoid padding.
433         Add setxid_futex field.
434         * init.c (sighandler_setxid): Reset setxid flag and release the
435         setxid futex.
436         * allocatestack.c (setxid_signal_thread): New function.  Broken
437         out of the bodies of the two loops in __nptl_setxid.  For undetached
438         threads check whether they are exiting and if yes, don't send a signal.
439         (__nptl_setxid): Simplify loops by using setxid_signal_thread.
440         * pthread_create.c (start_thread): For undetached threads, check
441         whether setxid bit is set.  If yes, wait until signal has been
442         processed.
443
444         * allocatestack.c (STACK_VARIABLES): Initialize them.
445         * pthread_create.c (__pthread_create_2_1): Initialize pd.
446
447 2004-09-02  Jakub Jelinek  <jakub@redhat.com>
448
449         * pthread_cond_destroy.c (__pthread_cond_destroy): If there are
450         waiters, awake all waiters on the associated mutex.
451
452 2005-09-22  Roland McGrath  <roland@redhat.com>
453
454         * perf.c [__x86_64__] (HP_TIMING_NOW): New macro (copied from
455         ../sysdeps/x86_64/hp-timing.h).
456
457 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
458
459         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_WAKE_OP,
460         FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
461         (lll_futex_wake_unlock): Define.
462         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_WAKE_OP,
463         FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
464         (lll_futex_wake_unlock): Define.
465         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_WAKE_OP,
466         FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
467         (lll_futex_wake_unlock): Define.
468         * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_WAKE_OP,
469         FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
470         (lll_futex_wake_unlock): Define.
471         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_WAKE_OP,
472         FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
473         (lll_futex_wake_unlock): Define.
474         * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): Use
475         lll_futex_wake_unlock.
476         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
477         (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
478         (__pthread_cond_signal): Use FUTEX_WAKE_OP.
479         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
480         (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
481         (__pthread_cond_signal): Use FUTEX_WAKE_OP.
482
483 2005-09-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
484
485         * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
486         Fix typo in register name.
487
488 2005-08-23  Ulrich Drepper  <drepper@redhat.com>
489
490         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
491         Use __sigfillset.  Document that sigfillset does the right thing wrt
492         to SIGSETXID.
493
494 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
495
496         [BZ #1102]
497         * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER,
498         PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
499         PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
500         PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_RWLOCK_INITIALIZER,
501         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
502         PTHREAD_COND_INITIALIZER): Supply zeros for all fields
503         in the structure.
504         * Makefile (tests): Add tst-initializers1.
505         (CFLAGS-tst-initializers1.c): Set.
506         * tst-initializers1.c: New test.
507
508 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
509
510         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_rwlock_t):
511         Make sure __flags are located at offset 48 from the start of the
512         structure.
513
514 2005-07-02  Roland McGrath  <roland@redhat.com>
515
516         * Makeconfig: Comment fix.
517
518 2005-07-05  Jakub Jelinek  <jakub@redhat.com>
519
520         * descr.h (PTHREAD_STRUCT_END_PADDING): Define.
521         * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): If PTHREAD_STRUCT_END_PADDING
522         is smaller than 8 bytes, increase TLS_PRE_TCB_SIZE by 16 bytes.
523         (THREAD_SYSINFO, THREAD_SELF, DB_THREAD_SELF): Don't assume
524         TLS_PRE_TCB_SIZE is sizeof (struct pthread).
525         (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
526         * sysdeps/ia64/tcb-offsets.sym (PID, TID, MULTIPLE_THREADS_OFFSET):
527         Use TLS_PRE_TCB_SIZE instead of sizeof (struct pthread).
528         * sysdeps/unix/sysv/linux/ia64/createthread.c (TLS_VALUE): Don't
529         assume TLS_PRE_TCB_SIZE is sizeof (struct pthread).
530
531 2005-06-25  Jakub Jelinek  <jakub@redhat.com>
532
533         * sysdeps/i386/tls.h (tcbhead_t): Add stack_guard field.
534         (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
535         * sysdeps/x86_64/tls.h (tcbhead_t): Add sysinfo and stack_guard
536         fields.
537         (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
538         * sysdeps/s390/tls.h (tcbhead_t): Add stack_guard
539         field.  Put in sysinfo field unconditionally.
540         (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
541         * sysdeps/powerpc/tls.h (tcbhead_t): Add stack_guard field.
542         (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
543         * sysdeps/sparc/tls.h (tcbhead_t): Add sysinfo and stack_guard
544         fields.
545         (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
546         * pthread_create.c (__pthread_create_2_1): Use
547         THREAD_COPY_STACK_GUARD macro.
548         * Makefile: Add rules to build and run tst-stackguard1{,-static}
549         tests.
550         * tst-stackguard1.c: New file.
551         * tst-stackguard1-static.c: New file.
552
553 2005-06-14  Alan Modra  <amodra@bigpond.net.au>
554
555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
556         Invoke CGOTSETUP and CGOTRESTORE.
557         (CGOTSETUP, CGOTRESTORE): Define.
558
559 2005-05-29  Richard Henderson  <rth@redhat.com>
560
561         * tst-cancel4.c (WRITE_BUFFER_SIZE): New.
562         (tf_write, tf_writev): Use it.
563         (do_test): Use socketpair instead of pipe.  Set SO_SNDBUF to
564         the system minimum.
565
566 2005-05-23  Jakub Jelinek  <jakub@redhat.com>
567
568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
569         [IS_IN_librt] (CENABLE, CDISABLE): Use JUMPTARGET instead of
570         __librt_*_asynccancel@local.
571
572 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
573
574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Delete
575         all occurrences of JUMPTARGET.  Instead append @local to labels.
576
577 2005-05-20  Jakub Jelinek  <jakub@redhat.com>
578
579         * sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
580         size/alignment of struct pthread rather than tcbhead_t.
581         * sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
582         Likewise.
583         * sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
584         Likewise.
585         * sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
586         Likewise.
587
588 2005-05-19  Richard Henderson  <rth@redhat.com>
589
590         * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use
591         __sync_val_compare_and_swap, not explicit _si variant.
592         * sysdeps/ia64/pthread_spin_trylock.c (pthread_spin_trylock): Likewise.
593
594 2005-05-03  Ulrich Drepper  <drepper@redhat.com>
595
596         [BZ #915]
597         * sysdeps/pthread/pthread.h: Avoid empty initializers.
598
599 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
600
601         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
602         .eh_frame section, use cfi_* directives.
603
604 2005-04-27  Jakub Jelinek  <jakub@redhat.com>
605
606         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
607         of "" includes.
608
609 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
610
611         [BZ #1075]
612         * tst-cancel17.c (do_test): Add arbitrary factor to make sure
613         aio_write blocks.
614
615 2005-04-27  Roland McGrath  <roland@redhat.com>
616
617         * Makefile (tests): Remove tst-clock2.
618
619         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle
620         CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
621         translating to the kernel clockid_t for our own process/thread clock.
622
623         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
624
625 2005-04-15  Jakub Jelinek  <jakub@redhat.com>
626
627         * old_pthread_cond_init.c: Include <errno.h>.
628         (__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is
629         process shared or uses clock other than CLOCK_REALTIME.
630         * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
631
632 2005-04-13  David S. Miller  <davem@davemloft.net>
633
634         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file.
635         * sysdeps/sparc/sparc64/clone.S: New file.
636
637 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
638
639         [BZ #1102]
640         * sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use
641         __inline instead of inline.
642         * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise.
643
644 2005-03-31  Jakub Jelinek  <jakub@redhat.com>
645
646         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use
647         functionally equivalent, but shorter instructions.
648         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
649         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
650         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
651         Likewise.
652         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
653         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
654         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
655         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
656         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
657         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
658         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
659         Likewise.
660         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
661         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
662         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
663         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
664         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
665
666 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
667
668         * sysdeps/mips/Makefile: New file.
669         * sysdeps/mips/nptl-sysdep.S: New file.
670         * sysdeps/mips/tcb-offsets.sym: New file.
671         * sysdeps/mips/pthread_spin_lock.S: New file.
672         * sysdeps/mips/pthread_spin_trylock.S: New file.
673         * sysdeps/mips/pthreaddef.h: New file.
674         * sysdeps/mips/tls.h: New file.
675         * sysdeps/mips/jmpbuf-unwind.h: New file.
676         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file.
677         * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file.
678         * sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file.
679         * sysdeps/unix/sysv/linux/mips/pthread_once.c: New file.
680         * sysdeps/unix/sysv/linux/mips/fork.c: New file.
681         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
682         * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
683         * sysdeps/unix/sysv/linux/mips/clone.S: New file.
684         * sysdeps/unix/sysv/linux/mips/createthread.c: New file.
685         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
686
687 2005-03-23  Ulrich Drepper  <drepper@redhat.com>
688
689         [BZ #1112]
690         * pthread_create.c (__pthread_create_2_1): Rename syscall error
691         variable to scerr.
692
693 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
694
695         * tst-getpid1.c (do_test): Align stack passed to clone{2,}.
696
697 2005-02-25  Roland McGrath  <roland@redhat.com>
698
699         * alloca_cutoff.c: Correct license text.
700         * tst-unload.c: Likewise.
701         * sysdeps/pthread/allocalim.h: Likewise.
702         * sysdeps/pthread/pt-initfini.c: Likewise.
703         * sysdeps/pthread/bits/libc-lock.h: Likewise.
704         * sysdeps/pthread/bits/sigthread.h: Likewise.
705         * sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
706         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
707
708 2005-02-16  Roland McGrath  <roland@redhat.com>
709
710         * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
711         Use unsigned int * for ptr_nthreads.
712
713 2005-02-14  Alan Modra  <amodra@bigpond.net.au>
714
715         [BZ #721]
716         * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
717         gcc4.
718
719 2005-02-07  Richard Henderson  <rth@redhat.com>
720
721         [BZ #787]
722         * sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first
723         argument.
724
725 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
726
727         * sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix
728         order of arguments in invocation of atomic_add_zero.
729
730 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
731
732         [BZ #737]
733         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait):
734         Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS,
735         at least gotntpoff relocation and addition.
736         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
737         Likewise.
738         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
739         Likewise.
740         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
741         Likewise.
742
743 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
744
745         * allocatestack.c (init_one_static_tls): Adjust initialization of DTV
746         entry for static tls deallocation fix.
747         * sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which
748         also contains information whether the memory pointed to is static
749         TLS or not.
750         * sysdeps/i386/tls.h: Likewise.
751         * sysdeps/ia64/tls.h: Likewise.
752         * sysdeps/powerpc/tls.h: Likewise.
753         * sysdeps/s390/tls.h: Likewise.
754         * sysdeps/sh/tls.h: Likewise.
755         * sysdeps/sparc/tls.h: Likewise.
756         * sysdeps/x86_64/tls.h: Likewise.
757
758 2004-12-27  Ulrich Drepper  <drepper@redhat.com>
759
760         * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
761
762 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
763
764         * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of
765         %esp.
766         * Makefile (tests): Add tst-align2.
767         * tst-align2.c: New test.
768         * sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add
769         -mpreferred-stack-boundary=4.
770
771 2004-12-18  Roland McGrath  <roland@redhat.com>
772
773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h:
774         New file removed withdrawn for the moment.
775
776 2004-12-17  Richard Henderson  <rth@redhat.com>
777
778         * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
779         * sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
780
781 2004-12-16  Ulrich Drepper  <drepper@redhat.com>
782
783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file.
784         Increased PTHREAD_STACK_MIN.
785
786         * tst-context1.c (stacks): Use bigger stack size.
787
788 2004-12-16  Jakub Jelinek  <jakub@redhat.com>
789
790         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
791         * sysdeps/sparc/tcb-offsets.sym: Add TID.
792
793 2004-12-15  Jakub Jelinek  <jakub@redhat.com>
794
795         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file.
796         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
797         * sysdeps/s390/tcb-offsets.sym (TID): Add.
798
799 2004-12-15  Ulrich Drepper  <drepper@redhat.com>
800
801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file.
802
803 2004-12-14  Ulrich Drepper  <drepper@redhat.com>
804
805         * sysdeps/powerpc/tcb-offsets.sym: Add TID.
806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
807
808         * tst-getpid1.c: If child crashes, report this first.  Print which
809         signal.
810
811 2004-12-09  Ulrich Drepper  <drepper@redhat.com>
812
813         * init.c (__pthread_initialize_minimal_internal): Also unblock
814         SIGSETXID.
815
816 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
817
818         * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
819         _POSIX_THREAD_CPUTIME): Define to 0.
820         * sysdeps/pthread/timer_create.c (timer_create): Remove unused code
821         handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
822         * sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
823         __timer_signal_thread_tclk): Remove.
824         (init_module): Remove their initialization.
825         (thread_cleanup): Remove their cleanup assertions.
826         * sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
827         __timer_signal_thread_tclk): Remove.
828         * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
829         * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
830         * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
831
832 2004-12-07  Jakub Jelinek  <jakub@redhat.com>
833
834         * sysdeps/ia64/tcb-offsets.sym (TID): Add.
835         * sysdeps/unix/sysv/linux/ia64/clone2.S: New file.
836
837         * Makefile (tests): Add tst-getpid2.
838         * tst-getpid1.c (TEST_CLONE_FLAGS): Define.
839         (do_test): Use it.  Use __clone2 instead of clone on ia64.
840         * tst-getpid2.c: New test.
841
842 2004-12-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
843
844         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
845
846 2004-12-04  Ulrich Drepper  <drepper@redhat.com>
847
848         * Makefile (tests): Add tst-getpid1.
849         * tst-getpid1.c: New file.
850         * sysdeps/unix/sysv/linux/i386/clone.S: New file.
851         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
852
853 2004-12-02  Roland McGrath  <roland@redhat.com>
854
855         * Makefile (libpthread-nonshared): Variable removed.
856         ($(objpfx)libpthread_nonshared.a): Target removed.
857         ($(inst_libdir)/libpthread_nonshared.a): Likewise.
858         These are now handled by generic magic from
859         libpthread-static-only-routines being set.
860
861 2004-11-27  Ulrich Drepper  <drepper@redhat.com>
862
863         * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO,
864         _POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT,
865         _POSIX_THREAD_PRIO_PROTECT): Define.
866         * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
867         * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
868         * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
869
870 2004-11-26  Jakub Jelinek  <jakub@redhat.com>
871
872         * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
873         _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
874         _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
875         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
876         * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
877         * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
878         * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
879
880 2004-11-24  Ulrich Drepper  <drepper@redhat.com>
881
882         * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
883
884         * Makefile (libpthread-routines): Add pthread_setschedprio.
885         * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
886         * sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
887         * pthread_setschedprio.c: New file.
888
889 2004-11-20  Jakub Jelinek  <jakub@redhat.com>
890
891         * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE.
892         * pthread_cancel.c (pthread_create): Likewise.
893
894         * Makefile (libpthread-routines): Add vars.
895         * sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove.
896         * init.c (__default_stacksize, __is_smp): Remove.
897         * vars.c: New file.
898         * pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function
899         and define a wrapper macro.
900         (PTHREAD_STATIC_FN_REQUIRE): Define.
901         * allocatestack.c (__find_thread_by_id): Undefine.
902         * pthread_create (__pthread_keys): Remove.
903         (pthread_mutex_lock, pthread_mutex_unlock, pthread_once,
904         pthread_key_create, pthread_setspecific, pthread_getspecific): Add
905         PTHREAD_STATIC_FN_REQUIRE.
906
907 2004-11-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
908
909         * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias
910         parameter to REGISTER macro.
911
912 2004-11-17  Roland McGrath  <roland@redhat.com>
913
914         * sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
915         Make sure SIGCANCEL is blocked as well.
916
917 2004-11-10  Jakub Jelinek  <jakub@redhat.com>
918
919         * sysdeps/pthread/setxid.h: New file.
920         * sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove.
921         (struct xid_command): Add forward decl.
922         (struct pthread_functions): Change return type of __nptl_setxid hook
923         to int.
924         * pthreadP.h (__nptl_setxid): Change return type to int.
925         * allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the
926         calling thread, return its return value and set errno on failure.
927         * descr.h (struct xid_command): Change id type to long array.
928
929         * Makefile: Add rules to build and test tst-setuid1 and
930         tst-setuid1-static.
931         * tst-setuid1.c: New test.
932         * tst-setuid1-static.c: New test.
933
934 2004-11-10  Jakub Jelinek  <jakub@redhat.com>
935
936         * Makefile (tests): Add tst-exit3.
937         * tst-exit3.c: New test.
938
939 2004-11-09  Ulrich Drepper  <drepper@redhat.com>
940
941         * Makefile (tests): Add tst-exit2.
942         * tst-exit2.c: New file.
943
944 2004-11-09  Roland McGrath  <roland@redhat.com>
945
946         [BZ #530]
947         * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
948         here, before calling clone.
949         * pthread_create.c (start_thread): Don't do it here.
950
951 2004-11-02  Jakub Jelinek  <jakub@redhat.com>
952
953         * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
954
955 2004-10-29  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>
956
957         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
958         Set ETIMEDOUT to errno when time is up.  Tweak to avoid
959         assembler warning.
960
961 2004-10-28  Jakub Jelinek  <jakub@redhat.com>
962
963         * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
964         if sched_priority is not between minprio and maxprio.
965
966 2004-10-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
967
968         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
969         (__pthread_cond_timedwait): Use clock_gettime syscall if exists.
970
971         * sysdeps/unix/sysv/linux/sh/lowlevellock.S
972         (__lll_mutex_timedlock_wait): Fix a bad branch condition.
973
974 2004-10-24  Ulrich Drepper  <drepper@redhat.com>
975
976         * sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use
977         not-cancelable I/O functions.
978
979 2004-10-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
980
981         * sysdeps/unix/sysv/linux/sh/lowlevellock.S
982         (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
983         make sure 2 is stored in the futex and we looked at the old value.
984         Fix a few other problems to return the correct value.
985
986 2004-10-14  Richard Henderson  <rth@redhat.com>
987
988         * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
989         make gcc4 happy.
990
991 2004-10-06  Jakub Jelinek  <jakub@redhat.com>
992
993         * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
994         of pthread-functions.h and pthreaddef.h.
995         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
996
997         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
998         Change __data.__nwaiters from int to unsigned int.
999
1000         * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
1001         sysconf (_SC_THREAD_CPUTIME) returns negative value.
1002
1003         * allocatestack.c (__find_thread_by_id): Move attribute_hidden
1004         before return type.
1005
1006         * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
1007         (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
1008
1009 2004-10-06  Ulrich Drepper  <drepper@redhat.com>
1010
1011         * tst-cancel4.c (tf_msgrcv): Check for failure in msgget.  If the
1012         test fails, remove message queue.
1013         (tf_msgsnd): Likewise.
1014
1015 2004-10-05  Jakub Jelinek  <jakub@redhat.com>
1016
1017         * tst-clock1.c: Change #ifdef to #if defined.
1018         * tst-clock2.c: Likewise.
1019         * tst-cond11.c: Likewise.
1020
1021         * sysdeps/pthread/timer_create.c (timer_create): Use
1022         defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of
1023         defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for
1024         THREAD_CPUTIME.
1025
1026 2004-10-05  Jakub Jelinek  <jakub@redhat.com>
1027
1028         * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME,
1029         _POSIX_THREAD_CPUTIME): Define to 0.
1030
1031 2004-10-04  Ulrich Drepper  <drepper@redhat.com>
1032
1033         * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
1034         and _POSIX_THREAD_CPUTIME to zero.
1035         * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
1036         * tst-barrier2.c: Fix testing for POSIX feature.
1037         * tst-clock1.c: Likewise.
1038         * tst-clock2.c: Likewise.
1039         * tst-cond11.c: Likewise.
1040         * tst-cond4.c: Likewise.
1041         * tst-cond6.c: Likewise.
1042         * tst-flock2.c: Likewise.
1043         * tst-mutex4.c: Likewise.
1044         * tst-mutex9.c: Likewise.
1045         * tst-rwlock12.c: Likewise.
1046         * tst-rwlock4.c: Likewise.
1047         * tst-signal1.c: Likewise.
1048         * tst-spin2.c: Likewise.
1049         * sysdeps/pthread/posix-timer.h: Likewise.
1050         * sysdeps/pthread/timer_create.c: Likewise.
1051         * sysdeps/pthread/timer_routines.c: Likewise.
1052
1053 2004-10-01  Ulrich Drepper  <drepper@redhat.com>
1054
1055         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
1056         (__lll_mutex_timedlock_wait): Address futex correctly.
1057
1058         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1059         (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
1060         make sure 2 is stored in the futex and we looked at the old value.
1061         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
1062         (__lll_mutex_timedlock_wait): Likewise.  Fix a few other problems
1063         which might very well made the code not working at all before.
1064         [BZ #417]
1065
1066 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
1067
1068         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
1069         allow SIGSETXID to be sent.
1070         * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
1071         for SIGSETXID to be defined.
1072         * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
1073         SIGSETXID cannot be blocked.
1074
1075         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
1076         Add __extension__ to long long types.
1077         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
1078         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
1079         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
1080         * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
1081         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
1082         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
1083         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
1084
1085 2004-09-25  Ulrich Drepper  <drepper@redhat.com>
1086
1087         * descr.h (struct pthread): Add stopped_start field.
1088         * sysdeps/pthread/createthread.c (create_thread): Set
1089         start_stopped flag in descriptor for new thread appropriately.
1090         * pthread_create.c (start_thread): Only take lock to be stopped on
1091         startup if stopped_start flag says so.
1092
1093 2004-09-24  Ulrich Drepper  <drepper@redhat.com>
1094
1095         * pthread_create.c (__pthread_create_2_1): Remember whether thread
1096         is created detached and if yes, do not try to free the stack in case
1097         the thread creation failed.
1098         * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
1099         call fails.  Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
1100         case there has been no error.  [BZ #405]
1101
1102         * pthread_create.c (start_thread): Don't wait for scheduler data
1103         etc to be set at the beginning of the function.  The cancellation
1104         infrastructure must have been set up.  And enable async
1105         cancellation before potentially going to sleep.  [BZ #401]
1106
1107 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
1108
1109         * Versions: Remove exports for pthread_set*id_np functions.
1110         * sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes
1111         for now.
1112         * Makefile: Don't build pthread_set*id code for now.
1113
1114 2004-09-19  Ulrich Drepper  <drepper@redhat.com>
1115
1116         * sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for
1117         internal use.
1118         * allocatestack.c (__nptl_setxid): New function.
1119         * descr.h (struct xid_command): Define type.
1120         * init.c (pthread_functions): Add ptr__nptl_setxid initialization.
1121         (sighandler_setxid): New function.
1122         (__pthread_initialize_minimal): Register sighandler_setxid for
1123         SIGCANCEL.
1124         * pt-allocrtsig.c: Update comment.
1125         * pthreadP.h: Define SIGSETXID.  Declare __xidcmd variable.
1126         Declare __nptl_setxid.
1127         * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid.
1128         * sysdeps/pthread/pthread.h: Declare pthread_setgid_np,
1129         pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
1130         pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
1131         and pthread_setresuid_np.
1132         * pthread_setgid_np.c: New file.
1133         * pthread_setuid_np.c: New file.
1134         * pthread_setegid_np.c: New file.
1135         * pthread_seteuid_np.c: New file.
1136         * pthread_setregid_np.c: New file.
1137         * pthread_setreuid_np.c: New file.
1138         * pthread_setresgid_np.c: New file.
1139         * pthread_setresuid_np.c: New file.
1140         * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np,
1141         pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
1142         pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
1143         and pthread_setresuid_np.
1144         * Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid,
1145         pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid,
1146         pthread_setregid, and pthread_setresgid.
1147
1148 2004-09-18  Ulrich Drepper  <drepper@redhat.com>
1149
1150         * allocatestack.c (allocate_stack): Return EAGAIN instead of
1151         ENOMEM when out of memory.
1152
1153 2004-09-10  Roland McGrath  <roland@redhat.com>
1154
1155         [BZ #379]
1156         * allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED]
1157         code, since we don't try to use the broken CLONE_STOPPED any more.
1158         * pthread_create.c (start_thread): Likewise.
1159
1160 2004-09-15  Richard Henderson  <rth@redhat.com>
1161
1162         * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
1163
1164 2004-09-01  David Mosberger  <davidm@hpl.hp.com>
1165
1166         * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
1167         (__libc_unwind_longjmp): Delete macro and declare as function.
1168         * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
1169         __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
1170         nptl directory.
1171         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
1172         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
1173         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
1174
1175 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
1176
1177         * sysdeps/pthread/pthread.h: Make rwlock prototypes available also
1178         for __USE_XOPEN2K.
1179         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock
1180         types also for __USE_XOPEN2K.
1181         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
1182         * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
1183         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
1184         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
1185         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
1186         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
1187         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
1188         [BZ #320]
1189
1190 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
1191
1192         * sysdeps/pthread/pthread.h
1193         (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
1194         (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
1195         (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
1196         (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
1197         [BZ #375]
1198
1199 2004-09-07  Ulrich Drepper  <drepper@redhat.com>
1200
1201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow
1202         PSEUDO to be used with . prefix.
1203
1204         * sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once):
1205         Use atomic_increment instead of atomic_exchange_and_add.
1206         * sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once):
1207         Likewise.
1208         * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
1209         Likewise.
1210         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1211         Likewise.
1212
1213         * allocatestack.c (allocate_stack): Use atomic_increment_val
1214         instead of atomic_exchange_and_add.
1215         * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise.
1216         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
1217         Likewise.
1218         * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
1219         Likewise.
1220
1221         * sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
1222         the initialization function might throw.
1223
1224 2005-09-05  Richard Henderson  <rth@redhat.com>
1225
1226         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
1227         Move definition inside libpthread, libc, librt check.  Provide
1228         definition for rtld.
1229
1230 2004-09-02  Ulrich Drepper  <drepper@redhat.com>
1231
1232         * sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
1233         * sysdeps/i386/jmpbuf-unwind.h: Likewise
1234         * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
1235         * sysdeps/s390/jmpbuf-unwind.h: Likewise.
1236         * sysdeps/sh/jmpbuf-unwind.h: Likewise.
1237         * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
1238         * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
1239         * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
1240         * unwind.c: Use it.
1241
1242         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
1243         Rename __data.__clock to __data.__nwaiters, make it unsigned int.
1244         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
1245         Likewise.
1246         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
1247         Decrement __nwaiters.  If pthread_cond_destroy has been called and
1248         this is the last waiter, signal pthread_cond_destroy caller and
1249         avoid using the pthread_cond_t structure after unlock.
1250         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
1251         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1252         Read clock type from the least significant bits of __nwaiters instead
1253         of __clock.
1254         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1255         * sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS.
1256
1257 2004-08-31  Jakub Jelinek  <jakub@redhat.com>
1258
1259         [BZ #342]
1260         * Makefile (tests): Add tst-cond20 and tst-cond21.
1261         * tst-cond20.c: New test.
1262         * tst-cond21.c: New test.
1263         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
1264         (pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make
1265         it unsigned int.
1266         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
1267         Likewise.
1268         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
1269         (pthread_cond_t): Likewise.
1270         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
1271         Likewise.
1272         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
1273         Likewise.
1274         * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
1275         Likewise.
1276         * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove.
1277         (cond_nwaiters): New.
1278         (clock_bits): New.
1279         * pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY
1280         if there are waiters not signalled yet.
1281         Wait until all already signalled waiters wake up.
1282         * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement
1283         __nwaiters.  If pthread_cond_destroy has been called and this is the
1284         last waiter, signal pthread_cond_destroy caller and avoid using
1285         the pthread_cond_t structure after unlock.
1286         (__pthread_cond_wait): Increment __nwaiters in the beginning,
1287         decrement it when leaving.  If pthread_cond_destroy has been called
1288         and this is the last waiter, signal pthread_cond_destroy caller.
1289         * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
1290         Likewise.  Read clock type from the least significant bits of
1291         __nwaiters instead of __clock.
1292         * pthread_condattr_setclock.c (pthread_condattr_setclock): Check
1293         whether clock ID can be encoded in COND_CLOCK_BITS bits.
1294         * pthread_condattr_getclock.c (pthread_condattr_getclock): Decode
1295         clock type just from the last COND_CLOCK_BITS bits of value.
1296         * pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters
1297         instead of __clock, just from second bit of condattr's value.
1298
1299 2004-08-30  Jakub Jelinek  <jakub@redhat.com>
1300
1301         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include
1302         bits/wordsize.h.  Make the header match i386 header when __WORDSIZE
1303         != 64.
1304         * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
1305
1306 2004-08-15  Roland McGrath  <roland@frob.com>
1307
1308         * pthread_atfork.c: Update copyright terms including special exception
1309         for these trivial files, which are statically linked into executables
1310         that use dynamic linking for the significant library code.
1311
1312 2004-08-09  Jakub Jelinek  <jakub@redhat.com>
1313
1314         * DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to
1315         pthread_rwlock_rdlock.
1316         * sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
1317         Decrease __nr_readers_queued after reacquiring lock.
1318         * sysdeps/pthread/pthread_rwlock_timedrdlock
1319         (pthread_rwlock_timedrdlock): Likewise.
1320         Reported by Bob Cook <bobcook47@hotmail.com>.
1321
1322 2004-08-11  Jakub Jelinek  <jakub@redhat.com>
1323
1324         * tst-rwlock14.c (tf): Read main thread handle from *ARG
1325         before pthread_barrier_wait.
1326
1327 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
1328
1329         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
1330         Remove unnecessary exception handling data.
1331
1332 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
1333
1334         [BZ #284]
1335         * sysdeps/pthread/pthread.h (pthread_getcpuclockid): Use __clockid_t
1336         instead of clockid_t.
1337
1338 2004-07-21  Roland McGrath  <roland@redhat.com>
1339
1340         * Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
1341
1342 2004-07-19  Roland McGrath  <roland@redhat.com>
1343
1344         * tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
1345
1346 2004-07-02  Roland McGrath  <roland@redhat.com>
1347
1348         * configure: Don't exit.
1349
1350 2004-07-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1351
1352         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
1353         (__pthread_cond_timedwait): Check for invalid nanosecond in
1354         timeout value.
1355
1356 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
1357
1358         * Makefile: Add rules to build and run tst-fini1.
1359         * tst-fini1.c: New file.
1360         * tst-fini1mod.c: New file.
1361
1362 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
1363
1364         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define NO_CANCELLATION
1365         if no cancellation support is needed.
1366         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
1367         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
1368         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
1369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
1370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
1371         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
1372         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
1373         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
1374         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
1375
1376         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define __NR_futex
1377         only if not already defined.
1378
1379 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
1380
1381         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use
1382         constraint "m" instead of "0" for futex.
1383
1384         * shlib-versions: Add powerpc64-.*-linux.*.
1385
1386 2004-07-04  Jakub Jelinek  <jakub@redhat.com>
1387
1388         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
1389         (pthread_rwlock_timedrdlock): Use cmpq instead of cmpl to check
1390         for valid tv_nsec.
1391         * tst-rwlock14.c (do_test): Test for invalid tv_nsec equal to
1392         1 billion and 64-bit tv_nsec which is valid when truncated to 32
1393         bits.
1394
1395 2004-06-29  Roland McGrath  <roland@redhat.com>
1396
1397         * Banner: NPTL no longer has its own version number.
1398         * Makefile (nptl-version): Variable removed.
1399         * sysdeps/pthread/Makefile (CFLAGS-confstr.c): Set LIBPTHREAD_VERSION
1400         using $(version), the glibc version number.
1401
1402 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1403
1404         * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
1405         Fix branch offset for a PLT entry.
1406         * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
1407         Likewise.
1408         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
1409         Likewise.
1410         * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
1411         Likewise.
1412         * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait):
1413         Likewise.
1414
1415 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
1416
1417         * sysdeps/alpha/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define
1418         unconditionally.
1419
1420 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
1421
1422         * sysdeps/pthread/pthread_rwlock_timedwrlock.c
1423         (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
1424         instead of tv_sec.
1425         * sysdeps/pthread/pthread_rwlock_timedrdlock.c
1426         (pthread_rwlock_timedrdlock): Likewise.
1427
1428 2004-06-22  Jakub Jelinek  <jakub@redhat.com>
1429
1430         * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
1431         Set __r7 to val, not mutex.
1432
1433 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
1434
1435         * Makefile: Add rules to build tst-rwlock14.
1436         * tst-rwlock14.c: New file.
1437
1438 2004-06-24  Boris Hu  <boris.hu@intel.com>
1439
1440         * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation
1441         check.
1442         * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
1443
1444 2004-06-19  Andreas Jaeger  <aj@suse.de>
1445
1446         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix
1447         assembler in last patch.
1448
1449 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
1450
1451         * sysdeps/pthread/pthread_cond_timedwait.c
1452         (__pthread_cond_timedwait): Also check for negativ nanoseconds.
1453         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
1454         (__pthread_cond_timedwait): Check for invalid nanosecond in
1455         timeout value.
1456         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
1457         * tst-cond19.c: New file.
1458         * Makefile: Add rules to build and run tst-cond19.
1459
1460 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
1461
1462         * tst-context1.c (GUARD_PATTERN): Defined.
1463         (tst_context_t): Define struct containing ucontext_t & guard words.
1464         (ctx): Declare as an array of tst_context_t.
1465         (fct): Verify uc_link & guard words are still valid.
1466         (tf): Initialize guard words in ctx.  Adjust ctx refs for new struct.
1467
1468 2004-06-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1469
1470         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
1471         Add __data.__futex field, reshuffle __data.__clock.
1472         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
1473         (__pthread_cond_signal): Increment __futex at the same time as
1474         __wakeup_seq or __total_seq.  Pass address of __futex instead of
1475         address of low 32-bits of __wakeup_seq to futex syscall.
1476         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
1477         (__pthread_cond_wait): Likewise.  Pass __futex value from before
1478         releasing internal lock to FUTEX_WAIT.
1479         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
1480         (__pthread_cond_timedwait): Likewise.
1481         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
1482         (FUTEX_CMP_REQUEUE): Define.
1483         (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
1484         Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
1485         Pass __futex value from before the unlock and __futex address instead
1486         of address of low 32-bits of __wakeup_seq to futex syscall.
1487         Fallback to FUTEX_WAKE all on any errors.
1488
1489 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
1490
1491         * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix
1492         comment typo.
1493         * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise.
1494         * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
1495         * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise.
1496         * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
1497         Likewise.  Reported by Bob Cook <bobcook47@hotmail.com>.
1498
1499 2004-06-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1500
1501         * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap):
1502         Add memory clobber to inline assembly.
1503         (__lll_mutex_trylock): Likewise.
1504         (__lll_mutex_cond_trylock): Likewise.
1505
1506 2004-06-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1507
1508         * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
1509         Pass val argument as 6th system call argument in %r7.
1510
1511 2004-05-21  Jakub Jelinek  <jakub@redhat.com>
1512
1513         * Makefile (tests): Add tst-cond16.
1514         * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add.
1515         * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex.
1516         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
1517         Add __data.__futex field, reshuffle __data.__clock.
1518         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S
1519         (__pthread_cond_signal): Increment __futex at the same time as
1520         __wakeup_seq or __total_seq.  Pass address of __futex instead of
1521         address of low 32-bits of __wakeup_seq to futex syscall.
1522         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S
1523         (__pthread_cond_wait): Likewise.  Pass __futex value from before
1524         releasing internal lock to FUTEX_WAIT.
1525         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S
1526         (__pthread_cond_timedwait): Likewise.
1527         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S
1528         (FUTEX_CMP_REQUEUE): Define.
1529         (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
1530         Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
1531         Pass __futex value from before the unlock and __futex address instead
1532         of address of low 32-bits of __wakeup_seq to futex syscall.
1533         Fallback to FUTEX_WAKE all on any errors.
1534         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE):
1535         Define.
1536         (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
1537         internally.  Return non-zero if error, zero if success.
1538         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
1539         Add __data.__futex field, reshuffle __data.__clock.
1540         * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE):
1541         Define.
1542         (lll_futex_requeue): Add val argument, return 1 unconditionally
1543         for the time being.
1544         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
1545         Add __data.__futex field, reshuffle __data.__clock.
1546         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE):
1547         Define.
1548         (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
1549         internally.  Return non-zero if error, zero if success.
1550         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
1551         (pthread_cond_t): Add __data.__futex field, reshuffle __data.__clock.
1552         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_CMP_REQUEUE):
1553         Define.
1554         (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
1555         internally.  Return non-zero if error, zero if success.
1556         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
1557         Add __data.__futex field, reshuffle __data.__clock.
1558         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_CMP_REQUEUE):
1559         Define.
1560         (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
1561         internally.  Return non-zero if error, zero if success.
1562         * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
1563         Add __data.__futex field, reshuffle __data.__clock.
1564         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
1565         Add __data.__futex field, reshuffle __data.__clock.
1566         * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal):
1567         Increment __futex at the same time as __wakeup_seq or __total_seq.
1568         Pass address of __futex instead of address of low 32-bits of
1569         __wakeup_seq to futex syscall.
1570         * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
1571         Pass __futex value from before releasing internal lock
1572         to FUTEX_WAIT.
1573         * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
1574         Likewise.  Avoid unnecessary shadowing of variables.
1575         * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast):
1576         Set __futex to 2 * __total_seq.  Pass __futex value from before the
1577         unlock and __futex address instead of address of low 32-bits of
1578         __wakeup_seq to futex_requeue macro, adjust for new return value
1579         meaning.
1580         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
1581         (__pthread_cond_signal): Increment __futex at the same time as
1582         __wakeup_seq or __total_seq.  Pass address of __futex instead of
1583         address of low 32-bits of __wakeup_seq to futex syscall.
1584         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1585         (__pthread_cond_wait): Likewise.  Pass __futex value from before
1586         releasing internal lock to FUTEX_WAIT.
1587         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1588         (__pthread_cond_timedwait): Likewise.
1589         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
1590         (FUTEX_CMP_REQUEUE): Define.
1591         (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
1592         Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
1593         Pass __futex value from before the unlock and __futex address instead
1594         of address of low 32-bits of __wakeup_seq to futex syscall.
1595         Fallback to FUTEX_WAKE all on any errors.
1596
1597 2004-06-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1598
1599         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_mutex_lock):
1600         Add nop to align the end of critical section.
1601         (lll_mutex_cond_lock, lll_mutex_timedlock): Likewise.
1602
1603 2004-06-01  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1604
1605         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
1606         Add __broadcast_seq field.
1607         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Mark
1608         all waiters as woken with woken_seq and bump broadcast counter.
1609         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use new
1610         __broadcast_seq.  Increment __woken_seq correctly when cleanuped.
1611         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
1612         Comment typo fixes.  Avoid returning -ETIMEDOUT.
1613
1614 2004-06-01  Ulrich Drepper  <drepper@redhat.com>
1615
1616         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
1617         (__condvar_tw_cleanup): Fix access to saved broadcast_seq value.
1618         Reported by Kaz Kojima.
1619
1620 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
1621
1622         * sysdeps/unix/sysv/linux/aio_misc.h: New file.
1623
1624 2004-05-21  Jakub Jelinek  <jakub@redhat.com>
1625
1626         * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare
1627         __broadcast_seq with bc_seq after acquiring internal lock instead of
1628         before it.
1629
1630 2004-05-18  Jakub Jelinek  <jakub@redhat.com>
1631
1632         * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not
1633         compilation.
1634         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
1635         (__pthread_cond_timedwait): Avoid returning -ETIMEDOUT.
1636         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
1637         (pthread_cond_t): Add __data.__broadcast_seq field.
1638         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1639         (FRAME_SIZE): Define.
1640         (__pthread_cond_timedwait): Use it.  Store/check broadcast_seq.
1641         Comment typo fixes.
1642         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (FRAME_SIZE):
1643         Define.
1644         (__pthread_cond_wait): Use it.  Store/check broadcast_seq.  Comment
1645         typo fixes.
1646         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
1647         (__pthread_cond_broadcast): Increment broadcast_seq.  Comment typo
1648         fixes.
1649
1650 2004-05-18  Ulrich Drepper  <drepper@redhat.com>
1651
1652         * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add broadcast_seq entry.
1653         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
1654         Add __broadcast_seq field.
1655         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
1656         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
1657         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
1658         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
1659         * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
1660         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Mark
1661         all waiters as woken with woken_seq and bump broadcast counter.
1662         * sysdeps/pthread/pthread_cond_broadcast.c: Likewise.
1663         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use new
1664         __broadcast_seq field.
1665         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1666         * sysdeps/pthread/pthread_cond_wait.c: Likewise.
1667         * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
1668         * pthread_cond_init.c: Initialize __broadcast_seq field.
1669         * Makefile (tests): Add tst-cond17 and tst-cond18.
1670         Add .NOTPARALLEL goal.
1671         * tst-cond16.c: New file.  From Jakub.
1672         * tst-cond17.c: New file.  From Jakub.
1673         * tst-cond18.c: New file.  From Jakub.
1674
1675 2004-05-16  Ulrich Drepper  <drepper@redhat.com>
1676
1677         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Correct some
1678         unwind info.
1679
1680         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
1681         Parametrize frame size.  Correct some unwind info.
1682         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1683
1684 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
1685
1686         * tst-stack3.c: Note testing functionality beyond POSIX.
1687
1688 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
1689
1690         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD):
1691         Change conditional from ifdef to if.
1692
1693 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
1694
1695         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SYSDEP_CANCEL_ERRNO,
1696         SYSDEP_CANCEL_ERROR): Define.
1697         (PSEUDO): Use it.
1698
1699 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
1700
1701         * Versions (libpthread): Remove __pthread_cleanup_upto@@GLIBC_PRIVATE.
1702
1703 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
1704
1705         * sem_unlink.c (sem_unlink): Change EPERM into EACCES.
1706
1707 2004-04-19  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1708
1709         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
1710         Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
1711         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove unneeded frame
1712         info.  Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
1713
1714 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
1715
1716         * sysdeps/unix/sysv/linux/timer_routines.c: Make sure helper
1717         thread has all signals blocked.
1718
1719 2004-04-18  Andreas Jaeger  <aj@suse.de>
1720
1721         * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h
1722         (SEM_VALUE_MAX): Add missing brace.
1723
1724 2004-04-17  Jakub Jelinek  <jakub@redhat.com>
1725
1726         * sysdeps/pthread/Makefile (tests): Add tst-mqueue8x
1727         in rt subdir.
1728         (CFLAGS-tst-mqueue8x.c): Add -fexceptions.
1729         * sysdeps/pthread/tst-mqueue8x.c: New test.
1730         * tst-cancel4.c: Update comment about message queues.
1731
1732         * sysdeps/pthread/timer_gettime.c (timer_gettime): For expired timer
1733         return it_value { 0, 0 }.
1734         * sysdeps/pthread/timer_create.c (timer_create): Handle SIGEV_NONE
1735         like SIGEV_SIGNAL.
1736         * sysdeps/pthread/timer_routines.c (thread_expire_timer): Remove
1737         assertion for SIGEV_NONE.
1738         (thread_attr_compare): Compare all attributes, not just a partial
1739         subset.
1740
1741 2004-04-17  Jakub Jelinek  <jakub@redhat.com>
1742
1743         * sysdeps/unix/sysv/linux/mq_notify.c: Include stdlib.h.
1744
1745 2004-04-17  Ulrich Drepper  <drepper@redhat.com>
1746
1747         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h (SEM_VALUE_MAX):
1748         Just use a plain number.
1749         * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
1750         * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
1751         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
1752         * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
1753         * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
1754         * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
1755         * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
1756
1757 2004-04-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1758
1759         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded
1760         frame info.
1761         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
1762
1763 2004-04-15  Jakub Jelinek  <jakub@redhat.com>
1764
1765         * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h.
1766         (timer_helper_thread): Use inline rt_sigtimedwait syscall instead
1767         of calling sigwaitinfo.
1768
1769 2004-04-16  Ulrich Drepper  <drepper@redhat.com>
1770
1771         * allocatestack.c (allocate_stack): Set reported_guardsize
1772         unconditionally.
1773         * pthread_getattr_np.c (pthread_getattr_np): Use
1774         reported_guardsize instead of guardsize.
1775         * descr.h (struct pthread): Add reported_guardsize field.
1776
1777 2004-04-13  Jakub Jelinek  <jakub@redhat.com>
1778
1779         * sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.
1780
1781 2004-04-12  Ulrich Drepper  <drepper@redhat.com>
1782
1783         * sysdeps/unix/sysv/linux/mq-notify.c: New file.
1784
1785 2004-04-08  Jakub Jelinek  <jakub@redhat.com>
1786
1787         * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define.
1788         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h (MQ_PRIO_MAX): Define.
1789         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h (MQ_PRIO_MAX): Define.
1790         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h (MQ_PRIO_MAX): Define.
1791         * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_MESSAGE_PASSING):
1792         Define.
1793         * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h
1794         (_POSIX_MESSAGE_PASSING): Define.
1795         * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h
1796         (_POSIX_MESSAGE_PASSING): Define.
1797         * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h
1798         (_POSIX_MESSAGE_PASSING): Define.
1799
1800 2004-04-04  Ulrich Drepper  <drepper@redhat.com>
1801
1802         * tst-context1.c (fct): Check whether correct stack is used.
1803
1804 2004-04-03  Ulrich Drepper  <drepper@redhat.com>
1805
1806         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
1807         matching constraints for asm mem parameters.
1808
1809         * tst-clock2.c (tf): Don't define unless needed.
1810
1811 2004-03-30  H.J. Lu  <hongjiu.lu@intel.com>
1812
1813         * Makefile (link-libc-static): Use $(static-gnulib) instead of
1814         $(gnulib).
1815
1816 2004-03-30  Ulrich Drepper  <drepper@redhat.com>
1817
1818         * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_deallocate_tsd.
1819         * init.c (pthread_functions): Add ptr__nptl_deallocate_tsd.
1820         * pthreadP.h: Declare __nptl_deallocate_tsd.
1821         * pthread_create.c (deallocate_tsd): Remove to __nptl_deallocate_tsd.
1822         Adjust caller.
1823
1824         * Makefile (tests): Add tst-tsd5.
1825         * tst-tsd5.c: New file.
1826
1827 2004-03-29  Ulrich Drepper  <drepper@redhat.com>
1828
1829         * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
1830         (__pthread_attr_setaffinity_old): Prepend GLIBC_ to version names
1831         is SHLIB_COMPAT check.
1832         * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
1833         (__pthread_attr_getaffinity_old): Likewise.
1834         * sysdeps/unix/sysv/linux/pthread_getaffinity.c
1835         (__pthread_getaffinity_old): Likewise.
1836         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
1837         (__pthread_setaffinity_old): Likewise.
1838
1839 2004-03-26  Ulrich Drepper  <drepper@redhat.com>
1840
1841         * allocatestack.c (_make_stacks_executable): Call
1842         _dl_make_stack_executable first.
1843
1844 2004-03-24  Roland McGrath  <roland@redhat.com>
1845
1846         * sysdeps/i386/pthread_spin_lock.c (pthread_spin_lock): Use "m"
1847         constraint instead of "0".
1848
1849 2004-03-24  Ulrich Drepper  <drepper@redhat.com>
1850
1851         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
1852         (lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock.
1853
1854         * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Reorganize
1855         code to avoid warning.
1856
1857 2004-03-24  Andreas Jaeger  <aj@suse.de>
1858
1859         * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
1860         (__pthread_attr_setaffinity_old): Remove const.
1861
1862 2004-03-23  Ulrich Drepper  <drepper@redhat.com>
1863
1864         * sysdeps/unix/sysv/linux/smp.h: New file.
1865         * sysdeps/unix/sysv/linux/sh/smp.h: New file.
1866         * init.c: Define __is_smp.
1867         (__pthread_initialize_minimal_internal): Call is_smp_system to
1868         initialize __is_smp.
1869         * pthreadP.h: Declare __is_smp.
1870         Define MAX_ADAPTIVE_COUNT is necessary.
1871         * pthread_mutex_init.c: Add comment regarding __spins field.
1872         * pthread_mutex_lock.c: Implement adaptive mutex type.
1873         * pthread_mutex_timedlock.c: Likewise.
1874         * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
1875         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
1876         Add __spins field.
1877         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
1878         * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
1879         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
1880         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
1881         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
1882         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
1883         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
1884         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define
1885         lll_mutex_cond_trylock.
1886         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
1887         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
1888         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
1889         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
1890         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
1891         Define BUSY_WAIT_NOP.
1892         * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
1893         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
1894
1895         * tst-mutex5.c: Add support for testing adaptive mutexes.
1896         * tst-mutex7.c: Likewise.
1897         * tst-mutex5a.c: New file.
1898         * tst-mutex7a.c: New file.
1899         * Makefile (tests): Add tst-mutex5a and tst-mutex7a.
1900
1901         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
1902         (__lll_mutex_timedlock_wait): Preserve r8 and r9 since the
1903         vgettimeofday call might destroy the content.
1904
1905         * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use hint
1906         @pause in the loop.
1907
1908         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
1909         No need to restrict type of ret.  Make it int.  Add comment.
1910
1911         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
1912         Remove unnecessary setne instruction.
1913
1914 2004-03-22  Jakub Jelinek  <jakub@redhat.com>
1915
1916         * sysdeps/unix/sysv/linux/pthread_getaffinity.c
1917         (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
1918         * pthread_getattr_np.c (pthread_getattr_np): Double size every cycle.
1919         If realloc fails, break out of the loop.
1920
1921 2004-03-20  Andreas Jaeger  <aj@suse.de>
1922
1923         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
1924         (__pthread_setaffinity_old): Fix interface.
1925         * sysdeps/unix/sysv/linux/pthread_getaffinity.c
1926         (__pthread_getaffinity_old): Likewise.
1927
1928         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
1929         (__pthread_setaffinity_new): Remove duplicate declaration.
1930
1931 2004-03-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1932
1933         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save
1934         the return value to a safe register.
1935         (CDISABLE): Set the function argument correctly.
1936
1937 2004-03-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1938
1939         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XCHG): Define.
1940         * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
1941         Rewrite so that only one locked memory operation per round is needed.
1942         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
1943         (pthread_barrier_wait): After wakeup, release lock only when the
1944         last thread stopped using the barrier object.
1945         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
1946         (__pthread_cond_wait): Don't store mutex address if the current
1947         value is ~0l.  Add correct cleanup support and unwind info.
1948         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
1949         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
1950         (__pthread_cond_broadcast): Don't use requeue for pshared condvars.
1951         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Update comment.
1952         * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
1953         Add correct cleanup support and unwind info.
1954         * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
1955         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Add unwind
1956         information for syscall wrappers.
1957
1958 2004-03-18  Ulrich Drepper  <drepper@redhat.com>
1959
1960         * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
1961         cpusetsize field, remove next.
1962         * sysdeps/pthread/pthread.h (pthread_getaffinity_np): Add new second
1963         parameter for size of the CPU set.
1964         (pthread_setaffinity_np): Likewise.
1965         (pthread_attr_getaffinity_np): Likewise.
1966         (pthread_attr_setaffinity_np): Likewise.
1967         * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Implement
1968         interface change, keep compatibility code.
1969         * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
1970         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: Likewise.
1971         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: Likewise.
1972         * pthreadP.h: Remove hidden_proto for pthread_getaffinity_np.  Declare
1973         __pthread_getaffinity_np.
1974         * Versions: Add version for changed interfaces.
1975         * tst-attr3.c: Adjust test for interface change.
1976         * pthread_getattr_np.c: Query the kernel about the affinity mask with
1977         increasing buffer sizes.
1978         * pthread_attr_destroy.c: Remove unused list handling.
1979         * pthread_attr_init.c: Likewise.
1980
1981 2004-03-17  Roland McGrath  <roland@redhat.com>
1982
1983         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing
1984         first argument to clock_getres so we ever enable kernel timers.
1985
1986 2004-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
1987
1988         * init.c (nptl_version): Add __attribute_used__ to nptl_version.
1989
1990 2004-03-12  Richard Henderson  <rth@redhat.com>
1991
1992         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate
1993         oldvalue from CENABLE to CDISABLE.
1994
1995 2004-03-12  Ulrich Drepper  <drepper@redhat.com>
1996
1997         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
1998         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
1999         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
2000         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
2001
2002 2004-03-11  Richard Henderson  <rth@redhat.com>
2003
2004         * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
2005         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID.
2006         * sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
2007
2008 2004-03-11  Jakub Jelinek  <jakub@redhat.com>
2009
2010         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Use jgnl
2011         instead of jnl instruction to jump to SYSCALL_ERROR_LABEL.
2012         * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S (__vfork): Likewise.
2013
2014 2004-03-11  Jakub Jelinek  <jakub@redhat.com>
2015
2016         * forward.c (__pthread_cond_broadcast_2_0,
2017         __pthread_cond_destroy_2_0, __pthread_cond_init_2_0,
2018         __pthread_cond_signal_2_0, __pthread_cond_wait_2_0,
2019         __pthread_cond_timedwait_2_0): Use return 0 as defaction instead of 0.
2020
2021 2004-03-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2022
2023         * sysdeps/sh/tcb-offsets.sym: Add PID.
2024         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Properly handle PID cache.
2025         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
2026
2027 2004-03-10  Ulrich Drepper  <drepper@redhat.com>
2028
2029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: No need to
2030         include <sysdep-cancel.h>, vfork is no cancellation point.
2031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
2032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: Likewise.
2033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: Likewise.
2034
2035 2004-03-10  Jakub Jelinek  <jakub@redhat.com>
2036
2037         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add
2038         libc_hidden_def.
2039         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise.
2040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork):
2041         Likewise.
2042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
2043         Likewise.
2044         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise.
2045         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise.
2046         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Include tcb-offsets.h.
2047         * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Use DO_CALL instead
2048         of DO_CALL_VIA_BREAK.  Work around a gas problem.
2049
2050         * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: Remove.
2051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
2052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: New file.
2053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
2054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: New file.
2055         * sysdeps/powerpc/tcb-offsets.sym: Add PID.
2056
2057         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S (__vfork): Don't use
2058         a local register for saving old PID.  Negate PID in parent upon exit.
2059
2060         * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Include
2061         tcb-offsets.h.
2062         (__vfork): Negate PID if non-zero and set to INT_MIN if zero
2063         before syscall, set to the old value in the parent afterwards.
2064         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: New file.
2065         * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Include
2066         tcb-offsets.h.
2067         (__vfork): Negate PID if non-zero and set to INT_MIN if zero
2068         before syscall, set to the old value in the parent afterwards.
2069         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: New file.
2070         * sysdeps/s390/tcb-offsets.sym: Add PID.
2071
2072         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Remove.
2073         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: New file.
2074         * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: New file.
2075         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: New file.
2076         * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: New file.
2077         * sysdeps/sparc/tcb-offsets.sym: Add PID.
2078
2079 2004-03-10  Andreas Schwab  <schwab@suse.de>
2080
2081         * sysdeps/ia64/tcb-offsets.sym: Add PID.
2082         * sysdeps/unix/sysv/linux/ia64/vfork.S: New file.
2083         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Properly handle PID cache.
2084
2085 2004-03-09  Jakub Jelinek  <jakub@redhat.com>
2086
2087         * tst-cancel20.c (do_one_test): Clear in_sh_body first.
2088         * tst-cancel21.c (do_one_test): Likewise.
2089         Reported by Gordon Jin <gordon.jin@intel.com>.
2090
2091 2004-02-09  Jakub Jelinek  <jakub@redhat.com>
2092
2093         * sysdeps/unix/sysv/linux/i386/vfork.S (SAVE_PID): Negate PID
2094         if non-zero and set to INT_MIN if zero.
2095         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SAVE_PID): Likewise.
2096         * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Include tcb-offsets.h.
2097         (SAVE_PID, RESTORE_PID): Define.
2098         (__vfork): Use it.
2099         * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: Include tcb-offsets.h.
2100         Use relative path to avoid including NPTL i386/vfork.S.
2101         (SAVE_PID, RESTORE_PID): Define.
2102         * sysdeps/unix/sysv/linux/raise.c: Include limits.h.
2103         (raise): Handle THREAD_SELF->pid INT_MIN the same as 0.
2104         * Makefile (tests): Add tst-vfork1, tst-vfork2, tst-vfork1x and
2105         tst-vfork2x.
2106         (tests-reverse): Add tst-vfork1x and tst-vfork2x.
2107         * tst-vfork1.c: New test.
2108         * tst-vfork2.c: New test.
2109         * tst-vfork1x.c: New test.
2110         * tst-vfork2x.c: New test.
2111
2112 2004-03-08  Ulrich Drepper  <drepper@redhat.com>
2113
2114         * sysdeps/i386/tcb-offsets.sym: Add PID.
2115         * sysdeps/x86_64/tcb-offsets.sym: Likewise.
2116         * sysdeps/unix/sysv/linux/i386/vfork.S: New file.
2117         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2118
2119 2004-03-08  Steven Munroe  <sjmunroe@us.ibm.com>
2120
2121         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove leading tabs.
2122
2123 2004-03-08  H.J. Lu  <hongjiu.lu@intel.com>
2124
2125         * sysdeps/s390/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
2126         _rtld_global_ro.
2127
2128 2004-03-07  Ulrich Drepper  <drepper@redhat.com>
2129
2130         * sysdeps/ia64/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
2131         _rtld_global_ro.
2132
2133         * tst-once4.c: Remove unnecessary macro definition.
2134
2135         * tst-mutex7.c (do_test): Limit thread stack size.
2136         * tst-once2.c (do_test): Likewise.
2137         * tst-tls3.c (do_test): Likewise.
2138         * tst-tls1.c (do_test): Likewise.
2139         * tst-signal3.c (do_test): Likewise.
2140         * tst-kill6.c (do_test): Likewise.
2141         * tst-key4.c (do_test): Likewise.
2142         * tst-join4.c (do_test): Likewise.
2143         * tst-fork1.c (do_test): Likewise.
2144         * tst-context1.c (do_test): Likewise.
2145         * tst-cond2.c (do_test): Likewise.
2146         * tst-cond10.c (do_test): Likewise.
2147         * tst-clock2.c (do_test): Likewise.
2148         * tst-cancel10.c (do_test): Likewise.
2149         * tst-basic2.c (do_test): Likewise.
2150         * tst-barrier4.c (do_test): Likewise.
2151
2152 2004-03-05  Ulrich Drepper  <drepper@redhat.com>
2153
2154         * sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate.
2155
2156 2004-03-01  Ulrich Drepper  <drepper@redhat.com>
2157
2158         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
2159         (__pthread_cond_timedwait): Optimize wakeup test.
2160         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
2161         (__pthread_cond_wait): Likewise.
2162         * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
2163         * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
2164         Likewise.
2165
2166 2004-02-29  Ulrich Drepper  <drepper@redhat.com>
2167
2168         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
2169         (__lll_mutex_lock_wait): Optimize a bit more.  Just one copy of
2170         the atomic instruction needed.
2171         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
2172         (__lll_mutex_lock_wait): Likewise.
2173
2174 2004-02-28  Ulrich Drepper  <drepper@redhat.com>
2175
2176         * Makefile (tests): Add tst-cond14 and tst-cond15.
2177         * tst-cond14.c: New file.
2178         * tst-cond15.c: New file.
2179
2180 2004-02-27  Ulrich Drepper  <drepper@redhat.com>
2181
2182         * sysdeps/pthread/createthread.c (create_thread): Remove use of
2183         CLONE_STOPPED.  We cannot use SIGCONT which means CLONE_STOPPED
2184         needs to be implemented differently to be useful.
2185
2186 2004-02-26  Ulrich Drepper  <drepper@redhat.com>
2187
2188         * pthread_attr_setschedparam.c: Don't test priority against limits
2189         here.  Set ATTR_FLAG_SCHED_SET flag.
2190         * pthread_attr_setschedpolicy.c: Set ATTR_FLAG_POLICY_SET flag.
2191         * pthread_create.c (__pthread_create_2_1): Copy scheduling attributes
2192         from parent thread to child.  If attribute is used and scheduling
2193         parameters are not inherited, copy parameters from attribute or
2194         compute them.  Check priority value.
2195         * pthread_getschedparam.c: If the parameters aren't known yet get
2196         them from the kernel.
2197         * pthread_setschedparam.c: Set ATTR_FLAG_SCHED_SET and
2198         ATTR_FLAG_POLICY_SET flag for thread.
2199         * sysdeps/unix/sysv/linux/internaltypes.h: Define ATTR_FLAG_SCHED_SET
2200         and ATTR_FLAG_POLICY_SET.
2201
2202         * sysdeps/pthread/createthread.c: Use tgkill if possible.
2203
2204         * pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Don't
2205         fail if stack address hasn't been set.  Just return 0.
2206
2207 2004-02-25  Ulrich Drepper  <drepper@redhat.com>
2208
2209         * Makefile (tests-nolibpthread): Add tst-unload.  Don't link with
2210         libpthread for the files in this list.
2211         (CFLAGS-tst-unload): Removed.
2212         * tst-unload.c (do_test): Don't use complete path for
2213         LIBPHREAD_SO.
2214
2215         * Makefile: Define sonames for tst-tls5mod, tst-_res1mod1, and
2216         tst-_res1mod2.
2217
2218 2004-02-22  Ulrich Drepper  <drepper@redhat.com>
2219
2220         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
2221         (__lll_mutex_lock_wait): Rewrite so that only one locked memory
2222         operation per round is needed.
2223         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
2224         (__lll_mutex_lock_wait): Likewise.
2225
2226 2004-02-20  Ulrich Drepper  <drepper@redhat.com>
2227
2228         * tst-cancel9.c (cleanup): Don't print to stderr.
2229
2230 2004-02-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2231
2232         * sysdeps/sh/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Fix variable name.
2233
2234 2004-02-20  Jakub Jelinek  <jakub@redhat.com>
2235
2236         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
2237         (__syscall_error_handler2): Call CDISABLE.
2238         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
2239         (__syscall_error_handler2): Call CDISABLE.
2240
2241         * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
2242         Release lock before the loop, don't reacquire it.
2243
2244         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define.
2245
2246 2004-02-19  Andreas Schwab  <schwab@suse.de>
2247
2248         * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
2249         Fix last change.
2250
2251 2004-02-18  Ulrich Drepper  <drepper@redhat.com>
2252
2253         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
2254         (pthread_barrier_wait): After wakeup, release lock only when the
2255         last thread stopped using the barrier object.
2256         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
2257         (pthread_barrier_wait): Likewise.
2258         * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
2259         Likewise.
2260         * Makefile (tests): Add tst-barrier4.
2261         * tst-barrier4.c: New file.
2262
2263         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
2264         (__pthread_cond_timedwait): Perform timeout test while holding
2265         internal lock to prevent wakeup race.
2266         Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
2267         * sysdeps/pthread/pthread_cond_timedwait.c
2268         (__pthread_cond_timedwait): Likewise.
2269         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2270         (__pthread_cond_timedwait): Likewise.
2271
2272 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
2273
2274         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S
2275         (__pthread_rwlock_unlock): Access WRITER as 32-bit value.
2276         * Makefile (tests): Add tst-rwlock13.
2277         * tst-rwlock13.c: New test.
2278
2279 2004-02-16  Ulrich Drepper  <drepper@redhat.com>
2280
2281         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
2282         (__condvar_tw_cleanup): Little optimization.
2283         Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
2284
2285 2004-02-16  Steven Munroe  <sjmunroe@us.ibm.com>
2286
2287         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Replace libc with
2288         libpthread as "lib" parameter to SHLIB_COMPAT.
2289         (__novmx_siglongjmp): Fix typo in function name.
2290         (__novmx_longjmp): Fix typo in function name.
2291
2292 2004-02-13  Ulrich Drepper  <drepper@redhat.com>
2293
2294         * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a
2295         __builtin_expect.
2296
2297         * sysdeps/generic/pt-longjmp.c: Moved to...
2298         * sysdeps/pthread/pt-longjmp.c: ...here.  New file.
2299
2300 2004-01-29  Steven Munroe  <sjmunroe@us.ibm.com>
2301
2302         * Makefile (libpthread-routines): Add pt-cleanup.
2303         * pt-longjmp.c: Removed.
2304         * pt-cleanup.c: Copied __pthread_cleanup_upto to here. New file.
2305         * sysdeps/generic/pt-longjmp.c: Copied longjmp to here. New file.
2306         * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
2307         Version longjmp, siglongjmp for GLIBC_2.3.4.
2308         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: New File.
2309
2310 2004-02-13  Ulrich Drepper  <drepper@redhat.com>
2311
2312         * sysdeps/pthread/pthread_cond_timedwait.c
2313         (__pthread_cond_timedwait): Optimize.  Drop internal lock earlier.
2314         Reuse code.  Add __builtin_expects.
2315
2316         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
2317         (__pthread_cond_timedwait): Get internal lock in case timeout has
2318         passed before the futex syscall.
2319         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2320
2321 2004-01-20  Ulrich Drepper  <drepper@redhat.com>
2322
2323         * allocatestack.c: Pretty printing.
2324
2325         * sysdeps/pthread/createthread.c (create_thread): Don't add
2326         CLONE_DETACHED bit if it is not necessary.
2327
2328 2004-01-16  Ulrich Drepper  <drepper@redhat.com>
2329
2330         * pthread_getattr_np.c: Include ldsodefs.h.
2331
2332 2004-01-16  Richard Henderson  <rth@redhat.com>
2333
2334         * allocatestack.c: Don't declare __libc_stack_end.
2335         * init.c (__pthread_initialize_minimal_internal): Likewise.
2336         * pthread_getattr_np.c (pthread_getattr_np): Likewise.
2337
2338 2004-01-15  Richard Henderson  <rth@redhat.com>
2339
2340         * sysdeps/alpha/tls.h (tcbhead_t): Add private.
2341         (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
2342         TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
2343         GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
2344         (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
2345         (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
2346         (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
2347         * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
2348
2349 2004-01-14  Ulrich Drepper  <drepper@redhat.com>
2350
2351         * init.c (pthread_functions): Make array const.
2352
2353 2004-01-13  Ulrich Drepper  <drepper@redhat.com>
2354
2355         * allocatestack.c (__make_stacks_executable): Change interface.
2356         Check parameters.  Pass parameter on to libc counterpart.
2357         * pthreadP.h: Change declaration.
2358
2359 2004-01-13  Richard Henderson  <rth@redhat.com>
2360
2361         * pthread_attr_setstack.c (__old_pthread_attr_setstack): Use
2362         prototype form.
2363         * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize):
2364         Likewise.
2365
2366         * sysdeps/alpha/Makefile: New file.
2367         * sysdeps/alpha/tcb-offsets.sym: New file.
2368         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
2369         Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.
2370
2371         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
2372         on powerpc version.
2373
2374 2004-01-08  Jakub Jelinek  <jakub@redhat.com>
2375
2376         * Makefile (tests): Add tst-backtrace1.
2377         * tst-backtrace1.c: New test.
2378
2379 2003-12-11  Ulrich Weigand  <uweigand@de.ibm.com>
2380
2381         * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
2382         register as second parameter to the REGISTER macro.
2383         * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
2384         * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
2385         * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
2386         * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
2387         * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
2388         of thread register as second parameter to REGISTER macro in 64 case.
2389
2390 2004-01-03  Ulrich Drepper  <drepper@redhat.com>
2391
2392         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
2393         (CFLAGS-getpid.o): Defined.
2394         (CFLAGS-getpid.os): Defined.
2395
2396 2003-12-31  Ulrich Drepper  <drepper@redhat.com>
2397
2398         * pthread_getattr_np.c (pthread_getattr_np): Make sure stack info
2399         returned for main thread does not overlap with any other VMA.
2400         Patch by Jakub Jelinek.
2401
2402 2003-12-29  Jakub Jelinek  <jakub@redhat.com>
2403
2404         * tst-raise1.c: Include stdio.h.
2405
2406 2003-12-23  Jakub Jelinek  <jakub@redhat.com>
2407
2408         * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid
2409         setting with __ASSUME_TGKILL || defined __NR_tgkill.
2410         If pid is 0, set it to selftid.
2411         * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline.
2412         Don't set self->pid but self->tid.  If self->pid == 0 and self->tid
2413         != 0, return self->tid without doing a syscall.
2414         * descr.h (struct pthread): Move pid field after tid.
2415
2416         * Makefile (tests): Add tst-raise1.
2417         * tst-raise1.c: New file.
2418
2419 2003-12-23  Roland McGrath  <roland@redhat.com>
2420
2421         * tst-oddstacklimit.c: New file.
2422         * Makefile (tests): Add it.
2423         (tst-oddstacklimit-ENV): New variable.
2424
2425         * init.c (__pthread_initialize_minimal_internal): Round stack rlimit
2426         value up to page size for __default_stacksize.
2427
2428 2003-12-21  Ulrich Drepper  <drepper@redhat.com>
2429
2430         * Makefile (tests): Add tst-eintr5.
2431         * tst-eintr5.c: New file.
2432
2433         * eintr.c (eintr_source): Prevent sending signal to self.
2434
2435         * tst-eintr2.c (tf1): Improve error message.
2436
2437 2003-12-20  Ulrich Drepper  <drepper@redhat.com>
2438
2439         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define.
2440         * sysdeps/unix/sysv/linux/getpid.c: New file.
2441         * pthread_cancel.c: Add comment explaining use of PID field.
2442         * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
2443         * pthread_getattr_np.c: Use abs() when comparing PID and TID fields.
2444         * sysdeps/unix/sysv/linux/fork.c: Negate PID field of parent
2445         temporarily to signal the field must not be relied on and updated
2446         by getpid().
2447         * sysdeps/unix/sysv/linux/pt-raise.c: Handle case where PID is
2448         temporarily negative.
2449         * sysdeps/unix/sysv/linux/raise.c: Likewise.
2450
2451 2003-12-19  Ulrich Drepper  <drepper@redhat.com>
2452
2453         * eintr.c (setup_eintr): Add new parameter.  Pass to thread function.
2454         (eintr_source): If ARG != NULL, use pthread_kill.
2455         * tst-eintr1.c: Adjust for this change.
2456         * tst-eintr2.c: Likewise.
2457         * Makefile (tests): Add tst-eintr3 and tst-eintr4.
2458         * tst-eintr3.c: New file.
2459         * tst-eintr4.c: New file.
2460
2461 2003-12-19  Jakub Jelinek  <jakub@redhat.com>
2462
2463         * libc-cancellation.c (__libc_enable_asynccancel): Don't cancel
2464         if CANCELSTATE_BITMASK is set.
2465         * sysdeps/pthread/librt-cancellation.c (__librt_enable_asynccancel):
2466         Likewise.
2467
2468         * Makefile (tests): Add tst-cancel22 and tst-cancel23.
2469         (tests-reverse): Add tst-cancel23.
2470         * tst-cancel22.c: New test.
2471         * tst-cancel23.c: New test.
2472
2473 2003-12-18  Ulrich Drepper  <drepper@redhat.com>
2474
2475         * tst-eintr1.c: Better error messages.
2476
2477         * Makefile (tests): Add tst-eintr2.
2478         * tst-eintr2.c: New file.
2479
2480 2003-12-18  Jakub Jelinek  <jakub@redhat.com>
2481
2482         * Makefile (tests): Add tst-cancel21 and tst-cancelx21.
2483         (CFLAGS-tst-cancelx21.c): Set.
2484         * tst-cancel21.c: New test.
2485         * tst-cancelx21.c: New test.
2486
2487         * unwind.c (FRAME_LEFT): Add adj argument.  Subtract it from each
2488         comparison operand.
2489         (unwind_stop): Use _JMPBUF_CFA_UNWINDS_ADJ macro instead of
2490         _JMPBUF_CFA_UNWINDS.  Adjust FRAME_LEFT invocations.
2491         * pt-longjmp.c: Include jmpbuf-unwind.h.
2492         (__pthread_cleanup_upto): Use _JMPBUF_UNWINDS_ADJ macro instead of
2493         _JMPBUF_UNWINDS.  Adjust compared pointers.
2494         * init.c (__pthread_initialize_minimal_internal): Initialize
2495         pd->stackblock_size.
2496         * sysdeps/pthread/jmpbuf-unwind.h: Removed.
2497         * sysdeps/alpha/jmpbuf-unwind.h: New file.
2498         * sysdeps/i386/jmpbuf-unwind.h: New file.
2499         * sysdeps/powerpc/jmpbuf-unwind.h: New file.
2500         * sysdeps/s390/jmpbuf-unwind.h: New file.
2501         * sysdeps/sh/jmpbuf-unwind.h: New file.
2502         * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file.
2503         * sysdeps/x86_64/jmpbuf-unwind.h: New file.
2504         * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Include stdint.h.
2505         (_JMPBUF_CFA_UNWINDS): Remove.
2506         (_JMPBUF_CFA_UNWINDS_ADJ, _JMPBUF_UNWINDS_ADJ): Define.
2507
2508 2003-12-12  Jakub Jelinek  <jakub@redhat.com>
2509
2510         * Makefile (tests): Add tst-cancel20 and tst-cancelx20.
2511         (CFLAGS-tst-cancelx20.c): Set.
2512         * tst-cancel20.c: New test.
2513         * tst-cancelx20.c: New test.
2514
2515 2003-12-17  Ulrich Drepper  <drepper@redhat.com>
2516
2517         * init.c (__pthread_initialize_minimal_internal): Don't treat
2518         architectures with separate register stack special here when
2519         computing default stack size.
2520
2521 2003-12-17  Roland McGrath  <roland@redhat.com>
2522
2523         * Makefile (tst-cancelx7-ARGS): New variable.
2524         Reportd by Greg Schafer <gschafer@zip.com.au>.
2525
2526 2003-12-17  Jakub Jelinek  <jakub@redhat.com>
2527
2528         * Makefile (tests): Add tst-stack3.  Depend on $(objpfx)tst-stack3-mem.
2529         (generated): Add tst-stack3.mtrace and tst-stack3-mem.
2530         (tst-stack3-ENV): Set.
2531         ($(objpfx)tst-stack3-mem): New.
2532         * tst-stack3.c: New test.
2533
2534 2003-12-10  David Mosberger  <davidm@hpl.hp.com>
2535
2536         * sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init_EPILOG_BEGINS):
2537         Add unwind directives.  Drop unused .regstk directive.
2538         (_fini_EPILOG_BEGINS): Add unwind directives.
2539
2540 2003-12-11  Ulrich Drepper  <drepper@redhat.com>
2541
2542         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
2543         Assume parameter is a pointer.
2544         (lll_futex_wake): Likewise.
2545         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wait):
2546         Likewise.
2547         (lll_futex_wake): Likewise.
2548         Reported by Boris Hu.
2549         * sysdeps/unix/sysv/linux/unregister-atfork.c
2550         (__unregister_atfork): Pass pointer to refcntr to lll_futex_wait.
2551
2552         * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Simplify a bit.
2553
2554 2003-12-10  Ulrich Drepper  <drepper@redhat.com>
2555
2556         * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define.
2557         * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call
2558         __rtld_lock_initialize for ld.so lock.
2559         Patch in part by Adam Li <adam.li@intel.com>.
2560
2561 2003-12-02  David Mosberger  <davidm@hpl.hp.com>
2562
2563         * Makefile (link-libc-static): Remove -lgcc_eh---it's already mentioned
2564         in $(gnulib).  Also, remove stale comment.
2565
2566 2003-11-12  David Mosberger  <davidm@hpl.hp.com>
2567
2568         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Take
2569         advantage of new syscall stub and optimize accordingly.
2570
2571         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__NR_futex): Rename
2572         from SYS_futex, to match expectations of
2573         sysdep.h:DO_INLINE_SYSCALL.
2574         (lll_futex_clobbers): Remove.
2575         (lll_futex_timed_wait): Rewrite in terms of DO_INLINE_SYSCALL.
2576         (lll_futex_wake): Likewise.
2577         (lll_futex_requeue): Likewise.
2578         (__lll_mutex_trylock): Rewrite to a macro, so we can include this
2579         file before DO_INLINE_SYSCALL is defined (proposed by Jakub
2580         Jelinek).
2581         (__lll_mutex_lock): Likewise.
2582         (__lll_mutex_cond_lock): Likewise.
2583         (__lll_mutex_timed_lock): Likewise.
2584         (__lll_mutex_unlock): Likewise.
2585         (__lll_mutex_unlock_force): Likewise.
2586
2587         * sysdeps/ia64/tls.h: Move declaration of __thread_self up so it
2588         comes before the include of <sysdep.h>.
2589         (THREAD_SELF_SYSINFO): New macro.
2590         (THREAD_SYSINFO): Likewise.
2591         (INIT_SYSINFO): New macro.
2592         (TLS_INIT_TP): Call INIT_SYSINFO.
2593
2594         * sysdeps/ia64/tcb-offsets.sym: Add SYSINFO_OFFSET.
2595
2596         * sysdeps/pthread/createthread.c (create_thread): Use
2597         THREAD_SELF_SYSINFO and THREAD_SYSINFO instead of open code.
2598         * allocatestack.c (allocate_stack): Use THREAD_SYSINFO and
2599         THREAD_SELF_SYSINFO instead of open code.
2600         * sysdeps/i386/tls.h (THREAD_SELF_SYSINFO): New macro.
2601         (THREAD_SYSINFO): Likewise.
2602
2603         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: New file.
2604
2605         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Work around gas problem.
2606
2607 2003-12-06  Ulrich Drepper  <drepper@redhat.com>
2608
2609         * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Use .init_array
2610         instead of .init.  Patch by David Mosberger.
2611
2612 2003-11-30  Thorsten Kukuk  <kukuk@suse.de>
2613
2614         * sysdeps/pthread/configure.in: Remove broken declaration in C
2615         cleanup handling check.
2616
2617 2003-11-30  Andreas Jaeger  <aj@suse.de>
2618
2619         * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
2620         * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
2621         Likewise.
2622
2623 2003-11-27  Jakub Jelinek  <jakub@redhat.com>
2624
2625         * sysdeps/unix/sysv/linux/internaltypes.h (ATTR_FLAG_OLDATTR): Define.
2626         * pthread_attr_destroy.c: Include shlib-compat.h.
2627         (__pthread_attr_destroy): Return immediately if ATTR_FLAG_OLDATTR
2628         is set in iattr->flags.
2629         * pthread_attr_init.c (__pthread_attr_init_2_0): Set ATTR_FLAG_OLDATTR.
2630
2631 2003-11-21  Jakub Jelinek  <jakub@redhat.com>
2632
2633         * Makefile (distribute): Add tst-cleanup4aux.c.
2634
2635         * tst-cond12.c (prepare): Add prototype.  Move after test-skeleton.c
2636         include.
2637
2638 2003-11-21  Ulrich Drepper  <drepper@redhat.com>
2639
2640         * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use
2641         pthread_cond_signal.
2642
2643         * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Don't
2644         store mutex address if the current value is ~0l.
2645         * sysdeps/pthread/pthread_cond_timedwait.c
2646         (__pthread_cond_timedwait): Likewise.
2647         * sysdeps/pthread/pthread_cond_broadcast.c
2648         (__pthread_cond_broadcast): Don't use requeue for pshared
2649         condvars.
2650
2651         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2652         (__pthread_cond_wait): Don't store mutex address if the current
2653         value is ~0l.
2654         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2655         (__pthread_cond_timedwait): Likewise.
2656         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
2657         (__pthread_cond_broadcast): Don't use requeue for pshared
2658         condvars.
2659
2660         * pthread_cond_init.c (__pthread_cond_init): Initialize __mutex
2661         element with ~0l for pshared condvars, with NULL otherwise.
2662
2663         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
2664         (__pthread_cond_wait): Don't store mutex address if the current
2665         value is ~0l.
2666         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
2667         (__pthread_cond_timedwait): Likewise.
2668         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
2669         (__pthread_cond_broadcast): Don't use requeue for pshared
2670         condvars.
2671
2672         * Makefile: Add rules to build and run tst-cond12 and tst-cond13.
2673         * tst-cond12.c: New file.
2674         * tst-cond13.c: New file.
2675
2676 2003-11-17  Ulrich Drepper  <drepper@redhat.com>
2677
2678         * sysdeps/pthread/configure.in: Make missing forced unwind support
2679         fatal.
2680
2681 2003-11-11  Ulrich Drepper  <drepper@redhat.com>
2682
2683         * pthreadP.h: Don't declare __pthread_unwind as weak inside libpthread.
2684
2685 2003-11-06  Ulrich Drepper  <drepper@redhat.com>
2686
2687         * Makefile: Add magic to clean up correctly.
2688
2689 2003-11-05  Jakub Jelinek  <jakub@redhat.com>
2690
2691         * unwind.c (FRAME_LEFT): Define.
2692         (unwind_stop): Handle old style cleanups here.
2693         (__pthread_unwind): Handle old style cleanups only if
2694         !HAVE_FORCED_UNWIND.
2695         * Makefile (tests): Add tst-cleanup4 and tst-cleanupx4.
2696         (CFLAGS-tst-cleanupx4.c): Add -fexceptions.
2697         ($(objpfx)tst-cleanup4): Depend on $(objpfx)tst-cleanup4aux.o.
2698         ($(objpfx)tst-cleanupx4): Likewise.
2699         * tst-cleanup4.c: New test.
2700         * tst-cleanup4aux.c: New.
2701         * tst-cleanupx4.c: New test.
2702
2703 2003-11-04  Ulrich Drepper  <drepper@redhat.com>
2704
2705         * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
2706         lll_mutex_*lock macros to skip atomic operations on some archs.
2707
2708 2003-11-03  Ulrich Drepper  <drepper@redhat.com>
2709
2710         * sysdeps/pthread/tst-timer.c (main): Initialize
2711         sigev2.sigev_value as well.
2712
2713 2003-10-15  Roland McGrath  <roland@redhat.com>
2714
2715         * sysdeps/pthread/configure.in: Barf if visibility attribute support
2716         is missing.
2717         * sysdeps/pthread/configure: Regenerated.
2718
2719 2003-10-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2720
2721         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Completely revamp the
2722         locking macros.  No distinction between normal and mutex locking
2723         anymore.
2724         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Rewrite mutex locking.
2725         Merge bits from lowlevelmutex.S we still need.
2726         * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Remove.
2727         * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
2728         * sysdeps/unix/sysv/linux/sh/not-cancel.h: New file.
2729         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Adjust for
2730         new mutex implementation.
2731         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
2732         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
2733         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
2734         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
2735         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
2736         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
2737         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
2738         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
2739         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
2740         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Also defined
2741         symbol for entry point to avoid cancellation.
2742
2743 2003-10-07  Jakub Jelinek  <jakub@redhat.com>
2744
2745         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Backout 2003-10-02
2746         changes.
2747         (SAVE_OLDTYPE_0): Fix a typo.
2748
2749 2003-10-03  Ulrich Drepper  <drepper@redhat.com>
2750
2751         * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
2752         Check __sigsetjmp return value.  Reported by Daniel Jacobowitz.
2753
2754 2003-10-02  Ulrich Drepper  <drepper@redhat.com>
2755
2756         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (DOCARGS_1): Use
2757         correct offset.
2758
2759 2003-10-02  Jakub Jelinek  <jakub@redhat.com>
2760
2761         * Makefile (tests): Add tst-cancel19.
2762         * tst-cancel19.c: New test.
2763
2764 2003-10-02  Ulrich Drepper  <drepper@redhat.com>
2765
2766         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix saving and
2767         restoring of the old cancellation type.
2768
2769 2003-09-30  Jakub Jelinek  <jakub@redhat.com>
2770
2771         * sysdeps/pthread/malloc-machine.h: Remove misleading comment.
2772
2773 2003-09-27  Wolfram Gloger  <wg@malloc.de>
2774
2775         * sysdeps/pthread/malloc-machine.h: New file
2776
2777 2003-09-24  Roland McGrath  <roland@redhat.com>
2778
2779         * allocatestack.c (__make_stacks_executable): Don't ignore return
2780         value from _dl_make_stack_executable.
2781
2782 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
2783
2784         * allocatestack.c (__make_stacks_executable): Also change
2785         permission of the currently unused stacks.
2786
2787         * allocatestack.c (change_stack_perm): Split out from
2788         __make_stacks_executable.
2789         (allocate_stack): If the required permission changed between the time
2790         we started preparing the stack and queueing it, change the permission.
2791         (__make_stacks_executable): Call change_stack_perm.
2792
2793         * Makefile: Build tst-execstack-mod locally.
2794         * tst-execstack-mod.c: New file.
2795
2796 2003-09-23  Jakub Jelinek  <jakub@redhat.com>
2797
2798         * Makefile (tests): Only add tst-execstack if have-z-execstack is yes.
2799
2800 2003-09-23  Roland McGrath  <roland@redhat.com>
2801
2802         * tst-execstack.c: New file.
2803         * Makefile (tests): Add it.
2804         ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
2805         (LDFLAGS-tst-execstack): New variable.
2806
2807         * allocatestack.c (allocate_stack): Use GL(dl_stack_flags) to decide
2808         whether to use PROT_EXEC for stack mmap.
2809         (__make_stacks_executable): New function.
2810         * pthreadP.h: Declare it.
2811         * init.c (__pthread_initialize_minimal_internal): Set
2812         GL(dl_make_stack_executable_hook) to that.
2813
2814 2003-09-22  Ulrich Drepper  <drepper@redhat.com>
2815
2816         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Adjust for latest
2817         recommendation from AMD re avoidance of lock prefix.
2818
2819 2003-09-22  Jakub Jelinek  <jakub@redhat.com>
2820
2821         * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Use
2822         lll_futex_timed_wait instead of lll_futex_wait.
2823         * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Removed.
2824         * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Removed.
2825         * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: Removed.
2826         * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: Removed.
2827         * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Removed.
2828         * sysdeps/unix/sysv/linux/s390/sem_wait.c: Removed.
2829         * sysdeps/unix/sysv/linux/s390/sem_post.c: Removed.
2830         * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Removed.
2831         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include atomic.h.
2832         Completely revamp the locking macros.  No distinction between
2833         normal and mutex locking anymore.
2834         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2835         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock_wait,
2836         __lll_lock_timedwait): Fix prototypes.
2837         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_lock_wait,
2838         __lll_lock_timedwait): Likewise.
2839         (lll_mutex_lock, lll_mutex_cond_lock): Use _val instead of _bool
2840         macros, add __builtin_expect.
2841         (lll_mutex_timedlock): Likewise.  Fix return value.
2842         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Removed.
2843         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: Removed.
2844         * sysdeps/unix/sysv/linux/i386/i586/lowlevelmutex.S: Removed.
2845         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: Removed.
2846         * sysdeps/unix/sysv/linux/i386/i686/lowlevelmutex.S: Removed.
2847         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: Removed.
2848         * sysdeps/unix/sysv/linux/lowlevelmutex.c: Removed.
2849         * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: Removed.
2850
2851 2003-09-22  Ulrich Drepper  <drepper@redhat.com>
2852
2853         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
2854         (__lll_mutex_lock_wait): Minor optimization to avoid one atomic
2855         operation if possible.
2856
2857         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks
2858         like jumping over the lock prefix.
2859
2860 2003-09-21  Ulrich Drepper  <drepper@redhat.com>
2861
2862         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the
2863         locking macros.  No distinction between normal and mutex locking
2864         anymore.
2865         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2866         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
2867         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
2868         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Rewrite mutex
2869         locking.  Merge bits from lowlevelmutex.S we still need.
2870         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2871         * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
2872         * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Removed.
2873         * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Removed.
2874         * Makefile (routines): Remove libc-lowlevelmutex.
2875         (libpthread-rountines): Remove lowlevelmutex.
2876         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Adjust
2877         for new mutex implementation.
2878         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
2879         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
2880         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
2881         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
2882         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2883         Likewise.
2884         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2885         Likewise.
2886         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
2887         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
2888         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise
2889         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
2890         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
2891         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
2892         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
2893         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2894         Likewise.
2895         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2896         Likewise.
2897         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
2898         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
2899         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
2900         Don't use requeue.
2901         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
2902         * sysdeps/pthread/pthread_cond_signal.c: Don't use requeue.
2903
2904 2003-09-20  Ulrich Drepper  <drepper@redhat.com>
2905
2906         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't match memory
2907         in parameters of asm with output parameters.
2908
2909         * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change
2910         type of DECR parameter to int.
2911         * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
2912
2913 2003-09-18  Jakub Jelinek  <jakub@redhat.com>
2914
2915         * tst-attr3.c (tf, do_test): Print stack start/end/size and
2916         guardsize for each thread.
2917
2918 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
2919
2920         * sysdeps/pthread/pthread.h (pthread_getattr_np): Clarify usage.
2921         * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
2922         (pthread_attr_setaffinity_np): Handle cpuset == NULL.
2923
2924         * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
2925         (pthread_attr_getaffinity_np): Don't segfault if iattr->cpuset is
2926         NULL.
2927         * pthread_getattr_np.c: Set cpuset using pthread_getaffinity_np.
2928         * pthreadP.h (pthread_getaffinity_np): Add hidden_proto.
2929         * sysdeps/unix/sysv/linux/pthread_getaffinity.c
2930         (pthread_getaffinity_np): Add hidden_def.
2931
2932         * Makefile (tests): Add tst-attr3.
2933         * tst-attr3.c: New test.
2934
2935         * sysdeps/i386/Makefile (CFLAGS-tst-align.c): Remove.
2936
2937 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
2938
2939         * sysdeps/i386/Makefile (CFLAGS-pthread_create.c,
2940         CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
2941
2942 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
2943
2944         * Makefile (CFLAGS-tst-align.c): Add $(stack-align-test-flags).
2945         * tst-align.c: Include tst-stack-align.h.
2946         (tf, do_test): Use TEST_STACK_ALIGN macro.
2947
2948 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
2949
2950         * pthread_attr_init.c (__pthread_attr_init_2_0): Remove unused
2951         variable.
2952
2953 2003-09-16  Ulrich Drepper  <drepper@redhat.com>
2954
2955         * pthread_getattr_np.c (pthread_getattr_np): Correctly fill in the
2956         stack-related values for the initial thread.
2957
2958 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
2959
2960         * Makefile (CFLAGS-pthread_once.c): Add $(uses-callbacks).
2961
2962 2003-09-11  Ulrich Drepper  <drepper@redhat.com>
2963
2964         * pthread_mutex_lock.c: Minor code rearrangements.
2965
2966 2003-09-05  Roland McGrath  <roland@redhat.com>
2967
2968         * pthread_create.c (__pthread_pthread_sizeof_descr): Removed.
2969         Instead, include ../nptl_db/db_info.c to do its magic.
2970         * pthread_key_create.c (__pthread_pthread_keys_max): Removed.
2971         (__pthread_pthread_key_2ndlevel_size): Likewise.
2972         * sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro.
2973         * sysdeps/i386/tls.h (DB_THREAD_SELF): New macro.
2974         * sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro.
2975         * sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro.
2976         * sysdeps/s390/tls.h (DB_THREAD_SELF): New macro.
2977         * sysdeps/sh/tls.h (DB_THREAD_SELF): New macro.
2978         * sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro.
2979         * sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro.
2980         * sysdeps/alpha/td_ta_map_lwp2thr.c: File removed.
2981         * sysdeps/generic/td_ta_map_lwp2thr.c: File removed.
2982         * sysdeps/i386/td_ta_map_lwp2thr.c: File removed.
2983         * sysdeps/ia64/td_ta_map_lwp2thr.c: File removed.
2984         * sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed.
2985         * sysdeps/s390/td_ta_map_lwp2thr.c: File removed.
2986         * sysdeps/sh/td_ta_map_lwp2thr.c: File removed.
2987         * sysdeps/sparc/td_ta_map_lwp2thr.c: File removed.
2988         * sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed.
2989
2990 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
2991
2992         * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Change type
2993         of pthread_t to be compatible with LT.
2994         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
2995         * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
2996         * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
2997         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
2998         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
2999         * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
3000         * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
3001
3002 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
3003
3004         * sysdeps/unix/sysv/linux/i386/not-cancel.h (fcntl_not_cancel): Define.
3005
3006 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
3007
3008         * unwind-forcedunwind.c: Move to...
3009         * sysdeps/pthread/unwind-forcedunwind.c: ...here.
3010         (pthread_cancel_init): Use ARCH_CANCEL_INIT if defined.
3011         * sysdeps/pthread/jmpbuf-unwind.h: New file.
3012         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: New file.
3013         * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: New file.
3014         * unwind.c: Include jmpbuf-unwind.h.
3015         (unwind_stop): Use _JMPBUF_CFA_UNWINDS macro.
3016
3017 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
3018
3019         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
3020         * sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export
3021         pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3.
3022         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
3023         * sysdeps/unix/sysv/linux/alpha/Versions: New file.
3024         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
3025         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
3026         * pthread_attr_setstack.c (__old_pthread_attr_setstack): New function.
3027         (pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
3028         as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
3029         * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New
3030         function.
3031         (pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
3032         as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
3033         * Makefile (tests): Add tst-stack2.
3034         * tst-stack2.c: New test.
3035         * tst-stack1.c: Include limits.h and sys/param.h.
3036         (do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN).
3037
3038         * pthread_condattr_setpshared.c: Include errno.h.
3039         (pthread_condattr_setpshared): Return EINVAL if pshared
3040         is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
3041
3042         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also
3043         defined symbol for entry point to avoid cancellation.
3044         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
3045         Likewise.
3046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
3047         Likewise.
3048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
3049         Likewise.
3050         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h (PSEUDO):
3051         Likewise.
3052         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
3053         Likewise.
3054         * sysdeps/unix/sysv/linux/i386/not-cancel.h (__open_nocancel,
3055         __close_nocancel, __read_nocancel, __write_nocancel,
3056         __waitpid_nocancel): Add attribute_hidden.  If not in libc.so,
3057         libpthread.so or librt.so, define to corresponding function
3058         without _nocancel suffix.
3059         * sysdeps/unix/sysv/linux/s390/not-cancel.h: New file.
3060         * sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file.
3061         * sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file.
3062
3063         * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo.
3064
3065 2003-09-02  Ulrich Drepper  <drepper@redhat.com>
3066
3067         * sysdeps/unix/sysv/linux/i386/not-cancel.h: New file.
3068         * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: New file.
3069
3070         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Make sure the code
3071         in subsections has a symbol associated with it.
3072
3073         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Also
3074         defined symbol for entry point to avoid cancellation.
3075         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Likewise.
3076
3077 2003-09-01  Jakub Jelinek  <jakub@redhat.com>
3078
3079         * Makefile (tests): Add tst-tls5.
3080         (module-names): Add tst-tls5mod{,a,b,c,d,e,f}.
3081         ($(objpfx)tst-tls5mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes.
3082         ($(objpfx)tst-tls5): New.
3083         ($(objpfx)tst-tls6.out): Likewise.
3084         (tests): Depend on $(objpfx)tst-tls6.out.
3085         * tst-tls3.c: Include stdint.h and pthreaddef.h.
3086         (do_test): Check pthread_self () return value alignment.
3087         * tst-tls3mod.c: Include stdint.h and pthreaddef.h.
3088         (tf): Check pthread_self () return value alignment.
3089         * tst-tls5.c: New test.
3090         * tst-tls5.h: New.
3091         * tst-tls5mod.c: New.
3092         * tst-tls5moda.c: New.
3093         * tst-tls5modb.c: New.
3094         * tst-tls5modc.c: New.
3095         * tst-tls5modd.c: New.
3096         * tst-tls5mode.c: New.
3097         * tst-tls5modf.c: New.
3098         * tst-tls6.sh: New test.
3099
3100         * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Add
3101         ptr___pthread_cond_timedwait and ptr___pthread_cond_timedwait_2_0.
3102         * init.c (pthread_functions): Initialize them.
3103         * forward.c (pthread_cond_timedwait@GLIBC_2.0,
3104         pthread_cond_timedwait@@GLIBC_2.3.2): New forwards.
3105         * Versions (libc): Export pthread_cond_timedwait@GLIBC_2.0,
3106         pthread_cond_timedwait@@GLIBC_2.3.2.
3107
3108 2003-09-01  Jakub Jelinek  <jakub@redhat.com>
3109
3110         * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file.
3111         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file.
3112         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file.
3113         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file.
3114         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file.
3115         * sysdeps/unix/sysv/linux/alpha/Versions: New file.
3116
3117         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file.
3118
3119         * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define
3120         _POSIX_THREAD_PRIORITY_SCHEDULING.
3121         * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
3122
3123 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
3124
3125         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock): Avoid
3126         nested function, use static inline function from libio.h.
3127         Code by Richard Henderson.
3128
3129         * sysdeps/pthread/bits/libc-lock.h: Mark pthread_setcancelstate as
3130         weak.
3131
3132 2003-08-30  Jakub Jelinek  <jakub@redhat.com>
3133
3134         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
3135         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: New file.
3136         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: New file.
3137         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: New file.
3138         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: New file.
3139         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: New file.
3140         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: New file.
3141         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: New file.
3142         * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: New file.
3143         * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: New file.
3144         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: New file.
3145         * sysdeps/unix/sysv/linux/sparc/pthread_once.c: New file.
3146         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
3147         * sysdeps/unix/sysv/linux/sparc/fork.c: New file.
3148         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: New file.
3149         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: New file.
3150         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: New file.
3151         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: New file.
3152         * sysdeps/sparc/sparc32/pthread_spin_lock.c: New file.
3153         * sysdeps/sparc/sparc32/pthread_spin_trylock.c: New file.
3154         * sysdeps/sparc/sparc32/pthreaddef.h: New file.
3155         * sysdeps/sparc/sparc64/pthread_spin_lock.c: New file.
3156         * sysdeps/sparc/sparc64/pthread_spin_trylock.c: New file.
3157         * sysdeps/sparc/sparc64/pthread_spin_unlock.c: New file.
3158         * sysdeps/sparc/sparc64/pthreaddef.h: New file.
3159         * sysdeps/sparc/tls.h: New file.
3160         * sysdeps/sparc/tcb-offsets.sym: New file.
3161         * sysdeps/sparc/Makefile: New file.
3162         * sysdeps/sparc/td_ta_map_lwp2thr.c: New file.
3163         * init.c [__sparc__] (__NR_set_tid_address): Define.
3164
3165 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
3166
3167         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock,
3168         _IO_release_lock): Define.
3169
3170 2003-08-29  Jakub Jelinek  <jakuB@redhat.com>
3171
3172         * tst-cancel4.c (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add
3173         sigemptyset before sigaddset.  Reported by jreiser@BitWagon.com.
3174
3175 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
3176
3177         * sysdeps/pthread/pthread.h (pthread_exit): Remove __THROW.
3178         (__pthread_cleanup_class): Add missing return types of member
3179         functions.
3180
3181 2003-08-26  Steven Munroe <sjmunroe@us.ibm.com>
3182
3183         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
3184         (lll_mutex_unlock_force): Add memory barrier between store and futex
3185         syscall.
3186
3187 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
3188
3189         * tst-cancel4.c (do_test): Also unlink tempfname and remove
3190         tempmsg in first loop.
3191
3192 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
3193
3194         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
3195         _POSIX_THREAD_PRIORITY_SCHEDULING.
3196         * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
3197
3198 2003-08-07  Jakub Jelinek  <jakub@redhat.com>
3199
3200         * sysdeps/pthread/bits/libc-lock.h [_LIBC && SHARED]
3201         (__rtld_lock_default_lock_recursive,
3202         __rtld_lock_default_unlock_recursive): Define.
3203         [_LIBC && SHARED] (__rtld_lock_lock_recursive,
3204         __rtld_lock_unlock_recursive): Define using
3205         GL(_dl_rtld_*lock_recursive).
3206         * init.c (__pthread_initialize_minimal_internal): Initialize
3207         _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
3208         Lock GL(_dl_load_lock) the same number of times as
3209         GL(_dl_load_lock) using non-mt implementation was nested.
3210
3211         * pthreadP.h (__pthread_cleanup_upto): Add hidden_proto.
3212         * pt-longjmp.c (__pthread_cleanup_upto): Add hidden_def.
3213
3214 2003-08-06  Jakub Jelinek  <jakub@redhat.com>
3215
3216         * tst-cancel17.c (do_test): Make len2 maximum of page size and
3217         PIPE_BUF.
3218
3219 2003-08-07  Jakub Jelinek  <jakub@redhat.com>
3220
3221         * pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.
3222
3223 2003-08-03  Jakub Jelinek  <jakub@redhat.com>
3224
3225         * sysdeps/pthread/createthread.c (do_clone): Move error handling
3226         to first syscall error check.  Move syscall error check for tkill
3227         into __ASSUME_CLONE_STOPPED #ifdef.
3228
3229 2003-08-02  Ulrich Drepper  <drepper@redhat.com>
3230
3231         * sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED
3232         is not defined, do explicit synchronization.
3233         (create_thread): Do not lock pd->lock here.  If __ASSUME_CLONE_STOPPED
3234         is not defined also unlock pd->lock for non-debugging case in case
3235         it is necessary.
3236         * pthread_create.c (start_thread): Always get and release pd->lock
3237         if __ASSUME_CLONE_STOPPED is not defined.
3238         (start_thread_debug): Removed.  Adjust users.
3239         * allocatestack.c (allocate_stack): Always initialize lock if
3240         __ASSUME_CLONE_STOPPED is not defined.
3241         * Makefile (tests): Add tst-sched1.
3242         * tst-sched1.c: New file.
3243
3244         * sysdeps/pthread/createthread.c (do_clone): Only use
3245         sched_setschduler and pass correct parameters.
3246
3247 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
3248
3249         * sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
3250         pthread_attr_setstacksize): Change PTHREAD_STACK_SIZE to
3251         PTHREAD_STACK_MIN in comments.
3252
3253 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
3254
3255         * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
3256         Shut up warnings if INTERNAL_SYSCALL_ERROR_P does not use its first
3257         argument.
3258         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
3259         * pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise.
3260         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Include pthreaddef.h.
3261         (__pthread_cleanup_upto): Fix prototype.
3262         (_longjmp_unwind): Adjust caller.
3263         * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_timedlock):
3264         Change second argument to const struct pointer.
3265         * tst-sem8.c (main): Remove unused s2 and s3 variables.
3266         * tst-sem9.c (main): Likewise.
3267         * unwind.c: Include string.h for strlen prototype.
3268
3269 2003-07-31  Ulrich Drepper  <drepper@redhat.com>
3270
3271         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
3272         (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined.
3273         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
3274         Define HAVE_CMOV.
3275         Patch by Nicholas Miell <nmiell@attbi.com>.
3276
3277 2003-07-30  Jakub Jelinek  <jakub@redhat.com>
3278
3279         * init.c (__pthread_initialize_minimal_internal): Initialize
3280         GL(dl_init_static_tls).
3281         * pthreadP.h (__pthread_init_static_tls): New prototype.
3282         * allocatestack.c (init_one_static_tls, __pthread_init_static_tls):
3283         New functions.
3284         * Makefile (tests): Add tst-tls4.
3285         (modules-names): Add tst-tls4moda and tst-tls4modb.
3286         ($(objpfx)tst-tls4): Link against libdl and libpthread.
3287         ($(objpfx)tst-tls4.out): Depend on tst-tls4moda.so and
3288         tst-tls4modb.so.
3289         * tst-tls4.c: New file.
3290         * tst-tls4moda.c: New file.
3291         * tst-tls4modb.c: New file.
3292
3293 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3294
3295         * sysdeps/pthread/timer_create.c (timer_create): Call timer_delref
3296         before __timer_dealloc.
3297         * sysdeps/pthread/timer_routines.c (__timer_thread_find_matching):
3298         Don't call list_unlink.
3299
3300 2003-07-29  Roland McGrath  <roland@redhat.com>
3301
3302         * Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules).
3303
3304 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
3305
3306         * tst-cancel17.c (do_test): Check if aio_cancel failed.
3307         Don't reuse struct aiocb A if it failed.
3308         Write fpathconf (fds[1], _PC_PIPE_BUF) + 2 bytes using aio_write,
3309         not just one byte, as that does not block.
3310
3311 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
3312
3313         * sysdeps/pthread/unwind-resume.c: New file.
3314         * sysdeps/pthread/Makefile (routines, shared-only-routines): Add
3315         unwind-resume in csu subdir.
3316         (CFLAGS-unwind-resume.c, CFLAGS-rt-unwind-resume.c): Compile with
3317         exceptions.
3318         (librt-sysdep_routines, librt-shared-only-routines): Add
3319         rt-unwind-resume.
3320         * sysdeps/pthread/rt-unwind-resume.c: New file.
3321         * unwind-forcedunwind.c: New file.
3322         * Makefile (libpthread-routines): Add unwind-forcedunwind.
3323         (libpthread-shared-only-routines): Likewise.
3324         (CFLAGS-unwind-forcedunwind.c): Compile with exceptions.
3325         * pthreadP.h (pthread_cancel_init): New prototype.
3326         * pthread_cancel.c (pthread_cancel): Call pthread_cancel_init.
3327
3328         * sysdeps/pthread/createthread.c (do_thread, create_thread): Make
3329         attr argument const struct pthread_attr *.
3330
3331         * res.c (__res_state): Return __resp.
3332         * descr.h: Include resolv.h.
3333         (struct pthread): Add res field.
3334         * pthread_create.c: Include resolv.h.
3335         (start_thread): Initialize __resp.
3336         * Makefile (tests): Add tst-_res1.
3337         (module-names): Add tst-_res1mod1, tst-_res1mod2.
3338         ($(objpfx)tst-_res1mod2.so): Depend on $(objpfx)tst-_res1mod1.so.
3339         ($(objpfx)tst-_res1): Depend on $(objpfx)tst-_res1mod2.so and
3340         libpthread.
3341         * tst-_res1.c: New file.
3342         * tst-_res1mod1.c: New file.
3343         * tst-_res1mod2.c: New file.
3344
3345 2003-07-21  Ulrich Drepper  <drepper@redhat.com>
3346
3347         * sysdeps/pthread/createthread.c: Don't define CLONE_STOPPED.
3348
3349         * Makefile: Define various *-no-z-defs variables for test DSOs
3350         which has undefined symbols.
3351
3352 2003-07-21  Steven Munroe  <sjmunroe@us.ibm.com>
3353
3354         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
3355         Retry if the stwcx fails to store once_control.
3356
3357 2003-07-20  Ulrich Drepper  <drepper@redhat.com>
3358
3359         * Makefile (libpthread-routines): Add pthread_attr_getaffinity and
3360         pthread_attr_setaffinity.
3361         * Versions [libpthread] (GLIBC_2.3.3): Likewise.
3362         * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
3363         * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
3364         * pthread_attr_destroy.c: Free cpuset element if allocated.
3365         * pthread_create.c: Pass iattr as additional parameter to
3366         create_thread.
3367         * sysdeps/pthread/createthread.c: If attribute is provided and
3368         a new thread is created with affinity set or scheduling parameters,
3369         start thread with CLONE_STOPPED.
3370         * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
3371         pthread_attr_setaffinity.
3372         * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
3373         cpuset element.
3374
3375 2003-07-15  Ulrich Drepper  <drepper@redhat.com>
3376
3377         * tst-tcancel-wrappers.sh: lseek and llseek are not cancelation points.
3378
3379 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
3380
3381         * sysdeps/pthread/configure.in: Require CFI directives also for
3382         ppc and s390.
3383
3384 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
3385
3386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
3387         Add cfi directives.
3388
3389 2003-07-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3390
3391         * sysdeps/sh/tcb-offsets.sym: Add RESULT, TID, CANCELHANDLING and
3392         CLEANUP_JMP_BUF.
3393         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use more
3394         registers as variables.  Call __pthread_mutex_unlock_usercnt.
3395         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
3396         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Store TID
3397         not self pointer in __writer.  Compare with TID to determine
3398         deadlocks.
3399         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
3400         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
3401         Likewise.
3402         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
3403         Likewise.
3404         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add cancellation support.
3405         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
3406         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Define all the nice
3407         macros also when compiling librt.
3408
3409 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
3410
3411         * Makefile (CFLAGS-pthread_once.c): Add -fexceptions
3412         -fasynchronous-unwind-tables.
3413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
3414         (PSEUDO): Add cfi directives.
3415         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO):
3416         Likewise.
3417         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
3418         Likewise.
3419
3420 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
3421
3422         * pthreadP.h (__pthread_unwind_next, __pthread_register_cancel,
3423         __pthread_unregister_cancel): Add prototypes and hidden_proto.
3424         * unwind.c (__pthread_unwind_next): Add hidden_def.
3425         * cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel):
3426         Likewise.
3427         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
3428         Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
3429         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
3430         Likewise.
3431         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
3432         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
3433         Likewise.
3434         * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use
3435         HIDDEN_JUMPTARGET to call __pthread_register_cancel,
3436         __pthread_unregister_cancel and __pthread_unwind_next.
3437
3438 2003-07-04  Jakub Jelinek  <jakub@redhat.com>
3439
3440         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Use
3441         different symbol for the cancellation syscall wrapper and
3442         non-cancellation syscall wrapper.
3443         (PSEUDO_END): Define.
3444
3445 2003-07-05  Richard Henderson  <rth@redhat.com>
3446
3447         * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end.
3448         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_wait,
3449         lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
3450         return actual return value from the syscall, not 0.
3451
3452 2003-07-07  Ulrich Drepper  <drepper@redhat.com>
3453
3454         * descr.h (struct pthread): Add pid field.
3455         * allocatestack.c (allocate_stack): Initialize pid field in descriptor.
3456         (__reclaim_stacks): Likewise.
3457         * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined
3458         also check for PID of the signal source.
3459         (__pthread_initialize_minimal_internal): Also initialize pid field
3460         of initial thread's descriptor.
3461         * pthread_cancel.c: Use tgkill instead of tkill if possible.
3462         * sysdeps/unix/sysv/linux/fork.c: Likewise.
3463         * sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
3464         * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
3465         * sysdeps/unix/sysv/linux/raise.c: Likewise.
3466
3467 2003-07-05  Ulrich Drepper  <drepper@redhat.com>
3468
3469         * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed.
3470         Fix use of parameter.
3471         (__libc_cleanup_pop): Likewise.
3472
3473 2003-07-04  Ulrich Drepper  <drepper@redhat.com>
3474
3475         * init.c (sigcancel_handler): Change parameters to match handler
3476         for SA_SIGACTION.  Check signal number and code to recognize
3477         invalid invocations.
3478
3479 2003-07-03  Roland McGrath  <roland@redhat.com>
3480
3481         * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr):
3482         Apply sizeof (struct pthread) bias to r13 value.
3483
3484 2003-07-03  Ulrich Drepper  <drepper@redh