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