1 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
4 * internals.h (struct _pthread_descr_struct): Add p_startfct.
5 * manager.c (pthread_handle_create): Initialize p_startfct.
6 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
8 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
10 * manager.c (__linuxthreads_pthread_threads_max): New variable.
11 * specific.c (__linuxthreads_pthread_keys_max): New variable.
12 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
14 * condvar.c (pthread_cond_timedwait_relative): Never return with
15 EINTR. Patch by Andreas Schwab.
17 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
19 * signals.c (sigaction): Correct last patch. Don't select
20 pthread_sighandler_rt based on the signal number but instead of
23 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
25 * specific.c: Move definitions of struct pthread_key_struct and
27 * internals.h: ...here.
29 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
31 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
32 this instead of pthread_handle_sigrestart if the signal is an RT
35 * signals.c: Handle passing through of sighandler arguments also
36 for real-time signals.
38 1999-09-03 Andreas Schwab <schwab@suse.de>
40 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
42 (__vfork): New function, alias vfork.
43 * Versions: Export __fork, vfork, and __vfork in libpthread.
45 1999-08-23 Andreas Schwab <schwab@suse.de>
47 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
48 call to signal handler.
50 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
52 * pthread.c (__pthread_reset_main_thread): Undo last change.
53 (__pthread_kill_other_threads_np): Reset signal handlers for the
54 signals we used in the thread implementation here.
56 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
58 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
59 for the signals we used in the thread implementation [PR libc/1234].
61 * Versions: Export __pthread_kill_other_threads_np from libpthread
64 * signals.c: Pass sigcontext through wrapper to the user function.
66 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
68 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
69 __libc_internal_tsd_set.
71 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
73 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
76 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
78 * internals.h: Align _pthread_descr_struct to 32 bytes.
79 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
82 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
84 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
87 1999-07-09 Cristian Gafton <gafton@redhat.com>
89 * Makefile (libpthread-routines): Add oldsemaphore routine.
90 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
91 sem_trywait, and sem_wait to GLIBC_2.1.
92 * oldsemaphore.c: New file.
93 * semaphore.c: Add default_symbol_versions for the changed functions.
94 (__new_sem_init): Rename from sem_init.
95 (__new_sem_post): Rename from sem_post.
96 (__new_sem_wait): Rename from sem_wait.
97 (__new_sem_trywait): Rename from sem_trywait.
98 (__new_sem_getvalue): Rename from sem_getvalue.
99 (__new_sem_destroy): Rename from sem_destroy.
101 1999-06-23 Robey Pointer <robey@netscape.com>
103 * internals.h: Added p_nextlock entry to separate queueing for a
104 lock from queueing for a CV (sometimes a thread queues on a lock
105 to serialize removing itself from a CV queue).
106 * pthread.c: Added p_nextlock to initializers.
107 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
109 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
111 * manager.c (pthread_handle_create): Free mmap region after stack
112 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
114 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
116 * man/pthread_cond_init.man: Correct example.
117 Reported by Tomas Berndtsson <tomas@nocrew.org>.
119 * linuxthreads.texi (Condition Variables): Likewise.
121 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
123 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
124 casx not cas, also successful casx returns the old value in rd
125 and not the new value.
127 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
129 * manager.c: If pthread_create() is given a NULL attribute
130 and the thread manager runs with a realtime policy, set the
131 scheduling policy of the newly created thread back to SCHED_OTHER.
132 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
133 initialize the schedpolicy field of new_thread->p_start_args
134 to that of the calling thread.
136 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
138 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
139 instruction does not allow memory element to use offset.
141 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
143 * manager.c (pthread_allocate_stack): Optimize initialization of new
146 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
147 Don't use initializer since it is all zeroes.
148 (__libc_once_define): Likewise.
150 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
152 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
153 doesn't exist anymore.
154 * sysdeps/i386/Implies: Likewise.
155 * sysdeps/m68k/Implies: Likewise.
156 * sysdeps/mips/Implies: Likewise.
157 * sysdeps/powerpc/Implies: Likewise.
158 * sysdeps/sparc/sparc32/Implies: Likewise.
159 * sysdeps/sparc/sparc64/Implies: Likewise.
161 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
163 * sysdeps/alpha/bits/semaphore.h: Removed.
164 * sysdeps/powerpc/bits/semaphore.h: Removed.
165 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
166 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
167 * Makefile (headers): Remove bits/semaphore.h.
169 * semaphore.h: Define _pthread_descr if necessary.
170 Don't include limits.h. Define SEM_VALUE_MAX directly.
172 (sem_t): Protect element names with leading __.
173 Add declarations for sem_close, sem_open, and sem_unlink.
174 * semaphore.c: Adjust all functions for new element names.
175 Define sem_close, sem_open, and sem_unlink.
176 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
178 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
181 1999-03-16 H.J. Lu <hjl@gnu.org>
183 * specific.c (pthread_key_delete): Check th->p_terminated to see
184 if the thread is running.
186 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
187 Added to GLIBC_2.0 for libc.so.
189 1999-02-12 H.J. Lu <hjl@gnu.org>
191 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
192 __libc_allocate_rtsig): Added to GLIBC_2.1.
194 * internals.h (DEFAULT_SIG_RESTART): Removed.
195 (DEFAULT_SIG_CANCEL): Removed.
197 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
198 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
199 (__pthread_sig_restart, __pthread_sig_cancel,
200 __pthread_sig_debug): Initialized.
201 (pthread_initialize): Call init_rtsigs () to initialize
204 1999-02-03 H.J. Lu <hjl@gnu.org>
206 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
207 Don't restart the thread which sent REQ_DEBUG.
208 (pthread_start_thread): Check if __pthread_sig_debug > 0
211 * pthread.c (__pthread_initialize_manager): Suspend ourself
212 after sending __pthread_sig_debug to gdb instead of
213 __pthread_sig_cancel.
215 1999-01-24 H.J. Lu <hjl@gnu.org>
217 * manager.c (__pthread_manager): Delete __pthread_sig_debug
218 from mask if __pthread_sig_debug > 0.
219 (pthread_handle_create): Increment __pthread_handles_num.
221 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
222 * pthread.c (__pthread_initialize_manager): Likewise.
224 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
225 instead of __libc_allocate_rtsig (2).
226 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
227 instead of __pthread_sig_cancel.
228 (pthread_handle_sigdebug): Fix comments.
230 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
232 * manager.c (pthread_allocate_stack): Set
233 __pthread_nonstandard_stacks if user-specified stack is used.
235 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
237 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
238 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
240 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
242 * pthread.c: Use a third signal __pthread_sig_debug distinct
243 from __pthread_sig_cancel to notify gdb when a thread is
245 * manager.c: Likewise.
246 * internals.h: Likewise.
247 * signals.c: The implementation of sigwait(s) assumed that
248 all signals in s have signal handlers already attached.
249 This is not required by the standard, so make it work
250 also if some of the signals have no handlers.
252 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
254 * linuxthreads.texi: Remove pointers from first @node. Move old
255 @node spec inside comment.
257 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
259 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
262 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
264 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
265 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
267 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
269 * manager.c: Threads now send __pthread_sig_cancel on termination.
270 Change clone call and signal masks.
271 * thread.c (pthread_handle_sigrestart): Remove special code for
273 (pthread_handle_sigcancel): In manager thread call
274 __pthread_manager_sighandler.
275 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
276 * sysdeps/i386/i686/pt-machine.h: Likewise.
277 Patches by Xavier Leroy.
279 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
281 * spinlock.c (__pthread_unlock): Don't crash if called for an
282 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
284 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
287 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
289 * Examples/ex3.c: Wait until all threads are started before
290 searching for the number to avoid race condition on very fast
293 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
295 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
296 declaration since it's not needed.
298 * sysdeps/pthread/pthread.h: Move internal functions to ...
299 * internals.h: ...here.
301 1998-12-02 H.J. Lu <hjl@gnu.org>
303 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
305 (__pthread_sig_cancel): Likewise.
307 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
309 * wrapsyscall.c: Include <sys/mman.h> for msync,
310 <stdlib.h> for system and <termios.h> for tcdrain prototype.
311 Correct msync declaration.
313 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
315 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
316 __libc_tsd_set): New macros for new interface.
317 * no-tsd.c: New file, provide uninitialized defns of
318 __libc_internal_tsd_get and __libc_internal_tsd_set.
319 * Makefile (routines): Add no-tsd.
321 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
323 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
324 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
325 __libc_internal_tsd_set): Move decls to ...
326 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
329 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
330 __libc_internal_tsd_set): Make these pointers to functions, not
331 functions; remove #pragma weak decls for them.
332 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
333 Define static functions and initialized pointers to them.
335 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
337 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
338 (CFLAGS-specific.c): Likewise.
339 (CFLAGS-pthread.c): Likewise.
340 (CFLAGS-ptfork.c): Likewise.
341 (CFLAGS-cancel.c): Likewise.
342 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
343 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
345 * mutex.c (pthread_mutex_init): Define as strong symbol.
346 (pthread_mutex_destroy): Likewise.
347 (pthread_mutex_trylock): Likewise.
348 (pthread_mutex_lock): Likewise.
349 (pthread_mutex_unlock): Likewise.
350 (pthread_mutexattr_init): Likewise.
351 (pthread_mutexattr_destroy): Likewise.
352 (pthread_once): Likewise.
353 * ptfork.c (pthread_atfork): Likewise.
354 * specific.c (pthread_key_create): Likewise.
355 (pthread_setspecific): Likewise.
356 (pthread_getspecific): Likewise.
358 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
360 * linuxthreads.texi: Fix punctuation after xref.
362 1998-11-10 H.J. Lu <hjl@gnu.org>
364 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
365 if it is defined in <linux/limits.h>.
367 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
369 * spinlock.h (__pthread_trylock): Define inline.
370 (__pthread_lock): Add extra parameter to declaration. Declare
371 using internal_function.
372 (__pthread_unlock): Declare using internal_function.
373 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
374 of local variable self. Avoid recomputing self. Define using
376 (__pthread_trylock): Remove.
377 (__pthread_unlock): Define using internal_function.
378 * cancel.c: Adjust for __pthread_lock interface change. Use already
379 computed self value is possible.
380 * condvar.c: Likewise.
382 * manager.c: Likewise.
384 * pthread.c: Likewise.
385 * rwlock.c: Likewise.
386 * semaphore.c: Likewise.
387 * signals.c: Likewise.
389 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
391 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
392 __ to field names of the struct.
393 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
395 (pthread_attr_t): Likewise.
396 (pthread_cond_t): Likewise.
397 (pthread_condattr_t): Likewise.
398 (pthread_mutex_t): Likewise.
399 (pthread_mutexattr_t): Likewise.
400 (pthread_rwlock_t): Likewise.
401 (pthread_rwlockattr_t): Likewise.
402 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
403 * cancel.c: Likewise.
404 * condvar.c: Likewise.
405 * manager.c: Likewise.
407 * pthread.c: Likewise.
408 * ptlongjmp.c: Likewise.
409 * rwlock.c: Likewise.
410 * spinlock.c: Likewise.
412 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
414 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
417 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
420 * Makefile (libpthread-routines): Add pt-machine.
421 * pt-machine.c: New file.
422 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
423 yet defined. Use PT_EI in extern inline definitions.
424 * sysdeps/arm/pt-machine.h: Likewise.
425 * sysdeps/i386/pt-machine.h: Likewise.
426 * sysdeps/i386/i686/pt-machine.h: Likewise.
427 * sysdeps/m68k/pt-machine.h: Likewise.
428 * sysdeps/mips/pt-machine.h: Likewise.
429 * sysdeps/powerpc/pt-machine.h: Likewise.
430 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
431 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
433 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
435 * semaphore.h: Include <sys/types.h> so that _pthread_descr
438 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
440 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
442 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
444 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
446 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
447 multiple inclusion guard.
449 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
451 * signals.c (sigaction): Check that sig is less than NSIG to avoid
452 array index overflow.
454 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
456 * sysdeps/pthread/semaphore.h: New file.
458 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
460 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
461 _LIBC_TSD_KEY_DL_ERROR.
463 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
465 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
466 * sysdeps/i386/pt-machine.h: Likewise.
467 Suggested by Roland McGrath.
469 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
471 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
472 access thread data with non-constant offsets.
473 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
476 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
477 THREAD_SETMEM_NC definitions.
479 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
481 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
483 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
485 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
487 (struct _pthread_descr_struct): Add p_self and p_nr field.
488 * manager.c (__pthread_handles): Define second element to point
490 (__pthread_handles_num): Initialize to 2.
491 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
492 (pthread_start_thread): Likewise.
493 (pthread_handle_create): Start search for free slot at entry 2.
494 Initialize new fields p_self and p_nr.
495 Call __clone with CLONE_PTRACE if available.
496 (pthread_free): Call FREE_THREAD_SELF if available.
497 * pthread.c (__pthread_initial_thread): Initialize new fields.
498 (__pthread_manager_thread): Likewise.
499 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
501 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
502 elements of the thread descriptor.
503 * condvar.c: Likewise.
506 * manager.c: Likewise.
507 * pthread.c: Likewise.
508 * ptlongjmp.c: Likewise.
509 * semaphore.c: Likewise.
510 * signals.c: Likewise.
511 * specific.c: Likewise.
512 * spinlock.c: Likewise.
514 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
516 * sysdeps/i386/useldt.h: New file.
517 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
519 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
520 THREAD_SETMEM using __thread_self.
521 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
523 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
525 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
526 turned out that we didn't need to queue after all.
528 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
530 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
531 and wastes space; correct types.
533 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
535 * signals.c (sigaction): Handle NULL argument.
537 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
539 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
542 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
544 * Makefile (linuxthreads-version): Extract correct number from
547 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
549 * Banner: Bump version number to 0.8
550 * FAQ.html: Many updates, in particular w.r.t. debugging.
551 * manager.c: Support for non-default stacksize for
552 LinuxThreads-allocated stacks;
553 don't use guard pages for stacks with default size, rely on
554 rlimit(RLIMIT_STACK) instead (it's cheaper).
556 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
557 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
558 * condvar.c: Likewise.
559 * internals.h: Likewise.
560 * restart.h: Likewise.
561 * signals.c: Likewise.
562 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
564 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
566 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
567 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
568 * Versions: Put __pthread_mutexattr_settype under version
569 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
570 __pthread_mutexattr_gettype.
572 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
574 * sysdeps/pthread/bits/libc-lock.h: Make
575 __pthread_mutexattr_settype weak. Don't make
576 __pthread_mutexattr_setkind_np weak.
578 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
580 * manager.c (pthread_handle_create): Check whether sched_setscheduler
581 call can succeed here.
583 * mutex.c: Define __pthread_mutexattr_settype and make
584 __pthread_mutexattr_setkind_np an alias.
585 Likewise for __pthread_mutexattr_gettype.
587 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
589 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
592 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
594 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
596 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
598 * Examples/ex6.c: Include <unistd.h> for usleep.
600 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
602 * Examples/ex4.c (main): Use exit, not pthread_exit.
604 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
606 * Versions: Add __pthread_mutexattr_gettype and
607 __pthread_mutexattr_settype.
608 * lockfile.c: Use __pthread_mutexattr_settype instead of
609 __pthread_mutexattr_setkind_np.
610 * mutex.c: Define __pthread_mutexattr_gettype and
611 __pthread_mutexattr_settype.
613 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
614 __pthread_mutexattr_settype.
615 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
616 Use __pthread_mutexattr_settype.
618 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
620 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
621 * mutex.c: Define weak alias pthread_mutexattr_gettype and
622 pthread_mutexattr_settype.
623 * sysdeps/pthread/pthread.h: Declare these functions.
624 Move pthread_sigmask and pthread_kill declaration in separate header.
625 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
627 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
629 * Makefile: Add rules to compile and run tests.
630 * Examples/ex1.c: Little changes to fix warnings.
631 * Examples/ex2.c: Likewise.
632 * Examples/ex3.c: Likewise.
633 * Examples/ex4.c: Likewise.
634 * Examples/ex5.c: Likewise.
635 * Examples/ex6.c: New file.
637 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
639 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
641 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
643 * attr.c: Include <string.h>.
645 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
647 * attr.c: Include errno.h. Use memcpy to copy sched_param.
648 * internals.h: Include limits.h.
649 * manager.c: Use memcpy to copy sched_param.
650 * ptfork.c: Include errno.h.
651 * pthread.c: Likewise.
652 * semaphore.c: Likewise.
653 * specific.c: Likewise.
654 * spinlock.h: Likewise.
655 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
656 type definition to ...
657 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
659 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
661 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
663 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
664 as macros as demanded in POSIX.1, Annex C.
666 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
668 * internals.h (struct pthread_request): For free use pthread_t
669 instead of pthread_descr.
670 * join.c (pthread_join): Pass thread_id, not th to manager.
671 (pthread_detach): Likewise.
672 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
673 (pthread_exited): Remove detached queue code.
674 (pthread_handle_free): Expect thread ID parameter and use it to
675 validate the thread decsriptor. Don't use detached queue.
676 Patches by Xavier Leroy.
678 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
680 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
681 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
682 __pthread_atfork, __pthread_key_create, __pthread_once.
683 * internals.h: Doc fix.
684 * pthread.c (__pthread_initialize): Define again.
686 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
688 * manager.c (pthread_exited): If thread is not detached put it on
690 (pthread_handle_free): If thread is not on list with living threads
691 search on list with detached threads.
693 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
694 for new definition of pthread_rwlock_t.
696 * spinlock.c: Correct test whether to compile
697 __pthread_compare_and_swap or not.
699 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
701 * attr.c: Finish user stack support. Change locking code to be safe
702 in situations with different priorities.
703 * cancel.c: Likewise.
704 * condvar.c: Likewise.
705 * internals.h: Likewise.
707 * manager.c: Likewise.
709 * pthread.c: Likewise.
710 * ptlongjmp.c: Likewise.
712 * rwlock.c: Likewise.
713 * semaphore.c: Likewise.
714 * semaphore.h: Likewise.
715 * signals.c: Likewise.
716 * spinlock.c: Likewise.
717 * spinlock.h: Likewise.
718 * sysdeps/pthread/pthread.h: Likewise.
719 Patches by Xavier Leroy.
721 * sysdeps/i386/i686/pt-machine.h: New file.
723 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
725 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
726 [sg]et_stackaddr prototypes always available.
728 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
729 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
731 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
733 * manager.c (pthread_free): Undo patch from 980430.
734 Reported by David Wragg <dpw@doc.ic.ac.uk>.
736 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
738 * manager.c: Define __pthread_manager_adjust_prio and use it to
739 increase priority when needed.
740 * internals.h: Add prototype for __pthread_manager_adjust_prio.
741 * mutex.c: Optimize mutexes to wake up only one thread.
742 * pthread.c: Move PID of manager for global variable in structure
744 Patches by Xavier Leroy.
746 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
748 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
750 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
752 * attr.c: Correct typo.
754 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
756 * manager.c (pthread_free): Unmap guard before the stack.
757 Patch by Matthias Urlichs.
759 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
761 * manager.c (pthread_free): Detect already free child.
762 Patch by Xavier Leroy, reported by Matthias Urlichs.
764 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
766 * Makefile (linuxthreads-version): Renamed back from
769 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
771 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
774 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
776 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
777 * internals.h: Add definitions for new spinlock implementation.
778 * ptlongjmp.c: New file.
779 * spinlock.c: New file.
780 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
781 new function __pthread_acquire to prevent deadlocks with thread
782 with different priorities.
783 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
785 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
787 * manager.c (__pthread_manager): Reduce first argument to select
788 to include just the needed file descriptor.
790 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
792 * manager.c: Fix last patch which caused core dumps.
794 * pthread.c: Correctly handle missing SIGRTMIN.
796 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
798 * libpthread.map: Add __libc_internal_tsd_get and
799 __libc_internal_tsd_set. Add missing cancelable functions. Export
800 libc internal versions of the cancelable functions.
802 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
804 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
806 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
808 * attr.c: Implement pthread_attr_[gs]etguardsize,
809 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
810 Change pthread_attr_init to have two interfaces.
811 * internals.h (struct _pthread_descr_struct): Add new fields for
813 * libpthread.map: Add names in GLIBC_2.1 section.
814 * manager.c (pthread_handle_create): Implement guardsize and
816 (pthread_free): Likewise.
817 * pthread.c (pthread_create): Add new interface for changed
819 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
820 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
823 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
825 * manager.c: Enable resetting of the thread scheduling policy
826 to SCHED_OTHER when the parent thread has a different one.
828 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
830 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
831 _POSIX_ASYNCHRONOUS_IO.
833 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
835 * mutex.c: Implement new mutex types.
837 * internals.h: Include <signal.h>.
839 * libpthread.map: Add __erno_location and __h_errno_location.
841 * errno.c: Return pointer to variable actually in use. This might
842 not be the one in the thread structure.
843 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
845 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
846 of manager thread structure.
847 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
849 * pthread.c: Adapt initializer for thread structures.
850 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
851 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
852 current thread to global variables.
854 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
856 * rwlock.c: New file.
857 * Makefile (libpthread-routines): Add rwlock.
858 * sysdeps/pthread/pthread.h: Define data structures and declare
860 * libpthread.map: Add new functions.
862 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
864 * sysdeps/arm/pt-machine.h: New file; add ARM support.
865 * sysdeps/arm/Implies: likewise.
866 * README: Document it.
868 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
870 * signals.c: Remove unneeded initializer for sigwaited, saving a
873 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
875 * semaphore.c (sem_init): Set sem_spinlock only if available.
877 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
879 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
880 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
882 * Makefile: Update from LinuxThreads 0.7.
883 * internals.h. Likewise.
884 * manager.c: Likewise.
886 * pthread.c: Likewise.
887 * signals.c: Likewise.
888 * specific.c: Likewise.
889 * Examples/ex3.c: Likewise.
891 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
893 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
896 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
898 * wrapsyscall.c: Add socket functions which are also cancelation
901 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
903 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
904 New functions for fast thread specific data within libc.
906 * internals.h: Add new array p_libc_specific to struct
907 _pthread_descr_struct.
909 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
911 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
913 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
914 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
916 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
918 * internals.h (struct _pthread_descr_struct): Add definitions for
919 two-level specific key handling.
920 * manager.c (pthread_handle_create): Initialize specific memory array.
921 * specific.c: Implement two-level key handling.
922 * weaks.c: Don't provide dummy key handling.
923 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
924 Add definition of __libc_key_t.
925 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
927 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
928 PTHREAD_DESTRUCTOR_ITERATIONS.
930 * manager.c (pthread_handle_create): Compare mmap result with
933 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
934 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
936 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
938 sysdeps/sparc -> sysdeps/sparc/sparc32
939 sysdeps/sparc64 -> sysdeps/sparc/sparc64
941 * internals.h: Change definition of THREAD_SELF to be an expression,
942 not a statement that did a return.
943 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
944 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
945 Follow Solaris and use a "system reserved" register (%g6) to hold
946 the thread descriptor.
947 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
949 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
951 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
952 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
953 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
955 * semaphore.c: Include spinlock.h only when needed.
957 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
958 keys for entries not in use.
960 * weaks.c: Implement key handling functions for real.
962 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
964 Initial sparc64-linux support:
965 * linuxthreads/sysdeps/sparc64/Implies: New file.
966 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
968 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
970 * semaphore.c: Include spinlock.h at correct place.
973 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
975 The Great Bit File Move:
976 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
977 * sysdeps/powerpc/semaphorebits.h: Likewise.
978 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
979 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
980 * sysdeps/pthread/libc-lock.h: -> bits/
981 * sysdeps/pthread/stdio-lock.h: Likewise.
982 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
983 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
984 * semaphore.h: Likewise.
985 * sysdeps/pthread/pthread.h: Likewise.
987 * lockfile.c: <foo.h> -> <bits/foo.h>.
988 * semaphore.h: Likewise.
990 * Makefile: (headers): foo.h -> bits/foo.h.
991 * sysdeps/pthread/Makefile: Likewise.
993 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
995 * semaphore.c (sem_init): Set sem_spinlock only if available.
997 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1000 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1002 Update from LinuxThreads 0.6.
1004 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1005 and __sched_get_priority_min instead of names without `__'.
1007 * manager.c: Rewrite large parts to implement opaque pthread_t.
1009 * cancel.c: Adapt for opaque pthread_t type.
1010 * condvar.c: Likewise.
1011 * errno.c: Likewise.
1013 * mutex.c: Likewise.
1014 * pthread.c: Likewise.
1015 * signals.c: Likewise.
1016 * specific.c: Likewise.
1017 * restart.h: Likewise.
1018 * queue.h: Likewise.
1019 * Examples/ex3.c: Likewise.
1020 * Examples/ex4.c: Likewise.
1021 * sysdeps/pthread/pthread.h: Likewise.
1023 * pthread.c: Accumulate time for all threads in thread manager.
1025 * semaphore.c: Implement fallback implementation for architectures
1026 sometimes missing compare-exchange operations.
1028 * cancel.c (pthread_cancel): Validate handle argument.
1029 * join.c (pthread_join): Likewise.
1030 (pthread_detach): Likewise.
1031 * signals.c (pthread_kill): Likewise.
1033 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1035 * queue.h (enqueue): Enqueue thread according to priority.
1037 * internals.c (struct pthread_start_args): New struct for passing
1038 args to cloning function.
1039 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1042 * Examples/Makefile (clean): Pass -f option to rm.
1044 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1045 and define TEST_FOR_COMPARE_AND_SWAP.
1046 * sysdeps/i386/i486/pt-machine.h: Removed.
1048 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1051 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1053 * restart.h (suspend): Clear p_signal before suspending.
1054 (suspend_with_cancellation): Likewise.
1055 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1057 * weaks.c: Make __pthread_key_create return 1.
1058 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1059 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1060 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1063 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1065 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1067 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1069 * sysdeps/powerpc/Implies: Added.
1070 * sysdeps/powerpc/pt-machine.h: Added.
1071 * sysdeps/powerpc/semaphorebits.h: Added.
1073 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1075 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1077 (__pthread_manager_thread): Likewise.
1078 Reported by Andreas Jaeger.
1080 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1082 Since sigset_t no longer fits in a register, we can't pass in the
1083 thread's initial mask so easily. Take this opportunity to simplify
1084 the clone implementation by only accepting a single void* argument.
1086 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1087 in the thread struct instead of as arguments through clone.
1088 (pthread_start_thread): Look for them there.
1089 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1090 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1091 * linuxthreads/pthread.c (pthread_initialize_manager): Revise