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