Update.
[glibc.git] / linuxthreads / ChangeLog
blobead990b382ecc0e0424484db735f0a7296e38dd1
1 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
3         * manager.c (pthread_exited): If thread is not detached put it on
4         special list.
5         (pthread_handle_free): If thread is not on list with living threads
6         search on list with detached threads.
8         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
9         for new definition of pthread_rwlock_t.
11         * spinlock.c: Correct test whether to compile
12         __pthread_compare_and_swap or not.
14 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
16         * attr.c: Finish user stack support.  Change locking code to be safe
17         in situations with different priorities.
18         * cancel.c: Likewise.
19         * condvar.c: Likewise.
20         * internals.h: Likewise.
21         * join.c: Likewise.
22         * manager.c: Likewise.
23         * mutex.c: Likewise.
24         * pthread.c: Likewise.
25         * ptlongjmp.c: Likewise.
26         * queue.h: Likewise.
27         * rwlock.c: Likewise.
28         * semaphore.c: Likewise.
29         * semaphore.h: Likewise.
30         * signals.c: Likewise.
31         * spinlock.c: Likewise.
32         * spinlock.h: Likewise.
33         * sysdeps/pthread/pthread.h: Likewise.
34         Patches by Xavier Leroy.
36         * sysdeps/i386/i686/pt-machine.h: New file.
38 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
40         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
41         [sg]et_stackaddr prototypes always available.
43         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
44         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
46 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
48         * manager.c (pthread_free): Undo patch from 980430.
49         Reported by David Wragg <dpw@doc.ic.ac.uk>.
51 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
53         * manager.c: Define __pthread_manager_adjust_prio and use it to
54         increase priority when needed.
55         * internals.h: Add prototype for __pthread_manager_adjust_prio.
56         * mutex.c: Optimize mutexes to wake up only one thread.
57         * pthread.c: Move PID of manager for global variable in structure
58         element.
59         Patches by Xavier Leroy.
61 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
63         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
65 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
67         * attr.c: Correct typo.
69 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
71         * manager.c (pthread_free): Unmap guard before the stack.
72         Patch by Matthias Urlichs.
74 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
76         * manager.c (pthread_free): Detect already free child.
77         Patch by Xavier Leroy, reported by Matthias Urlichs.
79 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81         * Makefile (linuxthreads-version): Renamed back from
82         libpthread-version.
84 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
86         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
87         __libc_longjmp.
89 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
91         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
92         * internals.h: Add definitions for new spinlock implementation.
93         * ptlongjmp.c: New file.
94         * spinlock.c: New file.
95         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
96         new function __pthread_acquire to prevent deadlocks with thread
97         with different priorities.
98         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
100 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
102         * manager.c (__pthread_manager): Reduce first argument to select
103         to include just the needed file descriptor.
105 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
107         * manager.c: Fix last patch which caused core dumps.
109         * pthread.c: Correctly handle missing SIGRTMIN.
111 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
113         * libpthread.map: Add __libc_internal_tsd_get and
114         __libc_internal_tsd_set.  Add missing cancelable functions. Export
115         libc internal versions of the cancelable functions.
117 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
119         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
121 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
123         * attr.c: Implement pthread_attr_[gs]etguardsize,
124         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
125         Change pthread_attr_init to have two interfaces.
126         * internals.h (struct _pthread_descr_struct): Add new fields for
127         above functions.
128         * libpthread.map: Add names in GLIBC_2.1 section.
129         * manager.c (pthread_handle_create): Implement guardsize and
130         user stack.
131         (pthread_free): Likewise.
132         * pthread.c (pthread_create): Add new interface for changed
133         pthread_attr_t.
134         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
135         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
136         PTHREAD_STACK_MIN.
138 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
140         * manager.c: Enable resetting of the thread scheduling policy
141         to SCHED_OTHER when the parent thread has a different one.
143 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
145         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
146         _POSIX_ASYNCHRONOUS_IO.
148         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
149         mutexes.
150         * mutex.c: Implement new mutex types.
152         * internals.h: Include <signal.h>.
154         * libpthread.map: Add __erno_location and __h_errno_location.
156         * errno.c: Return pointer to variable actually in use.  This might
157         not be the one in the thread structure.
158         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
159         and p_h_errnop.
160         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
161         of manager thread structure.
162         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
163         thread.
164         * pthread.c: Adapt initializer for thread structures.
165         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
166         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
167         current thread to global variables.
169 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
171         * rwlock.c: New file.
172         * Makefile (libpthread-routines): Add rwlock.
173         * sysdeps/pthread/pthread.h: Define data structures and declare
174         functions.
175         * libpthread.map: Add new functions.
177 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
179         * sysdeps/arm/pt-machine.h: New file; add ARM support.
180         * sysdeps/arm/Implies: likewise.
181         * README: Document it.
183 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
185         * signals.c: Remove unneeded initializer for sigwaited, saving a
186         warning.
188 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
190         * semaphore.c (sem_init): Set sem_spinlock only if available.
192 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
194         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
195         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
197         * Makefile: Update from LinuxThreads 0.7.
198         * internals.h. Likewise.
199         * manager.c: Likewise.
200         * mutex.c: Likewise.
201         * pthread.c: Likewise.
202         * signals.c: Likewise.
203         * specific.c: Likewise.
204         * Examples/ex3.c: Likewise.
206 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
208         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
209         open.
211 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
213         * wrapsyscall.c: Add socket functions which are also cancelation
214         points.
216 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
218         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
219         New functions for fast thread specific data within libc.
221         * internals.h: Add new array p_libc_specific to struct
222         _pthread_descr_struct.
224         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
226 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
228         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
229         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
231 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
233         * internals.h (struct _pthread_descr_struct): Add definitions for
234         two-level specific key handling.
235         * manager.c (pthread_handle_create): Initialize specific memory array.
236         * specific.c: Implement two-level key handling.
237         * weaks.c: Don't provide dummy key handling.
238         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
239         Add definition of __libc_key_t.
240         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
241         as 1024.
242         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
243         PTHREAD_DESTRUCTOR_ITERATIONS.
245         * manager.c (pthread_handle_create): Compare mmap result with
246         MAP_FAILED.
248         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
249         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
251 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
253         sysdeps/sparc -> sysdeps/sparc/sparc32
254         sysdeps/sparc64 -> sysdeps/sparc/sparc64
256         * internals.h: Change definition of THREAD_SELF to be an expression,
257         not a statement that did a return.
258         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
259         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
260         Follow Solaris and use a "system reserved" register (%g6) to hold
261         the thread descriptor.
262         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
264 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
266         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
267         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
268         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
270         * semaphore.c: Include spinlock.h only when needed.
272         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
273         keys for entries not in use.
275         * weaks.c: Implement key handling functions for real.
277 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
279         Initial sparc64-linux support:
280         * linuxthreads/sysdeps/sparc64/Implies: New file.
281         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
283 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
285         * semaphore.c: Include spinlock.h at correct place.
286         Patch by HJ Lu.
288 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
290         The Great Bit File Move:
291         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
292         * sysdeps/powerpc/semaphorebits.h: Likewise.
293         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
294         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
295         * sysdeps/pthread/libc-lock.h: -> bits/
296         * sysdeps/pthread/stdio-lock.h: Likewise.
297         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
298         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
299         * semaphore.h: Likewise.
300         * sysdeps/pthread/pthread.h: Likewise.
302         * lockfile.c: <foo.h> -> <bits/foo.h>.
303         * semaphore.h: Likewise.
305         * Makefile: (headers): foo.h -> bits/foo.h.
306         * sysdeps/pthread/Makefile: Likewise.
308 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
310         * semaphore.c (sem_init): Set sem_spinlock only if available.
312         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
313         asm constraints.
315 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
317         Update from LinuxThreads 0.6.
319         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
320         and __sched_get_priority_min instead of names without `__'.
322         * manager.c: Rewrite large parts to implement opaque pthread_t.
324         * cancel.c: Adapt for opaque pthread_t type.
325         * condvar.c: Likewise.
326         * errno.c: Likewise.
327         * join.c: Likewise.
328         * mutex.c: Likewise.
329         * pthread.c: Likewise.
330         * signals.c: Likewise.
331         * specific.c: Likewise.
332         * restart.h: Likewise.
333         * queue.h: Likewise.
334         * Examples/ex3.c: Likewise.
335         * Examples/ex4.c: Likewise.
336         * sysdeps/pthread/pthread.h: Likewise.
338         * pthread.c: Accumulate time for all threads in thread manager.
340         * semaphore.c: Implement fallback implementation for architectures
341         sometimes missing compare-exchange operations.
343         * cancel.c (pthread_cancel): Validate handle argument.
344         * join.c (pthread_join): Likewise.
345         (pthread_detach): Likewise.
346         * signals.c (pthread_kill): Likewise.
348         * spinlock.h (acquire): Use __sched_yield not sched_yield.
350         * queue.h (enqueue): Enqueue thread according to priority.
352         * internals.c (struct pthread_start_args): New struct for passing
353         args to cloning function.
354         (struct _pthread): Rename to _pthread_descr_struct and adapt for
355         opaque pthread_t.
357         * Examples/Makefile (clean): Pass -f option to rm.
359         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
360         and define TEST_FOR_COMPARE_AND_SWAP.
361         * sysdeps/i386/i486/pt-machine.h: Removed.
363         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
364         to 1024.
366 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
368         * restart.h (suspend): Clear p_signal before suspending.
369         (suspend_with_cancellation): Likewise.
370         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
372         * weaks.c: Make __pthread_key_create return 1.
373         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
374         __libc_getspecific, __libc_setspecific, and __libc_key_t.
375         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
376         using libio.
378 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
380         * sysdeps/sparc/pt-machine (RELEASE): Fix.
382 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
384         * sysdeps/powerpc/Implies: Added.
385         * sysdeps/powerpc/pt-machine.h: Added.
386         * sysdeps/powerpc/semaphorebits.h: Added.
388 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
390         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
391         initializer.
392         (__pthread_manager_thread): Likewise.
393         Reported by Andreas Jaeger.
395 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
397         Since sigset_t no longer fits in a register, we can't pass in the
398         thread's initial mask so easily.  Take this opportunity to simplify
399         the clone implementation by only accepting a single void* argument.
401         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
402         in the thread struct instead of as arguments through clone.
403         (pthread_start_thread): Look for them there.
404         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
405         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
406         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
407         clone invocation.