1 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
3 * pthread.c: Use a third signal __pthread_sig_debug distinct
4 from __pthread_sig_cancel to notify gdb when a thread is
7 * internals.h: Likewise.
8 * signals.c: The implementation of sigwait(s) assumed that
9 all signals in s have signal handlers already attached.
10 This is not required by the standard, so make it work
11 also if some of the signals have no handlers.
13 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
15 * linuxthreads.texi: Remove pointers from first @node. Move old
16 @node spec inside comment.
18 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
20 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
23 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
25 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
26 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
28 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
30 * manager.c: Threads now send __pthread_sig_cancel on termination.
31 Change clone call and signal masks.
32 * thread.c (pthread_handle_sigrestart): Remove special code for
34 (pthread_handle_sigcancel): In manager thread call
35 __pthread_manager_sighandler.
36 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
37 * sysdeps/i386/i686/pt-machine.h: Likewise.
38 Patches by Xavier Leroy.
40 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
42 * spinlock.c (__pthread_unlock): Don't crash if called for an
43 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
45 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
48 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
50 * Examples/ex3.c: Wait until all threads are started before
51 searching for the number to avoid race condition on very fast
54 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
56 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
57 declaration since it's not needed.
59 * sysdeps/pthread/pthread.h: Move internal functions to ...
60 * internals.h: ...here.
62 1998-12-02 H.J. Lu <hjl@gnu.org>
64 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
66 (__pthread_sig_cancel): Likewise.
68 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
70 * wrapsyscall.c: Include <sys/mman.h> for msync,
71 <stdlib.h> for system and <termios.h> for tcdrain prototype.
72 Correct msync declaration.
74 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
76 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
77 __libc_tsd_set): New macros for new interface.
78 * no-tsd.c: New file, provide uninitialized defns of
79 __libc_internal_tsd_get and __libc_internal_tsd_set.
80 * Makefile (routines): Add no-tsd.
82 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
84 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
85 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
86 __libc_internal_tsd_set): Move decls to ...
87 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
90 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
91 __libc_internal_tsd_set): Make these pointers to functions, not
92 functions; remove #pragma weak decls for them.
93 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
94 Define static functions and initialized pointers to them.
96 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
98 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
99 (CFLAGS-specific.c): Likewise.
100 (CFLAGS-pthread.c): Likewise.
101 (CFLAGS-ptfork.c): Likewise.
102 (CFLAGS-cancel.c): Likewise.
103 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
104 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
106 * mutex.c (pthread_mutex_init): Define as strong symbol.
107 (pthread_mutex_destroy): Likewise.
108 (pthread_mutex_trylock): Likewise.
109 (pthread_mutex_lock): Likewise.
110 (pthread_mutex_unlock): Likewise.
111 (pthread_mutexattr_init): Likewise.
112 (pthread_mutexattr_destroy): Likewise.
113 (pthread_once): Likewise.
114 * ptfork.c (pthread_atfork): Likewise.
115 * specific.c (pthread_key_create): Likewise.
116 (pthread_setspecific): Likewise.
117 (pthread_getspecific): Likewise.
119 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
121 * linuxthreads.texi: Fix punctuation after xref.
123 1998-11-10 H.J. Lu <hjl@gnu.org>
125 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
126 if it is defined in <linux/limits.h>.
128 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
130 * spinlock.h (__pthread_trylock): Define inline.
131 (__pthread_lock): Add extra parameter to declaration. Declare
132 using internal_function.
133 (__pthread_unlock): Declare using internal_function.
134 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
135 of local variable self. Avoid recomputing self. Define using
137 (__pthread_trylock): Remove.
138 (__pthread_unlock): Define using internal_function.
139 * cancel.c: Adjust for __pthread_lock interface change. Use already
140 computed self value is possible.
141 * condvar.c: Likewise.
143 * manager.c: Likewise.
145 * pthread.c: Likewise.
146 * rwlock.c: Likewise.
147 * semaphore.c: Likewise.
148 * signals.c: Likewise.
150 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
152 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
153 __ to field names of the struct.
154 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
156 (pthread_attr_t): Likewise.
157 (pthread_cond_t): Likewise.
158 (pthread_condattr_t): Likewise.
159 (pthread_mutex_t): Likewise.
160 (pthread_mutexattr_t): Likewise.
161 (pthread_rwlock_t): Likewise.
162 (pthread_rwlockattr_t): Likewise.
163 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
164 * cancel.c: Likewise.
165 * condvar.c: Likewise.
166 * manager.c: Likewise.
168 * pthread.c: Likewise.
169 * ptlongjmp.c: Likewise.
170 * rwlock.c: Likewise.
171 * spinlock.c: Likewise.
173 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
175 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
178 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
181 * Makefile (libpthread-routines): Add pt-machine.
182 * pt-machine.c: New file.
183 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
184 yet defined. Use PT_EI in extern inline definitions.
185 * sysdeps/arm/pt-machine.h: Likewise.
186 * sysdeps/i386/pt-machine.h: Likewise.
187 * sysdeps/i386/i686/pt-machine.h: Likewise.
188 * sysdeps/m68k/pt-machine.h: Likewise.
189 * sysdeps/mips/pt-machine.h: Likewise.
190 * sysdeps/powerpc/pt-machine.h: Likewise.
191 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
192 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
194 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
196 * semaphore.h: Include <sys/types.h> so that _pthread_descr
199 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
201 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
203 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
205 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
207 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
208 multiple inclusion guard.
210 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
212 * signals.c (sigaction): Check that sig is less than NSIG to avoid
213 array index overflow.
215 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
217 * sysdeps/pthread/semaphore.h: New file.
219 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
221 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
222 _LIBC_TSD_KEY_DL_ERROR.
224 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
226 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
227 * sysdeps/i386/pt-machine.h: Likewise.
228 Suggested by Roland McGrath.
230 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
232 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
233 access thread data with non-constant offsets.
234 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
237 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
238 THREAD_SETMEM_NC definitions.
240 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
242 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
244 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
246 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
248 (struct _pthread_descr_struct): Add p_self and p_nr field.
249 * manager.c (__pthread_handles): Define second element to point
251 (__pthread_handles_num): Initialize to 2.
252 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
253 (pthread_start_thread): Likewise.
254 (pthread_handle_create): Start search for free slot at entry 2.
255 Initialize new fields p_self and p_nr.
256 Call __clone with CLONE_PTRACE if available.
257 (pthread_free): Call FREE_THREAD_SELF if available.
258 * pthread.c (__pthread_initial_thread): Initialize new fields.
259 (__pthread_manager_thread): Likewise.
260 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
262 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
263 elements of the thread descriptor.
264 * condvar.c: Likewise.
267 * manager.c: Likewise.
268 * pthread.c: Likewise.
269 * ptlongjmp.c: Likewise.
270 * semaphore.c: Likewise.
271 * signals.c: Likewise.
272 * specific.c: Likewise.
273 * spinlock.c: Likewise.
275 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
277 * sysdeps/i386/useldt.h: New file.
278 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
280 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
281 THREAD_SETMEM using __thread_self.
282 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
284 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
286 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
287 turned out that we didn't need to queue after all.
289 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
291 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
292 and wastes space; correct types.
294 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
296 * signals.c (sigaction): Handle NULL argument.
298 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
300 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
303 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
305 * Makefile (linuxthreads-version): Extract correct number from
308 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
310 * Banner: Bump version number to 0.8
311 * FAQ.html: Many updates, in particular w.r.t. debugging.
312 * manager.c: Support for non-default stacksize for
313 LinuxThreads-allocated stacks;
314 don't use guard pages for stacks with default size, rely on
315 rlimit(RLIMIT_STACK) instead (it's cheaper).
317 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
318 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
319 * condvar.c: Likewise.
320 * internals.h: Likewise.
321 * restart.h: Likewise.
322 * signals.c: Likewise.
323 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
325 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
327 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
328 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
329 * Versions: Put __pthread_mutexattr_settype under version
330 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
331 __pthread_mutexattr_gettype.
333 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
335 * sysdeps/pthread/bits/libc-lock.h: Make
336 __pthread_mutexattr_settype weak. Don't make
337 __pthread_mutexattr_setkind_np weak.
339 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
341 * manager.c (pthread_handle_create): Check whether sched_setscheduler
342 call can succeed here.
344 * mutex.c: Define __pthread_mutexattr_settype and make
345 __pthread_mutexattr_setkind_np an alias.
346 Likewise for __pthread_mutexattr_gettype.
348 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
350 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
353 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
355 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
357 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
359 * Examples/ex6.c: Include <unistd.h> for usleep.
361 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
363 * Examples/ex4.c (main): Use exit, not pthread_exit.
365 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
367 * Versions: Add __pthread_mutexattr_gettype and
368 __pthread_mutexattr_settype.
369 * lockfile.c: Use __pthread_mutexattr_settype instead of
370 __pthread_mutexattr_setkind_np.
371 * mutex.c: Define __pthread_mutexattr_gettype and
372 __pthread_mutexattr_settype.
374 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
375 __pthread_mutexattr_settype.
376 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
377 Use __pthread_mutexattr_settype.
379 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
381 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
382 * mutex.c: Define weak alias pthread_mutexattr_gettype and
383 pthread_mutexattr_settype.
384 * sysdeps/pthread/pthread.h: Declare these functions.
385 Move pthread_sigmask and pthread_kill declaration in separate header.
386 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
388 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
390 * Makefile: Add rules to compile and run tests.
391 * Examples/ex1.c: Little changes to fix warnings.
392 * Examples/ex2.c: Likewise.
393 * Examples/ex3.c: Likewise.
394 * Examples/ex4.c: Likewise.
395 * Examples/ex5.c: Likewise.
396 * Examples/ex6.c: New file.
398 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
400 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
402 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
404 * attr.c: Include <string.h>.
406 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
408 * attr.c: Include errno.h. Use memcpy to copy sched_param.
409 * internals.h: Include limits.h.
410 * manager.c: Use memcpy to copy sched_param.
411 * ptfork.c: Include errno.h.
412 * pthread.c: Likewise.
413 * semaphore.c: Likewise.
414 * specific.c: Likewise.
415 * spinlock.h: Likewise.
416 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
417 type definition to ...
418 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
420 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
422 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
424 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
425 as macros as demanded in POSIX.1, Annex C.
427 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
429 * internals.h (struct pthread_request): For free use pthread_t
430 instead of pthread_descr.
431 * join.c (pthread_join): Pass thread_id, not th to manager.
432 (pthread_detach): Likewise.
433 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
434 (pthread_exited): Remove detached queue code.
435 (pthread_handle_free): Expect thread ID parameter and use it to
436 validate the thread decsriptor. Don't use detached queue.
437 Patches by Xavier Leroy.
439 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
441 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
442 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
443 __pthread_atfork, __pthread_key_create, __pthread_once.
444 * internals.h: Doc fix.
445 * pthread.c (__pthread_initialize): Define again.
447 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
449 * manager.c (pthread_exited): If thread is not detached put it on
451 (pthread_handle_free): If thread is not on list with living threads
452 search on list with detached threads.
454 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
455 for new definition of pthread_rwlock_t.
457 * spinlock.c: Correct test whether to compile
458 __pthread_compare_and_swap or not.
460 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
462 * attr.c: Finish user stack support. Change locking code to be safe
463 in situations with different priorities.
464 * cancel.c: Likewise.
465 * condvar.c: Likewise.
466 * internals.h: Likewise.
468 * manager.c: Likewise.
470 * pthread.c: Likewise.
471 * ptlongjmp.c: Likewise.
473 * rwlock.c: Likewise.
474 * semaphore.c: Likewise.
475 * semaphore.h: Likewise.
476 * signals.c: Likewise.
477 * spinlock.c: Likewise.
478 * spinlock.h: Likewise.
479 * sysdeps/pthread/pthread.h: Likewise.
480 Patches by Xavier Leroy.
482 * sysdeps/i386/i686/pt-machine.h: New file.
484 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
486 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
487 [sg]et_stackaddr prototypes always available.
489 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
490 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
492 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
494 * manager.c (pthread_free): Undo patch from 980430.
495 Reported by David Wragg <dpw@doc.ic.ac.uk>.
497 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
499 * manager.c: Define __pthread_manager_adjust_prio and use it to
500 increase priority when needed.
501 * internals.h: Add prototype for __pthread_manager_adjust_prio.
502 * mutex.c: Optimize mutexes to wake up only one thread.
503 * pthread.c: Move PID of manager for global variable in structure
505 Patches by Xavier Leroy.
507 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
509 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
511 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
513 * attr.c: Correct typo.
515 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
517 * manager.c (pthread_free): Unmap guard before the stack.
518 Patch by Matthias Urlichs.
520 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
522 * manager.c (pthread_free): Detect already free child.
523 Patch by Xavier Leroy, reported by Matthias Urlichs.
525 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
527 * Makefile (linuxthreads-version): Renamed back from
530 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
532 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
535 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
537 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
538 * internals.h: Add definitions for new spinlock implementation.
539 * ptlongjmp.c: New file.
540 * spinlock.c: New file.
541 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
542 new function __pthread_acquire to prevent deadlocks with thread
543 with different priorities.
544 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
546 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
548 * manager.c (__pthread_manager): Reduce first argument to select
549 to include just the needed file descriptor.
551 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
553 * manager.c: Fix last patch which caused core dumps.
555 * pthread.c: Correctly handle missing SIGRTMIN.
557 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
559 * libpthread.map: Add __libc_internal_tsd_get and
560 __libc_internal_tsd_set. Add missing cancelable functions. Export
561 libc internal versions of the cancelable functions.
563 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
565 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
567 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
569 * attr.c: Implement pthread_attr_[gs]etguardsize,
570 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
571 Change pthread_attr_init to have two interfaces.
572 * internals.h (struct _pthread_descr_struct): Add new fields for
574 * libpthread.map: Add names in GLIBC_2.1 section.
575 * manager.c (pthread_handle_create): Implement guardsize and
577 (pthread_free): Likewise.
578 * pthread.c (pthread_create): Add new interface for changed
580 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
581 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
584 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
586 * manager.c: Enable resetting of the thread scheduling policy
587 to SCHED_OTHER when the parent thread has a different one.
589 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
591 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
592 _POSIX_ASYNCHRONOUS_IO.
594 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
596 * mutex.c: Implement new mutex types.
598 * internals.h: Include <signal.h>.
600 * libpthread.map: Add __erno_location and __h_errno_location.
602 * errno.c: Return pointer to variable actually in use. This might
603 not be the one in the thread structure.
604 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
606 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
607 of manager thread structure.
608 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
610 * pthread.c: Adapt initializer for thread structures.
611 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
612 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
613 current thread to global variables.
615 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
617 * rwlock.c: New file.
618 * Makefile (libpthread-routines): Add rwlock.
619 * sysdeps/pthread/pthread.h: Define data structures and declare
621 * libpthread.map: Add new functions.
623 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
625 * sysdeps/arm/pt-machine.h: New file; add ARM support.
626 * sysdeps/arm/Implies: likewise.
627 * README: Document it.
629 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
631 * signals.c: Remove unneeded initializer for sigwaited, saving a
634 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
636 * semaphore.c (sem_init): Set sem_spinlock only if available.
638 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
640 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
641 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
643 * Makefile: Update from LinuxThreads 0.7.
644 * internals.h. Likewise.
645 * manager.c: Likewise.
647 * pthread.c: Likewise.
648 * signals.c: Likewise.
649 * specific.c: Likewise.
650 * Examples/ex3.c: Likewise.
652 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
654 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
657 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
659 * wrapsyscall.c: Add socket functions which are also cancelation
662 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
664 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
665 New functions for fast thread specific data within libc.
667 * internals.h: Add new array p_libc_specific to struct
668 _pthread_descr_struct.
670 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
672 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
674 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
675 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
677 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
679 * internals.h (struct _pthread_descr_struct): Add definitions for
680 two-level specific key handling.
681 * manager.c (pthread_handle_create): Initialize specific memory array.
682 * specific.c: Implement two-level key handling.
683 * weaks.c: Don't provide dummy key handling.
684 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
685 Add definition of __libc_key_t.
686 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
688 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
689 PTHREAD_DESTRUCTOR_ITERATIONS.
691 * manager.c (pthread_handle_create): Compare mmap result with
694 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
695 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
697 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
699 sysdeps/sparc -> sysdeps/sparc/sparc32
700 sysdeps/sparc64 -> sysdeps/sparc/sparc64
702 * internals.h: Change definition of THREAD_SELF to be an expression,
703 not a statement that did a return.
704 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
705 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
706 Follow Solaris and use a "system reserved" register (%g6) to hold
707 the thread descriptor.
708 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
710 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
712 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
713 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
714 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
716 * semaphore.c: Include spinlock.h only when needed.
718 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
719 keys for entries not in use.
721 * weaks.c: Implement key handling functions for real.
723 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
725 Initial sparc64-linux support:
726 * linuxthreads/sysdeps/sparc64/Implies: New file.
727 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
729 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
731 * semaphore.c: Include spinlock.h at correct place.
734 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
736 The Great Bit File Move:
737 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
738 * sysdeps/powerpc/semaphorebits.h: Likewise.
739 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
740 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
741 * sysdeps/pthread/libc-lock.h: -> bits/
742 * sysdeps/pthread/stdio-lock.h: Likewise.
743 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
744 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
745 * semaphore.h: Likewise.
746 * sysdeps/pthread/pthread.h: Likewise.
748 * lockfile.c: <foo.h> -> <bits/foo.h>.
749 * semaphore.h: Likewise.
751 * Makefile: (headers): foo.h -> bits/foo.h.
752 * sysdeps/pthread/Makefile: Likewise.
754 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
756 * semaphore.c (sem_init): Set sem_spinlock only if available.
758 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
761 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
763 Update from LinuxThreads 0.6.
765 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
766 and __sched_get_priority_min instead of names without `__'.
768 * manager.c: Rewrite large parts to implement opaque pthread_t.
770 * cancel.c: Adapt for opaque pthread_t type.
771 * condvar.c: Likewise.
775 * pthread.c: Likewise.
776 * signals.c: Likewise.
777 * specific.c: Likewise.
778 * restart.h: Likewise.
780 * Examples/ex3.c: Likewise.
781 * Examples/ex4.c: Likewise.
782 * sysdeps/pthread/pthread.h: Likewise.
784 * pthread.c: Accumulate time for all threads in thread manager.
786 * semaphore.c: Implement fallback implementation for architectures
787 sometimes missing compare-exchange operations.
789 * cancel.c (pthread_cancel): Validate handle argument.
790 * join.c (pthread_join): Likewise.
791 (pthread_detach): Likewise.
792 * signals.c (pthread_kill): Likewise.
794 * spinlock.h (acquire): Use __sched_yield not sched_yield.
796 * queue.h (enqueue): Enqueue thread according to priority.
798 * internals.c (struct pthread_start_args): New struct for passing
799 args to cloning function.
800 (struct _pthread): Rename to _pthread_descr_struct and adapt for
803 * Examples/Makefile (clean): Pass -f option to rm.
805 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
806 and define TEST_FOR_COMPARE_AND_SWAP.
807 * sysdeps/i386/i486/pt-machine.h: Removed.
809 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
812 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
814 * restart.h (suspend): Clear p_signal before suspending.
815 (suspend_with_cancellation): Likewise.
816 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
818 * weaks.c: Make __pthread_key_create return 1.
819 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
820 __libc_getspecific, __libc_setspecific, and __libc_key_t.
821 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
824 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
826 * sysdeps/sparc/pt-machine (RELEASE): Fix.
828 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
830 * sysdeps/powerpc/Implies: Added.
831 * sysdeps/powerpc/pt-machine.h: Added.
832 * sysdeps/powerpc/semaphorebits.h: Added.
834 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
836 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
838 (__pthread_manager_thread): Likewise.
839 Reported by Andreas Jaeger.
841 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
843 Since sigset_t no longer fits in a register, we can't pass in the
844 thread's initial mask so easily. Take this opportunity to simplify
845 the clone implementation by only accepting a single void* argument.
847 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
848 in the thread struct instead of as arguments through clone.
849 (pthread_start_thread): Look for them there.
850 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
851 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
852 * linuxthreads/pthread.c (pthread_initialize_manager): Revise