]> git.ipfire.org Git - thirdparty/glibc.git/blob - nptl/ChangeLog
Update.
[thirdparty/glibc.git] / nptl / ChangeLog
1 2002-12-06 Ulrich Drepper <drepper@redhat.com>
2
3 * Makefile (tests): Add tst-stdio1 and tst-stdio2.
4 * tst-stdio1.c: New file.
5 * tst-stdio2.c: New file.
6
7 * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
8
9 * Makefile (tests): Comment out tst-locale2 for now.
10 (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
11
12 * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
13 -D_IO_MTSAFE_IO.
14 * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
15 Use _IO_lock_init instead of explicit assignment.
16
17 * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
18 Define __libc_lock_* and __libc_lock_recursive macros with
19 lowlevellock macros, not pthread mutexes.
20
21 * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
22 of pthread_mutex_lock.
23 * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
24 instead of pthread_mutex_unlock.
25
26 2002-12-06 Roland McGrath <roland@redhat.com>
27
28 * allocatestack.c (__stack_user): Use uninitialized defn.
29 * init.c (__pthread_initialize_minimal): Initialize it here.
30
31 2002-12-05 Roland McGrath <roland@redhat.com>
32
33 * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
34 string.
35 * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
36
37 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
38 missing & here too.
39
40 2002-12-05 Ulrich Drepper <drepper@redhat.com>
41
42 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
43 lowlevellock.
44 * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
45 * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
46 * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
47 * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
48 for __libc_lock_* macros.
49 * Makefile (routines): Add libc-lowlevellock.
50
51 2002-10-09 Roland McGrath <roland@redhat.com>
52
53 * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
54 Under [__PIC__], call the function via the pointer fetched for
55 comparison rather than a call by name that uses the PLT.
56 (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
57 (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
58 (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
59 (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
60 (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
61
62 2002-12-04 Roland McGrath <roland@redhat.com>
63
64 * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
65
66 * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
67 * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
68
69 * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
70
71 2002-12-04 Ulrich Drepper <drepper@redhat.com>
72
73 * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
74 a completely opaque, non-integer type.
75 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
76
77 2002-12-05 Jakub Jelinek <jakub@redhat.com>
78
79 * sysdeps/i386/tls.h: Include stdlib.h.
80 * sysdeps/x86_64/tls.h: Likewise.
81
82 2002-12-04 Ulrich Drepper <drepper@redhat.com>
83
84 * Makefile (tests): Add tst-locale2.
85 (tests-static): Likewise.
86 * tst-locale2.c: New file.
87
88 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
89 volatile and add memory clobbers to lock operations.
90
91 2002-12-03 Ulrich Drepper <drepper@redhat.com>
92
93 * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
94 * sysdeps/i386/i486/bits/atomic.h: New file.
95 * sysdeps/i386/i586/bits/atomic.h: New file.
96 * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
97 include i486 version.
98 * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
99 * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
100 Patch by Marjin Ros <marjin@mad.scientist.com>.
101
102 * allocatestack.c (get_cached_stack): Don't crash if we first
103 found a stack with a larger size then needed.
104 Reported by Hui Huang <hui.huang@sun.com>.
105
106 * Makefile (tests): Add tst-sysconf.
107 * tst-sysconf.c: New file.
108
109 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
110 PTHREAD_THREADS_MAX.
111
112 2002-12-02 Roland McGrath <roland@redhat.com>
113
114 * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
115 Declare using hidden_proto instead of attribute_hidden, so there are
116 non-.hidden static symbols for gdb to find.
117 (__pthread_keys): Likewise.
118 * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
119 * allocatestack.c (__stack_user): Likewise.
120 * pthread_create.c (__pthread_keys): Likewise.
121 (__nptl_threads_events, __nptl_last_event): Make these static instead
122 of hidden.
123 * pthread_key_create.c (__pthread_pthread_keys_max,
124 __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
125
126 2002-12-02 Ulrich Drepper <drepper@redhat.com>
127
128 * Makefile (tests): Add tst-locale1. If buid-static is yes link
129 statically.
130 * tst-locale1.c: New file.
131
132 * pthread_cond_timedwait.c: Include <stdlib.h>.
133
134 * Makefile (tests): Add tst-fork2 and tst-fork3.
135 * tst-fork2.c: New file.
136 * tst-fork3.c: New file.
137
138 2002-11-28 Ulrich Drepper <drepper@redhat.com>
139
140 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
141
142 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
143 require it to 200112L.
144
145 * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
146 instruction only if HAVE_CMOV is defined.
147 * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
148
149 * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
150
151 * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
152
153 * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
154
155 * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
156
157 2002-11-27 Ulrich Drepper <drepper@redhat.com>
158
159 * sysdeps/x86_64/bits/atomic.h: New file.
160
161 * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
162 16-bit operations.
163
164 * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
165 possible since gettid cannot fail.
166
167 * sysdeps/x86_64/pthreaddef.h: New file.
168
169 * sysdeps/i386/pthreaddef.h (gettid): Removed.
170
171 * sysdeps/x86_64/pthread_spin_init.c: New file.
172 * sysdeps/x86_64/pthread_spin_lock.c: New file.
173 * sysdeps/x86_64/pthread_spin_trylock.c: New file.
174 * sysdeps/x86_64/pthread_spin_unlock.c: New file.
175
176 * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
177 Add missing lock prefix. Minute optimization.
178
179 * tst-spin2.c (main): Also check successful trylock call.
180
181 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
182 syscall. Fix typo in case INTERNAL_SYSCALL is not used.
183
184 * sysdeps/i386/pthread_spin_destroy.c: Moved to...
185 * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
186
187 * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
188 * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
189 value in case of an error. Add support for INTERNAL_SYSCALL.
190
191 * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
192 value in case of an error.
193
194 * sysdeps/x86_64/tls.h: New file.
195
196 2002-11-26 Ulrich Drepper <drepper@redhat.com>
197
198 * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
199 takes the array member name and the index as parameters.
200 (THREAD_SETMEM_NC): Likewise.
201 * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
202 * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
203 interfaces.
204
205 * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
206 to decide which code to use.
207 (THREAD_SETMEM_NC): Likewise.
208
209 * allocatestack.c (queue_stack): Don't remove stack from list here.
210 Do it in the caller. Correct condition to prematurely terminate
211 loop to free stacks.
212 (__deallocate_stack): Remove stack from list here.
213
214 2002-11-26 Ulrich Drepper <drepper@redhat.com>
215
216 * Makefile (tests): Add tst-stack1.
217 * tst-stack1.c: New file.
218
219 * allocatestack.c (allocate_stack): Initialize the TCB on a user
220 provided stack.
221
222 * pthread_attr_getstack.c: Return bottom of the thread area.
223
224 2002-11-25 Ulrich Drepper <drepper@redhat.com>
225
226 * Makefile (libpthread-routines): Add pt-allocrtsig and
227 pthread_kill_other_threads.
228 * pt-allocrtsig.c: New file.
229 * pthread_kill_other_threads.c: New file.
230 * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
231 all three functions.
232 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
233 allocrtsig.
234 * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
235 __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
236 and __libc_allocate_rtsig_private.
237 * Versions (libpthread): Export pthread_kill_other_threads_np,
238 __libc_current_sigrtmin, and __libc_current_sigrtmax.
239
240 2002-11-24 Ulrich Drepper <drepper@redhat.com>
241
242 * allocatestack.c (allocate_stack): stackaddr in attribute points to
243 the end of the stack. Adjust computations.
244 When mprotect call fails dequeue stack and free it.
245 * pthread_attr_setstack.c: Store top of the stack in stackaddr
246 attribute.
247 * pthread_getattr_np.c: Likewise.
248
249 * descr.h (IS_DETACHED): Add some more parenthesis to prevent
250 surprises.
251
252 2002-11-23 Ulrich Drepper <drepper@redhat.com>
253
254 * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
255 attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
256
257 2002-11-22 Ulrich Drepper <drepper@redhat.com>
258
259 * pthread_getspecific.c: Optimize access to first 2nd-level array.
260 * pthread_setspecific.c: Likewise.
261
262 2002-11-21 Ulrich Drepper <drepper@redhat.com>
263
264 * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
265 definitions. Get them from the official place.
266 * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
267
268 * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
269 Use new CLONE_ flags in clone() calls.
270
271 * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
272 * sysdeps/unix/sysv/linux/i386/fork.c: New file.
273
274 * Versions: Add pthread_* functions for libc.
275 * forward.c: New file.
276
277 * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
278 errno-loc.
279 * herrno.c: New file.
280 * res.c: New file.
281
282 * Makefile (libpthread-routines): Remove sem_post, sem_wait,
283 sem_trywait, and sem_timedwait. Add herrno and res.
284 * sem_init.c: Don't initialize lock and waiters members.
285 * sem_open.c: Likewise.
286 * sem_post.c: Removed.
287 * sem_wait.c: Removed.
288 * sem_trywait.c: Removed.
289 * sem_timedwait.c: Removed.
290 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
291 Includes full implementations of sem_post, sem_wait, sem_trywait,
292 and sem_timedwait.
293 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
294 for new implementation.
295 * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
296 and waiters fields.
297
298 * tst-sem3.c: Improve error message.
299 * tst-signal3.c: Likewise.
300
301 * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
302 to tell the kernel about the termination futex and to initialize tid
303 member. Don't initialize main_thread.
304 * descr.h (struct pthread): Remove main_thread member.
305 * cancelllation.c (__do_cancel): Remove code handling main thread.
306 The main thread is not special anymore.
307
308 * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
309 size of the stacks to stack_cache_actsize.
310
311 * pt-readv.c: Add missing "defined".
312 * pt-sigwait.c: Likewise.
313 * pt-writev.c: Likewise.
314
315 2002-11-09 Ulrich Drepper <drepper@redhat.com>
316
317 * Versions: Export __connect from libpthread.
318 Patch by Luca Barbieri <ldb@ldb.ods.org>.
319
320 * Makefile (libpthread-routines): Add pt-raise.
321 * sysdeps/unix/sysv/linux/raise.c: New file.
322 * sysdeps/unix/sysv/linux/pt-raise.c: New file.
323 * sysdeps/generic/pt-raise.c: New file.
324
325 * pthread_cond_init.c: Initialize all data elements of the condvar
326 structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
327
328 * pthread_attr_init.c: Actually implement 2.0 compatibility version.
329 * pthread_create.c: Likewise.
330
331 * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
332 * tst-key1.c: New file.
333 * tst-key2.c: New file.
334 * tst-key3.c: New file.
335
336 * Versions: Export pthread_detach for version GLIBC_2.0.
337 Reported by Saurabh Desai <sdesai@austin.ibm.com>.
338
339 2002-11-08 Ulrich Drepper <drepper@redhat.com>
340
341 * pthread_key_create.c: Terminate search after an unused key was found.
342 Patch by Luca Barbieri <ldb@ldb.ods.org>.
343
344 * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
345 Patch by Luca Barbieri <ldb@ldb.ods.org>.
346
347 2002-10-10 Ulrich Drepper <drepper@redhat.com>
348
349 * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
350 dynamic lookup for errno in PIC.
351
352 * allocatestack.c (get_cached_stack): Rearrange code slightly to
353 release the stack lock as soon as possible.
354 Call _dl_allocate_tls_init for TCB from the cache to re-initialize
355 the static TLS block.
356 (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
357
358 * cancellation.c: Renamed from cancelation.c.
359 * Makefile: Adjust accordingly.
360 * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
361 * cleanup_defer.c: Use CANCELLATION_P.
362 * pthread_testcancel.c: Likewise.
363 * descr.h: Fix spelling in comments.
364 * init.c: Likewise.
365 * pthread_getattr_np.c: Likewise.
366 * pthread_getschedparam.c: Likewise.
367 * pthread_setschedparam.c: Likewise.
368 * Versions: Likewise.
369
370 * pt-pselect.c: New file.
371 * Makefile (libpthread-routines): Add pt-pselect.
372 * Versions: Add pselect.
373
374 * tst-cancel4.c: New file.
375 * Makefile (tests): Add tst-cancel4.
376
377 2002-10-09 Ulrich Drepper <drepper@redhat.com>
378
379 * pthread_mutex_lock.c: Always record lock ownership.
380 * pthread_mutex_timedlock.c: Likewise.
381 * pthread_mutex_trylock.c: Likewise.
382
383 * pt-readv.c: New file.
384 * pt-writev.c: New file.
385 * pt-creat.c: New file.
386 * pt-msgrcv.c: New file.
387 * pt-msgsnd.c: New file.
388 * pt-poll.c: New file.
389 * pt-select.c: New file.
390 * pt-sigpause.c: New file.
391 * pt-sigsuspend.c: New file.
392 * pt-sigwait.c: New file.
393 * pt-sigwaitinfo.c: New file.
394 * pt-waitid.c: New file.
395 * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
396 pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
397 pt-sigwait, pt-sigwaitinfo, and pt-waitid.
398 * Versions: Add all the new functions.
399
400 * tst-exit1.c: New file.
401 * Makefile (tests): Add tst-exit1.
402
403 * sem_timedwait.c: Minor optimization for more optimal fastpath.
404
405 2002-10-08 Ulrich Drepper <drepper@redhat.com>
406
407 * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
408
409 * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
410 call. pthread_join is an official cancellation point.
411 * pthread_timedjoin.c: Likewise.
412
413 * pthread_cond_wait.c: Revert order in which internal lock are dropped
414 and the condvar's mutex are retrieved.
415 * pthread_cond_timedwait.c: Likewise.
416 Reported by dice@saros.East.Sun.COM.
417
418 2002-10-07 Ulrich Drepper <drepper@redhat.com>
419
420 * pthreadP.h: Cut out all type definitions and move them...
421 * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
422 * pthreadP.h: Include <internaltypes.h>.
423
424 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
425 performance tweaks.
426
427 * sem_trywait.c: Shuffle #includes around to get right order.
428 * sem_timedwait.c: Likewise.
429 * sem_post.c: Likewise.
430 * sem_wait.c: Likewise.
431
432 * nptl 0.3 released.
433
434 * Makefile (tests): Add tst-signal3.
435 * tst-signal3.c: New file.
436
437 2002-10-05 Ulrich Drepper <drepper@redhat.com>
438
439 * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
440 the asms modify the sem object.
441 (__lll_sem_timedwait): Now takes struct sem* as first parameter.
442
443 * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
444 the actual members.
445 * pthreadP.h (struct sem): New type. Actual semaphore type.
446 * semaphoreP.h: Include pthreadP.h.
447 * sem_getvalue.c: Adjust to sem_t change.
448 * sem_init.c: Likewise.
449 * sem_open.c: Likewise.
450 * sem_post.c: Likewise.
451 * sem_timedwait.c: Likewise.
452 * sem_trywait.c: Likewise.
453 * sem_wait.c: Likewise.
454
455 2002-10-04 Ulrich Drepper <drepper@redhat.com>
456
457 * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
458 * tst-basic2.c: New file.
459 * tst-exec1.c: New file.
460 * tst-exec2.c: New file.
461 * tst-exec3.c: New file.
462
463 * tst-fork1.c: Remove extra */.
464
465 * nptl 0.2 released. The API for IA-32 is complete.