1 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
3 * attr.c: Finish user stack support. Change locking code to be safe
4 in situations with different priorities.
7 * internals.h: Likewise.
11 * pthread.c: Likewise.
12 * ptlongjmp.c: Likewise.
15 * semaphore.c: Likewise.
16 * semaphore.h: Likewise.
17 * signals.c: Likewise.
18 * spinlock.c: Likewise.
19 * spinlock.h: Likewise.
20 * sysdeps/pthread/pthread.h: Likewise.
21 Patches by Xavier leroy.
23 * sysdeps/i386/pt-machine.h: When compiling for i686 don't test for
24 xchgcmp instruction, it is available.
26 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
28 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
29 [sg]et_stackaddr prototypes always available.
31 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
32 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
34 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
36 * manager.c (pthread_free): Undo patch from 980430.
37 Reported by David Wragg <dpw@doc.ic.ac.uk>.
39 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
41 * manager.c: Define __pthread_manager_adjust_prio and use it to
42 increase priority when needed.
43 * internals.h: Add prototype for __pthread_manager_adjust_prio.
44 * mutex.c: Optimize mutexes to wake up only one thread.
45 * pthread.c: Move PID of manager fro global variable in structure
47 Patches by Xavier Leroy.
49 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
51 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
53 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
55 * attr.c: Correct typo.
57 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
59 * manager.c (pthread_free): Unmap guard before the stack.
60 Patch by Matthias Urlichs.
62 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
64 * manager.c (pthread_free): Detect already free child.
65 Patch by Xavier Leroy, reported by Matthias Urlichs.
67 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
69 * Makefile (linuxthreads-version): Renamed back from
72 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
74 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
77 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
79 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
80 * internals.h: Add definitions for new spinlock implementation.
81 * ptlongjmp.c: New file.
82 * spinlock.c: New file.
83 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
84 new function __pthread_acquire to prevent deadlocks with thread
85 with different priorities.
86 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
88 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
90 * manager.c (__pthread_manager): Reduce first argument to select
91 to include just the needed file descriptor.
93 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
95 * manager.c: Fix last patch which caused core dumps.
97 * pthread.c: Correctly handle missing SIGRTMIN.
99 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
101 * libpthread.map: Add __libc_internal_tsd_get and
102 __libc_internal_tsd_set. Add missing cancelable functions. Export
103 libc internal versions of the cancelable functions.
105 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
107 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
109 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
111 * attr.c: Implement pthread_attr_[gs]etguardsize,
112 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
113 Change pthread_attr_init to have two interfaces.
114 * internals.h (struct _pthread_descr_struct): Add new fields for
116 * libpthread.map: Add names in GLIBC_2.1 section.
117 * manager.c (pthread_handle_create): Implement guardsize and
119 (pthread_free): Likewise.
120 * pthread.c (pthread_create): Add new interface for changed
122 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
123 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
126 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
128 * manager.c: Enable resetting of the thread scheduling policy
129 to SCHED_OTHER when the parent thread has a different one.
131 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
133 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
134 _POSIX_ASYNCHRONOUS_IO.
136 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
138 * mutex.c: Implement new mutex types.
140 * internals.h: Include <signal.h>.
142 * libpthread.map: Add __erno_location and __h_errno_location.
144 * errno.c: Return pointer to variable actually in use. This might
145 not be the one in the thread structure.
146 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
148 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
149 of manager thread structure.
150 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
152 * pthread.c: Adapt initializer for thread structures.
153 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
154 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
155 current thread to global variables.
157 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
159 * rwlock.c: New file.
160 * Makefile (libpthread-routines): Add rwlock.
161 * sysdeps/pthread/pthread.h: Define data structures and declare
163 * libpthread.map: Add new functions.
165 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
167 * sysdeps/arm/pt-machine.h: New file; add ARM support.
168 * sysdeps/arm/Implies: likewise.
169 * README: Document it.
171 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
173 * signals.c: Remove unneeded initializer for sigwaited, saving a
176 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
178 * semaphore.c (sem_init): Set sem_spinlock only if available.
180 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
182 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
183 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
185 * Makefile: Update from LinuxThreads 0.7.
186 * internals.h. Likewise.
187 * manager.c: Likewise.
189 * pthread.c: Likewise.
190 * signals.c: Likewise.
191 * specific.c: Likewise.
192 * Examples/ex3.c: Likewise.
194 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
196 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
199 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
201 * wrapsyscall.c: Add socket functions which are also cancelation
204 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
206 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
207 New functions for fast thread specific data within libc.
209 * internals.h: Add new array p_libc_specific to struct
210 _pthread_descr_struct.
212 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
214 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
216 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
217 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
219 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
221 * internals.h (struct _pthread_descr_struct): Add definitions for
222 two-level specific key handling.
223 * manager.c (pthread_handle_create): Initialize specific memory array.
224 * specific.c: Implement two-level key handling.
225 * weaks.c: Don't provide dummy key handling.
226 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
227 Add definition of __libc_key_t.
228 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
230 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
231 PTHREAD_DESTRUCTOR_ITERATIONS.
233 * manager.c (pthread_handle_create): Compare mmap result with
236 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
237 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
239 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
241 sysdeps/sparc -> sysdeps/sparc/sparc32
242 sysdeps/sparc64 -> sysdeps/sparc/sparc64
244 * internals.h: Change definition of THREAD_SELF to be an expression,
245 not a statement that did a return.
246 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
247 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
248 Follow Solaris and use a "system reserved" register (%g6) to hold
249 the thread descriptor.
250 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
252 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
254 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
255 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
256 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
258 * semaphore.c: Include spinlock.h only when needed.
260 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
261 keys for entries not in use.
263 * weaks.c: Implement key handling functions for real.
265 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
267 Initial sparc64-linux support:
268 * linuxthreads/sysdeps/sparc64/Implies: New file.
269 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
271 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
273 * semaphore.c: Include spinlock.h at correct place.
276 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
278 The Great Bit File Move:
279 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
280 * sysdeps/powerpc/semaphorebits.h: Likewise.
281 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
282 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
283 * sysdeps/pthread/libc-lock.h: -> bits/
284 * sysdeps/pthread/stdio-lock.h: Likewise.
285 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
286 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
287 * semaphore.h: Likewise.
288 * sysdeps/pthread/pthread.h: Likewise.
290 * lockfile.c: <foo.h> -> <bits/foo.h>.
291 * semaphore.h: Likewise.
293 * Makefile: (headers): foo.h -> bits/foo.h.
294 * sysdeps/pthread/Makefile: Likewise.
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 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
303 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
305 Update from LinuxThreads 0.6.
307 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
308 and __sched_get_priority_min instead of names without `__'.
310 * manager.c: Rewrite large parts to implement opaque pthread_t.
312 * cancel.c: Adapt for opaque pthread_t type.
313 * condvar.c: Likewise.
317 * pthread.c: Likewise.
318 * signals.c: Likewise.
319 * specific.c: Likewise.
320 * restart.h: Likewise.
322 * Examples/ex3.c: Likewise.
323 * Examples/ex4.c: Likewise.
324 * sysdeps/pthread/pthread.h: Likewise.
326 * pthread.c: Accumulate time for all threads in thread manager.
328 * semaphore.c: Implement fallback implementation for architectures
329 sometimes missing compare-exchange operations.
331 * cancel.c (pthread_cancel): Validate handle argument.
332 * join.c (pthread_join): Likewise.
333 (pthread_detach): Likewise.
334 * signals.c (pthread_kill): Likewise.
336 * spinlock.h (acquire): Use __sched_yield not sched_yield.
338 * queue.h (enqueue): Enqueue thread according to priority.
340 * internals.c (struct pthread_start_args): New struct for passing
341 args to cloning function.
342 (struct _pthread): Rename to _pthread_descr_struct and adapt for
345 * Examples/Makefile (clean): Pass -f option to rm.
347 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
348 and define TEST_FOR_COMPARE_AND_SWAP.
349 * sysdeps/i386/i486/pt-machine.h: Removed.
351 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
354 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
356 * restart.h (suspend): Clear p_signal before suspending.
357 (suspend_with_cancellation): Likewise.
358 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
360 * weaks.c: Make __pthread_key_create return 1.
361 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
362 __libc_getspecific, __libc_setspecific, and __libc_key_t.
363 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
366 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
368 * sysdeps/sparc/pt-machine (RELEASE): Fix.
370 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
372 * sysdeps/powerpc/Implies: Added.
373 * sysdeps/powerpc/pt-machine.h: Added.
374 * sysdeps/powerpc/semaphorebits.h: Added.
376 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
378 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
380 (__pthread_manager_thread): Likewise.
381 Reported by Andreas Jaeger.
383 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
385 Since sigset_t no longer fits in a register, we can't pass in the
386 thread's initial mask so easily. Take this opportunity to simplify
387 the clone implementation by only accepting a single void* argument.
389 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
390 in the thread struct instead of as arguments through clone.
391 (pthread_start_thread): Look for them there.
392 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
393 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
394 * linuxthreads/pthread.c (pthread_initialize_manager): Revise