]> sourceware.org Git - glibc.git/blame - nptl/ChangeLog
Update.
[glibc.git] / nptl / ChangeLog
CommitLineData
35909161
UD
12003-04-14 Ulrich Drepper <drepper@redhat.com>
2
3 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Don't
4 overflow CFA advance instructions.
5 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6
18a8e730
UD
72003-04-14 Jakub Jelinek <jakub@redhat.com>
8
bd4f43b4
UD
9 * sysdeps/i386/tls.h: Rename LOCK to LOCK_PREFIX.
10 * sysdeps/i386/pthread_spin_lock.c: Likewise.
11 * sysdeps/x86_64/tls.h: Likewise. Define LOCK_PREFIX if not already
12 defined.
13
18a8e730
UD
14 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Use
15 DW_CFA_advance_loc2 for .Laddl-.Lsubl.
16 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
17 DW_CFA_advance_loc for .Laddl-.Lsubl.
18
08c765fa
UD
192003-04-13 Ulrich Drepper <drepper@redhat.com>
20
18a8e730
UD
21 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Don't use
22 position-independent unwind data for static libraries.
23 Add missing unwind info. Add comments.
24
ad2be852
UD
25 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Add unwind info.
26 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
27 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
08c765fa
UD
28 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
29
177d1ad3
UD
302003-04-12 Ulrich Drepper <drepper@redhat.com>
31
08c765fa
UD
32 * Makefile: Make sure all cancellation points are compiled with
33 exception and asynchronous unwind tables.
34
177d1ad3
UD
35 * sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug
36 which mishandles loading of global object addresses in PIC.
37 (THREAD_SETMEM_NC): Likewise.
38
09d65ff3
UD
392003-04-11 Ulrich Drepper <drepper@redhat.com>
40
41 * pthread.h: Define new data structure for cleanup buffer. Declare
42 new cleanup handler interfaces.
43 * descr.h: Include <unwind.h> if necessary. Define pthread_unwind_buf.
44 (struct pthread): Add cleanup_jmp_buf pointer. Define
45 HAVE_CLEANUP_JMP_BUF and not HAVE_CANCELBUF.
46 * pthreadP.h: Declare __pthread_unwind. Define __do_cancel to use
47 it. Declare old cleanup handler installation functions.
48 * cleanup.c: Rewrite. Install handler for unwind-based cleanup
49 handling.
50 * cleanup_defer.c: Likewise.
51 * cleanup_compat.c: New file. Old cleanup code.
52 * cleanup_def_compat.c: New file. Old cleanup code.
53 * pthread_create.c (start_thread): Initialize cleanup_jmp_buf element
54 if own thread descriptor.
55 * unwind.c: New file.
56 * forward.c: Add __pthread_unwind.
57 * init.c (pthread_functions): Add __pthread_unwind.
58 * sysdeps/pthread/pthread-functions.s (struct pthread_functions):
59 Add ptr___pthread_unwind.
60 * Versions [GLIBC_2.3.3] (libpthread): Export new cleanup handling
61 and unwind function.
62 * Makefile (libpthread-routines): Add cleanup_compat,
63 cleanup_def_compat, and unwind. Define CFLAGS to enable unwind
64 table generation if necessary.
65 * version.c: Record whether unwind support is compiled in.
66 * sysdeps/pthread/configure.in: Add checks for unwind unterfaces.
67 * sysdeps/pthread/bits/libc-lock.h: Add prototypes of the old cleanup
68 handler interfaces.
69 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add quite a bit of
70 complication to generate unwind information for syscall wrappers.
68107ec0 71 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
09d65ff3
UD
72 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
73 __cleanup_fct_attribute.
74
75 * Makefile: Add rules to build and run tst-cleanup0.
76 * tst-cleanup0.c: New file.
77 * tst-cleanup0.expect: New file.
78
79 * pthread_create.c (deallocate_tsd): Don't take parameter. Adjust
80 caller. Optimize to avoid often unecessary local variable.
81
0dc44b51
RM
822003-04-11 Roland McGrath <roland@redhat.com>
83
84 * Makefile ($(objpfx)multidir.mk): New target, generated makefile that
85 sets variable `multidir'; include that.
86 (generated): Add it.
87 ($(objpfx)$(multidir)/crti.o): New target.
88 [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it.
89
84a80719
UD
902003-04-11 Ulrich Drepper <drepper@redhat.com>
91
92 * tst-attr2.c (do_test): Add cast to avoid warning.
93 * tst-mutex4.c (do_test): Likewise.
94
88ff4759
UD
952003-04-10 Ulrich Drepper <drepper@redhat.com>
96
97 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset CPU clocks
98 in child.
99
b2041097
UD
1002003-04-09 Ulrich Drepper <drepper@redhat.com>
101
102 * Makefile (tests): Add tst-detach1.
103 * tst-detach1.c: New file.
104
f9657e88
UD
1052003-04-08 Ulrich Drepper <drepper@redhat.com>
106
9afe4964
UD
107 * sysdeps/pthread/pthread.h: Remove duplicate
108 pthread_cleanup_{push,pop} definitions.
109
f9657e88
UD
110 * tst-barrier2.c: Eliminate warnings.
111 * tst-cancel4.c: Likewise.
112 * tst-cond4.c: Likewise.
113 * tst-cond6.c: Likewise.
114 * tst-detach1.c: Likewise.
115 * tst-rwlock4.c: Likewise.
116 * tst-rwlock6.c: Likewise.
117 * tst-rwlock7.c: Likewise.
118 * tst-sem3.c: Likewise.
119 * tst-spin2.c: Likewise.
120 * tst-umask1.c: Likewise.
121
69b35e86
UD
1222003-04-07 Ulrich Drepper <drepper@redhat.com>
123
124 * pthread_detach.c (pthread_detach): Fix test for invalid TID.
125
c70ad7d7
UD
1262003-04-06 Ulrich Drepper <drepper@redhat.com>
127
128 * descr.h (struct pthread): Move cancelhandling member to the front.
129
54e0138f
UD
1302003-04-05 Ulrich Drepper <drepper@redhat.com>
131
132 * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare,
133 malloc_parent, and malloc_child statically.
134 (__register_atfork_malloc): New function.
135 (free_mem): Don't free any of the malloc_* variables on the list.
136 * sysdeps/unix/sysv/linux/fork.h: Declare __register_atfork_malloc.
137 Define HAVE_register_atfork_malloc.
138
b22d701b
UD
1392003-04-04 Ulrich Drepper <drepper@redhat.com>
140
141 * sysdeps/pthread/createthread.c (create_thread): Add some more
142 comments explaining when to set multiple_threads and when not.
143
144 * pthreadP.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
145 THREAD_ATOMIC_BIT_SET if not already defined.
146 * sysdeps/i386/tls.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
147 THREAD_ATOMIC_BIT_SET:
148 * sysdeps/x86_64/tls.h: Likewise.
149 * cleanup_defer.c (_pthread_cleanup_push_defer): Rewrite to use
150 THREAD_ATOMIC_CMPXCHG_VAL.
151 (_pthread_cleanup_pop_restore): Likewise.
152 * cancellation.c (__pthread_enable_asynccancel): Likewise.
153 (__pthread_enable_asynccancel_2): Likewise.
154 (__pthread_disable_asynccancel): Likewise.
155 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
156 (__libc_disable_asynccancel): Likewise.
157 * init.c (sigcancel_handler): Likewise.
158 * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise.
159 * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise.
160
86246935
UD
1612003-04-03 Ulrich Drepper <drepper@redhat.com>
162
163 * init.c (sigcancel_handler): Don't set EXITING_BIT here.
164 * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
165 * pthreadP.h (__do_cancel): Set EXITING_BIT here.
166 * Makefile (tests): Add tst-cancel11.
167 * tst-cancel11.c: New file.
168
6b4686a5
UD
1692003-04-01 Ulrich Drepper <drepper@redhat.com>
170
171 * pthread_create.c (deallocate_tsd): Clear/free memory after the last
172 round, not the first. Use specific_used flag instead of local
173 found_nonzero variable. Use THREAD_[SG]ETMEM where possible.
174 (__free_tcb): Don't call deallocate_tsd here.
175 (start_thread): Call deallocate_tsd here.
176 * pthread_setspecific.c: Set specific_used flag really only when
177 needed.
0d73a73b 178 * Makefile (tests): Add tst-tsd3.c and tst-tsd4.
6b4686a5 179 * tst-tsd3.c: New file.
0d73a73b 180 * tst-tsd4.c: New file.
6b4686a5 181
42b2395d
UD
1822003-03-31 Ulrich Drepper <drepper@redhat.com>
183
211d90c5
UD
184 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock):
185 Use atomic_exchange_and_add instead of __lll_add.
186 (__lll_mutex_timedlock): Likewise.
187 Patch by Ian Wienand.
188
1892003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
190
191 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
192 (SINGLE_THREAD_P): Fix typo.
193 * tst-cancel-wrappers.sh: Handle '.'ed symbols.
194
1952003-03-31 Ulrich Drepper <drepper@redhat.com>
196
197 * Makefile (tests): Add tst-align.
198 * tst-align.c: New file.
199 * sysdeps/i386/Makefile: Define CFLAGS-tst-align.
211d90c5 200
42b2395d
UD
201 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called
202 function correctly.
203
211d90c5
UD
204 * tst-tsd2.c: Add casts to avoid warnings.
205
163b180f
UD
2062003-03-30 Ulrich Drepper <drepper@redhat.com>
207
208 * descr.h (struct pthread): Move most often used elements to the front.
209
ea473bad
UD
2102003-03-29 Ulrich Drepper <drepper@redhat.com>
211
212 * Makefile (libpthread-routines): Add pthread_atfork.
213 (libpthread-static-only-routines): Add pthread_atfork.
214
dd731d53
UD
2152003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
216
217 * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
218 of TLS_DTV_AT_TP.
219 (INSTALL_DTV): Add parens.
220 (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC):
221 Use passed descr instead of THREAD_SELF.
222 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S
223 (__lll_mutex_timedlock_wait): Correct expected value after
224 spurious wakeup.
225 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S:
226 Release lock before waking up the waiters.
227 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit
228 criteria. Reorderstruct passed to cleanup handler. Fix
229 handling of cancellation and failung pthread_mutex_unlock call.
230 Use __pthread_enable_asynccancel_2 instead of
231 __pthread_enable_asynccancel.
232 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
233 Return result of lock re-get if it fails.
234 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument
235 for __pthread_cleanup_push.
236 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix
237 completely broken rwlock implementation.
238 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
239 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
240 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
241 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
242 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
243 * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use
244 versioned_symbol macro.
245 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro.
246 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
247
c75d02f0
UD
2482003-03-27 Ulrich Drepper <drepper@redhat.com>
249
5f5004df
UD
250 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare
251 __timer_helper_thread. Declare __start_helper_thread, __helper_once,
252 and __helper_tid.
253 (struct timer): Remove th and bar field.
254 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove
255 debugging code. Create only one helper thread.
256 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill
257 helper thread.
258 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
259 Renamed. Define statically. Use thread info from siginfo.
260 (__helper_once): New variable.
261 (__helper_tid): New variable.
262 (__reset_helper_control): New function.
263 (__start_helper_thread): New function.
264
18d009ca
UD
265 * pthread_create.c (start_thread): Don't use setjmp inside
266 __builtin_expect to work around gcc bug.
267
c75d02f0
UD
268 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
269 timer_delete syscall fails, but not with ENOSYS, set
270 __no_posix_timers.
271
272 * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
273 (timer_settime): Fix typo.
28cf3058
UD
274 * sysdeps/unix/sysv/linux/timer_getoverr.c
275 [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise.
c75d02f0 276
049ac259
JJ
2772003-03-27 Jakub Jelinek <jakub@redhat.com>
278
279 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
280 offset of cleanupbuf.__prev.
281
f93d39dd
JJ
2822003-03-26 Jakub Jelinek <jakub@redhat.com>
283
284 * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
285 of included file.
286
f064e4c5
UD
2872003-03-26 Ulrich Drepper <drepper@redhat.com>
288
289 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP ==
290 NULL provide default definition to syscall.
291
83e886a3
RM
2922003-03-25 Roland McGrath <roland@redhat.com>
293
294 * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
295 (timer_id2ptr): Fix typo.
296
09402f5b
UD
2972003-03-25 Ulrich Drepper <drepper@redhat.com>
298
299 * pthreadP.h: Define SIGCANCEL and SIGTIMER.
300 * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition.
301 * sysdeps/ia64/pthreaddef.h: Likewise.
302 * sysdeps/powerpc/pthreaddef.h: Likewise.
303 * sysdeps/s390/pthreaddef.h: Likewise.
304 * sysdeps/sh/pthreaddef.h: Likewise.
305 * sysdeps/x86_64/pthreaddef.h: Likewise.
306 * init.c (__pthread_initialize_minimal): Block SIGTIMER.
307 * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from
308 being changed.
309 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
310 SIGTIMER is not unblocked.
311 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more
312 RT signal taken.
313 * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to
314 be send.
315 * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just
316 pass pointer through as ID.
317 * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed.
318 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file.
319 * sysdeps/unix/sysv/linux/timer_create.c: New file.
320 * sysdeps/unix/sysv/linux/timer_delete.c: New file.
321 * sysdeps/unix/sysv/linux/timer_getoverr.c: New file.
322 * sysdeps/unix/sysv/linux/timer_gettime.c: New file.
323 * sysdeps/unix/sysv/linux/timer_routines.c: New file.
324 * sysdeps/unix/sysv/linux/timer_settime.c: New file.
325 * sysdeps/unix/sysv/linux/ia64/Versions: New file.
326 * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file.
327 * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file.
328 * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file.
329 * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file.
330 * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file.
331 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file.
332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file.
333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file.
334 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file.
335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file.
336 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file.
337 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
338 * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file.
339 * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file.
340 * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file.
341 * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file.
342 * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file.
343 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
344 * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file.
345 * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file.
346 * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file.
347 * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file.
348 * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file.
349 * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file.
350
351 * pthreadP.h: Remove FRAME_LEFT definition.
352 * cleanup.c (_pthread_cleanup_push): Don't check for reference to
353 already left frame. Programs which have this problem are not POSIX
354 compliant.
355 * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise.
356
5e826ab5
UD
3572003-03-24 Ulrich Drepper <drepper@redhat.com>
358
359 * sysdeps/pthread/tst-timer.c: Check return values of the
360 functions we test.
361
b910f788
RM
3622003-03-23 Roland McGrath <roland@redhat.com>
363
3045a1fe
RM
364 * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
365 * tst-tls3mod.c: Likewise.
366 * tst-tls1.c: Likewise.
367 * tst-tls2.c: Likewise.
368
85047fe3
RM
369 * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
370 undefined behavior.
371
b910f788
RM
372 * tst-join5.c (tf1, tf2): Add a cast.
373
374 * Makeconfig (includes): Append -I$(..)nptl to this variable.
375
376 * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
377 Don't test anything.
378 * tst-cond4.c: Likewise.
379 * tst-cond6.c: Likewise.
380 * tst-flock2.c: Likewise.
381 * tst-mutex4.c: Likewise.
382 * tst-rwlock4.c: Likewise.
383 * tst-signal1.c: Likewise.
384 * tst-spin2.c: Likewise.
385 * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.
386
387 * tst-mutex4.c: Use test-skeleton.c.
388 * tst-spin2.c: Likewise.
389 * tst-sysconf.c: Likewise.
390 * tst-barrier2.c: Likewise.
391 * tst-cond4.c: Likewise.
392 * tst-cond6.c: Likewise.
393 * tst-rwlock4.c: Likewise.
394 * tst-unload.c: Likewise.
395 * tst-flock2.c (do_test): Use return instead of exit.
396
4baa087a
RM
3972003-03-22 Jakub Jelinek <jakub@redhat.com>
398
399 * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
400
5a3ab2fc
UD
4012003-03-21 Ulrich Drepper <drepper@redhat.com>
402
9f07eae2
UD
403 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
404 (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq
405 instead of __lll_compare_and_swap.
406 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
407 Likewise.
408 Removed definition if __lll_compare_and_swap.
409
5a3ab2fc
UD
410 * cancellation.c: Adjust for new form of compare&exchange macros.
411 * cleanup_defer.c: Likewise.
412 * init.c: Likewise.
413 * libc-cancellation.c: Likewise.
414 * old_pthread_cond_broadcast.c: Likewise.
415 * old_pthread_cond_signal.c: Likewise.
416 * old_pthread_cond_timedwait.c: Likewise.
417 * old_pthread_cond_wait.c: Likewise.
418 * pthread_cancel.c: Likewise.
419 * pthread_create.c: Likewise.
420 * pthread_detach.c: Likewise.
421 * pthread_join.c: Likewise.
422 * pthread_key_delete.c: Likewise.
423 * pthread_setcancelstate.c: Likewise.
424 * pthread_setcanceltype.c: Likewise.
425 * pthread_timedjoin.c: Likewise.
426 * pthread_tryjoin.c: Likewise.
427 * sysdeps/pthread/createthread.c: Likewise.
428
b1aea098
UD
4292003-03-20 Ulrich Drepper <drepper@redhat.com>
430
431 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
4baa087a 432 Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
b1aea098
UD
433 definitions. Replace uses with calls to atomic_* functions.
434 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
435 * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
436 __lll_test_and_set calls with atomic_exchange_and_add and
437 atomic_exchange calls respectively.
438 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
439 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
440 * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
441 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
442 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
443 * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
444 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
445
446 * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
447 returns the old value.
448
100a7100
RM
4492003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com>
450
451 * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
452 int for variable OLDVAL and correct inline assembler contraint.
453 * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
454 type int for variable OLD.
455
456 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
457 only for s390-32.
458 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
459 (SINGLE_THREAD_P): Use global variable __local_multiple_threads
460 instead of multiple_threads field in the TCB.
461
95767b36
UD
4622003-03-19 Ulrich Drepper <drepper@redhat.com>
463
4009bf40
UD
464 * sysdeps/i386/i686/bits/atomic.h: Removed.
465 * sysdeps/i386/i586/bits/atomic.h: Removed.
466 * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc.
467 * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc.
468 * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc.
469 * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc.
470 * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc.
471 * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc.
472 * atomic.h: Removed. Moved to glibc.
473
560a784f
UD
474 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add
475 support for clock selection.
476
95767b36
UD
477 * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
478 signalling waiters.
479
043ad426
RM
4802003-03-18 Roland McGrath <roland@redhat.com>
481
94659495
RM
482 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
483 Add __lll_rel_instr first. Add memory clobber.
484 (lll_mutex_unlock): Use __lll_test_and_set.
485 From Paul Mackerras <paulus@samba.org>.
486
487 * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define
488 unconditionally.
489 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
490 (SINGLE_THREAD_P): Add `header.' prefix.
491 From Paul Mackerras <paulus@samba.org>.
492
043ad426
RM
493 * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
494 pthread_timedjoin_np to ...
495 (libpthread: GLIBC_2.3.3): ... here.
496 (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
497
498 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
499 Avoid shadowing VAL variable.
500
501 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
502 New macro.
503
86a9ee5e
UD
5042003-03-18 Ulrich Drepper <drepper@redhat.com>
505
ac9e0aa1
UD
506 * Makefile (tests): Add tst-cond11.
507 * tst-cond11.c: New file.
508
a14b373c
UD
509 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder
510 struct passed to cleanup handler to eliminate one more
511 instruction.
512 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
513
24a49f38
UD
514 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
515 (pthrad_cond_t): Replace __unused field with __clock.
516
517 * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
518 waken all waiters in cleanup handler.
519 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
520 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
521
86a9ee5e
UD
522 * pthread_condattr_getclock.c: New file.
523 * pthread_condattr_setclock.c: New file.
524 * sysdeps/pthread/pthread.h: Declare these new functions.
525 * Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
526 * Makefile (libpthread-routines): Add the new functions.
527 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
528 Renamed field to value. Document use of the bits.
529 * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
530 change.
531 * pthread_condattr_setpshared.c: Likewise.
d5cb8389 532 * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
86a9ee5e
UD
533 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
534 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
535 Add __clock field.
536 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
537 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
538 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
539 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
540 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
541 Implement clock selection.
542 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
543 * pthread-errnos.sym: Add ENOSYS.
544 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
545 _POSIX_CLOCK_SELECTION.
546 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
547
548 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
549 invalid .size directive.
550
98054a05
RM
5512003-03-17 Roland McGrath <roland@redhat.com>
552
553 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
554 Formatting tweaks.
555
001bea71
UD
5562003-03-17 Ulrich Drepper <drepper@redhat.com>
557
4773086e
UD
558 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
559 Use __lll_add instead of spelling it out. Use protected symbol names.
560 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
561 Use __lll_add.
562 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
563 Renamed from lll_compare_and_swap. Use new name where necessary.
564 (__lll_add): Defined.
565 (__lll_dec_if_positive): Defined.
566 (__lll_test_and_set): Defined.
567 * sysdeps/ia64/pthread_spin_init.c: Removed.
568 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
569 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
570 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
571 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
572 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
573 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
574 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
001bea71
UD
575 * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
576 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
577 __sync_lock_release_si.
578 Patch by Jakub Jelinek.
579
580 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
581 Fix timeout handling.
582 (__lll_timedwait_tid): Likewise.
583 (lll_unlock_wake_cb): Wake up other waiters if necessary.
584 Patch by Jakub Jelinek.
585
586 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
587
de4471dd
RM
5882003-03-17 Roland McGrath <roland@redhat.com>
589
590 PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
591 * sysdeps/pthread/pthread_spin_init.c: New file.
592 * sysdeps/pthread/pthread_spin_unlock.c: New file.
593 * sysdeps/powerpc/Makefile: New file.
594 * sysdeps/powerpc/pthread_spin_lock.c: New file.
595 * sysdeps/powerpc/pthread_spin_trylock.c: New file.
596 * sysdeps/powerpc/pthreaddef.h: New file.
597 * sysdeps/powerpc/tcb-offsets.sym: New file.
598 * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
599 * sysdeps/powerpc/tls.h: New file.
600 * sysdeps/powerpc/bits/atomic.h: New file.
601 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
602 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
603 * sysdeps/unix/sysv/linux/lowlevellock.c: New file.
98054a05 604
de4471dd
RM
605 * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
606 * sysdeps/unix/sysv/linux/sem_post.c: New file.
607 * sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
608 * sysdeps/unix/sysv/linux/sem_trywait.c: New file.
609 * sysdeps/unix/sysv/linux/sem_wait.c: New file.
610 * sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
611 * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
612 * sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
613 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
614 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
615 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
616 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
617 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
618 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.
620
621 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
622 not gettimeofday.
623 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
624 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
625 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
626 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
627 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
628
5778033f
UD
6292003-03-17 Ulrich Drepper <drepper@redhat.com>
630
631 * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria.
632 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
633 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
634 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
635 Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>.
636
796038f8
RM
6372003-03-16 Roland McGrath <roland@redhat.com>
638
639 * tst-fork4.c: Include <string.h>.
640 * tst-signal2.c: Likewise.
641 * tst-mutex5.c (do_test): exit -> return.
642 * tst-mutex2.c: Include <stdlib.h>.
643
51d0678c
UD
6442003-03-16 Ulrich Drepper <drepper@redhat.com>
645
5778033f
UD
646 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
647 (__lll_mutex_timedlock_wait): Correct expected value after
648 spurious wakeup. Otherwise we would never wait again.
649
b6e2f87a
UD
650 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
651 zone versus inline asm stupidity. Use correct instructions.
652
51d0678c
UD
653 * tst-rwlock6.c: Add some more status output.
654
8112cc70
RM
6552003-03-15 Roland McGrath <roland@redhat.com>
656
657 * sysdeps/pthread/configure.in: New file.
658 * sysdeps/pthread/configure: New file (generated).
659
49773c19
UD
6602003-03-15 Ulrich Drepper <drepper@redhat.com>
661
662 * allocatestack.c (allocate_stack): Store the exact stack size of
663 user allocated stacks.
664
eec0ca9f
JJ
6652003-03-15 Jakub Jelinek <jakub@redhat.com>
666
667 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
668 (SINGLE_THREAD): Use `header' prefix instead of `header.data'.
669 * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
670 * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
671 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
672 Use `header.' prefix.
673 * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
674
a87731e2
UD
6752003-03-15 Ulrich Drepper <drepper@redhat.com>
676
677 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
678 __builtin_frame_address, use stack pointer.
679
680 * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
681 instead of __builtin_frame_pointer.
682
e22a221d
UD
6832003-03-14 Ulrich Drepper <drepper@redhat.com>
684
92ed3daf
UD
685 * tst-basic1.c (do_test): Add cast to avoid warning.
686 * tst-basic2.c (do_test): Likewise.
687
9b89567d
UD
688 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
689 amount of stack correction.
690
e22a221d
UD
691 * tst-fork4.c: Use test-skeleton.c.
692
2e49caba
RM
6932003-03-14 Roland McGrath <roland@redhat.com>
694
695 * init.c: Fix typo "#eli" for "#else".
696
415ef7d8
RM
6972003-03-14 Steven Munroe <sjmunroe@us.ibm.com>
698
699 * allocatestack.c (__stack_user): Use hidden_data_def.
700 * pthread_create.c (__pthread_keys): Likewise.
701
702 * init.c [__powerpc__] (__NR_set_tid_address): Define it.
703
52287505
RM
7042003-03-14 Roland McGrath <roland@redhat.com>
705
415ef7d8
RM
706 * tst-fork4.c: New file.
707 * Makefile (tests): Add it.
708
52287505
RM
709 * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so
710 we always define the padding space.
711 [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC
712 stopped supporting its own extensions fully.
713 [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper
714 struct also called `header', so `header.multiple_threads' is the field
715 name to use on all machines.
716 * allocatestack.c (allocate_stack): Use `header.' prefix.
717 * sysdeps/pthread/createthread.c (create_thread): Likewise.
718 * pthread_create.c (__pthread_create_2_1): Likewise.
719 * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise.
720 (THREAD_SELF): Likewise.
721 * sysdeps/x86_64/tls.h: Likewise.
722 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
723 (SINGLE_THREAD_P): Likewise.
724 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
725 (SINGLE_THREAD_P): Likewise.
726 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
727 (SINGLE_THREAD_P): Likewise.
728
729 * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18]
730 value directly.
731
c44bf9aa
UD
7322003-03-14 Ulrich Drepper <drepper@redhat.com>
733
e22a221d
UD
734 * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
735 * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
736
0eb18281
UD
737 * pthread_create.c (start_thread): setjmp is expected to return 0.
738
c44bf9aa
UD
739 * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile.
740 (THREAD_GETMEM_NC): Likewise.
741
564cd8b6
UD
7422003-03-13 Ulrich Drepper <drepper@redhat.com>
743
744 * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined
745 and the size of the stack which must be allocated is a multiple,
746 allocate one more page.
747 * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but
748 MULTI_PAGE_ALIASING.
749
6461e577
RM
7502003-03-13 Roland McGrath <roland@redhat.com>
751
752 * pthread_create.c (start_thread): Set EXITING_BIT after the
753 event-reporting (and destructors), not before.
754
b5ec5617
UD
7552003-03-13 Jakub Jelinek <jakub@redhat.com>
756
6461e577
RM
757 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait,
758 lll_futex_wake): Declare register variables as long int instead of
759 unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
760 Make syscall arguments clobbered by the syscall.
761 (lll_futex_wait): Define using lll_futex_timed_wait.
762
763 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13]
764 to void *.
765
766 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
767 PPID if [! NDEBUG].
768
769 * allocatestack.c (nptl_ncreated): Only declare if
770 COLORING_INCREMENT != 0.
771
772 * pthreadP.h (__pthread_enable_asynccancel_2): New prototype.
773 (__libc_enable_asynccancel_2): Remove prototype.
774
b5ec5617
UD
775 * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
776 ctid to match kernel.
777
d0369fb8
UD
7782003-03-12 Ulrich Drepper <drepper@redhat.com>
779
7588880f
UD
780 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
781 libc_multiple_threads.
782 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
783 __libc_multiple_threads to...
784 * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
785
786 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
787 versioning.
788 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
789 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
790
791 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
792 (__pthread_once_internal): Define.
793
794 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
795 macros instead of .symver directly.
796 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
797 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
798
d0369fb8
UD
799 * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
800 * sysdeps/x86_64/tcb-offsets.sym: New file.
801 * sysdeps/x86_64/Makefile: New file.
802
803 * sysdeps/i386/tcb-offsets.sym: Add SELF.
804 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
805 to access own pthread_t in TCB.
806 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
807 Likewise.
808 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
809 Likewise.
810 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
811
0bb2ac85
RM
8122003-03-12 Roland McGrath <roland@redhat.com>
813
814 * pthread-errnos.sym: New file.
815 * Makefile (gen-as-const-headers): New variable, list that file.
816 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
817 header <pthread-errnos.h> instead of defining errno values here.
818 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
819 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
820 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
821 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
822 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
823 Likewise.
824 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
825 Likewise.
826 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
827 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
828 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
829 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
830 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
831 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
832 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
833 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
834 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
835 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
836 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
837 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
838 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
839 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
840 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
841 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
842 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
843 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
844 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
845 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
846 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
847 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
848 * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
849 * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
850 * sysdeps/sh/pthread_spin_trylock.S: Likewise.
851 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
852 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
853
854 * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
855 CLONE_CHILD_SETTID worked.
856
35e148cb
UD
8572003-03-12 Ulrich Drepper <drepper@redhat.com>
858
d0369fb8
UD
859 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
860 file.
861 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
862 file.
863
864 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
865 (pthread_cond_t): Add padding.
866
da49194d
UD
867 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
868 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
869 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
870
35e148cb
UD
871 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
872 (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
873 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
874 (__pthread_rwlock_timedrdlock): Likewise.
875 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
876 (__pthread_rwlock_wrlock): Likewise.
877 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
878 (__pthread_rwlock_rdlock): Likewise.
879
880 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
881
882 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
883 result of lock re-get if it fails.
884
3e976b96
UD
8852003-03-11 Ulrich Drepper <drepper@redhat.com>
886
5a03acfe
UD
887 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
888 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
889 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
890 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
891 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
892 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
893 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
894 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
895 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
896 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
897
898 * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
899 THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
900
901 * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
902 Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
903 * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
904 (create_thread): Likewise.
905 Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
906 * init.c (__pthread_initialize_minimal_internal): Initialize
907 __libc_multiple_threads_ptr if necessary.
908 * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
909 __pthread_multiple_threads and __libc_multiple_threads_ptr.
910 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
911 __libc_multiple_threads.
912 (__libc_pthread_init): Return pointer to __libc_pthread_init if
913 necessary.
914
915 * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
916 (THREAD_SETMEM_NC): Likewise.
917
918 * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
919 * sysdeps/x86_64/pthread_spin_trylock.S: New file.
920 * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
921 * sysdeps/x86_64/pthread_spin_unlock.S: New file.
922
923 * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
924 Eliminate one entire instruction.
925
32a589b1
UD
926 * cancellation.c (__pthread_enable_asynccancel_2): New function.
927 * pthreadP.h: Declare __pthread_enable_asynccancel_2.
928 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
929 (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
930 instead of __pthread_enable_asynccancel.
931 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
932 (__pthread_cond_wait): Likewise.
933 * sysdeps/pthread/pthread_cond_timedwait.c
934 (__pthread_cond_timedwait): Likewise.
935 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
936
3e976b96
UD
937 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
938 (__condvar_cleanup): Wake up all waiters in case we got signaled
939 after being woken up but before disabling asynchronous
940 cancellation.
941 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
942 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
943 (__condvar_cleanup): Likewise.
944
945 * init.c (__NR_set_tid_address): If already defined, don't redefine.
946 Make it an error if architecture has no #if case. Add x86-64.
947
948 * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
949 pt-initfini.s generation.
950
951 * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
952 (TLS_INIT_TP): Fix typo.
953
6c477888
UD
9542003-03-11 Jakub Jelinek <jakub@redhat.com>
955
956 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
957 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
958
959 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
960 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
961 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
962 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
963 * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
964 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
965 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
966 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
967
ea694823
UD
9682003-03-11 Ulrich Drepper <drepper@redhat.com>
969
6c477888
UD
970 * sysdeps/pthread/pthread_cond_timedwait.c
971 (__pthread_cond_timedwait): Return the result of the final
972 locking. If it succeeds, the regular function return value.
973
974 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
975 Return result of the final locking.
976 * version.c (__nptl_main): Work around problems with the strange
977 INTERNAL_SYSCALL macro on ppc32.
978 * init.c (__pthread_initialize_minimal_internal): Unblock
979 SIGCANCEL in case the parent blocked it.
980 Reported by Paul Mackerras <paulus@samba.org>.
981
ea694823
UD
982 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
983 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
984 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
985
b33e6163
RM
9862003-03-11 Jakub Jelinek <jakub@redhat.com>
987
988 * sysdeps/pthread/pthread_cond_timedwait.c
989 (__pthread_cond_timedwait): Unlock and fail if
990 __pthread_mutex_unlock_internal failed.
991
992 * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
993 (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
994 Use ARCH_CLONE.
995 * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
996 [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
997 STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
998 ALLOCATE_STACK): New macros.
999 (TLS_TPADJ): New macro.
1000 (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
1001 (allocate_stack): Handle TLS_DTV_AT_TP and
1002 NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
1003 * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
1004 Don't set PD->self.
1005 * init.c [__ia64__] (__NR_set_tid_address): Define.
1006
1007 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
1008 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
1009 * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
1010 * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
1011 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
1012 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
1013 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
1014 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
1015 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
1016 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
1017 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
1018 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
1019 * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
1020 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
1021 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
1022 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
1023 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
1024 * sysdeps/ia64/bits/atomic.h: New file.
1025 * sysdeps/ia64/Makefile: New file.
1026 * sysdeps/ia64/pthread_spin_init.c: New file.
1027 * sysdeps/ia64/pthread_spin_lock.c: New file.
1028 * sysdeps/ia64/pthread_spin_trylock.c: New file.
1029 * sysdeps/ia64/pthread_spin_unlock.c: New file.
1030 * sysdeps/ia64/pthreaddef.h: New file.
1031 * sysdeps/ia64/tcb-offsets.sym: New file.
1032 * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
1033 * sysdeps/ia64/tls.h: New file.
1034
1035 * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
1036 to syscall instead of no arguments.
1037
2b30b2e5
UD
10382003-03-10 Ulrich Drepper <drepper@redhat.com>
1039
db5f2fc9
UD
1040 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
1041 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
1042 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
1043 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
1044
1045 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
1046 unused code.
1047
6a4263e3
UD
1048 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
1049
3de7c2a9
UD
1050 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
1051 lowlevelbarrier.sym.
1052 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
1053 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
1054 Include lowlevelbarrier.h and don't define offsets locally.
6a4263e3 1055 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
3de7c2a9 1056
2a544d82
UD
1057 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
1058 (__lll_mutex_lock_wait): Reverse order of first two parameters.
1059 (__lll_mutex_timedlock_wait): Likewise.
1060 (lll_mutex_lock): Adjust asm for that.
1061 (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
1062 (lll_lock): Adjust asm for operand order change.
1063 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
1064 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
1065
ec06436c
UD
1066 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
1067 Reverse order of parameters.
1068 (__lll_timedwait_tid): Remove regparms attribute.
1069 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
1070 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
1071
3273832c
UD
1072 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1073 (__lll_timedwait_tid): Remove one unnecessary instruction.
1074
51f32ab8
UD
1075 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
1076 __lll_mutex_timedlock_wait only for NOT_IN_libc.
1077 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
1078 lowlevelmutex.S.
1079
1080 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
1081 lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
1082 for NOT_IN_libc.
1083 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
1084 lowlevellock.S.
1085
fad48d9e
UD
1086 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
1087 LOCK is already defined. Don't define __lll_mutex_timedlock_wait
1088 for libc.so.
1089 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
1090 define LOCK here (if UP is not defined). The actual code is in
1091 lowlevelmutex.S.
1092
9356d063
UD
1093 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
1094 LOCK is already defined. Don't define lll_unlock_wake_cb and
1095 __lll_timedwait_tid for libc.so.
1096 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
1097 define LOCK here (if UP is not defined). The actual code is in
1098 lowlevellock.S.
1099
ebf0cbc5 1100 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
106f6f9d
UD
1101 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
1102 * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
1103 instead of lowlevelsem.h.
1104 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
1105 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
1106 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
0be8ee21 1107
c915e5ad
UD
1108 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
1109 lowlevelrwlock.sym.
1110 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
1111 * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
146fa1ee 1112 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
c915e5ad 1113
4c3c2e8a
UD
1114 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
1115 register loading.
1116 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
1117 last changed. D'oh.
1118
2b30b2e5
UD
1119 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
1120
1121 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
1122 of __libc_locking_needed.
1123 (lll_trylock): Initialize %eax to zero.
1124
2b30b2e5
UD
1125 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
1126 pthread_cond_t definition.
1127
e48f9638
RM
11282003-03-10 Roland McGrath <roland@redhat.com>
1129
1130 * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
1131 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
1132 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
1133 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
1134 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
1135
1136 * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
1137 Instead of setting PD->multiple_threads, set globals
1138 __pthread_multiple_threads and __libc_multiple_threads.
1139 * sysdeps/pthread/createthread.c (create_thread): Likewise.
1140 * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
1141 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
1142
1143 * descr.h (struct pthread): Conditionalize first member on
1144 [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
1145 containing an anonymous tcbhead_t. Move `list' member out.
1146 [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
1147 * allocatestack.c: Remove use of `header.data.' prefix.
1148 * pthread_create.c: Likewise.
1149 * init.c (__pthread_initialize_minimal_internal): Likewise.
1150 * sysdeps/pthread/createthread.c (create_thread): Likewise.
1151 * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
1152 (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
1153 * sysdeps/x86_64/tls.h: Likewise.
1154 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
1155 (SINGLE_THREAD_P): Likewise.
1156 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
1157 (SINGLE_THREAD_P): Likewise.
1158 * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
1159 * sysdeps/s390/tls.h (tcbhead_t): Likewise.
1160
c37cae9e
UD
11612003-03-09 Ulrich Drepper <drepper@redhat.com>
1162
d38c777e
RM
1163 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
1164
7b44a5e0 1165 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
2b30b2e5 1166 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
7b44a5e0 1167
c2e5e085
UD
1168 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
1169 leftovers from the ia32 code.
1170
1171 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
1172 memory load.
1173 (clear_once_control): Don't load %esi.
1174
1175 * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
1176 handling.
1177
1178 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
1179
cd4b2a55
UD
1180 * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
1181 * sysdeps/unix/sysv/linux/createthread.c: ...here.
1182
c37cae9e
UD
1183 * Makefile (tests): Add tst-cond10.
1184 * tst-cond10.c: New file.
1185
d130a341
UD
11862003-03-08 Ulrich Drepper <drepper@redhat.com>
1187
ccf1d573
UD
1188 * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
1189 * tst-signal3.c (do_test): Likewise.
1190 * tst-sem5.c (do_test): Likewise.
1191 * tst-kill6.c (do_test): Likewise.
1192 * tst-tls3.c (do_test): Likewise. Include <errno.h>.
1193
1194 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
1195 of inc/dec.
1196 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
1197 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
1198 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
1199 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
1200 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
1201 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
1202 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1203 Likewise.
1204 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1205 Likewise.
1206 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
1207 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
1208 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1209 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
1210 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
1211 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
1212 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
1213 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
1214
d130a341
UD
1215 * allocatestack.c (allocate_stack): If mprotect() fails free the
1216 TLS memory.
1217
bc6389ad
UD
12182003-03-07 Ulrich Drepper <drepper@redhat.com>
1219
41d4d223
UD
1220 * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
1221
1222 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
1223 lll_wake_tid. This was used only to work around kernel limits in
1224 the early days.
1225 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1226 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
1227 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
1228 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
1229
bc6389ad
UD
1230 * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
1231 (__pthread_initialize_minimal_internal): Change initialization of
1232 __static_tls_align_m1 appropriately.
1233 * pthreadP.h (__static_tls_align_m1): Renamed from
1234 __static_tls_align.
1235 * allocatestack.c (allocate_stack): Use __static_tls_align_m1
1236 instead of __static_tls_align-1.
1237
cc775edf
UD
12382003-03-04 Ulrich Drepper <drepper@redhat.com>
1239
0de28d5c 1240 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6245b6ae 1241
518b5308
UD
1242 * pthread_create.c: Define __pthread_keys using nocommon
1243 attribute, not by placing it explicitly in bss.
1244 Remove DEFINE_DEALLOC definition. Not needed anymore.
1245
1246 * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
1247 Use it in mmap call to allocate stacks.
1248
1249 * sysdeps/pthread/createthread.c (create_thread): Fix comment.
1250
cc775edf
UD
1251 * pthread_create.c (start_thread): Use THREAD_SETMEM to store
1252 result of the thread function.
1253
4f6f0a8f
UD
12542003-03-03 Ulrich Drepper <drepper@redhat.com>
1255
f04a2721
UD
1256 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
1257 version is just fine.
1258
4f6f0a8f
UD
1259 * sysdeps/unix/sysv/linux/libc_pthread_init.c
1260 (__pthread_child_handler): Renamed from pthread_child_handler,
1261 exported, and marked hidden. Change all users.
1262 * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
1263 free __pthread_child_handler from child list.
1264
7ce5c164
UD
12652003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1266
1267 * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
1268
1269 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
1270 Fix handling of cancellation and failing pthread_mutex_unlock call.
1271 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
1272 (__pthread_cond_wait): Likewise.
1273
1274 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
1275 (pthread_rwlock_timedrdlock): Fix clobber of result variable by
1276 lll_futex_timed_wait call.
1277 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
1278 (pthread_rwlock_timedwrlock): Likewise.
1279
1280 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
1281 Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
1282 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
1283
1284 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
1285 check of lll_futex_wake return value.
1286
ea6a015b
RM
12872003-03-03 Roland McGrath <roland@redhat.com>
1288
1289 * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
1290
1291 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
1292 Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
1293 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
1294
4adacf57
UD
12952003-03-02 Ulrich Drepper <drepper@redhat.com>
1296
1be3d664
UD
1297 * sysdeps/pthread/timer_create.c (timer_create): Return correct
1298 error for CPU clocks.
1299
885bafa1
UD
1300 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1301 _POSIX_MONOTONIC_CLOCK.
1302 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
1303
4adacf57
UD
1304 * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
1305 recent kernels.
1306
86bfff4d
UD
13072003-03-01 Ulrich Drepper <drepper@redhat.com>
1308
1309 * descr.h (struct pthread): Move cleanup field to the front.
1310
d1149385
RM
13112003-03-01 Roland McGrath <roland@redhat.com>
1312
1313 * sem_open.c (sem_open): Braino fix.
1314
bd8bb78b
UD
13152003-03-01 Ulrich Drepper <drepper@redhat.com>
1316
748bec08
UD
1317 * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
1318 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
1319 __pthread_cleanup_pop functionality.
1320 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1321
bd8bb78b
UD
1322 * descr.h (struct pthread): Move tid field to the front now that
1323 it is often used.
1324
1325 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
1326 (__lll_mutex_timedlock_wait): Remove.
1327 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
1328 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
1329 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
1330 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1331 (lll_unlock_wake_cb): Don't save and restore %esi.
1332 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
1333 %esi.
1334 (__lll_timedwait_tid): Add alignment.
1335 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
1336 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
1337 %esi.
1338 (__lll_timedwait_tid): Removed.
1339 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
1340 (__pthread_cond_broadcast): Don't save, load, and restore %esi.
1341 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
1342 (pthread_barrier_wait): Don't save, load, and restore %esi for
1343 last thread.
1344 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
1345 (__pthread_cond_signal): Don't save, load, and restore %esi.
1346 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
1347 (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
1348 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
1349 Don't save, load, and restore %esi.
1350
d2637c70
UD
13512003-02-27 Ulrich Drepper <drepper@redhat.com>
1352
567fb22a
UD
1353 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
1354 Release lock before waking up the waiters.
1355
427f5fa1
UD
1356 * tst-exit1.c (do_test): Don't start more than one thread in parallel.
1357
a2d83cfb
UD
1358 * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
1359 (reader_thread): Likewise.
1360
d2637c70
UD
1361 * sysdeps/pthread/pthread_rwlock_unlock.c
1362 (__pthread_rwlock_unlock): Release internal lock early. Don't try
1363 to wake up readers if there are none.
1364
1365 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
1366 Release internal lock before wake threads.
1367
b1531183
UD
13682003-02-26 Ulrich Drepper <drepper@redhat.com>
1369
dbf6131c
UD
1370 * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
1371 * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
1372 predefined.
1373 * tst-rwlock9.c: Likewise.
1374 * tst-rwlock10.c: New file.
1375 * tst-rwlock11.c: New file.
1376
695799fe
UD
1377 * Makefile (tests): Add tst-dlsym1.
1378 * tst-dlsym1.c: New file.
1379
b1531183
UD
1380 * init.c (__pthread_initialize_minimal_internal): Set
1381 GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
1382 * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
1383
3724f268
UD
13842003-02-24 Ulrich Drepper <drepper@redhat.com>
1385
3857ca78
UD
1386 * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
1387
80d80779
UD
1388 * tst-cond2.c: Fix sychronization with child.
1389
86371308
UD
1390 * tst-rwlock8.c (reader_thread): Remove unused variable.
1391
ffeb4481
UD
1392 * Makefile: Add rules to build and run tst-tls3.
1393 * tst-tls3.c: New file.
1394 * tst-tls3mod.c: New file.
1395
3724f268
UD
1396 * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
1397 * tst-rwlock8.c: New file.
1398 * tst-rwlock9.c: New file.
1399 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
1400 complete broken rwlock implementation.
1401 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1402 Likewise.
1403 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1404 Likewise.
1405 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
1406 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
18a53579
UD
1407 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
1408 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
1409 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
1410 * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
1411 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
3724f268 1412
8915cc40
RM
14132003-02-23 Roland McGrath <roland@redhat.com>
1414
1415 * Makefile (nptl-version): Change regexp so case sensitivity is ok.
1416
fd1a0d0c
UD
14172003-02-23 Ulrich Drepper <drepper@redhat.com>
1418
ecf28959
UD
1419 * Makefile (tests): Add tst-context1.
1420 * tst-context1.c: New file.
1421
5e47b76b
UD
1422 * Makefile (tests): Add tst-tls1 and tst-tls2.
1423 * tst-tls1.c: New file.
1424 * tst-tls2.c: New file.
1425
5a6bbb41
UD
1426 * libc-cancellation.c (__libc_enable_asynccancel): Correct test
1427 for failed cmpxchg.
1428
fd1a0d0c
UD
1429 * pthread_create.c (start_thread): Set EXITING_BIT early.
1430
1431 * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
1432 (THREAD_GETMEM_NC): Likewise.
1433
757f9fcb
UD
14342003-02-22 Ulrich Drepper <drepper@redhat.com>
1435
b1b8e747
UD
1436 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
1437 off 3 more bytes by using offset-less instructions when possible.
1438
c780aa21 1439 * Makefile: Add dependency for $(objpfx)version.d.
757f9fcb
UD
1440
1441 * eintr.c (eintr_source): Add unnecessary return but the compiler
1442 insists.
1443
1444 * tst-kill3.c: Include <unistd.h>.
1445
5148559c
RM
14462003-02-21 Roland McGrath <roland@redhat.com>
1447
1448 * pthread_create.c (start_thread): Call __libc_thread_freeres.
1449
ab2d98e3
UD
14502003-02-21 Ulrich Drepper <drepper@redhat.com>
1451
71028edd
UD
1452 * Makefile (tests): Add tst-eintr1.
1453 (distribute): Add eintr.c.
1454 * tst-eintr1.c: New file.
1455 * eintr.c: New file.
1456
e814f748
UD
1457 * pthread_cancel.c (pthread_cancel): Use tkill directly.
1458
1459 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
1460 Disallow sending SIGCANCEL.
1461
ab2d98e3 1462 * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
9c03686d 1463 tst-kill3, tst-kill4, tst-kill5, tst-kill6.
e814f748
UD
1464 * tst-kill1.c: New file.
1465 * tst-kill2.c: New file.
1466 * tst-kill3.c: New file.
1467 * tst-kill5.c: New file.
9c03686d 1468 * tst-kill6.c: New file.
e814f748
UD
1469 * tst-basic7.c: Renamed to...
1470 * tst-kill4.c: ...this.
ab2d98e3 1471
59fed0e2
RM
14722003-02-21 Roland McGrath <roland@redhat.com>
1473
1474 * Makefile (install-lib-ldscripts): New variable.
1475
49dc759f
UD
14762003-02-21 Ulrich Drepper <drepper@redhat.com>
1477
8c2e9a29
UD
1478 * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
1479 * pthread_cancel.c: Use INVALID_TD_P.
1480 * pthread_detach.c: Likewise.
1481 * pthread_getschedparam.c: Likewise.
1482 * pthread_setschedparam.c: Likewise.
1483 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
1484 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
1485 * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
1486 * pthread_timedjoin.c: Likewise.
1487
1488 * tst-basic7.c: Include <signal.h>.
1489
49dc759f
UD
1490 * pthread_join.c (pthread_join): Limited checking for invalid
1491 descriptors.
1492 * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
1493
df5803bf
UD
14942003-02-20 Ulrich Drepper <drepper@redhat.com>
1495
c5acd3d7
UD
1496 * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
1497 beginning of the loop. Clear the entire first block of TSD.
df5803bf
UD
1498 * Makefile (tests): Add tst-key4.
1499 * tst-key4.c: New file.
1500
729924a0
UD
15012003-02-18 Ulrich Drepper <drepper@redhat.com>
1502
2f7dc594
UD
1503 * Makefile (tests): Add tst-basic7.
1504 * tst-basic7.c: New file.
1505
ba25bb0f
UD
1506 * pthread_create.c (deallocate_tsd): Mark as internal_function.
1507 Add some more __builtin_expect.
1508
12fd3c5f 1509 * pthreadP.h: Define dummy version of DEBUGGING_P.
729924a0 1510
5430d926
UD
15112003-02-17 Ulrich Drepper <drepper@redhat.com>
1512
b0db7fbe
UD
1513 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
1514 _POSIX_THREAD_PRIORITY_SCHEDULING.
1515 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
1516 _XOPEN_REALTIME_THREADS.
1517 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1518
1519 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
1520 kernel returns EINVAL for PID <= 0, work around it.
1521
ecfda9bd
UD
1522 * Makefile (tests): Add tst-signal5.
1523 * tst-signal5.c: New file.
1524
7d78ab99
UD
1525 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
1526 and LOGIN_NAME_MAX.
1527
371a2972
UD
1528 * tst-cancel1.c (tf): Block all signals.
1529
5430d926
UD
1530 * Makefile (tests): Add tst-basic6.
1531 * tst-basic6.c: New file.
1532
1533 * tst-basic1.c: Add test for process ID.
1534
1535 * Makefile (tests): Add tst-cancel10.
1536 * tst-cancel10.c: New file.
1537
1538 * Makefile (tests): Add tst-signal4.
1539 * tst-signal4.c: New file.
1540
1541 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
1542 __sigismember instead of sigismember. Add __builtin_expect.
1543
1564916a
UD
15442003-02-16 Ulrich Drepper <drepper@redhat.com>
1545
179ff175
UD
1546 * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
1547 pthread_setcancelstate, and pthread_rwlock_setpshared.
1548
e4335f9a
UD
1549 * tst-cancel7.c (do_test): Make sure the pid file exists before
1550 canceling the thread.
1551
0a37669a
UD
1552 * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
1553 pthread_rwlock_timedrdlock tests.
1554 * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
1555 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1556 Check for invalid tv_nsec field.
1557 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1558 Likewise.
1559
1560 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
1561 recursive mutex of overflow.
1562
1563 * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
1564
e4335f9a 1565 * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
1564916a
UD
1566 going into an endless loop.
1567 * Makefile (tests): Add tst-cancel9.
1568 * tst-cancel9.c: New file.
1569
1570 * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
1571
b270b548
UD
15722003-02-15 Ulrich Drepper <drepper@redhat.com>
1573
1c82b97f
UD
1574 * tst-mutex5.c (do_test): Add more timedlock tests.
1575
b2f05465 1576 * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
c3bb9ee1
UD
1577 * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
1578
e798b60f
UD
1579 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
1580 use INLINE_SYSCALL. Error number is returned, not -1.
1581
90491dc4
UD
1582 * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
1583 and __deallocate_stack with internal_function.
1584 * pthread_create.c: Adjust definitions appropriately.
1585 * allocatestack.c: Likewise.
1586
1587 * pthread_join.c: Add one more __builtin_expect.
1588 * pthread_timedjoin.c: Likewise.
1589
1590 * pthread_getspecific.c (__pthread_getspecific): Clear data->data
1591 not data of sequence number does not match.
1592 Add one __builtin_expect.
1593
c6247c9d
UD
1594 * Makefile (tests): Add tst-clock1.
1595 * tst-clock1.c: New file.
1596
b270b548
UD
1597 * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
1598 negative arguments.
1599 * Makefile (tests): Add tst-basic5.
1600 * tst-basic5.c: New file.
1601
700bf7af
UD
16022003-02-14 Ulrich Drepper <drepper@redhat.com>
1603
757de559
UD
1604 * Makefile (tests): Add tst-basic4.
1605 * tst-basic4.c: New file.
1606
47202270
UD
1607 * pthreadP.h: Add declaraction for __nptl_nthreads.
1608 * pthread_create.c: Define __nptl_nthreads
1609 (start_thread): Increment __nptl_nthreads at beginning. Decrement
b270b548 1610 after thread is done. If then zero, call exit(0).
47202270
UD
1611 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
1612 Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
1613 * init.c (pthread_functions): Initialize ptr_nthreads.
1614 * allocatestack.c (nptl_nthreads): Remove definition and all uses.
1615 (__reclaim_stacks): Decrement __nptl_nthreads.
1616 * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
1617 Define.
1618 * Makefile (tests): Add tst-basic3.
1619 * tst-basic3.c: New file.
1620
e320ef46
UD
1621 * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
1622 after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
1623 * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
1624 * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
1625 if asynchronous canceling is enabled.
1626 * pthread_join.c (pthread_join): When recognizing circular joins,
1627 take into account the other thread might be already canceled.
1628 * Makefile (tests): Add tst-join5.
1629 * tst-join5.c: New file.
1630
700bf7af
UD
1631 * Makefile (tests): Add tst-join4.
1632 * tst-join4.c: New file.
1633
16342003-02-13 Ulrich Drepper <drepper@redhat.com>
1635
1636 * tst-cond4.c (main): Add test of pthread_attr_getpshared.
1637
dac0f772
UD
16382003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
1639
1640 * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
1641 THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
1642 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
1643 warning.
1644 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
1645 to avoid warning.
1646 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
1647 error if lll_futex_wake failed.
1648
e8cda341
UD
16492003-02-13 Ulrich Drepper <drepper@redhat.com>
1650
a7720b5e
UD
1651 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
1652 handling of cancellation and failung pthread_mutex_unlock call.
1653 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1654 * Makefile (tests): Add tst-cond8 and tst-cond9.
1655 * tst-cond8.c: New file.
1656 * tst-cond9.c: New file.
1657
a1ea4c06
UD
1658 * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
1659
1660 * sysdeps/pthread/pthread.h: Add missing initializers. Protect
1661 non-standard initializers with __USE_GNU.
1662
e8cda341
UD
1663 * Makefile (tests): Add tst-cleanup3.
1664 * tst-cleanup3.c: New file.
1665
2067577c
UD
16662003-02-12 Ulrich Drepper <drepper@redhat.com>
1667
89e78a95
UD
1668 * Makefile (tests): Add tst-attr1 and tst-attr2.
1669 * tst-attr1.c: New file.
1670 * tst-attr2.c: New file.
1671
dfdd294a
UD
1672 * Makefile: Add rules to build and run tst-atfork2 test.
1673 * tst-atfork2.c: New file.
1674 * tst-atfork2mod.c: New file.
1675
1676 * sysdeps/unix/sysv/linux/unregister-atfork.c
1677 (__unregister_atfork): Free the memory allocated for the handlers
1678 after removing them from the lists.
1679
1680 * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
1681 cleanup function.
1682
1683 * tst-atfork1.c (do_test): Wait for the child we forked.
1684 Report error in child.
1685
1686 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
1687
2067577c
UD
1688 * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
1689
2a8a8a84
UD
16902003-02-10 Ulrich Drepper <drepper@redhat.com>
1691
d9dd121e
UD
1692 * Makefile (tests): Add tst-cancel8.
1693 * tst-cancel8.c: New file.
1694
2a8a8a84
UD
1695 * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
1696 clearing of control variable.
defd1870 1697 * Makefile (tests): Add tst-once3 and tst-once4.
2a8a8a84 1698 * tst-once3.c: New file.
defd1870 1699 * tst-once4.c: New file.
2a8a8a84 1700
a54e8d33
UD
17012003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
1702
1703 * sysdeps/sh/Makefile: New file.
1704 * sysdeps/sh/bits/atomic.h: New file.
1705 * sysdeps/sh/pthread_spin_init.c: New file.
1706 * sysdeps/sh/pthread_spin_lock.c: New file.
1707 * sysdeps/sh/pthread_spin_trylock.S: New file.
1708 * sysdeps/sh/pthread_spin_unlock.S: New file.
1709 * sysdeps/sh/pthreaddef.h: New file.
1710 * sysdeps/sh/tcb-offsets.sym: New file.
1711 * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
1712 * sysdeps/sh/tls.h: New file.
1713 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
1714 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
1715 * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
1716 * sysdeps/unix/sysv/linux/sh/fork.c: New file.
1717 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
1718 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
1719 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
1720 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
1721 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
1722 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
1723 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
1724 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
1725 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
1726 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
1727 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
1728 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
1729 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
1730 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
1731 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
1732 * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
1733 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
1734 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
1735 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
1736 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
1737 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
1738 * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
1739 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
1740 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
1741 * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
1742 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
1743
696e556e
UD
17442003-02-08 Ulrich Drepper <drepper@redhat.com>
1745
1746 * tst-cond2.c: Rearrange code to not rely on behavior undefined
1747 according to POSIX.
1748
1749 * tst-basic2.c (do_test): Lock mutex before creating the thread.
1750
fef710d6
UD
17512003-02-07 Ulrich Drepper <drepper@redhat.com>
1752
c6180643
UD
1753 * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
1754 (TLS_GET_FS): New #define.
1755 (TLS_SET_FS): New #define.
1756 Correct value of __NR_set_thread_area.
1757
fef710d6
UD
1758 * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
1759
11090a99
UD
17602003-02-06 Ulrich Drepper <drepper@redhat.com>
1761
65c68990
UD
1762 * Makefile (tests): Add tst-popen1.
1763 * tst-popen1.c: New file.
1764
11090a99
UD
1765 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
1766 but inactive generalization.
1767 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1768 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
1769 Minor optimization, remove one instruction.
1770 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
1771
a88c9263
UD
17722003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
1773
1774 * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
1775
17762003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
1777
1778 * init.c (__NR_set_tid_address): Add #ifdef for s390.
1779 * sysdeps/pthread/pthread_barrier_wait.c: New file.
1780 * sysdeps/pthread/pthread_cond_broadcast.c: New file.
1781 * sysdeps/pthread/pthread_cond_signal.c: New file.
1782 * sysdeps/pthread/pthread_cond_timedwait.c: New file.
1783 * sysdeps/pthread/pthread_cond_wait.c: New file.
1784 * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
1785 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
1786 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
1787 * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
1788 * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
1789 * sysdeps/s390/Makefile: New file.
1790 * sysdeps/s390/bits/atomic.h: New file.
1791 * sysdeps/s390/pthread_spin_init.c: New file.
1792 * sysdeps/s390/pthread_spin_lock.c: New file.
1793 * sysdeps/s390/pthread_spin_trylock.c: New file.
1794 * sysdeps/s390/pthread_spin_unlock.c: New file.
1795 * sysdeps/s390/pthreaddef.h: New file.
1796 * sysdeps/s390/tcb-offsets.sym: New file.
1797 * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
1798 * sysdeps/s390/tls.h: New file.
1799 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
1800 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
1801 * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
1802 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
1803 * sysdeps/unix/sysv/linux/s390/fork.c: New file.
1804 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
1805 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
1806 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
1807 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
1808 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
1809 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
1810 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
1811 * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
1812 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
1813 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
1814 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
1815 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
1816 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
1817 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
1818 * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
1819 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
1820 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
1821 * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
1822
6f1cff95
UD
18232003-02-04 Ulrich Drepper <drepper@redhat.com>
1824
ec609a8e
UD
1825 * atomic.h: Add a couple more default implementations.
1826 (atomic_compare_and_exchange_acq): Use
d45e8740
UD
1827 __arch_compare_and_exchange_32_acq in return value definition. It
1828 always exists.
1829 (atomic_bit_set): Renamed from atomic_set_bit.
0289bef9 1830 Add missing atomic_ prefixes.
e3ec8904 1831
6f1cff95
UD
1832 * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
1833 thread library is available, use correct value to mark initialized
1834 once variable.
1835
4f088329
UD
18362003-02-03 Ulrich Drepper <drepper@redhat.com>
1837
6f1cff95
UD
1838 * allocatestack.c (allocate_stack): Use __getpagesize instead of
1839 __sysconf to determine pagesize.
1840
3e4fc359 1841 * pthread_create.c: Include <atomic.h>.
4f088329
UD
1842 * allocatestack.c (allocate_stack): Implement coloring of the
1843 allocated stack memory. Rename pagesize to pagesize_m1. It's the
1844 size minus one. Adjust users.
3e4fc359 1845 * sysdeps/i386/i686/Makefile: New file.
4f088329 1846
2f42e8be
UD
18472003-02-02 Ulrich Drepper <drepper@redhat.com>
1848
4301f7e2
UD
1849 * allocatestack.c: Improve comment throughout the file.
1850
2f42e8be 1851 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
a37818b3 1852 (__lll_lock_wait): Add branch prediction.
2f42e8be
UD
1853 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
1854 (__lll_lock_wait): Likewise.
1855 (lll_unlock_wake_cb): Removed.
1856
4a7d6545
UD
18572003-01-31 Ulrich Drepper <drepper@redhat.com>
1858
1859 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
1860 _POSIX_THREAD_PRIORITY_SCHEDULING.
1861
886d5973
UD
18622003-01-30 Jakub Jelinek <jakub@redhat.com>
1863
1864 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
1865 Fix return type of ptr___pthread_getspecific.
1866
e474ca78
UD
18672003-01-29 Ulrich Drepper <drepper@redhat.com>
1868
1869 * Makefile (tests): Add tst-umask1.
1870 (tst-umask1-ARGS): Define.
1871 * tst-umask1.c: New file.
1872
e6ebd2e4
UD
18732003-01-28 Ulrich Drepper <drepper@redhat.com>
1874
6cf26f41
UD
1875 * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
1876 pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
1877 pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
1878 pthread_rwlock_unlock.
1879 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
1880 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
1881 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
1882 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
1883 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1884 New file.
1885 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
1886 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1887 New file.
1888 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
1889 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
1890 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
1891 New file.
1892 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
1893 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
1894 New file.
1895 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
1896 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
1897 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
1898 New file.
1899 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
1900 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
1901 New file.
1902 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
1903
1d087a7e
UD
1904 * Makefile (libpthread-routines): Remove lowlevelcond and
1905 lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
1906 pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
1907 and pthread_cond_broadcast.
4a99d160
UD
1908 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
1909 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
1910 * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
1911 * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
1912 * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
1913 * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
1914 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
1915 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
1916 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
1917 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
1918 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
1919 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
1920 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
1921 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
1922 * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
1923 * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
1924 * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
1925 * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
1926 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
1927 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
1928 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
1929 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
1930 * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
1931 * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
1932 * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
1933 * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
1934 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
1935 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
1936 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
1937 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
1938 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
1d087a7e 1939
e6ebd2e4
UD
1940 * sysdeps/unix/sysv/linux/i386/createthread.c: Define
1941 PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
1942 of the code is moved to ...
1943 * sysdeps/pthread/createthread.c: ...here. New file.
1944
a15698cb
UD
19452003-01-27 Ulrich Drepper <drepper@redhat.com>
1946
0566b130
UD
1947 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
1948 (__new_sem_post): Clear %eax before returning.
1949 Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
1950
e6fb8846
UD
1951 * Makefile (tests): Add tst-cleanup2.
1952 * tst-cleanup2.c: New file.
1953
a15698cb
UD
1954 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
1955 Interpret first parameter correctly.
1956
8824b0a1
UD
19572003-01-17 Ulrich Drepper <drepper@redhat.com>
1958
1959 * Makefile (headers): Add bits/semaphore.h.
1960
850dcfca
UD
19612003-01-16 Jakub Jelinek <jakub@redhat.com>
1962
1963 * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
1964 if not SHARED.
1965
574b892e
UD
19662003-01-14 Ulrich Drepper <drepper@redhat.com>
1967
a8d87c92
UD
1968 * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
1969 must be used and mapping failed.
1970 Reported by Luke Elliott <luke.elliott@activfinancial.com>.
1971
574b892e
UD
1972 * Makefile (CFLAGS-pthread_self.os): Define this, not
1973 CFLAGS-pthread_self.c.
1974
fb48047a
UD
19752003-01-13 Ulrich Drepper <drepper@redhat.com>
1976
47805511
UD
1977 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
1978 lll_unlock_wake_cb.
1979
fb48047a
UD
1980 * Makefile (libpthread-routines): Add version. Add rules to build
1981 version.os and banner.h.
1982 * version.c: New file.
1983
115bb61d
UD
19842003-01-13 Jakub Jelinek <jakub@redhat.com>
1985
1986 * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
1987 the alias unconditional.
1988 * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
1989
19902003-01-13 Ulrich Drepper <drepper@redhat.com>
1991
1992 * Makefile (CFLAGS-pthread_self.c): New definition.
1993
6aca81bb
UD
19942003-01-06 Jakub Jelinek <jakub@redhat.com>
1995
1996 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
1997 INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
1998 * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
1999 * init.c (__pthread_initialize_minimal_internal): Likewise.
2000
e9c7764e
UD
20012003-01-07 Jakub Jelinek <jakub@redhat.com>
2002
b5facfda
UD
2003 * pthreadP.h (__pthread_cond_timedwait): Add prototype.
2004
e9c7764e
UD
2005 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
2006 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
2007 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
2008 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
2009 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
2010 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
2011
bef1e42f
UD
20122003-01-06 Jakub Jelinek <jakub@redhat.com>
2013
2014 * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
2015 * pt-system.c (LIBC_CANCEL_HANDLED): Add.
2016 * tst-cancel-wrappers.sh: Remove all exceptions.
2017
bbd17455
UD
20182003-01-05 Ulrich Drepper <drepper@redhat.com>
2019
a73ab6df
UD
2020 * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
2021 features. Reported by Marijn Ros <marijn@mad.scientist.com>.
2022
bbd17455
UD
2023 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
2024 Use __libc_pthread_functions array if SHARED.
2025
2026 * pthreadP.h: Move pthread_cond_2_0_t definition to...
2027 * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
2028
2029 * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
2030 (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
2031 __libc_key_create, __libc_getspecific, __libc_setspecific): Use
2032 __libc_ptf_call instead of __libc_maybe_call.
2033 (PTF): New #define.
2034 (__libc_cleanup_region_start): Wrap function name with PTF call.
2035 (__libc_cleanup_region_end): Likewise.
2036 (__libc_cleanup_end): Likewise.
2037
2038 * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
2039 * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
2040 * pthread_key_create.c: Add __pthread_key_create_internal alias.
2041 * pthreadP.h: Add prototypes.
2042
2043 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
2044 __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
2045 __pthread_rwlock_unlock aliases.
2046 * pthreadP.h: Add prototypes for new aliases.
2047
2048 * pthreadP.h (struct pthead_functions): Moved to...
2049 * sysdeps/pthread/pthread-functions.h: ...here. New file.
2050 * init.c (pthread_functions): Add initializers for new elements.
2051
2052 * cleanup_defer.c: Add __pthread_cleanup_push_defer and
2053 __pthread_cleanup_pop_restore aliases.
2054 * pthreadP.h: Add prototypes.
2055
2056 * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
2057 and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
2058 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
2059 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
2060 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
2061 * pthreadP.h: Adjust prototypes and callers.
2062
d27a78be
UD
20632003-01-04 Ulrich Drepper <drepper@redhat.com>
2064
b74121ae
UD
2065 * Makefile (tests): Add tst-cancel7.
2066 (tst-cancel7-ARGS): New variable.
bbd17455 2067 * tst-cancel7.c: New file.
b74121ae 2068
29bc410c
UD
2069 * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
2070 around gcc defficiencies.
2071 * old_pthread_cond_signal.c: Likewise.
2072 * old_pthread_cond_timedwait.c: Likewise.
2073 * old_pthread_cond_wait.c: Likewise.
2074
d27a78be
UD
2075 * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
2076
733f25e6
UD
20772003-01-03 Ulrich Drepper <drepper@redhat.com>
2078
7edb2ae3
UD
2079 * Makefile (tests): Add tst-cond7.
2080 * tst-cond7.c: New file.
2081
b1151300
UD
2082 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
2083 (condvar_cleanup): Get condvar address from the right place.
2084
733f25e6
UD
2085 * atomic.h: Correct definitions of atomic_full_barrier,
2086 atomic_read_barrier, atomic_write_barrier.
2087
2088 * old_pthread_cond_broadcast.c: Make memory allocate and initialization
2089 race-free.
2090 * old_pthread_cond_signal.c: Likewise.
2091 * old_pthread_cond_timedwait.c: Likewise.
2092 * old_pthread_cond_wait.c: Likewise.
2093
686b7223
UD
20942003-01-03 Jakub Jelinek <jakub@redhat.com>
2095
2096 * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
2097
0e07706e
UD
20982003-01-03 Ulrich Drepper <drepper@redhat.com>
2099
997256dd
UD
2100 * pthreadP.h (pthread_cond_2_0_t): New type.
2101 (struct pthread_functions): Use new type for 2.0 condvar callbacks.
2102 Use new type for the 2.0 condvar function prototypes.
2103 * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
2104 * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
2105 parameter.
2106 * old_pthread_cond_destroy.c: Likewise.
2107 * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
2108 * old_pthread_cond_signal.c: Likewise.
2109 * old_pthread_cond_timedwait.c: Likewise.
2110 * old_pthread_cond_wait.c: Likewise.
2111
842d2817
UD
2112 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
2113 (__pthread_cond_wait): Don't save cancellation mode and seq value
2114 in same location.
2115
0e07706e
UD
2116 * herrno.c (__h_errno_location): Don't define as weak.
2117
bf293afe
UD
21182003-01-02 Jakub Jelinek <jakub@redhat.com>
2119
2120 * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
2121 pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
2122 and pthread_cond_wait.
2123 * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
2124 Renamed to...
2125 (__pthread_cond_broadcast_2_0): ... this.
2126 * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
2127 Renamed to...
2128 (__pthread_cond_destroy_2_0): ... this.
2129 * old_pthread_cond_init.c (__old_pthread_cond_init):
2130 Renamed to...
2131 (__pthread_cond_init_2_0): ... this.
2132 * old_pthread_cond_signal.c (__old_pthread_cond_signal):
2133 Renamed to...
2134 (__pthread_cond_signal_2_0): ... this.
2135 * old_pthread_cond_wait.c (__old_pthread_cond_wait):
2136 Renamed to...
2137 (__pthread_cond_wait_2_0): ... this.
2138 * pthread_cond_destroy.c: Include shlib-compat.h.
2139 (pthread_cond_destroy): Change strong_alias into versioned_symbol.
2140 * pthread_cond_init.c: Include shlib-compat.h.
2141 (pthread_cond_init): Change strong_alias into versioned_symbol.
2142 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
2143 fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
2144 fields.
2145 (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
2146 __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
2147 __pthread_cond_wait_2_0): New prototypes.
2148 (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
2149 __old_pthread_cond_init, __old_pthread_cond_signal,
2150 __old_pthread_cond_wait): Removed.
2151 * init.c: Include shlib-compat.h.
2152 (pthread_functions): Guard ptr___pthread_attr_init_2_0
2153 initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
2154 Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
2155 ptr___pthread_cond_*_2_0 fields.
2156 * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
2157 pthread_cond_*@GLIBC_2.0 compatibility symbols.
2158
2159 * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
2160 LIBC_SIGACTION was not yet defined.
2161 [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
2162 [!defined LIBC_SIGACTION] (__sigaction): New function and
2163 libc_hidden_weak.
2164 [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
2165 [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
2166
21672003-01-02 Jakub Jelinek <jakub@redhat.com>
2168
2169 * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
2170
05df18c3
UD
21712003-01-02 Ulrich Drepper <drepper@redhat.com>
2172
2173 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
2174 New, larger type definition.
2175 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
2176 implementation.
2177 * Versions [libpthread]: Add definitions for new pthread_cond_*
2178 interfaces for version GLIBC_2.3.2.
2179 * pthread_cond_init.c: Update initialization for new type definition.
2180 * Makefile (libpthread-routines): Remove pthread_cond_wait,
2181 pthread_cond_timedwait, pthread_cond_signal, and
2182 pthread_cond_broadcast. Add old_pthread_cond_init,
2183 old_pthread_cond_destroy, old_pthread_cond_wait,
2184 old_pthread_cond_timedwait, old_pthread_cond_signal, and
2185 old_pthread_cond_broadcast.
2186 * old_pthread_cond_broadcast.c: New file.
2187 * old_pthread_cond_destroy.c: New file.
2188 * old_pthread_cond_init.c: New file.
2189 * old_pthread_cond_signal.c: New file.
2190 * old_pthread_cond_timedwait.c: New file.
2191 * old_pthread_cond_wait.c: New file.
2192 * pthreadP.h: Add prototypes for the compatibility interfaces.
2193
2194 * pthread_cond_destroy.c: Don't include <errno.h>.
2195
fd8979e4
UD
21962003-01-01 Ulrich Drepper <drepper@redhat.com>
2197
2198 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
2199 unnecessary zero offset when addressing MUTEX.
2200
6d6ee629
UD
22012002-12-31 Ulrich Drepper <drepper@redhat.com>
2202
2203 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
2204 __register_atfork.
2205 * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
2206 for __register_atfork.
2207
a4baf360
UD
22082002-12-31 Jakub Jelinek <jakub@redhat.com>
2209
2210 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
2211 instead of ASSEMBLER test macro.
2212
2213 * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
2214 __libc_current_sigrtmax): Add libc_hidden_def.
2215
2216 * sysdeps/pthread/list.h: Remove assert.h include.
2217
e9395a94
UD
22182002-12-31 Ulrich Drepper <drepper@redhat.com>
2219
2220 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
2221 __pthread_initialize_minimal_internal not
2222 __pthread_initialize_minimal.
2223
89d6e444
UD
22242002-12-30 Ulrich Drepper <drepper@redhat.com>
2225
416d2de6
UD
2226 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
2227 __pthread_initialize_minimal as hidden.
2228
89d6e444
UD
2229 * init.c (__pthread_initialize_minimal_internal): Don't mark as
2230 constructor.
2231
22322002-12-31 Jakub Jelinek <jakub@redhat.com>
2233
2234 * Makefile ($(inst_libdir)/libpthread.so): Depend on
2235 $(common-objpfx)format.lds, include that into the output script.
2236 Fix comment.
2237 (extra-B-pthread.so): Change linuxthreads/ into nptl/.
2238
8cac677c
UD
22392002-12-28 Andreas Jaeger <aj@suse.de>
2240
2241 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
2242 nsec resolution changes.
2243 (xstat64_conv): Likewise.
2244 (xstat32_conv): Likewise.
2245 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
2246 struct kernel_stat.
2247 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
2248 structs stat and stat64.
2249 * time/time.h (__timespec_defined): Define for __USE_MISC.
89d6e444 2250 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
8cac677c 2251
49e9f864
UD
22522002-12-30 Jakub Jelinek <jakub@redhat.com>
2253
2254 * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
2255 argument.
2256 (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
2257 (pthread_exit): Use strong_alias to avoid warnings.
2258 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
2259 and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
2260 ptr___pthread_attr_init_2_*.
2261 * init.c (pthread_functions): Adjust.
2262
bab09b26
UD
22632002-12-29 Ulrich Drepper <drepper@redhat.com>
2264
598d7a42
UD
2265 * forward.c: Make all functions available by default again. It
2266 caused too much trouble.
2267
bab09b26
UD
2268 * pt-siglongjmp.c: Removed.
2269
3b7ed871
UD
22702002-12-28 Jakub Jelinek <jakub@redhat.com>
2271
2272 * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
2273 (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
2274 * sysdeps/i386/Makefile: New file.
2275 * sysdeps/i386/tcb-offsets.sym: New file.
2276 * sysdeps/pthread/tcb-offsets.h: New file.
2277 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
2278 Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
2279
2280 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
2281 __register_atfork...
2282 (GLIBC_2.3.2): ...here.
2283
22842002-12-28 Ulrich Drepper <drepper@redhat.com>
2285
2286 * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
2287 pthread_attr_setstackaddr with __attribute_deprecated__.
2288
270d9d47
UD
22892002-12-27 Jakub Jelinek <jakub@redhat.com>
2290
2291 * pt-system.c (system): Remove cancellation handling.
2292 * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
2293 cancellation routines.
2294
131fd126
UD
22952002-12-28 Ulrich Drepper <drepper@redhat.com>
2296
afb2e954
UD
2297 * descr.h: Include <dl-sysdep.h>.
2298 (struct pthread): Move header.data.list to the back of the struct.
131fd126
UD
2299 * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
2300 (MULTIPLE_THREADS_OFFSET): Adjust offset.
2301 (SYSINFO_OFFSEET): Likewise.
2302
23032002-12-27 Jakub Jelinek <jakub@redhat.com>
2304
2305 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
2306 Define.
2307 (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
2308 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
2309 DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
2310 (USE_DL_SYSINFO): Undef.
2311
23122002-12-22 Jakub Jelinek <jakub@redhat.com>
2313
2314 * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
2315 $(common-objpfx)libc.so.
2316 * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
2317 it is bigger than pipe buffer size even on arches with bigger
2318 page size.
2319 (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
2320
a218c9cf
UD
23212002-12-25 Ulrich Drepper <drepper@redhat.com>
2322
2323 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
2324 correct errno access for case that USE___THREAD is not defined.
2325
015a2dc9
UD
23262002-12-24 Ulrich Drepper <drepper@redhat.com>
2327
2328 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
2329 Patch by Marijn Ros <marijn@mad.scientist.com>.
2330
5220f9ac
RM
23312002-12-22 Roland McGrath <roland@redhat.com>
2332
2333 * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
2334
1561bf63
UD
23352002-12-20 Ulrich Drepper <drepper@redhat.com>
2336
2337 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
2338
3325198e
UD
23392002-12-19 Ulrich Drepper <drepper@redhat.com>
2340
057c823f
UD
2341 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
2342 NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
2343 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
2344
097eca29
UD
2345 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
2346 of int $0x80.
2347 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
2348 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
2349 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
2350 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
2351 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
2352 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
2353 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
2354 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
2355
2356 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
2357 sysenter.
2358 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
2359
2360 * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
2361
5f5843e3
UD
2362 * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
2363 in new TCB.
2364 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
2365 that sysinfo is properly initialized.
2366 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
2367 to 1 only for ld.so.
2368
3325198e
UD
2369 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
2370 RTLD_CORRECT_DYNAMIC_WEAK.
2371
74e8f2dc
UD
23722002-12-19 Jakub Jelinek <jakub@redhat.com>
2373
2374 * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
2375 Use return 0 as 6th argument to FORWARD4.
2376 * pthread_equal.c: Include pthreadP.h instead of pthread.h.
2377
df45b31e
UD
23782002-12-18 Ulrich Drepper <drepper@redhat.com>
2379
2380 * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
2381 * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
2382 Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
2383 (INIT_SYSINFO): New #define.
2384 (TLS_TP_INIT): Use INIT_SYSINFO.
2385 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
2386 At test to make sure SYSINFO_OFFSET value is correct.
2387 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
2388
3d539579
UD
23892002-12-18 Jakub Jelinek <jakub@redhat.com>
2390
2391 * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
2392 * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
2393 * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
2394 [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
2395 __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
2396 __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
2397 __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
2398
d7913e0e
UD
23992002-12-18 Ulrich Drepper <drepper@redhat.com>
2400
f051627f
UD
2401 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
2402 macro instead of using int $0x80 directly.
2403
d7913e0e
UD
2404 * sysdeps/pthread/bits/stdio-lock.h: New file.
2405 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
2406 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
2407 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
2408 * Makefile (routines): Add libc-lowlevelmutex.
2409
2410 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
2411 __i686.get_pc_thunk.dx.
2412
f077a4a9
UD
24132002-12-17 Jakub Jelinek <jakub@redhat.com>
2414
2415 * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
2416 (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
2417 ($(objpfx)tst-cancel-wrappers.out): New rule.
2418 * tst-cancel-wrappers.sh: New test.
2419 * tst-locale1.c: Include signal.h.
2420 (uselocale): Test static linking of __libc_current_sigrt*.
2421
24222002-12-17 Ulrich Drepper <drepper@redhat.com>
2423
2424 * Makefile (tests): Add tst-cancel6.
2425 * tst-cancel6.c: New file
2426
bd499a3b
UD
24272002-12-17 Jakub Jelinek <jakub@redhat.com>
2428
2429 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
2430 Define meaningfully for assembler as well.
2431 * pthreadP.h (struct pthread_functions): Remove
2432 ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
2433 and ptr_pthread_attr_init_2_1 fields.
2434 * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
2435 and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
2436 * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
2437 (FORWARD3): Define using FORWARD4.
2438 (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
2439 versions.
2440 * pt-system.c: Remove duplicate stdlib.h include.
2441
0a1063f4
UD
24422002-12-16 Ulrich Drepper <drepper@redhat.com>
2443
87d60668
UD
2444 * sem_init.c: Define sem_init@GLIBC_2.0.
2445 * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
2446 * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
2447
0a1063f4
UD
2448 * flockfile.c: Moved to...
2449 * sysdeps/pthread/flockfile.c: ...here. New file.
2450 * funlockfile.c: Moved to...
2451 * sysdeps/pthread/funlockfile.c: ...here. New file.
2452 * ftrylockfile.c: Moved to...
2453 * sysdeps/pthread/ftrylockfile.c: ...here. New file.
2454
9634cf9d
UD
24552002-12-16 Jakub Jelinek <jakub@redhat.com>
2456
2457 * libc-cancellation.c: Guard both function with
2458 #if !defined NOT_IN_libc.
2459 * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
2460 automatically provided pthread wrappers.
2461 * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
2462 CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
2463 nor in libpthread.
2464 * pt-open.c: Removed.
2465 * pt-fcntl.c: Removed.
2466 * pt-fsync.c: Removed.
2467 * pt-lseek.c: Removed.
2468 * pt-msgrcv.c: Removed.
2469 * pt-msgsnd.c: Removed.
2470 * pt-msync.c: Removed.
2471 * pt-nanosleep.c: Removed.
2472 * pt-open64.c: Removed.
2473 * pt-pause.c: Removed.
2474 * pt-pread.c: Removed.
2475 * pt-pread64.c: Removed.
2476 * pt-pwrite.c: Removed.
2477 * pt-pwrite64.c: Removed.
2478 * pt-read.c: Removed.
2479 * pt-recv.c: Removed.
2480 * pt-recvfrom.c: Removed.
2481 * pt-recvmsg.c: Removed.
2482 * pt-send.c: Removed.
2483 * pt-sendto.c: Removed.
2484 * pt-sigtimedwait.c: Removed.
2485 * pt-sigwait.c: Removed.
2486 * pt-wait.c: Removed.
2487 * pt-waitpid.c: Removed.
2488 * pt-write.c: Removed.
2489 * pt-accept.c: Removed.
2490 * pt-close.c: Removed.
2491 * pt-connect.c: Removed.
2492 * pt-lseek64.c: Removed.
2493 * pt-sendmsg.c: Removed.
2494 * pt-tcdrain.c: Removed.
2495
6ee8d334
UD
24962002-12-15 Ulrich Drepper <drepper@redhat.com>
2497
81fa9371
UD
2498 * init.c (__pthread_initialize_minimal_internal): Renamed from
2499 __pthread_initialize_minimal. Make old name an alias. This
2500 converts a normal relocation into a relative relocation.
2501
f3015aa5
UD
2502 * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
2503
4cbc1950
UD
2504 * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
2505 readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
2506 * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
2507 pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
2508 pt-sigwaitinfo, pt-waitid, and pt-writev.
2509 * pt-creat.c: Removed.
2510 * pt-poll.c: Removed.
2511 * pt-pselect.c: Removed.
2512 * pt-readv.c: Removed.
2513 * pt-select.c: Removed.
2514 * pt-sigpause.c: Removed.
2515 * pt-sigsuspend.c: Removed.
2516 * pt-sigwaitinfo.c: Removed.
2517 * pt-waitid.c: Removed.
2518 * pt-writev.c: Removed.
2519
8454830b
UD
2520 * init.c (pthread_functions): New variable.
2521 (__pthread_initialize_minimal): Pass pointer to pthread_functions
2522 (or NULL) to __libc_pthread_init.
2523 * forward.c: Rewrite to use __libc:pthread_functions array to get
2524 function addresses.
2525 * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
2526 prototype.
2527 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
2528 Take new parameter. Copy content of variable pointed to by it
2529 to __libc_pthread_init.
2530
2531 * pthreadP.h (struct pthread_functions): New type.
2532 (__libc_pthread_init): Declare.
2533
2534 * pthread_attr_destroy.c: Add namespace protected alias.
2535 * pthread_attr_getdetachstate.c: Likewise.
2536 * pthread_attr_getinheritsched.c: Likewise.
2537 * pthread_attr_getschedparam.c: Likewise.
2538 * pthread_attr_getschedpolicy.c: Likewise.
2539 * pthread_attr_getscope.c: Likewise.
2540 * pthread_attr_setdetachstate.c: Likewise.
2541 * pthread_attr_setinheritsched.c: Likewise.
2542 * pthread_attr_setschedparam.c: Likewise.
2543 * pthread_attr_setschedpolicy.c: Likewise.
2544 * pthread_attr_setscope.c: Likewise.
2545 * pthread_cond_broadcast.c: Likewise.
2546 * pthread_cond_destroy.c: Likewise.
2547 * pthread_cond_init.c: Likewise.
2548 * pthread_cond_signal.c: Likewise.
2549 * pthread_cond_wait.c: Likewise.
2550 * pthread_condattr_destroy.c: Likewise.
2551 * pthread_condattr_init.c: Likewise.
2552 * pthread_equal.c: Likewise.
2553 * pthread_exit.c: Likewise.
2554 * pthread_getschedparam.c: Likewise.
2555 * pthread_self.c: Likewise.
2556 * pthread_setcancelstate.c: Likewise.
2557 * pthread_setschedparam.c: Likewise.
2558 * pthread_mutex_destroy.c: Likewise.
2559 * pthread_mutex_init.c: Likewise.
2560 * pthreadP.h: Add prototypes for the aliases.
2561
0d5f4929
UD
2562 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
2563 multiple_threads member in correct TCB to 1.
2564
6ee8d334
UD
2565 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
2566 SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
2567 member of thread decriptor, otherwise return unconditionally 1.
2568
2fb6444d
UD
25692002-12-14 Ulrich Drepper <drepper@redhat.com>
2570
2571 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
2572 regular Linux version. Remove file.
2573 * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
2574 * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
2575 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
2576 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
2577 * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
2578 * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
2579 * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
2580 * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
2581 * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
2582 * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
2583 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
2584 * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
2585 * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
2586 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
2587 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
2588 * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
2589 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
2590 * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
2591 * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
2592 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
2593 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
2594 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
2595 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
2596 * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
2597 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
2598 * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
2599 * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
2600 * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
2601 * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
2602 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
2603
86b2dc40
UD
26042002-12-14 Jakub Jelinek <jakub@redhat.com>
2605
2606 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
2607 * sysdeps/unix/sysv/linux/open.c: Removed.
2608 * sysdeps/unix/sysv/linux/fsync.c: Removed.
2609 * sysdeps/unix/sysv/linux/lseek.c: Removed.
2610 * sysdeps/unix/sysv/linux/msync.c: Removed.
2611 * sysdeps/unix/sysv/linux/read.c: Removed.
2612 * sysdeps/unix/sysv/linux/close.c: Removed.
2613 * sysdeps/unix/sysv/linux/creat.c: Removed.
2614 * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
2615 * sysdeps/unix/sysv/linux/pause.c: Removed.
2616 * sysdeps/unix/sysv/linux/select.c: Removed.
2617 * sysdeps/unix/sysv/linux/write.c: Removed.
2618
9d263d72
UD
26192002-12-14 Ulrich Drepper <drepper@redhat.com>
2620
2621 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
2622 element in TCB to see whether locking is needed.
2623
2624 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
2625 MULTIPLE_THREADS_OFFSET value is correct.
2626
2627 * sysdeps/unix/sysv/linux/close.c: New file.
2628 * sysdeps/unix/sysv/linux/connect.S: New file.
2629 * sysdeps/unix/sysv/linux/creat.c: New file.
2630 * sysdeps/unix/sysv/linux/fsync.c: New file.
2631 * sysdeps/unix/sysv/linux/llseek.c: New file.
2632 * sysdeps/unix/sysv/linux/lseek.c: New file.
2633 * sysdeps/unix/sysv/linux/msgrcv.c: New file.
2634 * sysdeps/unix/sysv/linux/msgsnd.c: New file.
2635 * sysdeps/unix/sysv/linux/msync.c: New file.
2636 * sysdeps/unix/sysv/linux/nanosleep.c: New file.
2637 * sysdeps/unix/sysv/linux/open.c: New file.
2638 * sysdeps/unix/sysv/linux/open64.c: New file.
2639 * sysdeps/unix/sysv/linux/pause.c: New file.
2640 * sysdeps/unix/sysv/linux/poll.c: New file.
2641 * sysdeps/unix/sysv/linux/pread.c: New file.
2642 * sysdeps/unix/sysv/linux/pread64.c: New file.
2643 * sysdeps/unix/sysv/linux/pselect.c: New file.
2644 * sysdeps/unix/sysv/linux/pwrite.c: New file.
2645 * sysdeps/unix/sysv/linux/pwrite64.c: New file.
2646 * sysdeps/unix/sysv/linux/readv.c: New file.
2647 * sysdeps/unix/sysv/linux/recv.S: New file.
2648 * sysdeps/unix/sysv/linux/recvfrom.S: New file.
2649 * sysdeps/unix/sysv/linux/recvmsg.S: New file.
2650 * sysdeps/unix/sysv/linux/select.c: New file.
2651 * sysdeps/unix/sysv/linux/send.S: New file.
2652 * sysdeps/unix/sysv/linux/sendmsg.S: New file.
2653 * sysdeps/unix/sysv/linux/sendto.S: New file.
2654 * sysdeps/unix/sysv/linux/sigpause.c: New file.
2655 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
2656 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
2657 * sysdeps/unix/sysv/linux/sigwait.c: New file.
2658 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
2659 * sysdeps/unix/sysv/linux/system.c: New file.
2660 * sysdeps/unix/sysv/linux/tcdrain.c: New file.
2661 * sysdeps/unix/sysv/linux/wait.c: New file.
2662 * sysdeps/unix/sysv/linux/waitid.c: New file.
2663 * sysdeps/unix/sysv/linux/waitpid.c: New file.
2664 * sysdeps/unix/sysv/linux/writev.c: New file.
2665 * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2666
2667 * pt-readv.c: Fix comment.
2668
26692002-12-14 Jakub Jelinek <jakub@redhat.com>
2670
2671 * tst-cleanup1.c: Include stdlib.h.
2672
2673 * tst-cancel5.c: New test.
2674 * Makefile (tests): Add tst-cancel5.
2675 (tst-cancel5): Link against libc.so libpthread.so in that order.
2676
9ae0909b
UD
26772002-12-13 Ulrich Drepper <drepper@redhat.com>
2678
b7bdd9c4
UD
2679 * forward.c (test_loaded): Prevent recursive calls.
2680
9ae0909b
UD
2681 * Makefile (routines): Add libc-cancellation.
2682 * libc-cancellation.c: New file.
2683 * descr.h (struct pthread): Add multiple_threads field.
2684 * allocatestack.c (allocate_stack): Initialize multiple_header field of
2685 new thread descriptor to 1.
2686 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
2687 Initialize multiple_thread field after successful thread creation.
2688 * cancellation.c (__do_cancel): Move to pthreadP.h.
2689 (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
2690 (__pthread_disable_asynccancel): Add internal_function attribute.
2691 * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
2692 * pthread_setcancelstate.c: Likewise.
2693 * pthread_setcanceltype.c: Likewise.
2694 * pthread_exit.c: Likewise.
2695 * pthreadP.h (CANCELLATION_P): Likewise.
2696 (__do_cancel): Define as static inline.
2697 (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
2698 (__libc_enable_asynccancel, __libc_disable_asynccancel): New
2699 declarations.
2700 * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
2701 fields. Define MULTIPLE_THREADS_OFFSET.
2702 * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
2703 declaration.
2704 * sysdeps/unix/sysv/linux/accept.S: New file.
2705 * sysdeps/unix/sysv/linux/read.c: New file.
2706 * sysdeps/unix/sysv/linux/write.c: New file.
2707 * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
2708 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
2709 initialization of __libc_locking_needed.
2710 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
2711 __libc_locking_needed, use multiple_threads field in TCB.
2712 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
2713
22f20674
UD
27142002-12-12 Ulrich Drepper <drepper@redhat.com>
2715
2ad2e1e7
UD
2716 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
2717 version.
2718 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
2719
22f20674
UD
2720 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
2721 access to __libc_locking_needed for PIC.
2722
aa80bf86
UD
27232002-12-12 Jakub Jelinek <jakub@redhat.com>
2724
2725 * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
2726 declare for libc.so.
2727 (__libc_lock_init, __libc_lock_init_recursive): Change into comma
2728 expression.
2729 (__libc_lock_lock): Put into statement expression.
2730 (__libc_lock_unlock): Remove trailing semicolon.
2731 * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
2732
24021373
RM
27332002-12-12 Roland McGrath <roland@redhat.com>
2734
2735 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
2736 "m" constraint to refer to __libc_locking_needed. Declare it here.
2737
14e7aece
UD
27382002-12-12 Ulrich Drepper <drepper@redhat.com>
2739
2740 * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
2741 * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
2742 Initialize __libc_locking_needed.
2743 * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
2744 instead of __register_pthread_fork_handler.
2745 * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
2746 * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
2747 fork-gen with libc_pthread_init.
2748 * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
2749 of __register_pthread_fork_handler.
2750 * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
2751 of __register_pthread_fork_handler.
2752 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
2753 __libc_locking_needed to determine whether lock prefix can be avoided.
2754 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
2755
85631c8e
UD
27562002-12-11 Ulrich Drepper <drepper@redhat.com>
2757
da63009e
UD
2758 * Makefile (tests): Add tst-cleanup1.
2759 * tst-cleanup1.c: New file.
2760 * cancellation.c (__cleanup_thread): Removed.
2761 (__do_cancel): Remove call to __cleanup_thread.
2762 * pthreadP.h: Remove __cleanup_thread prorotype.
2763
000160a2
UD
2764 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
2765 Remember function and argument even if cancellation handler
2766 function is not available.
2767 (__libc_cleanup_region_end): Execute registered function directly if
2768 pthread functions are not available.
2769 (__libc_cleanup_end): Likewise.
2770
85631c8e
UD
2771 * init.c (__pthread_initialize_minimal): Fix initialization in
2772 static lib by preventing gcc from being too clever.
2773
dce8f2b6
UD
27742002-12-10 Ulrich Drepper <drepper@redhat.com>
2775
34a075be
UD
2776 * init.c (__pthread_initialize_minimal): Remove unneccesary
2777 sigaddset call.
2778
dce8f2b6
UD
2779 * Makefile (tests): We can run tst-locale2 now.
2780
e5e45b53
UD
27812002-12-09 Ulrich Drepper <drepper@redhat.com>
2782
2783 * Versions: Remove duplicated sigwait entry.
2784
bdb04f92
UD
27852002-12-08 Ulrich Drepper <drepper@redhat.com>
2786
1e506629
UD
2787 * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
2788 inside libpthread.
2789
a3957dd5
UD
2790 * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
2791
bdb04f92
UD
2792 * pthreadP.h: Declare __pthread_enable_asynccancel and
2793 __pthread_disable_asynccancel.
2794 (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
2795 (CANCEL_RESET): Use __pthread_disable_asynccancel.
2796 * cancellation.c (__pthread_enable_asynccancel): New function.
2797 (__pthread_disable_asynccancel): New function.
2798 * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
2799 * pt-close.c: Likewise.
2800 * pt-connect.c: Likewise.
2801 * pt-creat.c: Likewise.
2802 * pt-fcntl.c: Likewise.
2803 * pt-fsync.c: Likewise.
2804 * pt-lseek.c: Likewise.
2805 * pt-lseek64.c: Likewise.
2806 * pt-msgrcv.c: Likewise.
2807 * pt-msgsnd.c: Likewise.
2808 * pt-msync.c: Likewise.
2809 * pt-nanosleep.c: Likewise.
2810 * pt-open.c: Likewise.
2811 * pt-open64.c: Likewise.
2812 * pt-pause.c: Likewise.
2813 * pt-poll.c: Likewise.
2814 * pt-pread.c: Likewise.
2815 * pt-pread64.c: Likewise.
2816 * pt-pselect.c: Likewise.
2817 * pt-pwrite.c: Likewise.
2818 * pt-pwrite64.c: Likewise.
2819 * pt-read.c: Likewise.
2820 * pt-readv.c: Likewise.
2821 * pt-recv.c: Likewise.
2822 * pt-recvfrom.c: Likewise.
2823 * pt-recvmsg.c: Likewise.
2824 * pt-select.c: Likewise.
2825 * pt-send.c: Likewise.
2826 * pt-sendmsg.c: Likewise.
2827 * pt-sendto.c: Likewise.
2828 * pt-sigpause.c: Likewise.
2829 * pt-sigsuspend.c: Likewise.
2830 * pt-sigtimedwait.c: Likewise.
2831 * pt-sigwait.c: Likewise.
2832 * pt-sigwaitinfo.c: Likewise.
2833 * pt-system.c: Likewise.
2834 * pt-tcdrain.c: Likewise.
2835 * pt-wait.c: Likewise.
2836 * pt-waitid.c: Likewise.
2837 * pt-waitpid.c: Likewise.
2838 * pt-write.c: Likewise.
2839 * pt-writev.c: Likewise.
a3957dd5
UD
2840 * pthread_join.c: Likewise.
2841 * pthread_timedjoin.c: Likewise.
bdb04f92
UD
2842
2843 * pt-sigpause.c (sigsuspend): Call __sigsuspend.
2844 (__xpg_sigpause): New function.
2845 * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
2846
6ccb3834
UD
28472002-12-07 Ulrich Drepper <drepper@redhat.com>
2848
09efc3ba
UD
2849 * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
2850
2851 * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
2852 _GI_pthread_cleanup_pop to pthreadP.h.
2853
2854 * ftrylockfile.c: Use _IO_lock_trylock instead of
2855 pthread_mutex_trylock.
2856
2857 * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
2858 (CANCEL_RESET): Likewise.
2859 (__pthread_setcanceltype_): Declare.
2860 (__pthread_mutex_lock_internal): Declare.
2861 (__pthread_mutex_unlock_internal): Declare.
2862 (__pthread_once_internal): Declare.
2863 (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
2864 (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
2865
2866 * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
2867 and pthread_mutex_unlock.
2868 * pthread_cond_wait.c: Likewise.
2869 * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
2870 * pthread_mutex_unlock.c: Likewise.
2871
2872 * pthread_setcanceltype.c: Add additional alias
2873 __pthread_setcanceltype.
2874
2875 * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
2876 * sem_open.c (sem_open): Likewise.
2877 Use __libc_open, __libc_write, and __libc_close instead of
2878 open, write, and close respectively.
2879
2880 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
2881 Rewrite as statement expression since it must return a value.
2882
2883 * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
2884 * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
2885 __pthread_kill.
2886
2887 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
2888 alias __pthread_once_internal.
2889
6ccb3834
UD
2890 * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
2891
d3c9f895
UD
28922002-12-06 Ulrich Drepper <drepper@redhat.com>
2893
4614167a
UD
2894 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
2895 * tst-stdio1.c: New file.
2896 * tst-stdio2.c: New file.
2897
a4548cea
UD
2898 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
2899
d3c9f895
UD
2900 * Makefile (tests): Comment out tst-locale2 for now.
2901 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
2902
2903 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
2904 -D_IO_MTSAFE_IO.
2905 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
2906 Use _IO_lock_init instead of explicit assignment.
2907
2908 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
2909 Define __libc_lock_* and __libc_lock_recursive macros with
2910 lowlevellock macros, not pthread mutexes.
2911
2912 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
2913 of pthread_mutex_lock.
2914 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
2915 instead of pthread_mutex_unlock.
2916
fde89ad0
RM
29172002-12-06 Roland McGrath <roland@redhat.com>
2918
2919 * allocatestack.c (__stack_user): Use uninitialized defn.
2920 * init.c (__pthread_initialize_minimal): Initialize it here.
2921
11767d47
RM
29222002-12-05 Roland McGrath <roland@redhat.com>
2923
fde89ad0
RM
2924 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
2925 string.
2926 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2927
11767d47
RM
2928 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
2929 missing & here too.
2930
440d8bc2
UD
29312002-12-05 Ulrich Drepper <drepper@redhat.com>
2932
2933 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2934 lowlevellock.
2935 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
2936 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
2937 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
2938 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
2939 for __libc_lock_* macros.
2940 * Makefile (routines): Add libc-lowlevellock.
2941
29422002-10-09 Roland McGrath <roland@redhat.com>
2943
2944 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
2945 Under [__PIC__], call the function via the pointer fetched for
2946 comparison rather than a call by name that uses the PLT.
2947 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
2948 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
2949 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
2950 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
2951 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
2952
d5ed0118
RM
29532002-12-04 Roland McGrath <roland@redhat.com>
2954
2955 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
2956
2957 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
2958 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
2959
2960 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
2961
eaa4099f
UD
29622002-12-04 Ulrich Drepper <drepper@redhat.com>
2963
2964 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
2965 a completely opaque, non-integer type.
2966 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
2967
33b5d0cc
UD
29682002-12-05 Jakub Jelinek <jakub@redhat.com>
2969
2970 * sysdeps/i386/tls.h: Include stdlib.h.
2971 * sysdeps/x86_64/tls.h: Likewise.
2972
7a5cdb30
UD
29732002-12-04 Ulrich Drepper <drepper@redhat.com>
2974
c4a6d859
UD
2975 * Makefile (tests): Add tst-locale2.
2976 (tests-static): Likewise.
2977 * tst-locale2.c: New file.
2978
7a5cdb30
UD
2979 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
2980 volatile and add memory clobbers to lock operations.
2981
d82d5d12
UD
29822002-12-03 Ulrich Drepper <drepper@redhat.com>
2983
69cae3cf
UD
2984 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
2985 * sysdeps/i386/i486/bits/atomic.h: New file.
2986 * sysdeps/i386/i586/bits/atomic.h: New file.
2987 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
2988 include i486 version.
2989 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
2990 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
c97c64de 2991 Patch by Marijn Ros <marijn@mad.scientist.com>.
69cae3cf 2992
e4044c01
UD
2993 * allocatestack.c (get_cached_stack): Don't crash if we first
2994 found a stack with a larger size then needed.
2995 Reported by Hui Huang <hui.huang@sun.com>.
2996
d82d5d12
UD
2997 * Makefile (tests): Add tst-sysconf.
2998 * tst-sysconf.c: New file.
2999
3000 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
3001 PTHREAD_THREADS_MAX.
3002
fa9a4ff0
RM
30032002-12-02 Roland McGrath <roland@redhat.com>
3004
3005 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
3006 Declare using hidden_proto instead of attribute_hidden, so there are
3007 non-.hidden static symbols for gdb to find.
3008 (__pthread_keys): Likewise.
3009 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
3010 * allocatestack.c (__stack_user): Likewise.
3011 * pthread_create.c (__pthread_keys): Likewise.
3012 (__nptl_threads_events, __nptl_last_event): Make these static instead
3013 of hidden.
3014 * pthread_key_create.c (__pthread_pthread_keys_max,
3015 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
3016
91949a33
UD
30172002-12-02 Ulrich Drepper <drepper@redhat.com>
3018
c22b52fa
UD
3019 * Makefile (tests): Add tst-locale1. If buid-static is yes link
3020 statically.
3021 * tst-locale1.c: New file.
3022
beb6aa41
UD
3023 * pthread_cond_timedwait.c: Include <stdlib.h>.
3024
91949a33
UD
3025 * Makefile (tests): Add tst-fork2 and tst-fork3.
3026 * tst-fork2.c: New file.
3027 * tst-fork3.c: New file.
3028
654dff90
UD
30292002-11-28 Ulrich Drepper <drepper@redhat.com>
3030
cb0e76b4
UD
3031 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
3032
3033 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
3034 require it to 200112L.
3035
3036 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
3037 instruction only if HAVE_CMOV is defined.
3038 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
3039
975aa229
UD
3040 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
3041
654dff90
UD
3042 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
3043
3044 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
3045
3046 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
3047
a3931336
UD
30482002-11-27 Ulrich Drepper <drepper@redhat.com>
3049
c10c099c
UD
3050 * sysdeps/x86_64/bits/atomic.h: New file.
3051
3052 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
3053 16-bit operations.
3054
dca99d27
UD
3055 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
3056 possible since gettid cannot fail.
3057
f78deea6
UD
3058 * sysdeps/x86_64/pthreaddef.h: New file.
3059
3060 * sysdeps/i386/pthreaddef.h (gettid): Removed.
3061
3062 * sysdeps/x86_64/pthread_spin_init.c: New file.
3063 * sysdeps/x86_64/pthread_spin_lock.c: New file.
3064 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
3065 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
3066
3067 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
3068 Add missing lock prefix. Minute optimization.
3069
3070 * tst-spin2.c (main): Also check successful trylock call.
3071
3072 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
3073 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
3074
3075 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
3076 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
3077
3078 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
3079 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
3080 value in case of an error. Add support for INTERNAL_SYSCALL.
b54e18eb
UD
3081
3082 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
3083 value in case of an error.
3084
a3931336
UD
3085 * sysdeps/x86_64/tls.h: New file.
3086
76a50749
UD
30872002-11-26 Ulrich Drepper <drepper@redhat.com>
3088
117c452c
UD
3089 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
3090 takes the array member name and the index as parameters.
3091 (THREAD_SETMEM_NC): Likewise.
3092 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
3093 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
3094 interfaces.
3095
3096 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
3097 to decide which code to use.
3098 (THREAD_SETMEM_NC): Likewise.
3099
76a50749
UD
3100 * allocatestack.c (queue_stack): Don't remove stack from list here.
3101 Do it in the caller. Correct condition to prematurely terminate
3102 loop to free stacks.
3103 (__deallocate_stack): Remove stack from list here.
3104
31052002-11-26 Ulrich Drepper <drepper@redhat.com>
3106
3107 * Makefile (tests): Add tst-stack1.
3108 * tst-stack1.c: New file.
3109
3110 * allocatestack.c (allocate_stack): Initialize the TCB on a user
3111 provided stack.
3112
3113 * pthread_attr_getstack.c: Return bottom of the thread area.
3114
31152002-11-25 Ulrich Drepper <drepper@redhat.com>
3116
3117 * Makefile (libpthread-routines): Add pt-allocrtsig and
3118 pthread_kill_other_threads.
3119 * pt-allocrtsig.c: New file.
3120 * pthread_kill_other_threads.c: New file.
3121 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
3122 all three functions.
3123 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
3124 allocrtsig.
3125 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
3126 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
3127 and __libc_allocate_rtsig_private.
3128 * Versions (libpthread): Export pthread_kill_other_threads_np,
3129 __libc_current_sigrtmin, and __libc_current_sigrtmax.
3130
31312002-11-24 Ulrich Drepper <drepper@redhat.com>
3132
3133 * allocatestack.c (allocate_stack): stackaddr in attribute points to
3134 the end of the stack. Adjust computations.
3135 When mprotect call fails dequeue stack and free it.
3136 * pthread_attr_setstack.c: Store top of the stack in stackaddr
3137 attribute.
3138 * pthread_getattr_np.c: Likewise.
3139
3140 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
3141 surprises.
3142
31432002-11-23 Ulrich Drepper <drepper@redhat.com>
3144
3145 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
3146 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
3147
31482002-11-22 Ulrich Drepper <drepper@redhat.com>
3149
3150 * pthread_getspecific.c: Optimize access to first 2nd-level array.
3151 * pthread_setspecific.c: Likewise.
3152
31532002-11-21 Ulrich Drepper <drepper@redhat.com>
3154
3155 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
3156 definitions. Get them from the official place.
3157 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
3158
3159 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
3160 Use new CLONE_ flags in clone() calls.
3161
3162 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
3163 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
3164
3165 * Versions: Add pthread_* functions for libc.
3166 * forward.c: New file.
3167
3168 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
3169 errno-loc.
3170 * herrno.c: New file.
3171 * res.c: New file.
3172
3173 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
3174 sem_trywait, and sem_timedwait. Add herrno and res.
3175 * sem_init.c: Don't initialize lock and waiters members.
3176 * sem_open.c: Likewise.
3177 * sem_post.c: Removed.
3178 * sem_wait.c: Removed.
3179 * sem_trywait.c: Removed.
3180 * sem_timedwait.c: Removed.
3181 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
3182 Includes full implementations of sem_post, sem_wait, sem_trywait,
3183 and sem_timedwait.
3184 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
3185 for new implementation.
3186 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
3187 and waiters fields.
3188
3189 * tst-sem3.c: Improve error message.
3190 * tst-signal3.c: Likewise.
3191
3192 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
3193 to tell the kernel about the termination futex and to initialize tid
3194 member. Don't initialize main_thread.
3195 * descr.h (struct pthread): Remove main_thread member.
3196 * cancelllation.c (__do_cancel): Remove code handling main thread.
3197 The main thread is not special anymore.
3198
3199 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
3200 size of the stacks to stack_cache_actsize.
3201
3202 * pt-readv.c: Add missing "defined".
3203 * pt-sigwait.c: Likewise.
3204 * pt-writev.c: Likewise.
3205
32062002-11-09 Ulrich Drepper <drepper@redhat.com>
3207
3208 * Versions: Export __connect from libpthread.
3209 Patch by Luca Barbieri <ldb@ldb.ods.org>.
3210
3211 * Makefile (libpthread-routines): Add pt-raise.
3212 * sysdeps/unix/sysv/linux/raise.c: New file.
3213 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
3214 * sysdeps/generic/pt-raise.c: New file.
3215
3216 * pthread_cond_init.c: Initialize all data elements of the condvar
3217 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
3218
3219 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
3220 * pthread_create.c: Likewise.
3221
3222 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
3223 * tst-key1.c: New file.
3224 * tst-key2.c: New file.
3225 * tst-key3.c: New file.
3226
3227 * Versions: Export pthread_detach for version GLIBC_2.0.
3228 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
3229
32302002-11-08 Ulrich Drepper <drepper@redhat.com>
3231
3232 * pthread_key_create.c: Terminate search after an unused key was found.
3233 Patch by Luca Barbieri <ldb@ldb.ods.org>.
3234
3235 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
3236 Patch by Luca Barbieri <ldb@ldb.ods.org>.
3237
32382002-10-10 Ulrich Drepper <drepper@redhat.com>
3239
3240 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
3241 dynamic lookup for errno in PIC.
3242
3243 * allocatestack.c (get_cached_stack): Rearrange code slightly to
3244 release the stack lock as soon as possible.
3245 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
3246 the static TLS block.
3247 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
3248
3249 * cancellation.c: Renamed from cancelation.c.
3250 * Makefile: Adjust accordingly.
3251 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
3252 * cleanup_defer.c: Use CANCELLATION_P.
3253 * pthread_testcancel.c: Likewise.
3254 * descr.h: Fix spelling in comments.
3255 * init.c: Likewise.
3256 * pthread_getattr_np.c: Likewise.
3257 * pthread_getschedparam.c: Likewise.
3258 * pthread_setschedparam.c: Likewise.
3259 * Versions: Likewise.
3260
3261 * pt-pselect.c: New file.
3262 * Makefile (libpthread-routines): Add pt-pselect.
3263 * Versions: Add pselect.
3264
3265 * tst-cancel4.c: New file.
3266 * Makefile (tests): Add tst-cancel4.
3267
32682002-10-09 Ulrich Drepper <drepper@redhat.com>
3269
3270 * pthread_mutex_lock.c: Always record lock ownership.
3271 * pthread_mutex_timedlock.c: Likewise.
3272 * pthread_mutex_trylock.c: Likewise.
3273
3274 * pt-readv.c: New file.
3275 * pt-writev.c: New file.
3276 * pt-creat.c: New file.
3277 * pt-msgrcv.c: New file.
3278 * pt-msgsnd.c: New file.
3279 * pt-poll.c: New file.
3280 * pt-select.c: New file.
3281 * pt-sigpause.c: New file.
3282 * pt-sigsuspend.c: New file.
3283 * pt-sigwait.c: New file.
3284 * pt-sigwaitinfo.c: New file.
3285 * pt-waitid.c: New file.
3286 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
3287 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
3288 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
3289 * Versions: Add all the new functions.
3290
3291 * tst-exit1.c: New file.
3292 * Makefile (tests): Add tst-exit1.
3293
3294 * sem_timedwait.c: Minor optimization for more optimal fastpath.
3295
32962002-10-08 Ulrich Drepper <drepper@redhat.com>
3297
3298 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
3299
3300 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
3301 call. pthread_join is an official cancellation point.
3302 * pthread_timedjoin.c: Likewise.
3303
3304 * pthread_cond_wait.c: Revert order in which internal lock are dropped
3305 and the condvar's mutex are retrieved.
3306 * pthread_cond_timedwait.c: Likewise.
3307 Reported by dice@saros.East.Sun.COM.
3308
33092002-10-07 Ulrich Drepper <drepper@redhat.com>
3310
3311 * pthreadP.h: Cut out all type definitions and move them...
3312 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
3313 * pthreadP.h: Include <internaltypes.h>.
3314
3315 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
3316 performance tweaks.
3317
3318 * sem_trywait.c: Shuffle #includes around to get right order.
3319 * sem_timedwait.c: Likewise.
3320 * sem_post.c: Likewise.
3321 * sem_wait.c: Likewise.
3322
3323 * nptl 0.3 released.
3324
3325 * Makefile (tests): Add tst-signal3.
3326 * tst-signal3.c: New file.
3327
33282002-10-05 Ulrich Drepper <drepper@redhat.com>
3329
3330 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
3331 the asms modify the sem object.
3332 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
3333
3334 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
3335 the actual members.
3336 * pthreadP.h (struct sem): New type. Actual semaphore type.
3337 * semaphoreP.h: Include pthreadP.h.
3338 * sem_getvalue.c: Adjust to sem_t change.
3339 * sem_init.c: Likewise.
3340 * sem_open.c: Likewise.
3341 * sem_post.c: Likewise.
3342 * sem_timedwait.c: Likewise.
3343 * sem_trywait.c: Likewise.
3344 * sem_wait.c: Likewise.
3345
33462002-10-04 Ulrich Drepper <drepper@redhat.com>
3347
3348 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
3349 * tst-basic2.c: New file.
3350 * tst-exec1.c: New file.
3351 * tst-exec2.c: New file.
3352 * tst-exec3.c: New file.
3353
3354 * tst-fork1.c: Remove extra */.
3355
3356 * nptl 0.2 released. The API for IA-32 is complete.
This page took 0.432028 seconds and 5 git commands to generate.