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