Update.
[glibc.git] / linuxthreads / ChangeLog
blob7df83c9a9a379f722c24de732c45e0502ce8ef81
1 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com> 
2  
3         * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr 
4         argument. 
5         * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise. 
6  
7 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu> 
8  
9         * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add 
10         multiple inclusion guard. 
12 1998-09-02 11:08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
14         * signals.c (sigaction): Check that sig is less than NSIG to avoid
15         array index overflow.
17 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
19         * sysdeps/pthread/semaphore.h: New file.
21 1998-09-06 09:08  Ulrich Drepper  <drepper@cygnus.com>
23         * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
24         _LIBC_TSD_KEY_DL_ERROR.
26 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
28         * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
29         * sysdeps/i386/pt-machine.h: Likewise.
30         Suggested by Roland McGrath.
32 1998-08-28 13:58  Ulrich Drepper  <drepper@cygnus.com>
34         * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
35         access thread data with non-constant offsets.
36         * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
37         necessary.
39         * sysdeps/i386/useldt.h: Fix typo.  Add THREAD_GETMEM_NC and
40         THREAD_SETMEM_NC definitions.
42         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
43         THREAD_SETMEM_NC.
44         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
46 1998-08-26 15:46  Ulrich Drepper  <drepper@cygnus.com>
48         * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
49         not already defined.
50         (struct _pthread_descr_struct): Add p_self and p_nr field.
51         * manager.c (__pthread_handles): Define second element to point
52         to manager thread.
53         (__pthread_handles_num): Initialize to 2.
54         (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
55         (pthread_start_thread): Likewise.
56         (pthread_handle_create): Start search for free slot at entry 2.
57         Initialize new fields p_self and p_nr.
58         Call __clone with CLONE_PTRACE if available.
59         (pthread_free): Call FREE_THREAD_SELF if available.
60         * pthread.c (__pthread_initial_thread): Initialize new fields.
61         (__pthread_manager_thread): Likewise.
62         (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
64         * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
65         elements of the thread descriptor.
66         * condvar.c: Likewise.
67         * errno.c: Likewise.
68         * join.c: Likewise.
69         * manager.c: Likewise.
70         * pthread.c: Likewise.
71         * ptlongjmp.c: Likewise.
72         * semaphore.c: Likewise.
73         * signals.c: Likewise.
74         * specific.c: Likewise.
75         * spinlock.c: Likewise.
77         * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
79         * sysdeps/i386/useldt.h: New file.
80         * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
82         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
83         THREAD_SETMEM using __thread_self.
84         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
86 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
88         * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
89         turned out that we didn't need to queue after all.
91 1998-08-22  Geoff Keating  <geoffk@ozemail.com.au>
93         * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
94         and wastes space; correct types.
96 1998-08-08 11:18  H.J. Lu  <hjl@gnu.org>
98         * signals.c (sigaction): Handle NULL argument.
100 1998-08-04  Ulrich Drepper  <drepper@cygnus.com>
102         * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
103         of sigset_t.
105 1998-08-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
107         * Makefile (linuxthreads-version): Extract correct number from
108         Banner.
110 1998-07-29  Xavier Leroy  <Xavier.Leroy@inria.fr>
112         * Banner: Bump version number to 0.8
113         * FAQ.html: Many updates, in particular w.r.t. debugging.
114         * manager.c: Support for non-default stacksize for
115         LinuxThreads-allocated stacks;
116         don't use guard pages for stacks with default size, rely on
117         rlimit(RLIMIT_STACK) instead (it's cheaper).
118         * attr.c: Likewise.
119         * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
120         everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
121         * condvar.c: Likewise.
122         * internals.h: Likewise.
123         * restart.h: Likewise.
124         * signals.c: Likewise.
125         * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
127 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
129         * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
130         __pthread_mutexattr_[sg]ettype.  Add more weak aliases.
131         * Versions: Put __pthread_mutexattr_settype under version
132         GLIBC_2.0.  Don't export __pthread_mutexattr_setkind_np and
133         __pthread_mutexattr_gettype.
135 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
137         * sysdeps/pthread/bits/libc-lock.h: Make
138         __pthread_mutexattr_settype weak.  Don't make
139         __pthread_mutexattr_setkind_np weak.
141 1998-07-16 10:52  Ulrich Drepper  <drepper@cygnus.com>
143         * manager.c (pthread_handle_create): Check whether sched_setscheduler
144         call can succeed here.
146         * mutex.c: Define __pthread_mutexattr_settype and make
147         __pthread_mutexattr_setkind_np an alias.
148         Likewise for __pthread_mutexattr_gettype.
150 1998-07-15 11:00 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
152         * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
153         is root.
155 1998-07-14 19:38  Ulrich Drepper  <drepper@cygnus.com>
157         * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
159 1998-07-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
161         * Examples/ex6.c: Include <unistd.h> for usleep.
163 1998-06-13 11:04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
165         * Examples/ex4.c (main): Use exit, not pthread_exit.
167 1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>
169         * Versions: Add __pthread_mutexattr_gettype and
170         __pthread_mutexattr_settype.
171         * lockfile.c: Use __pthread_mutexattr_settype instead of
172         __pthread_mutexattr_setkind_np.
173         * mutex.c: Define __pthread_mutexattr_gettype and
174         __pthread_mutexattr_settype.
175         * weak.c: Likewise.
176         * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
177         __pthread_mutexattr_settype.
178         * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
179         Use __pthread_mutexattr_settype.
181 1998-07-08 22:26  Ulrich Drepper  <drepper@cygnus.com>
183         * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
184         * mutex.c: Define weak alias pthread_mutexattr_gettype and
185         pthread_mutexattr_settype.
186         * sysdeps/pthread/pthread.h: Declare these functions.
187         Move pthread_sigmask and pthread_kill declaration in separate header.
188         * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
190 1998-07-07 15:20  Ulrich Drepper  <drepper@cygnus.com>
192         * Makefile: Add rules to compile and run tests.
193         * Examples/ex1.c: Little changes to fix warnings.
194         * Examples/ex2.c: Likewise.
195         * Examples/ex3.c: Likewise.
196         * Examples/ex4.c: Likewise.
197         * Examples/ex5.c: Likewise.
198         * Examples/ex6.c: New file.
200 1998-07-05 11:54  Ulrich Drepper  <drepper@cygnus.com>
202         * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
204 1998-07-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
206         * attr.c: Include <string.h>.
208 1998-06-30 11:47  Ulrich Drepper  <drepper@cygnus.com>
210         * attr.c: Include errno.h.  Use memcpy to copy sched_param.
211         * internals.h: Include limits.h.
212         * manager.c: Use memcpy to copy sched_param.
213         * ptfork.c: Include errno.h.
214         * pthread.c: Likewise.
215         * semaphore.c: Likewise.
216         * specific.c: Likewise.
217         * spinlock.h: Likewise.
218         * sysdeps/pthread/pthread.h: Include only allowed headers.  Move
219         type definition to ...
220         * sysdeps/pthread/bits/pthreadtypes.h: ...here.  New file.
222 1998-06-29 12:34  Ulrich Drepper  <drepper@cygnus.com>
224         * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
226         * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
227         as macros as demanded in POSIX.1, Annex C.
229 1998-06-29 12:29  Ulrich Drepper  <drepper@cygnus.com>
231         * internals.h (struct pthread_request): For free use pthread_t
232         instead of pthread_descr.
233         * join.c (pthread_join): Pass thread_id, not th to manager.
234         (pthread_detach): Likewise.
235         * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
236         (pthread_exited): Remove detached queue code.
237         (pthread_handle_free): Expect thread ID parameter and use it to
238         validate the thread decsriptor.  Don't use detached queue.
239         Patches by Xavier Leroy.
241 1998-06-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
243         * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
244         _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
245         __pthread_atfork, __pthread_key_create, __pthread_once.
246         * internals.h: Doc fix.
247         * pthread.c (__pthread_initialize): Define again.
249 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
251         * manager.c (pthread_exited): If thread is not detached put it on
252         special list.
253         (pthread_handle_free): If thread is not on list with living threads
254         search on list with detached threads.
256         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
257         for new definition of pthread_rwlock_t.
259         * spinlock.c: Correct test whether to compile
260         __pthread_compare_and_swap or not.
262 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
264         * attr.c: Finish user stack support.  Change locking code to be safe
265         in situations with different priorities.
266         * cancel.c: Likewise.
267         * condvar.c: Likewise.
268         * internals.h: Likewise.
269         * join.c: Likewise.
270         * manager.c: Likewise.
271         * mutex.c: Likewise.
272         * pthread.c: Likewise.
273         * ptlongjmp.c: Likewise.
274         * queue.h: Likewise.
275         * rwlock.c: Likewise.
276         * semaphore.c: Likewise.
277         * semaphore.h: Likewise.
278         * signals.c: Likewise.
279         * spinlock.c: Likewise.
280         * spinlock.h: Likewise.
281         * sysdeps/pthread/pthread.h: Likewise.
282         Patches by Xavier Leroy.
284         * sysdeps/i386/i686/pt-machine.h: New file.
286 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
288         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
289         [sg]et_stackaddr prototypes always available.
291         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
292         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
294 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
296         * manager.c (pthread_free): Undo patch from 980430.
297         Reported by David Wragg <dpw@doc.ic.ac.uk>.
299 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
301         * manager.c: Define __pthread_manager_adjust_prio and use it to
302         increase priority when needed.
303         * internals.h: Add prototype for __pthread_manager_adjust_prio.
304         * mutex.c: Optimize mutexes to wake up only one thread.
305         * pthread.c: Move PID of manager for global variable in structure
306         element.
307         Patches by Xavier Leroy.
309 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
311         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
313 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
315         * attr.c: Correct typo.
317 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
319         * manager.c (pthread_free): Unmap guard before the stack.
320         Patch by Matthias Urlichs.
322 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
324         * manager.c (pthread_free): Detect already free child.
325         Patch by Xavier Leroy, reported by Matthias Urlichs.
327 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
329         * Makefile (linuxthreads-version): Renamed back from
330         libpthread-version.
332 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
334         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
335         __libc_longjmp.
337 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
339         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
340         * internals.h: Add definitions for new spinlock implementation.
341         * ptlongjmp.c: New file.
342         * spinlock.c: New file.
343         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
344         new function __pthread_acquire to prevent deadlocks with thread
345         with different priorities.
346         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
348 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
350         * manager.c (__pthread_manager): Reduce first argument to select
351         to include just the needed file descriptor.
353 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
355         * manager.c: Fix last patch which caused core dumps.
357         * pthread.c: Correctly handle missing SIGRTMIN.
359 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
361         * libpthread.map: Add __libc_internal_tsd_get and
362         __libc_internal_tsd_set.  Add missing cancelable functions. Export
363         libc internal versions of the cancelable functions.
365 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
367         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
369 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
371         * attr.c: Implement pthread_attr_[gs]etguardsize,
372         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
373         Change pthread_attr_init to have two interfaces.
374         * internals.h (struct _pthread_descr_struct): Add new fields for
375         above functions.
376         * libpthread.map: Add names in GLIBC_2.1 section.
377         * manager.c (pthread_handle_create): Implement guardsize and
378         user stack.
379         (pthread_free): Likewise.
380         * pthread.c (pthread_create): Add new interface for changed
381         pthread_attr_t.
382         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
383         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
384         PTHREAD_STACK_MIN.
386 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
388         * manager.c: Enable resetting of the thread scheduling policy
389         to SCHED_OTHER when the parent thread has a different one.
391 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
393         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
394         _POSIX_ASYNCHRONOUS_IO.
396         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
397         mutexes.
398         * mutex.c: Implement new mutex types.
400         * internals.h: Include <signal.h>.
402         * libpthread.map: Add __erno_location and __h_errno_location.
404         * errno.c: Return pointer to variable actually in use.  This might
405         not be the one in the thread structure.
406         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
407         and p_h_errnop.
408         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
409         of manager thread structure.
410         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
411         thread.
412         * pthread.c: Adapt initializer for thread structures.
413         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
414         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
415         current thread to global variables.
417 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
419         * rwlock.c: New file.
420         * Makefile (libpthread-routines): Add rwlock.
421         * sysdeps/pthread/pthread.h: Define data structures and declare
422         functions.
423         * libpthread.map: Add new functions.
425 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
427         * sysdeps/arm/pt-machine.h: New file; add ARM support.
428         * sysdeps/arm/Implies: likewise.
429         * README: Document it.
431 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
433         * signals.c: Remove unneeded initializer for sigwaited, saving a
434         warning.
436 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
438         * semaphore.c (sem_init): Set sem_spinlock only if available.
440 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
442         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
443         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
445         * Makefile: Update from LinuxThreads 0.7.
446         * internals.h. Likewise.
447         * manager.c: Likewise.
448         * mutex.c: Likewise.
449         * pthread.c: Likewise.
450         * signals.c: Likewise.
451         * specific.c: Likewise.
452         * Examples/ex3.c: Likewise.
454 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
456         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
457         open.
459 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
461         * wrapsyscall.c: Add socket functions which are also cancelation
462         points.
464 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
466         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
467         New functions for fast thread specific data within libc.
469         * internals.h: Add new array p_libc_specific to struct
470         _pthread_descr_struct.
472         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
474 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
476         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
477         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
479 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
481         * internals.h (struct _pthread_descr_struct): Add definitions for
482         two-level specific key handling.
483         * manager.c (pthread_handle_create): Initialize specific memory array.
484         * specific.c: Implement two-level key handling.
485         * weaks.c: Don't provide dummy key handling.
486         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
487         Add definition of __libc_key_t.
488         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
489         as 1024.
490         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
491         PTHREAD_DESTRUCTOR_ITERATIONS.
493         * manager.c (pthread_handle_create): Compare mmap result with
494         MAP_FAILED.
496         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
497         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
499 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
501         sysdeps/sparc -> sysdeps/sparc/sparc32
502         sysdeps/sparc64 -> sysdeps/sparc/sparc64
504         * internals.h: Change definition of THREAD_SELF to be an expression,
505         not a statement that did a return.
506         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
507         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
508         Follow Solaris and use a "system reserved" register (%g6) to hold
509         the thread descriptor.
510         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
512 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
514         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
515         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
516         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
518         * semaphore.c: Include spinlock.h only when needed.
520         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
521         keys for entries not in use.
523         * weaks.c: Implement key handling functions for real.
525 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
527         Initial sparc64-linux support:
528         * linuxthreads/sysdeps/sparc64/Implies: New file.
529         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
531 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
533         * semaphore.c: Include spinlock.h at correct place.
534         Patch by HJ Lu.
536 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
538         The Great Bit File Move:
539         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
540         * sysdeps/powerpc/semaphorebits.h: Likewise.
541         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
542         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
543         * sysdeps/pthread/libc-lock.h: -> bits/
544         * sysdeps/pthread/stdio-lock.h: Likewise.
545         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
546         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
547         * semaphore.h: Likewise.
548         * sysdeps/pthread/pthread.h: Likewise.
550         * lockfile.c: <foo.h> -> <bits/foo.h>.
551         * semaphore.h: Likewise.
553         * Makefile: (headers): foo.h -> bits/foo.h.
554         * sysdeps/pthread/Makefile: Likewise.
556 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
558         * semaphore.c (sem_init): Set sem_spinlock only if available.
560         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
561         asm constraints.
563 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
565         Update from LinuxThreads 0.6.
567         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
568         and __sched_get_priority_min instead of names without `__'.
570         * manager.c: Rewrite large parts to implement opaque pthread_t.
572         * cancel.c: Adapt for opaque pthread_t type.
573         * condvar.c: Likewise.
574         * errno.c: Likewise.
575         * join.c: Likewise.
576         * mutex.c: Likewise.
577         * pthread.c: Likewise.
578         * signals.c: Likewise.
579         * specific.c: Likewise.
580         * restart.h: Likewise.
581         * queue.h: Likewise.
582         * Examples/ex3.c: Likewise.
583         * Examples/ex4.c: Likewise.
584         * sysdeps/pthread/pthread.h: Likewise.
586         * pthread.c: Accumulate time for all threads in thread manager.
588         * semaphore.c: Implement fallback implementation for architectures
589         sometimes missing compare-exchange operations.
591         * cancel.c (pthread_cancel): Validate handle argument.
592         * join.c (pthread_join): Likewise.
593         (pthread_detach): Likewise.
594         * signals.c (pthread_kill): Likewise.
596         * spinlock.h (acquire): Use __sched_yield not sched_yield.
598         * queue.h (enqueue): Enqueue thread according to priority.
600         * internals.c (struct pthread_start_args): New struct for passing
601         args to cloning function.
602         (struct _pthread): Rename to _pthread_descr_struct and adapt for
603         opaque pthread_t.
605         * Examples/Makefile (clean): Pass -f option to rm.
607         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
608         and define TEST_FOR_COMPARE_AND_SWAP.
609         * sysdeps/i386/i486/pt-machine.h: Removed.
611         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
612         to 1024.
614 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
616         * restart.h (suspend): Clear p_signal before suspending.
617         (suspend_with_cancellation): Likewise.
618         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
620         * weaks.c: Make __pthread_key_create return 1.
621         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
622         __libc_getspecific, __libc_setspecific, and __libc_key_t.
623         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
624         using libio.
626 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
628         * sysdeps/sparc/pt-machine (RELEASE): Fix.
630 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
632         * sysdeps/powerpc/Implies: Added.
633         * sysdeps/powerpc/pt-machine.h: Added.
634         * sysdeps/powerpc/semaphorebits.h: Added.
636 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
638         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
639         initializer.
640         (__pthread_manager_thread): Likewise.
641         Reported by Andreas Jaeger.
643 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
645         Since sigset_t no longer fits in a register, we can't pass in the
646         thread's initial mask so easily.  Take this opportunity to simplify
647         the clone implementation by only accepting a single void* argument.
649         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
650         in the thread struct instead of as arguments through clone.
651         (pthread_start_thread): Look for them there.
652         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
653         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
654         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
655         clone invocation.