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