1 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
3 * signals.c (sigaction): Handle NULL argument.
5 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
7 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
10 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
12 * Makefile (linuxthreads-version): Extract correct number from
15 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
17 * Banner: Bump version number to 0.8
18 * FAQ.html: Many updates, in particular w.r.t. debugging.
19 * manager.c: Support for non-default stacksize for
20 LinuxThreads-allocated stacks;
21 don't use guard pages for stacks with default size, rely on
22 rlimit(RLIMIT_STACK) instead (it's cheaper).
24 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
25 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
26 * condvar.c: Likewise.
27 * internals.h: Likewise.
28 * restart.h: Likewise.
29 * signals.c: Likewise.
30 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
32 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
34 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
35 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
36 * Versions: Put __pthread_mutexattr_settype under version
37 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
38 __pthread_mutexattr_gettype.
40 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
42 * sysdeps/pthread/bits/libc-lock.h: Make
43 __pthread_mutexattr_settype weak. Don't make
44 __pthread_mutexattr_setkind_np weak.
46 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
48 * manager.c (pthread_handle_create): Check whether sched_setscheduler
49 call can succeed here.
51 * mutex.c: Define __pthread_mutexattr_settype and make
52 __pthread_mutexattr_setkind_np an alias.
53 Likewise for __pthread_mutexattr_gettype.
55 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
57 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
60 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
62 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
64 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
66 * Examples/ex6.c: Include <unistd.h> for usleep.
68 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
70 * Examples/ex4.c (main): Use exit, not pthread_exit.
72 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
74 * Versions: Add __pthread_mutexattr_gettype and
75 __pthread_mutexattr_settype.
76 * lockfile.c: Use __pthread_mutexattr_settype instead of
77 __pthread_mutexattr_setkind_np.
78 * mutex.c: Define __pthread_mutexattr_gettype and
79 __pthread_mutexattr_settype.
81 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
82 __pthread_mutexattr_settype.
83 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
84 Use __pthread_mutexattr_settype.
86 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
88 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
89 * mutex.c: Define weak alias pthread_mutexattr_gettype and
90 pthread_mutexattr_settype.
91 * sysdeps/pthread/pthread.h: Declare these functions.
92 Move pthread_sigmask and pthread_kill declaration in separate header.
93 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
95 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
97 * Makefile: Add rules to compile and run tests.
98 * Examples/ex1.c: Little changes to fix warnings.
99 * Examples/ex2.c: Likewise.
100 * Examples/ex3.c: Likewise.
101 * Examples/ex4.c: Likewise.
102 * Examples/ex5.c: Likewise.
103 * Examples/ex6.c: New file.
105 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
107 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
109 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
111 * attr.c: Include <string.h>.
113 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
115 * attr.c: Include errno.h. Use memcpy to copy sched_param.
116 * internals.h: Include limits.h.
117 * manager.c: Use memcpy to copy sched_param.
118 * ptfork.c: Include errno.h.
119 * pthread.c: Likewise.
120 * semaphore.c: Likewise.
121 * specific.c: Likewise.
122 * spinlock.h: Likewise.
123 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
124 type definition to ...
125 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
127 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
129 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
131 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
132 as macros as demanded in POSIX.1, Annex C.
134 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
136 * internals.h (struct pthread_request): For free use pthread_t
137 instead of pthread_descr.
138 * join.c (pthread_join): Pass thread_id, not th to manager.
139 (pthread_detach): Likewise.
140 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
141 (pthread_exited): Remove detached queue code.
142 (pthread_handle_free): Expect thread ID parameter and use it to
143 validate the thread decsriptor. Don't use detached queue.
144 Patches by Xavier Leroy.
146 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
148 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
149 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
150 __pthread_atfork, __pthread_key_create, __pthread_once.
151 * internals.h: Doc fix.
152 * pthread.c (__pthread_initialize): Define again.
154 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
156 * manager.c (pthread_exited): If thread is not detached put it on
158 (pthread_handle_free): If thread is not on list with living threads
159 search on list with detached threads.
161 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
162 for new definition of pthread_rwlock_t.
164 * spinlock.c: Correct test whether to compile
165 __pthread_compare_and_swap or not.
167 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
169 * attr.c: Finish user stack support. Change locking code to be safe
170 in situations with different priorities.
171 * cancel.c: Likewise.
172 * condvar.c: Likewise.
173 * internals.h: Likewise.
175 * manager.c: Likewise.
177 * pthread.c: Likewise.
178 * ptlongjmp.c: Likewise.
180 * rwlock.c: Likewise.
181 * semaphore.c: Likewise.
182 * semaphore.h: Likewise.
183 * signals.c: Likewise.
184 * spinlock.c: Likewise.
185 * spinlock.h: Likewise.
186 * sysdeps/pthread/pthread.h: Likewise.
187 Patches by Xavier Leroy.
189 * sysdeps/i386/i686/pt-machine.h: New file.
191 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
193 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
194 [sg]et_stackaddr prototypes always available.
196 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
197 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
199 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
201 * manager.c (pthread_free): Undo patch from 980430.
202 Reported by David Wragg <dpw@doc.ic.ac.uk>.
204 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
206 * manager.c: Define __pthread_manager_adjust_prio and use it to
207 increase priority when needed.
208 * internals.h: Add prototype for __pthread_manager_adjust_prio.
209 * mutex.c: Optimize mutexes to wake up only one thread.
210 * pthread.c: Move PID of manager for global variable in structure
212 Patches by Xavier Leroy.
214 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
216 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
218 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
220 * attr.c: Correct typo.
222 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
224 * manager.c (pthread_free): Unmap guard before the stack.
225 Patch by Matthias Urlichs.
227 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
229 * manager.c (pthread_free): Detect already free child.
230 Patch by Xavier Leroy, reported by Matthias Urlichs.
232 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
234 * Makefile (linuxthreads-version): Renamed back from
237 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
239 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
242 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
244 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
245 * internals.h: Add definitions for new spinlock implementation.
246 * ptlongjmp.c: New file.
247 * spinlock.c: New file.
248 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
249 new function __pthread_acquire to prevent deadlocks with thread
250 with different priorities.
251 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
253 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
255 * manager.c (__pthread_manager): Reduce first argument to select
256 to include just the needed file descriptor.
258 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
260 * manager.c: Fix last patch which caused core dumps.
262 * pthread.c: Correctly handle missing SIGRTMIN.
264 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
266 * libpthread.map: Add __libc_internal_tsd_get and
267 __libc_internal_tsd_set. Add missing cancelable functions. Export
268 libc internal versions of the cancelable functions.
270 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
272 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
274 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
276 * attr.c: Implement pthread_attr_[gs]etguardsize,
277 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
278 Change pthread_attr_init to have two interfaces.
279 * internals.h (struct _pthread_descr_struct): Add new fields for
281 * libpthread.map: Add names in GLIBC_2.1 section.
282 * manager.c (pthread_handle_create): Implement guardsize and
284 (pthread_free): Likewise.
285 * pthread.c (pthread_create): Add new interface for changed
287 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
288 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
291 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
293 * manager.c: Enable resetting of the thread scheduling policy
294 to SCHED_OTHER when the parent thread has a different one.
296 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
298 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
299 _POSIX_ASYNCHRONOUS_IO.
301 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
303 * mutex.c: Implement new mutex types.
305 * internals.h: Include <signal.h>.
307 * libpthread.map: Add __erno_location and __h_errno_location.
309 * errno.c: Return pointer to variable actually in use. This might
310 not be the one in the thread structure.
311 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
313 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
314 of manager thread structure.
315 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
317 * pthread.c: Adapt initializer for thread structures.
318 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
319 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
320 current thread to global variables.
322 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
324 * rwlock.c: New file.
325 * Makefile (libpthread-routines): Add rwlock.
326 * sysdeps/pthread/pthread.h: Define data structures and declare
328 * libpthread.map: Add new functions.
330 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
332 * sysdeps/arm/pt-machine.h: New file; add ARM support.
333 * sysdeps/arm/Implies: likewise.
334 * README: Document it.
336 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
338 * signals.c: Remove unneeded initializer for sigwaited, saving a
341 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
343 * semaphore.c (sem_init): Set sem_spinlock only if available.
345 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
347 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
348 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
350 * Makefile: Update from LinuxThreads 0.7.
351 * internals.h. Likewise.
352 * manager.c: Likewise.
354 * pthread.c: Likewise.
355 * signals.c: Likewise.
356 * specific.c: Likewise.
357 * Examples/ex3.c: Likewise.
359 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
361 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
364 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
366 * wrapsyscall.c: Add socket functions which are also cancelation
369 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
371 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
372 New functions for fast thread specific data within libc.
374 * internals.h: Add new array p_libc_specific to struct
375 _pthread_descr_struct.
377 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
379 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
381 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
382 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
384 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
386 * internals.h (struct _pthread_descr_struct): Add definitions for
387 two-level specific key handling.
388 * manager.c (pthread_handle_create): Initialize specific memory array.
389 * specific.c: Implement two-level key handling.
390 * weaks.c: Don't provide dummy key handling.
391 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
392 Add definition of __libc_key_t.
393 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
395 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
396 PTHREAD_DESTRUCTOR_ITERATIONS.
398 * manager.c (pthread_handle_create): Compare mmap result with
401 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
402 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
404 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
406 sysdeps/sparc -> sysdeps/sparc/sparc32
407 sysdeps/sparc64 -> sysdeps/sparc/sparc64
409 * internals.h: Change definition of THREAD_SELF to be an expression,
410 not a statement that did a return.
411 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
412 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
413 Follow Solaris and use a "system reserved" register (%g6) to hold
414 the thread descriptor.
415 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
417 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
419 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
420 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
421 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
423 * semaphore.c: Include spinlock.h only when needed.
425 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
426 keys for entries not in use.
428 * weaks.c: Implement key handling functions for real.
430 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
432 Initial sparc64-linux support:
433 * linuxthreads/sysdeps/sparc64/Implies: New file.
434 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
436 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
438 * semaphore.c: Include spinlock.h at correct place.
441 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
443 The Great Bit File Move:
444 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
445 * sysdeps/powerpc/semaphorebits.h: Likewise.
446 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
447 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
448 * sysdeps/pthread/libc-lock.h: -> bits/
449 * sysdeps/pthread/stdio-lock.h: Likewise.
450 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
451 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
452 * semaphore.h: Likewise.
453 * sysdeps/pthread/pthread.h: Likewise.
455 * lockfile.c: <foo.h> -> <bits/foo.h>.
456 * semaphore.h: Likewise.
458 * Makefile: (headers): foo.h -> bits/foo.h.
459 * sysdeps/pthread/Makefile: Likewise.
461 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
463 * semaphore.c (sem_init): Set sem_spinlock only if available.
465 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
468 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
470 Update from LinuxThreads 0.6.
472 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
473 and __sched_get_priority_min instead of names without `__'.
475 * manager.c: Rewrite large parts to implement opaque pthread_t.
477 * cancel.c: Adapt for opaque pthread_t type.
478 * condvar.c: Likewise.
482 * pthread.c: Likewise.
483 * signals.c: Likewise.
484 * specific.c: Likewise.
485 * restart.h: Likewise.
487 * Examples/ex3.c: Likewise.
488 * Examples/ex4.c: Likewise.
489 * sysdeps/pthread/pthread.h: Likewise.
491 * pthread.c: Accumulate time for all threads in thread manager.
493 * semaphore.c: Implement fallback implementation for architectures
494 sometimes missing compare-exchange operations.
496 * cancel.c (pthread_cancel): Validate handle argument.
497 * join.c (pthread_join): Likewise.
498 (pthread_detach): Likewise.
499 * signals.c (pthread_kill): Likewise.
501 * spinlock.h (acquire): Use __sched_yield not sched_yield.
503 * queue.h (enqueue): Enqueue thread according to priority.
505 * internals.c (struct pthread_start_args): New struct for passing
506 args to cloning function.
507 (struct _pthread): Rename to _pthread_descr_struct and adapt for
510 * Examples/Makefile (clean): Pass -f option to rm.
512 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
513 and define TEST_FOR_COMPARE_AND_SWAP.
514 * sysdeps/i386/i486/pt-machine.h: Removed.
516 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
519 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
521 * restart.h (suspend): Clear p_signal before suspending.
522 (suspend_with_cancellation): Likewise.
523 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
525 * weaks.c: Make __pthread_key_create return 1.
526 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
527 __libc_getspecific, __libc_setspecific, and __libc_key_t.
528 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
531 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
533 * sysdeps/sparc/pt-machine (RELEASE): Fix.
535 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
537 * sysdeps/powerpc/Implies: Added.
538 * sysdeps/powerpc/pt-machine.h: Added.
539 * sysdeps/powerpc/semaphorebits.h: Added.
541 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
543 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
545 (__pthread_manager_thread): Likewise.
546 Reported by Andreas Jaeger.
548 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
550 Since sigset_t no longer fits in a register, we can't pass in the
551 thread's initial mask so easily. Take this opportunity to simplify
552 the clone implementation by only accepting a single void* argument.
554 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
555 in the thread struct instead of as arguments through clone.
556 (pthread_start_thread): Look for them there.
557 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
558 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
559 * linuxthreads/pthread.c (pthread_initialize_manager): Revise