Update.
[glibc.git] / linuxthreads / ChangeLog
blobd0181c840a6ffa1b03bd698ebc0565caaccf7b0a
1 1998-07-05 11:54  Ulrich Drepper  <drepper@cygnus.com>
3         * Versions: Add pthread_attr_init ti GLIBC_2.1 version in libc.
5 1998-07-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
7         * attr.c: Include <string.h>.
9 1998-06-30 11:47  Ulrich Drepper  <drepper@cygnus.com>
11         * attr.c: Include errno.h.  Use memcpy to copy sched_param.
12         * internals.h: Include limits.h.
13         * manager.c: Use memcpy to copy sched_param.
14         * ptfork.c: Include errno.h.
15         * pthread.c: Likewise.
16         * semaphore.c: Likewise.
17         * specific.c: Likewise.
18         * spinlock.h: Likewise.
19         * sysdeps/pthread/pthread.h: Include only allowed headers.  Move
20         type definition to ...
21         * sysdeps/pthread/bits/pthreadtypes.h: ...here.  New file.
23 1998-06-29 12:34  Ulrich Drepper  <drepper@cygnus.com>
25         * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
27         * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
28         as macros as demanded in POSIX.1, Annex C.
30 1998-06-29 12:29  Ulrich Drepper  <drepper@cygnus.com>
32         * internals.h (struct pthread_request): For free use pthread_t
33         instead of pthread_descr.
34         * join.c (pthread_join): Pass thread_id, not th to manager.
35         (pthread_detach): Likewise.
36         * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
37         (pthread_exited): Remove detached queue code.
38         (pthread_handle_free): Expect thread ID parameter and use it to
39         validate the thread decsriptor.  Don't use detached queue.
40         Patches by Xavier Leroy.
42 1998-06-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
44         * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
45         _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
46         __pthread_atfork, __pthread_key_create, __pthread_once.
47         * internals.h: Doc fix.
48         * pthread.c (__pthread_initialize): Define again.
50 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
52         * manager.c (pthread_exited): If thread is not detached put it on
53         special list.
54         (pthread_handle_free): If thread is not on list with living threads
55         search on list with detached threads.
57         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
58         for new definition of pthread_rwlock_t.
60         * spinlock.c: Correct test whether to compile
61         __pthread_compare_and_swap or not.
63 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
65         * attr.c: Finish user stack support.  Change locking code to be safe
66         in situations with different priorities.
67         * cancel.c: Likewise.
68         * condvar.c: Likewise.
69         * internals.h: Likewise.
70         * join.c: Likewise.
71         * manager.c: Likewise.
72         * mutex.c: Likewise.
73         * pthread.c: Likewise.
74         * ptlongjmp.c: Likewise.
75         * queue.h: Likewise.
76         * rwlock.c: Likewise.
77         * semaphore.c: Likewise.
78         * semaphore.h: Likewise.
79         * signals.c: Likewise.
80         * spinlock.c: Likewise.
81         * spinlock.h: Likewise.
82         * sysdeps/pthread/pthread.h: Likewise.
83         Patches by Xavier Leroy.
85         * sysdeps/i386/i686/pt-machine.h: New file.
87 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
89         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
90         [sg]et_stackaddr prototypes always available.
92         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
93         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
95 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
97         * manager.c (pthread_free): Undo patch from 980430.
98         Reported by David Wragg <dpw@doc.ic.ac.uk>.
100 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
102         * manager.c: Define __pthread_manager_adjust_prio and use it to
103         increase priority when needed.
104         * internals.h: Add prototype for __pthread_manager_adjust_prio.
105         * mutex.c: Optimize mutexes to wake up only one thread.
106         * pthread.c: Move PID of manager for global variable in structure
107         element.
108         Patches by Xavier Leroy.
110 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
112         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
114 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
116         * attr.c: Correct typo.
118 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
120         * manager.c (pthread_free): Unmap guard before the stack.
121         Patch by Matthias Urlichs.
123 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
125         * manager.c (pthread_free): Detect already free child.
126         Patch by Xavier Leroy, reported by Matthias Urlichs.
128 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
130         * Makefile (linuxthreads-version): Renamed back from
131         libpthread-version.
133 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
135         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
136         __libc_longjmp.
138 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
140         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
141         * internals.h: Add definitions for new spinlock implementation.
142         * ptlongjmp.c: New file.
143         * spinlock.c: New file.
144         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
145         new function __pthread_acquire to prevent deadlocks with thread
146         with different priorities.
147         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
149 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
151         * manager.c (__pthread_manager): Reduce first argument to select
152         to include just the needed file descriptor.
154 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
156         * manager.c: Fix last patch which caused core dumps.
158         * pthread.c: Correctly handle missing SIGRTMIN.
160 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
162         * libpthread.map: Add __libc_internal_tsd_get and
163         __libc_internal_tsd_set.  Add missing cancelable functions. Export
164         libc internal versions of the cancelable functions.
166 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
168         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
170 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
172         * attr.c: Implement pthread_attr_[gs]etguardsize,
173         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
174         Change pthread_attr_init to have two interfaces.
175         * internals.h (struct _pthread_descr_struct): Add new fields for
176         above functions.
177         * libpthread.map: Add names in GLIBC_2.1 section.
178         * manager.c (pthread_handle_create): Implement guardsize and
179         user stack.
180         (pthread_free): Likewise.
181         * pthread.c (pthread_create): Add new interface for changed
182         pthread_attr_t.
183         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
184         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
185         PTHREAD_STACK_MIN.
187 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
189         * manager.c: Enable resetting of the thread scheduling policy
190         to SCHED_OTHER when the parent thread has a different one.
192 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
194         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
195         _POSIX_ASYNCHRONOUS_IO.
197         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
198         mutexes.
199         * mutex.c: Implement new mutex types.
201         * internals.h: Include <signal.h>.
203         * libpthread.map: Add __erno_location and __h_errno_location.
205         * errno.c: Return pointer to variable actually in use.  This might
206         not be the one in the thread structure.
207         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
208         and p_h_errnop.
209         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
210         of manager thread structure.
211         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
212         thread.
213         * pthread.c: Adapt initializer for thread structures.
214         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
215         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
216         current thread to global variables.
218 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
220         * rwlock.c: New file.
221         * Makefile (libpthread-routines): Add rwlock.
222         * sysdeps/pthread/pthread.h: Define data structures and declare
223         functions.
224         * libpthread.map: Add new functions.
226 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
228         * sysdeps/arm/pt-machine.h: New file; add ARM support.
229         * sysdeps/arm/Implies: likewise.
230         * README: Document it.
232 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
234         * signals.c: Remove unneeded initializer for sigwaited, saving a
235         warning.
237 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
239         * semaphore.c (sem_init): Set sem_spinlock only if available.
241 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
243         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
244         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
246         * Makefile: Update from LinuxThreads 0.7.
247         * internals.h. Likewise.
248         * manager.c: Likewise.
249         * mutex.c: Likewise.
250         * pthread.c: Likewise.
251         * signals.c: Likewise.
252         * specific.c: Likewise.
253         * Examples/ex3.c: Likewise.
255 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
257         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
258         open.
260 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
262         * wrapsyscall.c: Add socket functions which are also cancelation
263         points.
265 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
267         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
268         New functions for fast thread specific data within libc.
270         * internals.h: Add new array p_libc_specific to struct
271         _pthread_descr_struct.
273         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
275 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
277         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
278         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
280 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
282         * internals.h (struct _pthread_descr_struct): Add definitions for
283         two-level specific key handling.
284         * manager.c (pthread_handle_create): Initialize specific memory array.
285         * specific.c: Implement two-level key handling.
286         * weaks.c: Don't provide dummy key handling.
287         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
288         Add definition of __libc_key_t.
289         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
290         as 1024.
291         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
292         PTHREAD_DESTRUCTOR_ITERATIONS.
294         * manager.c (pthread_handle_create): Compare mmap result with
295         MAP_FAILED.
297         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
298         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
300 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
302         sysdeps/sparc -> sysdeps/sparc/sparc32
303         sysdeps/sparc64 -> sysdeps/sparc/sparc64
305         * internals.h: Change definition of THREAD_SELF to be an expression,
306         not a statement that did a return.
307         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
308         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
309         Follow Solaris and use a "system reserved" register (%g6) to hold
310         the thread descriptor.
311         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
313 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
315         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
316         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
317         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
319         * semaphore.c: Include spinlock.h only when needed.
321         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
322         keys for entries not in use.
324         * weaks.c: Implement key handling functions for real.
326 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
328         Initial sparc64-linux support:
329         * linuxthreads/sysdeps/sparc64/Implies: New file.
330         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
332 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
334         * semaphore.c: Include spinlock.h at correct place.
335         Patch by HJ Lu.
337 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
339         The Great Bit File Move:
340         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
341         * sysdeps/powerpc/semaphorebits.h: Likewise.
342         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
343         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
344         * sysdeps/pthread/libc-lock.h: -> bits/
345         * sysdeps/pthread/stdio-lock.h: Likewise.
346         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
347         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
348         * semaphore.h: Likewise.
349         * sysdeps/pthread/pthread.h: Likewise.
351         * lockfile.c: <foo.h> -> <bits/foo.h>.
352         * semaphore.h: Likewise.
354         * Makefile: (headers): foo.h -> bits/foo.h.
355         * sysdeps/pthread/Makefile: Likewise.
357 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
359         * semaphore.c (sem_init): Set sem_spinlock only if available.
361         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
362         asm constraints.
364 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
366         Update from LinuxThreads 0.6.
368         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
369         and __sched_get_priority_min instead of names without `__'.
371         * manager.c: Rewrite large parts to implement opaque pthread_t.
373         * cancel.c: Adapt for opaque pthread_t type.
374         * condvar.c: Likewise.
375         * errno.c: Likewise.
376         * join.c: Likewise.
377         * mutex.c: Likewise.
378         * pthread.c: Likewise.
379         * signals.c: Likewise.
380         * specific.c: Likewise.
381         * restart.h: Likewise.
382         * queue.h: Likewise.
383         * Examples/ex3.c: Likewise.
384         * Examples/ex4.c: Likewise.
385         * sysdeps/pthread/pthread.h: Likewise.
387         * pthread.c: Accumulate time for all threads in thread manager.
389         * semaphore.c: Implement fallback implementation for architectures
390         sometimes missing compare-exchange operations.
392         * cancel.c (pthread_cancel): Validate handle argument.
393         * join.c (pthread_join): Likewise.
394         (pthread_detach): Likewise.
395         * signals.c (pthread_kill): Likewise.
397         * spinlock.h (acquire): Use __sched_yield not sched_yield.
399         * queue.h (enqueue): Enqueue thread according to priority.
401         * internals.c (struct pthread_start_args): New struct for passing
402         args to cloning function.
403         (struct _pthread): Rename to _pthread_descr_struct and adapt for
404         opaque pthread_t.
406         * Examples/Makefile (clean): Pass -f option to rm.
408         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
409         and define TEST_FOR_COMPARE_AND_SWAP.
410         * sysdeps/i386/i486/pt-machine.h: Removed.
412         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
413         to 1024.
415 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
417         * restart.h (suspend): Clear p_signal before suspending.
418         (suspend_with_cancellation): Likewise.
419         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
421         * weaks.c: Make __pthread_key_create return 1.
422         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
423         __libc_getspecific, __libc_setspecific, and __libc_key_t.
424         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
425         using libio.
427 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
429         * sysdeps/sparc/pt-machine (RELEASE): Fix.
431 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
433         * sysdeps/powerpc/Implies: Added.
434         * sysdeps/powerpc/pt-machine.h: Added.
435         * sysdeps/powerpc/semaphorebits.h: Added.
437 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
439         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
440         initializer.
441         (__pthread_manager_thread): Likewise.
442         Reported by Andreas Jaeger.
444 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
446         Since sigset_t no longer fits in a register, we can't pass in the
447         thread's initial mask so easily.  Take this opportunity to simplify
448         the clone implementation by only accepting a single void* argument.
450         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
451         in the thread struct instead of as arguments through clone.
452         (pthread_start_thread): Look for them there.
453         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
454         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
455         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
456         clone invocation.