]> git.ipfire.org Git - thirdparty/glibc.git/blame - nptl/ChangeLog
Update.
[thirdparty/glibc.git] / nptl / ChangeLog
CommitLineData
3724f268
UD
12003-02-24 Ulrich Drepper <drepper@redhat.com>
2
86371308
UD
3 * tst-rwlock8.c (reader_thread): Remove unused variable.
4
ffeb4481
UD
5 * Makefile: Add rules to build and run tst-tls3.
6 * tst-tls3.c: New file.
7 * tst-tls3mod.c: New file.
8
3724f268
UD
9 * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
10 * tst-rwlock8.c: New file.
11 * tst-rwlock9.c: New file.
12 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
13 complete broken rwlock implementation.
14 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
15 Likewise.
16 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
17 Likewise.
18 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
19 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
18a53579
UD
20 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
21 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
22 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
23 * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
24 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
3724f268 25
8915cc40
RM
262003-02-23 Roland McGrath <roland@redhat.com>
27
28 * Makefile (nptl-version): Change regexp so case sensitivity is ok.
29
fd1a0d0c
UD
302003-02-23 Ulrich Drepper <drepper@redhat.com>
31
ecf28959
UD
32 * Makefile (tests): Add tst-context1.
33 * tst-context1.c: New file.
34
5e47b76b
UD
35 * Makefile (tests): Add tst-tls1 and tst-tls2.
36 * tst-tls1.c: New file.
37 * tst-tls2.c: New file.
38
5a6bbb41
UD
39 * libc-cancellation.c (__libc_enable_asynccancel): Correct test
40 for failed cmpxchg.
41
fd1a0d0c
UD
42 * pthread_create.c (start_thread): Set EXITING_BIT early.
43
44 * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
45 (THREAD_GETMEM_NC): Likewise.
46
757f9fcb
UD
472003-02-22 Ulrich Drepper <drepper@redhat.com>
48
b1b8e747
UD
49 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
50 off 3 more bytes by using offset-less instructions when possible.
51
c780aa21 52 * Makefile: Add dependency for $(objpfx)version.d.
757f9fcb
UD
53
54 * eintr.c (eintr_source): Add unnecessary return but the compiler
55 insists.
56
57 * tst-kill3.c: Include <unistd.h>.
58
5148559c
RM
592003-02-21 Roland McGrath <roland@redhat.com>
60
61 * pthread_create.c (start_thread): Call __libc_thread_freeres.
62
ab2d98e3
UD
632003-02-21 Ulrich Drepper <drepper@redhat.com>
64
71028edd
UD
65 * Makefile (tests): Add tst-eintr1.
66 (distribute): Add eintr.c.
67 * tst-eintr1.c: New file.
68 * eintr.c: New file.
69
e814f748
UD
70 * pthread_cancel.c (pthread_cancel): Use tkill directly.
71
72 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
73 Disallow sending SIGCANCEL.
74
ab2d98e3 75 * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
9c03686d 76 tst-kill3, tst-kill4, tst-kill5, tst-kill6.
e814f748
UD
77 * tst-kill1.c: New file.
78 * tst-kill2.c: New file.
79 * tst-kill3.c: New file.
80 * tst-kill5.c: New file.
9c03686d 81 * tst-kill6.c: New file.
e814f748
UD
82 * tst-basic7.c: Renamed to...
83 * tst-kill4.c: ...this.
ab2d98e3 84
59fed0e2
RM
852003-02-21 Roland McGrath <roland@redhat.com>
86
87 * Makefile (install-lib-ldscripts): New variable.
88
49dc759f
UD
892003-02-21 Ulrich Drepper <drepper@redhat.com>
90
8c2e9a29
UD
91 * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
92 * pthread_cancel.c: Use INVALID_TD_P.
93 * pthread_detach.c: Likewise.
94 * pthread_getschedparam.c: Likewise.
95 * pthread_setschedparam.c: Likewise.
96 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
97 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
98 * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
99 * pthread_timedjoin.c: Likewise.
100
101 * tst-basic7.c: Include <signal.h>.
102
49dc759f
UD
103 * pthread_join.c (pthread_join): Limited checking for invalid
104 descriptors.
105 * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
106
df5803bf
UD
1072003-02-20 Ulrich Drepper <drepper@redhat.com>
108
c5acd3d7
UD
109 * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
110 beginning of the loop. Clear the entire first block of TSD.
df5803bf
UD
111 * Makefile (tests): Add tst-key4.
112 * tst-key4.c: New file.
113
729924a0
UD
1142003-02-18 Ulrich Drepper <drepper@redhat.com>
115
2f7dc594
UD
116 * Makefile (tests): Add tst-basic7.
117 * tst-basic7.c: New file.
118
ba25bb0f
UD
119 * pthread_create.c (deallocate_tsd): Mark as internal_function.
120 Add some more __builtin_expect.
121
12fd3c5f 122 * pthreadP.h: Define dummy version of DEBUGGING_P.
729924a0 123
5430d926
UD
1242003-02-17 Ulrich Drepper <drepper@redhat.com>
125
b0db7fbe
UD
126 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
127 _POSIX_THREAD_PRIORITY_SCHEDULING.
128 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
129 _XOPEN_REALTIME_THREADS.
130 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
131
132 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
133 kernel returns EINVAL for PID <= 0, work around it.
134
ecfda9bd
UD
135 * Makefile (tests): Add tst-signal5.
136 * tst-signal5.c: New file.
137
7d78ab99
UD
138 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
139 and LOGIN_NAME_MAX.
140
371a2972
UD
141 * tst-cancel1.c (tf): Block all signals.
142
5430d926
UD
143 * Makefile (tests): Add tst-basic6.
144 * tst-basic6.c: New file.
145
146 * tst-basic1.c: Add test for process ID.
147
148 * Makefile (tests): Add tst-cancel10.
149 * tst-cancel10.c: New file.
150
151 * Makefile (tests): Add tst-signal4.
152 * tst-signal4.c: New file.
153
154 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
155 __sigismember instead of sigismember. Add __builtin_expect.
156
1564916a
UD
1572003-02-16 Ulrich Drepper <drepper@redhat.com>
158
179ff175
UD
159 * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
160 pthread_setcancelstate, and pthread_rwlock_setpshared.
161
e4335f9a
UD
162 * tst-cancel7.c (do_test): Make sure the pid file exists before
163 canceling the thread.
164
0a37669a
UD
165 * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
166 pthread_rwlock_timedrdlock tests.
167 * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
168 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
169 Check for invalid tv_nsec field.
170 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
171 Likewise.
172
173 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
174 recursive mutex of overflow.
175
176 * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
177
e4335f9a 178 * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
1564916a
UD
179 going into an endless loop.
180 * Makefile (tests): Add tst-cancel9.
181 * tst-cancel9.c: New file.
182
183 * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
184
b270b548
UD
1852003-02-15 Ulrich Drepper <drepper@redhat.com>
186
1c82b97f
UD
187 * tst-mutex5.c (do_test): Add more timedlock tests.
188
b2f05465 189 * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
c3bb9ee1
UD
190 * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
191
e798b60f
UD
192 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
193 use INLINE_SYSCALL. Error number is returned, not -1.
194
90491dc4
UD
195 * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
196 and __deallocate_stack with internal_function.
197 * pthread_create.c: Adjust definitions appropriately.
198 * allocatestack.c: Likewise.
199
200 * pthread_join.c: Add one more __builtin_expect.
201 * pthread_timedjoin.c: Likewise.
202
203 * pthread_getspecific.c (__pthread_getspecific): Clear data->data
204 not data of sequence number does not match.
205 Add one __builtin_expect.
206
c6247c9d
UD
207 * Makefile (tests): Add tst-clock1.
208 * tst-clock1.c: New file.
209
b270b548
UD
210 * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
211 negative arguments.
212 * Makefile (tests): Add tst-basic5.
213 * tst-basic5.c: New file.
214
700bf7af
UD
2152003-02-14 Ulrich Drepper <drepper@redhat.com>
216
757de559
UD
217 * Makefile (tests): Add tst-basic4.
218 * tst-basic4.c: New file.
219
47202270
UD
220 * pthreadP.h: Add declaraction for __nptl_nthreads.
221 * pthread_create.c: Define __nptl_nthreads
222 (start_thread): Increment __nptl_nthreads at beginning. Decrement
b270b548 223 after thread is done. If then zero, call exit(0).
47202270
UD
224 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
225 Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
226 * init.c (pthread_functions): Initialize ptr_nthreads.
227 * allocatestack.c (nptl_nthreads): Remove definition and all uses.
228 (__reclaim_stacks): Decrement __nptl_nthreads.
229 * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
230 Define.
231 * Makefile (tests): Add tst-basic3.
232 * tst-basic3.c: New file.
233
e320ef46
UD
234 * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
235 after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
236 * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
237 * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
238 if asynchronous canceling is enabled.
239 * pthread_join.c (pthread_join): When recognizing circular joins,
240 take into account the other thread might be already canceled.
241 * Makefile (tests): Add tst-join5.
242 * tst-join5.c: New file.
243
700bf7af
UD
244 * Makefile (tests): Add tst-join4.
245 * tst-join4.c: New file.
246
2472003-02-13 Ulrich Drepper <drepper@redhat.com>
248
249 * tst-cond4.c (main): Add test of pthread_attr_getpshared.
250
dac0f772
UD
2512003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
252
253 * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
254 THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
255 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
256 warning.
257 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
258 to avoid warning.
259 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
260 error if lll_futex_wake failed.
261
e8cda341
UD
2622003-02-13 Ulrich Drepper <drepper@redhat.com>
263
a7720b5e
UD
264 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
265 handling of cancellation and failung pthread_mutex_unlock call.
266 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
267 * Makefile (tests): Add tst-cond8 and tst-cond9.
268 * tst-cond8.c: New file.
269 * tst-cond9.c: New file.
270
a1ea4c06
UD
271 * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
272
273 * sysdeps/pthread/pthread.h: Add missing initializers. Protect
274 non-standard initializers with __USE_GNU.
275
e8cda341
UD
276 * Makefile (tests): Add tst-cleanup3.
277 * tst-cleanup3.c: New file.
278
2067577c
UD
2792003-02-12 Ulrich Drepper <drepper@redhat.com>
280
89e78a95
UD
281 * Makefile (tests): Add tst-attr1 and tst-attr2.
282 * tst-attr1.c: New file.
283 * tst-attr2.c: New file.
284
dfdd294a
UD
285 * Makefile: Add rules to build and run tst-atfork2 test.
286 * tst-atfork2.c: New file.
287 * tst-atfork2mod.c: New file.
288
289 * sysdeps/unix/sysv/linux/unregister-atfork.c
290 (__unregister_atfork): Free the memory allocated for the handlers
291 after removing them from the lists.
292
293 * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
294 cleanup function.
295
296 * tst-atfork1.c (do_test): Wait for the child we forked.
297 Report error in child.
298
299 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
300
2067577c
UD
301 * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
302
2a8a8a84
UD
3032003-02-10 Ulrich Drepper <drepper@redhat.com>
304
d9dd121e
UD
305 * Makefile (tests): Add tst-cancel8.
306 * tst-cancel8.c: New file.
307
2a8a8a84
UD
308 * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
309 clearing of control variable.
defd1870 310 * Makefile (tests): Add tst-once3 and tst-once4.
2a8a8a84 311 * tst-once3.c: New file.
defd1870 312 * tst-once4.c: New file.
2a8a8a84 313
a54e8d33
UD
3142003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
315
316 * sysdeps/sh/Makefile: New file.
317 * sysdeps/sh/bits/atomic.h: New file.
318 * sysdeps/sh/pthread_spin_init.c: New file.
319 * sysdeps/sh/pthread_spin_lock.c: New file.
320 * sysdeps/sh/pthread_spin_trylock.S: New file.
321 * sysdeps/sh/pthread_spin_unlock.S: New file.
322 * sysdeps/sh/pthreaddef.h: New file.
323 * sysdeps/sh/tcb-offsets.sym: New file.
324 * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
325 * sysdeps/sh/tls.h: New file.
326 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
327 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
328 * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
329 * sysdeps/unix/sysv/linux/sh/fork.c: New file.
330 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
331 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
332 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
333 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
334 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
335 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
336 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
337 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
338 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
339 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
340 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
341 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
342 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
343 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
344 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
345 * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
346 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
347 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
348 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
349 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
350 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
351 * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
352 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
353 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
354 * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
355 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
356
696e556e
UD
3572003-02-08 Ulrich Drepper <drepper@redhat.com>
358
359 * tst-cond2.c: Rearrange code to not rely on behavior undefined
360 according to POSIX.
361
362 * tst-basic2.c (do_test): Lock mutex before creating the thread.
363
fef710d6
UD
3642003-02-07 Ulrich Drepper <drepper@redhat.com>
365
c6180643
UD
366 * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
367 (TLS_GET_FS): New #define.
368 (TLS_SET_FS): New #define.
369 Correct value of __NR_set_thread_area.
370
fef710d6
UD
371 * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
372
11090a99
UD
3732003-02-06 Ulrich Drepper <drepper@redhat.com>
374
65c68990
UD
375 * Makefile (tests): Add tst-popen1.
376 * tst-popen1.c: New file.
377
11090a99
UD
378 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
379 but inactive generalization.
380 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
381 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
382 Minor optimization, remove one instruction.
383 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
384
a88c9263
UD
3852003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
386
387 * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
388
3892003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
390
391 * init.c (__NR_set_tid_address): Add #ifdef for s390.
392 * sysdeps/pthread/pthread_barrier_wait.c: New file.
393 * sysdeps/pthread/pthread_cond_broadcast.c: New file.
394 * sysdeps/pthread/pthread_cond_signal.c: New file.
395 * sysdeps/pthread/pthread_cond_timedwait.c: New file.
396 * sysdeps/pthread/pthread_cond_wait.c: New file.
397 * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
398 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
399 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
400 * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
401 * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
402 * sysdeps/s390/Makefile: New file.
403 * sysdeps/s390/bits/atomic.h: New file.
404 * sysdeps/s390/pthread_spin_init.c: New file.
405 * sysdeps/s390/pthread_spin_lock.c: New file.
406 * sysdeps/s390/pthread_spin_trylock.c: New file.
407 * sysdeps/s390/pthread_spin_unlock.c: New file.
408 * sysdeps/s390/pthreaddef.h: New file.
409 * sysdeps/s390/tcb-offsets.sym: New file.
410 * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
411 * sysdeps/s390/tls.h: New file.
412 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
413 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
414 * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
415 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
416 * sysdeps/unix/sysv/linux/s390/fork.c: New file.
417 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
418 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
419 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
420 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
421 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
422 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
423 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
424 * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
425 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
426 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
427 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
428 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
429 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
430 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
431 * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
432 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
433 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
434 * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
435
6f1cff95
UD
4362003-02-04 Ulrich Drepper <drepper@redhat.com>
437
ec609a8e
UD
438 * atomic.h: Add a couple more default implementations.
439 (atomic_compare_and_exchange_acq): Use
d45e8740
UD
440 __arch_compare_and_exchange_32_acq in return value definition. It
441 always exists.
442 (atomic_bit_set): Renamed from atomic_set_bit.
0289bef9 443 Add missing atomic_ prefixes.
e3ec8904 444
6f1cff95
UD
445 * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
446 thread library is available, use correct value to mark initialized
447 once variable.
448
4f088329
UD
4492003-02-03 Ulrich Drepper <drepper@redhat.com>
450
6f1cff95
UD
451 * allocatestack.c (allocate_stack): Use __getpagesize instead of
452 __sysconf to determine pagesize.
453
3e4fc359 454 * pthread_create.c: Include <atomic.h>.
4f088329
UD
455 * allocatestack.c (allocate_stack): Implement coloring of the
456 allocated stack memory. Rename pagesize to pagesize_m1. It's the
457 size minus one. Adjust users.
3e4fc359 458 * sysdeps/i386/i686/Makefile: New file.
4f088329 459
2f42e8be
UD
4602003-02-02 Ulrich Drepper <drepper@redhat.com>
461
4301f7e2
UD
462 * allocatestack.c: Improve comment throughout the file.
463
2f42e8be 464 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
a37818b3 465 (__lll_lock_wait): Add branch prediction.
2f42e8be
UD
466 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
467 (__lll_lock_wait): Likewise.
468 (lll_unlock_wake_cb): Removed.
469
4a7d6545
UD
4702003-01-31 Ulrich Drepper <drepper@redhat.com>
471
472 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
473 _POSIX_THREAD_PRIORITY_SCHEDULING.
474
886d5973
UD
4752003-01-30 Jakub Jelinek <jakub@redhat.com>
476
477 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
478 Fix return type of ptr___pthread_getspecific.
479
e474ca78
UD
4802003-01-29 Ulrich Drepper <drepper@redhat.com>
481
482 * Makefile (tests): Add tst-umask1.
483 (tst-umask1-ARGS): Define.
484 * tst-umask1.c: New file.
485
e6ebd2e4
UD
4862003-01-28 Ulrich Drepper <drepper@redhat.com>
487
6cf26f41
UD
488 * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
489 pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
490 pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
491 pthread_rwlock_unlock.
492 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
493 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
494 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
495 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
496 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
497 New file.
498 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
499 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
500 New file.
501 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
502 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
503 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
504 New file.
505 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
506 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
507 New file.
508 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
509 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
510 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
511 New file.
512 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
513 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
514 New file.
515 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
516
1d087a7e
UD
517 * Makefile (libpthread-routines): Remove lowlevelcond and
518 lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
519 pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
520 and pthread_cond_broadcast.
4a99d160
UD
521 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
522 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
523 * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
524 * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
525 * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
526 * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
527 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
528 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
529 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
530 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
531 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
532 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
533 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
534 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
535 * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
536 * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
537 * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
538 * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
539 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
540 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
541 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
542 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
543 * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
544 * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
545 * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
546 * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
547 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
548 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
549 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
550 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
551 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
1d087a7e 552
e6ebd2e4
UD
553 * sysdeps/unix/sysv/linux/i386/createthread.c: Define
554 PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
555 of the code is moved to ...
556 * sysdeps/pthread/createthread.c: ...here. New file.
557
a15698cb
UD
5582003-01-27 Ulrich Drepper <drepper@redhat.com>
559
0566b130
UD
560 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
561 (__new_sem_post): Clear %eax before returning.
562 Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
563
e6fb8846
UD
564 * Makefile (tests): Add tst-cleanup2.
565 * tst-cleanup2.c: New file.
566
a15698cb
UD
567 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
568 Interpret first parameter correctly.
569
8824b0a1
UD
5702003-01-17 Ulrich Drepper <drepper@redhat.com>
571
572 * Makefile (headers): Add bits/semaphore.h.
573
850dcfca
UD
5742003-01-16 Jakub Jelinek <jakub@redhat.com>
575
576 * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
577 if not SHARED.
578
574b892e
UD
5792003-01-14 Ulrich Drepper <drepper@redhat.com>
580
a8d87c92
UD
581 * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
582 must be used and mapping failed.
583 Reported by Luke Elliott <luke.elliott@activfinancial.com>.
584
574b892e
UD
585 * Makefile (CFLAGS-pthread_self.os): Define this, not
586 CFLAGS-pthread_self.c.
587
fb48047a
UD
5882003-01-13 Ulrich Drepper <drepper@redhat.com>
589
47805511
UD
590 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
591 lll_unlock_wake_cb.
592
fb48047a
UD
593 * Makefile (libpthread-routines): Add version. Add rules to build
594 version.os and banner.h.
595 * version.c: New file.
596
115bb61d
UD
5972003-01-13 Jakub Jelinek <jakub@redhat.com>
598
599 * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
600 the alias unconditional.
601 * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
602
6032003-01-13 Ulrich Drepper <drepper@redhat.com>
604
605 * Makefile (CFLAGS-pthread_self.c): New definition.
606
6aca81bb
UD
6072003-01-06 Jakub Jelinek <jakub@redhat.com>
608
609 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
610 INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
611 * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
612 * init.c (__pthread_initialize_minimal_internal): Likewise.
613
e9c7764e
UD
6142003-01-07 Jakub Jelinek <jakub@redhat.com>
615
b5facfda
UD
616 * pthreadP.h (__pthread_cond_timedwait): Add prototype.
617
e9c7764e
UD
618 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
619 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
620 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
621 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
622 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
623 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
624
bef1e42f
UD
6252003-01-06 Jakub Jelinek <jakub@redhat.com>
626
627 * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
628 * pt-system.c (LIBC_CANCEL_HANDLED): Add.
629 * tst-cancel-wrappers.sh: Remove all exceptions.
630
bbd17455
UD
6312003-01-05 Ulrich Drepper <drepper@redhat.com>
632
a73ab6df
UD
633 * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
634 features. Reported by Marijn Ros <marijn@mad.scientist.com>.
635
bbd17455
UD
636 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
637 Use __libc_pthread_functions array if SHARED.
638
639 * pthreadP.h: Move pthread_cond_2_0_t definition to...
640 * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
641
642 * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
643 (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
644 __libc_key_create, __libc_getspecific, __libc_setspecific): Use
645 __libc_ptf_call instead of __libc_maybe_call.
646 (PTF): New #define.
647 (__libc_cleanup_region_start): Wrap function name with PTF call.
648 (__libc_cleanup_region_end): Likewise.
649 (__libc_cleanup_end): Likewise.
650
651 * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
652 * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
653 * pthread_key_create.c: Add __pthread_key_create_internal alias.
654 * pthreadP.h: Add prototypes.
655
656 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
657 __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
658 __pthread_rwlock_unlock aliases.
659 * pthreadP.h: Add prototypes for new aliases.
660
661 * pthreadP.h (struct pthead_functions): Moved to...
662 * sysdeps/pthread/pthread-functions.h: ...here. New file.
663 * init.c (pthread_functions): Add initializers for new elements.
664
665 * cleanup_defer.c: Add __pthread_cleanup_push_defer and
666 __pthread_cleanup_pop_restore aliases.
667 * pthreadP.h: Add prototypes.
668
669 * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
670 and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
671 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
672 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
673 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
674 * pthreadP.h: Adjust prototypes and callers.
675
d27a78be
UD
6762003-01-04 Ulrich Drepper <drepper@redhat.com>
677
b74121ae
UD
678 * Makefile (tests): Add tst-cancel7.
679 (tst-cancel7-ARGS): New variable.
bbd17455 680 * tst-cancel7.c: New file.
b74121ae 681
29bc410c
UD
682 * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
683 around gcc defficiencies.
684 * old_pthread_cond_signal.c: Likewise.
685 * old_pthread_cond_timedwait.c: Likewise.
686 * old_pthread_cond_wait.c: Likewise.
687
d27a78be
UD
688 * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
689
733f25e6
UD
6902003-01-03 Ulrich Drepper <drepper@redhat.com>
691
7edb2ae3
UD
692 * Makefile (tests): Add tst-cond7.
693 * tst-cond7.c: New file.
694
b1151300
UD
695 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
696 (condvar_cleanup): Get condvar address from the right place.
697
733f25e6
UD
698 * atomic.h: Correct definitions of atomic_full_barrier,
699 atomic_read_barrier, atomic_write_barrier.
700
701 * old_pthread_cond_broadcast.c: Make memory allocate and initialization
702 race-free.
703 * old_pthread_cond_signal.c: Likewise.
704 * old_pthread_cond_timedwait.c: Likewise.
705 * old_pthread_cond_wait.c: Likewise.
706
686b7223
UD
7072003-01-03 Jakub Jelinek <jakub@redhat.com>
708
709 * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
710
0e07706e
UD
7112003-01-03 Ulrich Drepper <drepper@redhat.com>
712
997256dd
UD
713 * pthreadP.h (pthread_cond_2_0_t): New type.
714 (struct pthread_functions): Use new type for 2.0 condvar callbacks.
715 Use new type for the 2.0 condvar function prototypes.
716 * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
717 * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
718 parameter.
719 * old_pthread_cond_destroy.c: Likewise.
720 * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
721 * old_pthread_cond_signal.c: Likewise.
722 * old_pthread_cond_timedwait.c: Likewise.
723 * old_pthread_cond_wait.c: Likewise.
724
842d2817
UD
725 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
726 (__pthread_cond_wait): Don't save cancellation mode and seq value
727 in same location.
728
0e07706e
UD
729 * herrno.c (__h_errno_location): Don't define as weak.
730
bf293afe
UD
7312003-01-02 Jakub Jelinek <jakub@redhat.com>
732
733 * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
734 pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
735 and pthread_cond_wait.
736 * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
737 Renamed to...
738 (__pthread_cond_broadcast_2_0): ... this.
739 * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
740 Renamed to...
741 (__pthread_cond_destroy_2_0): ... this.
742 * old_pthread_cond_init.c (__old_pthread_cond_init):
743 Renamed to...
744 (__pthread_cond_init_2_0): ... this.
745 * old_pthread_cond_signal.c (__old_pthread_cond_signal):
746 Renamed to...
747 (__pthread_cond_signal_2_0): ... this.
748 * old_pthread_cond_wait.c (__old_pthread_cond_wait):
749 Renamed to...
750 (__pthread_cond_wait_2_0): ... this.
751 * pthread_cond_destroy.c: Include shlib-compat.h.
752 (pthread_cond_destroy): Change strong_alias into versioned_symbol.
753 * pthread_cond_init.c: Include shlib-compat.h.
754 (pthread_cond_init): Change strong_alias into versioned_symbol.
755 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
756 fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
757 fields.
758 (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
759 __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
760 __pthread_cond_wait_2_0): New prototypes.
761 (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
762 __old_pthread_cond_init, __old_pthread_cond_signal,
763 __old_pthread_cond_wait): Removed.
764 * init.c: Include shlib-compat.h.
765 (pthread_functions): Guard ptr___pthread_attr_init_2_0
766 initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
767 Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
768 ptr___pthread_cond_*_2_0 fields.
769 * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
770 pthread_cond_*@GLIBC_2.0 compatibility symbols.
771
772 * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
773 LIBC_SIGACTION was not yet defined.
774 [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
775 [!defined LIBC_SIGACTION] (__sigaction): New function and
776 libc_hidden_weak.
777 [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
778 [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
779
7802003-01-02 Jakub Jelinek <jakub@redhat.com>
781
782 * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
783
05df18c3
UD
7842003-01-02 Ulrich Drepper <drepper@redhat.com>
785
786 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
787 New, larger type definition.
788 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
789 implementation.
790 * Versions [libpthread]: Add definitions for new pthread_cond_*
791 interfaces for version GLIBC_2.3.2.
792 * pthread_cond_init.c: Update initialization for new type definition.
793 * Makefile (libpthread-routines): Remove pthread_cond_wait,
794 pthread_cond_timedwait, pthread_cond_signal, and
795 pthread_cond_broadcast. Add old_pthread_cond_init,
796 old_pthread_cond_destroy, old_pthread_cond_wait,
797 old_pthread_cond_timedwait, old_pthread_cond_signal, and
798 old_pthread_cond_broadcast.
799 * old_pthread_cond_broadcast.c: New file.
800 * old_pthread_cond_destroy.c: New file.
801 * old_pthread_cond_init.c: New file.
802 * old_pthread_cond_signal.c: New file.
803 * old_pthread_cond_timedwait.c: New file.
804 * old_pthread_cond_wait.c: New file.
805 * pthreadP.h: Add prototypes for the compatibility interfaces.
806
807 * pthread_cond_destroy.c: Don't include <errno.h>.
808
fd8979e4
UD
8092003-01-01 Ulrich Drepper <drepper@redhat.com>
810
811 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
812 unnecessary zero offset when addressing MUTEX.
813
6d6ee629
UD
8142002-12-31 Ulrich Drepper <drepper@redhat.com>
815
816 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
817 __register_atfork.
818 * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
819 for __register_atfork.
820
a4baf360
UD
8212002-12-31 Jakub Jelinek <jakub@redhat.com>
822
823 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
824 instead of ASSEMBLER test macro.
825
826 * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
827 __libc_current_sigrtmax): Add libc_hidden_def.
828
829 * sysdeps/pthread/list.h: Remove assert.h include.
830
e9395a94
UD
8312002-12-31 Ulrich Drepper <drepper@redhat.com>
832
833 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
834 __pthread_initialize_minimal_internal not
835 __pthread_initialize_minimal.
836
89d6e444
UD
8372002-12-30 Ulrich Drepper <drepper@redhat.com>
838
416d2de6
UD
839 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
840 __pthread_initialize_minimal as hidden.
841
89d6e444
UD
842 * init.c (__pthread_initialize_minimal_internal): Don't mark as
843 constructor.
844
8452002-12-31 Jakub Jelinek <jakub@redhat.com>
846
847 * Makefile ($(inst_libdir)/libpthread.so): Depend on
848 $(common-objpfx)format.lds, include that into the output script.
849 Fix comment.
850 (extra-B-pthread.so): Change linuxthreads/ into nptl/.
851
8cac677c
UD
8522002-12-28 Andreas Jaeger <aj@suse.de>
853
854 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
855 nsec resolution changes.
856 (xstat64_conv): Likewise.
857 (xstat32_conv): Likewise.
858 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
859 struct kernel_stat.
860 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
861 structs stat and stat64.
862 * time/time.h (__timespec_defined): Define for __USE_MISC.
89d6e444 863 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
8cac677c 864
49e9f864
UD
8652002-12-30 Jakub Jelinek <jakub@redhat.com>
866
867 * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
868 argument.
869 (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
870 (pthread_exit): Use strong_alias to avoid warnings.
871 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
872 and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
873 ptr___pthread_attr_init_2_*.
874 * init.c (pthread_functions): Adjust.
875
bab09b26
UD
8762002-12-29 Ulrich Drepper <drepper@redhat.com>
877
598d7a42
UD
878 * forward.c: Make all functions available by default again. It
879 caused too much trouble.
880
bab09b26
UD
881 * pt-siglongjmp.c: Removed.
882
3b7ed871
UD
8832002-12-28 Jakub Jelinek <jakub@redhat.com>
884
885 * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
886 (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
887 * sysdeps/i386/Makefile: New file.
888 * sysdeps/i386/tcb-offsets.sym: New file.
889 * sysdeps/pthread/tcb-offsets.h: New file.
890 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
891 Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
892
893 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
894 __register_atfork...
895 (GLIBC_2.3.2): ...here.
896
8972002-12-28 Ulrich Drepper <drepper@redhat.com>
898
899 * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
900 pthread_attr_setstackaddr with __attribute_deprecated__.
901
270d9d47
UD
9022002-12-27 Jakub Jelinek <jakub@redhat.com>
903
904 * pt-system.c (system): Remove cancellation handling.
905 * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
906 cancellation routines.
907
131fd126
UD
9082002-12-28 Ulrich Drepper <drepper@redhat.com>
909
afb2e954
UD
910 * descr.h: Include <dl-sysdep.h>.
911 (struct pthread): Move header.data.list to the back of the struct.
131fd126
UD
912 * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
913 (MULTIPLE_THREADS_OFFSET): Adjust offset.
914 (SYSINFO_OFFSEET): Likewise.
915
9162002-12-27 Jakub Jelinek <jakub@redhat.com>
917
918 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
919 Define.
920 (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
921 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
922 DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
923 (USE_DL_SYSINFO): Undef.
924
9252002-12-22 Jakub Jelinek <jakub@redhat.com>
926
927 * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
928 $(common-objpfx)libc.so.
929 * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
930 it is bigger than pipe buffer size even on arches with bigger
931 page size.
932 (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
933
a218c9cf
UD
9342002-12-25 Ulrich Drepper <drepper@redhat.com>
935
936 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
937 correct errno access for case that USE___THREAD is not defined.
938
015a2dc9
UD
9392002-12-24 Ulrich Drepper <drepper@redhat.com>
940
941 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
942 Patch by Marijn Ros <marijn@mad.scientist.com>.
943
5220f9ac
RM
9442002-12-22 Roland McGrath <roland@redhat.com>
945
946 * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
947
1561bf63
UD
9482002-12-20 Ulrich Drepper <drepper@redhat.com>
949
950 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
951
3325198e
UD
9522002-12-19 Ulrich Drepper <drepper@redhat.com>
953
057c823f
UD
954 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
955 NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
956 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
957
097eca29
UD
958 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
959 of int $0x80.
960 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
961 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
962 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
963 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
964 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
965 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
966 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
967 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
968
969 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
970 sysenter.
971 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
972
973 * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
974
5f5843e3
UD
975 * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
976 in new TCB.
977 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
978 that sysinfo is properly initialized.
979 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
980 to 1 only for ld.so.
981
3325198e
UD
982 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
983 RTLD_CORRECT_DYNAMIC_WEAK.
984
74e8f2dc
UD
9852002-12-19 Jakub Jelinek <jakub@redhat.com>
986
987 * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
988 Use return 0 as 6th argument to FORWARD4.
989 * pthread_equal.c: Include pthreadP.h instead of pthread.h.
990
df45b31e
UD
9912002-12-18 Ulrich Drepper <drepper@redhat.com>
992
993 * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
994 * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
995 Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
996 (INIT_SYSINFO): New #define.
997 (TLS_TP_INIT): Use INIT_SYSINFO.
998 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
999 At test to make sure SYSINFO_OFFSET value is correct.
1000 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
1001
3d539579
UD
10022002-12-18 Jakub Jelinek <jakub@redhat.com>
1003
1004 * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
1005 * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
1006 * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
1007 [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
1008 __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
1009 __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
1010 __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
1011
d7913e0e
UD
10122002-12-18 Ulrich Drepper <drepper@redhat.com>
1013
f051627f
UD
1014 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
1015 macro instead of using int $0x80 directly.
1016
d7913e0e
UD
1017 * sysdeps/pthread/bits/stdio-lock.h: New file.
1018 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
1019 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
1020 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
1021 * Makefile (routines): Add libc-lowlevelmutex.
1022
1023 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
1024 __i686.get_pc_thunk.dx.
1025
f077a4a9
UD
10262002-12-17 Jakub Jelinek <jakub@redhat.com>
1027
1028 * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
1029 (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
1030 ($(objpfx)tst-cancel-wrappers.out): New rule.
1031 * tst-cancel-wrappers.sh: New test.
1032 * tst-locale1.c: Include signal.h.
1033 (uselocale): Test static linking of __libc_current_sigrt*.
1034
10352002-12-17 Ulrich Drepper <drepper@redhat.com>
1036
1037 * Makefile (tests): Add tst-cancel6.
1038 * tst-cancel6.c: New file
1039
bd499a3b
UD
10402002-12-17 Jakub Jelinek <jakub@redhat.com>
1041
1042 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
1043 Define meaningfully for assembler as well.
1044 * pthreadP.h (struct pthread_functions): Remove
1045 ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
1046 and ptr_pthread_attr_init_2_1 fields.
1047 * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
1048 and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
1049 * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
1050 (FORWARD3): Define using FORWARD4.
1051 (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
1052 versions.
1053 * pt-system.c: Remove duplicate stdlib.h include.
1054
0a1063f4
UD
10552002-12-16 Ulrich Drepper <drepper@redhat.com>
1056
87d60668
UD
1057 * sem_init.c: Define sem_init@GLIBC_2.0.
1058 * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
1059 * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
1060
0a1063f4
UD
1061 * flockfile.c: Moved to...
1062 * sysdeps/pthread/flockfile.c: ...here. New file.
1063 * funlockfile.c: Moved to...
1064 * sysdeps/pthread/funlockfile.c: ...here. New file.
1065 * ftrylockfile.c: Moved to...
1066 * sysdeps/pthread/ftrylockfile.c: ...here. New file.
1067
9634cf9d
UD
10682002-12-16 Jakub Jelinek <jakub@redhat.com>
1069
1070 * libc-cancellation.c: Guard both function with
1071 #if !defined NOT_IN_libc.
1072 * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
1073 automatically provided pthread wrappers.
1074 * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
1075 CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
1076 nor in libpthread.
1077 * pt-open.c: Removed.
1078 * pt-fcntl.c: Removed.
1079 * pt-fsync.c: Removed.
1080 * pt-lseek.c: Removed.
1081 * pt-msgrcv.c: Removed.
1082 * pt-msgsnd.c: Removed.
1083 * pt-msync.c: Removed.
1084 * pt-nanosleep.c: Removed.
1085 * pt-open64.c: Removed.
1086 * pt-pause.c: Removed.
1087 * pt-pread.c: Removed.
1088 * pt-pread64.c: Removed.
1089 * pt-pwrite.c: Removed.
1090 * pt-pwrite64.c: Removed.
1091 * pt-read.c: Removed.
1092 * pt-recv.c: Removed.
1093 * pt-recvfrom.c: Removed.
1094 * pt-recvmsg.c: Removed.
1095 * pt-send.c: Removed.
1096 * pt-sendto.c: Removed.
1097 * pt-sigtimedwait.c: Removed.
1098 * pt-sigwait.c: Removed.
1099 * pt-wait.c: Removed.
1100 * pt-waitpid.c: Removed.
1101 * pt-write.c: Removed.
1102 * pt-accept.c: Removed.
1103 * pt-close.c: Removed.
1104 * pt-connect.c: Removed.
1105 * pt-lseek64.c: Removed.
1106 * pt-sendmsg.c: Removed.
1107 * pt-tcdrain.c: Removed.
1108
6ee8d334
UD
11092002-12-15 Ulrich Drepper <drepper@redhat.com>
1110
81fa9371
UD
1111 * init.c (__pthread_initialize_minimal_internal): Renamed from
1112 __pthread_initialize_minimal. Make old name an alias. This
1113 converts a normal relocation into a relative relocation.
1114
f3015aa5
UD
1115 * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
1116
4cbc1950
UD
1117 * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
1118 readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
1119 * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
1120 pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
1121 pt-sigwaitinfo, pt-waitid, and pt-writev.
1122 * pt-creat.c: Removed.
1123 * pt-poll.c: Removed.
1124 * pt-pselect.c: Removed.
1125 * pt-readv.c: Removed.
1126 * pt-select.c: Removed.
1127 * pt-sigpause.c: Removed.
1128 * pt-sigsuspend.c: Removed.
1129 * pt-sigwaitinfo.c: Removed.
1130 * pt-waitid.c: Removed.
1131 * pt-writev.c: Removed.
1132
8454830b
UD
1133 * init.c (pthread_functions): New variable.
1134 (__pthread_initialize_minimal): Pass pointer to pthread_functions
1135 (or NULL) to __libc_pthread_init.
1136 * forward.c: Rewrite to use __libc:pthread_functions array to get
1137 function addresses.
1138 * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
1139 prototype.
1140 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
1141 Take new parameter. Copy content of variable pointed to by it
1142 to __libc_pthread_init.
1143
1144 * pthreadP.h (struct pthread_functions): New type.
1145 (__libc_pthread_init): Declare.
1146
1147 * pthread_attr_destroy.c: Add namespace protected alias.
1148 * pthread_attr_getdetachstate.c: Likewise.
1149 * pthread_attr_getinheritsched.c: Likewise.
1150 * pthread_attr_getschedparam.c: Likewise.
1151 * pthread_attr_getschedpolicy.c: Likewise.
1152 * pthread_attr_getscope.c: Likewise.
1153 * pthread_attr_setdetachstate.c: Likewise.
1154 * pthread_attr_setinheritsched.c: Likewise.
1155 * pthread_attr_setschedparam.c: Likewise.
1156 * pthread_attr_setschedpolicy.c: Likewise.
1157 * pthread_attr_setscope.c: Likewise.
1158 * pthread_cond_broadcast.c: Likewise.
1159 * pthread_cond_destroy.c: Likewise.
1160 * pthread_cond_init.c: Likewise.
1161 * pthread_cond_signal.c: Likewise.
1162 * pthread_cond_wait.c: Likewise.
1163 * pthread_condattr_destroy.c: Likewise.
1164 * pthread_condattr_init.c: Likewise.
1165 * pthread_equal.c: Likewise.
1166 * pthread_exit.c: Likewise.
1167 * pthread_getschedparam.c: Likewise.
1168 * pthread_self.c: Likewise.
1169 * pthread_setcancelstate.c: Likewise.
1170 * pthread_setschedparam.c: Likewise.
1171 * pthread_mutex_destroy.c: Likewise.
1172 * pthread_mutex_init.c: Likewise.
1173 * pthreadP.h: Add prototypes for the aliases.
1174
0d5f4929
UD
1175 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
1176 multiple_threads member in correct TCB to 1.
1177
6ee8d334
UD
1178 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
1179 SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
1180 member of thread decriptor, otherwise return unconditionally 1.
1181
2fb6444d
UD
11822002-12-14 Ulrich Drepper <drepper@redhat.com>
1183
1184 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
1185 regular Linux version. Remove file.
1186 * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
1187 * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
1188 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
1189 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
1190 * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
1191 * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
1192 * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
1193 * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
1194 * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
1195 * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
1196 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
1197 * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
1198 * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
1199 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
1200 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
1201 * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
1202 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
1203 * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
1204 * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
1205 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
1206 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
1207 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
1208 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
1209 * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
1210 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
1211 * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
1212 * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
1213 * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
1214 * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
1215 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
1216
86b2dc40
UD
12172002-12-14 Jakub Jelinek <jakub@redhat.com>
1218
1219 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
1220 * sysdeps/unix/sysv/linux/open.c: Removed.
1221 * sysdeps/unix/sysv/linux/fsync.c: Removed.
1222 * sysdeps/unix/sysv/linux/lseek.c: Removed.
1223 * sysdeps/unix/sysv/linux/msync.c: Removed.
1224 * sysdeps/unix/sysv/linux/read.c: Removed.
1225 * sysdeps/unix/sysv/linux/close.c: Removed.
1226 * sysdeps/unix/sysv/linux/creat.c: Removed.
1227 * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
1228 * sysdeps/unix/sysv/linux/pause.c: Removed.
1229 * sysdeps/unix/sysv/linux/select.c: Removed.
1230 * sysdeps/unix/sysv/linux/write.c: Removed.
1231
9d263d72
UD
12322002-12-14 Ulrich Drepper <drepper@redhat.com>
1233
1234 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
1235 element in TCB to see whether locking is needed.
1236
1237 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
1238 MULTIPLE_THREADS_OFFSET value is correct.
1239
1240 * sysdeps/unix/sysv/linux/close.c: New file.
1241 * sysdeps/unix/sysv/linux/connect.S: New file.
1242 * sysdeps/unix/sysv/linux/creat.c: New file.
1243 * sysdeps/unix/sysv/linux/fsync.c: New file.
1244 * sysdeps/unix/sysv/linux/llseek.c: New file.
1245 * sysdeps/unix/sysv/linux/lseek.c: New file.
1246 * sysdeps/unix/sysv/linux/msgrcv.c: New file.
1247 * sysdeps/unix/sysv/linux/msgsnd.c: New file.
1248 * sysdeps/unix/sysv/linux/msync.c: New file.
1249 * sysdeps/unix/sysv/linux/nanosleep.c: New file.
1250 * sysdeps/unix/sysv/linux/open.c: New file.
1251 * sysdeps/unix/sysv/linux/open64.c: New file.
1252 * sysdeps/unix/sysv/linux/pause.c: New file.
1253 * sysdeps/unix/sysv/linux/poll.c: New file.
1254 * sysdeps/unix/sysv/linux/pread.c: New file.
1255 * sysdeps/unix/sysv/linux/pread64.c: New file.
1256 * sysdeps/unix/sysv/linux/pselect.c: New file.
1257 * sysdeps/unix/sysv/linux/pwrite.c: New file.
1258 * sysdeps/unix/sysv/linux/pwrite64.c: New file.
1259 * sysdeps/unix/sysv/linux/readv.c: New file.
1260 * sysdeps/unix/sysv/linux/recv.S: New file.
1261 * sysdeps/unix/sysv/linux/recvfrom.S: New file.
1262 * sysdeps/unix/sysv/linux/recvmsg.S: New file.
1263 * sysdeps/unix/sysv/linux/select.c: New file.
1264 * sysdeps/unix/sysv/linux/send.S: New file.
1265 * sysdeps/unix/sysv/linux/sendmsg.S: New file.
1266 * sysdeps/unix/sysv/linux/sendto.S: New file.
1267 * sysdeps/unix/sysv/linux/sigpause.c: New file.
1268 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
1269 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
1270 * sysdeps/unix/sysv/linux/sigwait.c: New file.
1271 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
1272 * sysdeps/unix/sysv/linux/system.c: New file.
1273 * sysdeps/unix/sysv/linux/tcdrain.c: New file.
1274 * sysdeps/unix/sysv/linux/wait.c: New file.
1275 * sysdeps/unix/sysv/linux/waitid.c: New file.
1276 * sysdeps/unix/sysv/linux/waitpid.c: New file.
1277 * sysdeps/unix/sysv/linux/writev.c: New file.
1278 * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
1279
1280 * pt-readv.c: Fix comment.
1281
12822002-12-14 Jakub Jelinek <jakub@redhat.com>
1283
1284 * tst-cleanup1.c: Include stdlib.h.
1285
1286 * tst-cancel5.c: New test.
1287 * Makefile (tests): Add tst-cancel5.
1288 (tst-cancel5): Link against libc.so libpthread.so in that order.
1289
9ae0909b
UD
12902002-12-13 Ulrich Drepper <drepper@redhat.com>
1291
b7bdd9c4
UD
1292 * forward.c (test_loaded): Prevent recursive calls.
1293
9ae0909b
UD
1294 * Makefile (routines): Add libc-cancellation.
1295 * libc-cancellation.c: New file.
1296 * descr.h (struct pthread): Add multiple_threads field.
1297 * allocatestack.c (allocate_stack): Initialize multiple_header field of
1298 new thread descriptor to 1.
1299 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
1300 Initialize multiple_thread field after successful thread creation.
1301 * cancellation.c (__do_cancel): Move to pthreadP.h.
1302 (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
1303 (__pthread_disable_asynccancel): Add internal_function attribute.
1304 * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
1305 * pthread_setcancelstate.c: Likewise.
1306 * pthread_setcanceltype.c: Likewise.
1307 * pthread_exit.c: Likewise.
1308 * pthreadP.h (CANCELLATION_P): Likewise.
1309 (__do_cancel): Define as static inline.
1310 (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
1311 (__libc_enable_asynccancel, __libc_disable_asynccancel): New
1312 declarations.
1313 * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
1314 fields. Define MULTIPLE_THREADS_OFFSET.
1315 * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
1316 declaration.
1317 * sysdeps/unix/sysv/linux/accept.S: New file.
1318 * sysdeps/unix/sysv/linux/read.c: New file.
1319 * sysdeps/unix/sysv/linux/write.c: New file.
1320 * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
1321 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
1322 initialization of __libc_locking_needed.
1323 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
1324 __libc_locking_needed, use multiple_threads field in TCB.
1325 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
1326
22f20674
UD
13272002-12-12 Ulrich Drepper <drepper@redhat.com>
1328
2ad2e1e7
UD
1329 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
1330 version.
1331 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
1332
22f20674
UD
1333 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
1334 access to __libc_locking_needed for PIC.
1335
aa80bf86
UD
13362002-12-12 Jakub Jelinek <jakub@redhat.com>
1337
1338 * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
1339 declare for libc.so.
1340 (__libc_lock_init, __libc_lock_init_recursive): Change into comma
1341 expression.
1342 (__libc_lock_lock): Put into statement expression.
1343 (__libc_lock_unlock): Remove trailing semicolon.
1344 * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
1345
24021373
RM
13462002-12-12 Roland McGrath <roland@redhat.com>
1347
1348 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
1349 "m" constraint to refer to __libc_locking_needed. Declare it here.
1350
14e7aece
UD
13512002-12-12 Ulrich Drepper <drepper@redhat.com>
1352
1353 * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
1354 * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
1355 Initialize __libc_locking_needed.
1356 * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
1357 instead of __register_pthread_fork_handler.
1358 * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
1359 * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
1360 fork-gen with libc_pthread_init.
1361 * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
1362 of __register_pthread_fork_handler.
1363 * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
1364 of __register_pthread_fork_handler.
1365 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
1366 __libc_locking_needed to determine whether lock prefix can be avoided.
1367 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
1368
85631c8e
UD
13692002-12-11 Ulrich Drepper <drepper@redhat.com>
1370
da63009e
UD
1371 * Makefile (tests): Add tst-cleanup1.
1372 * tst-cleanup1.c: New file.
1373 * cancellation.c (__cleanup_thread): Removed.
1374 (__do_cancel): Remove call to __cleanup_thread.
1375 * pthreadP.h: Remove __cleanup_thread prorotype.
1376
000160a2
UD
1377 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
1378 Remember function and argument even if cancellation handler
1379 function is not available.
1380 (__libc_cleanup_region_end): Execute registered function directly if
1381 pthread functions are not available.
1382 (__libc_cleanup_end): Likewise.
1383
85631c8e
UD
1384 * init.c (__pthread_initialize_minimal): Fix initialization in
1385 static lib by preventing gcc from being too clever.
1386
dce8f2b6
UD
13872002-12-10 Ulrich Drepper <drepper@redhat.com>
1388
34a075be
UD
1389 * init.c (__pthread_initialize_minimal): Remove unneccesary
1390 sigaddset call.
1391
dce8f2b6
UD
1392 * Makefile (tests): We can run tst-locale2 now.
1393
e5e45b53
UD
13942002-12-09 Ulrich Drepper <drepper@redhat.com>
1395
1396 * Versions: Remove duplicated sigwait entry.
1397
bdb04f92
UD
13982002-12-08 Ulrich Drepper <drepper@redhat.com>
1399
1e506629
UD
1400 * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
1401 inside libpthread.
1402
a3957dd5
UD
1403 * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
1404
bdb04f92
UD
1405 * pthreadP.h: Declare __pthread_enable_asynccancel and
1406 __pthread_disable_asynccancel.
1407 (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
1408 (CANCEL_RESET): Use __pthread_disable_asynccancel.
1409 * cancellation.c (__pthread_enable_asynccancel): New function.
1410 (__pthread_disable_asynccancel): New function.
1411 * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
1412 * pt-close.c: Likewise.
1413 * pt-connect.c: Likewise.
1414 * pt-creat.c: Likewise.
1415 * pt-fcntl.c: Likewise.
1416 * pt-fsync.c: Likewise.
1417 * pt-lseek.c: Likewise.
1418 * pt-lseek64.c: Likewise.
1419 * pt-msgrcv.c: Likewise.
1420 * pt-msgsnd.c: Likewise.
1421 * pt-msync.c: Likewise.
1422 * pt-nanosleep.c: Likewise.
1423 * pt-open.c: Likewise.
1424 * pt-open64.c: Likewise.
1425 * pt-pause.c: Likewise.
1426 * pt-poll.c: Likewise.
1427 * pt-pread.c: Likewise.
1428 * pt-pread64.c: Likewise.
1429 * pt-pselect.c: Likewise.
1430 * pt-pwrite.c: Likewise.
1431 * pt-pwrite64.c: Likewise.
1432 * pt-read.c: Likewise.
1433 * pt-readv.c: Likewise.
1434 * pt-recv.c: Likewise.
1435 * pt-recvfrom.c: Likewise.
1436 * pt-recvmsg.c: Likewise.
1437 * pt-select.c: Likewise.
1438 * pt-send.c: Likewise.
1439 * pt-sendmsg.c: Likewise.
1440 * pt-sendto.c: Likewise.
1441 * pt-sigpause.c: Likewise.
1442 * pt-sigsuspend.c: Likewise.
1443 * pt-sigtimedwait.c: Likewise.
1444 * pt-sigwait.c: Likewise.
1445 * pt-sigwaitinfo.c: Likewise.
1446 * pt-system.c: Likewise.
1447 * pt-tcdrain.c: Likewise.
1448 * pt-wait.c: Likewise.
1449 * pt-waitid.c: Likewise.
1450 * pt-waitpid.c: Likewise.
1451 * pt-write.c: Likewise.
1452 * pt-writev.c: Likewise.
a3957dd5
UD
1453 * pthread_join.c: Likewise.
1454 * pthread_timedjoin.c: Likewise.
bdb04f92
UD
1455
1456 * pt-sigpause.c (sigsuspend): Call __sigsuspend.
1457 (__xpg_sigpause): New function.
1458 * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
1459
6ccb3834
UD
14602002-12-07 Ulrich Drepper <drepper@redhat.com>
1461
09efc3ba
UD
1462 * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
1463
1464 * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
1465 _GI_pthread_cleanup_pop to pthreadP.h.
1466
1467 * ftrylockfile.c: Use _IO_lock_trylock instead of
1468 pthread_mutex_trylock.
1469
1470 * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
1471 (CANCEL_RESET): Likewise.
1472 (__pthread_setcanceltype_): Declare.
1473 (__pthread_mutex_lock_internal): Declare.
1474 (__pthread_mutex_unlock_internal): Declare.
1475 (__pthread_once_internal): Declare.
1476 (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
1477 (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
1478
1479 * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
1480 and pthread_mutex_unlock.
1481 * pthread_cond_wait.c: Likewise.
1482 * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
1483 * pthread_mutex_unlock.c: Likewise.
1484
1485 * pthread_setcanceltype.c: Add additional alias
1486 __pthread_setcanceltype.
1487
1488 * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
1489 * sem_open.c (sem_open): Likewise.
1490 Use __libc_open, __libc_write, and __libc_close instead of
1491 open, write, and close respectively.
1492
1493 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
1494 Rewrite as statement expression since it must return a value.
1495
1496 * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
1497 * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
1498 __pthread_kill.
1499
1500 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
1501 alias __pthread_once_internal.
1502
6ccb3834
UD
1503 * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
1504
d3c9f895
UD
15052002-12-06 Ulrich Drepper <drepper@redhat.com>
1506
4614167a
UD
1507 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
1508 * tst-stdio1.c: New file.
1509 * tst-stdio2.c: New file.
1510
a4548cea
UD
1511 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
1512
d3c9f895
UD
1513 * Makefile (tests): Comment out tst-locale2 for now.
1514 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
1515
1516 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
1517 -D_IO_MTSAFE_IO.
1518 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
1519 Use _IO_lock_init instead of explicit assignment.
1520
1521 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
1522 Define __libc_lock_* and __libc_lock_recursive macros with
1523 lowlevellock macros, not pthread mutexes.
1524
1525 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
1526 of pthread_mutex_lock.
1527 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
1528 instead of pthread_mutex_unlock.
1529
fde89ad0
RM
15302002-12-06 Roland McGrath <roland@redhat.com>
1531
1532 * allocatestack.c (__stack_user): Use uninitialized defn.
1533 * init.c (__pthread_initialize_minimal): Initialize it here.
1534
11767d47
RM
15352002-12-05 Roland McGrath <roland@redhat.com>
1536
fde89ad0
RM
1537 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
1538 string.
1539 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
1540
11767d47
RM
1541 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
1542 missing & here too.
1543
440d8bc2
UD
15442002-12-05 Ulrich Drepper <drepper@redhat.com>
1545
1546 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1547 lowlevellock.
1548 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
1549 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
1550 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
1551 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
1552 for __libc_lock_* macros.
1553 * Makefile (routines): Add libc-lowlevellock.
1554
15552002-10-09 Roland McGrath <roland@redhat.com>
1556
1557 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
1558 Under [__PIC__], call the function via the pointer fetched for
1559 comparison rather than a call by name that uses the PLT.
1560 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
1561 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
1562 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
1563 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
1564 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
1565
d5ed0118
RM
15662002-12-04 Roland McGrath <roland@redhat.com>
1567
1568 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
1569
1570 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
1571 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
1572
1573 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
1574
eaa4099f
UD
15752002-12-04 Ulrich Drepper <drepper@redhat.com>
1576
1577 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
1578 a completely opaque, non-integer type.
1579 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
1580
33b5d0cc
UD
15812002-12-05 Jakub Jelinek <jakub@redhat.com>
1582
1583 * sysdeps/i386/tls.h: Include stdlib.h.
1584 * sysdeps/x86_64/tls.h: Likewise.
1585
7a5cdb30
UD
15862002-12-04 Ulrich Drepper <drepper@redhat.com>
1587
c4a6d859
UD
1588 * Makefile (tests): Add tst-locale2.
1589 (tests-static): Likewise.
1590 * tst-locale2.c: New file.
1591
7a5cdb30
UD
1592 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
1593 volatile and add memory clobbers to lock operations.
1594
d82d5d12
UD
15952002-12-03 Ulrich Drepper <drepper@redhat.com>
1596
69cae3cf
UD
1597 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
1598 * sysdeps/i386/i486/bits/atomic.h: New file.
1599 * sysdeps/i386/i586/bits/atomic.h: New file.
1600 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
1601 include i486 version.
1602 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
1603 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
c97c64de 1604 Patch by Marijn Ros <marijn@mad.scientist.com>.
69cae3cf 1605
e4044c01
UD
1606 * allocatestack.c (get_cached_stack): Don't crash if we first
1607 found a stack with a larger size then needed.
1608 Reported by Hui Huang <hui.huang@sun.com>.
1609
d82d5d12
UD
1610 * Makefile (tests): Add tst-sysconf.
1611 * tst-sysconf.c: New file.
1612
1613 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
1614 PTHREAD_THREADS_MAX.
1615
fa9a4ff0
RM
16162002-12-02 Roland McGrath <roland@redhat.com>
1617
1618 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
1619 Declare using hidden_proto instead of attribute_hidden, so there are
1620 non-.hidden static symbols for gdb to find.
1621 (__pthread_keys): Likewise.
1622 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
1623 * allocatestack.c (__stack_user): Likewise.
1624 * pthread_create.c (__pthread_keys): Likewise.
1625 (__nptl_threads_events, __nptl_last_event): Make these static instead
1626 of hidden.
1627 * pthread_key_create.c (__pthread_pthread_keys_max,
1628 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
1629
91949a33
UD
16302002-12-02 Ulrich Drepper <drepper@redhat.com>
1631
c22b52fa
UD
1632 * Makefile (tests): Add tst-locale1. If buid-static is yes link
1633 statically.
1634 * tst-locale1.c: New file.
1635
beb6aa41
UD
1636 * pthread_cond_timedwait.c: Include <stdlib.h>.
1637
91949a33
UD
1638 * Makefile (tests): Add tst-fork2 and tst-fork3.
1639 * tst-fork2.c: New file.
1640 * tst-fork3.c: New file.
1641
654dff90
UD
16422002-11-28 Ulrich Drepper <drepper@redhat.com>
1643
cb0e76b4
UD
1644 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
1645
1646 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
1647 require it to 200112L.
1648
1649 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
1650 instruction only if HAVE_CMOV is defined.
1651 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
1652
975aa229
UD
1653 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
1654
654dff90
UD
1655 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
1656
1657 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
1658
1659 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
1660
a3931336
UD
16612002-11-27 Ulrich Drepper <drepper@redhat.com>
1662
c10c099c
UD
1663 * sysdeps/x86_64/bits/atomic.h: New file.
1664
1665 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
1666 16-bit operations.
1667
dca99d27
UD
1668 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
1669 possible since gettid cannot fail.
1670
f78deea6
UD
1671 * sysdeps/x86_64/pthreaddef.h: New file.
1672
1673 * sysdeps/i386/pthreaddef.h (gettid): Removed.
1674
1675 * sysdeps/x86_64/pthread_spin_init.c: New file.
1676 * sysdeps/x86_64/pthread_spin_lock.c: New file.
1677 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
1678 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
1679
1680 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
1681 Add missing lock prefix. Minute optimization.
1682
1683 * tst-spin2.c (main): Also check successful trylock call.
1684
1685 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
1686 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
1687
1688 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
1689 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
1690
1691 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
1692 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
1693 value in case of an error. Add support for INTERNAL_SYSCALL.
b54e18eb
UD
1694
1695 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
1696 value in case of an error.
1697
a3931336
UD
1698 * sysdeps/x86_64/tls.h: New file.
1699
76a50749
UD
17002002-11-26 Ulrich Drepper <drepper@redhat.com>
1701
117c452c
UD
1702 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
1703 takes the array member name and the index as parameters.
1704 (THREAD_SETMEM_NC): Likewise.
1705 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
1706 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
1707 interfaces.
1708
1709 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
1710 to decide which code to use.
1711 (THREAD_SETMEM_NC): Likewise.
1712
76a50749
UD
1713 * allocatestack.c (queue_stack): Don't remove stack from list here.
1714 Do it in the caller. Correct condition to prematurely terminate
1715 loop to free stacks.
1716 (__deallocate_stack): Remove stack from list here.
1717
17182002-11-26 Ulrich Drepper <drepper@redhat.com>
1719
1720 * Makefile (tests): Add tst-stack1.
1721 * tst-stack1.c: New file.
1722
1723 * allocatestack.c (allocate_stack): Initialize the TCB on a user
1724 provided stack.
1725
1726 * pthread_attr_getstack.c: Return bottom of the thread area.
1727
17282002-11-25 Ulrich Drepper <drepper@redhat.com>
1729
1730 * Makefile (libpthread-routines): Add pt-allocrtsig and
1731 pthread_kill_other_threads.
1732 * pt-allocrtsig.c: New file.
1733 * pthread_kill_other_threads.c: New file.
1734 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
1735 all three functions.
1736 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1737 allocrtsig.
1738 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
1739 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
1740 and __libc_allocate_rtsig_private.
1741 * Versions (libpthread): Export pthread_kill_other_threads_np,
1742 __libc_current_sigrtmin, and __libc_current_sigrtmax.
1743
17442002-11-24 Ulrich Drepper <drepper@redhat.com>
1745
1746 * allocatestack.c (allocate_stack): stackaddr in attribute points to
1747 the end of the stack. Adjust computations.
1748 When mprotect call fails dequeue stack and free it.
1749 * pthread_attr_setstack.c: Store top of the stack in stackaddr
1750 attribute.
1751 * pthread_getattr_np.c: Likewise.
1752
1753 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
1754 surprises.
1755
17562002-11-23 Ulrich Drepper <drepper@redhat.com>
1757
1758 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
1759 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
1760
17612002-11-22 Ulrich Drepper <drepper@redhat.com>
1762
1763 * pthread_getspecific.c: Optimize access to first 2nd-level array.
1764 * pthread_setspecific.c: Likewise.
1765
17662002-11-21 Ulrich Drepper <drepper@redhat.com>
1767
1768 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
1769 definitions. Get them from the official place.
1770 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
1771
1772 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
1773 Use new CLONE_ flags in clone() calls.
1774
1775 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
1776 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
1777
1778 * Versions: Add pthread_* functions for libc.
1779 * forward.c: New file.
1780
1781 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
1782 errno-loc.
1783 * herrno.c: New file.
1784 * res.c: New file.
1785
1786 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
1787 sem_trywait, and sem_timedwait. Add herrno and res.
1788 * sem_init.c: Don't initialize lock and waiters members.
1789 * sem_open.c: Likewise.
1790 * sem_post.c: Removed.
1791 * sem_wait.c: Removed.
1792 * sem_trywait.c: Removed.
1793 * sem_timedwait.c: Removed.
1794 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
1795 Includes full implementations of sem_post, sem_wait, sem_trywait,
1796 and sem_timedwait.
1797 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
1798 for new implementation.
1799 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
1800 and waiters fields.
1801
1802 * tst-sem3.c: Improve error message.
1803 * tst-signal3.c: Likewise.
1804
1805 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
1806 to tell the kernel about the termination futex and to initialize tid
1807 member. Don't initialize main_thread.
1808 * descr.h (struct pthread): Remove main_thread member.
1809 * cancelllation.c (__do_cancel): Remove code handling main thread.
1810 The main thread is not special anymore.
1811
1812 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
1813 size of the stacks to stack_cache_actsize.
1814
1815 * pt-readv.c: Add missing "defined".
1816 * pt-sigwait.c: Likewise.
1817 * pt-writev.c: Likewise.
1818
18192002-11-09 Ulrich Drepper <drepper@redhat.com>
1820
1821 * Versions: Export __connect from libpthread.
1822 Patch by Luca Barbieri <ldb@ldb.ods.org>.
1823
1824 * Makefile (libpthread-routines): Add pt-raise.
1825 * sysdeps/unix/sysv/linux/raise.c: New file.
1826 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
1827 * sysdeps/generic/pt-raise.c: New file.
1828
1829 * pthread_cond_init.c: Initialize all data elements of the condvar
1830 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
1831
1832 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
1833 * pthread_create.c: Likewise.
1834
1835 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
1836 * tst-key1.c: New file.
1837 * tst-key2.c: New file.
1838 * tst-key3.c: New file.
1839
1840 * Versions: Export pthread_detach for version GLIBC_2.0.
1841 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
1842
18432002-11-08 Ulrich Drepper <drepper@redhat.com>
1844
1845 * pthread_key_create.c: Terminate search after an unused key was found.
1846 Patch by Luca Barbieri <ldb@ldb.ods.org>.
1847
1848 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
1849 Patch by Luca Barbieri <ldb@ldb.ods.org>.
1850
18512002-10-10 Ulrich Drepper <drepper@redhat.com>
1852
1853 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
1854 dynamic lookup for errno in PIC.
1855
1856 * allocatestack.c (get_cached_stack): Rearrange code slightly to
1857 release the stack lock as soon as possible.
1858 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
1859 the static TLS block.
1860 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
1861
1862 * cancellation.c: Renamed from cancelation.c.
1863 * Makefile: Adjust accordingly.
1864 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
1865 * cleanup_defer.c: Use CANCELLATION_P.
1866 * pthread_testcancel.c: Likewise.
1867 * descr.h: Fix spelling in comments.
1868 * init.c: Likewise.
1869 * pthread_getattr_np.c: Likewise.
1870 * pthread_getschedparam.c: Likewise.
1871 * pthread_setschedparam.c: Likewise.
1872 * Versions: Likewise.
1873
1874 * pt-pselect.c: New file.
1875 * Makefile (libpthread-routines): Add pt-pselect.
1876 * Versions: Add pselect.
1877
1878 * tst-cancel4.c: New file.
1879 * Makefile (tests): Add tst-cancel4.
1880
18812002-10-09 Ulrich Drepper <drepper@redhat.com>
1882
1883 * pthread_mutex_lock.c: Always record lock ownership.
1884 * pthread_mutex_timedlock.c: Likewise.
1885 * pthread_mutex_trylock.c: Likewise.
1886
1887 * pt-readv.c: New file.
1888 * pt-writev.c: New file.
1889 * pt-creat.c: New file.
1890 * pt-msgrcv.c: New file.
1891 * pt-msgsnd.c: New file.
1892 * pt-poll.c: New file.
1893 * pt-select.c: New file.
1894 * pt-sigpause.c: New file.
1895 * pt-sigsuspend.c: New file.
1896 * pt-sigwait.c: New file.
1897 * pt-sigwaitinfo.c: New file.
1898 * pt-waitid.c: New file.
1899 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
1900 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
1901 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
1902 * Versions: Add all the new functions.
1903
1904 * tst-exit1.c: New file.
1905 * Makefile (tests): Add tst-exit1.
1906
1907 * sem_timedwait.c: Minor optimization for more optimal fastpath.
1908
19092002-10-08 Ulrich Drepper <drepper@redhat.com>
1910
1911 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
1912
1913 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
1914 call. pthread_join is an official cancellation point.
1915 * pthread_timedjoin.c: Likewise.
1916
1917 * pthread_cond_wait.c: Revert order in which internal lock are dropped
1918 and the condvar's mutex are retrieved.
1919 * pthread_cond_timedwait.c: Likewise.
1920 Reported by dice@saros.East.Sun.COM.
1921
19222002-10-07 Ulrich Drepper <drepper@redhat.com>
1923
1924 * pthreadP.h: Cut out all type definitions and move them...
1925 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
1926 * pthreadP.h: Include <internaltypes.h>.
1927
1928 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
1929 performance tweaks.
1930
1931 * sem_trywait.c: Shuffle #includes around to get right order.
1932 * sem_timedwait.c: Likewise.
1933 * sem_post.c: Likewise.
1934 * sem_wait.c: Likewise.
1935
1936 * nptl 0.3 released.
1937
1938 * Makefile (tests): Add tst-signal3.
1939 * tst-signal3.c: New file.
1940
19412002-10-05 Ulrich Drepper <drepper@redhat.com>
1942
1943 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
1944 the asms modify the sem object.
1945 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
1946
1947 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
1948 the actual members.
1949 * pthreadP.h (struct sem): New type. Actual semaphore type.
1950 * semaphoreP.h: Include pthreadP.h.
1951 * sem_getvalue.c: Adjust to sem_t change.
1952 * sem_init.c: Likewise.
1953 * sem_open.c: Likewise.
1954 * sem_post.c: Likewise.
1955 * sem_timedwait.c: Likewise.
1956 * sem_trywait.c: Likewise.
1957 * sem_wait.c: Likewise.
1958
19592002-10-04 Ulrich Drepper <drepper@redhat.com>
1960
1961 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
1962 * tst-basic2.c: New file.
1963 * tst-exec1.c: New file.
1964 * tst-exec2.c: New file.
1965 * tst-exec3.c: New file.
1966
1967 * tst-fork1.c: Remove extra */.
1968
1969 * nptl 0.2 released. The API for IA-32 is complete.