1 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
3 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
4 casx not cas, also successful casx returns the old value in rd
7 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
9 * manager.c: If pthread_create() is given a NULL attribute
10 and the thread manager runs with a realtime policy, set the
11 scheduling policy of the newly created thread back to SCHED_OTHER.
12 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
13 initialize the schedpolicy field of new_thread->p_start_args
14 to that of the calling thread.
16 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
18 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
19 instruction does not allow memory element to use offset.
21 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
23 * manager.c (pthread_allocate_stack): Optimize initialization of new
26 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
27 Don't use initializer since it is all zeroes.
28 (__libc_once_define): Likewise.
30 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
32 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
33 doesn't exist anymore.
34 * sysdeps/i386/Implies: Likewise.
35 * sysdeps/m68k/Implies: Likewise.
36 * sysdeps/mips/Implies: Likewise.
37 * sysdeps/powerpc/Implies: Likewise.
38 * sysdeps/sparc/sparc32/Implies: Likewise.
39 * sysdeps/sparc/sparc64/Implies: Likewise.
41 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
43 * sysdeps/alpha/bits/semaphore.h: Removed.
44 * sysdeps/powerpc/bits/semaphore.h: Removed.
45 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
46 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
47 * Makefile (headers): Remove bits/semaphore.h.
49 * semaphore.h: Define _pthread_descr if necessary.
50 Don't include limits.h. Define SEM_VALUE_MAX directly.
52 (sem_t): Protect element names with leading __.
53 Add declarations for sem_close, sem_open, and sem_unlink.
54 * semaphore.c: Adjust all functions for new element names.
55 Define sem_close, sem_open, and sem_unlink.
56 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
58 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
61 1999-03-16 H.J. Lu <hjl@gnu.org>
63 * specific.c (pthread_key_delete): Check th->p_terminated to see
64 if the thread is running.
66 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
67 Added to GLIBC_2.0 for libc.so.
69 1999-02-12 H.J. Lu <hjl@gnu.org>
71 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
72 __libc_allocate_rtsig): Added to GLIBC_2.1.
74 * internals.h (DEFAULT_SIG_RESTART): Removed.
75 (DEFAULT_SIG_CANCEL): Removed.
77 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
78 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
79 (__pthread_sig_restart, __pthread_sig_cancel,
80 __pthread_sig_debug): Initialized.
81 (pthread_initialize): Call init_rtsigs () to initialize
84 1999-02-03 H.J. Lu <hjl@gnu.org>
86 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
87 Don't restart the thread which sent REQ_DEBUG.
88 (pthread_start_thread): Check if __pthread_sig_debug > 0
91 * pthread.c (__pthread_initialize_manager): Suspend ourself
92 after sending __pthread_sig_debug to gdb instead of
95 1999-01-24 H.J. Lu <hjl@gnu.org>
97 * manager.c (__pthread_manager): Delete __pthread_sig_debug
98 from mask if __pthread_sig_debug > 0.
99 (pthread_handle_create): Increment __pthread_handles_num.
101 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
102 * pthread.c (__pthread_initialize_manager): Likewise.
104 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
105 instead of __libc_allocate_rtsig (2).
106 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
107 instead of __pthread_sig_cancel.
108 (pthread_handle_sigdebug): Fix comments.
110 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
112 * manager.c (pthread_allocate_stack): Set
113 __pthread_nonstandard_stacks if user-specified stack is used.
115 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
117 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
118 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
120 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
122 * pthread.c: Use a third signal __pthread_sig_debug distinct
123 from __pthread_sig_cancel to notify gdb when a thread is
125 * manager.c: Likewise.
126 * internals.h: Likewise.
127 * signals.c: The implementation of sigwait(s) assumed that
128 all signals in s have signal handlers already attached.
129 This is not required by the standard, so make it work
130 also if some of the signals have no handlers.
132 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
134 * linuxthreads.texi: Remove pointers from first @node. Move old
135 @node spec inside comment.
137 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
139 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
142 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
144 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
145 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
147 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
149 * manager.c: Threads now send __pthread_sig_cancel on termination.
150 Change clone call and signal masks.
151 * thread.c (pthread_handle_sigrestart): Remove special code for
153 (pthread_handle_sigcancel): In manager thread call
154 __pthread_manager_sighandler.
155 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
156 * sysdeps/i386/i686/pt-machine.h: Likewise.
157 Patches by Xavier Leroy.
159 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
161 * spinlock.c (__pthread_unlock): Don't crash if called for an
162 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
164 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
167 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
169 * Examples/ex3.c: Wait until all threads are started before
170 searching for the number to avoid race condition on very fast
173 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
175 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
176 declaration since it's not needed.
178 * sysdeps/pthread/pthread.h: Move internal functions to ...
179 * internals.h: ...here.
181 1998-12-02 H.J. Lu <hjl@gnu.org>
183 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
185 (__pthread_sig_cancel): Likewise.
187 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
189 * wrapsyscall.c: Include <sys/mman.h> for msync,
190 <stdlib.h> for system and <termios.h> for tcdrain prototype.
191 Correct msync declaration.
193 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
195 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
196 __libc_tsd_set): New macros for new interface.
197 * no-tsd.c: New file, provide uninitialized defns of
198 __libc_internal_tsd_get and __libc_internal_tsd_set.
199 * Makefile (routines): Add no-tsd.
201 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
203 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
204 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
205 __libc_internal_tsd_set): Move decls to ...
206 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
209 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
210 __libc_internal_tsd_set): Make these pointers to functions, not
211 functions; remove #pragma weak decls for them.
212 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
213 Define static functions and initialized pointers to them.
215 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
217 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
218 (CFLAGS-specific.c): Likewise.
219 (CFLAGS-pthread.c): Likewise.
220 (CFLAGS-ptfork.c): Likewise.
221 (CFLAGS-cancel.c): Likewise.
222 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
223 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
225 * mutex.c (pthread_mutex_init): Define as strong symbol.
226 (pthread_mutex_destroy): Likewise.
227 (pthread_mutex_trylock): Likewise.
228 (pthread_mutex_lock): Likewise.
229 (pthread_mutex_unlock): Likewise.
230 (pthread_mutexattr_init): Likewise.
231 (pthread_mutexattr_destroy): Likewise.
232 (pthread_once): Likewise.
233 * ptfork.c (pthread_atfork): Likewise.
234 * specific.c (pthread_key_create): Likewise.
235 (pthread_setspecific): Likewise.
236 (pthread_getspecific): Likewise.
238 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
240 * linuxthreads.texi: Fix punctuation after xref.
242 1998-11-10 H.J. Lu <hjl@gnu.org>
244 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
245 if it is defined in <linux/limits.h>.
247 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
249 * spinlock.h (__pthread_trylock): Define inline.
250 (__pthread_lock): Add extra parameter to declaration. Declare
251 using internal_function.
252 (__pthread_unlock): Declare using internal_function.
253 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
254 of local variable self. Avoid recomputing self. Define using
256 (__pthread_trylock): Remove.
257 (__pthread_unlock): Define using internal_function.
258 * cancel.c: Adjust for __pthread_lock interface change. Use already
259 computed self value is possible.
260 * condvar.c: Likewise.
262 * manager.c: Likewise.
264 * pthread.c: Likewise.
265 * rwlock.c: Likewise.
266 * semaphore.c: Likewise.
267 * signals.c: Likewise.
269 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
271 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
272 __ to field names of the struct.
273 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
275 (pthread_attr_t): Likewise.
276 (pthread_cond_t): Likewise.
277 (pthread_condattr_t): Likewise.
278 (pthread_mutex_t): Likewise.
279 (pthread_mutexattr_t): Likewise.
280 (pthread_rwlock_t): Likewise.
281 (pthread_rwlockattr_t): Likewise.
282 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
283 * cancel.c: Likewise.
284 * condvar.c: Likewise.
285 * manager.c: Likewise.
287 * pthread.c: Likewise.
288 * ptlongjmp.c: Likewise.
289 * rwlock.c: Likewise.
290 * spinlock.c: Likewise.
292 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
294 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
297 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
300 * Makefile (libpthread-routines): Add pt-machine.
301 * pt-machine.c: New file.
302 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
303 yet defined. Use PT_EI in extern inline definitions.
304 * sysdeps/arm/pt-machine.h: Likewise.
305 * sysdeps/i386/pt-machine.h: Likewise.
306 * sysdeps/i386/i686/pt-machine.h: Likewise.
307 * sysdeps/m68k/pt-machine.h: Likewise.
308 * sysdeps/mips/pt-machine.h: Likewise.
309 * sysdeps/powerpc/pt-machine.h: Likewise.
310 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
311 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
313 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
315 * semaphore.h: Include <sys/types.h> so that _pthread_descr
318 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
320 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
322 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
324 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
326 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
327 multiple inclusion guard.
329 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
331 * signals.c (sigaction): Check that sig is less than NSIG to avoid
332 array index overflow.
334 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
336 * sysdeps/pthread/semaphore.h: New file.
338 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
340 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
341 _LIBC_TSD_KEY_DL_ERROR.
343 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
345 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
346 * sysdeps/i386/pt-machine.h: Likewise.
347 Suggested by Roland McGrath.
349 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
351 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
352 access thread data with non-constant offsets.
353 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
356 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
357 THREAD_SETMEM_NC definitions.
359 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
361 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
363 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
365 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
367 (struct _pthread_descr_struct): Add p_self and p_nr field.
368 * manager.c (__pthread_handles): Define second element to point
370 (__pthread_handles_num): Initialize to 2.
371 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
372 (pthread_start_thread): Likewise.
373 (pthread_handle_create): Start search for free slot at entry 2.
374 Initialize new fields p_self and p_nr.
375 Call __clone with CLONE_PTRACE if available.
376 (pthread_free): Call FREE_THREAD_SELF if available.
377 * pthread.c (__pthread_initial_thread): Initialize new fields.
378 (__pthread_manager_thread): Likewise.
379 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
381 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
382 elements of the thread descriptor.
383 * condvar.c: Likewise.
386 * manager.c: Likewise.
387 * pthread.c: Likewise.
388 * ptlongjmp.c: Likewise.
389 * semaphore.c: Likewise.
390 * signals.c: Likewise.
391 * specific.c: Likewise.
392 * spinlock.c: Likewise.
394 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
396 * sysdeps/i386/useldt.h: New file.
397 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
399 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
400 THREAD_SETMEM using __thread_self.
401 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
403 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
405 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
406 turned out that we didn't need to queue after all.
408 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
410 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
411 and wastes space; correct types.
413 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
415 * signals.c (sigaction): Handle NULL argument.
417 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
419 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
422 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
424 * Makefile (linuxthreads-version): Extract correct number from
427 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
429 * Banner: Bump version number to 0.8
430 * FAQ.html: Many updates, in particular w.r.t. debugging.
431 * manager.c: Support for non-default stacksize for
432 LinuxThreads-allocated stacks;
433 don't use guard pages for stacks with default size, rely on
434 rlimit(RLIMIT_STACK) instead (it's cheaper).
436 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
437 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
438 * condvar.c: Likewise.
439 * internals.h: Likewise.
440 * restart.h: Likewise.
441 * signals.c: Likewise.
442 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
444 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
446 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
447 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
448 * Versions: Put __pthread_mutexattr_settype under version
449 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
450 __pthread_mutexattr_gettype.
452 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
454 * sysdeps/pthread/bits/libc-lock.h: Make
455 __pthread_mutexattr_settype weak. Don't make
456 __pthread_mutexattr_setkind_np weak.
458 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
460 * manager.c (pthread_handle_create): Check whether sched_setscheduler
461 call can succeed here.
463 * mutex.c: Define __pthread_mutexattr_settype and make
464 __pthread_mutexattr_setkind_np an alias.
465 Likewise for __pthread_mutexattr_gettype.
467 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
469 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
472 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
474 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
476 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
478 * Examples/ex6.c: Include <unistd.h> for usleep.
480 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
482 * Examples/ex4.c (main): Use exit, not pthread_exit.
484 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
486 * Versions: Add __pthread_mutexattr_gettype and
487 __pthread_mutexattr_settype.
488 * lockfile.c: Use __pthread_mutexattr_settype instead of
489 __pthread_mutexattr_setkind_np.
490 * mutex.c: Define __pthread_mutexattr_gettype and
491 __pthread_mutexattr_settype.
493 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
494 __pthread_mutexattr_settype.
495 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
496 Use __pthread_mutexattr_settype.
498 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
500 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
501 * mutex.c: Define weak alias pthread_mutexattr_gettype and
502 pthread_mutexattr_settype.
503 * sysdeps/pthread/pthread.h: Declare these functions.
504 Move pthread_sigmask and pthread_kill declaration in separate header.
505 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
507 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
509 * Makefile: Add rules to compile and run tests.
510 * Examples/ex1.c: Little changes to fix warnings.
511 * Examples/ex2.c: Likewise.
512 * Examples/ex3.c: Likewise.
513 * Examples/ex4.c: Likewise.
514 * Examples/ex5.c: Likewise.
515 * Examples/ex6.c: New file.
517 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
519 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
521 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
523 * attr.c: Include <string.h>.
525 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
527 * attr.c: Include errno.h. Use memcpy to copy sched_param.
528 * internals.h: Include limits.h.
529 * manager.c: Use memcpy to copy sched_param.
530 * ptfork.c: Include errno.h.
531 * pthread.c: Likewise.
532 * semaphore.c: Likewise.
533 * specific.c: Likewise.
534 * spinlock.h: Likewise.
535 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
536 type definition to ...
537 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
539 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
541 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
543 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
544 as macros as demanded in POSIX.1, Annex C.
546 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
548 * internals.h (struct pthread_request): For free use pthread_t
549 instead of pthread_descr.
550 * join.c (pthread_join): Pass thread_id, not th to manager.
551 (pthread_detach): Likewise.
552 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
553 (pthread_exited): Remove detached queue code.
554 (pthread_handle_free): Expect thread ID parameter and use it to
555 validate the thread decsriptor. Don't use detached queue.
556 Patches by Xavier Leroy.
558 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
560 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
561 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
562 __pthread_atfork, __pthread_key_create, __pthread_once.
563 * internals.h: Doc fix.
564 * pthread.c (__pthread_initialize): Define again.
566 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
568 * manager.c (pthread_exited): If thread is not detached put it on
570 (pthread_handle_free): If thread is not on list with living threads
571 search on list with detached threads.
573 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
574 for new definition of pthread_rwlock_t.
576 * spinlock.c: Correct test whether to compile
577 __pthread_compare_and_swap or not.
579 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
581 * attr.c: Finish user stack support. Change locking code to be safe
582 in situations with different priorities.
583 * cancel.c: Likewise.
584 * condvar.c: Likewise.
585 * internals.h: Likewise.
587 * manager.c: Likewise.
589 * pthread.c: Likewise.
590 * ptlongjmp.c: Likewise.
592 * rwlock.c: Likewise.
593 * semaphore.c: Likewise.
594 * semaphore.h: Likewise.
595 * signals.c: Likewise.
596 * spinlock.c: Likewise.
597 * spinlock.h: Likewise.
598 * sysdeps/pthread/pthread.h: Likewise.
599 Patches by Xavier Leroy.
601 * sysdeps/i386/i686/pt-machine.h: New file.
603 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
605 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
606 [sg]et_stackaddr prototypes always available.
608 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
609 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
611 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
613 * manager.c (pthread_free): Undo patch from 980430.
614 Reported by David Wragg <dpw@doc.ic.ac.uk>.
616 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
618 * manager.c: Define __pthread_manager_adjust_prio and use it to
619 increase priority when needed.
620 * internals.h: Add prototype for __pthread_manager_adjust_prio.
621 * mutex.c: Optimize mutexes to wake up only one thread.
622 * pthread.c: Move PID of manager for global variable in structure
624 Patches by Xavier Leroy.
626 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
628 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
630 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
632 * attr.c: Correct typo.
634 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
636 * manager.c (pthread_free): Unmap guard before the stack.
637 Patch by Matthias Urlichs.
639 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
641 * manager.c (pthread_free): Detect already free child.
642 Patch by Xavier Leroy, reported by Matthias Urlichs.
644 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
646 * Makefile (linuxthreads-version): Renamed back from
649 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
651 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
654 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
656 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
657 * internals.h: Add definitions for new spinlock implementation.
658 * ptlongjmp.c: New file.
659 * spinlock.c: New file.
660 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
661 new function __pthread_acquire to prevent deadlocks with thread
662 with different priorities.
663 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
665 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
667 * manager.c (__pthread_manager): Reduce first argument to select
668 to include just the needed file descriptor.
670 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
672 * manager.c: Fix last patch which caused core dumps.
674 * pthread.c: Correctly handle missing SIGRTMIN.
676 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
678 * libpthread.map: Add __libc_internal_tsd_get and
679 __libc_internal_tsd_set. Add missing cancelable functions. Export
680 libc internal versions of the cancelable functions.
682 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
684 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
686 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
688 * attr.c: Implement pthread_attr_[gs]etguardsize,
689 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
690 Change pthread_attr_init to have two interfaces.
691 * internals.h (struct _pthread_descr_struct): Add new fields for
693 * libpthread.map: Add names in GLIBC_2.1 section.
694 * manager.c (pthread_handle_create): Implement guardsize and
696 (pthread_free): Likewise.
697 * pthread.c (pthread_create): Add new interface for changed
699 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
700 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
703 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
705 * manager.c: Enable resetting of the thread scheduling policy
706 to SCHED_OTHER when the parent thread has a different one.
708 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
710 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
711 _POSIX_ASYNCHRONOUS_IO.
713 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
715 * mutex.c: Implement new mutex types.
717 * internals.h: Include <signal.h>.
719 * libpthread.map: Add __erno_location and __h_errno_location.
721 * errno.c: Return pointer to variable actually in use. This might
722 not be the one in the thread structure.
723 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
725 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
726 of manager thread structure.
727 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
729 * pthread.c: Adapt initializer for thread structures.
730 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
731 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
732 current thread to global variables.
734 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
736 * rwlock.c: New file.
737 * Makefile (libpthread-routines): Add rwlock.
738 * sysdeps/pthread/pthread.h: Define data structures and declare
740 * libpthread.map: Add new functions.
742 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
744 * sysdeps/arm/pt-machine.h: New file; add ARM support.
745 * sysdeps/arm/Implies: likewise.
746 * README: Document it.
748 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
750 * signals.c: Remove unneeded initializer for sigwaited, saving a
753 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
755 * semaphore.c (sem_init): Set sem_spinlock only if available.
757 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
759 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
760 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
762 * Makefile: Update from LinuxThreads 0.7.
763 * internals.h. Likewise.
764 * manager.c: Likewise.
766 * pthread.c: Likewise.
767 * signals.c: Likewise.
768 * specific.c: Likewise.
769 * Examples/ex3.c: Likewise.
771 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
773 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
776 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
778 * wrapsyscall.c: Add socket functions which are also cancelation
781 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
783 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
784 New functions for fast thread specific data within libc.
786 * internals.h: Add new array p_libc_specific to struct
787 _pthread_descr_struct.
789 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
791 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
793 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
794 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
796 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
798 * internals.h (struct _pthread_descr_struct): Add definitions for
799 two-level specific key handling.
800 * manager.c (pthread_handle_create): Initialize specific memory array.
801 * specific.c: Implement two-level key handling.
802 * weaks.c: Don't provide dummy key handling.
803 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
804 Add definition of __libc_key_t.
805 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
807 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
808 PTHREAD_DESTRUCTOR_ITERATIONS.
810 * manager.c (pthread_handle_create): Compare mmap result with
813 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
814 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
816 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
818 sysdeps/sparc -> sysdeps/sparc/sparc32
819 sysdeps/sparc64 -> sysdeps/sparc/sparc64
821 * internals.h: Change definition of THREAD_SELF to be an expression,
822 not a statement that did a return.
823 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
824 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
825 Follow Solaris and use a "system reserved" register (%g6) to hold
826 the thread descriptor.
827 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
829 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
831 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
832 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
833 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
835 * semaphore.c: Include spinlock.h only when needed.
837 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
838 keys for entries not in use.
840 * weaks.c: Implement key handling functions for real.
842 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
844 Initial sparc64-linux support:
845 * linuxthreads/sysdeps/sparc64/Implies: New file.
846 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
848 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
850 * semaphore.c: Include spinlock.h at correct place.
853 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
855 The Great Bit File Move:
856 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
857 * sysdeps/powerpc/semaphorebits.h: Likewise.
858 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
859 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
860 * sysdeps/pthread/libc-lock.h: -> bits/
861 * sysdeps/pthread/stdio-lock.h: Likewise.
862 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
863 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
864 * semaphore.h: Likewise.
865 * sysdeps/pthread/pthread.h: Likewise.
867 * lockfile.c: <foo.h> -> <bits/foo.h>.
868 * semaphore.h: Likewise.
870 * Makefile: (headers): foo.h -> bits/foo.h.
871 * sysdeps/pthread/Makefile: Likewise.
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 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
880 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
882 Update from LinuxThreads 0.6.
884 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
885 and __sched_get_priority_min instead of names without `__'.
887 * manager.c: Rewrite large parts to implement opaque pthread_t.
889 * cancel.c: Adapt for opaque pthread_t type.
890 * condvar.c: Likewise.
894 * pthread.c: Likewise.
895 * signals.c: Likewise.
896 * specific.c: Likewise.
897 * restart.h: Likewise.
899 * Examples/ex3.c: Likewise.
900 * Examples/ex4.c: Likewise.
901 * sysdeps/pthread/pthread.h: Likewise.
903 * pthread.c: Accumulate time for all threads in thread manager.
905 * semaphore.c: Implement fallback implementation for architectures
906 sometimes missing compare-exchange operations.
908 * cancel.c (pthread_cancel): Validate handle argument.
909 * join.c (pthread_join): Likewise.
910 (pthread_detach): Likewise.
911 * signals.c (pthread_kill): Likewise.
913 * spinlock.h (acquire): Use __sched_yield not sched_yield.
915 * queue.h (enqueue): Enqueue thread according to priority.
917 * internals.c (struct pthread_start_args): New struct for passing
918 args to cloning function.
919 (struct _pthread): Rename to _pthread_descr_struct and adapt for
922 * Examples/Makefile (clean): Pass -f option to rm.
924 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
925 and define TEST_FOR_COMPARE_AND_SWAP.
926 * sysdeps/i386/i486/pt-machine.h: Removed.
928 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
931 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
933 * restart.h (suspend): Clear p_signal before suspending.
934 (suspend_with_cancellation): Likewise.
935 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
937 * weaks.c: Make __pthread_key_create return 1.
938 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
939 __libc_getspecific, __libc_setspecific, and __libc_key_t.
940 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
943 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
945 * sysdeps/sparc/pt-machine (RELEASE): Fix.
947 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
949 * sysdeps/powerpc/Implies: Added.
950 * sysdeps/powerpc/pt-machine.h: Added.
951 * sysdeps/powerpc/semaphorebits.h: Added.
953 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
955 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
957 (__pthread_manager_thread): Likewise.
958 Reported by Andreas Jaeger.
960 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
962 Since sigset_t no longer fits in a register, we can't pass in the
963 thread's initial mask so easily. Take this opportunity to simplify
964 the clone implementation by only accepting a single void* argument.
966 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
967 in the thread struct instead of as arguments through clone.
968 (pthread_start_thread): Look for them there.
969 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
970 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
971 * linuxthreads/pthread.c (pthread_initialize_manager): Revise