Update.
[glibc.git] / linuxthreads / ChangeLog
blob7eac05fee1f15028e5e8b34d949b72e0dbfc366e
1 1999-01-16  Ulrich Drepper  <drepper@cygnus.com>
3         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
4         _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
6 1999-01-07  Xavier Leroy  <Xavier.Leroy@inria.fr>
8         * pthread.c: Use a third signal __pthread_sig_debug distinct
9         from __pthread_sig_cancel to notify gdb when a thread is
10         created
11         * manager.c: Likewise.
12         * internals.h: Likewise.
13         * signals.c: The implementation of sigwait(s) assumed that
14         all signals in s have signal handlers already attached.
15         This is not required by the standard, so make it work
16         also if some of the signals have no handlers.
18 1999-01-05  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
20         * linuxthreads.texi: Remove pointers from first @node.  Move old
21         @node spec inside comment.
23 1998-12-31  Ulrich Drepper  <drepper@cygnus.com>
25         * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
26         _IO_lock_unlock.
28 1998-12-29  Ulrich Drepper  <drepper@cygnus.com>
30         * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
31         lock.  Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
33 1998-12-21  Ulrich Drepper  <drepper@cygnus.com>
35         * manager.c: Threads now send __pthread_sig_cancel on termination.
36         Change clone call and signal masks.
37         * thread.c (pthread_handle_sigrestart): Remove special code for
38         manager.
39         (pthread_handle_sigcancel): In manager thread call
40         __pthread_manager_sighandler.
41         * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
42         * sysdeps/i386/i686/pt-machine.h: Likewise.
43         Patches by Xavier Leroy.
45 1998-12-14  Ulrich Drepper  <drepper@cygnus.com>
47         * spinlock.c (__pthread_unlock): Don't crash if called for an
48         untaken mutex.  Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
50         * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
51         overall runtime.
53 1998-12-13  Ulrich Drepper  <drepper@cygnus.com>
55         * Examples/ex3.c: Wait until all threads are started before
56         searching for the number to avoid race condition on very fast
57         systems.
59 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
61         * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
62         declaration since it's not needed.
64         * sysdeps/pthread/pthread.h: Move internal functions to ...
65         * internals.h: ...here.
67 1998-12-02  H.J. Lu  <hjl@gnu.org>
69         * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
70         SIGRTMIN is defined.
71         (__pthread_sig_cancel): Likewise.
73 1998-12-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
75         * wrapsyscall.c: Include <sys/mman.h> for msync,
76         <stdlib.h> for system and <termios.h> for tcdrain prototype.
77         Correct msync declaration.
79 1998-11-29  Roland McGrath  <roland@baalperazim.frob.com>
81         * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
82         __libc_tsd_set): New macros for new interface.
83         * no-tsd.c: New file, provide uninitialized defns of
84         __libc_internal_tsd_get and __libc_internal_tsd_set.
85         * Makefile (routines): Add no-tsd.
87 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
89         * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
90         * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
91         __libc_internal_tsd_set): Move decls to ...
92         * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
93         declarations.
95         * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
96         __libc_internal_tsd_set): Make these pointers to functions, not
97         functions; remove #pragma weak decls for them.
98         * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
99         Define static functions and initialized pointers to them.
101 1998-11-18  Ulrich Drepper  <drepper@cygnus.com>
103         * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
104         (CFLAGS-specific.c): Likewise.
105         (CFLAGS-pthread.c): Likewise.
106         (CFLAGS-ptfork.c): Likewise.
107         (CFLAGS-cancel.c): Likewise.
108         * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
109         as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
111         * mutex.c (pthread_mutex_init): Define as strong symbol.
112         (pthread_mutex_destroy): Likewise.
113         (pthread_mutex_trylock): Likewise.
114         (pthread_mutex_lock): Likewise.
115         (pthread_mutex_unlock): Likewise.
116         (pthread_mutexattr_init): Likewise.
117         (pthread_mutexattr_destroy): Likewise.
118         (pthread_once): Likewise.
119         * ptfork.c (pthread_atfork): Likewise.
120         * specific.c (pthread_key_create): Likewise.
121         (pthread_setspecific): Likewise.
122         (pthread_getspecific): Likewise.
124 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
126         * linuxthreads.texi: Fix punctuation after xref.
128 1998-11-10  H.J. Lu  <hjl@gnu.org>
130         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
131         if it is defined in <linux/limits.h>.
133 1998-10-29 14:28  Ulrich Drepper  <drepper@cygnus.com>
135         * spinlock.h (__pthread_trylock): Define inline.
136         (__pthread_lock): Add extra parameter to declaration.  Declare
137         using internal_function.
138         (__pthread_unlock): Declare using internal_function.
139         * spinlock.c (__pthread_lock): Add new parameter.  Use it instead
140         of local variable self.  Avoid recomputing self.  Define using
141         internal_function.
142         (__pthread_trylock): Remove.
143         (__pthread_unlock): Define using internal_function.
144         * cancel.c: Adjust for __pthread_lock interface change.  Use already
145         computed self value is possible.
146         * condvar.c: Likewise.
147         * join.c: Likewise.
148         * manager.c: Likewise.
149         * mutex.c: Likewise.
150         * pthread.c: Likewise.
151         * rwlock.c: Likewise.
152         * semaphore.c: Likewise.
153         * signals.c: Likewise.
155 1998-10-27 13:46  Ulrich Drepper  <drepper@cygnus.com>
157         * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
158         __ to field names of the struct.
159         * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
160         Likewise.
161         (pthread_attr_t): Likewise.
162         (pthread_cond_t): Likewise.
163         (pthread_condattr_t): Likewise.
164         (pthread_mutex_t): Likewise.
165         (pthread_mutexattr_t): Likewise.
166         (pthread_rwlock_t): Likewise.
167         (pthread_rwlockattr_t): Likewise.
168         * attr.c: Adjust for pthread.h and pthreadtypes.h change.
169         * cancel.c: Likewise.
170         * condvar.c: Likewise.
171         * manager.c: Likewise.
172         * mutex.c: Likewise.
173         * pthread.c: Likewise.
174         * ptlongjmp.c: Likewise.
175         * rwlock.c: Likewise.
176         * spinlock.c: Likewise.
178 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
180         * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
181         also with PT_EI.
183         * sysdeps/i386/i686/pt-machine.h: Remove unused inline
184         definitions.
186         * Makefile (libpthread-routines): Add pt-machine.
187         * pt-machine.c: New file.
188         * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
189         yet defined.  Use PT_EI in extern inline definitions.
190         * sysdeps/arm/pt-machine.h: Likewise.
191         * sysdeps/i386/pt-machine.h: Likewise.
192         * sysdeps/i386/i686/pt-machine.h: Likewise.
193         * sysdeps/m68k/pt-machine.h: Likewise.
194         * sysdeps/mips/pt-machine.h: Likewise.
195         * sysdeps/powerpc/pt-machine.h: Likewise.
196         * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
197         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
199 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
201         * semaphore.h: Include <sys/types.h> so that _pthread_descr
202         is declared.
204 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
206         * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
207         argument.
208         * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
210 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
212         * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
213         multiple inclusion guard.
215 1998-09-02 11:08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
217         * signals.c (sigaction): Check that sig is less than NSIG to avoid
218         array index overflow.
220 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
222         * sysdeps/pthread/semaphore.h: New file.
224 1998-09-06 09:08  Ulrich Drepper  <drepper@cygnus.com>
226         * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
227         _LIBC_TSD_KEY_DL_ERROR.
229 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
231         * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
232         * sysdeps/i386/pt-machine.h: Likewise.
233         Suggested by Roland McGrath.
235 1998-08-28 13:58  Ulrich Drepper  <drepper@cygnus.com>
237         * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
238         access thread data with non-constant offsets.
239         * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
240         necessary.
242         * sysdeps/i386/useldt.h: Fix typo.  Add THREAD_GETMEM_NC and
243         THREAD_SETMEM_NC definitions.
245         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
246         THREAD_SETMEM_NC.
247         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
249 1998-08-26 15:46  Ulrich Drepper  <drepper@cygnus.com>
251         * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
252         not already defined.
253         (struct _pthread_descr_struct): Add p_self and p_nr field.
254         * manager.c (__pthread_handles): Define second element to point
255         to manager thread.
256         (__pthread_handles_num): Initialize to 2.
257         (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
258         (pthread_start_thread): Likewise.
259         (pthread_handle_create): Start search for free slot at entry 2.
260         Initialize new fields p_self and p_nr.
261         Call __clone with CLONE_PTRACE if available.
262         (pthread_free): Call FREE_THREAD_SELF if available.
263         * pthread.c (__pthread_initial_thread): Initialize new fields.
264         (__pthread_manager_thread): Likewise.
265         (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
267         * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
268         elements of the thread descriptor.
269         * condvar.c: Likewise.
270         * errno.c: Likewise.
271         * join.c: Likewise.
272         * manager.c: Likewise.
273         * pthread.c: Likewise.
274         * ptlongjmp.c: Likewise.
275         * semaphore.c: Likewise.
276         * signals.c: Likewise.
277         * specific.c: Likewise.
278         * spinlock.c: Likewise.
280         * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
282         * sysdeps/i386/useldt.h: New file.
283         * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
285         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
286         THREAD_SETMEM using __thread_self.
287         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
289 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
291         * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
292         turned out that we didn't need to queue after all.
294 1998-08-22  Geoff Keating  <geoffk@ozemail.com.au>
296         * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
297         and wastes space; correct types.
299 1998-08-08 11:18  H.J. Lu  <hjl@gnu.org>
301         * signals.c (sigaction): Handle NULL argument.
303 1998-08-04  Ulrich Drepper  <drepper@cygnus.com>
305         * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
306         of sigset_t.
308 1998-08-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
310         * Makefile (linuxthreads-version): Extract correct number from
311         Banner.
313 1998-07-29  Xavier Leroy  <Xavier.Leroy@inria.fr>
315         * Banner: Bump version number to 0.8
316         * FAQ.html: Many updates, in particular w.r.t. debugging.
317         * manager.c: Support for non-default stacksize for
318         LinuxThreads-allocated stacks;
319         don't use guard pages for stacks with default size, rely on
320         rlimit(RLIMIT_STACK) instead (it's cheaper).
321         * attr.c: Likewise.
322         * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
323         everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
324         * condvar.c: Likewise.
325         * internals.h: Likewise.
326         * restart.h: Likewise.
327         * signals.c: Likewise.
328         * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
330 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
332         * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
333         __pthread_mutexattr_[sg]ettype.  Add more weak aliases.
334         * Versions: Put __pthread_mutexattr_settype under version
335         GLIBC_2.0.  Don't export __pthread_mutexattr_setkind_np and
336         __pthread_mutexattr_gettype.
338 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
340         * sysdeps/pthread/bits/libc-lock.h: Make
341         __pthread_mutexattr_settype weak.  Don't make
342         __pthread_mutexattr_setkind_np weak.
344 1998-07-16 10:52  Ulrich Drepper  <drepper@cygnus.com>
346         * manager.c (pthread_handle_create): Check whether sched_setscheduler
347         call can succeed here.
349         * mutex.c: Define __pthread_mutexattr_settype and make
350         __pthread_mutexattr_setkind_np an alias.
351         Likewise for __pthread_mutexattr_gettype.
353 1998-07-15 11:00 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
355         * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
356         is root.
358 1998-07-14 19:38  Ulrich Drepper  <drepper@cygnus.com>
360         * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
362 1998-07-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
364         * Examples/ex6.c: Include <unistd.h> for usleep.
366 1998-06-13 11:04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
368         * Examples/ex4.c (main): Use exit, not pthread_exit.
370 1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>
372         * Versions: Add __pthread_mutexattr_gettype and
373         __pthread_mutexattr_settype.
374         * lockfile.c: Use __pthread_mutexattr_settype instead of
375         __pthread_mutexattr_setkind_np.
376         * mutex.c: Define __pthread_mutexattr_gettype and
377         __pthread_mutexattr_settype.
378         * weak.c: Likewise.
379         * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
380         __pthread_mutexattr_settype.
381         * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
382         Use __pthread_mutexattr_settype.
384 1998-07-08 22:26  Ulrich Drepper  <drepper@cygnus.com>
386         * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
387         * mutex.c: Define weak alias pthread_mutexattr_gettype and
388         pthread_mutexattr_settype.
389         * sysdeps/pthread/pthread.h: Declare these functions.
390         Move pthread_sigmask and pthread_kill declaration in separate header.
391         * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
393 1998-07-07 15:20  Ulrich Drepper  <drepper@cygnus.com>
395         * Makefile: Add rules to compile and run tests.
396         * Examples/ex1.c: Little changes to fix warnings.
397         * Examples/ex2.c: Likewise.
398         * Examples/ex3.c: Likewise.
399         * Examples/ex4.c: Likewise.
400         * Examples/ex5.c: Likewise.
401         * Examples/ex6.c: New file.
403 1998-07-05 11:54  Ulrich Drepper  <drepper@cygnus.com>
405         * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
407 1998-07-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
409         * attr.c: Include <string.h>.
411 1998-06-30 11:47  Ulrich Drepper  <drepper@cygnus.com>
413         * attr.c: Include errno.h.  Use memcpy to copy sched_param.
414         * internals.h: Include limits.h.
415         * manager.c: Use memcpy to copy sched_param.
416         * ptfork.c: Include errno.h.
417         * pthread.c: Likewise.
418         * semaphore.c: Likewise.
419         * specific.c: Likewise.
420         * spinlock.h: Likewise.
421         * sysdeps/pthread/pthread.h: Include only allowed headers.  Move
422         type definition to ...
423         * sysdeps/pthread/bits/pthreadtypes.h: ...here.  New file.
425 1998-06-29 12:34  Ulrich Drepper  <drepper@cygnus.com>
427         * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
429         * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
430         as macros as demanded in POSIX.1, Annex C.
432 1998-06-29 12:29  Ulrich Drepper  <drepper@cygnus.com>
434         * internals.h (struct pthread_request): For free use pthread_t
435         instead of pthread_descr.
436         * join.c (pthread_join): Pass thread_id, not th to manager.
437         (pthread_detach): Likewise.
438         * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
439         (pthread_exited): Remove detached queue code.
440         (pthread_handle_free): Expect thread ID parameter and use it to
441         validate the thread decsriptor.  Don't use detached queue.
442         Patches by Xavier Leroy.
444 1998-06-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
446         * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
447         _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
448         __pthread_atfork, __pthread_key_create, __pthread_once.
449         * internals.h: Doc fix.
450         * pthread.c (__pthread_initialize): Define again.
452 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
454         * manager.c (pthread_exited): If thread is not detached put it on
455         special list.
456         (pthread_handle_free): If thread is not on list with living threads
457         search on list with detached threads.
459         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
460         for new definition of pthread_rwlock_t.
462         * spinlock.c: Correct test whether to compile
463         __pthread_compare_and_swap or not.
465 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
467         * attr.c: Finish user stack support.  Change locking code to be safe
468         in situations with different priorities.
469         * cancel.c: Likewise.
470         * condvar.c: Likewise.
471         * internals.h: Likewise.
472         * join.c: Likewise.
473         * manager.c: Likewise.
474         * mutex.c: Likewise.
475         * pthread.c: Likewise.
476         * ptlongjmp.c: Likewise.
477         * queue.h: Likewise.
478         * rwlock.c: Likewise.
479         * semaphore.c: Likewise.
480         * semaphore.h: Likewise.
481         * signals.c: Likewise.
482         * spinlock.c: Likewise.
483         * spinlock.h: Likewise.
484         * sysdeps/pthread/pthread.h: Likewise.
485         Patches by Xavier Leroy.
487         * sysdeps/i386/i686/pt-machine.h: New file.
489 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
491         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
492         [sg]et_stackaddr prototypes always available.
494         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
495         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
497 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
499         * manager.c (pthread_free): Undo patch from 980430.
500         Reported by David Wragg <dpw@doc.ic.ac.uk>.
502 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
504         * manager.c: Define __pthread_manager_adjust_prio and use it to
505         increase priority when needed.
506         * internals.h: Add prototype for __pthread_manager_adjust_prio.
507         * mutex.c: Optimize mutexes to wake up only one thread.
508         * pthread.c: Move PID of manager for global variable in structure
509         element.
510         Patches by Xavier Leroy.
512 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
514         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
516 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
518         * attr.c: Correct typo.
520 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
522         * manager.c (pthread_free): Unmap guard before the stack.
523         Patch by Matthias Urlichs.
525 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
527         * manager.c (pthread_free): Detect already free child.
528         Patch by Xavier Leroy, reported by Matthias Urlichs.
530 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
532         * Makefile (linuxthreads-version): Renamed back from
533         libpthread-version.
535 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
537         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
538         __libc_longjmp.
540 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
542         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
543         * internals.h: Add definitions for new spinlock implementation.
544         * ptlongjmp.c: New file.
545         * spinlock.c: New file.
546         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
547         new function __pthread_acquire to prevent deadlocks with thread
548         with different priorities.
549         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
551 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
553         * manager.c (__pthread_manager): Reduce first argument to select
554         to include just the needed file descriptor.
556 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
558         * manager.c: Fix last patch which caused core dumps.
560         * pthread.c: Correctly handle missing SIGRTMIN.
562 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
564         * libpthread.map: Add __libc_internal_tsd_get and
565         __libc_internal_tsd_set.  Add missing cancelable functions. Export
566         libc internal versions of the cancelable functions.
568 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
570         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
572 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
574         * attr.c: Implement pthread_attr_[gs]etguardsize,
575         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
576         Change pthread_attr_init to have two interfaces.
577         * internals.h (struct _pthread_descr_struct): Add new fields for
578         above functions.
579         * libpthread.map: Add names in GLIBC_2.1 section.
580         * manager.c (pthread_handle_create): Implement guardsize and
581         user stack.
582         (pthread_free): Likewise.
583         * pthread.c (pthread_create): Add new interface for changed
584         pthread_attr_t.
585         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
586         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
587         PTHREAD_STACK_MIN.
589 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
591         * manager.c: Enable resetting of the thread scheduling policy
592         to SCHED_OTHER when the parent thread has a different one.
594 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
596         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
597         _POSIX_ASYNCHRONOUS_IO.
599         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
600         mutexes.
601         * mutex.c: Implement new mutex types.
603         * internals.h: Include <signal.h>.
605         * libpthread.map: Add __erno_location and __h_errno_location.
607         * errno.c: Return pointer to variable actually in use.  This might
608         not be the one in the thread structure.
609         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
610         and p_h_errnop.
611         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
612         of manager thread structure.
613         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
614         thread.
615         * pthread.c: Adapt initializer for thread structures.
616         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
617         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
618         current thread to global variables.
620 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
622         * rwlock.c: New file.
623         * Makefile (libpthread-routines): Add rwlock.
624         * sysdeps/pthread/pthread.h: Define data structures and declare
625         functions.
626         * libpthread.map: Add new functions.
628 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
630         * sysdeps/arm/pt-machine.h: New file; add ARM support.
631         * sysdeps/arm/Implies: likewise.
632         * README: Document it.
634 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
636         * signals.c: Remove unneeded initializer for sigwaited, saving a
637         warning.
639 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
641         * semaphore.c (sem_init): Set sem_spinlock only if available.
643 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
645         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
646         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
648         * Makefile: Update from LinuxThreads 0.7.
649         * internals.h. Likewise.
650         * manager.c: Likewise.
651         * mutex.c: Likewise.
652         * pthread.c: Likewise.
653         * signals.c: Likewise.
654         * specific.c: Likewise.
655         * Examples/ex3.c: Likewise.
657 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
659         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
660         open.
662 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
664         * wrapsyscall.c: Add socket functions which are also cancelation
665         points.
667 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
669         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
670         New functions for fast thread specific data within libc.
672         * internals.h: Add new array p_libc_specific to struct
673         _pthread_descr_struct.
675         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
677 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
679         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
680         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
682 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
684         * internals.h (struct _pthread_descr_struct): Add definitions for
685         two-level specific key handling.
686         * manager.c (pthread_handle_create): Initialize specific memory array.
687         * specific.c: Implement two-level key handling.
688         * weaks.c: Don't provide dummy key handling.
689         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
690         Add definition of __libc_key_t.
691         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
692         as 1024.
693         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
694         PTHREAD_DESTRUCTOR_ITERATIONS.
696         * manager.c (pthread_handle_create): Compare mmap result with
697         MAP_FAILED.
699         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
700         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
702 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
704         sysdeps/sparc -> sysdeps/sparc/sparc32
705         sysdeps/sparc64 -> sysdeps/sparc/sparc64
707         * internals.h: Change definition of THREAD_SELF to be an expression,
708         not a statement that did a return.
709         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
710         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
711         Follow Solaris and use a "system reserved" register (%g6) to hold
712         the thread descriptor.
713         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
715 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
717         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
718         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
719         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
721         * semaphore.c: Include spinlock.h only when needed.
723         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
724         keys for entries not in use.
726         * weaks.c: Implement key handling functions for real.
728 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
730         Initial sparc64-linux support:
731         * linuxthreads/sysdeps/sparc64/Implies: New file.
732         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
734 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
736         * semaphore.c: Include spinlock.h at correct place.
737         Patch by HJ Lu.
739 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
741         The Great Bit File Move:
742         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
743         * sysdeps/powerpc/semaphorebits.h: Likewise.
744         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
745         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
746         * sysdeps/pthread/libc-lock.h: -> bits/
747         * sysdeps/pthread/stdio-lock.h: Likewise.
748         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
749         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
750         * semaphore.h: Likewise.
751         * sysdeps/pthread/pthread.h: Likewise.
753         * lockfile.c: <foo.h> -> <bits/foo.h>.
754         * semaphore.h: Likewise.
756         * Makefile: (headers): foo.h -> bits/foo.h.
757         * sysdeps/pthread/Makefile: Likewise.
759 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
761         * semaphore.c (sem_init): Set sem_spinlock only if available.
763         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
764         asm constraints.
766 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
768         Update from LinuxThreads 0.6.
770         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
771         and __sched_get_priority_min instead of names without `__'.
773         * manager.c: Rewrite large parts to implement opaque pthread_t.
775         * cancel.c: Adapt for opaque pthread_t type.
776         * condvar.c: Likewise.
777         * errno.c: Likewise.
778         * join.c: Likewise.
779         * mutex.c: Likewise.
780         * pthread.c: Likewise.
781         * signals.c: Likewise.
782         * specific.c: Likewise.
783         * restart.h: Likewise.
784         * queue.h: Likewise.
785         * Examples/ex3.c: Likewise.
786         * Examples/ex4.c: Likewise.
787         * sysdeps/pthread/pthread.h: Likewise.
789         * pthread.c: Accumulate time for all threads in thread manager.
791         * semaphore.c: Implement fallback implementation for architectures
792         sometimes missing compare-exchange operations.
794         * cancel.c (pthread_cancel): Validate handle argument.
795         * join.c (pthread_join): Likewise.
796         (pthread_detach): Likewise.
797         * signals.c (pthread_kill): Likewise.
799         * spinlock.h (acquire): Use __sched_yield not sched_yield.
801         * queue.h (enqueue): Enqueue thread according to priority.
803         * internals.c (struct pthread_start_args): New struct for passing
804         args to cloning function.
805         (struct _pthread): Rename to _pthread_descr_struct and adapt for
806         opaque pthread_t.
808         * Examples/Makefile (clean): Pass -f option to rm.
810         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
811         and define TEST_FOR_COMPARE_AND_SWAP.
812         * sysdeps/i386/i486/pt-machine.h: Removed.
814         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
815         to 1024.
817 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
819         * restart.h (suspend): Clear p_signal before suspending.
820         (suspend_with_cancellation): Likewise.
821         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
823         * weaks.c: Make __pthread_key_create return 1.
824         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
825         __libc_getspecific, __libc_setspecific, and __libc_key_t.
826         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
827         using libio.
829 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
831         * sysdeps/sparc/pt-machine (RELEASE): Fix.
833 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
835         * sysdeps/powerpc/Implies: Added.
836         * sysdeps/powerpc/pt-machine.h: Added.
837         * sysdeps/powerpc/semaphorebits.h: Added.
839 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
841         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
842         initializer.
843         (__pthread_manager_thread): Likewise.
844         Reported by Andreas Jaeger.
846 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
848         Since sigset_t no longer fits in a register, we can't pass in the
849         thread's initial mask so easily.  Take this opportunity to simplify
850         the clone implementation by only accepting a single void* argument.
852         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
853         in the thread struct instead of as arguments through clone.
854         (pthread_start_thread): Look for them there.
855         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
856         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
857         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
858         clone invocation.