Update.
[glibc.git] / linuxthreads / ChangeLog
blobdc044ad2ae239c0d8a7c2542b3ab32794c2879aa
1 1998-10-29 14:28  Ulrich Drepper  <drepper@cygnus.com>
3         * spinlock.h (__pthread_trylock): Define inline.
4         (__pthread_lock): Add extra parameter to declaration.  Declare
5         using internal_function.
6         (__pthread_unlock): Declare using internal_function.
7         * spinlock.c (__pthread_lock): Add new parameter.  Use it instead
8         of local variable self.  Avoid recomputing self.  Define using
9         internal_function.
10         (__pthread_trylock): Remove.
11         (__pthread_unlock): Define using internal_function.
12         * cancel.c: Adjust for __pthread_lock interface change.  Use already
13         computed self value is possible.
14         * condvar.c: Likewise.
15         * join.c: Likewise.
16         * manager.c: Likewise.
17         * mutex.c: Likewise.
18         * pthread.c: Likewise.
19         * rwlock.c: Likewise.
20         * semaphore.c: Likewise.
21         * signals.c: Likewise.
23 1998-10-27 13:46  Ulrich Drepper  <drepper@cygnus.com>
25         * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
26         __ to field names of the struct.
27         * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
28         Likewise.
29         (pthread_attr_t): Likewise.
30         (pthread_cond_t): Likewise.
31         (pthread_condattr_t): Likewise.
32         (pthread_mutex_t): Likewise.
33         (pthread_mutexattr_t): Likewise.
34         (pthread_rwlock_t): Likewise.
35         (pthread_rwlockattr_t): Likewise.
36         * attr.c: Adjust for pthread.h and pthreadtypes.h change.
37         * cancel.c: Likewise.
38         * condvar.c: Likewise.
39         * manager.c: Likewise.
40         * mutex.c: Likewise.
41         * pthread.c: Likewise.
42         * ptlongjmp.c: Likewise.
43         * rwlock.c: Likewise.
44         * spinlock.c: Likewise.
46 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
48         * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
49         also with PT_EI.
51         * sysdeps/i386/i686/pt-machine.h: Remove unused inline
52         definitions.
54         * Makefile (libpthread-routines): Add pt-machine.
55         * pt-machine.c: New file.
56         * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
57         yet defined.  Use PT_EI in extern inline definitions.
58         * sysdeps/arm/pt-machine.h: Likewise.
59         * sysdeps/i386/pt-machine.h: Likewise.
60         * sysdeps/i386/i686/pt-machine.h: Likewise.
61         * sysdeps/m68k/pt-machine.h: Likewise.
62         * sysdeps/mips/pt-machine.h: Likewise.
63         * sysdeps/powerpc/pt-machine.h: Likewise.
64         * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
65         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
67 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
69         * semaphore.h: Include <sys/types.h> so that _pthread_descr
70         is declared.
72 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
74         * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
75         argument.
76         * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
78 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
80         * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
81         multiple inclusion guard.
83 1998-09-02 11:08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85         * signals.c (sigaction): Check that sig is less than NSIG to avoid
86         array index overflow.
88 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
90         * sysdeps/pthread/semaphore.h: New file.
92 1998-09-06 09:08  Ulrich Drepper  <drepper@cygnus.com>
94         * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
95         _LIBC_TSD_KEY_DL_ERROR.
97 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
99         * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
100         * sysdeps/i386/pt-machine.h: Likewise.
101         Suggested by Roland McGrath.
103 1998-08-28 13:58  Ulrich Drepper  <drepper@cygnus.com>
105         * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
106         access thread data with non-constant offsets.
107         * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
108         necessary.
110         * sysdeps/i386/useldt.h: Fix typo.  Add THREAD_GETMEM_NC and
111         THREAD_SETMEM_NC definitions.
113         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
114         THREAD_SETMEM_NC.
115         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
117 1998-08-26 15:46  Ulrich Drepper  <drepper@cygnus.com>
119         * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
120         not already defined.
121         (struct _pthread_descr_struct): Add p_self and p_nr field.
122         * manager.c (__pthread_handles): Define second element to point
123         to manager thread.
124         (__pthread_handles_num): Initialize to 2.
125         (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
126         (pthread_start_thread): Likewise.
127         (pthread_handle_create): Start search for free slot at entry 2.
128         Initialize new fields p_self and p_nr.
129         Call __clone with CLONE_PTRACE if available.
130         (pthread_free): Call FREE_THREAD_SELF if available.
131         * pthread.c (__pthread_initial_thread): Initialize new fields.
132         (__pthread_manager_thread): Likewise.
133         (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
135         * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
136         elements of the thread descriptor.
137         * condvar.c: Likewise.
138         * errno.c: Likewise.
139         * join.c: Likewise.
140         * manager.c: Likewise.
141         * pthread.c: Likewise.
142         * ptlongjmp.c: Likewise.
143         * semaphore.c: Likewise.
144         * signals.c: Likewise.
145         * specific.c: Likewise.
146         * spinlock.c: Likewise.
148         * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
150         * sysdeps/i386/useldt.h: New file.
151         * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
153         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
154         THREAD_SETMEM using __thread_self.
155         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
157 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
159         * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
160         turned out that we didn't need to queue after all.
162 1998-08-22  Geoff Keating  <geoffk@ozemail.com.au>
164         * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
165         and wastes space; correct types.
167 1998-08-08 11:18  H.J. Lu  <hjl@gnu.org>
169         * signals.c (sigaction): Handle NULL argument.
171 1998-08-04  Ulrich Drepper  <drepper@cygnus.com>
173         * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
174         of sigset_t.
176 1998-08-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
178         * Makefile (linuxthreads-version): Extract correct number from
179         Banner.
181 1998-07-29  Xavier Leroy  <Xavier.Leroy@inria.fr>
183         * Banner: Bump version number to 0.8
184         * FAQ.html: Many updates, in particular w.r.t. debugging.
185         * manager.c: Support for non-default stacksize for
186         LinuxThreads-allocated stacks;
187         don't use guard pages for stacks with default size, rely on
188         rlimit(RLIMIT_STACK) instead (it's cheaper).
189         * attr.c: Likewise.
190         * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
191         everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
192         * condvar.c: Likewise.
193         * internals.h: Likewise.
194         * restart.h: Likewise.
195         * signals.c: Likewise.
196         * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
198 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
200         * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
201         __pthread_mutexattr_[sg]ettype.  Add more weak aliases.
202         * Versions: Put __pthread_mutexattr_settype under version
203         GLIBC_2.0.  Don't export __pthread_mutexattr_setkind_np and
204         __pthread_mutexattr_gettype.
206 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
208         * sysdeps/pthread/bits/libc-lock.h: Make
209         __pthread_mutexattr_settype weak.  Don't make
210         __pthread_mutexattr_setkind_np weak.
212 1998-07-16 10:52  Ulrich Drepper  <drepper@cygnus.com>
214         * manager.c (pthread_handle_create): Check whether sched_setscheduler
215         call can succeed here.
217         * mutex.c: Define __pthread_mutexattr_settype and make
218         __pthread_mutexattr_setkind_np an alias.
219         Likewise for __pthread_mutexattr_gettype.
221 1998-07-15 11:00 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
223         * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
224         is root.
226 1998-07-14 19:38  Ulrich Drepper  <drepper@cygnus.com>
228         * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
230 1998-07-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
232         * Examples/ex6.c: Include <unistd.h> for usleep.
234 1998-06-13 11:04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
236         * Examples/ex4.c (main): Use exit, not pthread_exit.
238 1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>
240         * Versions: Add __pthread_mutexattr_gettype and
241         __pthread_mutexattr_settype.
242         * lockfile.c: Use __pthread_mutexattr_settype instead of
243         __pthread_mutexattr_setkind_np.
244         * mutex.c: Define __pthread_mutexattr_gettype and
245         __pthread_mutexattr_settype.
246         * weak.c: Likewise.
247         * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
248         __pthread_mutexattr_settype.
249         * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
250         Use __pthread_mutexattr_settype.
252 1998-07-08 22:26  Ulrich Drepper  <drepper@cygnus.com>
254         * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
255         * mutex.c: Define weak alias pthread_mutexattr_gettype and
256         pthread_mutexattr_settype.
257         * sysdeps/pthread/pthread.h: Declare these functions.
258         Move pthread_sigmask and pthread_kill declaration in separate header.
259         * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
261 1998-07-07 15:20  Ulrich Drepper  <drepper@cygnus.com>
263         * Makefile: Add rules to compile and run tests.
264         * Examples/ex1.c: Little changes to fix warnings.
265         * Examples/ex2.c: Likewise.
266         * Examples/ex3.c: Likewise.
267         * Examples/ex4.c: Likewise.
268         * Examples/ex5.c: Likewise.
269         * Examples/ex6.c: New file.
271 1998-07-05 11:54  Ulrich Drepper  <drepper@cygnus.com>
273         * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
275 1998-07-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
277         * attr.c: Include <string.h>.
279 1998-06-30 11:47  Ulrich Drepper  <drepper@cygnus.com>
281         * attr.c: Include errno.h.  Use memcpy to copy sched_param.
282         * internals.h: Include limits.h.
283         * manager.c: Use memcpy to copy sched_param.
284         * ptfork.c: Include errno.h.
285         * pthread.c: Likewise.
286         * semaphore.c: Likewise.
287         * specific.c: Likewise.
288         * spinlock.h: Likewise.
289         * sysdeps/pthread/pthread.h: Include only allowed headers.  Move
290         type definition to ...
291         * sysdeps/pthread/bits/pthreadtypes.h: ...here.  New file.
293 1998-06-29 12:34  Ulrich Drepper  <drepper@cygnus.com>
295         * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
297         * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
298         as macros as demanded in POSIX.1, Annex C.
300 1998-06-29 12:29  Ulrich Drepper  <drepper@cygnus.com>
302         * internals.h (struct pthread_request): For free use pthread_t
303         instead of pthread_descr.
304         * join.c (pthread_join): Pass thread_id, not th to manager.
305         (pthread_detach): Likewise.
306         * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
307         (pthread_exited): Remove detached queue code.
308         (pthread_handle_free): Expect thread ID parameter and use it to
309         validate the thread decsriptor.  Don't use detached queue.
310         Patches by Xavier Leroy.
312 1998-06-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
314         * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
315         _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
316         __pthread_atfork, __pthread_key_create, __pthread_once.
317         * internals.h: Doc fix.
318         * pthread.c (__pthread_initialize): Define again.
320 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
322         * manager.c (pthread_exited): If thread is not detached put it on
323         special list.
324         (pthread_handle_free): If thread is not on list with living threads
325         search on list with detached threads.
327         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
328         for new definition of pthread_rwlock_t.
330         * spinlock.c: Correct test whether to compile
331         __pthread_compare_and_swap or not.
333 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
335         * attr.c: Finish user stack support.  Change locking code to be safe
336         in situations with different priorities.
337         * cancel.c: Likewise.
338         * condvar.c: Likewise.
339         * internals.h: Likewise.
340         * join.c: Likewise.
341         * manager.c: Likewise.
342         * mutex.c: Likewise.
343         * pthread.c: Likewise.
344         * ptlongjmp.c: Likewise.
345         * queue.h: Likewise.
346         * rwlock.c: Likewise.
347         * semaphore.c: Likewise.
348         * semaphore.h: Likewise.
349         * signals.c: Likewise.
350         * spinlock.c: Likewise.
351         * spinlock.h: Likewise.
352         * sysdeps/pthread/pthread.h: Likewise.
353         Patches by Xavier Leroy.
355         * sysdeps/i386/i686/pt-machine.h: New file.
357 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
359         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
360         [sg]et_stackaddr prototypes always available.
362         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
363         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
365 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
367         * manager.c (pthread_free): Undo patch from 980430.
368         Reported by David Wragg <dpw@doc.ic.ac.uk>.
370 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
372         * manager.c: Define __pthread_manager_adjust_prio and use it to
373         increase priority when needed.
374         * internals.h: Add prototype for __pthread_manager_adjust_prio.
375         * mutex.c: Optimize mutexes to wake up only one thread.
376         * pthread.c: Move PID of manager for global variable in structure
377         element.
378         Patches by Xavier Leroy.
380 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
382         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
384 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
386         * attr.c: Correct typo.
388 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
390         * manager.c (pthread_free): Unmap guard before the stack.
391         Patch by Matthias Urlichs.
393 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
395         * manager.c (pthread_free): Detect already free child.
396         Patch by Xavier Leroy, reported by Matthias Urlichs.
398 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
400         * Makefile (linuxthreads-version): Renamed back from
401         libpthread-version.
403 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
405         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
406         __libc_longjmp.
408 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
410         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
411         * internals.h: Add definitions for new spinlock implementation.
412         * ptlongjmp.c: New file.
413         * spinlock.c: New file.
414         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
415         new function __pthread_acquire to prevent deadlocks with thread
416         with different priorities.
417         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
419 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
421         * manager.c (__pthread_manager): Reduce first argument to select
422         to include just the needed file descriptor.
424 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
426         * manager.c: Fix last patch which caused core dumps.
428         * pthread.c: Correctly handle missing SIGRTMIN.
430 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
432         * libpthread.map: Add __libc_internal_tsd_get and
433         __libc_internal_tsd_set.  Add missing cancelable functions. Export
434         libc internal versions of the cancelable functions.
436 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
438         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
440 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
442         * attr.c: Implement pthread_attr_[gs]etguardsize,
443         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
444         Change pthread_attr_init to have two interfaces.
445         * internals.h (struct _pthread_descr_struct): Add new fields for
446         above functions.
447         * libpthread.map: Add names in GLIBC_2.1 section.
448         * manager.c (pthread_handle_create): Implement guardsize and
449         user stack.
450         (pthread_free): Likewise.
451         * pthread.c (pthread_create): Add new interface for changed
452         pthread_attr_t.
453         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
454         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
455         PTHREAD_STACK_MIN.
457 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
459         * manager.c: Enable resetting of the thread scheduling policy
460         to SCHED_OTHER when the parent thread has a different one.
462 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
464         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
465         _POSIX_ASYNCHRONOUS_IO.
467         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
468         mutexes.
469         * mutex.c: Implement new mutex types.
471         * internals.h: Include <signal.h>.
473         * libpthread.map: Add __erno_location and __h_errno_location.
475         * errno.c: Return pointer to variable actually in use.  This might
476         not be the one in the thread structure.
477         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
478         and p_h_errnop.
479         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
480         of manager thread structure.
481         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
482         thread.
483         * pthread.c: Adapt initializer for thread structures.
484         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
485         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
486         current thread to global variables.
488 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
490         * rwlock.c: New file.
491         * Makefile (libpthread-routines): Add rwlock.
492         * sysdeps/pthread/pthread.h: Define data structures and declare
493         functions.
494         * libpthread.map: Add new functions.
496 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
498         * sysdeps/arm/pt-machine.h: New file; add ARM support.
499         * sysdeps/arm/Implies: likewise.
500         * README: Document it.
502 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
504         * signals.c: Remove unneeded initializer for sigwaited, saving a
505         warning.
507 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
509         * semaphore.c (sem_init): Set sem_spinlock only if available.
511 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
513         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
514         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
516         * Makefile: Update from LinuxThreads 0.7.
517         * internals.h. Likewise.
518         * manager.c: Likewise.
519         * mutex.c: Likewise.
520         * pthread.c: Likewise.
521         * signals.c: Likewise.
522         * specific.c: Likewise.
523         * Examples/ex3.c: Likewise.
525 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
527         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
528         open.
530 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
532         * wrapsyscall.c: Add socket functions which are also cancelation
533         points.
535 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
537         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
538         New functions for fast thread specific data within libc.
540         * internals.h: Add new array p_libc_specific to struct
541         _pthread_descr_struct.
543         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
545 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
547         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
548         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
550 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
552         * internals.h (struct _pthread_descr_struct): Add definitions for
553         two-level specific key handling.
554         * manager.c (pthread_handle_create): Initialize specific memory array.
555         * specific.c: Implement two-level key handling.
556         * weaks.c: Don't provide dummy key handling.
557         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
558         Add definition of __libc_key_t.
559         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
560         as 1024.
561         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
562         PTHREAD_DESTRUCTOR_ITERATIONS.
564         * manager.c (pthread_handle_create): Compare mmap result with
565         MAP_FAILED.
567         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
568         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
570 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
572         sysdeps/sparc -> sysdeps/sparc/sparc32
573         sysdeps/sparc64 -> sysdeps/sparc/sparc64
575         * internals.h: Change definition of THREAD_SELF to be an expression,
576         not a statement that did a return.
577         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
578         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
579         Follow Solaris and use a "system reserved" register (%g6) to hold
580         the thread descriptor.
581         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
583 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
585         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
586         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
587         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
589         * semaphore.c: Include spinlock.h only when needed.
591         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
592         keys for entries not in use.
594         * weaks.c: Implement key handling functions for real.
596 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
598         Initial sparc64-linux support:
599         * linuxthreads/sysdeps/sparc64/Implies: New file.
600         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
602 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
604         * semaphore.c: Include spinlock.h at correct place.
605         Patch by HJ Lu.
607 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
609         The Great Bit File Move:
610         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
611         * sysdeps/powerpc/semaphorebits.h: Likewise.
612         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
613         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
614         * sysdeps/pthread/libc-lock.h: -> bits/
615         * sysdeps/pthread/stdio-lock.h: Likewise.
616         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
617         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
618         * semaphore.h: Likewise.
619         * sysdeps/pthread/pthread.h: Likewise.
621         * lockfile.c: <foo.h> -> <bits/foo.h>.
622         * semaphore.h: Likewise.
624         * Makefile: (headers): foo.h -> bits/foo.h.
625         * sysdeps/pthread/Makefile: Likewise.
627 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
629         * semaphore.c (sem_init): Set sem_spinlock only if available.
631         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
632         asm constraints.
634 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
636         Update from LinuxThreads 0.6.
638         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
639         and __sched_get_priority_min instead of names without `__'.
641         * manager.c: Rewrite large parts to implement opaque pthread_t.
643         * cancel.c: Adapt for opaque pthread_t type.
644         * condvar.c: Likewise.
645         * errno.c: Likewise.
646         * join.c: Likewise.
647         * mutex.c: Likewise.
648         * pthread.c: Likewise.
649         * signals.c: Likewise.
650         * specific.c: Likewise.
651         * restart.h: Likewise.
652         * queue.h: Likewise.
653         * Examples/ex3.c: Likewise.
654         * Examples/ex4.c: Likewise.
655         * sysdeps/pthread/pthread.h: Likewise.
657         * pthread.c: Accumulate time for all threads in thread manager.
659         * semaphore.c: Implement fallback implementation for architectures
660         sometimes missing compare-exchange operations.
662         * cancel.c (pthread_cancel): Validate handle argument.
663         * join.c (pthread_join): Likewise.
664         (pthread_detach): Likewise.
665         * signals.c (pthread_kill): Likewise.
667         * spinlock.h (acquire): Use __sched_yield not sched_yield.
669         * queue.h (enqueue): Enqueue thread according to priority.
671         * internals.c (struct pthread_start_args): New struct for passing
672         args to cloning function.
673         (struct _pthread): Rename to _pthread_descr_struct and adapt for
674         opaque pthread_t.
676         * Examples/Makefile (clean): Pass -f option to rm.
678         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
679         and define TEST_FOR_COMPARE_AND_SWAP.
680         * sysdeps/i386/i486/pt-machine.h: Removed.
682         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
683         to 1024.
685 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
687         * restart.h (suspend): Clear p_signal before suspending.
688         (suspend_with_cancellation): Likewise.
689         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
691         * weaks.c: Make __pthread_key_create return 1.
692         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
693         __libc_getspecific, __libc_setspecific, and __libc_key_t.
694         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
695         using libio.
697 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
699         * sysdeps/sparc/pt-machine (RELEASE): Fix.
701 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
703         * sysdeps/powerpc/Implies: Added.
704         * sysdeps/powerpc/pt-machine.h: Added.
705         * sysdeps/powerpc/semaphorebits.h: Added.
707 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
709         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
710         initializer.
711         (__pthread_manager_thread): Likewise.
712         Reported by Andreas Jaeger.
714 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
716         Since sigset_t no longer fits in a register, we can't pass in the
717         thread's initial mask so easily.  Take this opportunity to simplify
718         the clone implementation by only accepting a single void* argument.
720         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
721         in the thread struct instead of as arguments through clone.
722         (pthread_start_thread): Look for them there.
723         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
724         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
725         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
726         clone invocation.