]> sourceware.org Git - glibc.git/blame - nptl/ChangeLog
Lowlevel lock definitions for x86-64/Linux.
[glibc.git] / nptl / ChangeLog
CommitLineData
e48f9638
RM
12003-03-10 Roland McGrath <roland@redhat.com>
2
3 * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
4 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
5 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
6 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
7 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
8
9 * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
10 Instead of setting PD->multiple_threads, set globals
11 __pthread_multiple_threads and __libc_multiple_threads.
12 * sysdeps/pthread/createthread.c (create_thread): Likewise.
13 * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
14 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
15
16 * descr.h (struct pthread): Conditionalize first member on
17 [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
18 containing an anonymous tcbhead_t. Move `list' member out.
19 [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
20 * allocatestack.c: Remove use of `header.data.' prefix.
21 * pthread_create.c: Likewise.
22 * init.c (__pthread_initialize_minimal_internal): Likewise.
23 * sysdeps/pthread/createthread.c (create_thread): Likewise.
24 * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
25 (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
26 * sysdeps/x86_64/tls.h: Likewise.
27 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
28 (SINGLE_THREAD_P): Likewise.
29 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
30 (SINGLE_THREAD_P): Likewise.
31 * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
32 * sysdeps/s390/tls.h (tcbhead_t): Likewise.
33
c37cae9e
UD
342003-03-09 Ulrich Drepper <drepper@redhat.com>
35
7b44a5e0
UD
36 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
37
c2e5e085
UD
38 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
39 leftovers from the ia32 code.
40
41 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
42 memory load.
43 (clear_once_control): Don't load %esi.
44
45 * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
46 handling.
47
48 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
49
cd4b2a55
UD
50 * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
51 * sysdeps/unix/sysv/linux/createthread.c: ...here.
52
c37cae9e
UD
53 * Makefile (tests): Add tst-cond10.
54 * tst-cond10.c: New file.
55
d130a341
UD
562003-03-08 Ulrich Drepper <drepper@redhat.com>
57
ccf1d573
UD
58 * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
59 * tst-signal3.c (do_test): Likewise.
60 * tst-sem5.c (do_test): Likewise.
61 * tst-kill6.c (do_test): Likewise.
62 * tst-tls3.c (do_test): Likewise. Include <errno.h>.
63
64 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
65 of inc/dec.
66 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
67 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
68 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
69 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
70 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
71 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
72 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
73 Likewise.
74 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
75 Likewise.
76 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
77 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
78 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
79 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
80 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
81 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
82 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
83 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
84
d130a341
UD
85 * allocatestack.c (allocate_stack): If mprotect() fails free the
86 TLS memory.
87
bc6389ad
UD
882003-03-07 Ulrich Drepper <drepper@redhat.com>
89
41d4d223
UD
90 * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
91
92 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
93 lll_wake_tid. This was used only to work around kernel limits in
94 the early days.
95 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
96 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
97 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
98 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
99
bc6389ad
UD
100 * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
101 (__pthread_initialize_minimal_internal): Change initialization of
102 __static_tls_align_m1 appropriately.
103 * pthreadP.h (__static_tls_align_m1): Renamed from
104 __static_tls_align.
105 * allocatestack.c (allocate_stack): Use __static_tls_align_m1
106 instead of __static_tls_align-1.
107
cc775edf
UD
1082003-03-04 Ulrich Drepper <drepper@redhat.com>
109
0de28d5c 110 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6245b6ae 111
518b5308
UD
112 * pthread_create.c: Define __pthread_keys using nocommon
113 attribute, not by placing it explicitly in bss.
114 Remove DEFINE_DEALLOC definition. Not needed anymore.
115
116 * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
117 Use it in mmap call to allocate stacks.
118
119 * sysdeps/pthread/createthread.c (create_thread): Fix comment.
120
cc775edf
UD
121 * pthread_create.c (start_thread): Use THREAD_SETMEM to store
122 result of the thread function.
123
4f6f0a8f
UD
1242003-03-03 Ulrich Drepper <drepper@redhat.com>
125
f04a2721
UD
126 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
127 version is just fine.
128
4f6f0a8f
UD
129 * sysdeps/unix/sysv/linux/libc_pthread_init.c
130 (__pthread_child_handler): Renamed from pthread_child_handler,
131 exported, and marked hidden. Change all users.
132 * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
133 free __pthread_child_handler from child list.
134
7ce5c164
UD
1352003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
136
137 * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
138
139 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
140 Fix handling of cancellation and failing pthread_mutex_unlock call.
141 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
142 (__pthread_cond_wait): Likewise.
143
144 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
145 (pthread_rwlock_timedrdlock): Fix clobber of result variable by
146 lll_futex_timed_wait call.
147 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
148 (pthread_rwlock_timedwrlock): Likewise.
149
150 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
151 Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
152 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
153
154 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
155 check of lll_futex_wake return value.
156
ea6a015b
RM
1572003-03-03 Roland McGrath <roland@redhat.com>
158
159 * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
160
161 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
162 Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
163 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
164
4adacf57
UD
1652003-03-02 Ulrich Drepper <drepper@redhat.com>
166
1be3d664
UD
167 * sysdeps/pthread/timer_create.c (timer_create): Return correct
168 error for CPU clocks.
169
885bafa1
UD
170 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
171 _POSIX_MONOTONIC_CLOCK.
172 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
173
4adacf57
UD
174 * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
175 recent kernels.
176
86bfff4d
UD
1772003-03-01 Ulrich Drepper <drepper@redhat.com>
178
179 * descr.h (struct pthread): Move cleanup field to the front.
180
d1149385
RM
1812003-03-01 Roland McGrath <roland@redhat.com>
182
183 * sem_open.c (sem_open): Braino fix.
184
bd8bb78b
UD
1852003-03-01 Ulrich Drepper <drepper@redhat.com>
186
748bec08
UD
187 * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
188 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
189 __pthread_cleanup_pop functionality.
190 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
191
bd8bb78b
UD
192 * descr.h (struct pthread): Move tid field to the front now that
193 it is often used.
194
195 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
196 (__lll_mutex_timedlock_wait): Remove.
197 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
198 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
199 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
200 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
201 (lll_unlock_wake_cb): Don't save and restore %esi.
202 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
203 %esi.
204 (__lll_timedwait_tid): Add alignment.
205 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
206 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
207 %esi.
208 (__lll_timedwait_tid): Removed.
209 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
210 (__pthread_cond_broadcast): Don't save, load, and restore %esi.
211 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
212 (pthread_barrier_wait): Don't save, load, and restore %esi for
213 last thread.
214 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
215 (__pthread_cond_signal): Don't save, load, and restore %esi.
216 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
217 (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
218 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
219 Don't save, load, and restore %esi.
220
d2637c70
UD
2212003-02-27 Ulrich Drepper <drepper@redhat.com>
222
567fb22a
UD
223 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
224 Release lock before waking up the waiters.
225
427f5fa1
UD
226 * tst-exit1.c (do_test): Don't start more than one thread in parallel.
227
a2d83cfb
UD
228 * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
229 (reader_thread): Likewise.
230
d2637c70
UD
231 * sysdeps/pthread/pthread_rwlock_unlock.c
232 (__pthread_rwlock_unlock): Release internal lock early. Don't try
233 to wake up readers if there are none.
234
235 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
236 Release internal lock before wake threads.
237
b1531183
UD
2382003-02-26 Ulrich Drepper <drepper@redhat.com>
239
dbf6131c
UD
240 * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
241 * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
242 predefined.
243 * tst-rwlock9.c: Likewise.
244 * tst-rwlock10.c: New file.
245 * tst-rwlock11.c: New file.
246
695799fe
UD
247 * Makefile (tests): Add tst-dlsym1.
248 * tst-dlsym1.c: New file.
249
b1531183
UD
250 * init.c (__pthread_initialize_minimal_internal): Set
251 GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
252 * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
253
3724f268
UD
2542003-02-24 Ulrich Drepper <drepper@redhat.com>
255
3857ca78
UD
256 * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
257
80d80779
UD
258 * tst-cond2.c: Fix sychronization with child.
259
86371308
UD
260 * tst-rwlock8.c (reader_thread): Remove unused variable.
261
ffeb4481
UD
262 * Makefile: Add rules to build and run tst-tls3.
263 * tst-tls3.c: New file.
264 * tst-tls3mod.c: New file.
265
3724f268
UD
266 * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
267 * tst-rwlock8.c: New file.
268 * tst-rwlock9.c: New file.
269 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
270 complete broken rwlock implementation.
271 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
272 Likewise.
273 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
274 Likewise.
275 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
276 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
18a53579
UD
277 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
278 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
279 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
280 * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
281 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
3724f268 282
8915cc40
RM
2832003-02-23 Roland McGrath <roland@redhat.com>
284
285 * Makefile (nptl-version): Change regexp so case sensitivity is ok.
286
fd1a0d0c
UD
2872003-02-23 Ulrich Drepper <drepper@redhat.com>
288
ecf28959
UD
289 * Makefile (tests): Add tst-context1.
290 * tst-context1.c: New file.
291
5e47b76b
UD
292 * Makefile (tests): Add tst-tls1 and tst-tls2.
293 * tst-tls1.c: New file.
294 * tst-tls2.c: New file.
295
5a6bbb41
UD
296 * libc-cancellation.c (__libc_enable_asynccancel): Correct test
297 for failed cmpxchg.
298
fd1a0d0c
UD
299 * pthread_create.c (start_thread): Set EXITING_BIT early.
300
301 * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
302 (THREAD_GETMEM_NC): Likewise.
303
757f9fcb
UD
3042003-02-22 Ulrich Drepper <drepper@redhat.com>
305
b1b8e747
UD
306 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
307 off 3 more bytes by using offset-less instructions when possible.
308
c780aa21 309 * Makefile: Add dependency for $(objpfx)version.d.
757f9fcb
UD
310
311 * eintr.c (eintr_source): Add unnecessary return but the compiler
312 insists.
313
314 * tst-kill3.c: Include <unistd.h>.
315
5148559c
RM
3162003-02-21 Roland McGrath <roland@redhat.com>
317
318 * pthread_create.c (start_thread): Call __libc_thread_freeres.
319
ab2d98e3
UD
3202003-02-21 Ulrich Drepper <drepper@redhat.com>
321
71028edd
UD
322 * Makefile (tests): Add tst-eintr1.
323 (distribute): Add eintr.c.
324 * tst-eintr1.c: New file.
325 * eintr.c: New file.
326
e814f748
UD
327 * pthread_cancel.c (pthread_cancel): Use tkill directly.
328
329 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
330 Disallow sending SIGCANCEL.
331
ab2d98e3 332 * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
9c03686d 333 tst-kill3, tst-kill4, tst-kill5, tst-kill6.
e814f748
UD
334 * tst-kill1.c: New file.
335 * tst-kill2.c: New file.
336 * tst-kill3.c: New file.
337 * tst-kill5.c: New file.
9c03686d 338 * tst-kill6.c: New file.
e814f748
UD
339 * tst-basic7.c: Renamed to...
340 * tst-kill4.c: ...this.
ab2d98e3 341
59fed0e2
RM
3422003-02-21 Roland McGrath <roland@redhat.com>
343
344 * Makefile (install-lib-ldscripts): New variable.
345
49dc759f
UD
3462003-02-21 Ulrich Drepper <drepper@redhat.com>
347
8c2e9a29
UD
348 * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
349 * pthread_cancel.c: Use INVALID_TD_P.
350 * pthread_detach.c: Likewise.
351 * pthread_getschedparam.c: Likewise.
352 * pthread_setschedparam.c: Likewise.
353 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
354 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
355 * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
356 * pthread_timedjoin.c: Likewise.
357
358 * tst-basic7.c: Include <signal.h>.
359
49dc759f
UD
360 * pthread_join.c (pthread_join): Limited checking for invalid
361 descriptors.
362 * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
363
df5803bf
UD
3642003-02-20 Ulrich Drepper <drepper@redhat.com>
365
c5acd3d7
UD
366 * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
367 beginning of the loop. Clear the entire first block of TSD.
df5803bf
UD
368 * Makefile (tests): Add tst-key4.
369 * tst-key4.c: New file.
370
729924a0
UD
3712003-02-18 Ulrich Drepper <drepper@redhat.com>
372
2f7dc594
UD
373 * Makefile (tests): Add tst-basic7.
374 * tst-basic7.c: New file.
375
ba25bb0f
UD
376 * pthread_create.c (deallocate_tsd): Mark as internal_function.
377 Add some more __builtin_expect.
378
12fd3c5f 379 * pthreadP.h: Define dummy version of DEBUGGING_P.
729924a0 380
5430d926
UD
3812003-02-17 Ulrich Drepper <drepper@redhat.com>
382
b0db7fbe
UD
383 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
384 _POSIX_THREAD_PRIORITY_SCHEDULING.
385 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
386 _XOPEN_REALTIME_THREADS.
387 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
388
389 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
390 kernel returns EINVAL for PID <= 0, work around it.
391
ecfda9bd
UD
392 * Makefile (tests): Add tst-signal5.
393 * tst-signal5.c: New file.
394
7d78ab99
UD
395 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
396 and LOGIN_NAME_MAX.
397
371a2972
UD
398 * tst-cancel1.c (tf): Block all signals.
399
5430d926
UD
400 * Makefile (tests): Add tst-basic6.
401 * tst-basic6.c: New file.
402
403 * tst-basic1.c: Add test for process ID.
404
405 * Makefile (tests): Add tst-cancel10.
406 * tst-cancel10.c: New file.
407
408 * Makefile (tests): Add tst-signal4.
409 * tst-signal4.c: New file.
410
411 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
412 __sigismember instead of sigismember. Add __builtin_expect.
413
1564916a
UD
4142003-02-16 Ulrich Drepper <drepper@redhat.com>
415
179ff175
UD
416 * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
417 pthread_setcancelstate, and pthread_rwlock_setpshared.
418
e4335f9a
UD
419 * tst-cancel7.c (do_test): Make sure the pid file exists before
420 canceling the thread.
421
0a37669a
UD
422 * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
423 pthread_rwlock_timedrdlock tests.
424 * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
425 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
426 Check for invalid tv_nsec field.
427 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
428 Likewise.
429
430 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
431 recursive mutex of overflow.
432
433 * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
434
e4335f9a 435 * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
1564916a
UD
436 going into an endless loop.
437 * Makefile (tests): Add tst-cancel9.
438 * tst-cancel9.c: New file.
439
440 * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
441
b270b548
UD
4422003-02-15 Ulrich Drepper <drepper@redhat.com>
443
1c82b97f
UD
444 * tst-mutex5.c (do_test): Add more timedlock tests.
445
b2f05465 446 * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
c3bb9ee1
UD
447 * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
448
e798b60f
UD
449 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
450 use INLINE_SYSCALL. Error number is returned, not -1.
451
90491dc4
UD
452 * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
453 and __deallocate_stack with internal_function.
454 * pthread_create.c: Adjust definitions appropriately.
455 * allocatestack.c: Likewise.
456
457 * pthread_join.c: Add one more __builtin_expect.
458 * pthread_timedjoin.c: Likewise.
459
460 * pthread_getspecific.c (__pthread_getspecific): Clear data->data
461 not data of sequence number does not match.
462 Add one __builtin_expect.
463
c6247c9d
UD
464 * Makefile (tests): Add tst-clock1.
465 * tst-clock1.c: New file.
466
b270b548
UD
467 * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
468 negative arguments.
469 * Makefile (tests): Add tst-basic5.
470 * tst-basic5.c: New file.
471
700bf7af
UD
4722003-02-14 Ulrich Drepper <drepper@redhat.com>
473
757de559
UD
474 * Makefile (tests): Add tst-basic4.
475 * tst-basic4.c: New file.
476
47202270
UD
477 * pthreadP.h: Add declaraction for __nptl_nthreads.
478 * pthread_create.c: Define __nptl_nthreads
479 (start_thread): Increment __nptl_nthreads at beginning. Decrement
b270b548 480 after thread is done. If then zero, call exit(0).
47202270
UD
481 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
482 Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
483 * init.c (pthread_functions): Initialize ptr_nthreads.
484 * allocatestack.c (nptl_nthreads): Remove definition and all uses.
485 (__reclaim_stacks): Decrement __nptl_nthreads.
486 * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
487 Define.
488 * Makefile (tests): Add tst-basic3.
489 * tst-basic3.c: New file.
490
e320ef46
UD
491 * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
492 after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
493 * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
494 * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
495 if asynchronous canceling is enabled.
496 * pthread_join.c (pthread_join): When recognizing circular joins,
497 take into account the other thread might be already canceled.
498 * Makefile (tests): Add tst-join5.
499 * tst-join5.c: New file.
500
700bf7af
UD
501 * Makefile (tests): Add tst-join4.
502 * tst-join4.c: New file.
503
5042003-02-13 Ulrich Drepper <drepper@redhat.com>
505
506 * tst-cond4.c (main): Add test of pthread_attr_getpshared.
507
dac0f772
UD
5082003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
509
510 * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
511 THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
512 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
513 warning.
514 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
515 to avoid warning.
516 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
517 error if lll_futex_wake failed.
518
e8cda341
UD
5192003-02-13 Ulrich Drepper <drepper@redhat.com>
520
a7720b5e
UD
521 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
522 handling of cancellation and failung pthread_mutex_unlock call.
523 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
524 * Makefile (tests): Add tst-cond8 and tst-cond9.
525 * tst-cond8.c: New file.
526 * tst-cond9.c: New file.
527
a1ea4c06
UD
528 * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
529
530 * sysdeps/pthread/pthread.h: Add missing initializers. Protect
531 non-standard initializers with __USE_GNU.
532
e8cda341
UD
533 * Makefile (tests): Add tst-cleanup3.
534 * tst-cleanup3.c: New file.
535
2067577c
UD
5362003-02-12 Ulrich Drepper <drepper@redhat.com>
537
89e78a95
UD
538 * Makefile (tests): Add tst-attr1 and tst-attr2.
539 * tst-attr1.c: New file.
540 * tst-attr2.c: New file.
541
dfdd294a
UD
542 * Makefile: Add rules to build and run tst-atfork2 test.
543 * tst-atfork2.c: New file.
544 * tst-atfork2mod.c: New file.
545
546 * sysdeps/unix/sysv/linux/unregister-atfork.c
547 (__unregister_atfork): Free the memory allocated for the handlers
548 after removing them from the lists.
549
550 * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
551 cleanup function.
552
553 * tst-atfork1.c (do_test): Wait for the child we forked.
554 Report error in child.
555
556 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
557
2067577c
UD
558 * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
559
2a8a8a84
UD
5602003-02-10 Ulrich Drepper <drepper@redhat.com>
561
d9dd121e
UD
562 * Makefile (tests): Add tst-cancel8.
563 * tst-cancel8.c: New file.
564
2a8a8a84
UD
565 * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
566 clearing of control variable.
defd1870 567 * Makefile (tests): Add tst-once3 and tst-once4.
2a8a8a84 568 * tst-once3.c: New file.
defd1870 569 * tst-once4.c: New file.
2a8a8a84 570
a54e8d33
UD
5712003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
572
573 * sysdeps/sh/Makefile: New file.
574 * sysdeps/sh/bits/atomic.h: New file.
575 * sysdeps/sh/pthread_spin_init.c: New file.
576 * sysdeps/sh/pthread_spin_lock.c: New file.
577 * sysdeps/sh/pthread_spin_trylock.S: New file.
578 * sysdeps/sh/pthread_spin_unlock.S: New file.
579 * sysdeps/sh/pthreaddef.h: New file.
580 * sysdeps/sh/tcb-offsets.sym: New file.
581 * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
582 * sysdeps/sh/tls.h: New file.
583 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
584 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
585 * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
586 * sysdeps/unix/sysv/linux/sh/fork.c: New file.
587 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
588 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
589 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
590 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
591 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
592 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
593 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
594 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
595 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
596 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
597 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
598 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
599 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
600 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
601 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
602 * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
603 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
604 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
605 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
606 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
607 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
608 * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
609 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
610 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
611 * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
612 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
613
696e556e
UD
6142003-02-08 Ulrich Drepper <drepper@redhat.com>
615
616 * tst-cond2.c: Rearrange code to not rely on behavior undefined
617 according to POSIX.
618
619 * tst-basic2.c (do_test): Lock mutex before creating the thread.
620
fef710d6
UD
6212003-02-07 Ulrich Drepper <drepper@redhat.com>
622
c6180643
UD
623 * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
624 (TLS_GET_FS): New #define.
625 (TLS_SET_FS): New #define.
626 Correct value of __NR_set_thread_area.
627
fef710d6
UD
628 * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
629
11090a99
UD
6302003-02-06 Ulrich Drepper <drepper@redhat.com>
631
65c68990
UD
632 * Makefile (tests): Add tst-popen1.
633 * tst-popen1.c: New file.
634
11090a99
UD
635 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
636 but inactive generalization.
637 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
638 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
639 Minor optimization, remove one instruction.
640 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
641
a88c9263
UD
6422003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
643
644 * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
645
6462003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
647
648 * init.c (__NR_set_tid_address): Add #ifdef for s390.
649 * sysdeps/pthread/pthread_barrier_wait.c: New file.
650 * sysdeps/pthread/pthread_cond_broadcast.c: New file.
651 * sysdeps/pthread/pthread_cond_signal.c: New file.
652 * sysdeps/pthread/pthread_cond_timedwait.c: New file.
653 * sysdeps/pthread/pthread_cond_wait.c: New file.
654 * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
655 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
656 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
657 * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
658 * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
659 * sysdeps/s390/Makefile: New file.
660 * sysdeps/s390/bits/atomic.h: New file.
661 * sysdeps/s390/pthread_spin_init.c: New file.
662 * sysdeps/s390/pthread_spin_lock.c: New file.
663 * sysdeps/s390/pthread_spin_trylock.c: New file.
664 * sysdeps/s390/pthread_spin_unlock.c: New file.
665 * sysdeps/s390/pthreaddef.h: New file.
666 * sysdeps/s390/tcb-offsets.sym: New file.
667 * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
668 * sysdeps/s390/tls.h: New file.
669 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
670 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
671 * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
672 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
673 * sysdeps/unix/sysv/linux/s390/fork.c: New file.
674 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
675 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
676 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
677 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
678 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
679 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
680 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
681 * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
682 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
683 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
684 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
685 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
686 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
687 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
688 * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
689 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
690 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
691 * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
692
6f1cff95
UD
6932003-02-04 Ulrich Drepper <drepper@redhat.com>
694
ec609a8e
UD
695 * atomic.h: Add a couple more default implementations.
696 (atomic_compare_and_exchange_acq): Use
d45e8740
UD
697 __arch_compare_and_exchange_32_acq in return value definition. It
698 always exists.
699 (atomic_bit_set): Renamed from atomic_set_bit.
0289bef9 700 Add missing atomic_ prefixes.
e3ec8904 701
6f1cff95
UD
702 * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
703 thread library is available, use correct value to mark initialized
704 once variable.
705
4f088329
UD
7062003-02-03 Ulrich Drepper <drepper@redhat.com>
707
6f1cff95
UD
708 * allocatestack.c (allocate_stack): Use __getpagesize instead of
709 __sysconf to determine pagesize.
710
3e4fc359 711 * pthread_create.c: Include <atomic.h>.
4f088329
UD
712 * allocatestack.c (allocate_stack): Implement coloring of the
713 allocated stack memory. Rename pagesize to pagesize_m1. It's the
714 size minus one. Adjust users.
3e4fc359 715 * sysdeps/i386/i686/Makefile: New file.
4f088329 716
2f42e8be
UD
7172003-02-02 Ulrich Drepper <drepper@redhat.com>
718
4301f7e2
UD
719 * allocatestack.c: Improve comment throughout the file.
720
2f42e8be 721 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
a37818b3 722 (__lll_lock_wait): Add branch prediction.
2f42e8be
UD
723 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
724 (__lll_lock_wait): Likewise.
725 (lll_unlock_wake_cb): Removed.
726
4a7d6545
UD
7272003-01-31 Ulrich Drepper <drepper@redhat.com>
728
729 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
730 _POSIX_THREAD_PRIORITY_SCHEDULING.
731
886d5973
UD
7322003-01-30 Jakub Jelinek <jakub@redhat.com>
733
734 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
735 Fix return type of ptr___pthread_getspecific.
736
e474ca78
UD
7372003-01-29 Ulrich Drepper <drepper@redhat.com>
738
739 * Makefile (tests): Add tst-umask1.
740 (tst-umask1-ARGS): Define.
741 * tst-umask1.c: New file.
742
e6ebd2e4
UD
7432003-01-28 Ulrich Drepper <drepper@redhat.com>
744
6cf26f41
UD
745 * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
746 pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
747 pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
748 pthread_rwlock_unlock.
749 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
750 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
751 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
752 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
753 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
754 New file.
755 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
756 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
757 New file.
758 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
759 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
760 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
761 New file.
762 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
763 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
764 New file.
765 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
766 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
767 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
768 New file.
769 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
770 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
771 New file.
772 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
773
1d087a7e
UD
774 * Makefile (libpthread-routines): Remove lowlevelcond and
775 lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
776 pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
777 and pthread_cond_broadcast.
4a99d160
UD
778 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
779 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
780 * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
781 * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
782 * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
783 * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
784 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
785 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
786 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
787 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
788 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
789 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
790 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
791 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
792 * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
793 * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
794 * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
795 * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
796 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
797 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
798 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
799 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
800 * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
801 * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
802 * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
803 * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
804 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
805 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
806 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
807 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
808 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
1d087a7e 809
e6ebd2e4
UD
810 * sysdeps/unix/sysv/linux/i386/createthread.c: Define
811 PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
812 of the code is moved to ...
813 * sysdeps/pthread/createthread.c: ...here. New file.
814
a15698cb
UD
8152003-01-27 Ulrich Drepper <drepper@redhat.com>
816
0566b130
UD
817 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
818 (__new_sem_post): Clear %eax before returning.
819 Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
820
e6fb8846
UD
821 * Makefile (tests): Add tst-cleanup2.
822 * tst-cleanup2.c: New file.
823
a15698cb
UD
824 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
825 Interpret first parameter correctly.
826
8824b0a1
UD
8272003-01-17 Ulrich Drepper <drepper@redhat.com>
828
829 * Makefile (headers): Add bits/semaphore.h.
830
850dcfca
UD
8312003-01-16 Jakub Jelinek <jakub@redhat.com>
832
833 * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
834 if not SHARED.
835
574b892e
UD
8362003-01-14 Ulrich Drepper <drepper@redhat.com>
837
a8d87c92
UD
838 * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
839 must be used and mapping failed.
840 Reported by Luke Elliott <luke.elliott@activfinancial.com>.
841
574b892e
UD
842 * Makefile (CFLAGS-pthread_self.os): Define this, not
843 CFLAGS-pthread_self.c.
844
fb48047a
UD
8452003-01-13 Ulrich Drepper <drepper@redhat.com>
846
47805511
UD
847 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
848 lll_unlock_wake_cb.
849
fb48047a
UD
850 * Makefile (libpthread-routines): Add version. Add rules to build
851 version.os and banner.h.
852 * version.c: New file.
853
115bb61d
UD
8542003-01-13 Jakub Jelinek <jakub@redhat.com>
855
856 * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
857 the alias unconditional.
858 * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
859
8602003-01-13 Ulrich Drepper <drepper@redhat.com>
861
862 * Makefile (CFLAGS-pthread_self.c): New definition.
863
6aca81bb
UD
8642003-01-06 Jakub Jelinek <jakub@redhat.com>
865
866 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
867 INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
868 * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
869 * init.c (__pthread_initialize_minimal_internal): Likewise.
870
e9c7764e
UD
8712003-01-07 Jakub Jelinek <jakub@redhat.com>
872
b5facfda
UD
873 * pthreadP.h (__pthread_cond_timedwait): Add prototype.
874
e9c7764e
UD
875 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
876 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
877 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
878 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
879 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
880 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
881
bef1e42f
UD
8822003-01-06 Jakub Jelinek <jakub@redhat.com>
883
884 * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
885 * pt-system.c (LIBC_CANCEL_HANDLED): Add.
886 * tst-cancel-wrappers.sh: Remove all exceptions.
887
bbd17455
UD
8882003-01-05 Ulrich Drepper <drepper@redhat.com>
889
a73ab6df
UD
890 * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
891 features. Reported by Marijn Ros <marijn@mad.scientist.com>.
892
bbd17455
UD
893 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
894 Use __libc_pthread_functions array if SHARED.
895
896 * pthreadP.h: Move pthread_cond_2_0_t definition to...
897 * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
898
899 * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
900 (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
901 __libc_key_create, __libc_getspecific, __libc_setspecific): Use
902 __libc_ptf_call instead of __libc_maybe_call.
903 (PTF): New #define.
904 (__libc_cleanup_region_start): Wrap function name with PTF call.
905 (__libc_cleanup_region_end): Likewise.
906 (__libc_cleanup_end): Likewise.
907
908 * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
909 * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
910 * pthread_key_create.c: Add __pthread_key_create_internal alias.
911 * pthreadP.h: Add prototypes.
912
913 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
914 __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
915 __pthread_rwlock_unlock aliases.
916 * pthreadP.h: Add prototypes for new aliases.
917
918 * pthreadP.h (struct pthead_functions): Moved to...
919 * sysdeps/pthread/pthread-functions.h: ...here. New file.
920 * init.c (pthread_functions): Add initializers for new elements.
921
922 * cleanup_defer.c: Add __pthread_cleanup_push_defer and
923 __pthread_cleanup_pop_restore aliases.
924 * pthreadP.h: Add prototypes.
925
926 * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
927 and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
928 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
929 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
930 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
931 * pthreadP.h: Adjust prototypes and callers.
932
d27a78be
UD
9332003-01-04 Ulrich Drepper <drepper@redhat.com>
934
b74121ae
UD
935 * Makefile (tests): Add tst-cancel7.
936 (tst-cancel7-ARGS): New variable.
bbd17455 937 * tst-cancel7.c: New file.
b74121ae 938
29bc410c
UD
939 * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
940 around gcc defficiencies.
941 * old_pthread_cond_signal.c: Likewise.
942 * old_pthread_cond_timedwait.c: Likewise.
943 * old_pthread_cond_wait.c: Likewise.
944
d27a78be
UD
945 * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
946
733f25e6
UD
9472003-01-03 Ulrich Drepper <drepper@redhat.com>
948
7edb2ae3
UD
949 * Makefile (tests): Add tst-cond7.
950 * tst-cond7.c: New file.
951
b1151300
UD
952 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
953 (condvar_cleanup): Get condvar address from the right place.
954
733f25e6
UD
955 * atomic.h: Correct definitions of atomic_full_barrier,
956 atomic_read_barrier, atomic_write_barrier.
957
958 * old_pthread_cond_broadcast.c: Make memory allocate and initialization
959 race-free.
960 * old_pthread_cond_signal.c: Likewise.
961 * old_pthread_cond_timedwait.c: Likewise.
962 * old_pthread_cond_wait.c: Likewise.
963
686b7223
UD
9642003-01-03 Jakub Jelinek <jakub@redhat.com>
965
966 * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
967
0e07706e
UD
9682003-01-03 Ulrich Drepper <drepper@redhat.com>
969
997256dd
UD
970 * pthreadP.h (pthread_cond_2_0_t): New type.
971 (struct pthread_functions): Use new type for 2.0 condvar callbacks.
972 Use new type for the 2.0 condvar function prototypes.
973 * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
974 * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
975 parameter.
976 * old_pthread_cond_destroy.c: Likewise.
977 * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
978 * old_pthread_cond_signal.c: Likewise.
979 * old_pthread_cond_timedwait.c: Likewise.
980 * old_pthread_cond_wait.c: Likewise.
981
842d2817
UD
982 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
983 (__pthread_cond_wait): Don't save cancellation mode and seq value
984 in same location.
985
0e07706e
UD
986 * herrno.c (__h_errno_location): Don't define as weak.
987
bf293afe
UD
9882003-01-02 Jakub Jelinek <jakub@redhat.com>
989
990 * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
991 pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
992 and pthread_cond_wait.
993 * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
994 Renamed to...
995 (__pthread_cond_broadcast_2_0): ... this.
996 * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
997 Renamed to...
998 (__pthread_cond_destroy_2_0): ... this.
999 * old_pthread_cond_init.c (__old_pthread_cond_init):
1000 Renamed to...
1001 (__pthread_cond_init_2_0): ... this.
1002 * old_pthread_cond_signal.c (__old_pthread_cond_signal):
1003 Renamed to...
1004 (__pthread_cond_signal_2_0): ... this.
1005 * old_pthread_cond_wait.c (__old_pthread_cond_wait):
1006 Renamed to...
1007 (__pthread_cond_wait_2_0): ... this.
1008 * pthread_cond_destroy.c: Include shlib-compat.h.
1009 (pthread_cond_destroy): Change strong_alias into versioned_symbol.
1010 * pthread_cond_init.c: Include shlib-compat.h.
1011 (pthread_cond_init): Change strong_alias into versioned_symbol.
1012 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
1013 fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
1014 fields.
1015 (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
1016 __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
1017 __pthread_cond_wait_2_0): New prototypes.
1018 (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
1019 __old_pthread_cond_init, __old_pthread_cond_signal,
1020 __old_pthread_cond_wait): Removed.
1021 * init.c: Include shlib-compat.h.
1022 (pthread_functions): Guard ptr___pthread_attr_init_2_0
1023 initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
1024 Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
1025 ptr___pthread_cond_*_2_0 fields.
1026 * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
1027 pthread_cond_*@GLIBC_2.0 compatibility symbols.
1028
1029 * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
1030 LIBC_SIGACTION was not yet defined.
1031 [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
1032 [!defined LIBC_SIGACTION] (__sigaction): New function and
1033 libc_hidden_weak.
1034 [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
1035 [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
1036
10372003-01-02 Jakub Jelinek <jakub@redhat.com>
1038
1039 * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
1040
05df18c3
UD
10412003-01-02 Ulrich Drepper <drepper@redhat.com>
1042
1043 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
1044 New, larger type definition.
1045 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
1046 implementation.
1047 * Versions [libpthread]: Add definitions for new pthread_cond_*
1048 interfaces for version GLIBC_2.3.2.
1049 * pthread_cond_init.c: Update initialization for new type definition.
1050 * Makefile (libpthread-routines): Remove pthread_cond_wait,
1051 pthread_cond_timedwait, pthread_cond_signal, and
1052 pthread_cond_broadcast. Add old_pthread_cond_init,
1053 old_pthread_cond_destroy, old_pthread_cond_wait,
1054 old_pthread_cond_timedwait, old_pthread_cond_signal, and
1055 old_pthread_cond_broadcast.
1056 * old_pthread_cond_broadcast.c: New file.
1057 * old_pthread_cond_destroy.c: New file.
1058 * old_pthread_cond_init.c: New file.
1059 * old_pthread_cond_signal.c: New file.
1060 * old_pthread_cond_timedwait.c: New file.
1061 * old_pthread_cond_wait.c: New file.
1062 * pthreadP.h: Add prototypes for the compatibility interfaces.
1063
1064 * pthread_cond_destroy.c: Don't include <errno.h>.
1065
fd8979e4
UD
10662003-01-01 Ulrich Drepper <drepper@redhat.com>
1067
1068 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
1069 unnecessary zero offset when addressing MUTEX.
1070
6d6ee629
UD
10712002-12-31 Ulrich Drepper <drepper@redhat.com>
1072
1073 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
1074 __register_atfork.
1075 * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
1076 for __register_atfork.
1077
a4baf360
UD
10782002-12-31 Jakub Jelinek <jakub@redhat.com>
1079
1080 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
1081 instead of ASSEMBLER test macro.
1082
1083 * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
1084 __libc_current_sigrtmax): Add libc_hidden_def.
1085
1086 * sysdeps/pthread/list.h: Remove assert.h include.
1087
e9395a94
UD
10882002-12-31 Ulrich Drepper <drepper@redhat.com>
1089
1090 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
1091 __pthread_initialize_minimal_internal not
1092 __pthread_initialize_minimal.
1093
89d6e444
UD
10942002-12-30 Ulrich Drepper <drepper@redhat.com>
1095
416d2de6
UD
1096 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
1097 __pthread_initialize_minimal as hidden.
1098
89d6e444
UD
1099 * init.c (__pthread_initialize_minimal_internal): Don't mark as
1100 constructor.
1101
11022002-12-31 Jakub Jelinek <jakub@redhat.com>
1103
1104 * Makefile ($(inst_libdir)/libpthread.so): Depend on
1105 $(common-objpfx)format.lds, include that into the output script.
1106 Fix comment.
1107 (extra-B-pthread.so): Change linuxthreads/ into nptl/.
1108
8cac677c
UD
11092002-12-28 Andreas Jaeger <aj@suse.de>
1110
1111 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
1112 nsec resolution changes.
1113 (xstat64_conv): Likewise.
1114 (xstat32_conv): Likewise.
1115 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
1116 struct kernel_stat.
1117 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
1118 structs stat and stat64.
1119 * time/time.h (__timespec_defined): Define for __USE_MISC.
89d6e444 1120 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
8cac677c 1121
49e9f864
UD
11222002-12-30 Jakub Jelinek <jakub@redhat.com>
1123
1124 * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
1125 argument.
1126 (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
1127 (pthread_exit): Use strong_alias to avoid warnings.
1128 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
1129 and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
1130 ptr___pthread_attr_init_2_*.
1131 * init.c (pthread_functions): Adjust.
1132
bab09b26
UD
11332002-12-29 Ulrich Drepper <drepper@redhat.com>
1134
598d7a42
UD
1135 * forward.c: Make all functions available by default again. It
1136 caused too much trouble.
1137
bab09b26
UD
1138 * pt-siglongjmp.c: Removed.
1139
3b7ed871
UD
11402002-12-28 Jakub Jelinek <jakub@redhat.com>
1141
1142 * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
1143 (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
1144 * sysdeps/i386/Makefile: New file.
1145 * sysdeps/i386/tcb-offsets.sym: New file.
1146 * sysdeps/pthread/tcb-offsets.h: New file.
1147 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
1148 Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
1149
1150 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
1151 __register_atfork...
1152 (GLIBC_2.3.2): ...here.
1153
11542002-12-28 Ulrich Drepper <drepper@redhat.com>
1155
1156 * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
1157 pthread_attr_setstackaddr with __attribute_deprecated__.
1158
270d9d47
UD
11592002-12-27 Jakub Jelinek <jakub@redhat.com>
1160
1161 * pt-system.c (system): Remove cancellation handling.
1162 * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
1163 cancellation routines.
1164
131fd126
UD
11652002-12-28 Ulrich Drepper <drepper@redhat.com>
1166
afb2e954
UD
1167 * descr.h: Include <dl-sysdep.h>.
1168 (struct pthread): Move header.data.list to the back of the struct.
131fd126
UD
1169 * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
1170 (MULTIPLE_THREADS_OFFSET): Adjust offset.
1171 (SYSINFO_OFFSEET): Likewise.
1172
11732002-12-27 Jakub Jelinek <jakub@redhat.com>
1174
1175 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
1176 Define.
1177 (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
1178 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
1179 DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
1180 (USE_DL_SYSINFO): Undef.
1181
11822002-12-22 Jakub Jelinek <jakub@redhat.com>
1183
1184 * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
1185 $(common-objpfx)libc.so.
1186 * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
1187 it is bigger than pipe buffer size even on arches with bigger
1188 page size.
1189 (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
1190
a218c9cf
UD
11912002-12-25 Ulrich Drepper <drepper@redhat.com>
1192
1193 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
1194 correct errno access for case that USE___THREAD is not defined.
1195
015a2dc9
UD
11962002-12-24 Ulrich Drepper <drepper@redhat.com>
1197
1198 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
1199 Patch by Marijn Ros <marijn@mad.scientist.com>.
1200
5220f9ac
RM
12012002-12-22 Roland McGrath <roland@redhat.com>
1202
1203 * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
1204
1561bf63
UD
12052002-12-20 Ulrich Drepper <drepper@redhat.com>
1206
1207 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
1208
3325198e
UD
12092002-12-19 Ulrich Drepper <drepper@redhat.com>
1210
057c823f
UD
1211 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
1212 NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
1213 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
1214
097eca29
UD
1215 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
1216 of int $0x80.
1217 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
1218 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
1219 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
1220 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
1221 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
1222 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
1223 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
1224 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
1225
1226 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
1227 sysenter.
1228 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
1229
1230 * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
1231
5f5843e3
UD
1232 * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
1233 in new TCB.
1234 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
1235 that sysinfo is properly initialized.
1236 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
1237 to 1 only for ld.so.
1238
3325198e
UD
1239 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
1240 RTLD_CORRECT_DYNAMIC_WEAK.
1241
74e8f2dc
UD
12422002-12-19 Jakub Jelinek <jakub@redhat.com>
1243
1244 * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
1245 Use return 0 as 6th argument to FORWARD4.
1246 * pthread_equal.c: Include pthreadP.h instead of pthread.h.
1247
df45b31e
UD
12482002-12-18 Ulrich Drepper <drepper@redhat.com>
1249
1250 * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
1251 * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
1252 Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
1253 (INIT_SYSINFO): New #define.
1254 (TLS_TP_INIT): Use INIT_SYSINFO.
1255 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
1256 At test to make sure SYSINFO_OFFSET value is correct.
1257 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
1258
3d539579
UD
12592002-12-18 Jakub Jelinek <jakub@redhat.com>
1260
1261 * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
1262 * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
1263 * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
1264 [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
1265 __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
1266 __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
1267 __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
1268
d7913e0e
UD
12692002-12-18 Ulrich Drepper <drepper@redhat.com>
1270
f051627f
UD
1271 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
1272 macro instead of using int $0x80 directly.
1273
d7913e0e
UD
1274 * sysdeps/pthread/bits/stdio-lock.h: New file.
1275 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
1276 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
1277 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
1278 * Makefile (routines): Add libc-lowlevelmutex.
1279
1280 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
1281 __i686.get_pc_thunk.dx.
1282
f077a4a9
UD
12832002-12-17 Jakub Jelinek <jakub@redhat.com>
1284
1285 * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
1286 (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
1287 ($(objpfx)tst-cancel-wrappers.out): New rule.
1288 * tst-cancel-wrappers.sh: New test.
1289 * tst-locale1.c: Include signal.h.
1290 (uselocale): Test static linking of __libc_current_sigrt*.
1291
12922002-12-17 Ulrich Drepper <drepper@redhat.com>
1293
1294 * Makefile (tests): Add tst-cancel6.
1295 * tst-cancel6.c: New file
1296
bd499a3b
UD
12972002-12-17 Jakub Jelinek <jakub@redhat.com>
1298
1299 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
1300 Define meaningfully for assembler as well.
1301 * pthreadP.h (struct pthread_functions): Remove
1302 ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
1303 and ptr_pthread_attr_init_2_1 fields.
1304 * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
1305 and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
1306 * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
1307 (FORWARD3): Define using FORWARD4.
1308 (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
1309 versions.
1310 * pt-system.c: Remove duplicate stdlib.h include.
1311
0a1063f4
UD
13122002-12-16 Ulrich Drepper <drepper@redhat.com>
1313
87d60668
UD
1314 * sem_init.c: Define sem_init@GLIBC_2.0.
1315 * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
1316 * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
1317
0a1063f4
UD
1318 * flockfile.c: Moved to...
1319 * sysdeps/pthread/flockfile.c: ...here. New file.
1320 * funlockfile.c: Moved to...
1321 * sysdeps/pthread/funlockfile.c: ...here. New file.
1322 * ftrylockfile.c: Moved to...
1323 * sysdeps/pthread/ftrylockfile.c: ...here. New file.
1324
9634cf9d
UD
13252002-12-16 Jakub Jelinek <jakub@redhat.com>
1326
1327 * libc-cancellation.c: Guard both function with
1328 #if !defined NOT_IN_libc.
1329 * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
1330 automatically provided pthread wrappers.
1331 * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
1332 CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
1333 nor in libpthread.
1334 * pt-open.c: Removed.
1335 * pt-fcntl.c: Removed.
1336 * pt-fsync.c: Removed.
1337 * pt-lseek.c: Removed.
1338 * pt-msgrcv.c: Removed.
1339 * pt-msgsnd.c: Removed.
1340 * pt-msync.c: Removed.
1341 * pt-nanosleep.c: Removed.
1342 * pt-open64.c: Removed.
1343 * pt-pause.c: Removed.
1344 * pt-pread.c: Removed.
1345 * pt-pread64.c: Removed.
1346 * pt-pwrite.c: Removed.
1347 * pt-pwrite64.c: Removed.
1348 * pt-read.c: Removed.
1349 * pt-recv.c: Removed.
1350 * pt-recvfrom.c: Removed.
1351 * pt-recvmsg.c: Removed.
1352 * pt-send.c: Removed.
1353 * pt-sendto.c: Removed.
1354 * pt-sigtimedwait.c: Removed.
1355 * pt-sigwait.c: Removed.
1356 * pt-wait.c: Removed.
1357 * pt-waitpid.c: Removed.
1358 * pt-write.c: Removed.
1359 * pt-accept.c: Removed.
1360 * pt-close.c: Removed.
1361 * pt-connect.c: Removed.
1362 * pt-lseek64.c: Removed.
1363 * pt-sendmsg.c: Removed.
1364 * pt-tcdrain.c: Removed.
1365
6ee8d334
UD
13662002-12-15 Ulrich Drepper <drepper@redhat.com>
1367
81fa9371
UD
1368 * init.c (__pthread_initialize_minimal_internal): Renamed from
1369 __pthread_initialize_minimal. Make old name an alias. This
1370 converts a normal relocation into a relative relocation.
1371
f3015aa5
UD
1372 * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
1373
4cbc1950
UD
1374 * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
1375 readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
1376 * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
1377 pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
1378 pt-sigwaitinfo, pt-waitid, and pt-writev.
1379 * pt-creat.c: Removed.
1380 * pt-poll.c: Removed.
1381 * pt-pselect.c: Removed.
1382 * pt-readv.c: Removed.
1383 * pt-select.c: Removed.
1384 * pt-sigpause.c: Removed.
1385 * pt-sigsuspend.c: Removed.
1386 * pt-sigwaitinfo.c: Removed.
1387 * pt-waitid.c: Removed.
1388 * pt-writev.c: Removed.
1389
8454830b
UD
1390 * init.c (pthread_functions): New variable.
1391 (__pthread_initialize_minimal): Pass pointer to pthread_functions
1392 (or NULL) to __libc_pthread_init.
1393 * forward.c: Rewrite to use __libc:pthread_functions array to get
1394 function addresses.
1395 * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
1396 prototype.
1397 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
1398 Take new parameter. Copy content of variable pointed to by it
1399 to __libc_pthread_init.
1400
1401 * pthreadP.h (struct pthread_functions): New type.
1402 (__libc_pthread_init): Declare.
1403
1404 * pthread_attr_destroy.c: Add namespace protected alias.
1405 * pthread_attr_getdetachstate.c: Likewise.
1406 * pthread_attr_getinheritsched.c: Likewise.
1407 * pthread_attr_getschedparam.c: Likewise.
1408 * pthread_attr_getschedpolicy.c: Likewise.
1409 * pthread_attr_getscope.c: Likewise.
1410 * pthread_attr_setdetachstate.c: Likewise.
1411 * pthread_attr_setinheritsched.c: Likewise.
1412 * pthread_attr_setschedparam.c: Likewise.
1413 * pthread_attr_setschedpolicy.c: Likewise.
1414 * pthread_attr_setscope.c: Likewise.
1415 * pthread_cond_broadcast.c: Likewise.
1416 * pthread_cond_destroy.c: Likewise.
1417 * pthread_cond_init.c: Likewise.
1418 * pthread_cond_signal.c: Likewise.
1419 * pthread_cond_wait.c: Likewise.
1420 * pthread_condattr_destroy.c: Likewise.
1421 * pthread_condattr_init.c: Likewise.
1422 * pthread_equal.c: Likewise.
1423 * pthread_exit.c: Likewise.
1424 * pthread_getschedparam.c: Likewise.
1425 * pthread_self.c: Likewise.
1426 * pthread_setcancelstate.c: Likewise.
1427 * pthread_setschedparam.c: Likewise.
1428 * pthread_mutex_destroy.c: Likewise.
1429 * pthread_mutex_init.c: Likewise.
1430 * pthreadP.h: Add prototypes for the aliases.
1431
0d5f4929
UD
1432 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
1433 multiple_threads member in correct TCB to 1.
1434
6ee8d334
UD
1435 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
1436 SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
1437 member of thread decriptor, otherwise return unconditionally 1.
1438
2fb6444d
UD
14392002-12-14 Ulrich Drepper <drepper@redhat.com>
1440
1441 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
1442 regular Linux version. Remove file.
1443 * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
1444 * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
1445 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
1446 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
1447 * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
1448 * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
1449 * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
1450 * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
1451 * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
1452 * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
1453 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
1454 * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
1455 * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
1456 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
1457 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
1458 * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
1459 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
1460 * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
1461 * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
1462 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
1463 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
1464 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
1465 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
1466 * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
1467 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
1468 * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
1469 * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
1470 * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
1471 * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
1472 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
1473
86b2dc40
UD
14742002-12-14 Jakub Jelinek <jakub@redhat.com>
1475
1476 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
1477 * sysdeps/unix/sysv/linux/open.c: Removed.
1478 * sysdeps/unix/sysv/linux/fsync.c: Removed.
1479 * sysdeps/unix/sysv/linux/lseek.c: Removed.
1480 * sysdeps/unix/sysv/linux/msync.c: Removed.
1481 * sysdeps/unix/sysv/linux/read.c: Removed.
1482 * sysdeps/unix/sysv/linux/close.c: Removed.
1483 * sysdeps/unix/sysv/linux/creat.c: Removed.
1484 * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
1485 * sysdeps/unix/sysv/linux/pause.c: Removed.
1486 * sysdeps/unix/sysv/linux/select.c: Removed.
1487 * sysdeps/unix/sysv/linux/write.c: Removed.
1488
9d263d72
UD
14892002-12-14 Ulrich Drepper <drepper@redhat.com>
1490
1491 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
1492 element in TCB to see whether locking is needed.
1493
1494 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
1495 MULTIPLE_THREADS_OFFSET value is correct.
1496
1497 * sysdeps/unix/sysv/linux/close.c: New file.
1498 * sysdeps/unix/sysv/linux/connect.S: New file.
1499 * sysdeps/unix/sysv/linux/creat.c: New file.
1500 * sysdeps/unix/sysv/linux/fsync.c: New file.
1501 * sysdeps/unix/sysv/linux/llseek.c: New file.
1502 * sysdeps/unix/sysv/linux/lseek.c: New file.
1503 * sysdeps/unix/sysv/linux/msgrcv.c: New file.
1504 * sysdeps/unix/sysv/linux/msgsnd.c: New file.
1505 * sysdeps/unix/sysv/linux/msync.c: New file.
1506 * sysdeps/unix/sysv/linux/nanosleep.c: New file.
1507 * sysdeps/unix/sysv/linux/open.c: New file.
1508 * sysdeps/unix/sysv/linux/open64.c: New file.
1509 * sysdeps/unix/sysv/linux/pause.c: New file.
1510 * sysdeps/unix/sysv/linux/poll.c: New file.
1511 * sysdeps/unix/sysv/linux/pread.c: New file.
1512 * sysdeps/unix/sysv/linux/pread64.c: New file.
1513 * sysdeps/unix/sysv/linux/pselect.c: New file.
1514 * sysdeps/unix/sysv/linux/pwrite.c: New file.
1515 * sysdeps/unix/sysv/linux/pwrite64.c: New file.
1516 * sysdeps/unix/sysv/linux/readv.c: New file.
1517 * sysdeps/unix/sysv/linux/recv.S: New file.
1518 * sysdeps/unix/sysv/linux/recvfrom.S: New file.
1519 * sysdeps/unix/sysv/linux/recvmsg.S: New file.
1520 * sysdeps/unix/sysv/linux/select.c: New file.
1521 * sysdeps/unix/sysv/linux/send.S: New file.
1522 * sysdeps/unix/sysv/linux/sendmsg.S: New file.
1523 * sysdeps/unix/sysv/linux/sendto.S: New file.
1524 * sysdeps/unix/sysv/linux/sigpause.c: New file.
1525 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
1526 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
1527 * sysdeps/unix/sysv/linux/sigwait.c: New file.
1528 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
1529 * sysdeps/unix/sysv/linux/system.c: New file.
1530 * sysdeps/unix/sysv/linux/tcdrain.c: New file.
1531 * sysdeps/unix/sysv/linux/wait.c: New file.
1532 * sysdeps/unix/sysv/linux/waitid.c: New file.
1533 * sysdeps/unix/sysv/linux/waitpid.c: New file.
1534 * sysdeps/unix/sysv/linux/writev.c: New file.
1535 * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
1536
1537 * pt-readv.c: Fix comment.
1538
15392002-12-14 Jakub Jelinek <jakub@redhat.com>
1540
1541 * tst-cleanup1.c: Include stdlib.h.
1542
1543 * tst-cancel5.c: New test.
1544 * Makefile (tests): Add tst-cancel5.
1545 (tst-cancel5): Link against libc.so libpthread.so in that order.
1546
9ae0909b
UD
15472002-12-13 Ulrich Drepper <drepper@redhat.com>
1548
b7bdd9c4
UD
1549 * forward.c (test_loaded): Prevent recursive calls.
1550
9ae0909b
UD
1551 * Makefile (routines): Add libc-cancellation.
1552 * libc-cancellation.c: New file.
1553 * descr.h (struct pthread): Add multiple_threads field.
1554 * allocatestack.c (allocate_stack): Initialize multiple_header field of
1555 new thread descriptor to 1.
1556 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
1557 Initialize multiple_thread field after successful thread creation.
1558 * cancellation.c (__do_cancel): Move to pthreadP.h.
1559 (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
1560 (__pthread_disable_asynccancel): Add internal_function attribute.
1561 * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
1562 * pthread_setcancelstate.c: Likewise.
1563 * pthread_setcanceltype.c: Likewise.
1564 * pthread_exit.c: Likewise.
1565 * pthreadP.h (CANCELLATION_P): Likewise.
1566 (__do_cancel): Define as static inline.
1567 (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
1568 (__libc_enable_asynccancel, __libc_disable_asynccancel): New
1569 declarations.
1570 * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
1571 fields. Define MULTIPLE_THREADS_OFFSET.
1572 * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
1573 declaration.
1574 * sysdeps/unix/sysv/linux/accept.S: New file.
1575 * sysdeps/unix/sysv/linux/read.c: New file.
1576 * sysdeps/unix/sysv/linux/write.c: New file.
1577 * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
1578 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
1579 initialization of __libc_locking_needed.
1580 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
1581 __libc_locking_needed, use multiple_threads field in TCB.
1582 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
1583
22f20674
UD
15842002-12-12 Ulrich Drepper <drepper@redhat.com>
1585
2ad2e1e7
UD
1586 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
1587 version.
1588 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
1589
22f20674
UD
1590 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
1591 access to __libc_locking_needed for PIC.
1592
aa80bf86
UD
15932002-12-12 Jakub Jelinek <jakub@redhat.com>
1594
1595 * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
1596 declare for libc.so.
1597 (__libc_lock_init, __libc_lock_init_recursive): Change into comma
1598 expression.
1599 (__libc_lock_lock): Put into statement expression.
1600 (__libc_lock_unlock): Remove trailing semicolon.
1601 * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
1602
24021373
RM
16032002-12-12 Roland McGrath <roland@redhat.com>
1604
1605 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
1606 "m" constraint to refer to __libc_locking_needed. Declare it here.
1607
14e7aece
UD
16082002-12-12 Ulrich Drepper <drepper@redhat.com>
1609
1610 * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
1611 * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
1612 Initialize __libc_locking_needed.
1613 * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
1614 instead of __register_pthread_fork_handler.
1615 * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
1616 * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
1617 fork-gen with libc_pthread_init.
1618 * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
1619 of __register_pthread_fork_handler.
1620 * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
1621 of __register_pthread_fork_handler.
1622 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
1623 __libc_locking_needed to determine whether lock prefix can be avoided.
1624 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
1625
85631c8e
UD
16262002-12-11 Ulrich Drepper <drepper@redhat.com>
1627
da63009e
UD
1628 * Makefile (tests): Add tst-cleanup1.
1629 * tst-cleanup1.c: New file.
1630 * cancellation.c (__cleanup_thread): Removed.
1631 (__do_cancel): Remove call to __cleanup_thread.
1632 * pthreadP.h: Remove __cleanup_thread prorotype.
1633
000160a2
UD
1634 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
1635 Remember function and argument even if cancellation handler
1636 function is not available.
1637 (__libc_cleanup_region_end): Execute registered function directly if
1638 pthread functions are not available.
1639 (__libc_cleanup_end): Likewise.
1640
85631c8e
UD
1641 * init.c (__pthread_initialize_minimal): Fix initialization in
1642 static lib by preventing gcc from being too clever.
1643
dce8f2b6
UD
16442002-12-10 Ulrich Drepper <drepper@redhat.com>
1645
34a075be
UD
1646 * init.c (__pthread_initialize_minimal): Remove unneccesary
1647 sigaddset call.
1648
dce8f2b6
UD
1649 * Makefile (tests): We can run tst-locale2 now.
1650
e5e45b53
UD
16512002-12-09 Ulrich Drepper <drepper@redhat.com>
1652
1653 * Versions: Remove duplicated sigwait entry.
1654
bdb04f92
UD
16552002-12-08 Ulrich Drepper <drepper@redhat.com>
1656
1e506629
UD
1657 * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
1658 inside libpthread.
1659
a3957dd5
UD
1660 * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
1661
bdb04f92
UD
1662 * pthreadP.h: Declare __pthread_enable_asynccancel and
1663 __pthread_disable_asynccancel.
1664 (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
1665 (CANCEL_RESET): Use __pthread_disable_asynccancel.
1666 * cancellation.c (__pthread_enable_asynccancel): New function.
1667 (__pthread_disable_asynccancel): New function.
1668 * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
1669 * pt-close.c: Likewise.
1670 * pt-connect.c: Likewise.
1671 * pt-creat.c: Likewise.
1672 * pt-fcntl.c: Likewise.
1673 * pt-fsync.c: Likewise.
1674 * pt-lseek.c: Likewise.
1675 * pt-lseek64.c: Likewise.
1676 * pt-msgrcv.c: Likewise.
1677 * pt-msgsnd.c: Likewise.
1678 * pt-msync.c: Likewise.
1679 * pt-nanosleep.c: Likewise.
1680 * pt-open.c: Likewise.
1681 * pt-open64.c: Likewise.
1682 * pt-pause.c: Likewise.
1683 * pt-poll.c: Likewise.
1684 * pt-pread.c: Likewise.
1685 * pt-pread64.c: Likewise.
1686 * pt-pselect.c: Likewise.
1687 * pt-pwrite.c: Likewise.
1688 * pt-pwrite64.c: Likewise.
1689 * pt-read.c: Likewise.
1690 * pt-readv.c: Likewise.
1691 * pt-recv.c: Likewise.
1692 * pt-recvfrom.c: Likewise.
1693 * pt-recvmsg.c: Likewise.
1694 * pt-select.c: Likewise.
1695 * pt-send.c: Likewise.
1696 * pt-sendmsg.c: Likewise.
1697 * pt-sendto.c: Likewise.
1698 * pt-sigpause.c: Likewise.
1699 * pt-sigsuspend.c: Likewise.
1700 * pt-sigtimedwait.c: Likewise.
1701 * pt-sigwait.c: Likewise.
1702 * pt-sigwaitinfo.c: Likewise.
1703 * pt-system.c: Likewise.
1704 * pt-tcdrain.c: Likewise.
1705 * pt-wait.c: Likewise.
1706 * pt-waitid.c: Likewise.
1707 * pt-waitpid.c: Likewise.
1708 * pt-write.c: Likewise.
1709 * pt-writev.c: Likewise.
a3957dd5
UD
1710 * pthread_join.c: Likewise.
1711 * pthread_timedjoin.c: Likewise.
bdb04f92
UD
1712
1713 * pt-sigpause.c (sigsuspend): Call __sigsuspend.
1714 (__xpg_sigpause): New function.
1715 * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
1716
6ccb3834
UD
17172002-12-07 Ulrich Drepper <drepper@redhat.com>
1718
09efc3ba
UD
1719 * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
1720
1721 * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
1722 _GI_pthread_cleanup_pop to pthreadP.h.
1723
1724 * ftrylockfile.c: Use _IO_lock_trylock instead of
1725 pthread_mutex_trylock.
1726
1727 * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
1728 (CANCEL_RESET): Likewise.
1729 (__pthread_setcanceltype_): Declare.
1730 (__pthread_mutex_lock_internal): Declare.
1731 (__pthread_mutex_unlock_internal): Declare.
1732 (__pthread_once_internal): Declare.
1733 (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
1734 (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
1735
1736 * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
1737 and pthread_mutex_unlock.
1738 * pthread_cond_wait.c: Likewise.
1739 * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
1740 * pthread_mutex_unlock.c: Likewise.
1741
1742 * pthread_setcanceltype.c: Add additional alias
1743 __pthread_setcanceltype.
1744
1745 * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
1746 * sem_open.c (sem_open): Likewise.
1747 Use __libc_open, __libc_write, and __libc_close instead of
1748 open, write, and close respectively.
1749
1750 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
1751 Rewrite as statement expression since it must return a value.
1752
1753 * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
1754 * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
1755 __pthread_kill.
1756
1757 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
1758 alias __pthread_once_internal.
1759
6ccb3834
UD
1760 * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
1761
d3c9f895
UD
17622002-12-06 Ulrich Drepper <drepper@redhat.com>
1763
4614167a
UD
1764 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
1765 * tst-stdio1.c: New file.
1766 * tst-stdio2.c: New file.
1767
a4548cea
UD
1768 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
1769
d3c9f895
UD
1770 * Makefile (tests): Comment out tst-locale2 for now.
1771 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
1772
1773 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
1774 -D_IO_MTSAFE_IO.
1775 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
1776 Use _IO_lock_init instead of explicit assignment.
1777
1778 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
1779 Define __libc_lock_* and __libc_lock_recursive macros with
1780 lowlevellock macros, not pthread mutexes.
1781
1782 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
1783 of pthread_mutex_lock.
1784 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
1785 instead of pthread_mutex_unlock.
1786
fde89ad0
RM
17872002-12-06 Roland McGrath <roland@redhat.com>
1788
1789 * allocatestack.c (__stack_user): Use uninitialized defn.
1790 * init.c (__pthread_initialize_minimal): Initialize it here.
1791
11767d47
RM
17922002-12-05 Roland McGrath <roland@redhat.com>
1793
fde89ad0
RM
1794 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
1795 string.
1796 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
1797
11767d47
RM
1798 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
1799 missing & here too.
1800
440d8bc2
UD
18012002-12-05 Ulrich Drepper <drepper@redhat.com>
1802
1803 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1804 lowlevellock.
1805 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
1806 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
1807 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
1808 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
1809 for __libc_lock_* macros.
1810 * Makefile (routines): Add libc-lowlevellock.
1811
18122002-10-09 Roland McGrath <roland@redhat.com>
1813
1814 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
1815 Under [__PIC__], call the function via the pointer fetched for
1816 comparison rather than a call by name that uses the PLT.
1817 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
1818 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
1819 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
1820 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
1821 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
1822
d5ed0118
RM
18232002-12-04 Roland McGrath <roland@redhat.com>
1824
1825 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
1826
1827 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
1828 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
1829
1830 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
1831
eaa4099f
UD
18322002-12-04 Ulrich Drepper <drepper@redhat.com>
1833
1834 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
1835 a completely opaque, non-integer type.
1836 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
1837
33b5d0cc
UD
18382002-12-05 Jakub Jelinek <jakub@redhat.com>
1839
1840 * sysdeps/i386/tls.h: Include stdlib.h.
1841 * sysdeps/x86_64/tls.h: Likewise.
1842
7a5cdb30
UD
18432002-12-04 Ulrich Drepper <drepper@redhat.com>
1844
c4a6d859
UD
1845 * Makefile (tests): Add tst-locale2.
1846 (tests-static): Likewise.
1847 * tst-locale2.c: New file.
1848
7a5cdb30
UD
1849 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
1850 volatile and add memory clobbers to lock operations.
1851
d82d5d12
UD
18522002-12-03 Ulrich Drepper <drepper@redhat.com>
1853
69cae3cf
UD
1854 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
1855 * sysdeps/i386/i486/bits/atomic.h: New file.
1856 * sysdeps/i386/i586/bits/atomic.h: New file.
1857 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
1858 include i486 version.
1859 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
1860 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
c97c64de 1861 Patch by Marijn Ros <marijn@mad.scientist.com>.
69cae3cf 1862
e4044c01
UD
1863 * allocatestack.c (get_cached_stack): Don't crash if we first
1864 found a stack with a larger size then needed.
1865 Reported by Hui Huang <hui.huang@sun.com>.
1866
d82d5d12
UD
1867 * Makefile (tests): Add tst-sysconf.
1868 * tst-sysconf.c: New file.
1869
1870 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
1871 PTHREAD_THREADS_MAX.
1872
fa9a4ff0
RM
18732002-12-02 Roland McGrath <roland@redhat.com>
1874
1875 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
1876 Declare using hidden_proto instead of attribute_hidden, so there are
1877 non-.hidden static symbols for gdb to find.
1878 (__pthread_keys): Likewise.
1879 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
1880 * allocatestack.c (__stack_user): Likewise.
1881 * pthread_create.c (__pthread_keys): Likewise.
1882 (__nptl_threads_events, __nptl_last_event): Make these static instead
1883 of hidden.
1884 * pthread_key_create.c (__pthread_pthread_keys_max,
1885 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
1886
91949a33
UD
18872002-12-02 Ulrich Drepper <drepper@redhat.com>
1888
c22b52fa
UD
1889 * Makefile (tests): Add tst-locale1. If buid-static is yes link
1890 statically.
1891 * tst-locale1.c: New file.
1892
beb6aa41
UD
1893 * pthread_cond_timedwait.c: Include <stdlib.h>.
1894
91949a33
UD
1895 * Makefile (tests): Add tst-fork2 and tst-fork3.
1896 * tst-fork2.c: New file.
1897 * tst-fork3.c: New file.
1898
654dff90
UD
18992002-11-28 Ulrich Drepper <drepper@redhat.com>
1900
cb0e76b4
UD
1901 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
1902
1903 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
1904 require it to 200112L.
1905
1906 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
1907 instruction only if HAVE_CMOV is defined.
1908 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
1909
975aa229
UD
1910 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
1911
654dff90
UD
1912 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
1913
1914 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
1915
1916 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
1917
a3931336
UD
19182002-11-27 Ulrich Drepper <drepper@redhat.com>
1919
c10c099c
UD
1920 * sysdeps/x86_64/bits/atomic.h: New file.
1921
1922 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
1923 16-bit operations.
1924
dca99d27
UD
1925 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
1926 possible since gettid cannot fail.
1927
f78deea6
UD
1928 * sysdeps/x86_64/pthreaddef.h: New file.
1929
1930 * sysdeps/i386/pthreaddef.h (gettid): Removed.
1931
1932 * sysdeps/x86_64/pthread_spin_init.c: New file.
1933 * sysdeps/x86_64/pthread_spin_lock.c: New file.
1934 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
1935 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
1936
1937 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
1938 Add missing lock prefix. Minute optimization.
1939
1940 * tst-spin2.c (main): Also check successful trylock call.
1941
1942 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
1943 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
1944
1945 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
1946 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
1947
1948 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
1949 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
1950 value in case of an error. Add support for INTERNAL_SYSCALL.
b54e18eb
UD
1951
1952 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
1953 value in case of an error.
1954
a3931336
UD
1955 * sysdeps/x86_64/tls.h: New file.
1956
76a50749
UD
19572002-11-26 Ulrich Drepper <drepper@redhat.com>
1958
117c452c
UD
1959 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
1960 takes the array member name and the index as parameters.
1961 (THREAD_SETMEM_NC): Likewise.
1962 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
1963 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
1964 interfaces.
1965
1966 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
1967 to decide which code to use.
1968 (THREAD_SETMEM_NC): Likewise.
1969
76a50749
UD
1970 * allocatestack.c (queue_stack): Don't remove stack from list here.
1971 Do it in the caller. Correct condition to prematurely terminate
1972 loop to free stacks.
1973 (__deallocate_stack): Remove stack from list here.
1974
19752002-11-26 Ulrich Drepper <drepper@redhat.com>
1976
1977 * Makefile (tests): Add tst-stack1.
1978 * tst-stack1.c: New file.
1979
1980 * allocatestack.c (allocate_stack): Initialize the TCB on a user
1981 provided stack.
1982
1983 * pthread_attr_getstack.c: Return bottom of the thread area.
1984
19852002-11-25 Ulrich Drepper <drepper@redhat.com>
1986
1987 * Makefile (libpthread-routines): Add pt-allocrtsig and
1988 pthread_kill_other_threads.
1989 * pt-allocrtsig.c: New file.
1990 * pthread_kill_other_threads.c: New file.
1991 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
1992 all three functions.
1993 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1994 allocrtsig.
1995 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
1996 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
1997 and __libc_allocate_rtsig_private.
1998 * Versions (libpthread): Export pthread_kill_other_threads_np,
1999 __libc_current_sigrtmin, and __libc_current_sigrtmax.
2000
20012002-11-24 Ulrich Drepper <drepper@redhat.com>
2002
2003 * allocatestack.c (allocate_stack): stackaddr in attribute points to
2004 the end of the stack. Adjust computations.
2005 When mprotect call fails dequeue stack and free it.
2006 * pthread_attr_setstack.c: Store top of the stack in stackaddr
2007 attribute.
2008 * pthread_getattr_np.c: Likewise.
2009
2010 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
2011 surprises.
2012
20132002-11-23 Ulrich Drepper <drepper@redhat.com>
2014
2015 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
2016 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
2017
20182002-11-22 Ulrich Drepper <drepper@redhat.com>
2019
2020 * pthread_getspecific.c: Optimize access to first 2nd-level array.
2021 * pthread_setspecific.c: Likewise.
2022
20232002-11-21 Ulrich Drepper <drepper@redhat.com>
2024
2025 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
2026 definitions. Get them from the official place.
2027 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
2028
2029 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
2030 Use new CLONE_ flags in clone() calls.
2031
2032 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
2033 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
2034
2035 * Versions: Add pthread_* functions for libc.
2036 * forward.c: New file.
2037
2038 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
2039 errno-loc.
2040 * herrno.c: New file.
2041 * res.c: New file.
2042
2043 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
2044 sem_trywait, and sem_timedwait. Add herrno and res.
2045 * sem_init.c: Don't initialize lock and waiters members.
2046 * sem_open.c: Likewise.
2047 * sem_post.c: Removed.
2048 * sem_wait.c: Removed.
2049 * sem_trywait.c: Removed.
2050 * sem_timedwait.c: Removed.
2051 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
2052 Includes full implementations of sem_post, sem_wait, sem_trywait,
2053 and sem_timedwait.
2054 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
2055 for new implementation.
2056 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
2057 and waiters fields.
2058
2059 * tst-sem3.c: Improve error message.
2060 * tst-signal3.c: Likewise.
2061
2062 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
2063 to tell the kernel about the termination futex and to initialize tid
2064 member. Don't initialize main_thread.
2065 * descr.h (struct pthread): Remove main_thread member.
2066 * cancelllation.c (__do_cancel): Remove code handling main thread.
2067 The main thread is not special anymore.
2068
2069 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
2070 size of the stacks to stack_cache_actsize.
2071
2072 * pt-readv.c: Add missing "defined".
2073 * pt-sigwait.c: Likewise.
2074 * pt-writev.c: Likewise.
2075
20762002-11-09 Ulrich Drepper <drepper@redhat.com>
2077
2078 * Versions: Export __connect from libpthread.
2079 Patch by Luca Barbieri <ldb@ldb.ods.org>.
2080
2081 * Makefile (libpthread-routines): Add pt-raise.
2082 * sysdeps/unix/sysv/linux/raise.c: New file.
2083 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
2084 * sysdeps/generic/pt-raise.c: New file.
2085
2086 * pthread_cond_init.c: Initialize all data elements of the condvar
2087 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
2088
2089 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
2090 * pthread_create.c: Likewise.
2091
2092 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
2093 * tst-key1.c: New file.
2094 * tst-key2.c: New file.
2095 * tst-key3.c: New file.
2096
2097 * Versions: Export pthread_detach for version GLIBC_2.0.
2098 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
2099
21002002-11-08 Ulrich Drepper <drepper@redhat.com>
2101
2102 * pthread_key_create.c: Terminate search after an unused key was found.
2103 Patch by Luca Barbieri <ldb@ldb.ods.org>.
2104
2105 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
2106 Patch by Luca Barbieri <ldb@ldb.ods.org>.
2107
21082002-10-10 Ulrich Drepper <drepper@redhat.com>
2109
2110 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
2111 dynamic lookup for errno in PIC.
2112
2113 * allocatestack.c (get_cached_stack): Rearrange code slightly to
2114 release the stack lock as soon as possible.
2115 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
2116 the static TLS block.
2117 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
2118
2119 * cancellation.c: Renamed from cancelation.c.
2120 * Makefile: Adjust accordingly.
2121 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
2122 * cleanup_defer.c: Use CANCELLATION_P.
2123 * pthread_testcancel.c: Likewise.
2124 * descr.h: Fix spelling in comments.
2125 * init.c: Likewise.
2126 * pthread_getattr_np.c: Likewise.
2127 * pthread_getschedparam.c: Likewise.
2128 * pthread_setschedparam.c: Likewise.
2129 * Versions: Likewise.
2130
2131 * pt-pselect.c: New file.
2132 * Makefile (libpthread-routines): Add pt-pselect.
2133 * Versions: Add pselect.
2134
2135 * tst-cancel4.c: New file.
2136 * Makefile (tests): Add tst-cancel4.
2137
21382002-10-09 Ulrich Drepper <drepper@redhat.com>
2139
2140 * pthread_mutex_lock.c: Always record lock ownership.
2141 * pthread_mutex_timedlock.c: Likewise.
2142 * pthread_mutex_trylock.c: Likewise.
2143
2144 * pt-readv.c: New file.
2145 * pt-writev.c: New file.
2146 * pt-creat.c: New file.
2147 * pt-msgrcv.c: New file.
2148 * pt-msgsnd.c: New file.
2149 * pt-poll.c: New file.
2150 * pt-select.c: New file.
2151 * pt-sigpause.c: New file.
2152 * pt-sigsuspend.c: New file.
2153 * pt-sigwait.c: New file.
2154 * pt-sigwaitinfo.c: New file.
2155 * pt-waitid.c: New file.
2156 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
2157 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
2158 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
2159 * Versions: Add all the new functions.
2160
2161 * tst-exit1.c: New file.
2162 * Makefile (tests): Add tst-exit1.
2163
2164 * sem_timedwait.c: Minor optimization for more optimal fastpath.
2165
21662002-10-08 Ulrich Drepper <drepper@redhat.com>
2167
2168 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
2169
2170 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
2171 call. pthread_join is an official cancellation point.
2172 * pthread_timedjoin.c: Likewise.
2173
2174 * pthread_cond_wait.c: Revert order in which internal lock are dropped
2175 and the condvar's mutex are retrieved.
2176 * pthread_cond_timedwait.c: Likewise.
2177 Reported by dice@saros.East.Sun.COM.
2178
21792002-10-07 Ulrich Drepper <drepper@redhat.com>
2180
2181 * pthreadP.h: Cut out all type definitions and move them...
2182 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
2183 * pthreadP.h: Include <internaltypes.h>.
2184
2185 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
2186 performance tweaks.
2187
2188 * sem_trywait.c: Shuffle #includes around to get right order.
2189 * sem_timedwait.c: Likewise.
2190 * sem_post.c: Likewise.
2191 * sem_wait.c: Likewise.
2192
2193 * nptl 0.3 released.
2194
2195 * Makefile (tests): Add tst-signal3.
2196 * tst-signal3.c: New file.
2197
21982002-10-05 Ulrich Drepper <drepper@redhat.com>
2199
2200 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
2201 the asms modify the sem object.
2202 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
2203
2204 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
2205 the actual members.
2206 * pthreadP.h (struct sem): New type. Actual semaphore type.
2207 * semaphoreP.h: Include pthreadP.h.
2208 * sem_getvalue.c: Adjust to sem_t change.
2209 * sem_init.c: Likewise.
2210 * sem_open.c: Likewise.
2211 * sem_post.c: Likewise.
2212 * sem_timedwait.c: Likewise.
2213 * sem_trywait.c: Likewise.
2214 * sem_wait.c: Likewise.
2215
22162002-10-04 Ulrich Drepper <drepper@redhat.com>
2217
2218 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
2219 * tst-basic2.c: New file.
2220 * tst-exec1.c: New file.
2221 * tst-exec2.c: New file.
2222 * tst-exec3.c: New file.
2223
2224 * tst-fork1.c: Remove extra */.
2225
2226 * nptl 0.2 released. The API for IA-32 is complete.
This page took 0.298978 seconds and 5 git commands to generate.