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