Update.
[glibc.git] / linuxthreads / ChangeLog
blob82b805ccfc0e0340bdf1dbfeadb22a618e1b4fae
1 1998-12-31  Ulrich Drepper  <drepper@cygnus.com>
3         * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
4         _IO_lock_unlock.
6 1998-12-29  Ulrich Drepper  <drepper@cygnus.com>
8         * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
9         lock.  Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
11 1998-12-21  Ulrich Drepper  <drepper@cygnus.com>
13         * manager.c: Threads now send __pthread_sig_cancel on termination.
14         Change clone call and signal masks.
15         * thread.c (pthread_handle_sigrestart): Remove special code for
16         manager.
17         (pthread_handle_sigcancel): In manager thread call
18         __pthread_manager_sighandler.
19         * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
20         * sysdeps/i386/i686/pt-machine.h: Likewise.
21         Patches by Xavier Leroy.
23 1998-12-14  Ulrich Drepper  <drepper@cygnus.com>
25         * spinlock.c (__pthread_unlock): Don't crash if called for an
26         untaken mutex.  Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
28         * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
29         overall runtime.
31 1998-12-13  Ulrich Drepper  <drepper@cygnus.com>
33         * Examples/ex3.c: Wait until all threads are started before
34         searching for the number to avoid race condition on very fast
35         systems.
37 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
39         * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
40         declaration since it's not needed.
42         * sysdeps/pthread/pthread.h: Move internal functions to ...
43         * internals.h: ...here.
45 1998-12-02  H.J. Lu  <hjl@gnu.org>
47         * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
48         SIGRTMIN is defined.
49         (__pthread_sig_cancel): Likewise.
51 1998-12-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
53         * wrapsyscall.c: Include <sys/mman.h> for msync,
54         <stdlib.h> for system and <termios.h> for tcdrain prototype.
55         Correct msync declaration.
57 1998-11-29  Roland McGrath  <roland@baalperazim.frob.com>
59         * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
60         __libc_tsd_set): New macros for new interface.
61         * no-tsd.c: New file, provide uninitialized defns of
62         __libc_internal_tsd_get and __libc_internal_tsd_set.
63         * Makefile (routines): Add no-tsd.
65 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
67         * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
68         * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
69         __libc_internal_tsd_set): Move decls to ...
70         * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
71         declarations.
73         * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
74         __libc_internal_tsd_set): Make these pointers to functions, not
75         functions; remove #pragma weak decls for them.
76         * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
77         Define static functions and initialized pointers to them.
79 1998-11-18  Ulrich Drepper  <drepper@cygnus.com>
81         * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
82         (CFLAGS-specific.c): Likewise.
83         (CFLAGS-pthread.c): Likewise.
84         (CFLAGS-ptfork.c): Likewise.
85         (CFLAGS-cancel.c): Likewise.
86         * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
87         as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
89         * mutex.c (pthread_mutex_init): Define as strong symbol.
90         (pthread_mutex_destroy): Likewise.
91         (pthread_mutex_trylock): Likewise.
92         (pthread_mutex_lock): Likewise.
93         (pthread_mutex_unlock): Likewise.
94         (pthread_mutexattr_init): Likewise.
95         (pthread_mutexattr_destroy): Likewise.
96         (pthread_once): Likewise.
97         * ptfork.c (pthread_atfork): Likewise.
98         * specific.c (pthread_key_create): Likewise.
99         (pthread_setspecific): Likewise.
100         (pthread_getspecific): Likewise.
102 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
104         * linuxthreads.texi: Fix punctuation after xref.
106 1998-11-10  H.J. Lu  <hjl@gnu.org>
108         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
109         if it is defined in <linux/limits.h>.
111 1998-10-29 14:28  Ulrich Drepper  <drepper@cygnus.com>
113         * spinlock.h (__pthread_trylock): Define inline.
114         (__pthread_lock): Add extra parameter to declaration.  Declare
115         using internal_function.
116         (__pthread_unlock): Declare using internal_function.
117         * spinlock.c (__pthread_lock): Add new parameter.  Use it instead
118         of local variable self.  Avoid recomputing self.  Define using
119         internal_function.
120         (__pthread_trylock): Remove.
121         (__pthread_unlock): Define using internal_function.
122         * cancel.c: Adjust for __pthread_lock interface change.  Use already
123         computed self value is possible.
124         * condvar.c: Likewise.
125         * join.c: Likewise.
126         * manager.c: Likewise.
127         * mutex.c: Likewise.
128         * pthread.c: Likewise.
129         * rwlock.c: Likewise.
130         * semaphore.c: Likewise.
131         * signals.c: Likewise.
133 1998-10-27 13:46  Ulrich Drepper  <drepper@cygnus.com>
135         * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
136         __ to field names of the struct.
137         * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
138         Likewise.
139         (pthread_attr_t): Likewise.
140         (pthread_cond_t): Likewise.
141         (pthread_condattr_t): Likewise.
142         (pthread_mutex_t): Likewise.
143         (pthread_mutexattr_t): Likewise.
144         (pthread_rwlock_t): Likewise.
145         (pthread_rwlockattr_t): Likewise.
146         * attr.c: Adjust for pthread.h and pthreadtypes.h change.
147         * cancel.c: Likewise.
148         * condvar.c: Likewise.
149         * manager.c: Likewise.
150         * mutex.c: Likewise.
151         * pthread.c: Likewise.
152         * ptlongjmp.c: Likewise.
153         * rwlock.c: Likewise.
154         * spinlock.c: Likewise.
156 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
158         * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
159         also with PT_EI.
161         * sysdeps/i386/i686/pt-machine.h: Remove unused inline
162         definitions.
164         * Makefile (libpthread-routines): Add pt-machine.
165         * pt-machine.c: New file.
166         * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
167         yet defined.  Use PT_EI in extern inline definitions.
168         * sysdeps/arm/pt-machine.h: Likewise.
169         * sysdeps/i386/pt-machine.h: Likewise.
170         * sysdeps/i386/i686/pt-machine.h: Likewise.
171         * sysdeps/m68k/pt-machine.h: Likewise.
172         * sysdeps/mips/pt-machine.h: Likewise.
173         * sysdeps/powerpc/pt-machine.h: Likewise.
174         * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
175         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
177 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
179         * semaphore.h: Include <sys/types.h> so that _pthread_descr
180         is declared.
182 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
184         * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
185         argument.
186         * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
188 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
190         * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
191         multiple inclusion guard.
193 1998-09-02 11:08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
195         * signals.c (sigaction): Check that sig is less than NSIG to avoid
196         array index overflow.
198 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
200         * sysdeps/pthread/semaphore.h: New file.
202 1998-09-06 09:08  Ulrich Drepper  <drepper@cygnus.com>
204         * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
205         _LIBC_TSD_KEY_DL_ERROR.
207 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
209         * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
210         * sysdeps/i386/pt-machine.h: Likewise.
211         Suggested by Roland McGrath.
213 1998-08-28 13:58  Ulrich Drepper  <drepper@cygnus.com>
215         * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
216         access thread data with non-constant offsets.
217         * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
218         necessary.
220         * sysdeps/i386/useldt.h: Fix typo.  Add THREAD_GETMEM_NC and
221         THREAD_SETMEM_NC definitions.
223         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
224         THREAD_SETMEM_NC.
225         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
227 1998-08-26 15:46  Ulrich Drepper  <drepper@cygnus.com>
229         * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
230         not already defined.
231         (struct _pthread_descr_struct): Add p_self and p_nr field.
232         * manager.c (__pthread_handles): Define second element to point
233         to manager thread.
234         (__pthread_handles_num): Initialize to 2.
235         (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
236         (pthread_start_thread): Likewise.
237         (pthread_handle_create): Start search for free slot at entry 2.
238         Initialize new fields p_self and p_nr.
239         Call __clone with CLONE_PTRACE if available.
240         (pthread_free): Call FREE_THREAD_SELF if available.
241         * pthread.c (__pthread_initial_thread): Initialize new fields.
242         (__pthread_manager_thread): Likewise.
243         (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
245         * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
246         elements of the thread descriptor.
247         * condvar.c: Likewise.
248         * errno.c: Likewise.
249         * join.c: Likewise.
250         * manager.c: Likewise.
251         * pthread.c: Likewise.
252         * ptlongjmp.c: Likewise.
253         * semaphore.c: Likewise.
254         * signals.c: Likewise.
255         * specific.c: Likewise.
256         * spinlock.c: Likewise.
258         * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
260         * sysdeps/i386/useldt.h: New file.
261         * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
263         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
264         THREAD_SETMEM using __thread_self.
265         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
267 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
269         * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
270         turned out that we didn't need to queue after all.
272 1998-08-22  Geoff Keating  <geoffk@ozemail.com.au>
274         * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
275         and wastes space; correct types.
277 1998-08-08 11:18  H.J. Lu  <hjl@gnu.org>
279         * signals.c (sigaction): Handle NULL argument.
281 1998-08-04  Ulrich Drepper  <drepper@cygnus.com>
283         * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
284         of sigset_t.
286 1998-08-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
288         * Makefile (linuxthreads-version): Extract correct number from
289         Banner.
291 1998-07-29  Xavier Leroy  <Xavier.Leroy@inria.fr>
293         * Banner: Bump version number to 0.8
294         * FAQ.html: Many updates, in particular w.r.t. debugging.
295         * manager.c: Support for non-default stacksize for
296         LinuxThreads-allocated stacks;
297         don't use guard pages for stacks with default size, rely on
298         rlimit(RLIMIT_STACK) instead (it's cheaper).
299         * attr.c: Likewise.
300         * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
301         everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
302         * condvar.c: Likewise.
303         * internals.h: Likewise.
304         * restart.h: Likewise.
305         * signals.c: Likewise.
306         * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
308 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
310         * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
311         __pthread_mutexattr_[sg]ettype.  Add more weak aliases.
312         * Versions: Put __pthread_mutexattr_settype under version
313         GLIBC_2.0.  Don't export __pthread_mutexattr_setkind_np and
314         __pthread_mutexattr_gettype.
316 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
318         * sysdeps/pthread/bits/libc-lock.h: Make
319         __pthread_mutexattr_settype weak.  Don't make
320         __pthread_mutexattr_setkind_np weak.
322 1998-07-16 10:52  Ulrich Drepper  <drepper@cygnus.com>
324         * manager.c (pthread_handle_create): Check whether sched_setscheduler
325         call can succeed here.
327         * mutex.c: Define __pthread_mutexattr_settype and make
328         __pthread_mutexattr_setkind_np an alias.
329         Likewise for __pthread_mutexattr_gettype.
331 1998-07-15 11:00 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
333         * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
334         is root.
336 1998-07-14 19:38  Ulrich Drepper  <drepper@cygnus.com>
338         * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
340 1998-07-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
342         * Examples/ex6.c: Include <unistd.h> for usleep.
344 1998-06-13 11:04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
346         * Examples/ex4.c (main): Use exit, not pthread_exit.
348 1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>
350         * Versions: Add __pthread_mutexattr_gettype and
351         __pthread_mutexattr_settype.
352         * lockfile.c: Use __pthread_mutexattr_settype instead of
353         __pthread_mutexattr_setkind_np.
354         * mutex.c: Define __pthread_mutexattr_gettype and
355         __pthread_mutexattr_settype.
356         * weak.c: Likewise.
357         * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
358         __pthread_mutexattr_settype.
359         * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
360         Use __pthread_mutexattr_settype.
362 1998-07-08 22:26  Ulrich Drepper  <drepper@cygnus.com>
364         * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
365         * mutex.c: Define weak alias pthread_mutexattr_gettype and
366         pthread_mutexattr_settype.
367         * sysdeps/pthread/pthread.h: Declare these functions.
368         Move pthread_sigmask and pthread_kill declaration in separate header.
369         * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
371 1998-07-07 15:20  Ulrich Drepper  <drepper@cygnus.com>
373         * Makefile: Add rules to compile and run tests.
374         * Examples/ex1.c: Little changes to fix warnings.
375         * Examples/ex2.c: Likewise.
376         * Examples/ex3.c: Likewise.
377         * Examples/ex4.c: Likewise.
378         * Examples/ex5.c: Likewise.
379         * Examples/ex6.c: New file.
381 1998-07-05 11:54  Ulrich Drepper  <drepper@cygnus.com>
383         * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
385 1998-07-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
387         * attr.c: Include <string.h>.
389 1998-06-30 11:47  Ulrich Drepper  <drepper@cygnus.com>
391         * attr.c: Include errno.h.  Use memcpy to copy sched_param.
392         * internals.h: Include limits.h.
393         * manager.c: Use memcpy to copy sched_param.
394         * ptfork.c: Include errno.h.
395         * pthread.c: Likewise.
396         * semaphore.c: Likewise.
397         * specific.c: Likewise.
398         * spinlock.h: Likewise.
399         * sysdeps/pthread/pthread.h: Include only allowed headers.  Move
400         type definition to ...
401         * sysdeps/pthread/bits/pthreadtypes.h: ...here.  New file.
403 1998-06-29 12:34  Ulrich Drepper  <drepper@cygnus.com>
405         * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
407         * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
408         as macros as demanded in POSIX.1, Annex C.
410 1998-06-29 12:29  Ulrich Drepper  <drepper@cygnus.com>
412         * internals.h (struct pthread_request): For free use pthread_t
413         instead of pthread_descr.
414         * join.c (pthread_join): Pass thread_id, not th to manager.
415         (pthread_detach): Likewise.
416         * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
417         (pthread_exited): Remove detached queue code.
418         (pthread_handle_free): Expect thread ID parameter and use it to
419         validate the thread decsriptor.  Don't use detached queue.
420         Patches by Xavier Leroy.
422 1998-06-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
424         * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
425         _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
426         __pthread_atfork, __pthread_key_create, __pthread_once.
427         * internals.h: Doc fix.
428         * pthread.c (__pthread_initialize): Define again.
430 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
432         * manager.c (pthread_exited): If thread is not detached put it on
433         special list.
434         (pthread_handle_free): If thread is not on list with living threads
435         search on list with detached threads.
437         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
438         for new definition of pthread_rwlock_t.
440         * spinlock.c: Correct test whether to compile
441         __pthread_compare_and_swap or not.
443 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
445         * attr.c: Finish user stack support.  Change locking code to be safe
446         in situations with different priorities.
447         * cancel.c: Likewise.
448         * condvar.c: Likewise.
449         * internals.h: Likewise.
450         * join.c: Likewise.
451         * manager.c: Likewise.
452         * mutex.c: Likewise.
453         * pthread.c: Likewise.
454         * ptlongjmp.c: Likewise.
455         * queue.h: Likewise.
456         * rwlock.c: Likewise.
457         * semaphore.c: Likewise.
458         * semaphore.h: Likewise.
459         * signals.c: Likewise.
460         * spinlock.c: Likewise.
461         * spinlock.h: Likewise.
462         * sysdeps/pthread/pthread.h: Likewise.
463         Patches by Xavier Leroy.
465         * sysdeps/i386/i686/pt-machine.h: New file.
467 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
469         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
470         [sg]et_stackaddr prototypes always available.
472         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
473         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
475 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
477         * manager.c (pthread_free): Undo patch from 980430.
478         Reported by David Wragg <dpw@doc.ic.ac.uk>.
480 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
482         * manager.c: Define __pthread_manager_adjust_prio and use it to
483         increase priority when needed.
484         * internals.h: Add prototype for __pthread_manager_adjust_prio.
485         * mutex.c: Optimize mutexes to wake up only one thread.
486         * pthread.c: Move PID of manager for global variable in structure
487         element.
488         Patches by Xavier Leroy.
490 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
492         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
494 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
496         * attr.c: Correct typo.
498 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
500         * manager.c (pthread_free): Unmap guard before the stack.
501         Patch by Matthias Urlichs.
503 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
505         * manager.c (pthread_free): Detect already free child.
506         Patch by Xavier Leroy, reported by Matthias Urlichs.
508 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
510         * Makefile (linuxthreads-version): Renamed back from
511         libpthread-version.
513 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
515         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
516         __libc_longjmp.
518 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
520         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
521         * internals.h: Add definitions for new spinlock implementation.
522         * ptlongjmp.c: New file.
523         * spinlock.c: New file.
524         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
525         new function __pthread_acquire to prevent deadlocks with thread
526         with different priorities.
527         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
529 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
531         * manager.c (__pthread_manager): Reduce first argument to select
532         to include just the needed file descriptor.
534 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
536         * manager.c: Fix last patch which caused core dumps.
538         * pthread.c: Correctly handle missing SIGRTMIN.
540 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
542         * libpthread.map: Add __libc_internal_tsd_get and
543         __libc_internal_tsd_set.  Add missing cancelable functions. Export
544         libc internal versions of the cancelable functions.
546 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
548         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
550 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
552         * attr.c: Implement pthread_attr_[gs]etguardsize,
553         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
554         Change pthread_attr_init to have two interfaces.
555         * internals.h (struct _pthread_descr_struct): Add new fields for
556         above functions.
557         * libpthread.map: Add names in GLIBC_2.1 section.
558         * manager.c (pthread_handle_create): Implement guardsize and
559         user stack.
560         (pthread_free): Likewise.
561         * pthread.c (pthread_create): Add new interface for changed
562         pthread_attr_t.
563         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
564         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
565         PTHREAD_STACK_MIN.
567 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
569         * manager.c: Enable resetting of the thread scheduling policy
570         to SCHED_OTHER when the parent thread has a different one.
572 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
574         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
575         _POSIX_ASYNCHRONOUS_IO.
577         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
578         mutexes.
579         * mutex.c: Implement new mutex types.
581         * internals.h: Include <signal.h>.
583         * libpthread.map: Add __erno_location and __h_errno_location.
585         * errno.c: Return pointer to variable actually in use.  This might
586         not be the one in the thread structure.
587         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
588         and p_h_errnop.
589         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
590         of manager thread structure.
591         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
592         thread.
593         * pthread.c: Adapt initializer for thread structures.
594         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
595         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
596         current thread to global variables.
598 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
600         * rwlock.c: New file.
601         * Makefile (libpthread-routines): Add rwlock.
602         * sysdeps/pthread/pthread.h: Define data structures and declare
603         functions.
604         * libpthread.map: Add new functions.
606 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
608         * sysdeps/arm/pt-machine.h: New file; add ARM support.
609         * sysdeps/arm/Implies: likewise.
610         * README: Document it.
612 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
614         * signals.c: Remove unneeded initializer for sigwaited, saving a
615         warning.
617 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
619         * semaphore.c (sem_init): Set sem_spinlock only if available.
621 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
623         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
624         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
626         * Makefile: Update from LinuxThreads 0.7.
627         * internals.h. Likewise.
628         * manager.c: Likewise.
629         * mutex.c: Likewise.
630         * pthread.c: Likewise.
631         * signals.c: Likewise.
632         * specific.c: Likewise.
633         * Examples/ex3.c: Likewise.
635 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
637         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
638         open.
640 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
642         * wrapsyscall.c: Add socket functions which are also cancelation
643         points.
645 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
647         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
648         New functions for fast thread specific data within libc.
650         * internals.h: Add new array p_libc_specific to struct
651         _pthread_descr_struct.
653         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
655 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
657         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
658         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
660 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
662         * internals.h (struct _pthread_descr_struct): Add definitions for
663         two-level specific key handling.
664         * manager.c (pthread_handle_create): Initialize specific memory array.
665         * specific.c: Implement two-level key handling.
666         * weaks.c: Don't provide dummy key handling.
667         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
668         Add definition of __libc_key_t.
669         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
670         as 1024.
671         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
672         PTHREAD_DESTRUCTOR_ITERATIONS.
674         * manager.c (pthread_handle_create): Compare mmap result with
675         MAP_FAILED.
677         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
678         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
680 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
682         sysdeps/sparc -> sysdeps/sparc/sparc32
683         sysdeps/sparc64 -> sysdeps/sparc/sparc64
685         * internals.h: Change definition of THREAD_SELF to be an expression,
686         not a statement that did a return.
687         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
688         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
689         Follow Solaris and use a "system reserved" register (%g6) to hold
690         the thread descriptor.
691         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
693 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
695         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
696         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
697         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
699         * semaphore.c: Include spinlock.h only when needed.
701         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
702         keys for entries not in use.
704         * weaks.c: Implement key handling functions for real.
706 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
708         Initial sparc64-linux support:
709         * linuxthreads/sysdeps/sparc64/Implies: New file.
710         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
712 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
714         * semaphore.c: Include spinlock.h at correct place.
715         Patch by HJ Lu.
717 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
719         The Great Bit File Move:
720         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
721         * sysdeps/powerpc/semaphorebits.h: Likewise.
722         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
723         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
724         * sysdeps/pthread/libc-lock.h: -> bits/
725         * sysdeps/pthread/stdio-lock.h: Likewise.
726         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
727         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
728         * semaphore.h: Likewise.
729         * sysdeps/pthread/pthread.h: Likewise.
731         * lockfile.c: <foo.h> -> <bits/foo.h>.
732         * semaphore.h: Likewise.
734         * Makefile: (headers): foo.h -> bits/foo.h.
735         * sysdeps/pthread/Makefile: Likewise.
737 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
739         * semaphore.c (sem_init): Set sem_spinlock only if available.
741         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
742         asm constraints.
744 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
746         Update from LinuxThreads 0.6.
748         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
749         and __sched_get_priority_min instead of names without `__'.
751         * manager.c: Rewrite large parts to implement opaque pthread_t.
753         * cancel.c: Adapt for opaque pthread_t type.
754         * condvar.c: Likewise.
755         * errno.c: Likewise.
756         * join.c: Likewise.
757         * mutex.c: Likewise.
758         * pthread.c: Likewise.
759         * signals.c: Likewise.
760         * specific.c: Likewise.
761         * restart.h: Likewise.
762         * queue.h: Likewise.
763         * Examples/ex3.c: Likewise.
764         * Examples/ex4.c: Likewise.
765         * sysdeps/pthread/pthread.h: Likewise.
767         * pthread.c: Accumulate time for all threads in thread manager.
769         * semaphore.c: Implement fallback implementation for architectures
770         sometimes missing compare-exchange operations.
772         * cancel.c (pthread_cancel): Validate handle argument.
773         * join.c (pthread_join): Likewise.
774         (pthread_detach): Likewise.
775         * signals.c (pthread_kill): Likewise.
777         * spinlock.h (acquire): Use __sched_yield not sched_yield.
779         * queue.h (enqueue): Enqueue thread according to priority.
781         * internals.c (struct pthread_start_args): New struct for passing
782         args to cloning function.
783         (struct _pthread): Rename to _pthread_descr_struct and adapt for
784         opaque pthread_t.
786         * Examples/Makefile (clean): Pass -f option to rm.
788         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
789         and define TEST_FOR_COMPARE_AND_SWAP.
790         * sysdeps/i386/i486/pt-machine.h: Removed.
792         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
793         to 1024.
795 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
797         * restart.h (suspend): Clear p_signal before suspending.
798         (suspend_with_cancellation): Likewise.
799         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
801         * weaks.c: Make __pthread_key_create return 1.
802         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
803         __libc_getspecific, __libc_setspecific, and __libc_key_t.
804         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
805         using libio.
807 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
809         * sysdeps/sparc/pt-machine (RELEASE): Fix.
811 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
813         * sysdeps/powerpc/Implies: Added.
814         * sysdeps/powerpc/pt-machine.h: Added.
815         * sysdeps/powerpc/semaphorebits.h: Added.
817 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
819         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
820         initializer.
821         (__pthread_manager_thread): Likewise.
822         Reported by Andreas Jaeger.
824 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
826         Since sigset_t no longer fits in a register, we can't pass in the
827         thread's initial mask so easily.  Take this opportunity to simplify
828         the clone implementation by only accepting a single void* argument.
830         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
831         in the thread struct instead of as arguments through clone.
832         (pthread_start_thread): Look for them there.
833         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
834         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
835         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
836         clone invocation.