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