Update.
[glibc.git] / linuxthreads / ChangeLog
blob77aa4a2ea4eb4f1945e409db3ee3494c71cf96b4
1 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
3         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
5 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
7         * attr.c: Implement pthread_attr_[gs]etguardsize,
8         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
9         Change pthread_attr_init to have two interfaces.
10         * internals.h (struct _pthread_descr_struct): Add new fields for
11         above functions.
12         * libpthread.map: Add names in GLIBC_2.1 section.
13         * manager.c (pthread_handle_create): Implement guardsize and
14         user stack.
15         (pthread_free): Likewise.
16         * pthread.c (pthread_create): Add new interface for changed
17         pthread_attr_t.
18         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
19         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
20         PTHREAD_STACK_MIN.
22 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
24         * manager.c: Enable resetting of the thread scheduling policy
25         to SCHED_OTHER when the parent thread has a different one.
27 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
29         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
30         _POSIX_ASYNCHRONOUS_IO.
32         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
33         mutexes.
34         * mutex.c: Implement new mutex types.
36         * internals.h: Include <signal.h>.
38         * libpthread.map: Add __erno_location and __h_errno_location.
40         * errno.c: Return pointer to variable actually in use.  This might
41         not be the one in the thread structure.
42         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
43         and p_h_errnop.
44         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
45         of manager thread structure.
46         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
47         thread.
48         * pthread.c: Adapt initializer for thread structures.
49         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
50         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
51         current thread to global variables.
53 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
55         * rwlock.c: New file.
56         * Makefile (libpthread-routines): Add rwlock.
57         * sysdeps/pthread/pthread.h: Define data structures and declare
58         functions.
59         * libpthread.map: Add new functions.
61 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
63         * sysdeps/arm/pt-machine.h: New file; add ARM support.
64         * sysdeps/arm/Implies: likewise.
65         * README: Document it.
67 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
69         * signals.c: Remove unneeded initializer for sigwaited, saving a
70         warning.
72 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74         * semaphore.c (sem_init): Set sem_spinlock only if available.
76 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
78         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
79         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
81         * Makefile: Update from LinuxThreads 0.7.
82         * internals.h. Likewise.
83         * manager.c: Likewise.
84         * mutex.c: Likewise.
85         * pthread.c: Likewise.
86         * signals.c: Likewise.
87         * specific.c: Likewise.
88         * Examples/ex3.c: Likewise.
90 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
92         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
93         open.
95 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
97         * wrapsyscall.c: Add socket functions which are also cancelation
98         points.
100 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
102         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
103         New functions for fast thread specific data within libc.
105         * internals.h: Add new array p_libc_specific to struct
106         _pthread_descr_struct.
108         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
110 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
112         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
113         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
115 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
117         * internals.h (struct _pthread_descr_struct): Add definitions for
118         two-level specific key handling.
119         * manager.c (pthread_handle_create): Initialize specific memory array.
120         * specific.c: Implement two-level key handling.
121         * weaks.c: Don't provide dummy key handling.
122         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
123         Add definition of __libc_key_t.
124         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
125         as 1024.
126         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
127         PTHREAD_DESTRUCTOR_ITERATIONS.
129         * manager.c (pthread_handle_create): Compare mmap result with
130         MAP_FAILED.
132         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
133         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
135 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
137         sysdeps/sparc -> sysdeps/sparc/sparc32
138         sysdeps/sparc64 -> sysdeps/sparc/sparc64
140         * internals.h: Change definition of THREAD_SELF to be an expression,
141         not a statement that did a return.
142         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
143         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
144         Follow Solaris and use a "system reserved" register (%g6) to hold
145         the thread descriptor.
146         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
148 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
150         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
151         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
152         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
154         * semaphore.c: Include spinlock.h only when needed.
156         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
157         keys for entries not in use.
159         * weaks.c: Implement key handling functions for real.
161 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
163         Initial sparc64-linux support:
164         * linuxthreads/sysdeps/sparc64/Implies: New file.
165         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
167 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
169         * semaphore.c: Include spinlock.h at correct place.
170         Patch by HJ Lu.
172 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
174         The Great Bit File Move:
175         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
176         * sysdeps/powerpc/semaphorebits.h: Likewise.
177         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
178         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
179         * sysdeps/pthread/libc-lock.h: -> bits/
180         * sysdeps/pthread/stdio-lock.h: Likewise.
181         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
182         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
183         * semaphore.h: Likewise.
184         * sysdeps/pthread/pthread.h: Likewise.
186         * lockfile.c: <foo.h> -> <bits/foo.h>.
187         * semaphore.h: Likewise.
189         * Makefile: (headers): foo.h -> bits/foo.h.
190         * sysdeps/pthread/Makefile: Likewise.
192 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
194         * semaphore.c (sem_init): Set sem_spinlock only if available.
196         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
197         asm constraints.
199 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
201         Update from LinuxThreads 0.6.
203         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
204         and __sched_get_priority_min instead of names without `__'.
206         * manager.c: Rewrite large parts to implement opaque pthread_t.
208         * cancel.c: Adapt for opaque pthread_t type.
209         * condvar.c: Likewise.
210         * errno.c: Likewise.
211         * join.c: Likewise.
212         * mutex.c: Likewise.
213         * pthread.c: Likewise.
214         * signals.c: Likewise.
215         * specific.c: Likewise.
216         * restart.h: Likewise.
217         * queue.h: Likewise.
218         * Examples/ex3.c: Likewise.
219         * Examples/ex4.c: Likewise.
220         * sysdeps/pthread/pthread.h: Likewise.
222         * pthread.c: Accumulate time for all threads in thread manager.
224         * semaphore.c: Implement fallback implementation for architectures
225         sometimes missing compare-exchange operations.
227         * cancel.c (pthread_cancel): Validate handle argument.
228         * join.c (pthread_join): Likewise.
229         (pthread_detach): Likewise.
230         * signals.c (pthread_kill): Likewise.
232         * spinlock.h (acquire): Use __sched_yield not sched_yield.
234         * queue.h (enqueue): Enqueue thread according to priority.
236         * internals.c (struct pthread_start_args): New struct for passing
237         args to cloning function.
238         (struct _pthread): Rename to _pthread_descr_struct and adapt for
239         opaque pthread_t.
241         * Examples/Makefile (clean): Pass -f option to rm.
243         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
244         and define TEST_FOR_COMPARE_AND_SWAP.
245         * sysdeps/i386/i486/pt-machine.h: Removed.
247         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
248         to 1024.
250 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
252         * restart.h (suspend): Clear p_signal before suspending.
253         (suspend_with_cancellation): Likewise.
254         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
256         * weaks.c: Make __pthread_key_create return 1.
257         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
258         __libc_getspecific, __libc_setspecific, and __libc_key_t.
259         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
260         using libio.
262 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
264         * sysdeps/sparc/pt-machine (RELEASE): Fix.
266 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
268         * sysdeps/powerpc/Implies: Added.
269         * sysdeps/powerpc/pt-machine.h: Added.
270         * sysdeps/powerpc/semaphorebits.h: Added.
272 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
274         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
275         initializer.
276         (__pthread_manager_thread): Likewise.
277         Reported by Andreas Jaeger.
279 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
281         Since sigset_t no longer fits in a register, we can't pass in the
282         thread's initial mask so easily.  Take this opportunity to simplify
283         the clone implementation by only accepting a single void* argument.
285         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
286         in the thread struct instead of as arguments through clone.
287         (pthread_start_thread): Look for them there.
288         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
289         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
290         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
291         clone invocation.