]> sourceware.org Git - glibc.git/blame - nptl/ChangeLog
Update.
[glibc.git] / nptl / ChangeLog
CommitLineData
42b2395d
UD
12003-03-31 Ulrich Drepper <drepper@redhat.com>
2
3 * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called
4 function correctly.
5
163b180f
UD
62003-03-30 Ulrich Drepper <drepper@redhat.com>
7
8 * descr.h (struct pthread): Move most often used elements to the front.
9
ea473bad
UD
102003-03-29 Ulrich Drepper <drepper@redhat.com>
11
12 * Makefile (libpthread-routines): Add pthread_atfork.
13 (libpthread-static-only-routines): Add pthread_atfork.
14
dd731d53
UD
152003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
16
17 * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
18 of TLS_DTV_AT_TP.
19 (INSTALL_DTV): Add parens.
20 (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC):
21 Use passed descr instead of THREAD_SELF.
22 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S
23 (__lll_mutex_timedlock_wait): Correct expected value after
24 spurious wakeup.
25 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S:
26 Release lock before waking up the waiters.
27 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit
28 criteria. Reorderstruct passed to cleanup handler. Fix
29 handling of cancellation and failung pthread_mutex_unlock call.
30 Use __pthread_enable_asynccancel_2 instead of
31 __pthread_enable_asynccancel.
32 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
33 Return result of lock re-get if it fails.
34 * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument
35 for __pthread_cleanup_push.
36 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix
37 completely broken rwlock implementation.
38 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
39 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
40 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
41 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
42 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
43 * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use
44 versioned_symbol macro.
45 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro.
46 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
47
c75d02f0
UD
482003-03-27 Ulrich Drepper <drepper@redhat.com>
49
5f5004df
UD
50 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare
51 __timer_helper_thread. Declare __start_helper_thread, __helper_once,
52 and __helper_tid.
53 (struct timer): Remove th and bar field.
54 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove
55 debugging code. Create only one helper thread.
56 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill
57 helper thread.
58 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
59 Renamed. Define statically. Use thread info from siginfo.
60 (__helper_once): New variable.
61 (__helper_tid): New variable.
62 (__reset_helper_control): New function.
63 (__start_helper_thread): New function.
64
18d009ca
UD
65 * pthread_create.c (start_thread): Don't use setjmp inside
66 __builtin_expect to work around gcc bug.
67
c75d02f0
UD
68 * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
69 timer_delete syscall fails, but not with ENOSYS, set
70 __no_posix_timers.
71
72 * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
73 (timer_settime): Fix typo.
28cf3058
UD
74 * sysdeps/unix/sysv/linux/timer_getoverr.c
75 [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise.
c75d02f0 76
049ac259
JJ
772003-03-27 Jakub Jelinek <jakub@redhat.com>
78
79 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
80 offset of cleanupbuf.__prev.
81
f93d39dd
JJ
822003-03-26 Jakub Jelinek <jakub@redhat.com>
83
84 * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
85 of included file.
86
f064e4c5
UD
872003-03-26 Ulrich Drepper <drepper@redhat.com>
88
89 * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP ==
90 NULL provide default definition to syscall.
91
83e886a3
RM
922003-03-25 Roland McGrath <roland@redhat.com>
93
94 * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
95 (timer_id2ptr): Fix typo.
96
09402f5b
UD
972003-03-25 Ulrich Drepper <drepper@redhat.com>
98
99 * pthreadP.h: Define SIGCANCEL and SIGTIMER.
100 * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition.
101 * sysdeps/ia64/pthreaddef.h: Likewise.
102 * sysdeps/powerpc/pthreaddef.h: Likewise.
103 * sysdeps/s390/pthreaddef.h: Likewise.
104 * sysdeps/sh/pthreaddef.h: Likewise.
105 * sysdeps/x86_64/pthreaddef.h: Likewise.
106 * init.c (__pthread_initialize_minimal): Block SIGTIMER.
107 * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from
108 being changed.
109 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
110 SIGTIMER is not unblocked.
111 * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more
112 RT signal taken.
113 * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to
114 be send.
115 * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just
116 pass pointer through as ID.
117 * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed.
118 * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file.
119 * sysdeps/unix/sysv/linux/timer_create.c: New file.
120 * sysdeps/unix/sysv/linux/timer_delete.c: New file.
121 * sysdeps/unix/sysv/linux/timer_getoverr.c: New file.
122 * sysdeps/unix/sysv/linux/timer_gettime.c: New file.
123 * sysdeps/unix/sysv/linux/timer_routines.c: New file.
124 * sysdeps/unix/sysv/linux/timer_settime.c: New file.
125 * sysdeps/unix/sysv/linux/ia64/Versions: New file.
126 * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file.
127 * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file.
128 * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file.
129 * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file.
130 * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file.
131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file.
132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file.
133 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file.
134 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file.
135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file.
136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file.
137 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
138 * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file.
139 * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file.
140 * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file.
141 * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file.
142 * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file.
143 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
144 * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file.
145 * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file.
146 * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file.
147 * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file.
148 * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file.
149 * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file.
150
151 * pthreadP.h: Remove FRAME_LEFT definition.
152 * cleanup.c (_pthread_cleanup_push): Don't check for reference to
153 already left frame. Programs which have this problem are not POSIX
154 compliant.
155 * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise.
156
5e826ab5
UD
1572003-03-24 Ulrich Drepper <drepper@redhat.com>
158
159 * sysdeps/pthread/tst-timer.c: Check return values of the
160 functions we test.
161
b910f788
RM
1622003-03-23 Roland McGrath <roland@redhat.com>
163
3045a1fe
RM
164 * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
165 * tst-tls3mod.c: Likewise.
166 * tst-tls1.c: Likewise.
167 * tst-tls2.c: Likewise.
168
85047fe3
RM
169 * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
170 undefined behavior.
171
b910f788
RM
172 * tst-join5.c (tf1, tf2): Add a cast.
173
174 * Makeconfig (includes): Append -I$(..)nptl to this variable.
175
176 * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
177 Don't test anything.
178 * tst-cond4.c: Likewise.
179 * tst-cond6.c: Likewise.
180 * tst-flock2.c: Likewise.
181 * tst-mutex4.c: Likewise.
182 * tst-rwlock4.c: Likewise.
183 * tst-signal1.c: Likewise.
184 * tst-spin2.c: Likewise.
185 * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.
186
187 * tst-mutex4.c: Use test-skeleton.c.
188 * tst-spin2.c: Likewise.
189 * tst-sysconf.c: Likewise.
190 * tst-barrier2.c: Likewise.
191 * tst-cond4.c: Likewise.
192 * tst-cond6.c: Likewise.
193 * tst-rwlock4.c: Likewise.
194 * tst-unload.c: Likewise.
195 * tst-flock2.c (do_test): Use return instead of exit.
196
4baa087a
RM
1972003-03-22 Jakub Jelinek <jakub@redhat.com>
198
199 * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
200
5a3ab2fc
UD
2012003-03-21 Ulrich Drepper <drepper@redhat.com>
202
9f07eae2
UD
203 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
204 (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq
205 instead of __lll_compare_and_swap.
206 * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
207 Likewise.
208 Removed definition if __lll_compare_and_swap.
209
5a3ab2fc
UD
210 * cancellation.c: Adjust for new form of compare&exchange macros.
211 * cleanup_defer.c: Likewise.
212 * init.c: Likewise.
213 * libc-cancellation.c: Likewise.
214 * old_pthread_cond_broadcast.c: Likewise.
215 * old_pthread_cond_signal.c: Likewise.
216 * old_pthread_cond_timedwait.c: Likewise.
217 * old_pthread_cond_wait.c: Likewise.
218 * pthread_cancel.c: Likewise.
219 * pthread_create.c: Likewise.
220 * pthread_detach.c: Likewise.
221 * pthread_join.c: Likewise.
222 * pthread_key_delete.c: Likewise.
223 * pthread_setcancelstate.c: Likewise.
224 * pthread_setcanceltype.c: Likewise.
225 * pthread_timedjoin.c: Likewise.
226 * pthread_tryjoin.c: Likewise.
227 * sysdeps/pthread/createthread.c: Likewise.
228
b1aea098
UD
2292003-03-20 Ulrich Drepper <drepper@redhat.com>
230
231 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
4baa087a 232 Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
b1aea098
UD
233 definitions. Replace uses with calls to atomic_* functions.
234 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
235 * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
236 __lll_test_and_set calls with atomic_exchange_and_add and
237 atomic_exchange calls respectively.
238 * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
239 * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
240 * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
241 * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
242 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
243 * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
244 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
245
246 * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
247 returns the old value.
248
100a7100
RM
2492003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com>
250
251 * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
252 int for variable OLDVAL and correct inline assembler contraint.
253 * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
254 type int for variable OLD.
255
256 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
257 only for s390-32.
258 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
259 (SINGLE_THREAD_P): Use global variable __local_multiple_threads
260 instead of multiple_threads field in the TCB.
261
95767b36
UD
2622003-03-19 Ulrich Drepper <drepper@redhat.com>
263
4009bf40
UD
264 * sysdeps/i386/i686/bits/atomic.h: Removed.
265 * sysdeps/i386/i586/bits/atomic.h: Removed.
266 * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc.
267 * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc.
268 * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc.
269 * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc.
270 * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc.
271 * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc.
272 * atomic.h: Removed. Moved to glibc.
273
560a784f
UD
274 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add
275 support for clock selection.
276
95767b36
UD
277 * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
278 signalling waiters.
279
043ad426
RM
2802003-03-18 Roland McGrath <roland@redhat.com>
281
94659495
RM
282 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
283 Add __lll_rel_instr first. Add memory clobber.
284 (lll_mutex_unlock): Use __lll_test_and_set.
285 From Paul Mackerras <paulus@samba.org>.
286
287 * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define
288 unconditionally.
289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
290 (SINGLE_THREAD_P): Add `header.' prefix.
291 From Paul Mackerras <paulus@samba.org>.
292
043ad426
RM
293 * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
294 pthread_timedjoin_np to ...
295 (libpthread: GLIBC_2.3.3): ... here.
296 (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
297
298 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
299 Avoid shadowing VAL variable.
300
301 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
302 New macro.
303
86a9ee5e
UD
3042003-03-18 Ulrich Drepper <drepper@redhat.com>
305
ac9e0aa1
UD
306 * Makefile (tests): Add tst-cond11.
307 * tst-cond11.c: New file.
308
a14b373c
UD
309 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder
310 struct passed to cleanup handler to eliminate one more
311 instruction.
312 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
313
24a49f38
UD
314 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
315 (pthrad_cond_t): Replace __unused field with __clock.
316
317 * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
318 waken all waiters in cleanup handler.
319 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
320 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
321
86a9ee5e
UD
322 * pthread_condattr_getclock.c: New file.
323 * pthread_condattr_setclock.c: New file.
324 * sysdeps/pthread/pthread.h: Declare these new functions.
325 * Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
326 * Makefile (libpthread-routines): Add the new functions.
327 * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
328 Renamed field to value. Document use of the bits.
329 * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
330 change.
331 * pthread_condattr_setpshared.c: Likewise.
d5cb8389 332 * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
86a9ee5e
UD
333 * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
334 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
335 Add __clock field.
336 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
337 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
338 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
339 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
340 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
341 Implement clock selection.
342 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
343 * pthread-errnos.sym: Add ENOSYS.
344 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
345 _POSIX_CLOCK_SELECTION.
346 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
347
348 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
349 invalid .size directive.
350
98054a05
RM
3512003-03-17 Roland McGrath <roland@redhat.com>
352
353 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
354 Formatting tweaks.
355
001bea71
UD
3562003-03-17 Ulrich Drepper <drepper@redhat.com>
357
4773086e
UD
358 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
359 Use __lll_add instead of spelling it out. Use protected symbol names.
360 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
361 Use __lll_add.
362 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
363 Renamed from lll_compare_and_swap. Use new name where necessary.
364 (__lll_add): Defined.
365 (__lll_dec_if_positive): Defined.
366 (__lll_test_and_set): Defined.
367 * sysdeps/ia64/pthread_spin_init.c: Removed.
368 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
369 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
370 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
371 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
372 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
373 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
374 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
001bea71
UD
375 * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
376 * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
377 __sync_lock_release_si.
378 Patch by Jakub Jelinek.
379
380 * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
381 Fix timeout handling.
382 (__lll_timedwait_tid): Likewise.
383 (lll_unlock_wake_cb): Wake up other waiters if necessary.
384 Patch by Jakub Jelinek.
385
386 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
387
de4471dd
RM
3882003-03-17 Roland McGrath <roland@redhat.com>
389
390 PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
391 * sysdeps/pthread/pthread_spin_init.c: New file.
392 * sysdeps/pthread/pthread_spin_unlock.c: New file.
393 * sysdeps/powerpc/Makefile: New file.
394 * sysdeps/powerpc/pthread_spin_lock.c: New file.
395 * sysdeps/powerpc/pthread_spin_trylock.c: New file.
396 * sysdeps/powerpc/pthreaddef.h: New file.
397 * sysdeps/powerpc/tcb-offsets.sym: New file.
398 * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
399 * sysdeps/powerpc/tls.h: New file.
400 * sysdeps/powerpc/bits/atomic.h: New file.
401 * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
402 * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
403 * sysdeps/unix/sysv/linux/lowlevellock.c: New file.
98054a05 404
de4471dd
RM
405 * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
406 * sysdeps/unix/sysv/linux/sem_post.c: New file.
407 * sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
408 * sysdeps/unix/sysv/linux/sem_trywait.c: New file.
409 * sysdeps/unix/sysv/linux/sem_wait.c: New file.
410 * sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
411 * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
412 * sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
413 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
414 * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
415 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
416 * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
417 * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
418 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.
420
421 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
422 not gettimeofday.
423 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
424 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
425 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
426 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
427 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
428
5778033f
UD
4292003-03-17 Ulrich Drepper <drepper@redhat.com>
430
431 * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria.
432 * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
433 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
434 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
435 Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>.
436
796038f8
RM
4372003-03-16 Roland McGrath <roland@redhat.com>
438
439 * tst-fork4.c: Include <string.h>.
440 * tst-signal2.c: Likewise.
441 * tst-mutex5.c (do_test): exit -> return.
442 * tst-mutex2.c: Include <stdlib.h>.
443
51d0678c
UD
4442003-03-16 Ulrich Drepper <drepper@redhat.com>
445
5778033f
UD
446 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
447 (__lll_mutex_timedlock_wait): Correct expected value after
448 spurious wakeup. Otherwise we would never wait again.
449
b6e2f87a
UD
450 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
451 zone versus inline asm stupidity. Use correct instructions.
452
51d0678c
UD
453 * tst-rwlock6.c: Add some more status output.
454
8112cc70
RM
4552003-03-15 Roland McGrath <roland@redhat.com>
456
457 * sysdeps/pthread/configure.in: New file.
458 * sysdeps/pthread/configure: New file (generated).
459
49773c19
UD
4602003-03-15 Ulrich Drepper <drepper@redhat.com>
461
462 * allocatestack.c (allocate_stack): Store the exact stack size of
463 user allocated stacks.
464
eec0ca9f
JJ
4652003-03-15 Jakub Jelinek <jakub@redhat.com>
466
467 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
468 (SINGLE_THREAD): Use `header' prefix instead of `header.data'.
469 * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
470 * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
471 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
472 Use `header.' prefix.
473 * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
474
a87731e2
UD
4752003-03-15 Ulrich Drepper <drepper@redhat.com>
476
477 * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
478 __builtin_frame_address, use stack pointer.
479
480 * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
481 instead of __builtin_frame_pointer.
482
e22a221d
UD
4832003-03-14 Ulrich Drepper <drepper@redhat.com>
484
92ed3daf
UD
485 * tst-basic1.c (do_test): Add cast to avoid warning.
486 * tst-basic2.c (do_test): Likewise.
487
9b89567d
UD
488 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
489 amount of stack correction.
490
e22a221d
UD
491 * tst-fork4.c: Use test-skeleton.c.
492
2e49caba
RM
4932003-03-14 Roland McGrath <roland@redhat.com>
494
495 * init.c: Fix typo "#eli" for "#else".
496
415ef7d8
RM
4972003-03-14 Steven Munroe <sjmunroe@us.ibm.com>
498
499 * allocatestack.c (__stack_user): Use hidden_data_def.
500 * pthread_create.c (__pthread_keys): Likewise.
501
502 * init.c [__powerpc__] (__NR_set_tid_address): Define it.
503
52287505
RM
5042003-03-14 Roland McGrath <roland@redhat.com>
505
415ef7d8
RM
506 * tst-fork4.c: New file.
507 * Makefile (tests): Add it.
508
52287505
RM
509 * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so
510 we always define the padding space.
511 [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC
512 stopped supporting its own extensions fully.
513 [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper
514 struct also called `header', so `header.multiple_threads' is the field
515 name to use on all machines.
516 * allocatestack.c (allocate_stack): Use `header.' prefix.
517 * sysdeps/pthread/createthread.c (create_thread): Likewise.
518 * pthread_create.c (__pthread_create_2_1): Likewise.
519 * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise.
520 (THREAD_SELF): Likewise.
521 * sysdeps/x86_64/tls.h: Likewise.
522 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
523 (SINGLE_THREAD_P): Likewise.
524 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
525 (SINGLE_THREAD_P): Likewise.
526 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
527 (SINGLE_THREAD_P): Likewise.
528
529 * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18]
530 value directly.
531
c44bf9aa
UD
5322003-03-14 Ulrich Drepper <drepper@redhat.com>
533
e22a221d
UD
534 * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
535 * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
536
0eb18281
UD
537 * pthread_create.c (start_thread): setjmp is expected to return 0.
538
c44bf9aa
UD
539 * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile.
540 (THREAD_GETMEM_NC): Likewise.
541
564cd8b6
UD
5422003-03-13 Ulrich Drepper <drepper@redhat.com>
543
544 * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined
545 and the size of the stack which must be allocated is a multiple,
546 allocate one more page.
547 * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but
548 MULTI_PAGE_ALIASING.
549
6461e577
RM
5502003-03-13 Roland McGrath <roland@redhat.com>
551
552 * pthread_create.c (start_thread): Set EXITING_BIT after the
553 event-reporting (and destructors), not before.
554
b5ec5617
UD
5552003-03-13 Jakub Jelinek <jakub@redhat.com>
556
6461e577
RM
557 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait,
558 lll_futex_wake): Declare register variables as long int instead of
559 unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
560 Make syscall arguments clobbered by the syscall.
561 (lll_futex_wait): Define using lll_futex_timed_wait.
562
563 * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13]
564 to void *.
565
566 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
567 PPID if [! NDEBUG].
568
569 * allocatestack.c (nptl_ncreated): Only declare if
570 COLORING_INCREMENT != 0.
571
572 * pthreadP.h (__pthread_enable_asynccancel_2): New prototype.
573 (__libc_enable_asynccancel_2): Remove prototype.
574
b5ec5617
UD
575 * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
576 ctid to match kernel.
577
d0369fb8
UD
5782003-03-12 Ulrich Drepper <drepper@redhat.com>
579
7588880f
UD
580 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
581 libc_multiple_threads.
582 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
583 __libc_multiple_threads to...
584 * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
585
586 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
587 versioning.
588 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
589 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
590
591 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
592 (__pthread_once_internal): Define.
593
594 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
595 macros instead of .symver directly.
596 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
597 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
598
d0369fb8
UD
599 * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
600 * sysdeps/x86_64/tcb-offsets.sym: New file.
601 * sysdeps/x86_64/Makefile: New file.
602
603 * sysdeps/i386/tcb-offsets.sym: Add SELF.
604 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
605 to access own pthread_t in TCB.
606 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
607 Likewise.
608 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
609 Likewise.
610 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
611
0bb2ac85
RM
6122003-03-12 Roland McGrath <roland@redhat.com>
613
614 * pthread-errnos.sym: New file.
615 * Makefile (gen-as-const-headers): New variable, list that file.
616 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
617 header <pthread-errnos.h> instead of defining errno values here.
618 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
619 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
620 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
621 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
622 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
623 Likewise.
624 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
625 Likewise.
626 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
627 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
628 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
629 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
630 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
631 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
632 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
633 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
634 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
635 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
636 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
637 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
638 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
639 * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
640 * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
641 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
642 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
643 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
644 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
645 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
646 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
647 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
648 * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
649 * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
650 * sysdeps/sh/pthread_spin_trylock.S: Likewise.
651 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
652 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
653
654 * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
655 CLONE_CHILD_SETTID worked.
656
35e148cb
UD
6572003-03-12 Ulrich Drepper <drepper@redhat.com>
658
d0369fb8
UD
659 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
660 file.
661 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
662 file.
663
664 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
665 (pthread_cond_t): Add padding.
666
da49194d
UD
667 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
668 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
669 * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
670
35e148cb
UD
671 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
672 (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
673 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
674 (__pthread_rwlock_timedrdlock): Likewise.
675 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
676 (__pthread_rwlock_wrlock): Likewise.
677 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
678 (__pthread_rwlock_rdlock): Likewise.
679
680 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
681
682 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
683 result of lock re-get if it fails.
684
3e976b96
UD
6852003-03-11 Ulrich Drepper <drepper@redhat.com>
686
5a03acfe
UD
687 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
688 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
689 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
690 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
691 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
692 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
693 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
694 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
695 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
696 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
697
698 * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
699 THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
700
701 * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
702 Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
703 * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
704 (create_thread): Likewise.
705 Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
706 * init.c (__pthread_initialize_minimal_internal): Initialize
707 __libc_multiple_threads_ptr if necessary.
708 * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
709 __pthread_multiple_threads and __libc_multiple_threads_ptr.
710 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
711 __libc_multiple_threads.
712 (__libc_pthread_init): Return pointer to __libc_pthread_init if
713 necessary.
714
715 * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
716 (THREAD_SETMEM_NC): Likewise.
717
718 * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
719 * sysdeps/x86_64/pthread_spin_trylock.S: New file.
720 * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
721 * sysdeps/x86_64/pthread_spin_unlock.S: New file.
722
723 * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
724 Eliminate one entire instruction.
725
32a589b1
UD
726 * cancellation.c (__pthread_enable_asynccancel_2): New function.
727 * pthreadP.h: Declare __pthread_enable_asynccancel_2.
728 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
729 (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
730 instead of __pthread_enable_asynccancel.
731 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
732 (__pthread_cond_wait): Likewise.
733 * sysdeps/pthread/pthread_cond_timedwait.c
734 (__pthread_cond_timedwait): Likewise.
735 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
736
3e976b96
UD
737 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
738 (__condvar_cleanup): Wake up all waiters in case we got signaled
739 after being woken up but before disabling asynchronous
740 cancellation.
741 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
742 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
743 (__condvar_cleanup): Likewise.
744
745 * init.c (__NR_set_tid_address): If already defined, don't redefine.
746 Make it an error if architecture has no #if case. Add x86-64.
747
748 * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
749 pt-initfini.s generation.
750
751 * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
752 (TLS_INIT_TP): Fix typo.
753
6c477888
UD
7542003-03-11 Jakub Jelinek <jakub@redhat.com>
755
756 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
757 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
758
759 * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
760 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
761 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
762 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
763 * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
764 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
765 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
766 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
767
ea694823
UD
7682003-03-11 Ulrich Drepper <drepper@redhat.com>
769
6c477888
UD
770 * sysdeps/pthread/pthread_cond_timedwait.c
771 (__pthread_cond_timedwait): Return the result of the final
772 locking. If it succeeds, the regular function return value.
773
774 * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
775 Return result of the final locking.
776 * version.c (__nptl_main): Work around problems with the strange
777 INTERNAL_SYSCALL macro on ppc32.
778 * init.c (__pthread_initialize_minimal_internal): Unblock
779 SIGCANCEL in case the parent blocked it.
780 Reported by Paul Mackerras <paulus@samba.org>.
781
ea694823
UD
782 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
783 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
784 * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
785
b33e6163
RM
7862003-03-11 Jakub Jelinek <jakub@redhat.com>
787
788 * sysdeps/pthread/pthread_cond_timedwait.c
789 (__pthread_cond_timedwait): Unlock and fail if
790 __pthread_mutex_unlock_internal failed.
791
792 * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
793 (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
794 Use ARCH_CLONE.
795 * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
796 [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
797 STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
798 ALLOCATE_STACK): New macros.
799 (TLS_TPADJ): New macro.
800 (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
801 (allocate_stack): Handle TLS_DTV_AT_TP and
802 NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
803 * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
804 Don't set PD->self.
805 * init.c [__ia64__] (__NR_set_tid_address): Define.
806
807 * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
808 * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
809 * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
810 * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
811 * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
812 * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
813 * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
814 * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
815 * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
816 * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
817 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
818 * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
819 * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
820 * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
821 * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
822 * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
823 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
824 * sysdeps/ia64/bits/atomic.h: New file.
825 * sysdeps/ia64/Makefile: New file.
826 * sysdeps/ia64/pthread_spin_init.c: New file.
827 * sysdeps/ia64/pthread_spin_lock.c: New file.
828 * sysdeps/ia64/pthread_spin_trylock.c: New file.
829 * sysdeps/ia64/pthread_spin_unlock.c: New file.
830 * sysdeps/ia64/pthreaddef.h: New file.
831 * sysdeps/ia64/tcb-offsets.sym: New file.
832 * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
833 * sysdeps/ia64/tls.h: New file.
834
835 * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
836 to syscall instead of no arguments.
837
2b30b2e5
UD
8382003-03-10 Ulrich Drepper <drepper@redhat.com>
839
db5f2fc9
UD
840 * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
841 * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
842 * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
843 * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
844
845 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
846 unused code.
847
6a4263e3
UD
848 * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
849
3de7c2a9
UD
850 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
851 lowlevelbarrier.sym.
852 * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
853 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
854 Include lowlevelbarrier.h and don't define offsets locally.
6a4263e3 855 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
3de7c2a9 856
2a544d82
UD
857 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
858 (__lll_mutex_lock_wait): Reverse order of first two parameters.
859 (__lll_mutex_timedlock_wait): Likewise.
860 (lll_mutex_lock): Adjust asm for that.
861 (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
862 (lll_lock): Adjust asm for operand order change.
863 * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
864 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
865
ec06436c
UD
866 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
867 Reverse order of parameters.
868 (__lll_timedwait_tid): Remove regparms attribute.
869 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
870 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
871
3273832c
UD
872 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
873 (__lll_timedwait_tid): Remove one unnecessary instruction.
874
51f32ab8
UD
875 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
876 __lll_mutex_timedlock_wait only for NOT_IN_libc.
877 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
878 lowlevelmutex.S.
879
880 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
881 lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
882 for NOT_IN_libc.
883 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
884 lowlevellock.S.
885
fad48d9e
UD
886 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
887 LOCK is already defined. Don't define __lll_mutex_timedlock_wait
888 for libc.so.
889 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
890 define LOCK here (if UP is not defined). The actual code is in
891 lowlevelmutex.S.
892
9356d063
UD
893 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
894 LOCK is already defined. Don't define lll_unlock_wake_cb and
895 __lll_timedwait_tid for libc.so.
896 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
897 define LOCK here (if UP is not defined). The actual code is in
898 lowlevellock.S.
899
ebf0cbc5 900 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
106f6f9d
UD
901 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
902 * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
903 instead of lowlevelsem.h.
904 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
905 * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
906 * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
0be8ee21 907
c915e5ad
UD
908 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
909 lowlevelrwlock.sym.
910 * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
911 * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
146fa1ee 912 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
c915e5ad 913
4c3c2e8a
UD
914 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
915 register loading.
916 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
917 last changed. D'oh.
918
2b30b2e5
UD
919 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
920
921 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
922 of __libc_locking_needed.
923 (lll_trylock): Initialize %eax to zero.
924
2b30b2e5
UD
925 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
926 pthread_cond_t definition.
927
e48f9638
RM
9282003-03-10 Roland McGrath <roland@redhat.com>
929
930 * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
931 * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
932 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
933 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
934 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
935
936 * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
937 Instead of setting PD->multiple_threads, set globals
938 __pthread_multiple_threads and __libc_multiple_threads.
939 * sysdeps/pthread/createthread.c (create_thread): Likewise.
940 * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
941 * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
942
943 * descr.h (struct pthread): Conditionalize first member on
944 [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
945 containing an anonymous tcbhead_t. Move `list' member out.
946 [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
947 * allocatestack.c: Remove use of `header.data.' prefix.
948 * pthread_create.c: Likewise.
949 * init.c (__pthread_initialize_minimal_internal): Likewise.
950 * sysdeps/pthread/createthread.c (create_thread): Likewise.
951 * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
952 (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
953 * sysdeps/x86_64/tls.h: Likewise.
954 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
955 (SINGLE_THREAD_P): Likewise.
956 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
957 (SINGLE_THREAD_P): Likewise.
958 * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
959 * sysdeps/s390/tls.h (tcbhead_t): Likewise.
960
c37cae9e
UD
9612003-03-09 Ulrich Drepper <drepper@redhat.com>
962
d38c777e
RM
963 * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
964
7b44a5e0 965 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
2b30b2e5 966 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
7b44a5e0 967
c2e5e085
UD
968 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
969 leftovers from the ia32 code.
970
971 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
972 memory load.
973 (clear_once_control): Don't load %esi.
974
975 * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
976 handling.
977
978 * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
979
cd4b2a55
UD
980 * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
981 * sysdeps/unix/sysv/linux/createthread.c: ...here.
982
c37cae9e
UD
983 * Makefile (tests): Add tst-cond10.
984 * tst-cond10.c: New file.
985
d130a341
UD
9862003-03-08 Ulrich Drepper <drepper@redhat.com>
987
ccf1d573
UD
988 * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
989 * tst-signal3.c (do_test): Likewise.
990 * tst-sem5.c (do_test): Likewise.
991 * tst-kill6.c (do_test): Likewise.
992 * tst-tls3.c (do_test): Likewise. Include <errno.h>.
993
994 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
995 of inc/dec.
996 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
997 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
998 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
999 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
1000 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
1001 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
1002 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1003 Likewise.
1004 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1005 Likewise.
1006 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
1007 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
1008 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1009 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
1010 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
1011 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
1012 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
1013 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
1014
d130a341
UD
1015 * allocatestack.c (allocate_stack): If mprotect() fails free the
1016 TLS memory.
1017
bc6389ad
UD
10182003-03-07 Ulrich Drepper <drepper@redhat.com>
1019
41d4d223
UD
1020 * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
1021
1022 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
1023 lll_wake_tid. This was used only to work around kernel limits in
1024 the early days.
1025 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1026 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
1027 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
1028 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
1029
bc6389ad
UD
1030 * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
1031 (__pthread_initialize_minimal_internal): Change initialization of
1032 __static_tls_align_m1 appropriately.
1033 * pthreadP.h (__static_tls_align_m1): Renamed from
1034 __static_tls_align.
1035 * allocatestack.c (allocate_stack): Use __static_tls_align_m1
1036 instead of __static_tls_align-1.
1037
cc775edf
UD
10382003-03-04 Ulrich Drepper <drepper@redhat.com>
1039
0de28d5c 1040 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
6245b6ae 1041
518b5308
UD
1042 * pthread_create.c: Define __pthread_keys using nocommon
1043 attribute, not by placing it explicitly in bss.
1044 Remove DEFINE_DEALLOC definition. Not needed anymore.
1045
1046 * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
1047 Use it in mmap call to allocate stacks.
1048
1049 * sysdeps/pthread/createthread.c (create_thread): Fix comment.
1050
cc775edf
UD
1051 * pthread_create.c (start_thread): Use THREAD_SETMEM to store
1052 result of the thread function.
1053
4f6f0a8f
UD
10542003-03-03 Ulrich Drepper <drepper@redhat.com>
1055
f04a2721
UD
1056 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
1057 version is just fine.
1058
4f6f0a8f
UD
1059 * sysdeps/unix/sysv/linux/libc_pthread_init.c
1060 (__pthread_child_handler): Renamed from pthread_child_handler,
1061 exported, and marked hidden. Change all users.
1062 * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
1063 free __pthread_child_handler from child list.
1064
7ce5c164
UD
10652003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1066
1067 * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
1068
1069 * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
1070 Fix handling of cancellation and failing pthread_mutex_unlock call.
1071 * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
1072 (__pthread_cond_wait): Likewise.
1073
1074 * sysdeps/pthread/pthread_rwlock_timedrdlock.c
1075 (pthread_rwlock_timedrdlock): Fix clobber of result variable by
1076 lll_futex_timed_wait call.
1077 * sysdeps/pthread/pthread_rwlock_timedwrlock.c
1078 (pthread_rwlock_timedwrlock): Likewise.
1079
1080 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
1081 Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
1082 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
1083
1084 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
1085 check of lll_futex_wake return value.
1086
ea6a015b
RM
10872003-03-03 Roland McGrath <roland@redhat.com>
1088
1089 * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
1090
1091 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
1092 Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
1093 * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
1094
4adacf57
UD
10952003-03-02 Ulrich Drepper <drepper@redhat.com>
1096
1be3d664
UD
1097 * sysdeps/pthread/timer_create.c (timer_create): Return correct
1098 error for CPU clocks.
1099
885bafa1
UD
1100 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1101 _POSIX_MONOTONIC_CLOCK.
1102 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
1103
4adacf57
UD
1104 * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
1105 recent kernels.
1106
86bfff4d
UD
11072003-03-01 Ulrich Drepper <drepper@redhat.com>
1108
1109 * descr.h (struct pthread): Move cleanup field to the front.
1110
d1149385
RM
11112003-03-01 Roland McGrath <roland@redhat.com>
1112
1113 * sem_open.c (sem_open): Braino fix.
1114
bd8bb78b
UD
11152003-03-01 Ulrich Drepper <drepper@redhat.com>
1116
748bec08
UD
1117 * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
1118 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
1119 __pthread_cleanup_pop functionality.
1120 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1121
bd8bb78b
UD
1122 * descr.h (struct pthread): Move tid field to the front now that
1123 it is often used.
1124
1125 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
1126 (__lll_mutex_timedlock_wait): Remove.
1127 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
1128 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
1129 (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
1130 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
1131 (lll_unlock_wake_cb): Don't save and restore %esi.
1132 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
1133 %esi.
1134 (__lll_timedwait_tid): Add alignment.
1135 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
1136 (__lll_unlock_wake): Add alignment. Don't save, load, and restore
1137 %esi.
1138 (__lll_timedwait_tid): Removed.
1139 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
1140 (__pthread_cond_broadcast): Don't save, load, and restore %esi.
1141 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
1142 (pthread_barrier_wait): Don't save, load, and restore %esi for
1143 last thread.
1144 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
1145 (__pthread_cond_signal): Don't save, load, and restore %esi.
1146 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
1147 (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
1148 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
1149 Don't save, load, and restore %esi.
1150
d2637c70
UD
11512003-02-27 Ulrich Drepper <drepper@redhat.com>
1152
567fb22a
UD
1153 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
1154 Release lock before waking up the waiters.
1155
427f5fa1
UD
1156 * tst-exit1.c (do_test): Don't start more than one thread in parallel.
1157
a2d83cfb
UD
1158 * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
1159 (reader_thread): Likewise.
1160
d2637c70
UD
1161 * sysdeps/pthread/pthread_rwlock_unlock.c
1162 (__pthread_rwlock_unlock): Release internal lock early. Don't try
1163 to wake up readers if there are none.
1164
1165 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
1166 Release internal lock before wake threads.
1167
b1531183
UD
11682003-02-26 Ulrich Drepper <drepper@redhat.com>
1169
dbf6131c
UD
1170 * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
1171 * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
1172 predefined.
1173 * tst-rwlock9.c: Likewise.
1174 * tst-rwlock10.c: New file.
1175 * tst-rwlock11.c: New file.
1176
695799fe
UD
1177 * Makefile (tests): Add tst-dlsym1.
1178 * tst-dlsym1.c: New file.
1179
b1531183
UD
1180 * init.c (__pthread_initialize_minimal_internal): Set
1181 GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
1182 * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
1183
3724f268
UD
11842003-02-24 Ulrich Drepper <drepper@redhat.com>
1185
3857ca78
UD
1186 * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
1187
80d80779
UD
1188 * tst-cond2.c: Fix sychronization with child.
1189
86371308
UD
1190 * tst-rwlock8.c (reader_thread): Remove unused variable.
1191
ffeb4481
UD
1192 * Makefile: Add rules to build and run tst-tls3.
1193 * tst-tls3.c: New file.
1194 * tst-tls3mod.c: New file.
1195
3724f268
UD
1196 * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
1197 * tst-rwlock8.c: New file.
1198 * tst-rwlock9.c: New file.
1199 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
1200 complete broken rwlock implementation.
1201 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1202 Likewise.
1203 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1204 Likewise.
1205 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
1206 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
18a53579
UD
1207 * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
1208 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
1209 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
1210 * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
1211 * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
3724f268 1212
8915cc40
RM
12132003-02-23 Roland McGrath <roland@redhat.com>
1214
1215 * Makefile (nptl-version): Change regexp so case sensitivity is ok.
1216
fd1a0d0c
UD
12172003-02-23 Ulrich Drepper <drepper@redhat.com>
1218
ecf28959
UD
1219 * Makefile (tests): Add tst-context1.
1220 * tst-context1.c: New file.
1221
5e47b76b
UD
1222 * Makefile (tests): Add tst-tls1 and tst-tls2.
1223 * tst-tls1.c: New file.
1224 * tst-tls2.c: New file.
1225
5a6bbb41
UD
1226 * libc-cancellation.c (__libc_enable_asynccancel): Correct test
1227 for failed cmpxchg.
1228
fd1a0d0c
UD
1229 * pthread_create.c (start_thread): Set EXITING_BIT early.
1230
1231 * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
1232 (THREAD_GETMEM_NC): Likewise.
1233
757f9fcb
UD
12342003-02-22 Ulrich Drepper <drepper@redhat.com>
1235
b1b8e747
UD
1236 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
1237 off 3 more bytes by using offset-less instructions when possible.
1238
c780aa21 1239 * Makefile: Add dependency for $(objpfx)version.d.
757f9fcb
UD
1240
1241 * eintr.c (eintr_source): Add unnecessary return but the compiler
1242 insists.
1243
1244 * tst-kill3.c: Include <unistd.h>.
1245
5148559c
RM
12462003-02-21 Roland McGrath <roland@redhat.com>
1247
1248 * pthread_create.c (start_thread): Call __libc_thread_freeres.
1249
ab2d98e3
UD
12502003-02-21 Ulrich Drepper <drepper@redhat.com>
1251
71028edd
UD
1252 * Makefile (tests): Add tst-eintr1.
1253 (distribute): Add eintr.c.
1254 * tst-eintr1.c: New file.
1255 * eintr.c: New file.
1256
e814f748
UD
1257 * pthread_cancel.c (pthread_cancel): Use tkill directly.
1258
1259 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
1260 Disallow sending SIGCANCEL.
1261
ab2d98e3 1262 * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
9c03686d 1263 tst-kill3, tst-kill4, tst-kill5, tst-kill6.
e814f748
UD
1264 * tst-kill1.c: New file.
1265 * tst-kill2.c: New file.
1266 * tst-kill3.c: New file.
1267 * tst-kill5.c: New file.
9c03686d 1268 * tst-kill6.c: New file.
e814f748
UD
1269 * tst-basic7.c: Renamed to...
1270 * tst-kill4.c: ...this.
ab2d98e3 1271
59fed0e2
RM
12722003-02-21 Roland McGrath <roland@redhat.com>
1273
1274 * Makefile (install-lib-ldscripts): New variable.
1275
49dc759f
UD
12762003-02-21 Ulrich Drepper <drepper@redhat.com>
1277
8c2e9a29
UD
1278 * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
1279 * pthread_cancel.c: Use INVALID_TD_P.
1280 * pthread_detach.c: Likewise.
1281 * pthread_getschedparam.c: Likewise.
1282 * pthread_setschedparam.c: Likewise.
1283 * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
1284 * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
1285 * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
1286 * pthread_timedjoin.c: Likewise.
1287
1288 * tst-basic7.c: Include <signal.h>.
1289
49dc759f
UD
1290 * pthread_join.c (pthread_join): Limited checking for invalid
1291 descriptors.
1292 * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
1293
df5803bf
UD
12942003-02-20 Ulrich Drepper <drepper@redhat.com>
1295
c5acd3d7
UD
1296 * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
1297 beginning of the loop. Clear the entire first block of TSD.
df5803bf
UD
1298 * Makefile (tests): Add tst-key4.
1299 * tst-key4.c: New file.
1300
729924a0
UD
13012003-02-18 Ulrich Drepper <drepper@redhat.com>
1302
2f7dc594
UD
1303 * Makefile (tests): Add tst-basic7.
1304 * tst-basic7.c: New file.
1305
ba25bb0f
UD
1306 * pthread_create.c (deallocate_tsd): Mark as internal_function.
1307 Add some more __builtin_expect.
1308
12fd3c5f 1309 * pthreadP.h: Define dummy version of DEBUGGING_P.
729924a0 1310
5430d926
UD
13112003-02-17 Ulrich Drepper <drepper@redhat.com>
1312
b0db7fbe
UD
1313 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
1314 _POSIX_THREAD_PRIORITY_SCHEDULING.
1315 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
1316 _XOPEN_REALTIME_THREADS.
1317 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1318
1319 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
1320 kernel returns EINVAL for PID <= 0, work around it.
1321
ecfda9bd
UD
1322 * Makefile (tests): Add tst-signal5.
1323 * tst-signal5.c: New file.
1324
7d78ab99
UD
1325 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
1326 and LOGIN_NAME_MAX.
1327
371a2972
UD
1328 * tst-cancel1.c (tf): Block all signals.
1329
5430d926
UD
1330 * Makefile (tests): Add tst-basic6.
1331 * tst-basic6.c: New file.
1332
1333 * tst-basic1.c: Add test for process ID.
1334
1335 * Makefile (tests): Add tst-cancel10.
1336 * tst-cancel10.c: New file.
1337
1338 * Makefile (tests): Add tst-signal4.
1339 * tst-signal4.c: New file.
1340
1341 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
1342 __sigismember instead of sigismember. Add __builtin_expect.
1343
1564916a
UD
13442003-02-16 Ulrich Drepper <drepper@redhat.com>
1345
179ff175
UD
1346 * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
1347 pthread_setcancelstate, and pthread_rwlock_setpshared.
1348
e4335f9a
UD
1349 * tst-cancel7.c (do_test): Make sure the pid file exists before
1350 canceling the thread.
1351
0a37669a
UD
1352 * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
1353 pthread_rwlock_timedrdlock tests.
1354 * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
1355 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1356 Check for invalid tv_nsec field.
1357 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1358 Likewise.
1359
1360 * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
1361 recursive mutex of overflow.
1362
1363 * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
1364
e4335f9a 1365 * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
1564916a
UD
1366 going into an endless loop.
1367 * Makefile (tests): Add tst-cancel9.
1368 * tst-cancel9.c: New file.
1369
1370 * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
1371
b270b548
UD
13722003-02-15 Ulrich Drepper <drepper@redhat.com>
1373
1c82b97f
UD
1374 * tst-mutex5.c (do_test): Add more timedlock tests.
1375
b2f05465 1376 * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
c3bb9ee1
UD
1377 * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
1378
e798b60f
UD
1379 * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
1380 use INLINE_SYSCALL. Error number is returned, not -1.
1381
90491dc4
UD
1382 * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
1383 and __deallocate_stack with internal_function.
1384 * pthread_create.c: Adjust definitions appropriately.
1385 * allocatestack.c: Likewise.
1386
1387 * pthread_join.c: Add one more __builtin_expect.
1388 * pthread_timedjoin.c: Likewise.
1389
1390 * pthread_getspecific.c (__pthread_getspecific): Clear data->data
1391 not data of sequence number does not match.
1392 Add one __builtin_expect.
1393
c6247c9d
UD
1394 * Makefile (tests): Add tst-clock1.
1395 * tst-clock1.c: New file.
1396
b270b548
UD
1397 * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
1398 negative arguments.
1399 * Makefile (tests): Add tst-basic5.
1400 * tst-basic5.c: New file.
1401
700bf7af
UD
14022003-02-14 Ulrich Drepper <drepper@redhat.com>
1403
757de559
UD
1404 * Makefile (tests): Add tst-basic4.
1405 * tst-basic4.c: New file.
1406
47202270
UD
1407 * pthreadP.h: Add declaraction for __nptl_nthreads.
1408 * pthread_create.c: Define __nptl_nthreads
1409 (start_thread): Increment __nptl_nthreads at beginning. Decrement
b270b548 1410 after thread is done. If then zero, call exit(0).
47202270
UD
1411 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
1412 Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
1413 * init.c (pthread_functions): Initialize ptr_nthreads.
1414 * allocatestack.c (nptl_nthreads): Remove definition and all uses.
1415 (__reclaim_stacks): Decrement __nptl_nthreads.
1416 * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
1417 Define.
1418 * Makefile (tests): Add tst-basic3.
1419 * tst-basic3.c: New file.
1420
e320ef46
UD
1421 * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
1422 after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
1423 * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
1424 * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
1425 if asynchronous canceling is enabled.
1426 * pthread_join.c (pthread_join): When recognizing circular joins,
1427 take into account the other thread might be already canceled.
1428 * Makefile (tests): Add tst-join5.
1429 * tst-join5.c: New file.
1430
700bf7af
UD
1431 * Makefile (tests): Add tst-join4.
1432 * tst-join4.c: New file.
1433
14342003-02-13 Ulrich Drepper <drepper@redhat.com>
1435
1436 * tst-cond4.c (main): Add test of pthread_attr_getpshared.
1437
dac0f772
UD
14382003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
1439
1440 * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
1441 THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
1442 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
1443 warning.
1444 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
1445 to avoid warning.
1446 * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
1447 error if lll_futex_wake failed.
1448
e8cda341
UD
14492003-02-13 Ulrich Drepper <drepper@redhat.com>
1450
a7720b5e
UD
1451 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
1452 handling of cancellation and failung pthread_mutex_unlock call.
1453 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1454 * Makefile (tests): Add tst-cond8 and tst-cond9.
1455 * tst-cond8.c: New file.
1456 * tst-cond9.c: New file.
1457
a1ea4c06
UD
1458 * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
1459
1460 * sysdeps/pthread/pthread.h: Add missing initializers. Protect
1461 non-standard initializers with __USE_GNU.
1462
e8cda341
UD
1463 * Makefile (tests): Add tst-cleanup3.
1464 * tst-cleanup3.c: New file.
1465
2067577c
UD
14662003-02-12 Ulrich Drepper <drepper@redhat.com>
1467
89e78a95
UD
1468 * Makefile (tests): Add tst-attr1 and tst-attr2.
1469 * tst-attr1.c: New file.
1470 * tst-attr2.c: New file.
1471
dfdd294a
UD
1472 * Makefile: Add rules to build and run tst-atfork2 test.
1473 * tst-atfork2.c: New file.
1474 * tst-atfork2mod.c: New file.
1475
1476 * sysdeps/unix/sysv/linux/unregister-atfork.c
1477 (__unregister_atfork): Free the memory allocated for the handlers
1478 after removing them from the lists.
1479
1480 * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
1481 cleanup function.
1482
1483 * tst-atfork1.c (do_test): Wait for the child we forked.
1484 Report error in child.
1485
1486 * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
1487
2067577c
UD
1488 * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
1489
2a8a8a84
UD
14902003-02-10 Ulrich Drepper <drepper@redhat.com>
1491
d9dd121e
UD
1492 * Makefile (tests): Add tst-cancel8.
1493 * tst-cancel8.c: New file.
1494
2a8a8a84
UD
1495 * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
1496 clearing of control variable.
defd1870 1497 * Makefile (tests): Add tst-once3 and tst-once4.
2a8a8a84 1498 * tst-once3.c: New file.
defd1870 1499 * tst-once4.c: New file.
2a8a8a84 1500
a54e8d33
UD
15012003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
1502
1503 * sysdeps/sh/Makefile: New file.
1504 * sysdeps/sh/bits/atomic.h: New file.
1505 * sysdeps/sh/pthread_spin_init.c: New file.
1506 * sysdeps/sh/pthread_spin_lock.c: New file.
1507 * sysdeps/sh/pthread_spin_trylock.S: New file.
1508 * sysdeps/sh/pthread_spin_unlock.S: New file.
1509 * sysdeps/sh/pthreaddef.h: New file.
1510 * sysdeps/sh/tcb-offsets.sym: New file.
1511 * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
1512 * sysdeps/sh/tls.h: New file.
1513 * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
1514 * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
1515 * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
1516 * sysdeps/unix/sysv/linux/sh/fork.c: New file.
1517 * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
1518 * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
1519 * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
1520 * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
1521 * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
1522 * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
1523 * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
1524 * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
1525 * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
1526 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
1527 * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
1528 * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
1529 * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
1530 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
1531 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
1532 * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
1533 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
1534 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
1535 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
1536 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
1537 * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
1538 * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
1539 * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
1540 * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
1541 * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
1542 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
1543
696e556e
UD
15442003-02-08 Ulrich Drepper <drepper@redhat.com>
1545
1546 * tst-cond2.c: Rearrange code to not rely on behavior undefined
1547 according to POSIX.
1548
1549 * tst-basic2.c (do_test): Lock mutex before creating the thread.
1550
fef710d6
UD
15512003-02-07 Ulrich Drepper <drepper@redhat.com>
1552
c6180643
UD
1553 * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
1554 (TLS_GET_FS): New #define.
1555 (TLS_SET_FS): New #define.
1556 Correct value of __NR_set_thread_area.
1557
fef710d6
UD
1558 * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
1559
11090a99
UD
15602003-02-06 Ulrich Drepper <drepper@redhat.com>
1561
65c68990
UD
1562 * Makefile (tests): Add tst-popen1.
1563 * tst-popen1.c: New file.
1564
11090a99
UD
1565 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
1566 but inactive generalization.
1567 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
1568 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
1569 Minor optimization, remove one instruction.
1570 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
1571
a88c9263
UD
15722003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
1573
1574 * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
1575
15762003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
1577
1578 * init.c (__NR_set_tid_address): Add #ifdef for s390.
1579 * sysdeps/pthread/pthread_barrier_wait.c: New file.
1580 * sysdeps/pthread/pthread_cond_broadcast.c: New file.
1581 * sysdeps/pthread/pthread_cond_signal.c: New file.
1582 * sysdeps/pthread/pthread_cond_timedwait.c: New file.
1583 * sysdeps/pthread/pthread_cond_wait.c: New file.
1584 * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
1585 * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
1586 * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
1587 * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
1588 * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
1589 * sysdeps/s390/Makefile: New file.
1590 * sysdeps/s390/bits/atomic.h: New file.
1591 * sysdeps/s390/pthread_spin_init.c: New file.
1592 * sysdeps/s390/pthread_spin_lock.c: New file.
1593 * sysdeps/s390/pthread_spin_trylock.c: New file.
1594 * sysdeps/s390/pthread_spin_unlock.c: New file.
1595 * sysdeps/s390/pthreaddef.h: New file.
1596 * sysdeps/s390/tcb-offsets.sym: New file.
1597 * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
1598 * sysdeps/s390/tls.h: New file.
1599 * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
1600 * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
1601 * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
1602 * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
1603 * sysdeps/unix/sysv/linux/s390/fork.c: New file.
1604 * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
1605 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
1606 * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
1607 * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
1608 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
1609 * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
1610 * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
1611 * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
1612 * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
1613 * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
1614 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
1615 * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
1616 * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
1617 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
1618 * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
1619 * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
1620 * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
1621 * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
1622
6f1cff95
UD
16232003-02-04 Ulrich Drepper <drepper@redhat.com>
1624
ec609a8e
UD
1625 * atomic.h: Add a couple more default implementations.
1626 (atomic_compare_and_exchange_acq): Use
d45e8740
UD
1627 __arch_compare_and_exchange_32_acq in return value definition. It
1628 always exists.
1629 (atomic_bit_set): Renamed from atomic_set_bit.
0289bef9 1630 Add missing atomic_ prefixes.
e3ec8904 1631
6f1cff95
UD
1632 * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
1633 thread library is available, use correct value to mark initialized
1634 once variable.
1635
4f088329
UD
16362003-02-03 Ulrich Drepper <drepper@redhat.com>
1637
6f1cff95
UD
1638 * allocatestack.c (allocate_stack): Use __getpagesize instead of
1639 __sysconf to determine pagesize.
1640
3e4fc359 1641 * pthread_create.c: Include <atomic.h>.
4f088329
UD
1642 * allocatestack.c (allocate_stack): Implement coloring of the
1643 allocated stack memory. Rename pagesize to pagesize_m1. It's the
1644 size minus one. Adjust users.
3e4fc359 1645 * sysdeps/i386/i686/Makefile: New file.
4f088329 1646
2f42e8be
UD
16472003-02-02 Ulrich Drepper <drepper@redhat.com>
1648
4301f7e2
UD
1649 * allocatestack.c: Improve comment throughout the file.
1650
2f42e8be 1651 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
a37818b3 1652 (__lll_lock_wait): Add branch prediction.
2f42e8be
UD
1653 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
1654 (__lll_lock_wait): Likewise.
1655 (lll_unlock_wake_cb): Removed.
1656
4a7d6545
UD
16572003-01-31 Ulrich Drepper <drepper@redhat.com>
1658
1659 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
1660 _POSIX_THREAD_PRIORITY_SCHEDULING.
1661
886d5973
UD
16622003-01-30 Jakub Jelinek <jakub@redhat.com>
1663
1664 * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
1665 Fix return type of ptr___pthread_getspecific.
1666
e474ca78
UD
16672003-01-29 Ulrich Drepper <drepper@redhat.com>
1668
1669 * Makefile (tests): Add tst-umask1.
1670 (tst-umask1-ARGS): Define.
1671 * tst-umask1.c: New file.
1672
e6ebd2e4
UD
16732003-01-28 Ulrich Drepper <drepper@redhat.com>
1674
6cf26f41
UD
1675 * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
1676 pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
1677 pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
1678 pthread_rwlock_unlock.
1679 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
1680 * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
1681 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
1682 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
1683 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1684 New file.
1685 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
1686 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1687 New file.
1688 * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
1689 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
1690 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
1691 New file.
1692 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
1693 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
1694 New file.
1695 * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
1696 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
1697 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
1698 New file.
1699 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
1700 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
1701 New file.
1702 * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
1703
1d087a7e
UD
1704 * Makefile (libpthread-routines): Remove lowlevelcond and
1705 lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
1706 pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
1707 and pthread_cond_broadcast.
4a99d160
UD
1708 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
1709 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
1710 * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
1711 * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
1712 * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
1713 * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
1714 * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
1715 * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
1716 * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
1717 * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
1718 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
1719 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
1720 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
1721 * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
1722 * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
1723 * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
1724 * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
1725 * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
1726 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
1727 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
1728 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
1729 * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
1730 * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
1731 * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
1732 * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
1733 * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
1734 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
1735 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
1736 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
1737 * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
1738 * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
1d087a7e 1739
e6ebd2e4
UD
1740 * sysdeps/unix/sysv/linux/i386/createthread.c: Define
1741 PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
1742 of the code is moved to ...
1743 * sysdeps/pthread/createthread.c: ...here. New file.
1744
a15698cb
UD
17452003-01-27 Ulrich Drepper <drepper@redhat.com>
1746
0566b130
UD
1747 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
1748 (__new_sem_post): Clear %eax before returning.
1749 Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
1750
e6fb8846
UD
1751 * Makefile (tests): Add tst-cleanup2.
1752 * tst-cleanup2.c: New file.
1753
a15698cb
UD
1754 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
1755 Interpret first parameter correctly.
1756
8824b0a1
UD
17572003-01-17 Ulrich Drepper <drepper@redhat.com>
1758
1759 * Makefile (headers): Add bits/semaphore.h.
1760
850dcfca
UD
17612003-01-16 Jakub Jelinek <jakub@redhat.com>
1762
1763 * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
1764 if not SHARED.
1765
574b892e
UD
17662003-01-14 Ulrich Drepper <drepper@redhat.com>
1767
a8d87c92
UD
1768 * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
1769 must be used and mapping failed.
1770 Reported by Luke Elliott <luke.elliott@activfinancial.com>.
1771
574b892e
UD
1772 * Makefile (CFLAGS-pthread_self.os): Define this, not
1773 CFLAGS-pthread_self.c.
1774
fb48047a
UD
17752003-01-13 Ulrich Drepper <drepper@redhat.com>
1776
47805511
UD
1777 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
1778 lll_unlock_wake_cb.
1779
fb48047a
UD
1780 * Makefile (libpthread-routines): Add version. Add rules to build
1781 version.os and banner.h.
1782 * version.c: New file.
1783
115bb61d
UD
17842003-01-13 Jakub Jelinek <jakub@redhat.com>
1785
1786 * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
1787 the alias unconditional.
1788 * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
1789
17902003-01-13 Ulrich Drepper <drepper@redhat.com>
1791
1792 * Makefile (CFLAGS-pthread_self.c): New definition.
1793
6aca81bb
UD
17942003-01-06 Jakub Jelinek <jakub@redhat.com>
1795
1796 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
1797 INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
1798 * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
1799 * init.c (__pthread_initialize_minimal_internal): Likewise.
1800
e9c7764e
UD
18012003-01-07 Jakub Jelinek <jakub@redhat.com>
1802
b5facfda
UD
1803 * pthreadP.h (__pthread_cond_timedwait): Add prototype.
1804
e9c7764e
UD
1805 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
1806 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
1807 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
1808 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
1809 (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
1810 (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
1811
bef1e42f
UD
18122003-01-06 Jakub Jelinek <jakub@redhat.com>
1813
1814 * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
1815 * pt-system.c (LIBC_CANCEL_HANDLED): Add.
1816 * tst-cancel-wrappers.sh: Remove all exceptions.
1817
bbd17455
UD
18182003-01-05 Ulrich Drepper <drepper@redhat.com>
1819
a73ab6df
UD
1820 * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
1821 features. Reported by Marijn Ros <marijn@mad.scientist.com>.
1822
bbd17455
UD
1823 * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
1824 Use __libc_pthread_functions array if SHARED.
1825
1826 * pthreadP.h: Move pthread_cond_2_0_t definition to...
1827 * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
1828
1829 * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
1830 (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
1831 __libc_key_create, __libc_getspecific, __libc_setspecific): Use
1832 __libc_ptf_call instead of __libc_maybe_call.
1833 (PTF): New #define.
1834 (__libc_cleanup_region_start): Wrap function name with PTF call.
1835 (__libc_cleanup_region_end): Likewise.
1836 (__libc_cleanup_end): Likewise.
1837
1838 * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
1839 * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
1840 * pthread_key_create.c: Add __pthread_key_create_internal alias.
1841 * pthreadP.h: Add prototypes.
1842
1843 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
1844 __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
1845 __pthread_rwlock_unlock aliases.
1846 * pthreadP.h: Add prototypes for new aliases.
1847
1848 * pthreadP.h (struct pthead_functions): Moved to...
1849 * sysdeps/pthread/pthread-functions.h: ...here. New file.
1850 * init.c (pthread_functions): Add initializers for new elements.
1851
1852 * cleanup_defer.c: Add __pthread_cleanup_push_defer and
1853 __pthread_cleanup_pop_restore aliases.
1854 * pthreadP.h: Add prototypes.
1855
1856 * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
1857 and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
1858 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
1859 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
1860 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
1861 * pthreadP.h: Adjust prototypes and callers.
1862
d27a78be
UD
18632003-01-04 Ulrich Drepper <drepper@redhat.com>
1864
b74121ae
UD
1865 * Makefile (tests): Add tst-cancel7.
1866 (tst-cancel7-ARGS): New variable.
bbd17455 1867 * tst-cancel7.c: New file.
b74121ae 1868
29bc410c
UD
1869 * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
1870 around gcc defficiencies.
1871 * old_pthread_cond_signal.c: Likewise.
1872 * old_pthread_cond_timedwait.c: Likewise.
1873 * old_pthread_cond_wait.c: Likewise.
1874
d27a78be
UD
1875 * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
1876
733f25e6
UD
18772003-01-03 Ulrich Drepper <drepper@redhat.com>
1878
7edb2ae3
UD
1879 * Makefile (tests): Add tst-cond7.
1880 * tst-cond7.c: New file.
1881
b1151300
UD
1882 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
1883 (condvar_cleanup): Get condvar address from the right place.
1884
733f25e6
UD
1885 * atomic.h: Correct definitions of atomic_full_barrier,
1886 atomic_read_barrier, atomic_write_barrier.
1887
1888 * old_pthread_cond_broadcast.c: Make memory allocate and initialization
1889 race-free.
1890 * old_pthread_cond_signal.c: Likewise.
1891 * old_pthread_cond_timedwait.c: Likewise.
1892 * old_pthread_cond_wait.c: Likewise.
1893
686b7223
UD
18942003-01-03 Jakub Jelinek <jakub@redhat.com>
1895
1896 * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
1897
0e07706e
UD
18982003-01-03 Ulrich Drepper <drepper@redhat.com>
1899
997256dd
UD
1900 * pthreadP.h (pthread_cond_2_0_t): New type.
1901 (struct pthread_functions): Use new type for 2.0 condvar callbacks.
1902 Use new type for the 2.0 condvar function prototypes.
1903 * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
1904 * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
1905 parameter.
1906 * old_pthread_cond_destroy.c: Likewise.
1907 * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
1908 * old_pthread_cond_signal.c: Likewise.
1909 * old_pthread_cond_timedwait.c: Likewise.
1910 * old_pthread_cond_wait.c: Likewise.
1911
842d2817
UD
1912 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
1913 (__pthread_cond_wait): Don't save cancellation mode and seq value
1914 in same location.
1915
0e07706e
UD
1916 * herrno.c (__h_errno_location): Don't define as weak.
1917
bf293afe
UD
19182003-01-02 Jakub Jelinek <jakub@redhat.com>
1919
1920 * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
1921 pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
1922 and pthread_cond_wait.
1923 * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
1924 Renamed to...
1925 (__pthread_cond_broadcast_2_0): ... this.
1926 * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
1927 Renamed to...
1928 (__pthread_cond_destroy_2_0): ... this.
1929 * old_pthread_cond_init.c (__old_pthread_cond_init):
1930 Renamed to...
1931 (__pthread_cond_init_2_0): ... this.
1932 * old_pthread_cond_signal.c (__old_pthread_cond_signal):
1933 Renamed to...
1934 (__pthread_cond_signal_2_0): ... this.
1935 * old_pthread_cond_wait.c (__old_pthread_cond_wait):
1936 Renamed to...
1937 (__pthread_cond_wait_2_0): ... this.
1938 * pthread_cond_destroy.c: Include shlib-compat.h.
1939 (pthread_cond_destroy): Change strong_alias into versioned_symbol.
1940 * pthread_cond_init.c: Include shlib-compat.h.
1941 (pthread_cond_init): Change strong_alias into versioned_symbol.
1942 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
1943 fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
1944 fields.
1945 (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
1946 __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
1947 __pthread_cond_wait_2_0): New prototypes.
1948 (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
1949 __old_pthread_cond_init, __old_pthread_cond_signal,
1950 __old_pthread_cond_wait): Removed.
1951 * init.c: Include shlib-compat.h.
1952 (pthread_functions): Guard ptr___pthread_attr_init_2_0
1953 initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
1954 Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
1955 ptr___pthread_cond_*_2_0 fields.
1956 * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
1957 pthread_cond_*@GLIBC_2.0 compatibility symbols.
1958
1959 * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
1960 LIBC_SIGACTION was not yet defined.
1961 [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
1962 [!defined LIBC_SIGACTION] (__sigaction): New function and
1963 libc_hidden_weak.
1964 [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
1965 [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
1966
19672003-01-02 Jakub Jelinek <jakub@redhat.com>
1968
1969 * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
1970
05df18c3
UD
19712003-01-02 Ulrich Drepper <drepper@redhat.com>
1972
1973 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
1974 New, larger type definition.
1975 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
1976 implementation.
1977 * Versions [libpthread]: Add definitions for new pthread_cond_*
1978 interfaces for version GLIBC_2.3.2.
1979 * pthread_cond_init.c: Update initialization for new type definition.
1980 * Makefile (libpthread-routines): Remove pthread_cond_wait,
1981 pthread_cond_timedwait, pthread_cond_signal, and
1982 pthread_cond_broadcast. Add old_pthread_cond_init,
1983 old_pthread_cond_destroy, old_pthread_cond_wait,
1984 old_pthread_cond_timedwait, old_pthread_cond_signal, and
1985 old_pthread_cond_broadcast.
1986 * old_pthread_cond_broadcast.c: New file.
1987 * old_pthread_cond_destroy.c: New file.
1988 * old_pthread_cond_init.c: New file.
1989 * old_pthread_cond_signal.c: New file.
1990 * old_pthread_cond_timedwait.c: New file.
1991 * old_pthread_cond_wait.c: New file.
1992 * pthreadP.h: Add prototypes for the compatibility interfaces.
1993
1994 * pthread_cond_destroy.c: Don't include <errno.h>.
1995
fd8979e4
UD
19962003-01-01 Ulrich Drepper <drepper@redhat.com>
1997
1998 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
1999 unnecessary zero offset when addressing MUTEX.
2000
6d6ee629
UD
20012002-12-31 Ulrich Drepper <drepper@redhat.com>
2002
2003 * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
2004 __register_atfork.
2005 * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
2006 for __register_atfork.
2007
a4baf360
UD
20082002-12-31 Jakub Jelinek <jakub@redhat.com>
2009
2010 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
2011 instead of ASSEMBLER test macro.
2012
2013 * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
2014 __libc_current_sigrtmax): Add libc_hidden_def.
2015
2016 * sysdeps/pthread/list.h: Remove assert.h include.
2017
e9395a94
UD
20182002-12-31 Ulrich Drepper <drepper@redhat.com>
2019
2020 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
2021 __pthread_initialize_minimal_internal not
2022 __pthread_initialize_minimal.
2023
89d6e444
UD
20242002-12-30 Ulrich Drepper <drepper@redhat.com>
2025
416d2de6
UD
2026 * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
2027 __pthread_initialize_minimal as hidden.
2028
89d6e444
UD
2029 * init.c (__pthread_initialize_minimal_internal): Don't mark as
2030 constructor.
2031
20322002-12-31 Jakub Jelinek <jakub@redhat.com>
2033
2034 * Makefile ($(inst_libdir)/libpthread.so): Depend on
2035 $(common-objpfx)format.lds, include that into the output script.
2036 Fix comment.
2037 (extra-B-pthread.so): Change linuxthreads/ into nptl/.
2038
8cac677c
UD
20392002-12-28 Andreas Jaeger <aj@suse.de>
2040
2041 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
2042 nsec resolution changes.
2043 (xstat64_conv): Likewise.
2044 (xstat32_conv): Likewise.
2045 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
2046 struct kernel_stat.
2047 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
2048 structs stat and stat64.
2049 * time/time.h (__timespec_defined): Define for __USE_MISC.
89d6e444 2050 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
8cac677c 2051
49e9f864
UD
20522002-12-30 Jakub Jelinek <jakub@redhat.com>
2053
2054 * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
2055 argument.
2056 (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
2057 (pthread_exit): Use strong_alias to avoid warnings.
2058 * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
2059 and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
2060 ptr___pthread_attr_init_2_*.
2061 * init.c (pthread_functions): Adjust.
2062
bab09b26
UD
20632002-12-29 Ulrich Drepper <drepper@redhat.com>
2064
598d7a42
UD
2065 * forward.c: Make all functions available by default again. It
2066 caused too much trouble.
2067
bab09b26
UD
2068 * pt-siglongjmp.c: Removed.
2069
3b7ed871
UD
20702002-12-28 Jakub Jelinek <jakub@redhat.com>
2071
2072 * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
2073 (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
2074 * sysdeps/i386/Makefile: New file.
2075 * sysdeps/i386/tcb-offsets.sym: New file.
2076 * sysdeps/pthread/tcb-offsets.h: New file.
2077 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
2078 Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
2079
2080 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
2081 __register_atfork...
2082 (GLIBC_2.3.2): ...here.
2083
20842002-12-28 Ulrich Drepper <drepper@redhat.com>
2085
2086 * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
2087 pthread_attr_setstackaddr with __attribute_deprecated__.
2088
270d9d47
UD
20892002-12-27 Jakub Jelinek <jakub@redhat.com>
2090
2091 * pt-system.c (system): Remove cancellation handling.
2092 * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
2093 cancellation routines.
2094
131fd126
UD
20952002-12-28 Ulrich Drepper <drepper@redhat.com>
2096
afb2e954
UD
2097 * descr.h: Include <dl-sysdep.h>.
2098 (struct pthread): Move header.data.list to the back of the struct.
131fd126
UD
2099 * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
2100 (MULTIPLE_THREADS_OFFSET): Adjust offset.
2101 (SYSINFO_OFFSEET): Likewise.
2102
21032002-12-27 Jakub Jelinek <jakub@redhat.com>
2104
2105 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
2106 Define.
2107 (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
2108 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
2109 DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
2110 (USE_DL_SYSINFO): Undef.
2111
21122002-12-22 Jakub Jelinek <jakub@redhat.com>
2113
2114 * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
2115 $(common-objpfx)libc.so.
2116 * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
2117 it is bigger than pipe buffer size even on arches with bigger
2118 page size.
2119 (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
2120
a218c9cf
UD
21212002-12-25 Ulrich Drepper <drepper@redhat.com>
2122
2123 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
2124 correct errno access for case that USE___THREAD is not defined.
2125
015a2dc9
UD
21262002-12-24 Ulrich Drepper <drepper@redhat.com>
2127
2128 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
2129 Patch by Marijn Ros <marijn@mad.scientist.com>.
2130
5220f9ac
RM
21312002-12-22 Roland McGrath <roland@redhat.com>
2132
2133 * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
2134
1561bf63
UD
21352002-12-20 Ulrich Drepper <drepper@redhat.com>
2136
2137 * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
2138
3325198e
UD
21392002-12-19 Ulrich Drepper <drepper@redhat.com>
2140
057c823f
UD
2141 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
2142 NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
2143 * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
2144
097eca29
UD
2145 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
2146 of int $0x80.
2147 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
2148 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
2149 * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
2150 * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
2151 * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
2152 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
2153 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
2154 * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
2155
2156 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
2157 sysenter.
2158 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
2159
2160 * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
2161
5f5843e3
UD
2162 * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
2163 in new TCB.
2164 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
2165 that sysinfo is properly initialized.
2166 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
2167 to 1 only for ld.so.
2168
3325198e
UD
2169 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
2170 RTLD_CORRECT_DYNAMIC_WEAK.
2171
74e8f2dc
UD
21722002-12-19 Jakub Jelinek <jakub@redhat.com>
2173
2174 * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
2175 Use return 0 as 6th argument to FORWARD4.
2176 * pthread_equal.c: Include pthreadP.h instead of pthread.h.
2177
df45b31e
UD
21782002-12-18 Ulrich Drepper <drepper@redhat.com>
2179
2180 * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
2181 * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
2182 Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
2183 (INIT_SYSINFO): New #define.
2184 (TLS_TP_INIT): Use INIT_SYSINFO.
2185 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
2186 At test to make sure SYSINFO_OFFSET value is correct.
2187 * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
2188
3d539579
UD
21892002-12-18 Jakub Jelinek <jakub@redhat.com>
2190
2191 * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
2192 * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
2193 * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
2194 [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
2195 __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
2196 __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
2197 __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
2198
d7913e0e
UD
21992002-12-18 Ulrich Drepper <drepper@redhat.com>
2200
f051627f
UD
2201 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
2202 macro instead of using int $0x80 directly.
2203
d7913e0e
UD
2204 * sysdeps/pthread/bits/stdio-lock.h: New file.
2205 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
2206 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
2207 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
2208 * Makefile (routines): Add libc-lowlevelmutex.
2209
2210 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
2211 __i686.get_pc_thunk.dx.
2212
f077a4a9
UD
22132002-12-17 Jakub Jelinek <jakub@redhat.com>
2214
2215 * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
2216 (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
2217 ($(objpfx)tst-cancel-wrappers.out): New rule.
2218 * tst-cancel-wrappers.sh: New test.
2219 * tst-locale1.c: Include signal.h.
2220 (uselocale): Test static linking of __libc_current_sigrt*.
2221
22222002-12-17 Ulrich Drepper <drepper@redhat.com>
2223
2224 * Makefile (tests): Add tst-cancel6.
2225 * tst-cancel6.c: New file
2226
bd499a3b
UD
22272002-12-17 Jakub Jelinek <jakub@redhat.com>
2228
2229 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
2230 Define meaningfully for assembler as well.
2231 * pthreadP.h (struct pthread_functions): Remove
2232 ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
2233 and ptr_pthread_attr_init_2_1 fields.
2234 * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
2235 and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
2236 * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
2237 (FORWARD3): Define using FORWARD4.
2238 (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
2239 versions.
2240 * pt-system.c: Remove duplicate stdlib.h include.
2241
0a1063f4
UD
22422002-12-16 Ulrich Drepper <drepper@redhat.com>
2243
87d60668
UD
2244 * sem_init.c: Define sem_init@GLIBC_2.0.
2245 * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
2246 * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
2247
0a1063f4
UD
2248 * flockfile.c: Moved to...
2249 * sysdeps/pthread/flockfile.c: ...here. New file.
2250 * funlockfile.c: Moved to...
2251 * sysdeps/pthread/funlockfile.c: ...here. New file.
2252 * ftrylockfile.c: Moved to...
2253 * sysdeps/pthread/ftrylockfile.c: ...here. New file.
2254
9634cf9d
UD
22552002-12-16 Jakub Jelinek <jakub@redhat.com>
2256
2257 * libc-cancellation.c: Guard both function with
2258 #if !defined NOT_IN_libc.
2259 * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
2260 automatically provided pthread wrappers.
2261 * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
2262 CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
2263 nor in libpthread.
2264 * pt-open.c: Removed.
2265 * pt-fcntl.c: Removed.
2266 * pt-fsync.c: Removed.
2267 * pt-lseek.c: Removed.
2268 * pt-msgrcv.c: Removed.
2269 * pt-msgsnd.c: Removed.
2270 * pt-msync.c: Removed.
2271 * pt-nanosleep.c: Removed.
2272 * pt-open64.c: Removed.
2273 * pt-pause.c: Removed.
2274 * pt-pread.c: Removed.
2275 * pt-pread64.c: Removed.
2276 * pt-pwrite.c: Removed.
2277 * pt-pwrite64.c: Removed.
2278 * pt-read.c: Removed.
2279 * pt-recv.c: Removed.
2280 * pt-recvfrom.c: Removed.
2281 * pt-recvmsg.c: Removed.
2282 * pt-send.c: Removed.
2283 * pt-sendto.c: Removed.
2284 * pt-sigtimedwait.c: Removed.
2285 * pt-sigwait.c: Removed.
2286 * pt-wait.c: Removed.
2287 * pt-waitpid.c: Removed.
2288 * pt-write.c: Removed.
2289 * pt-accept.c: Removed.
2290 * pt-close.c: Removed.
2291 * pt-connect.c: Removed.
2292 * pt-lseek64.c: Removed.
2293 * pt-sendmsg.c: Removed.
2294 * pt-tcdrain.c: Removed.
2295
6ee8d334
UD
22962002-12-15 Ulrich Drepper <drepper@redhat.com>
2297
81fa9371
UD
2298 * init.c (__pthread_initialize_minimal_internal): Renamed from
2299 __pthread_initialize_minimal. Make old name an alias. This
2300 converts a normal relocation into a relative relocation.
2301
f3015aa5
UD
2302 * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
2303
4cbc1950
UD
2304 * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
2305 readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
2306 * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
2307 pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
2308 pt-sigwaitinfo, pt-waitid, and pt-writev.
2309 * pt-creat.c: Removed.
2310 * pt-poll.c: Removed.
2311 * pt-pselect.c: Removed.
2312 * pt-readv.c: Removed.
2313 * pt-select.c: Removed.
2314 * pt-sigpause.c: Removed.
2315 * pt-sigsuspend.c: Removed.
2316 * pt-sigwaitinfo.c: Removed.
2317 * pt-waitid.c: Removed.
2318 * pt-writev.c: Removed.
2319
8454830b
UD
2320 * init.c (pthread_functions): New variable.
2321 (__pthread_initialize_minimal): Pass pointer to pthread_functions
2322 (or NULL) to __libc_pthread_init.
2323 * forward.c: Rewrite to use __libc:pthread_functions array to get
2324 function addresses.
2325 * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
2326 prototype.
2327 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
2328 Take new parameter. Copy content of variable pointed to by it
2329 to __libc_pthread_init.
2330
2331 * pthreadP.h (struct pthread_functions): New type.
2332 (__libc_pthread_init): Declare.
2333
2334 * pthread_attr_destroy.c: Add namespace protected alias.
2335 * pthread_attr_getdetachstate.c: Likewise.
2336 * pthread_attr_getinheritsched.c: Likewise.
2337 * pthread_attr_getschedparam.c: Likewise.
2338 * pthread_attr_getschedpolicy.c: Likewise.
2339 * pthread_attr_getscope.c: Likewise.
2340 * pthread_attr_setdetachstate.c: Likewise.
2341 * pthread_attr_setinheritsched.c: Likewise.
2342 * pthread_attr_setschedparam.c: Likewise.
2343 * pthread_attr_setschedpolicy.c: Likewise.
2344 * pthread_attr_setscope.c: Likewise.
2345 * pthread_cond_broadcast.c: Likewise.
2346 * pthread_cond_destroy.c: Likewise.
2347 * pthread_cond_init.c: Likewise.
2348 * pthread_cond_signal.c: Likewise.
2349 * pthread_cond_wait.c: Likewise.
2350 * pthread_condattr_destroy.c: Likewise.
2351 * pthread_condattr_init.c: Likewise.
2352 * pthread_equal.c: Likewise.
2353 * pthread_exit.c: Likewise.
2354 * pthread_getschedparam.c: Likewise.
2355 * pthread_self.c: Likewise.
2356 * pthread_setcancelstate.c: Likewise.
2357 * pthread_setschedparam.c: Likewise.
2358 * pthread_mutex_destroy.c: Likewise.
2359 * pthread_mutex_init.c: Likewise.
2360 * pthreadP.h: Add prototypes for the aliases.
2361
0d5f4929
UD
2362 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
2363 multiple_threads member in correct TCB to 1.
2364
6ee8d334
UD
2365 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
2366 SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
2367 member of thread decriptor, otherwise return unconditionally 1.
2368
2fb6444d
UD
23692002-12-14 Ulrich Drepper <drepper@redhat.com>
2370
2371 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
2372 regular Linux version. Remove file.
2373 * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
2374 * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
2375 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
2376 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
2377 * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
2378 * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
2379 * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
2380 * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
2381 * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
2382 * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
2383 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
2384 * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
2385 * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
2386 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
2387 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
2388 * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
2389 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
2390 * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
2391 * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
2392 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
2393 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
2394 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
2395 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
2396 * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
2397 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
2398 * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
2399 * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
2400 * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
2401 * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
2402 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
2403
86b2dc40
UD
24042002-12-14 Jakub Jelinek <jakub@redhat.com>
2405
2406 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
2407 * sysdeps/unix/sysv/linux/open.c: Removed.
2408 * sysdeps/unix/sysv/linux/fsync.c: Removed.
2409 * sysdeps/unix/sysv/linux/lseek.c: Removed.
2410 * sysdeps/unix/sysv/linux/msync.c: Removed.
2411 * sysdeps/unix/sysv/linux/read.c: Removed.
2412 * sysdeps/unix/sysv/linux/close.c: Removed.
2413 * sysdeps/unix/sysv/linux/creat.c: Removed.
2414 * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
2415 * sysdeps/unix/sysv/linux/pause.c: Removed.
2416 * sysdeps/unix/sysv/linux/select.c: Removed.
2417 * sysdeps/unix/sysv/linux/write.c: Removed.
2418
9d263d72
UD
24192002-12-14 Ulrich Drepper <drepper@redhat.com>
2420
2421 * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
2422 element in TCB to see whether locking is needed.
2423
2424 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
2425 MULTIPLE_THREADS_OFFSET value is correct.
2426
2427 * sysdeps/unix/sysv/linux/close.c: New file.
2428 * sysdeps/unix/sysv/linux/connect.S: New file.
2429 * sysdeps/unix/sysv/linux/creat.c: New file.
2430 * sysdeps/unix/sysv/linux/fsync.c: New file.
2431 * sysdeps/unix/sysv/linux/llseek.c: New file.
2432 * sysdeps/unix/sysv/linux/lseek.c: New file.
2433 * sysdeps/unix/sysv/linux/msgrcv.c: New file.
2434 * sysdeps/unix/sysv/linux/msgsnd.c: New file.
2435 * sysdeps/unix/sysv/linux/msync.c: New file.
2436 * sysdeps/unix/sysv/linux/nanosleep.c: New file.
2437 * sysdeps/unix/sysv/linux/open.c: New file.
2438 * sysdeps/unix/sysv/linux/open64.c: New file.
2439 * sysdeps/unix/sysv/linux/pause.c: New file.
2440 * sysdeps/unix/sysv/linux/poll.c: New file.
2441 * sysdeps/unix/sysv/linux/pread.c: New file.
2442 * sysdeps/unix/sysv/linux/pread64.c: New file.
2443 * sysdeps/unix/sysv/linux/pselect.c: New file.
2444 * sysdeps/unix/sysv/linux/pwrite.c: New file.
2445 * sysdeps/unix/sysv/linux/pwrite64.c: New file.
2446 * sysdeps/unix/sysv/linux/readv.c: New file.
2447 * sysdeps/unix/sysv/linux/recv.S: New file.
2448 * sysdeps/unix/sysv/linux/recvfrom.S: New file.
2449 * sysdeps/unix/sysv/linux/recvmsg.S: New file.
2450 * sysdeps/unix/sysv/linux/select.c: New file.
2451 * sysdeps/unix/sysv/linux/send.S: New file.
2452 * sysdeps/unix/sysv/linux/sendmsg.S: New file.
2453 * sysdeps/unix/sysv/linux/sendto.S: New file.
2454 * sysdeps/unix/sysv/linux/sigpause.c: New file.
2455 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
2456 * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
2457 * sysdeps/unix/sysv/linux/sigwait.c: New file.
2458 * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
2459 * sysdeps/unix/sysv/linux/system.c: New file.
2460 * sysdeps/unix/sysv/linux/tcdrain.c: New file.
2461 * sysdeps/unix/sysv/linux/wait.c: New file.
2462 * sysdeps/unix/sysv/linux/waitid.c: New file.
2463 * sysdeps/unix/sysv/linux/waitpid.c: New file.
2464 * sysdeps/unix/sysv/linux/writev.c: New file.
2465 * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2466
2467 * pt-readv.c: Fix comment.
2468
24692002-12-14 Jakub Jelinek <jakub@redhat.com>
2470
2471 * tst-cleanup1.c: Include stdlib.h.
2472
2473 * tst-cancel5.c: New test.
2474 * Makefile (tests): Add tst-cancel5.
2475 (tst-cancel5): Link against libc.so libpthread.so in that order.
2476
9ae0909b
UD
24772002-12-13 Ulrich Drepper <drepper@redhat.com>
2478
b7bdd9c4
UD
2479 * forward.c (test_loaded): Prevent recursive calls.
2480
9ae0909b
UD
2481 * Makefile (routines): Add libc-cancellation.
2482 * libc-cancellation.c: New file.
2483 * descr.h (struct pthread): Add multiple_threads field.
2484 * allocatestack.c (allocate_stack): Initialize multiple_header field of
2485 new thread descriptor to 1.
2486 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
2487 Initialize multiple_thread field after successful thread creation.
2488 * cancellation.c (__do_cancel): Move to pthreadP.h.
2489 (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
2490 (__pthread_disable_asynccancel): Add internal_function attribute.
2491 * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
2492 * pthread_setcancelstate.c: Likewise.
2493 * pthread_setcanceltype.c: Likewise.
2494 * pthread_exit.c: Likewise.
2495 * pthreadP.h (CANCELLATION_P): Likewise.
2496 (__do_cancel): Define as static inline.
2497 (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
2498 (__libc_enable_asynccancel, __libc_disable_asynccancel): New
2499 declarations.
2500 * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
2501 fields. Define MULTIPLE_THREADS_OFFSET.
2502 * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
2503 declaration.
2504 * sysdeps/unix/sysv/linux/accept.S: New file.
2505 * sysdeps/unix/sysv/linux/read.c: New file.
2506 * sysdeps/unix/sysv/linux/write.c: New file.
2507 * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
2508 * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
2509 initialization of __libc_locking_needed.
2510 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
2511 __libc_locking_needed, use multiple_threads field in TCB.
2512 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
2513
22f20674
UD
25142002-12-12 Ulrich Drepper <drepper@redhat.com>
2515
2ad2e1e7
UD
2516 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
2517 version.
2518 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
2519
22f20674
UD
2520 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
2521 access to __libc_locking_needed for PIC.
2522
aa80bf86
UD
25232002-12-12 Jakub Jelinek <jakub@redhat.com>
2524
2525 * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
2526 declare for libc.so.
2527 (__libc_lock_init, __libc_lock_init_recursive): Change into comma
2528 expression.
2529 (__libc_lock_lock): Put into statement expression.
2530 (__libc_lock_unlock): Remove trailing semicolon.
2531 * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
2532
24021373
RM
25332002-12-12 Roland McGrath <roland@redhat.com>
2534
2535 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
2536 "m" constraint to refer to __libc_locking_needed. Declare it here.
2537
14e7aece
UD
25382002-12-12 Ulrich Drepper <drepper@redhat.com>
2539
2540 * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
2541 * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
2542 Initialize __libc_locking_needed.
2543 * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
2544 instead of __register_pthread_fork_handler.
2545 * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
2546 * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
2547 fork-gen with libc_pthread_init.
2548 * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
2549 of __register_pthread_fork_handler.
2550 * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
2551 of __register_pthread_fork_handler.
2552 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
2553 __libc_locking_needed to determine whether lock prefix can be avoided.
2554 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
2555
85631c8e
UD
25562002-12-11 Ulrich Drepper <drepper@redhat.com>
2557
da63009e
UD
2558 * Makefile (tests): Add tst-cleanup1.
2559 * tst-cleanup1.c: New file.
2560 * cancellation.c (__cleanup_thread): Removed.
2561 (__do_cancel): Remove call to __cleanup_thread.
2562 * pthreadP.h: Remove __cleanup_thread prorotype.
2563
000160a2
UD
2564 * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
2565 Remember function and argument even if cancellation handler
2566 function is not available.
2567 (__libc_cleanup_region_end): Execute registered function directly if
2568 pthread functions are not available.
2569 (__libc_cleanup_end): Likewise.
2570
85631c8e
UD
2571 * init.c (__pthread_initialize_minimal): Fix initialization in
2572 static lib by preventing gcc from being too clever.
2573
dce8f2b6
UD
25742002-12-10 Ulrich Drepper <drepper@redhat.com>
2575
34a075be
UD
2576 * init.c (__pthread_initialize_minimal): Remove unneccesary
2577 sigaddset call.
2578
dce8f2b6
UD
2579 * Makefile (tests): We can run tst-locale2 now.
2580
e5e45b53
UD
25812002-12-09 Ulrich Drepper <drepper@redhat.com>
2582
2583 * Versions: Remove duplicated sigwait entry.
2584
bdb04f92
UD
25852002-12-08 Ulrich Drepper <drepper@redhat.com>
2586
1e506629
UD
2587 * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
2588 inside libpthread.
2589
a3957dd5
UD
2590 * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
2591
bdb04f92
UD
2592 * pthreadP.h: Declare __pthread_enable_asynccancel and
2593 __pthread_disable_asynccancel.
2594 (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
2595 (CANCEL_RESET): Use __pthread_disable_asynccancel.
2596 * cancellation.c (__pthread_enable_asynccancel): New function.
2597 (__pthread_disable_asynccancel): New function.
2598 * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
2599 * pt-close.c: Likewise.
2600 * pt-connect.c: Likewise.
2601 * pt-creat.c: Likewise.
2602 * pt-fcntl.c: Likewise.
2603 * pt-fsync.c: Likewise.
2604 * pt-lseek.c: Likewise.
2605 * pt-lseek64.c: Likewise.
2606 * pt-msgrcv.c: Likewise.
2607 * pt-msgsnd.c: Likewise.
2608 * pt-msync.c: Likewise.
2609 * pt-nanosleep.c: Likewise.
2610 * pt-open.c: Likewise.
2611 * pt-open64.c: Likewise.
2612 * pt-pause.c: Likewise.
2613 * pt-poll.c: Likewise.
2614 * pt-pread.c: Likewise.
2615 * pt-pread64.c: Likewise.
2616 * pt-pselect.c: Likewise.
2617 * pt-pwrite.c: Likewise.
2618 * pt-pwrite64.c: Likewise.
2619 * pt-read.c: Likewise.
2620 * pt-readv.c: Likewise.
2621 * pt-recv.c: Likewise.
2622 * pt-recvfrom.c: Likewise.
2623 * pt-recvmsg.c: Likewise.
2624 * pt-select.c: Likewise.
2625 * pt-send.c: Likewise.
2626 * pt-sendmsg.c: Likewise.
2627 * pt-sendto.c: Likewise.
2628 * pt-sigpause.c: Likewise.
2629 * pt-sigsuspend.c: Likewise.
2630 * pt-sigtimedwait.c: Likewise.
2631 * pt-sigwait.c: Likewise.
2632 * pt-sigwaitinfo.c: Likewise.
2633 * pt-system.c: Likewise.
2634 * pt-tcdrain.c: Likewise.
2635 * pt-wait.c: Likewise.
2636 * pt-waitid.c: Likewise.
2637 * pt-waitpid.c: Likewise.
2638 * pt-write.c: Likewise.
2639 * pt-writev.c: Likewise.
a3957dd5
UD
2640 * pthread_join.c: Likewise.
2641 * pthread_timedjoin.c: Likewise.
bdb04f92
UD
2642
2643 * pt-sigpause.c (sigsuspend): Call __sigsuspend.
2644 (__xpg_sigpause): New function.
2645 * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
2646
6ccb3834
UD
26472002-12-07 Ulrich Drepper <drepper@redhat.com>
2648
09efc3ba
UD
2649 * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
2650
2651 * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
2652 _GI_pthread_cleanup_pop to pthreadP.h.
2653
2654 * ftrylockfile.c: Use _IO_lock_trylock instead of
2655 pthread_mutex_trylock.
2656
2657 * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
2658 (CANCEL_RESET): Likewise.
2659 (__pthread_setcanceltype_): Declare.
2660 (__pthread_mutex_lock_internal): Declare.
2661 (__pthread_mutex_unlock_internal): Declare.
2662 (__pthread_once_internal): Declare.
2663 (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
2664 (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
2665
2666 * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
2667 and pthread_mutex_unlock.
2668 * pthread_cond_wait.c: Likewise.
2669 * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
2670 * pthread_mutex_unlock.c: Likewise.
2671
2672 * pthread_setcanceltype.c: Add additional alias
2673 __pthread_setcanceltype.
2674
2675 * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
2676 * sem_open.c (sem_open): Likewise.
2677 Use __libc_open, __libc_write, and __libc_close instead of
2678 open, write, and close respectively.
2679
2680 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
2681 Rewrite as statement expression since it must return a value.
2682
2683 * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
2684 * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
2685 __pthread_kill.
2686
2687 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
2688 alias __pthread_once_internal.
2689
6ccb3834
UD
2690 * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
2691
d3c9f895
UD
26922002-12-06 Ulrich Drepper <drepper@redhat.com>
2693
4614167a
UD
2694 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
2695 * tst-stdio1.c: New file.
2696 * tst-stdio2.c: New file.
2697
a4548cea
UD
2698 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
2699
d3c9f895
UD
2700 * Makefile (tests): Comment out tst-locale2 for now.
2701 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
2702
2703 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
2704 -D_IO_MTSAFE_IO.
2705 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
2706 Use _IO_lock_init instead of explicit assignment.
2707
2708 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
2709 Define __libc_lock_* and __libc_lock_recursive macros with
2710 lowlevellock macros, not pthread mutexes.
2711
2712 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
2713 of pthread_mutex_lock.
2714 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
2715 instead of pthread_mutex_unlock.
2716
fde89ad0
RM
27172002-12-06 Roland McGrath <roland@redhat.com>
2718
2719 * allocatestack.c (__stack_user): Use uninitialized defn.
2720 * init.c (__pthread_initialize_minimal): Initialize it here.
2721
11767d47
RM
27222002-12-05 Roland McGrath <roland@redhat.com>
2723
fde89ad0
RM
2724 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
2725 string.
2726 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2727
11767d47
RM
2728 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
2729 missing & here too.
2730
440d8bc2
UD
27312002-12-05 Ulrich Drepper <drepper@redhat.com>
2732
2733 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2734 lowlevellock.
2735 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
2736 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
2737 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
2738 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
2739 for __libc_lock_* macros.
2740 * Makefile (routines): Add libc-lowlevellock.
2741
27422002-10-09 Roland McGrath <roland@redhat.com>
2743
2744 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
2745 Under [__PIC__], call the function via the pointer fetched for
2746 comparison rather than a call by name that uses the PLT.
2747 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
2748 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
2749 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
2750 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
2751 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
2752
d5ed0118
RM
27532002-12-04 Roland McGrath <roland@redhat.com>
2754
2755 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
2756
2757 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
2758 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
2759
2760 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
2761
eaa4099f
UD
27622002-12-04 Ulrich Drepper <drepper@redhat.com>
2763
2764 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
2765 a completely opaque, non-integer type.
2766 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
2767
33b5d0cc
UD
27682002-12-05 Jakub Jelinek <jakub@redhat.com>
2769
2770 * sysdeps/i386/tls.h: Include stdlib.h.
2771 * sysdeps/x86_64/tls.h: Likewise.
2772
7a5cdb30
UD
27732002-12-04 Ulrich Drepper <drepper@redhat.com>
2774
c4a6d859
UD
2775 * Makefile (tests): Add tst-locale2.
2776 (tests-static): Likewise.
2777 * tst-locale2.c: New file.
2778
7a5cdb30
UD
2779 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
2780 volatile and add memory clobbers to lock operations.
2781
d82d5d12
UD
27822002-12-03 Ulrich Drepper <drepper@redhat.com>
2783
69cae3cf
UD
2784 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
2785 * sysdeps/i386/i486/bits/atomic.h: New file.
2786 * sysdeps/i386/i586/bits/atomic.h: New file.
2787 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
2788 include i486 version.
2789 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
2790 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
c97c64de 2791 Patch by Marijn Ros <marijn@mad.scientist.com>.
69cae3cf 2792
e4044c01
UD
2793 * allocatestack.c (get_cached_stack): Don't crash if we first
2794 found a stack with a larger size then needed.
2795 Reported by Hui Huang <hui.huang@sun.com>.
2796
d82d5d12
UD
2797 * Makefile (tests): Add tst-sysconf.
2798 * tst-sysconf.c: New file.
2799
2800 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
2801 PTHREAD_THREADS_MAX.
2802
fa9a4ff0
RM
28032002-12-02 Roland McGrath <roland@redhat.com>
2804
2805 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
2806 Declare using hidden_proto instead of attribute_hidden, so there are
2807 non-.hidden static symbols for gdb to find.
2808 (__pthread_keys): Likewise.
2809 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
2810 * allocatestack.c (__stack_user): Likewise.
2811 * pthread_create.c (__pthread_keys): Likewise.
2812 (__nptl_threads_events, __nptl_last_event): Make these static instead
2813 of hidden.
2814 * pthread_key_create.c (__pthread_pthread_keys_max,
2815 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
2816
91949a33
UD
28172002-12-02 Ulrich Drepper <drepper@redhat.com>
2818
c22b52fa
UD
2819 * Makefile (tests): Add tst-locale1. If buid-static is yes link
2820 statically.
2821 * tst-locale1.c: New file.
2822
beb6aa41
UD
2823 * pthread_cond_timedwait.c: Include <stdlib.h>.
2824
91949a33
UD
2825 * Makefile (tests): Add tst-fork2 and tst-fork3.
2826 * tst-fork2.c: New file.
2827 * tst-fork3.c: New file.
2828
654dff90
UD
28292002-11-28 Ulrich Drepper <drepper@redhat.com>
2830
cb0e76b4
UD
2831 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
2832
2833 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
2834 require it to 200112L.
2835
2836 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
2837 instruction only if HAVE_CMOV is defined.
2838 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
2839
975aa229
UD
2840 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
2841
654dff90
UD
2842 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
2843
2844 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
2845
2846 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
2847
a3931336
UD
28482002-11-27 Ulrich Drepper <drepper@redhat.com>
2849
c10c099c
UD
2850 * sysdeps/x86_64/bits/atomic.h: New file.
2851
2852 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
2853 16-bit operations.
2854
dca99d27
UD
2855 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
2856 possible since gettid cannot fail.
2857
f78deea6
UD
2858 * sysdeps/x86_64/pthreaddef.h: New file.
2859
2860 * sysdeps/i386/pthreaddef.h (gettid): Removed.
2861
2862 * sysdeps/x86_64/pthread_spin_init.c: New file.
2863 * sysdeps/x86_64/pthread_spin_lock.c: New file.
2864 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
2865 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
2866
2867 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
2868 Add missing lock prefix. Minute optimization.
2869
2870 * tst-spin2.c (main): Also check successful trylock call.
2871
2872 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
2873 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
2874
2875 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
2876 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
2877
2878 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
2879 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
2880 value in case of an error. Add support for INTERNAL_SYSCALL.
b54e18eb
UD
2881
2882 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
2883 value in case of an error.
2884
a3931336
UD
2885 * sysdeps/x86_64/tls.h: New file.
2886
76a50749
UD
28872002-11-26 Ulrich Drepper <drepper@redhat.com>
2888
117c452c
UD
2889 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
2890 takes the array member name and the index as parameters.
2891 (THREAD_SETMEM_NC): Likewise.
2892 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
2893 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
2894 interfaces.
2895
2896 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
2897 to decide which code to use.
2898 (THREAD_SETMEM_NC): Likewise.
2899
76a50749
UD
2900 * allocatestack.c (queue_stack): Don't remove stack from list here.
2901 Do it in the caller. Correct condition to prematurely terminate
2902 loop to free stacks.
2903 (__deallocate_stack): Remove stack from list here.
2904
29052002-11-26 Ulrich Drepper <drepper@redhat.com>
2906
2907 * Makefile (tests): Add tst-stack1.
2908 * tst-stack1.c: New file.
2909
2910 * allocatestack.c (allocate_stack): Initialize the TCB on a user
2911 provided stack.
2912
2913 * pthread_attr_getstack.c: Return bottom of the thread area.
2914
29152002-11-25 Ulrich Drepper <drepper@redhat.com>
2916
2917 * Makefile (libpthread-routines): Add pt-allocrtsig and
2918 pthread_kill_other_threads.
2919 * pt-allocrtsig.c: New file.
2920 * pthread_kill_other_threads.c: New file.
2921 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
2922 all three functions.
2923 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2924 allocrtsig.
2925 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
2926 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
2927 and __libc_allocate_rtsig_private.
2928 * Versions (libpthread): Export pthread_kill_other_threads_np,
2929 __libc_current_sigrtmin, and __libc_current_sigrtmax.
2930
29312002-11-24 Ulrich Drepper <drepper@redhat.com>
2932
2933 * allocatestack.c (allocate_stack): stackaddr in attribute points to
2934 the end of the stack. Adjust computations.
2935 When mprotect call fails dequeue stack and free it.
2936 * pthread_attr_setstack.c: Store top of the stack in stackaddr
2937 attribute.
2938 * pthread_getattr_np.c: Likewise.
2939
2940 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
2941 surprises.
2942
29432002-11-23 Ulrich Drepper <drepper@redhat.com>
2944
2945 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
2946 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
2947
29482002-11-22 Ulrich Drepper <drepper@redhat.com>
2949
2950 * pthread_getspecific.c: Optimize access to first 2nd-level array.
2951 * pthread_setspecific.c: Likewise.
2952
29532002-11-21 Ulrich Drepper <drepper@redhat.com>
2954
2955 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
2956 definitions. Get them from the official place.
2957 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
2958
2959 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
2960 Use new CLONE_ flags in clone() calls.
2961
2962 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
2963 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
2964
2965 * Versions: Add pthread_* functions for libc.
2966 * forward.c: New file.
2967
2968 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
2969 errno-loc.
2970 * herrno.c: New file.
2971 * res.c: New file.
2972
2973 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
2974 sem_trywait, and sem_timedwait. Add herrno and res.
2975 * sem_init.c: Don't initialize lock and waiters members.
2976 * sem_open.c: Likewise.
2977 * sem_post.c: Removed.
2978 * sem_wait.c: Removed.
2979 * sem_trywait.c: Removed.
2980 * sem_timedwait.c: Removed.
2981 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
2982 Includes full implementations of sem_post, sem_wait, sem_trywait,
2983 and sem_timedwait.
2984 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
2985 for new implementation.
2986 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
2987 and waiters fields.
2988
2989 * tst-sem3.c: Improve error message.
2990 * tst-signal3.c: Likewise.
2991
2992 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
2993 to tell the kernel about the termination futex and to initialize tid
2994 member. Don't initialize main_thread.
2995 * descr.h (struct pthread): Remove main_thread member.
2996 * cancelllation.c (__do_cancel): Remove code handling main thread.
2997 The main thread is not special anymore.
2998
2999 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
3000 size of the stacks to stack_cache_actsize.
3001
3002 * pt-readv.c: Add missing "defined".
3003 * pt-sigwait.c: Likewise.
3004 * pt-writev.c: Likewise.
3005
30062002-11-09 Ulrich Drepper <drepper@redhat.com>
3007
3008 * Versions: Export __connect from libpthread.
3009 Patch by Luca Barbieri <ldb@ldb.ods.org>.
3010
3011 * Makefile (libpthread-routines): Add pt-raise.
3012 * sysdeps/unix/sysv/linux/raise.c: New file.
3013 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
3014 * sysdeps/generic/pt-raise.c: New file.
3015
3016 * pthread_cond_init.c: Initialize all data elements of the condvar
3017 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
3018
3019 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
3020 * pthread_create.c: Likewise.
3021
3022 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
3023 * tst-key1.c: New file.
3024 * tst-key2.c: New file.
3025 * tst-key3.c: New file.
3026
3027 * Versions: Export pthread_detach for version GLIBC_2.0.
3028 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
3029
30302002-11-08 Ulrich Drepper <drepper@redhat.com>
3031
3032 * pthread_key_create.c: Terminate search after an unused key was found.
3033 Patch by Luca Barbieri <ldb@ldb.ods.org>.
3034
3035 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
3036 Patch by Luca Barbieri <ldb@ldb.ods.org>.
3037
30382002-10-10 Ulrich Drepper <drepper@redhat.com>
3039
3040 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
3041 dynamic lookup for errno in PIC.
3042
3043 * allocatestack.c (get_cached_stack): Rearrange code slightly to
3044 release the stack lock as soon as possible.
3045 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
3046 the static TLS block.
3047 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
3048
3049 * cancellation.c: Renamed from cancelation.c.
3050 * Makefile: Adjust accordingly.
3051 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
3052 * cleanup_defer.c: Use CANCELLATION_P.
3053 * pthread_testcancel.c: Likewise.
3054 * descr.h: Fix spelling in comments.
3055 * init.c: Likewise.
3056 * pthread_getattr_np.c: Likewise.
3057 * pthread_getschedparam.c: Likewise.
3058 * pthread_setschedparam.c: Likewise.
3059 * Versions: Likewise.
3060
3061 * pt-pselect.c: New file.
3062 * Makefile (libpthread-routines): Add pt-pselect.
3063 * Versions: Add pselect.
3064
3065 * tst-cancel4.c: New file.
3066 * Makefile (tests): Add tst-cancel4.
3067
30682002-10-09 Ulrich Drepper <drepper@redhat.com>
3069
3070 * pthread_mutex_lock.c: Always record lock ownership.
3071 * pthread_mutex_timedlock.c: Likewise.
3072 * pthread_mutex_trylock.c: Likewise.
3073
3074 * pt-readv.c: New file.
3075 * pt-writev.c: New file.
3076 * pt-creat.c: New file.
3077 * pt-msgrcv.c: New file.
3078 * pt-msgsnd.c: New file.
3079 * pt-poll.c: New file.
3080 * pt-select.c: New file.
3081 * pt-sigpause.c: New file.
3082 * pt-sigsuspend.c: New file.
3083 * pt-sigwait.c: New file.
3084 * pt-sigwaitinfo.c: New file.
3085 * pt-waitid.c: New file.
3086 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
3087 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
3088 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
3089 * Versions: Add all the new functions.
3090
3091 * tst-exit1.c: New file.
3092 * Makefile (tests): Add tst-exit1.
3093
3094 * sem_timedwait.c: Minor optimization for more optimal fastpath.
3095
30962002-10-08 Ulrich Drepper <drepper@redhat.com>
3097
3098 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
3099
3100 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
3101 call. pthread_join is an official cancellation point.
3102 * pthread_timedjoin.c: Likewise.
3103
3104 * pthread_cond_wait.c: Revert order in which internal lock are dropped
3105 and the condvar's mutex are retrieved.
3106 * pthread_cond_timedwait.c: Likewise.
3107 Reported by dice@saros.East.Sun.COM.
3108
31092002-10-07 Ulrich Drepper <drepper@redhat.com>
3110
3111 * pthreadP.h: Cut out all type definitions and move them...
3112 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
3113 * pthreadP.h: Include <internaltypes.h>.
3114
3115 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
3116 performance tweaks.
3117
3118 * sem_trywait.c: Shuffle #includes around to get right order.
3119 * sem_timedwait.c: Likewise.
3120 * sem_post.c: Likewise.
3121 * sem_wait.c: Likewise.
3122
3123 * nptl 0.3 released.
3124
3125 * Makefile (tests): Add tst-signal3.
3126 * tst-signal3.c: New file.
3127
31282002-10-05 Ulrich Drepper <drepper@redhat.com>
3129
3130 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
3131 the asms modify the sem object.
3132 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
3133
3134 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
3135 the actual members.
3136 * pthreadP.h (struct sem): New type. Actual semaphore type.
3137 * semaphoreP.h: Include pthreadP.h.
3138 * sem_getvalue.c: Adjust to sem_t change.
3139 * sem_init.c: Likewise.
3140 * sem_open.c: Likewise.
3141 * sem_post.c: Likewise.
3142 * sem_timedwait.c: Likewise.
3143 * sem_trywait.c: Likewise.
3144 * sem_wait.c: Likewise.
3145
31462002-10-04 Ulrich Drepper <drepper@redhat.com>
3147
3148 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
3149 * tst-basic2.c: New file.
3150 * tst-exec1.c: New file.
3151 * tst-exec2.c: New file.
3152 * tst-exec3.c: New file.
3153
3154 * tst-fork1.c: Remove extra */.
3155
3156 * nptl 0.2 released. The API for IA-32 is complete.
This page took 0.383368 seconds and 5 git commands to generate.