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