Update.
[glibc.git] / linuxthreads / ChangeLog
blobd358962f713383d1dd18e353242bd2c0d86c5d3a
1 1998-09-06 09:08  Ulrich Drepper  <drepper@cygnus.com>
3         * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
4         _LIBC_TSD_KEY_DL_ERROR.
6 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
8         * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
9         * sysdeps/i386/pt-machine.h: Likewise.
10         Suggested by Roland McGrath.
12 1998-08-28 13:58  Ulrich Drepper  <drepper@cygnus.com>
14         * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
15         access thread data with non-constant offsets.
16         * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
17         necessary.
19         * sysdeps/i386/useldt.h: Fix typo.  Add THREAD_GETMEM_NC and
20         THREAD_SETMEM_NC definitions.
22         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
23         THREAD_SETMEM_NC.
24         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
26 1998-08-26 15:46  Ulrich Drepper  <drepper@cygnus.com>
28         * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
29         not already defined.
30         (struct _pthread_descr_struct): Add p_self and p_nr field.
31         * manager.c (__pthread_handles): Define second element to point
32         to manager thread.
33         (__pthread_handles_num): Initialize to 2.
34         (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
35         (pthread_start_thread): Likewise.
36         (pthread_handle_create): Start search for free slot at entry 2.
37         Initialize new fields p_self and p_nr.
38         Call __clone with CLONE_PTRACE if available.
39         (pthread_free): Call FREE_THREAD_SELF if available.
40         * pthread.c (__pthread_initial_thread): Initialize new fields.
41         (__pthread_manager_thread): Likewise.
42         (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
44         * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
45         elements of the thread descriptor.
46         * condvar.c: Likewise.
47         * errno.c: Likewise.
48         * join.c: Likewise.
49         * manager.c: Likewise.
50         * pthread.c: Likewise.
51         * ptlongjmp.c: Likewise.
52         * semaphore.c: Likewise.
53         * signals.c: Likewise.
54         * specific.c: Likewise.
55         * spinlock.c: Likewise.
57         * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
59         * sysdeps/i386/useldt.h: New file.
60         * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
62         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
63         THREAD_SETMEM using __thread_self.
64         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
66 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
68         * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
69         turned out that we didn't need to queue after all.
71 1998-08-22  Geoff Keating  <geoffk@ozemail.com.au>
73         * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
74         and wastes space; correct types.
76 1998-08-08 11:18  H.J. Lu  <hjl@gnu.org>
78         * signals.c (sigaction): Handle NULL argument.
80 1998-08-04  Ulrich Drepper  <drepper@cygnus.com>
82         * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
83         of sigset_t.
85 1998-08-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87         * Makefile (linuxthreads-version): Extract correct number from
88         Banner.
90 1998-07-29  Xavier Leroy  <Xavier.Leroy@inria.fr>
92         * Banner: Bump version number to 0.8
93         * FAQ.html: Many updates, in particular w.r.t. debugging.
94         * manager.c: Support for non-default stacksize for
95         LinuxThreads-allocated stacks;
96         don't use guard pages for stacks with default size, rely on
97         rlimit(RLIMIT_STACK) instead (it's cheaper).
98         * attr.c: Likewise.
99         * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
100         everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
101         * condvar.c: Likewise.
102         * internals.h: Likewise.
103         * restart.h: Likewise.
104         * signals.c: Likewise.
105         * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
107 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
109         * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
110         __pthread_mutexattr_[sg]ettype.  Add more weak aliases.
111         * Versions: Put __pthread_mutexattr_settype under version
112         GLIBC_2.0.  Don't export __pthread_mutexattr_setkind_np and
113         __pthread_mutexattr_gettype.
115 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
117         * sysdeps/pthread/bits/libc-lock.h: Make
118         __pthread_mutexattr_settype weak.  Don't make
119         __pthread_mutexattr_setkind_np weak.
121 1998-07-16 10:52  Ulrich Drepper  <drepper@cygnus.com>
123         * manager.c (pthread_handle_create): Check whether sched_setscheduler
124         call can succeed here.
126         * mutex.c: Define __pthread_mutexattr_settype and make
127         __pthread_mutexattr_setkind_np an alias.
128         Likewise for __pthread_mutexattr_gettype.
130 1998-07-15 11:00 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
132         * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
133         is root.
135 1998-07-14 19:38  Ulrich Drepper  <drepper@cygnus.com>
137         * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
139 1998-07-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
141         * Examples/ex6.c: Include <unistd.h> for usleep.
143 1998-06-13 11:04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
145         * Examples/ex4.c (main): Use exit, not pthread_exit.
147 1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>
149         * Versions: Add __pthread_mutexattr_gettype and
150         __pthread_mutexattr_settype.
151         * lockfile.c: Use __pthread_mutexattr_settype instead of
152         __pthread_mutexattr_setkind_np.
153         * mutex.c: Define __pthread_mutexattr_gettype and
154         __pthread_mutexattr_settype.
155         * weak.c: Likewise.
156         * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
157         __pthread_mutexattr_settype.
158         * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
159         Use __pthread_mutexattr_settype.
161 1998-07-08 22:26  Ulrich Drepper  <drepper@cygnus.com>
163         * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
164         * mutex.c: Define weak alias pthread_mutexattr_gettype and
165         pthread_mutexattr_settype.
166         * sysdeps/pthread/pthread.h: Declare these functions.
167         Move pthread_sigmask and pthread_kill declaration in separate header.
168         * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
170 1998-07-07 15:20  Ulrich Drepper  <drepper@cygnus.com>
172         * Makefile: Add rules to compile and run tests.
173         * Examples/ex1.c: Little changes to fix warnings.
174         * Examples/ex2.c: Likewise.
175         * Examples/ex3.c: Likewise.
176         * Examples/ex4.c: Likewise.
177         * Examples/ex5.c: Likewise.
178         * Examples/ex6.c: New file.
180 1998-07-05 11:54  Ulrich Drepper  <drepper@cygnus.com>
182         * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
184 1998-07-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
186         * attr.c: Include <string.h>.
188 1998-06-30 11:47  Ulrich Drepper  <drepper@cygnus.com>
190         * attr.c: Include errno.h.  Use memcpy to copy sched_param.
191         * internals.h: Include limits.h.
192         * manager.c: Use memcpy to copy sched_param.
193         * ptfork.c: Include errno.h.
194         * pthread.c: Likewise.
195         * semaphore.c: Likewise.
196         * specific.c: Likewise.
197         * spinlock.h: Likewise.
198         * sysdeps/pthread/pthread.h: Include only allowed headers.  Move
199         type definition to ...
200         * sysdeps/pthread/bits/pthreadtypes.h: ...here.  New file.
202 1998-06-29 12:34  Ulrich Drepper  <drepper@cygnus.com>
204         * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
206         * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
207         as macros as demanded in POSIX.1, Annex C.
209 1998-06-29 12:29  Ulrich Drepper  <drepper@cygnus.com>
211         * internals.h (struct pthread_request): For free use pthread_t
212         instead of pthread_descr.
213         * join.c (pthread_join): Pass thread_id, not th to manager.
214         (pthread_detach): Likewise.
215         * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
216         (pthread_exited): Remove detached queue code.
217         (pthread_handle_free): Expect thread ID parameter and use it to
218         validate the thread decsriptor.  Don't use detached queue.
219         Patches by Xavier Leroy.
221 1998-06-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
223         * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
224         _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
225         __pthread_atfork, __pthread_key_create, __pthread_once.
226         * internals.h: Doc fix.
227         * pthread.c (__pthread_initialize): Define again.
229 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
231         * manager.c (pthread_exited): If thread is not detached put it on
232         special list.
233         (pthread_handle_free): If thread is not on list with living threads
234         search on list with detached threads.
236         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
237         for new definition of pthread_rwlock_t.
239         * spinlock.c: Correct test whether to compile
240         __pthread_compare_and_swap or not.
242 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
244         * attr.c: Finish user stack support.  Change locking code to be safe
245         in situations with different priorities.
246         * cancel.c: Likewise.
247         * condvar.c: Likewise.
248         * internals.h: Likewise.
249         * join.c: Likewise.
250         * manager.c: Likewise.
251         * mutex.c: Likewise.
252         * pthread.c: Likewise.
253         * ptlongjmp.c: Likewise.
254         * queue.h: Likewise.
255         * rwlock.c: Likewise.
256         * semaphore.c: Likewise.
257         * semaphore.h: Likewise.
258         * signals.c: Likewise.
259         * spinlock.c: Likewise.
260         * spinlock.h: Likewise.
261         * sysdeps/pthread/pthread.h: Likewise.
262         Patches by Xavier Leroy.
264         * sysdeps/i386/i686/pt-machine.h: New file.
266 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
268         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
269         [sg]et_stackaddr prototypes always available.
271         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
272         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
274 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
276         * manager.c (pthread_free): Undo patch from 980430.
277         Reported by David Wragg <dpw@doc.ic.ac.uk>.
279 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
281         * manager.c: Define __pthread_manager_adjust_prio and use it to
282         increase priority when needed.
283         * internals.h: Add prototype for __pthread_manager_adjust_prio.
284         * mutex.c: Optimize mutexes to wake up only one thread.
285         * pthread.c: Move PID of manager for global variable in structure
286         element.
287         Patches by Xavier Leroy.
289 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
291         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
293 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
295         * attr.c: Correct typo.
297 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
299         * manager.c (pthread_free): Unmap guard before the stack.
300         Patch by Matthias Urlichs.
302 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
304         * manager.c (pthread_free): Detect already free child.
305         Patch by Xavier Leroy, reported by Matthias Urlichs.
307 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
309         * Makefile (linuxthreads-version): Renamed back from
310         libpthread-version.
312 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
314         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
315         __libc_longjmp.
317 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
319         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
320         * internals.h: Add definitions for new spinlock implementation.
321         * ptlongjmp.c: New file.
322         * spinlock.c: New file.
323         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
324         new function __pthread_acquire to prevent deadlocks with thread
325         with different priorities.
326         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
328 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
330         * manager.c (__pthread_manager): Reduce first argument to select
331         to include just the needed file descriptor.
333 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
335         * manager.c: Fix last patch which caused core dumps.
337         * pthread.c: Correctly handle missing SIGRTMIN.
339 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
341         * libpthread.map: Add __libc_internal_tsd_get and
342         __libc_internal_tsd_set.  Add missing cancelable functions. Export
343         libc internal versions of the cancelable functions.
345 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
347         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
349 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
351         * attr.c: Implement pthread_attr_[gs]etguardsize,
352         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
353         Change pthread_attr_init to have two interfaces.
354         * internals.h (struct _pthread_descr_struct): Add new fields for
355         above functions.
356         * libpthread.map: Add names in GLIBC_2.1 section.
357         * manager.c (pthread_handle_create): Implement guardsize and
358         user stack.
359         (pthread_free): Likewise.
360         * pthread.c (pthread_create): Add new interface for changed
361         pthread_attr_t.
362         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
363         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
364         PTHREAD_STACK_MIN.
366 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
368         * manager.c: Enable resetting of the thread scheduling policy
369         to SCHED_OTHER when the parent thread has a different one.
371 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
373         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
374         _POSIX_ASYNCHRONOUS_IO.
376         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
377         mutexes.
378         * mutex.c: Implement new mutex types.
380         * internals.h: Include <signal.h>.
382         * libpthread.map: Add __erno_location and __h_errno_location.
384         * errno.c: Return pointer to variable actually in use.  This might
385         not be the one in the thread structure.
386         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
387         and p_h_errnop.
388         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
389         of manager thread structure.
390         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
391         thread.
392         * pthread.c: Adapt initializer for thread structures.
393         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
394         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
395         current thread to global variables.
397 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
399         * rwlock.c: New file.
400         * Makefile (libpthread-routines): Add rwlock.
401         * sysdeps/pthread/pthread.h: Define data structures and declare
402         functions.
403         * libpthread.map: Add new functions.
405 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
407         * sysdeps/arm/pt-machine.h: New file; add ARM support.
408         * sysdeps/arm/Implies: likewise.
409         * README: Document it.
411 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
413         * signals.c: Remove unneeded initializer for sigwaited, saving a
414         warning.
416 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
418         * semaphore.c (sem_init): Set sem_spinlock only if available.
420 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
422         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
423         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
425         * Makefile: Update from LinuxThreads 0.7.
426         * internals.h. Likewise.
427         * manager.c: Likewise.
428         * mutex.c: Likewise.
429         * pthread.c: Likewise.
430         * signals.c: Likewise.
431         * specific.c: Likewise.
432         * Examples/ex3.c: Likewise.
434 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
436         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
437         open.
439 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
441         * wrapsyscall.c: Add socket functions which are also cancelation
442         points.
444 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
446         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
447         New functions for fast thread specific data within libc.
449         * internals.h: Add new array p_libc_specific to struct
450         _pthread_descr_struct.
452         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
454 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
456         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
457         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
459 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
461         * internals.h (struct _pthread_descr_struct): Add definitions for
462         two-level specific key handling.
463         * manager.c (pthread_handle_create): Initialize specific memory array.
464         * specific.c: Implement two-level key handling.
465         * weaks.c: Don't provide dummy key handling.
466         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
467         Add definition of __libc_key_t.
468         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
469         as 1024.
470         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
471         PTHREAD_DESTRUCTOR_ITERATIONS.
473         * manager.c (pthread_handle_create): Compare mmap result with
474         MAP_FAILED.
476         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
477         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
479 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
481         sysdeps/sparc -> sysdeps/sparc/sparc32
482         sysdeps/sparc64 -> sysdeps/sparc/sparc64
484         * internals.h: Change definition of THREAD_SELF to be an expression,
485         not a statement that did a return.
486         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
487         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
488         Follow Solaris and use a "system reserved" register (%g6) to hold
489         the thread descriptor.
490         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
492 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
494         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
495         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
496         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
498         * semaphore.c: Include spinlock.h only when needed.
500         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
501         keys for entries not in use.
503         * weaks.c: Implement key handling functions for real.
505 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
507         Initial sparc64-linux support:
508         * linuxthreads/sysdeps/sparc64/Implies: New file.
509         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
511 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
513         * semaphore.c: Include spinlock.h at correct place.
514         Patch by HJ Lu.
516 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
518         The Great Bit File Move:
519         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
520         * sysdeps/powerpc/semaphorebits.h: Likewise.
521         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
522         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
523         * sysdeps/pthread/libc-lock.h: -> bits/
524         * sysdeps/pthread/stdio-lock.h: Likewise.
525         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
526         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
527         * semaphore.h: Likewise.
528         * sysdeps/pthread/pthread.h: Likewise.
530         * lockfile.c: <foo.h> -> <bits/foo.h>.
531         * semaphore.h: Likewise.
533         * Makefile: (headers): foo.h -> bits/foo.h.
534         * sysdeps/pthread/Makefile: Likewise.
536 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
538         * semaphore.c (sem_init): Set sem_spinlock only if available.
540         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
541         asm constraints.
543 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
545         Update from LinuxThreads 0.6.
547         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
548         and __sched_get_priority_min instead of names without `__'.
550         * manager.c: Rewrite large parts to implement opaque pthread_t.
552         * cancel.c: Adapt for opaque pthread_t type.
553         * condvar.c: Likewise.
554         * errno.c: Likewise.
555         * join.c: Likewise.
556         * mutex.c: Likewise.
557         * pthread.c: Likewise.
558         * signals.c: Likewise.
559         * specific.c: Likewise.
560         * restart.h: Likewise.
561         * queue.h: Likewise.
562         * Examples/ex3.c: Likewise.
563         * Examples/ex4.c: Likewise.
564         * sysdeps/pthread/pthread.h: Likewise.
566         * pthread.c: Accumulate time for all threads in thread manager.
568         * semaphore.c: Implement fallback implementation for architectures
569         sometimes missing compare-exchange operations.
571         * cancel.c (pthread_cancel): Validate handle argument.
572         * join.c (pthread_join): Likewise.
573         (pthread_detach): Likewise.
574         * signals.c (pthread_kill): Likewise.
576         * spinlock.h (acquire): Use __sched_yield not sched_yield.
578         * queue.h (enqueue): Enqueue thread according to priority.
580         * internals.c (struct pthread_start_args): New struct for passing
581         args to cloning function.
582         (struct _pthread): Rename to _pthread_descr_struct and adapt for
583         opaque pthread_t.
585         * Examples/Makefile (clean): Pass -f option to rm.
587         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
588         and define TEST_FOR_COMPARE_AND_SWAP.
589         * sysdeps/i386/i486/pt-machine.h: Removed.
591         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
592         to 1024.
594 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
596         * restart.h (suspend): Clear p_signal before suspending.
597         (suspend_with_cancellation): Likewise.
598         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
600         * weaks.c: Make __pthread_key_create return 1.
601         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
602         __libc_getspecific, __libc_setspecific, and __libc_key_t.
603         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
604         using libio.
606 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
608         * sysdeps/sparc/pt-machine (RELEASE): Fix.
610 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
612         * sysdeps/powerpc/Implies: Added.
613         * sysdeps/powerpc/pt-machine.h: Added.
614         * sysdeps/powerpc/semaphorebits.h: Added.
616 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
618         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
619         initializer.
620         (__pthread_manager_thread): Likewise.
621         Reported by Andreas Jaeger.
623 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
625         Since sigset_t no longer fits in a register, we can't pass in the
626         thread's initial mask so easily.  Take this opportunity to simplify
627         the clone implementation by only accepting a single void* argument.
629         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
630         in the thread struct instead of as arguments through clone.
631         (pthread_start_thread): Look for them there.
632         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
633         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
634         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
635         clone invocation.