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