Update.
[glibc.git] / linuxthreads / ChangeLog
blobb8cad4cbbf98ead40f2d2de6758b62cbe9e52f42
1 1998-08-28 13:58  Ulrich Drepper  <drepper@cygnus.com>
3         * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
4         access thread data with non-constant offsets.
5         * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
6         necessary.
8         * sysdeps/i386/useldt.h: Fix typo.  Add THREAD_GETMEM_NC and
9         THREAD_SETMEM_NC definitions.
11         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
12         THREAD_SETMEM_NC.
13         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
15 1998-08-26 15:46  Ulrich Drepper  <drepper@cygnus.com>
17         * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
18         not already defined.
19         (struct _pthread_descr_struct): Add p_self and p_nr field.
20         * manager.c (__pthread_handles): Define second element to point
21         to manager thread.
22         (__pthread_handles_num): Initialize to 2.
23         (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
24         (pthread_start_thread): Likewise.
25         (pthread_handle_create): Start search for free slot at entry 2.
26         Initialize new fields p_self and p_nr.
27         Call __clone with CLONE_PTRACE if available.
28         (pthread_free): Call FREE_THREAD_SELF if available.
29         * pthread.c (__pthread_initial_thread): Initialize new fields.
30         (__pthread_manager_thread): Likewise.
31         (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
33         * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
34         elements of the thread descriptor.
35         * condvar.c: Likewise.
36         * errno.c: Likewise.
37         * join.c: Likewise.
38         * manager.c: Likewise.
39         * pthread.c: Likewise.
40         * ptlongjmp.c: Likewise.
41         * semaphore.c: Likewise.
42         * signals.c: Likewise.
43         * specific.c: Likewise.
44         * spinlock.c: Likewise.
46         * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
48         * sysdeps/i386/useldt.h: New file.
49         * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
51         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
52         THREAD_SETMEM using __thread_self.
53         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
55 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
57         * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
58         turned out that we didn't need to queue after all.
60 1998-08-22  Geoff Keating  <geoffk@ozemail.com.au>
62         * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
63         and wastes space; correct types.
65 1998-08-08 11:18  H.J. Lu  <hjl@gnu.org>
67         * signals.c (sigaction): Handle NULL argument.
69 1998-08-04  Ulrich Drepper  <drepper@cygnus.com>
71         * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
72         of sigset_t.
74 1998-08-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
76         * Makefile (linuxthreads-version): Extract correct number from
77         Banner.
79 1998-07-29  Xavier Leroy  <Xavier.Leroy@inria.fr>
81         * Banner: Bump version number to 0.8
82         * FAQ.html: Many updates, in particular w.r.t. debugging.
83         * manager.c: Support for non-default stacksize for
84         LinuxThreads-allocated stacks;
85         don't use guard pages for stacks with default size, rely on
86         rlimit(RLIMIT_STACK) instead (it's cheaper).
87         * attr.c: Likewise.
88         * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
89         everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
90         * condvar.c: Likewise.
91         * internals.h: Likewise.
92         * restart.h: Likewise.
93         * signals.c: Likewise.
94         * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
96 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98         * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
99         __pthread_mutexattr_[sg]ettype.  Add more weak aliases.
100         * Versions: Put __pthread_mutexattr_settype under version
101         GLIBC_2.0.  Don't export __pthread_mutexattr_setkind_np and
102         __pthread_mutexattr_gettype.
104 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
106         * sysdeps/pthread/bits/libc-lock.h: Make
107         __pthread_mutexattr_settype weak.  Don't make
108         __pthread_mutexattr_setkind_np weak.
110 1998-07-16 10:52  Ulrich Drepper  <drepper@cygnus.com>
112         * manager.c (pthread_handle_create): Check whether sched_setscheduler
113         call can succeed here.
115         * mutex.c: Define __pthread_mutexattr_settype and make
116         __pthread_mutexattr_setkind_np an alias.
117         Likewise for __pthread_mutexattr_gettype.
119 1998-07-15 11:00 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
121         * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
122         is root.
124 1998-07-14 19:38  Ulrich Drepper  <drepper@cygnus.com>
126         * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
128 1998-07-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
130         * Examples/ex6.c: Include <unistd.h> for usleep.
132 1998-06-13 11:04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134         * Examples/ex4.c (main): Use exit, not pthread_exit.
136 1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>
138         * Versions: Add __pthread_mutexattr_gettype and
139         __pthread_mutexattr_settype.
140         * lockfile.c: Use __pthread_mutexattr_settype instead of
141         __pthread_mutexattr_setkind_np.
142         * mutex.c: Define __pthread_mutexattr_gettype and
143         __pthread_mutexattr_settype.
144         * weak.c: Likewise.
145         * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
146         __pthread_mutexattr_settype.
147         * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
148         Use __pthread_mutexattr_settype.
150 1998-07-08 22:26  Ulrich Drepper  <drepper@cygnus.com>
152         * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
153         * mutex.c: Define weak alias pthread_mutexattr_gettype and
154         pthread_mutexattr_settype.
155         * sysdeps/pthread/pthread.h: Declare these functions.
156         Move pthread_sigmask and pthread_kill declaration in separate header.
157         * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
159 1998-07-07 15:20  Ulrich Drepper  <drepper@cygnus.com>
161         * Makefile: Add rules to compile and run tests.
162         * Examples/ex1.c: Little changes to fix warnings.
163         * Examples/ex2.c: Likewise.
164         * Examples/ex3.c: Likewise.
165         * Examples/ex4.c: Likewise.
166         * Examples/ex5.c: Likewise.
167         * Examples/ex6.c: New file.
169 1998-07-05 11:54  Ulrich Drepper  <drepper@cygnus.com>
171         * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
173 1998-07-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
175         * attr.c: Include <string.h>.
177 1998-06-30 11:47  Ulrich Drepper  <drepper@cygnus.com>
179         * attr.c: Include errno.h.  Use memcpy to copy sched_param.
180         * internals.h: Include limits.h.
181         * manager.c: Use memcpy to copy sched_param.
182         * ptfork.c: Include errno.h.
183         * pthread.c: Likewise.
184         * semaphore.c: Likewise.
185         * specific.c: Likewise.
186         * spinlock.h: Likewise.
187         * sysdeps/pthread/pthread.h: Include only allowed headers.  Move
188         type definition to ...
189         * sysdeps/pthread/bits/pthreadtypes.h: ...here.  New file.
191 1998-06-29 12:34  Ulrich Drepper  <drepper@cygnus.com>
193         * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
195         * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
196         as macros as demanded in POSIX.1, Annex C.
198 1998-06-29 12:29  Ulrich Drepper  <drepper@cygnus.com>
200         * internals.h (struct pthread_request): For free use pthread_t
201         instead of pthread_descr.
202         * join.c (pthread_join): Pass thread_id, not th to manager.
203         (pthread_detach): Likewise.
204         * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
205         (pthread_exited): Remove detached queue code.
206         (pthread_handle_free): Expect thread ID parameter and use it to
207         validate the thread decsriptor.  Don't use detached queue.
208         Patches by Xavier Leroy.
210 1998-06-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
212         * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
213         _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
214         __pthread_atfork, __pthread_key_create, __pthread_once.
215         * internals.h: Doc fix.
216         * pthread.c (__pthread_initialize): Define again.
218 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
220         * manager.c (pthread_exited): If thread is not detached put it on
221         special list.
222         (pthread_handle_free): If thread is not on list with living threads
223         search on list with detached threads.
225         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
226         for new definition of pthread_rwlock_t.
228         * spinlock.c: Correct test whether to compile
229         __pthread_compare_and_swap or not.
231 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
233         * attr.c: Finish user stack support.  Change locking code to be safe
234         in situations with different priorities.
235         * cancel.c: Likewise.
236         * condvar.c: Likewise.
237         * internals.h: Likewise.
238         * join.c: Likewise.
239         * manager.c: Likewise.
240         * mutex.c: Likewise.
241         * pthread.c: Likewise.
242         * ptlongjmp.c: Likewise.
243         * queue.h: Likewise.
244         * rwlock.c: Likewise.
245         * semaphore.c: Likewise.
246         * semaphore.h: Likewise.
247         * signals.c: Likewise.
248         * spinlock.c: Likewise.
249         * spinlock.h: Likewise.
250         * sysdeps/pthread/pthread.h: Likewise.
251         Patches by Xavier Leroy.
253         * sysdeps/i386/i686/pt-machine.h: New file.
255 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
257         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
258         [sg]et_stackaddr prototypes always available.
260         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
261         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
263 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
265         * manager.c (pthread_free): Undo patch from 980430.
266         Reported by David Wragg <dpw@doc.ic.ac.uk>.
268 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
270         * manager.c: Define __pthread_manager_adjust_prio and use it to
271         increase priority when needed.
272         * internals.h: Add prototype for __pthread_manager_adjust_prio.
273         * mutex.c: Optimize mutexes to wake up only one thread.
274         * pthread.c: Move PID of manager for global variable in structure
275         element.
276         Patches by Xavier Leroy.
278 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
280         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
282 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
284         * attr.c: Correct typo.
286 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
288         * manager.c (pthread_free): Unmap guard before the stack.
289         Patch by Matthias Urlichs.
291 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
293         * manager.c (pthread_free): Detect already free child.
294         Patch by Xavier Leroy, reported by Matthias Urlichs.
296 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
298         * Makefile (linuxthreads-version): Renamed back from
299         libpthread-version.
301 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
303         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
304         __libc_longjmp.
306 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
308         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
309         * internals.h: Add definitions for new spinlock implementation.
310         * ptlongjmp.c: New file.
311         * spinlock.c: New file.
312         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
313         new function __pthread_acquire to prevent deadlocks with thread
314         with different priorities.
315         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
317 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
319         * manager.c (__pthread_manager): Reduce first argument to select
320         to include just the needed file descriptor.
322 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
324         * manager.c: Fix last patch which caused core dumps.
326         * pthread.c: Correctly handle missing SIGRTMIN.
328 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
330         * libpthread.map: Add __libc_internal_tsd_get and
331         __libc_internal_tsd_set.  Add missing cancelable functions. Export
332         libc internal versions of the cancelable functions.
334 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
336         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
338 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
340         * attr.c: Implement pthread_attr_[gs]etguardsize,
341         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
342         Change pthread_attr_init to have two interfaces.
343         * internals.h (struct _pthread_descr_struct): Add new fields for
344         above functions.
345         * libpthread.map: Add names in GLIBC_2.1 section.
346         * manager.c (pthread_handle_create): Implement guardsize and
347         user stack.
348         (pthread_free): Likewise.
349         * pthread.c (pthread_create): Add new interface for changed
350         pthread_attr_t.
351         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
352         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
353         PTHREAD_STACK_MIN.
355 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
357         * manager.c: Enable resetting of the thread scheduling policy
358         to SCHED_OTHER when the parent thread has a different one.
360 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
362         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
363         _POSIX_ASYNCHRONOUS_IO.
365         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
366         mutexes.
367         * mutex.c: Implement new mutex types.
369         * internals.h: Include <signal.h>.
371         * libpthread.map: Add __erno_location and __h_errno_location.
373         * errno.c: Return pointer to variable actually in use.  This might
374         not be the one in the thread structure.
375         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
376         and p_h_errnop.
377         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
378         of manager thread structure.
379         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
380         thread.
381         * pthread.c: Adapt initializer for thread structures.
382         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
383         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
384         current thread to global variables.
386 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
388         * rwlock.c: New file.
389         * Makefile (libpthread-routines): Add rwlock.
390         * sysdeps/pthread/pthread.h: Define data structures and declare
391         functions.
392         * libpthread.map: Add new functions.
394 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
396         * sysdeps/arm/pt-machine.h: New file; add ARM support.
397         * sysdeps/arm/Implies: likewise.
398         * README: Document it.
400 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
402         * signals.c: Remove unneeded initializer for sigwaited, saving a
403         warning.
405 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
407         * semaphore.c (sem_init): Set sem_spinlock only if available.
409 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
411         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
412         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
414         * Makefile: Update from LinuxThreads 0.7.
415         * internals.h. Likewise.
416         * manager.c: Likewise.
417         * mutex.c: Likewise.
418         * pthread.c: Likewise.
419         * signals.c: Likewise.
420         * specific.c: Likewise.
421         * Examples/ex3.c: Likewise.
423 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
425         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
426         open.
428 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
430         * wrapsyscall.c: Add socket functions which are also cancelation
431         points.
433 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
435         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
436         New functions for fast thread specific data within libc.
438         * internals.h: Add new array p_libc_specific to struct
439         _pthread_descr_struct.
441         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
443 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
445         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
446         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
448 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
450         * internals.h (struct _pthread_descr_struct): Add definitions for
451         two-level specific key handling.
452         * manager.c (pthread_handle_create): Initialize specific memory array.
453         * specific.c: Implement two-level key handling.
454         * weaks.c: Don't provide dummy key handling.
455         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
456         Add definition of __libc_key_t.
457         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
458         as 1024.
459         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
460         PTHREAD_DESTRUCTOR_ITERATIONS.
462         * manager.c (pthread_handle_create): Compare mmap result with
463         MAP_FAILED.
465         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
466         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
468 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
470         sysdeps/sparc -> sysdeps/sparc/sparc32
471         sysdeps/sparc64 -> sysdeps/sparc/sparc64
473         * internals.h: Change definition of THREAD_SELF to be an expression,
474         not a statement that did a return.
475         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
476         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
477         Follow Solaris and use a "system reserved" register (%g6) to hold
478         the thread descriptor.
479         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
481 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
483         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
484         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
485         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
487         * semaphore.c: Include spinlock.h only when needed.
489         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
490         keys for entries not in use.
492         * weaks.c: Implement key handling functions for real.
494 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
496         Initial sparc64-linux support:
497         * linuxthreads/sysdeps/sparc64/Implies: New file.
498         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
500 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
502         * semaphore.c: Include spinlock.h at correct place.
503         Patch by HJ Lu.
505 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
507         The Great Bit File Move:
508         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
509         * sysdeps/powerpc/semaphorebits.h: Likewise.
510         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
511         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
512         * sysdeps/pthread/libc-lock.h: -> bits/
513         * sysdeps/pthread/stdio-lock.h: Likewise.
514         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
515         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
516         * semaphore.h: Likewise.
517         * sysdeps/pthread/pthread.h: Likewise.
519         * lockfile.c: <foo.h> -> <bits/foo.h>.
520         * semaphore.h: Likewise.
522         * Makefile: (headers): foo.h -> bits/foo.h.
523         * sysdeps/pthread/Makefile: Likewise.
525 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
527         * semaphore.c (sem_init): Set sem_spinlock only if available.
529         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
530         asm constraints.
532 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
534         Update from LinuxThreads 0.6.
536         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
537         and __sched_get_priority_min instead of names without `__'.
539         * manager.c: Rewrite large parts to implement opaque pthread_t.
541         * cancel.c: Adapt for opaque pthread_t type.
542         * condvar.c: Likewise.
543         * errno.c: Likewise.
544         * join.c: Likewise.
545         * mutex.c: Likewise.
546         * pthread.c: Likewise.
547         * signals.c: Likewise.
548         * specific.c: Likewise.
549         * restart.h: Likewise.
550         * queue.h: Likewise.
551         * Examples/ex3.c: Likewise.
552         * Examples/ex4.c: Likewise.
553         * sysdeps/pthread/pthread.h: Likewise.
555         * pthread.c: Accumulate time for all threads in thread manager.
557         * semaphore.c: Implement fallback implementation for architectures
558         sometimes missing compare-exchange operations.
560         * cancel.c (pthread_cancel): Validate handle argument.
561         * join.c (pthread_join): Likewise.
562         (pthread_detach): Likewise.
563         * signals.c (pthread_kill): Likewise.
565         * spinlock.h (acquire): Use __sched_yield not sched_yield.
567         * queue.h (enqueue): Enqueue thread according to priority.
569         * internals.c (struct pthread_start_args): New struct for passing
570         args to cloning function.
571         (struct _pthread): Rename to _pthread_descr_struct and adapt for
572         opaque pthread_t.
574         * Examples/Makefile (clean): Pass -f option to rm.
576         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
577         and define TEST_FOR_COMPARE_AND_SWAP.
578         * sysdeps/i386/i486/pt-machine.h: Removed.
580         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
581         to 1024.
583 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
585         * restart.h (suspend): Clear p_signal before suspending.
586         (suspend_with_cancellation): Likewise.
587         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
589         * weaks.c: Make __pthread_key_create return 1.
590         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
591         __libc_getspecific, __libc_setspecific, and __libc_key_t.
592         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
593         using libio.
595 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
597         * sysdeps/sparc/pt-machine (RELEASE): Fix.
599 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
601         * sysdeps/powerpc/Implies: Added.
602         * sysdeps/powerpc/pt-machine.h: Added.
603         * sysdeps/powerpc/semaphorebits.h: Added.
605 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
607         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
608         initializer.
609         (__pthread_manager_thread): Likewise.
610         Reported by Andreas Jaeger.
612 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
614         Since sigset_t no longer fits in a register, we can't pass in the
615         thread's initial mask so easily.  Take this opportunity to simplify
616         the clone implementation by only accepting a single void* argument.
618         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
619         in the thread struct instead of as arguments through clone.
620         (pthread_start_thread): Look for them there.
621         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
622         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
623         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
624         clone invocation.