1 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
3 * signals.c (sigaction): Correct last patch. Don't select
4 pthread_sighandler_rt based on the signal number but instead of
7 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
9 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
10 this instead of pthread_handle_sigrestart if the signal is an RT
13 * signals.c: Handle passing through of sighandler arguments also
14 for real-time signals.
16 1999-09-03 Andreas Schwab <schwab@suse.de>
18 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
20 (__vfork): New function, alias vfork.
21 * Versions: Export __fork, vfork, and __vfork in libpthread.
23 1999-08-23 Andreas Schwab <schwab@suse.de>
25 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
26 call to signal handler.
28 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
30 * pthread.c (__pthread_reset_main_thread): Undo last change.
31 (__pthread_kill_other_threads_np): Reset signal handlers for the
32 signals we used in the thread implementation here.
34 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
36 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
37 for the signals we used in the thread implementation [PR libc/1234].
39 * Versions: Export __pthread_kill_other_threads_np from libpthread
42 * signals.c: Pass sigcontext through wrapper to the user function.
44 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
46 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
47 __libc_internal_tsd_set.
49 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
51 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
54 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
56 * internals.h: Align _pthread_descr_struct to 32 bytes.
57 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
60 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
62 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
65 1999-07-09 Cristian Gafton <gafton@redhat.com>
67 * Makefile (libpthread-routines): Add oldsemaphore routine.
68 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
69 sem_trywait, and sem_wait to GLIBC_2.1.
70 * oldsemaphore.c: New file.
71 * semaphore.c: Add default_symbol_versions for the changed functions.
72 (__new_sem_init): Rename from sem_init.
73 (__new_sem_post): Rename from sem_post.
74 (__new_sem_wait): Rename from sem_wait.
75 (__new_sem_trywait): Rename from sem_trywait.
76 (__new_sem_getvalue): Rename from sem_getvalue.
77 (__new_sem_destroy): Rename from sem_destroy.
79 1999-06-23 Robey Pointer <robey@netscape.com>
81 * internals.h: Added p_nextlock entry to separate queueing for a
82 lock from queueing for a CV (sometimes a thread queues on a lock
83 to serialize removing itself from a CV queue).
84 * pthread.c: Added p_nextlock to initializers.
85 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
87 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
89 * manager.c (pthread_handle_create): Free mmap region after stack
90 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
92 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
94 * man/pthread_cond_init.man: Correct example.
95 Reported by Tomas Berndtsson <tomas@nocrew.org>.
97 * linuxthreads.texi (Condition Variables): Likewise.
99 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
101 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
102 casx not cas, also successful casx returns the old value in rd
103 and not the new value.
105 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
107 * manager.c: If pthread_create() is given a NULL attribute
108 and the thread manager runs with a realtime policy, set the
109 scheduling policy of the newly created thread back to SCHED_OTHER.
110 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
111 initialize the schedpolicy field of new_thread->p_start_args
112 to that of the calling thread.
114 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
116 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
117 instruction does not allow memory element to use offset.
119 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
121 * manager.c (pthread_allocate_stack): Optimize initialization of new
124 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
125 Don't use initializer since it is all zeroes.
126 (__libc_once_define): Likewise.
128 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
130 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
131 doesn't exist anymore.
132 * sysdeps/i386/Implies: Likewise.
133 * sysdeps/m68k/Implies: Likewise.
134 * sysdeps/mips/Implies: Likewise.
135 * sysdeps/powerpc/Implies: Likewise.
136 * sysdeps/sparc/sparc32/Implies: Likewise.
137 * sysdeps/sparc/sparc64/Implies: Likewise.
139 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
141 * sysdeps/alpha/bits/semaphore.h: Removed.
142 * sysdeps/powerpc/bits/semaphore.h: Removed.
143 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
144 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
145 * Makefile (headers): Remove bits/semaphore.h.
147 * semaphore.h: Define _pthread_descr if necessary.
148 Don't include limits.h. Define SEM_VALUE_MAX directly.
150 (sem_t): Protect element names with leading __.
151 Add declarations for sem_close, sem_open, and sem_unlink.
152 * semaphore.c: Adjust all functions for new element names.
153 Define sem_close, sem_open, and sem_unlink.
154 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
156 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
159 1999-03-16 H.J. Lu <hjl@gnu.org>
161 * specific.c (pthread_key_delete): Check th->p_terminated to see
162 if the thread is running.
164 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
165 Added to GLIBC_2.0 for libc.so.
167 1999-02-12 H.J. Lu <hjl@gnu.org>
169 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
170 __libc_allocate_rtsig): Added to GLIBC_2.1.
172 * internals.h (DEFAULT_SIG_RESTART): Removed.
173 (DEFAULT_SIG_CANCEL): Removed.
175 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
176 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
177 (__pthread_sig_restart, __pthread_sig_cancel,
178 __pthread_sig_debug): Initialized.
179 (pthread_initialize): Call init_rtsigs () to initialize
182 1999-02-03 H.J. Lu <hjl@gnu.org>
184 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
185 Don't restart the thread which sent REQ_DEBUG.
186 (pthread_start_thread): Check if __pthread_sig_debug > 0
189 * pthread.c (__pthread_initialize_manager): Suspend ourself
190 after sending __pthread_sig_debug to gdb instead of
191 __pthread_sig_cancel.
193 1999-01-24 H.J. Lu <hjl@gnu.org>
195 * manager.c (__pthread_manager): Delete __pthread_sig_debug
196 from mask if __pthread_sig_debug > 0.
197 (pthread_handle_create): Increment __pthread_handles_num.
199 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
200 * pthread.c (__pthread_initialize_manager): Likewise.
202 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
203 instead of __libc_allocate_rtsig (2).
204 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
205 instead of __pthread_sig_cancel.
206 (pthread_handle_sigdebug): Fix comments.
208 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
210 * manager.c (pthread_allocate_stack): Set
211 __pthread_nonstandard_stacks if user-specified stack is used.
213 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
215 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
216 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
218 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
220 * pthread.c: Use a third signal __pthread_sig_debug distinct
221 from __pthread_sig_cancel to notify gdb when a thread is
223 * manager.c: Likewise.
224 * internals.h: Likewise.
225 * signals.c: The implementation of sigwait(s) assumed that
226 all signals in s have signal handlers already attached.
227 This is not required by the standard, so make it work
228 also if some of the signals have no handlers.
230 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
232 * linuxthreads.texi: Remove pointers from first @node. Move old
233 @node spec inside comment.
235 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
237 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
240 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
242 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
243 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
245 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
247 * manager.c: Threads now send __pthread_sig_cancel on termination.
248 Change clone call and signal masks.
249 * thread.c (pthread_handle_sigrestart): Remove special code for
251 (pthread_handle_sigcancel): In manager thread call
252 __pthread_manager_sighandler.
253 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
254 * sysdeps/i386/i686/pt-machine.h: Likewise.
255 Patches by Xavier Leroy.
257 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
259 * spinlock.c (__pthread_unlock): Don't crash if called for an
260 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
262 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
265 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
267 * Examples/ex3.c: Wait until all threads are started before
268 searching for the number to avoid race condition on very fast
271 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
273 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
274 declaration since it's not needed.
276 * sysdeps/pthread/pthread.h: Move internal functions to ...
277 * internals.h: ...here.
279 1998-12-02 H.J. Lu <hjl@gnu.org>
281 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
283 (__pthread_sig_cancel): Likewise.
285 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
287 * wrapsyscall.c: Include <sys/mman.h> for msync,
288 <stdlib.h> for system and <termios.h> for tcdrain prototype.
289 Correct msync declaration.
291 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
293 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
294 __libc_tsd_set): New macros for new interface.
295 * no-tsd.c: New file, provide uninitialized defns of
296 __libc_internal_tsd_get and __libc_internal_tsd_set.
297 * Makefile (routines): Add no-tsd.
299 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
301 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
302 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
303 __libc_internal_tsd_set): Move decls to ...
304 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
307 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
308 __libc_internal_tsd_set): Make these pointers to functions, not
309 functions; remove #pragma weak decls for them.
310 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
311 Define static functions and initialized pointers to them.
313 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
315 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
316 (CFLAGS-specific.c): Likewise.
317 (CFLAGS-pthread.c): Likewise.
318 (CFLAGS-ptfork.c): Likewise.
319 (CFLAGS-cancel.c): Likewise.
320 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
321 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
323 * mutex.c (pthread_mutex_init): Define as strong symbol.
324 (pthread_mutex_destroy): Likewise.
325 (pthread_mutex_trylock): Likewise.
326 (pthread_mutex_lock): Likewise.
327 (pthread_mutex_unlock): Likewise.
328 (pthread_mutexattr_init): Likewise.
329 (pthread_mutexattr_destroy): Likewise.
330 (pthread_once): Likewise.
331 * ptfork.c (pthread_atfork): Likewise.
332 * specific.c (pthread_key_create): Likewise.
333 (pthread_setspecific): Likewise.
334 (pthread_getspecific): Likewise.
336 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
338 * linuxthreads.texi: Fix punctuation after xref.
340 1998-11-10 H.J. Lu <hjl@gnu.org>
342 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
343 if it is defined in <linux/limits.h>.
345 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
347 * spinlock.h (__pthread_trylock): Define inline.
348 (__pthread_lock): Add extra parameter to declaration. Declare
349 using internal_function.
350 (__pthread_unlock): Declare using internal_function.
351 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
352 of local variable self. Avoid recomputing self. Define using
354 (__pthread_trylock): Remove.
355 (__pthread_unlock): Define using internal_function.
356 * cancel.c: Adjust for __pthread_lock interface change. Use already
357 computed self value is possible.
358 * condvar.c: Likewise.
360 * manager.c: Likewise.
362 * pthread.c: Likewise.
363 * rwlock.c: Likewise.
364 * semaphore.c: Likewise.
365 * signals.c: Likewise.
367 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
369 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
370 __ to field names of the struct.
371 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
373 (pthread_attr_t): Likewise.
374 (pthread_cond_t): Likewise.
375 (pthread_condattr_t): Likewise.
376 (pthread_mutex_t): Likewise.
377 (pthread_mutexattr_t): Likewise.
378 (pthread_rwlock_t): Likewise.
379 (pthread_rwlockattr_t): Likewise.
380 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
381 * cancel.c: Likewise.
382 * condvar.c: Likewise.
383 * manager.c: Likewise.
385 * pthread.c: Likewise.
386 * ptlongjmp.c: Likewise.
387 * rwlock.c: Likewise.
388 * spinlock.c: Likewise.
390 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
392 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
395 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
398 * Makefile (libpthread-routines): Add pt-machine.
399 * pt-machine.c: New file.
400 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
401 yet defined. Use PT_EI in extern inline definitions.
402 * sysdeps/arm/pt-machine.h: Likewise.
403 * sysdeps/i386/pt-machine.h: Likewise.
404 * sysdeps/i386/i686/pt-machine.h: Likewise.
405 * sysdeps/m68k/pt-machine.h: Likewise.
406 * sysdeps/mips/pt-machine.h: Likewise.
407 * sysdeps/powerpc/pt-machine.h: Likewise.
408 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
409 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
411 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
413 * semaphore.h: Include <sys/types.h> so that _pthread_descr
416 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
418 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
420 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
422 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
424 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
425 multiple inclusion guard.
427 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
429 * signals.c (sigaction): Check that sig is less than NSIG to avoid
430 array index overflow.
432 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
434 * sysdeps/pthread/semaphore.h: New file.
436 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
438 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
439 _LIBC_TSD_KEY_DL_ERROR.
441 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
443 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
444 * sysdeps/i386/pt-machine.h: Likewise.
445 Suggested by Roland McGrath.
447 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
449 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
450 access thread data with non-constant offsets.
451 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
454 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
455 THREAD_SETMEM_NC definitions.
457 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
459 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
461 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
463 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
465 (struct _pthread_descr_struct): Add p_self and p_nr field.
466 * manager.c (__pthread_handles): Define second element to point
468 (__pthread_handles_num): Initialize to 2.
469 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
470 (pthread_start_thread): Likewise.
471 (pthread_handle_create): Start search for free slot at entry 2.
472 Initialize new fields p_self and p_nr.
473 Call __clone with CLONE_PTRACE if available.
474 (pthread_free): Call FREE_THREAD_SELF if available.
475 * pthread.c (__pthread_initial_thread): Initialize new fields.
476 (__pthread_manager_thread): Likewise.
477 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
479 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
480 elements of the thread descriptor.
481 * condvar.c: Likewise.
484 * manager.c: Likewise.
485 * pthread.c: Likewise.
486 * ptlongjmp.c: Likewise.
487 * semaphore.c: Likewise.
488 * signals.c: Likewise.
489 * specific.c: Likewise.
490 * spinlock.c: Likewise.
492 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
494 * sysdeps/i386/useldt.h: New file.
495 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
497 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
498 THREAD_SETMEM using __thread_self.
499 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
501 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
503 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
504 turned out that we didn't need to queue after all.
506 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
508 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
509 and wastes space; correct types.
511 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
513 * signals.c (sigaction): Handle NULL argument.
515 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
517 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
520 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
522 * Makefile (linuxthreads-version): Extract correct number from
525 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
527 * Banner: Bump version number to 0.8
528 * FAQ.html: Many updates, in particular w.r.t. debugging.
529 * manager.c: Support for non-default stacksize for
530 LinuxThreads-allocated stacks;
531 don't use guard pages for stacks with default size, rely on
532 rlimit(RLIMIT_STACK) instead (it's cheaper).
534 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
535 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
536 * condvar.c: Likewise.
537 * internals.h: Likewise.
538 * restart.h: Likewise.
539 * signals.c: Likewise.
540 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
542 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
544 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
545 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
546 * Versions: Put __pthread_mutexattr_settype under version
547 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
548 __pthread_mutexattr_gettype.
550 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
552 * sysdeps/pthread/bits/libc-lock.h: Make
553 __pthread_mutexattr_settype weak. Don't make
554 __pthread_mutexattr_setkind_np weak.
556 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
558 * manager.c (pthread_handle_create): Check whether sched_setscheduler
559 call can succeed here.
561 * mutex.c: Define __pthread_mutexattr_settype and make
562 __pthread_mutexattr_setkind_np an alias.
563 Likewise for __pthread_mutexattr_gettype.
565 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
567 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
570 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
572 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
574 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
576 * Examples/ex6.c: Include <unistd.h> for usleep.
578 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
580 * Examples/ex4.c (main): Use exit, not pthread_exit.
582 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
584 * Versions: Add __pthread_mutexattr_gettype and
585 __pthread_mutexattr_settype.
586 * lockfile.c: Use __pthread_mutexattr_settype instead of
587 __pthread_mutexattr_setkind_np.
588 * mutex.c: Define __pthread_mutexattr_gettype and
589 __pthread_mutexattr_settype.
591 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
592 __pthread_mutexattr_settype.
593 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
594 Use __pthread_mutexattr_settype.
596 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
598 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
599 * mutex.c: Define weak alias pthread_mutexattr_gettype and
600 pthread_mutexattr_settype.
601 * sysdeps/pthread/pthread.h: Declare these functions.
602 Move pthread_sigmask and pthread_kill declaration in separate header.
603 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
605 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
607 * Makefile: Add rules to compile and run tests.
608 * Examples/ex1.c: Little changes to fix warnings.
609 * Examples/ex2.c: Likewise.
610 * Examples/ex3.c: Likewise.
611 * Examples/ex4.c: Likewise.
612 * Examples/ex5.c: Likewise.
613 * Examples/ex6.c: New file.
615 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
617 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
619 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
621 * attr.c: Include <string.h>.
623 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
625 * attr.c: Include errno.h. Use memcpy to copy sched_param.
626 * internals.h: Include limits.h.
627 * manager.c: Use memcpy to copy sched_param.
628 * ptfork.c: Include errno.h.
629 * pthread.c: Likewise.
630 * semaphore.c: Likewise.
631 * specific.c: Likewise.
632 * spinlock.h: Likewise.
633 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
634 type definition to ...
635 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
637 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
639 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
641 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
642 as macros as demanded in POSIX.1, Annex C.
644 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
646 * internals.h (struct pthread_request): For free use pthread_t
647 instead of pthread_descr.
648 * join.c (pthread_join): Pass thread_id, not th to manager.
649 (pthread_detach): Likewise.
650 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
651 (pthread_exited): Remove detached queue code.
652 (pthread_handle_free): Expect thread ID parameter and use it to
653 validate the thread decsriptor. Don't use detached queue.
654 Patches by Xavier Leroy.
656 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
658 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
659 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
660 __pthread_atfork, __pthread_key_create, __pthread_once.
661 * internals.h: Doc fix.
662 * pthread.c (__pthread_initialize): Define again.
664 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
666 * manager.c (pthread_exited): If thread is not detached put it on
668 (pthread_handle_free): If thread is not on list with living threads
669 search on list with detached threads.
671 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
672 for new definition of pthread_rwlock_t.
674 * spinlock.c: Correct test whether to compile
675 __pthread_compare_and_swap or not.
677 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
679 * attr.c: Finish user stack support. Change locking code to be safe
680 in situations with different priorities.
681 * cancel.c: Likewise.
682 * condvar.c: Likewise.
683 * internals.h: Likewise.
685 * manager.c: Likewise.
687 * pthread.c: Likewise.
688 * ptlongjmp.c: Likewise.
690 * rwlock.c: Likewise.
691 * semaphore.c: Likewise.
692 * semaphore.h: Likewise.
693 * signals.c: Likewise.
694 * spinlock.c: Likewise.
695 * spinlock.h: Likewise.
696 * sysdeps/pthread/pthread.h: Likewise.
697 Patches by Xavier Leroy.
699 * sysdeps/i386/i686/pt-machine.h: New file.
701 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
703 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
704 [sg]et_stackaddr prototypes always available.
706 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
707 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
709 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
711 * manager.c (pthread_free): Undo patch from 980430.
712 Reported by David Wragg <dpw@doc.ic.ac.uk>.
714 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
716 * manager.c: Define __pthread_manager_adjust_prio and use it to
717 increase priority when needed.
718 * internals.h: Add prototype for __pthread_manager_adjust_prio.
719 * mutex.c: Optimize mutexes to wake up only one thread.
720 * pthread.c: Move PID of manager for global variable in structure
722 Patches by Xavier Leroy.
724 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
726 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
728 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
730 * attr.c: Correct typo.
732 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
734 * manager.c (pthread_free): Unmap guard before the stack.
735 Patch by Matthias Urlichs.
737 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
739 * manager.c (pthread_free): Detect already free child.
740 Patch by Xavier Leroy, reported by Matthias Urlichs.
742 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
744 * Makefile (linuxthreads-version): Renamed back from
747 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
749 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
752 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
754 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
755 * internals.h: Add definitions for new spinlock implementation.
756 * ptlongjmp.c: New file.
757 * spinlock.c: New file.
758 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
759 new function __pthread_acquire to prevent deadlocks with thread
760 with different priorities.
761 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
763 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
765 * manager.c (__pthread_manager): Reduce first argument to select
766 to include just the needed file descriptor.
768 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
770 * manager.c: Fix last patch which caused core dumps.
772 * pthread.c: Correctly handle missing SIGRTMIN.
774 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
776 * libpthread.map: Add __libc_internal_tsd_get and
777 __libc_internal_tsd_set. Add missing cancelable functions. Export
778 libc internal versions of the cancelable functions.
780 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
782 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
784 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
786 * attr.c: Implement pthread_attr_[gs]etguardsize,
787 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
788 Change pthread_attr_init to have two interfaces.
789 * internals.h (struct _pthread_descr_struct): Add new fields for
791 * libpthread.map: Add names in GLIBC_2.1 section.
792 * manager.c (pthread_handle_create): Implement guardsize and
794 (pthread_free): Likewise.
795 * pthread.c (pthread_create): Add new interface for changed
797 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
798 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
801 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
803 * manager.c: Enable resetting of the thread scheduling policy
804 to SCHED_OTHER when the parent thread has a different one.
806 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
808 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
809 _POSIX_ASYNCHRONOUS_IO.
811 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
813 * mutex.c: Implement new mutex types.
815 * internals.h: Include <signal.h>.
817 * libpthread.map: Add __erno_location and __h_errno_location.
819 * errno.c: Return pointer to variable actually in use. This might
820 not be the one in the thread structure.
821 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
823 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
824 of manager thread structure.
825 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
827 * pthread.c: Adapt initializer for thread structures.
828 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
829 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
830 current thread to global variables.
832 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
834 * rwlock.c: New file.
835 * Makefile (libpthread-routines): Add rwlock.
836 * sysdeps/pthread/pthread.h: Define data structures and declare
838 * libpthread.map: Add new functions.
840 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
842 * sysdeps/arm/pt-machine.h: New file; add ARM support.
843 * sysdeps/arm/Implies: likewise.
844 * README: Document it.
846 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
848 * signals.c: Remove unneeded initializer for sigwaited, saving a
851 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
853 * semaphore.c (sem_init): Set sem_spinlock only if available.
855 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
857 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
858 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
860 * Makefile: Update from LinuxThreads 0.7.
861 * internals.h. Likewise.
862 * manager.c: Likewise.
864 * pthread.c: Likewise.
865 * signals.c: Likewise.
866 * specific.c: Likewise.
867 * Examples/ex3.c: Likewise.
869 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
871 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
874 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
876 * wrapsyscall.c: Add socket functions which are also cancelation
879 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
881 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
882 New functions for fast thread specific data within libc.
884 * internals.h: Add new array p_libc_specific to struct
885 _pthread_descr_struct.
887 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
889 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
891 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
892 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
894 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
896 * internals.h (struct _pthread_descr_struct): Add definitions for
897 two-level specific key handling.
898 * manager.c (pthread_handle_create): Initialize specific memory array.
899 * specific.c: Implement two-level key handling.
900 * weaks.c: Don't provide dummy key handling.
901 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
902 Add definition of __libc_key_t.
903 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
905 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
906 PTHREAD_DESTRUCTOR_ITERATIONS.
908 * manager.c (pthread_handle_create): Compare mmap result with
911 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
912 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
914 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
916 sysdeps/sparc -> sysdeps/sparc/sparc32
917 sysdeps/sparc64 -> sysdeps/sparc/sparc64
919 * internals.h: Change definition of THREAD_SELF to be an expression,
920 not a statement that did a return.
921 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
922 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
923 Follow Solaris and use a "system reserved" register (%g6) to hold
924 the thread descriptor.
925 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
927 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
929 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
930 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
931 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
933 * semaphore.c: Include spinlock.h only when needed.
935 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
936 keys for entries not in use.
938 * weaks.c: Implement key handling functions for real.
940 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
942 Initial sparc64-linux support:
943 * linuxthreads/sysdeps/sparc64/Implies: New file.
944 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
946 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
948 * semaphore.c: Include spinlock.h at correct place.
951 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
953 The Great Bit File Move:
954 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
955 * sysdeps/powerpc/semaphorebits.h: Likewise.
956 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
957 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
958 * sysdeps/pthread/libc-lock.h: -> bits/
959 * sysdeps/pthread/stdio-lock.h: Likewise.
960 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
961 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
962 * semaphore.h: Likewise.
963 * sysdeps/pthread/pthread.h: Likewise.
965 * lockfile.c: <foo.h> -> <bits/foo.h>.
966 * semaphore.h: Likewise.
968 * Makefile: (headers): foo.h -> bits/foo.h.
969 * sysdeps/pthread/Makefile: Likewise.
971 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
973 * semaphore.c (sem_init): Set sem_spinlock only if available.
975 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
978 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
980 Update from LinuxThreads 0.6.
982 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
983 and __sched_get_priority_min instead of names without `__'.
985 * manager.c: Rewrite large parts to implement opaque pthread_t.
987 * cancel.c: Adapt for opaque pthread_t type.
988 * condvar.c: Likewise.
992 * pthread.c: Likewise.
993 * signals.c: Likewise.
994 * specific.c: Likewise.
995 * restart.h: Likewise.
997 * Examples/ex3.c: Likewise.
998 * Examples/ex4.c: Likewise.
999 * sysdeps/pthread/pthread.h: Likewise.
1001 * pthread.c: Accumulate time for all threads in thread manager.
1003 * semaphore.c: Implement fallback implementation for architectures
1004 sometimes missing compare-exchange operations.
1006 * cancel.c (pthread_cancel): Validate handle argument.
1007 * join.c (pthread_join): Likewise.
1008 (pthread_detach): Likewise.
1009 * signals.c (pthread_kill): Likewise.
1011 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1013 * queue.h (enqueue): Enqueue thread according to priority.
1015 * internals.c (struct pthread_start_args): New struct for passing
1016 args to cloning function.
1017 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1020 * Examples/Makefile (clean): Pass -f option to rm.
1022 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1023 and define TEST_FOR_COMPARE_AND_SWAP.
1024 * sysdeps/i386/i486/pt-machine.h: Removed.
1026 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1029 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1031 * restart.h (suspend): Clear p_signal before suspending.
1032 (suspend_with_cancellation): Likewise.
1033 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1035 * weaks.c: Make __pthread_key_create return 1.
1036 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1037 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1038 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1041 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1043 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1045 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1047 * sysdeps/powerpc/Implies: Added.
1048 * sysdeps/powerpc/pt-machine.h: Added.
1049 * sysdeps/powerpc/semaphorebits.h: Added.
1051 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1053 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1055 (__pthread_manager_thread): Likewise.
1056 Reported by Andreas Jaeger.
1058 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1060 Since sigset_t no longer fits in a register, we can't pass in the
1061 thread's initial mask so easily. Take this opportunity to simplify
1062 the clone implementation by only accepting a single void* argument.
1064 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1065 in the thread struct instead of as arguments through clone.
1066 (pthread_start_thread): Look for them there.
1067 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1068 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1069 * linuxthreads/pthread.c (pthread_initialize_manager): Revise