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