1 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
3 * manager.c (pthread_free): Unmap guard before the stack.
4 Patch by Matthias Urlichs.
6 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
8 * manager.c (pthread_free): Detect already free child.
9 Patch by Xavier Leroy, reported by Matthias Urlichs.
11 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
13 * Makefile (linuxthreads-version): Renamed back from
16 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
18 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
21 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
23 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
24 * internals.h: Add definitions for new spinlock implementation.
25 * ptlongjmp.c: New file.
26 * spinlock.c: New file.
27 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
28 new function __pthread_acquire to prevent deadlocks with thread
29 with different priorities.
30 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
32 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
34 * manager.c (__pthread_manager): Reduce first argument to select
35 to include just the needed file descriptor.
37 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
39 * manager.c: Fix last patch which caused core dumps.
41 * pthread.c: Correctly handle missing SIGRTMIN.
43 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
45 * libpthread.map: Add __libc_internal_tsd_get and
46 __libc_internal_tsd_set. Add missing cancelable functions. Export
47 libc internal versions of the cancelable functions.
49 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
51 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
53 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
55 * attr.c: Implement pthread_attr_[gs]etguardsize,
56 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
57 Change pthread_attr_init to have two interfaces.
58 * internals.h (struct _pthread_descr_struct): Add new fields for
60 * libpthread.map: Add names in GLIBC_2.1 section.
61 * manager.c (pthread_handle_create): Implement guardsize and
63 (pthread_free): Likewise.
64 * pthread.c (pthread_create): Add new interface for changed
66 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
67 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
70 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
72 * manager.c: Enable resetting of the thread scheduling policy
73 to SCHED_OTHER when the parent thread has a different one.
75 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
77 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
78 _POSIX_ASYNCHRONOUS_IO.
80 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
82 * mutex.c: Implement new mutex types.
84 * internals.h: Include <signal.h>.
86 * libpthread.map: Add __erno_location and __h_errno_location.
88 * errno.c: Return pointer to variable actually in use. This might
89 not be the one in the thread structure.
90 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
92 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
93 of manager thread structure.
94 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
96 * pthread.c: Adapt initializer for thread structures.
97 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
98 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
99 current thread to global variables.
101 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
103 * rwlock.c: New file.
104 * Makefile (libpthread-routines): Add rwlock.
105 * sysdeps/pthread/pthread.h: Define data structures and declare
107 * libpthread.map: Add new functions.
109 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
111 * sysdeps/arm/pt-machine.h: New file; add ARM support.
112 * sysdeps/arm/Implies: likewise.
113 * README: Document it.
115 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
117 * signals.c: Remove unneeded initializer for sigwaited, saving a
120 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
122 * semaphore.c (sem_init): Set sem_spinlock only if available.
124 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
126 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
127 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
129 * Makefile: Update from LinuxThreads 0.7.
130 * internals.h. Likewise.
131 * manager.c: Likewise.
133 * pthread.c: Likewise.
134 * signals.c: Likewise.
135 * specific.c: Likewise.
136 * Examples/ex3.c: Likewise.
138 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
140 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
143 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
145 * wrapsyscall.c: Add socket functions which are also cancelation
148 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
150 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
151 New functions for fast thread specific data within libc.
153 * internals.h: Add new array p_libc_specific to struct
154 _pthread_descr_struct.
156 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
158 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
160 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
161 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
163 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
165 * internals.h (struct _pthread_descr_struct): Add definitions for
166 two-level specific key handling.
167 * manager.c (pthread_handle_create): Initialize specific memory array.
168 * specific.c: Implement two-level key handling.
169 * weaks.c: Don't provide dummy key handling.
170 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
171 Add definition of __libc_key_t.
172 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
174 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
175 PTHREAD_DESTRUCTOR_ITERATIONS.
177 * manager.c (pthread_handle_create): Compare mmap result with
180 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
181 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
183 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
185 sysdeps/sparc -> sysdeps/sparc/sparc32
186 sysdeps/sparc64 -> sysdeps/sparc/sparc64
188 * internals.h: Change definition of THREAD_SELF to be an expression,
189 not a statement that did a return.
190 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
191 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
192 Follow Solaris and use a "system reserved" register (%g6) to hold
193 the thread descriptor.
194 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
196 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
198 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
199 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
200 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
202 * semaphore.c: Include spinlock.h only when needed.
204 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
205 keys for entries not in use.
207 * weaks.c: Implement key handling functions for real.
209 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
211 Initial sparc64-linux support:
212 * linuxthreads/sysdeps/sparc64/Implies: New file.
213 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
215 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
217 * semaphore.c: Include spinlock.h at correct place.
220 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
222 The Great Bit File Move:
223 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
224 * sysdeps/powerpc/semaphorebits.h: Likewise.
225 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
226 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
227 * sysdeps/pthread/libc-lock.h: -> bits/
228 * sysdeps/pthread/stdio-lock.h: Likewise.
229 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
230 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
231 * semaphore.h: Likewise.
232 * sysdeps/pthread/pthread.h: Likewise.
234 * lockfile.c: <foo.h> -> <bits/foo.h>.
235 * semaphore.h: Likewise.
237 * Makefile: (headers): foo.h -> bits/foo.h.
238 * sysdeps/pthread/Makefile: Likewise.
240 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
242 * semaphore.c (sem_init): Set sem_spinlock only if available.
244 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
247 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
249 Update from LinuxThreads 0.6.
251 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
252 and __sched_get_priority_min instead of names without `__'.
254 * manager.c: Rewrite large parts to implement opaque pthread_t.
256 * cancel.c: Adapt for opaque pthread_t type.
257 * condvar.c: Likewise.
261 * pthread.c: Likewise.
262 * signals.c: Likewise.
263 * specific.c: Likewise.
264 * restart.h: Likewise.
266 * Examples/ex3.c: Likewise.
267 * Examples/ex4.c: Likewise.
268 * sysdeps/pthread/pthread.h: Likewise.
270 * pthread.c: Accumulate time for all threads in thread manager.
272 * semaphore.c: Implement fallback implementation for architectures
273 sometimes missing compare-exchange operations.
275 * cancel.c (pthread_cancel): Validate handle argument.
276 * join.c (pthread_join): Likewise.
277 (pthread_detach): Likewise.
278 * signals.c (pthread_kill): Likewise.
280 * spinlock.h (acquire): Use __sched_yield not sched_yield.
282 * queue.h (enqueue): Enqueue thread according to priority.
284 * internals.c (struct pthread_start_args): New struct for passing
285 args to cloning function.
286 (struct _pthread): Rename to _pthread_descr_struct and adapt for
289 * Examples/Makefile (clean): Pass -f option to rm.
291 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
292 and define TEST_FOR_COMPARE_AND_SWAP.
293 * sysdeps/i386/i486/pt-machine.h: Removed.
295 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
298 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
300 * restart.h (suspend): Clear p_signal before suspending.
301 (suspend_with_cancellation): Likewise.
302 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
304 * weaks.c: Make __pthread_key_create return 1.
305 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
306 __libc_getspecific, __libc_setspecific, and __libc_key_t.
307 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
310 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
312 * sysdeps/sparc/pt-machine (RELEASE): Fix.
314 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
316 * sysdeps/powerpc/Implies: Added.
317 * sysdeps/powerpc/pt-machine.h: Added.
318 * sysdeps/powerpc/semaphorebits.h: Added.
320 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
322 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
324 (__pthread_manager_thread): Likewise.
325 Reported by Andreas Jaeger.
327 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
329 Since sigset_t no longer fits in a register, we can't pass in the
330 thread's initial mask so easily. Take this opportunity to simplify
331 the clone implementation by only accepting a single void* argument.
333 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
334 in the thread struct instead of as arguments through clone.
335 (pthread_start_thread): Look for them there.
336 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
337 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
338 * linuxthreads/pthread.c (pthread_initialize_manager): Revise