Update.
[glibc.git] / linuxthreads / ChangeLog
blob32b015970184fc3ce4cbf0484dca21241f0455d8
1 1998-11-29  Roland McGrath  <roland@baalperazim.frob.com>
3         * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
4         __libc_tsd_set): New macros for new interface.
5         * no-tsd.c: New file, provide uninitialized defns of
6         __libc_internal_tsd_get and __libc_internal_tsd_set.
7         * Makefile (routines): Add no-tsd.
9 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
11         * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
12         * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
13         __libc_internal_tsd_set): Move decls to ...
14         * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
15         declarations.
17         * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
18         __libc_internal_tsd_set): Make these pointers to functions, not
19         functions; remove #pragma weak decls for them.
20         * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
21         Define static functions and initialized pointers to them.
23 1998-11-18  Ulrich Drepper  <drepper@cygnus.com>
25         * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
26         (CFLAGS-specific.c): Likewise.
27         (CFLAGS-pthread.c): Likewise.
28         (CFLAGS-ptfork.c): Likewise.
29         (CFLAGS-cancel.c): Likewise.
30         * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
31         as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
33         * mutex.c (pthread_mutex_init): Define as strong symbol.
34         (pthread_mutex_destroy): Likewise.
35         (pthread_mutex_trylock): Likewise.
36         (pthread_mutex_lock): Likewise.
37         (pthread_mutex_unlock): Likewise.
38         (pthread_mutexattr_init): Likewise.
39         (pthread_mutexattr_destroy): Likewise.
40         (pthread_once): Likewise.
41         * ptfork.c (pthread_atfork): Likewise.
42         * specific.c (pthread_key_create): Likewise.
43         (pthread_setspecific): Likewise.
44         (pthread_getspecific): Likewise.
46 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
48         * linuxthreads.texi: Fix punctuation after xref.
50 1998-11-10  H.J. Lu  <hjl@gnu.org>
52         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
53         if it is defined in <linux/limits.h>.
55 1998-10-29 14:28  Ulrich Drepper  <drepper@cygnus.com>
57         * spinlock.h (__pthread_trylock): Define inline.
58         (__pthread_lock): Add extra parameter to declaration.  Declare
59         using internal_function.
60         (__pthread_unlock): Declare using internal_function.
61         * spinlock.c (__pthread_lock): Add new parameter.  Use it instead
62         of local variable self.  Avoid recomputing self.  Define using
63         internal_function.
64         (__pthread_trylock): Remove.
65         (__pthread_unlock): Define using internal_function.
66         * cancel.c: Adjust for __pthread_lock interface change.  Use already
67         computed self value is possible.
68         * condvar.c: Likewise.
69         * join.c: Likewise.
70         * manager.c: Likewise.
71         * mutex.c: Likewise.
72         * pthread.c: Likewise.
73         * rwlock.c: Likewise.
74         * semaphore.c: Likewise.
75         * signals.c: Likewise.
77 1998-10-27 13:46  Ulrich Drepper  <drepper@cygnus.com>
79         * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
80         __ to field names of the struct.
81         * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
82         Likewise.
83         (pthread_attr_t): Likewise.
84         (pthread_cond_t): Likewise.
85         (pthread_condattr_t): Likewise.
86         (pthread_mutex_t): Likewise.
87         (pthread_mutexattr_t): Likewise.
88         (pthread_rwlock_t): Likewise.
89         (pthread_rwlockattr_t): Likewise.
90         * attr.c: Adjust for pthread.h and pthreadtypes.h change.
91         * cancel.c: Likewise.
92         * condvar.c: Likewise.
93         * manager.c: Likewise.
94         * mutex.c: Likewise.
95         * pthread.c: Likewise.
96         * ptlongjmp.c: Likewise.
97         * rwlock.c: Likewise.
98         * spinlock.c: Likewise.
100 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
102         * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
103         also with PT_EI.
105         * sysdeps/i386/i686/pt-machine.h: Remove unused inline
106         definitions.
108         * Makefile (libpthread-routines): Add pt-machine.
109         * pt-machine.c: New file.
110         * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
111         yet defined.  Use PT_EI in extern inline definitions.
112         * sysdeps/arm/pt-machine.h: Likewise.
113         * sysdeps/i386/pt-machine.h: Likewise.
114         * sysdeps/i386/i686/pt-machine.h: Likewise.
115         * sysdeps/m68k/pt-machine.h: Likewise.
116         * sysdeps/mips/pt-machine.h: Likewise.
117         * sysdeps/powerpc/pt-machine.h: Likewise.
118         * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
119         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
121 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
123         * semaphore.h: Include <sys/types.h> so that _pthread_descr
124         is declared.
126 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
128         * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
129         argument.
130         * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
132 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
134         * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
135         multiple inclusion guard.
137 1998-09-02 11:08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
139         * signals.c (sigaction): Check that sig is less than NSIG to avoid
140         array index overflow.
142 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
144         * sysdeps/pthread/semaphore.h: New file.
146 1998-09-06 09:08  Ulrich Drepper  <drepper@cygnus.com>
148         * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
149         _LIBC_TSD_KEY_DL_ERROR.
151 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
153         * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
154         * sysdeps/i386/pt-machine.h: Likewise.
155         Suggested by Roland McGrath.
157 1998-08-28 13:58  Ulrich Drepper  <drepper@cygnus.com>
159         * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
160         access thread data with non-constant offsets.
161         * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
162         necessary.
164         * sysdeps/i386/useldt.h: Fix typo.  Add THREAD_GETMEM_NC and
165         THREAD_SETMEM_NC definitions.
167         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
168         THREAD_SETMEM_NC.
169         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
171 1998-08-26 15:46  Ulrich Drepper  <drepper@cygnus.com>
173         * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
174         not already defined.
175         (struct _pthread_descr_struct): Add p_self and p_nr field.
176         * manager.c (__pthread_handles): Define second element to point
177         to manager thread.
178         (__pthread_handles_num): Initialize to 2.
179         (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
180         (pthread_start_thread): Likewise.
181         (pthread_handle_create): Start search for free slot at entry 2.
182         Initialize new fields p_self and p_nr.
183         Call __clone with CLONE_PTRACE if available.
184         (pthread_free): Call FREE_THREAD_SELF if available.
185         * pthread.c (__pthread_initial_thread): Initialize new fields.
186         (__pthread_manager_thread): Likewise.
187         (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
189         * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
190         elements of the thread descriptor.
191         * condvar.c: Likewise.
192         * errno.c: Likewise.
193         * join.c: Likewise.
194         * manager.c: Likewise.
195         * pthread.c: Likewise.
196         * ptlongjmp.c: Likewise.
197         * semaphore.c: Likewise.
198         * signals.c: Likewise.
199         * specific.c: Likewise.
200         * spinlock.c: Likewise.
202         * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
204         * sysdeps/i386/useldt.h: New file.
205         * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
207         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
208         THREAD_SETMEM using __thread_self.
209         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
211 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
213         * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
214         turned out that we didn't need to queue after all.
216 1998-08-22  Geoff Keating  <geoffk@ozemail.com.au>
218         * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
219         and wastes space; correct types.
221 1998-08-08 11:18  H.J. Lu  <hjl@gnu.org>
223         * signals.c (sigaction): Handle NULL argument.
225 1998-08-04  Ulrich Drepper  <drepper@cygnus.com>
227         * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
228         of sigset_t.
230 1998-08-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
232         * Makefile (linuxthreads-version): Extract correct number from
233         Banner.
235 1998-07-29  Xavier Leroy  <Xavier.Leroy@inria.fr>
237         * Banner: Bump version number to 0.8
238         * FAQ.html: Many updates, in particular w.r.t. debugging.
239         * manager.c: Support for non-default stacksize for
240         LinuxThreads-allocated stacks;
241         don't use guard pages for stacks with default size, rely on
242         rlimit(RLIMIT_STACK) instead (it's cheaper).
243         * attr.c: Likewise.
244         * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
245         everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
246         * condvar.c: Likewise.
247         * internals.h: Likewise.
248         * restart.h: Likewise.
249         * signals.c: Likewise.
250         * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
252 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
254         * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
255         __pthread_mutexattr_[sg]ettype.  Add more weak aliases.
256         * Versions: Put __pthread_mutexattr_settype under version
257         GLIBC_2.0.  Don't export __pthread_mutexattr_setkind_np and
258         __pthread_mutexattr_gettype.
260 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
262         * sysdeps/pthread/bits/libc-lock.h: Make
263         __pthread_mutexattr_settype weak.  Don't make
264         __pthread_mutexattr_setkind_np weak.
266 1998-07-16 10:52  Ulrich Drepper  <drepper@cygnus.com>
268         * manager.c (pthread_handle_create): Check whether sched_setscheduler
269         call can succeed here.
271         * mutex.c: Define __pthread_mutexattr_settype and make
272         __pthread_mutexattr_setkind_np an alias.
273         Likewise for __pthread_mutexattr_gettype.
275 1998-07-15 11:00 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
277         * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
278         is root.
280 1998-07-14 19:38  Ulrich Drepper  <drepper@cygnus.com>
282         * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
284 1998-07-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
286         * Examples/ex6.c: Include <unistd.h> for usleep.
288 1998-06-13 11:04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
290         * Examples/ex4.c (main): Use exit, not pthread_exit.
292 1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>
294         * Versions: Add __pthread_mutexattr_gettype and
295         __pthread_mutexattr_settype.
296         * lockfile.c: Use __pthread_mutexattr_settype instead of
297         __pthread_mutexattr_setkind_np.
298         * mutex.c: Define __pthread_mutexattr_gettype and
299         __pthread_mutexattr_settype.
300         * weak.c: Likewise.
301         * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
302         __pthread_mutexattr_settype.
303         * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
304         Use __pthread_mutexattr_settype.
306 1998-07-08 22:26  Ulrich Drepper  <drepper@cygnus.com>
308         * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
309         * mutex.c: Define weak alias pthread_mutexattr_gettype and
310         pthread_mutexattr_settype.
311         * sysdeps/pthread/pthread.h: Declare these functions.
312         Move pthread_sigmask and pthread_kill declaration in separate header.
313         * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
315 1998-07-07 15:20  Ulrich Drepper  <drepper@cygnus.com>
317         * Makefile: Add rules to compile and run tests.
318         * Examples/ex1.c: Little changes to fix warnings.
319         * Examples/ex2.c: Likewise.
320         * Examples/ex3.c: Likewise.
321         * Examples/ex4.c: Likewise.
322         * Examples/ex5.c: Likewise.
323         * Examples/ex6.c: New file.
325 1998-07-05 11:54  Ulrich Drepper  <drepper@cygnus.com>
327         * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
329 1998-07-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
331         * attr.c: Include <string.h>.
333 1998-06-30 11:47  Ulrich Drepper  <drepper@cygnus.com>
335         * attr.c: Include errno.h.  Use memcpy to copy sched_param.
336         * internals.h: Include limits.h.
337         * manager.c: Use memcpy to copy sched_param.
338         * ptfork.c: Include errno.h.
339         * pthread.c: Likewise.
340         * semaphore.c: Likewise.
341         * specific.c: Likewise.
342         * spinlock.h: Likewise.
343         * sysdeps/pthread/pthread.h: Include only allowed headers.  Move
344         type definition to ...
345         * sysdeps/pthread/bits/pthreadtypes.h: ...here.  New file.
347 1998-06-29 12:34  Ulrich Drepper  <drepper@cygnus.com>
349         * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
351         * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
352         as macros as demanded in POSIX.1, Annex C.
354 1998-06-29 12:29  Ulrich Drepper  <drepper@cygnus.com>
356         * internals.h (struct pthread_request): For free use pthread_t
357         instead of pthread_descr.
358         * join.c (pthread_join): Pass thread_id, not th to manager.
359         (pthread_detach): Likewise.
360         * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
361         (pthread_exited): Remove detached queue code.
362         (pthread_handle_free): Expect thread ID parameter and use it to
363         validate the thread decsriptor.  Don't use detached queue.
364         Patches by Xavier Leroy.
366 1998-06-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
368         * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
369         _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
370         __pthread_atfork, __pthread_key_create, __pthread_once.
371         * internals.h: Doc fix.
372         * pthread.c (__pthread_initialize): Define again.
374 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
376         * manager.c (pthread_exited): If thread is not detached put it on
377         special list.
378         (pthread_handle_free): If thread is not on list with living threads
379         search on list with detached threads.
381         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
382         for new definition of pthread_rwlock_t.
384         * spinlock.c: Correct test whether to compile
385         __pthread_compare_and_swap or not.
387 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
389         * attr.c: Finish user stack support.  Change locking code to be safe
390         in situations with different priorities.
391         * cancel.c: Likewise.
392         * condvar.c: Likewise.
393         * internals.h: Likewise.
394         * join.c: Likewise.
395         * manager.c: Likewise.
396         * mutex.c: Likewise.
397         * pthread.c: Likewise.
398         * ptlongjmp.c: Likewise.
399         * queue.h: Likewise.
400         * rwlock.c: Likewise.
401         * semaphore.c: Likewise.
402         * semaphore.h: Likewise.
403         * signals.c: Likewise.
404         * spinlock.c: Likewise.
405         * spinlock.h: Likewise.
406         * sysdeps/pthread/pthread.h: Likewise.
407         Patches by Xavier Leroy.
409         * sysdeps/i386/i686/pt-machine.h: New file.
411 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
413         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
414         [sg]et_stackaddr prototypes always available.
416         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
417         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
419 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
421         * manager.c (pthread_free): Undo patch from 980430.
422         Reported by David Wragg <dpw@doc.ic.ac.uk>.
424 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
426         * manager.c: Define __pthread_manager_adjust_prio and use it to
427         increase priority when needed.
428         * internals.h: Add prototype for __pthread_manager_adjust_prio.
429         * mutex.c: Optimize mutexes to wake up only one thread.
430         * pthread.c: Move PID of manager for global variable in structure
431         element.
432         Patches by Xavier Leroy.
434 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
436         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
438 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
440         * attr.c: Correct typo.
442 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
444         * manager.c (pthread_free): Unmap guard before the stack.
445         Patch by Matthias Urlichs.
447 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
449         * manager.c (pthread_free): Detect already free child.
450         Patch by Xavier Leroy, reported by Matthias Urlichs.
452 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
454         * Makefile (linuxthreads-version): Renamed back from
455         libpthread-version.
457 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
459         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
460         __libc_longjmp.
462 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
464         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
465         * internals.h: Add definitions for new spinlock implementation.
466         * ptlongjmp.c: New file.
467         * spinlock.c: New file.
468         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
469         new function __pthread_acquire to prevent deadlocks with thread
470         with different priorities.
471         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
473 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
475         * manager.c (__pthread_manager): Reduce first argument to select
476         to include just the needed file descriptor.
478 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
480         * manager.c: Fix last patch which caused core dumps.
482         * pthread.c: Correctly handle missing SIGRTMIN.
484 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
486         * libpthread.map: Add __libc_internal_tsd_get and
487         __libc_internal_tsd_set.  Add missing cancelable functions. Export
488         libc internal versions of the cancelable functions.
490 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
492         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
494 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
496         * attr.c: Implement pthread_attr_[gs]etguardsize,
497         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
498         Change pthread_attr_init to have two interfaces.
499         * internals.h (struct _pthread_descr_struct): Add new fields for
500         above functions.
501         * libpthread.map: Add names in GLIBC_2.1 section.
502         * manager.c (pthread_handle_create): Implement guardsize and
503         user stack.
504         (pthread_free): Likewise.
505         * pthread.c (pthread_create): Add new interface for changed
506         pthread_attr_t.
507         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
508         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
509         PTHREAD_STACK_MIN.
511 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
513         * manager.c: Enable resetting of the thread scheduling policy
514         to SCHED_OTHER when the parent thread has a different one.
516 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
518         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
519         _POSIX_ASYNCHRONOUS_IO.
521         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
522         mutexes.
523         * mutex.c: Implement new mutex types.
525         * internals.h: Include <signal.h>.
527         * libpthread.map: Add __erno_location and __h_errno_location.
529         * errno.c: Return pointer to variable actually in use.  This might
530         not be the one in the thread structure.
531         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
532         and p_h_errnop.
533         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
534         of manager thread structure.
535         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
536         thread.
537         * pthread.c: Adapt initializer for thread structures.
538         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
539         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
540         current thread to global variables.
542 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
544         * rwlock.c: New file.
545         * Makefile (libpthread-routines): Add rwlock.
546         * sysdeps/pthread/pthread.h: Define data structures and declare
547         functions.
548         * libpthread.map: Add new functions.
550 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
552         * sysdeps/arm/pt-machine.h: New file; add ARM support.
553         * sysdeps/arm/Implies: likewise.
554         * README: Document it.
556 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
558         * signals.c: Remove unneeded initializer for sigwaited, saving a
559         warning.
561 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
563         * semaphore.c (sem_init): Set sem_spinlock only if available.
565 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
567         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
568         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
570         * Makefile: Update from LinuxThreads 0.7.
571         * internals.h. Likewise.
572         * manager.c: Likewise.
573         * mutex.c: Likewise.
574         * pthread.c: Likewise.
575         * signals.c: Likewise.
576         * specific.c: Likewise.
577         * Examples/ex3.c: Likewise.
579 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
581         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
582         open.
584 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
586         * wrapsyscall.c: Add socket functions which are also cancelation
587         points.
589 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
591         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
592         New functions for fast thread specific data within libc.
594         * internals.h: Add new array p_libc_specific to struct
595         _pthread_descr_struct.
597         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
599 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
601         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
602         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
604 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
606         * internals.h (struct _pthread_descr_struct): Add definitions for
607         two-level specific key handling.
608         * manager.c (pthread_handle_create): Initialize specific memory array.
609         * specific.c: Implement two-level key handling.
610         * weaks.c: Don't provide dummy key handling.
611         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
612         Add definition of __libc_key_t.
613         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
614         as 1024.
615         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
616         PTHREAD_DESTRUCTOR_ITERATIONS.
618         * manager.c (pthread_handle_create): Compare mmap result with
619         MAP_FAILED.
621         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
622         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
624 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
626         sysdeps/sparc -> sysdeps/sparc/sparc32
627         sysdeps/sparc64 -> sysdeps/sparc/sparc64
629         * internals.h: Change definition of THREAD_SELF to be an expression,
630         not a statement that did a return.
631         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
632         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
633         Follow Solaris and use a "system reserved" register (%g6) to hold
634         the thread descriptor.
635         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
637 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
639         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
640         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
641         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
643         * semaphore.c: Include spinlock.h only when needed.
645         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
646         keys for entries not in use.
648         * weaks.c: Implement key handling functions for real.
650 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
652         Initial sparc64-linux support:
653         * linuxthreads/sysdeps/sparc64/Implies: New file.
654         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
656 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
658         * semaphore.c: Include spinlock.h at correct place.
659         Patch by HJ Lu.
661 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
663         The Great Bit File Move:
664         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
665         * sysdeps/powerpc/semaphorebits.h: Likewise.
666         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
667         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
668         * sysdeps/pthread/libc-lock.h: -> bits/
669         * sysdeps/pthread/stdio-lock.h: Likewise.
670         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
671         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
672         * semaphore.h: Likewise.
673         * sysdeps/pthread/pthread.h: Likewise.
675         * lockfile.c: <foo.h> -> <bits/foo.h>.
676         * semaphore.h: Likewise.
678         * Makefile: (headers): foo.h -> bits/foo.h.
679         * sysdeps/pthread/Makefile: Likewise.
681 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
683         * semaphore.c (sem_init): Set sem_spinlock only if available.
685         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
686         asm constraints.
688 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
690         Update from LinuxThreads 0.6.
692         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
693         and __sched_get_priority_min instead of names without `__'.
695         * manager.c: Rewrite large parts to implement opaque pthread_t.
697         * cancel.c: Adapt for opaque pthread_t type.
698         * condvar.c: Likewise.
699         * errno.c: Likewise.
700         * join.c: Likewise.
701         * mutex.c: Likewise.
702         * pthread.c: Likewise.
703         * signals.c: Likewise.
704         * specific.c: Likewise.
705         * restart.h: Likewise.
706         * queue.h: Likewise.
707         * Examples/ex3.c: Likewise.
708         * Examples/ex4.c: Likewise.
709         * sysdeps/pthread/pthread.h: Likewise.
711         * pthread.c: Accumulate time for all threads in thread manager.
713         * semaphore.c: Implement fallback implementation for architectures
714         sometimes missing compare-exchange operations.
716         * cancel.c (pthread_cancel): Validate handle argument.
717         * join.c (pthread_join): Likewise.
718         (pthread_detach): Likewise.
719         * signals.c (pthread_kill): Likewise.
721         * spinlock.h (acquire): Use __sched_yield not sched_yield.
723         * queue.h (enqueue): Enqueue thread according to priority.
725         * internals.c (struct pthread_start_args): New struct for passing
726         args to cloning function.
727         (struct _pthread): Rename to _pthread_descr_struct and adapt for
728         opaque pthread_t.
730         * Examples/Makefile (clean): Pass -f option to rm.
732         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
733         and define TEST_FOR_COMPARE_AND_SWAP.
734         * sysdeps/i386/i486/pt-machine.h: Removed.
736         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
737         to 1024.
739 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
741         * restart.h (suspend): Clear p_signal before suspending.
742         (suspend_with_cancellation): Likewise.
743         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
745         * weaks.c: Make __pthread_key_create return 1.
746         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
747         __libc_getspecific, __libc_setspecific, and __libc_key_t.
748         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
749         using libio.
751 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
753         * sysdeps/sparc/pt-machine (RELEASE): Fix.
755 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
757         * sysdeps/powerpc/Implies: Added.
758         * sysdeps/powerpc/pt-machine.h: Added.
759         * sysdeps/powerpc/semaphorebits.h: Added.
761 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
763         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
764         initializer.
765         (__pthread_manager_thread): Likewise.
766         Reported by Andreas Jaeger.
768 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
770         Since sigset_t no longer fits in a register, we can't pass in the
771         thread's initial mask so easily.  Take this opportunity to simplify
772         the clone implementation by only accepting a single void* argument.
774         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
775         in the thread struct instead of as arguments through clone.
776         (pthread_start_thread): Look for them there.
777         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
778         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
779         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
780         clone invocation.