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