Update.
[glibc.git] / linuxthreads / ChangeLog
blobc3f7dc3dc87ba3977f8d6f419e1b1fe725cc96f5
1 1998-07-29  Xavier Leroy  <Xavier.Leroy@inria.fr>
3         * Banner: Bump version number to 0.8
4         * FAQ.html: Many updates, in particular w.r.t. debugging.
5         * manager.c: Support for non-default stacksize for
6         LinuxThreads-allocated stacks;
7         don't use guard pages for stacks with default size, rely on
8         rlimit(RLIMIT_STACK) instead (it's cheaper).
9         * attr.c: Likewise.
10         * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
11         everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
12         * condvar.c: Likewise.
13         * internals.h: Likewise.
14         * restart.h: Likewise.
15         * signals.c: Likewise.
16         * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
18 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
20         * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
21         __pthread_mutexattr_[sg]ettype.  Add more weak aliases.
22         * Versions: Put __pthread_mutexattr_settype under version
23         GLIBC_2.0.  Don't export __pthread_mutexattr_setkind_np and
24         __pthread_mutexattr_gettype.
26 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
28         * sysdeps/pthread/bits/libc-lock.h: Make
29         __pthread_mutexattr_settype weak.  Don't make
30         __pthread_mutexattr_setkind_np weak.
32 1998-07-16 10:52  Ulrich Drepper  <drepper@cygnus.com>
34         * manager.c (pthread_handle_create): Check whether sched_setscheduler
35         call can succeed here.
37         * mutex.c: Define __pthread_mutexattr_settype and make
38         __pthread_mutexattr_setkind_np an alias.
39         Likewise for __pthread_mutexattr_gettype.
41 1998-07-15 11:00 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
43         * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
44         is root.
46 1998-07-14 19:38  Ulrich Drepper  <drepper@cygnus.com>
48         * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
50 1998-07-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
52         * Examples/ex6.c: Include <unistd.h> for usleep.
54 1998-06-13 11:04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
56         * Examples/ex4.c (main): Use exit, not pthread_exit.
58 1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>
60         * Versions: Add __pthread_mutexattr_gettype and
61         __pthread_mutexattr_settype.
62         * lockfile.c: Use __pthread_mutexattr_settype instead of
63         __pthread_mutexattr_setkind_np.
64         * mutex.c: Define __pthread_mutexattr_gettype and
65         __pthread_mutexattr_settype.
66         * weak.c: Likewise.
67         * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
68         __pthread_mutexattr_settype.
69         * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
70         Use __pthread_mutexattr_settype.
72 1998-07-08 22:26  Ulrich Drepper  <drepper@cygnus.com>
74         * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
75         * mutex.c: Define weak alias pthread_mutexattr_gettype and
76         pthread_mutexattr_settype.
77         * sysdeps/pthread/pthread.h: Declare these functions.
78         Move pthread_sigmask and pthread_kill declaration in separate header.
79         * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
81 1998-07-07 15:20  Ulrich Drepper  <drepper@cygnus.com>
83         * Makefile: Add rules to compile and run tests.
84         * Examples/ex1.c: Little changes to fix warnings.
85         * Examples/ex2.c: Likewise.
86         * Examples/ex3.c: Likewise.
87         * Examples/ex4.c: Likewise.
88         * Examples/ex5.c: Likewise.
89         * Examples/ex6.c: New file.
91 1998-07-05 11:54  Ulrich Drepper  <drepper@cygnus.com>
93         * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
95 1998-07-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
97         * attr.c: Include <string.h>.
99 1998-06-30 11:47  Ulrich Drepper  <drepper@cygnus.com>
101         * attr.c: Include errno.h.  Use memcpy to copy sched_param.
102         * internals.h: Include limits.h.
103         * manager.c: Use memcpy to copy sched_param.
104         * ptfork.c: Include errno.h.
105         * pthread.c: Likewise.
106         * semaphore.c: Likewise.
107         * specific.c: Likewise.
108         * spinlock.h: Likewise.
109         * sysdeps/pthread/pthread.h: Include only allowed headers.  Move
110         type definition to ...
111         * sysdeps/pthread/bits/pthreadtypes.h: ...here.  New file.
113 1998-06-29 12:34  Ulrich Drepper  <drepper@cygnus.com>
115         * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
117         * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
118         as macros as demanded in POSIX.1, Annex C.
120 1998-06-29 12:29  Ulrich Drepper  <drepper@cygnus.com>
122         * internals.h (struct pthread_request): For free use pthread_t
123         instead of pthread_descr.
124         * join.c (pthread_join): Pass thread_id, not th to manager.
125         (pthread_detach): Likewise.
126         * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
127         (pthread_exited): Remove detached queue code.
128         (pthread_handle_free): Expect thread ID parameter and use it to
129         validate the thread decsriptor.  Don't use detached queue.
130         Patches by Xavier Leroy.
132 1998-06-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134         * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
135         _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
136         __pthread_atfork, __pthread_key_create, __pthread_once.
137         * internals.h: Doc fix.
138         * pthread.c (__pthread_initialize): Define again.
140 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
142         * manager.c (pthread_exited): If thread is not detached put it on
143         special list.
144         (pthread_handle_free): If thread is not on list with living threads
145         search on list with detached threads.
147         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
148         for new definition of pthread_rwlock_t.
150         * spinlock.c: Correct test whether to compile
151         __pthread_compare_and_swap or not.
153 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
155         * attr.c: Finish user stack support.  Change locking code to be safe
156         in situations with different priorities.
157         * cancel.c: Likewise.
158         * condvar.c: Likewise.
159         * internals.h: Likewise.
160         * join.c: Likewise.
161         * manager.c: Likewise.
162         * mutex.c: Likewise.
163         * pthread.c: Likewise.
164         * ptlongjmp.c: Likewise.
165         * queue.h: Likewise.
166         * rwlock.c: Likewise.
167         * semaphore.c: Likewise.
168         * semaphore.h: Likewise.
169         * signals.c: Likewise.
170         * spinlock.c: Likewise.
171         * spinlock.h: Likewise.
172         * sysdeps/pthread/pthread.h: Likewise.
173         Patches by Xavier Leroy.
175         * sysdeps/i386/i686/pt-machine.h: New file.
177 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
179         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
180         [sg]et_stackaddr prototypes always available.
182         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
183         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
185 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
187         * manager.c (pthread_free): Undo patch from 980430.
188         Reported by David Wragg <dpw@doc.ic.ac.uk>.
190 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
192         * manager.c: Define __pthread_manager_adjust_prio and use it to
193         increase priority when needed.
194         * internals.h: Add prototype for __pthread_manager_adjust_prio.
195         * mutex.c: Optimize mutexes to wake up only one thread.
196         * pthread.c: Move PID of manager for global variable in structure
197         element.
198         Patches by Xavier Leroy.
200 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
202         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
204 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
206         * attr.c: Correct typo.
208 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
210         * manager.c (pthread_free): Unmap guard before the stack.
211         Patch by Matthias Urlichs.
213 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
215         * manager.c (pthread_free): Detect already free child.
216         Patch by Xavier Leroy, reported by Matthias Urlichs.
218 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
220         * Makefile (linuxthreads-version): Renamed back from
221         libpthread-version.
223 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
225         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
226         __libc_longjmp.
228 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
230         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
231         * internals.h: Add definitions for new spinlock implementation.
232         * ptlongjmp.c: New file.
233         * spinlock.c: New file.
234         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
235         new function __pthread_acquire to prevent deadlocks with thread
236         with different priorities.
237         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
239 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
241         * manager.c (__pthread_manager): Reduce first argument to select
242         to include just the needed file descriptor.
244 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
246         * manager.c: Fix last patch which caused core dumps.
248         * pthread.c: Correctly handle missing SIGRTMIN.
250 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
252         * libpthread.map: Add __libc_internal_tsd_get and
253         __libc_internal_tsd_set.  Add missing cancelable functions. Export
254         libc internal versions of the cancelable functions.
256 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
258         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
260 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
262         * attr.c: Implement pthread_attr_[gs]etguardsize,
263         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
264         Change pthread_attr_init to have two interfaces.
265         * internals.h (struct _pthread_descr_struct): Add new fields for
266         above functions.
267         * libpthread.map: Add names in GLIBC_2.1 section.
268         * manager.c (pthread_handle_create): Implement guardsize and
269         user stack.
270         (pthread_free): Likewise.
271         * pthread.c (pthread_create): Add new interface for changed
272         pthread_attr_t.
273         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
274         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
275         PTHREAD_STACK_MIN.
277 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
279         * manager.c: Enable resetting of the thread scheduling policy
280         to SCHED_OTHER when the parent thread has a different one.
282 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
284         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
285         _POSIX_ASYNCHRONOUS_IO.
287         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
288         mutexes.
289         * mutex.c: Implement new mutex types.
291         * internals.h: Include <signal.h>.
293         * libpthread.map: Add __erno_location and __h_errno_location.
295         * errno.c: Return pointer to variable actually in use.  This might
296         not be the one in the thread structure.
297         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
298         and p_h_errnop.
299         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
300         of manager thread structure.
301         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
302         thread.
303         * pthread.c: Adapt initializer for thread structures.
304         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
305         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
306         current thread to global variables.
308 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
310         * rwlock.c: New file.
311         * Makefile (libpthread-routines): Add rwlock.
312         * sysdeps/pthread/pthread.h: Define data structures and declare
313         functions.
314         * libpthread.map: Add new functions.
316 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
318         * sysdeps/arm/pt-machine.h: New file; add ARM support.
319         * sysdeps/arm/Implies: likewise.
320         * README: Document it.
322 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
324         * signals.c: Remove unneeded initializer for sigwaited, saving a
325         warning.
327 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
329         * semaphore.c (sem_init): Set sem_spinlock only if available.
331 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
333         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
334         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
336         * Makefile: Update from LinuxThreads 0.7.
337         * internals.h. Likewise.
338         * manager.c: Likewise.
339         * mutex.c: Likewise.
340         * pthread.c: Likewise.
341         * signals.c: Likewise.
342         * specific.c: Likewise.
343         * Examples/ex3.c: Likewise.
345 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
347         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
348         open.
350 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
352         * wrapsyscall.c: Add socket functions which are also cancelation
353         points.
355 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
357         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
358         New functions for fast thread specific data within libc.
360         * internals.h: Add new array p_libc_specific to struct
361         _pthread_descr_struct.
363         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
365 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
367         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
368         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
370 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
372         * internals.h (struct _pthread_descr_struct): Add definitions for
373         two-level specific key handling.
374         * manager.c (pthread_handle_create): Initialize specific memory array.
375         * specific.c: Implement two-level key handling.
376         * weaks.c: Don't provide dummy key handling.
377         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
378         Add definition of __libc_key_t.
379         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
380         as 1024.
381         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
382         PTHREAD_DESTRUCTOR_ITERATIONS.
384         * manager.c (pthread_handle_create): Compare mmap result with
385         MAP_FAILED.
387         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
388         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
390 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
392         sysdeps/sparc -> sysdeps/sparc/sparc32
393         sysdeps/sparc64 -> sysdeps/sparc/sparc64
395         * internals.h: Change definition of THREAD_SELF to be an expression,
396         not a statement that did a return.
397         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
398         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
399         Follow Solaris and use a "system reserved" register (%g6) to hold
400         the thread descriptor.
401         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
403 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
405         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
406         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
407         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
409         * semaphore.c: Include spinlock.h only when needed.
411         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
412         keys for entries not in use.
414         * weaks.c: Implement key handling functions for real.
416 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
418         Initial sparc64-linux support:
419         * linuxthreads/sysdeps/sparc64/Implies: New file.
420         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
422 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
424         * semaphore.c: Include spinlock.h at correct place.
425         Patch by HJ Lu.
427 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
429         The Great Bit File Move:
430         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
431         * sysdeps/powerpc/semaphorebits.h: Likewise.
432         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
433         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
434         * sysdeps/pthread/libc-lock.h: -> bits/
435         * sysdeps/pthread/stdio-lock.h: Likewise.
436         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
437         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
438         * semaphore.h: Likewise.
439         * sysdeps/pthread/pthread.h: Likewise.
441         * lockfile.c: <foo.h> -> <bits/foo.h>.
442         * semaphore.h: Likewise.
444         * Makefile: (headers): foo.h -> bits/foo.h.
445         * sysdeps/pthread/Makefile: Likewise.
447 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
449         * semaphore.c (sem_init): Set sem_spinlock only if available.
451         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
452         asm constraints.
454 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
456         Update from LinuxThreads 0.6.
458         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
459         and __sched_get_priority_min instead of names without `__'.
461         * manager.c: Rewrite large parts to implement opaque pthread_t.
463         * cancel.c: Adapt for opaque pthread_t type.
464         * condvar.c: Likewise.
465         * errno.c: Likewise.
466         * join.c: Likewise.
467         * mutex.c: Likewise.
468         * pthread.c: Likewise.
469         * signals.c: Likewise.
470         * specific.c: Likewise.
471         * restart.h: Likewise.
472         * queue.h: Likewise.
473         * Examples/ex3.c: Likewise.
474         * Examples/ex4.c: Likewise.
475         * sysdeps/pthread/pthread.h: Likewise.
477         * pthread.c: Accumulate time for all threads in thread manager.
479         * semaphore.c: Implement fallback implementation for architectures
480         sometimes missing compare-exchange operations.
482         * cancel.c (pthread_cancel): Validate handle argument.
483         * join.c (pthread_join): Likewise.
484         (pthread_detach): Likewise.
485         * signals.c (pthread_kill): Likewise.
487         * spinlock.h (acquire): Use __sched_yield not sched_yield.
489         * queue.h (enqueue): Enqueue thread according to priority.
491         * internals.c (struct pthread_start_args): New struct for passing
492         args to cloning function.
493         (struct _pthread): Rename to _pthread_descr_struct and adapt for
494         opaque pthread_t.
496         * Examples/Makefile (clean): Pass -f option to rm.
498         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
499         and define TEST_FOR_COMPARE_AND_SWAP.
500         * sysdeps/i386/i486/pt-machine.h: Removed.
502         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
503         to 1024.
505 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
507         * restart.h (suspend): Clear p_signal before suspending.
508         (suspend_with_cancellation): Likewise.
509         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
511         * weaks.c: Make __pthread_key_create return 1.
512         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
513         __libc_getspecific, __libc_setspecific, and __libc_key_t.
514         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
515         using libio.
517 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
519         * sysdeps/sparc/pt-machine (RELEASE): Fix.
521 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
523         * sysdeps/powerpc/Implies: Added.
524         * sysdeps/powerpc/pt-machine.h: Added.
525         * sysdeps/powerpc/semaphorebits.h: Added.
527 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
529         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
530         initializer.
531         (__pthread_manager_thread): Likewise.
532         Reported by Andreas Jaeger.
534 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
536         Since sigset_t no longer fits in a register, we can't pass in the
537         thread's initial mask so easily.  Take this opportunity to simplify
538         the clone implementation by only accepting a single void* argument.
540         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
541         in the thread struct instead of as arguments through clone.
542         (pthread_start_thread): Look for them there.
543         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
544         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
545         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
546         clone invocation.