1 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
3 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
4 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
6 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
8 * manager.c: Threads now send __pthread_sig_cancel on termination.
9 Change clone call and signal masks.
10 * thread.c (pthread_handle_sigrestart): Remove special code for
12 (pthread_handle_sigcancel): In manager thread call
13 __pthread_manager_sighandler.
14 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
15 * sysdeps/i386/i686/pt-machine.h: Likewise.
16 Patches by Xavier Leroy.
18 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
20 * spinlock.c (__pthread_unlock): Don't crash if called for an
21 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
23 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
26 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
28 * Examples/ex3.c: Wait until all threads are started before
29 searching for the number to avoid race condition on very fast
32 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
34 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
35 declaration since it's not needed.
37 * sysdeps/pthread/pthread.h: Move internal functions to ...
38 * internals.h: ...here.
40 1998-12-02 H.J. Lu <hjl@gnu.org>
42 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
44 (__pthread_sig_cancel): Likewise.
46 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
48 * wrapsyscall.c: Include <sys/mman.h> for msync,
49 <stdlib.h> for system and <termios.h> for tcdrain prototype.
50 Correct msync declaration.
52 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
54 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
55 __libc_tsd_set): New macros for new interface.
56 * no-tsd.c: New file, provide uninitialized defns of
57 __libc_internal_tsd_get and __libc_internal_tsd_set.
58 * Makefile (routines): Add no-tsd.
60 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
62 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
63 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
64 __libc_internal_tsd_set): Move decls to ...
65 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
68 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
69 __libc_internal_tsd_set): Make these pointers to functions, not
70 functions; remove #pragma weak decls for them.
71 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
72 Define static functions and initialized pointers to them.
74 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
76 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
77 (CFLAGS-specific.c): Likewise.
78 (CFLAGS-pthread.c): Likewise.
79 (CFLAGS-ptfork.c): Likewise.
80 (CFLAGS-cancel.c): Likewise.
81 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
82 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
84 * mutex.c (pthread_mutex_init): Define as strong symbol.
85 (pthread_mutex_destroy): Likewise.
86 (pthread_mutex_trylock): Likewise.
87 (pthread_mutex_lock): Likewise.
88 (pthread_mutex_unlock): Likewise.
89 (pthread_mutexattr_init): Likewise.
90 (pthread_mutexattr_destroy): Likewise.
91 (pthread_once): Likewise.
92 * ptfork.c (pthread_atfork): Likewise.
93 * specific.c (pthread_key_create): Likewise.
94 (pthread_setspecific): Likewise.
95 (pthread_getspecific): Likewise.
97 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
99 * linuxthreads.texi: Fix punctuation after xref.
101 1998-11-10 H.J. Lu <hjl@gnu.org>
103 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
104 if it is defined in <linux/limits.h>.
106 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
108 * spinlock.h (__pthread_trylock): Define inline.
109 (__pthread_lock): Add extra parameter to declaration. Declare
110 using internal_function.
111 (__pthread_unlock): Declare using internal_function.
112 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
113 of local variable self. Avoid recomputing self. Define using
115 (__pthread_trylock): Remove.
116 (__pthread_unlock): Define using internal_function.
117 * cancel.c: Adjust for __pthread_lock interface change. Use already
118 computed self value is possible.
119 * condvar.c: Likewise.
121 * manager.c: Likewise.
123 * pthread.c: Likewise.
124 * rwlock.c: Likewise.
125 * semaphore.c: Likewise.
126 * signals.c: Likewise.
128 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
130 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
131 __ to field names of the struct.
132 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
134 (pthread_attr_t): Likewise.
135 (pthread_cond_t): Likewise.
136 (pthread_condattr_t): Likewise.
137 (pthread_mutex_t): Likewise.
138 (pthread_mutexattr_t): Likewise.
139 (pthread_rwlock_t): Likewise.
140 (pthread_rwlockattr_t): Likewise.
141 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
142 * cancel.c: Likewise.
143 * condvar.c: Likewise.
144 * manager.c: Likewise.
146 * pthread.c: Likewise.
147 * ptlongjmp.c: Likewise.
148 * rwlock.c: Likewise.
149 * spinlock.c: Likewise.
151 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
153 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
156 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
159 * Makefile (libpthread-routines): Add pt-machine.
160 * pt-machine.c: New file.
161 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
162 yet defined. Use PT_EI in extern inline definitions.
163 * sysdeps/arm/pt-machine.h: Likewise.
164 * sysdeps/i386/pt-machine.h: Likewise.
165 * sysdeps/i386/i686/pt-machine.h: Likewise.
166 * sysdeps/m68k/pt-machine.h: Likewise.
167 * sysdeps/mips/pt-machine.h: Likewise.
168 * sysdeps/powerpc/pt-machine.h: Likewise.
169 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
170 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
172 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
174 * semaphore.h: Include <sys/types.h> so that _pthread_descr
177 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
179 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
181 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
183 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
185 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
186 multiple inclusion guard.
188 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
190 * signals.c (sigaction): Check that sig is less than NSIG to avoid
191 array index overflow.
193 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
195 * sysdeps/pthread/semaphore.h: New file.
197 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
199 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
200 _LIBC_TSD_KEY_DL_ERROR.
202 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
204 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
205 * sysdeps/i386/pt-machine.h: Likewise.
206 Suggested by Roland McGrath.
208 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
210 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
211 access thread data with non-constant offsets.
212 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
215 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
216 THREAD_SETMEM_NC definitions.
218 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
220 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
222 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
224 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
226 (struct _pthread_descr_struct): Add p_self and p_nr field.
227 * manager.c (__pthread_handles): Define second element to point
229 (__pthread_handles_num): Initialize to 2.
230 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
231 (pthread_start_thread): Likewise.
232 (pthread_handle_create): Start search for free slot at entry 2.
233 Initialize new fields p_self and p_nr.
234 Call __clone with CLONE_PTRACE if available.
235 (pthread_free): Call FREE_THREAD_SELF if available.
236 * pthread.c (__pthread_initial_thread): Initialize new fields.
237 (__pthread_manager_thread): Likewise.
238 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
240 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
241 elements of the thread descriptor.
242 * condvar.c: Likewise.
245 * manager.c: Likewise.
246 * pthread.c: Likewise.
247 * ptlongjmp.c: Likewise.
248 * semaphore.c: Likewise.
249 * signals.c: Likewise.
250 * specific.c: Likewise.
251 * spinlock.c: Likewise.
253 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
255 * sysdeps/i386/useldt.h: New file.
256 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
258 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
259 THREAD_SETMEM using __thread_self.
260 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
262 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
264 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
265 turned out that we didn't need to queue after all.
267 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
269 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
270 and wastes space; correct types.
272 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
274 * signals.c (sigaction): Handle NULL argument.
276 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
278 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
281 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
283 * Makefile (linuxthreads-version): Extract correct number from
286 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
288 * Banner: Bump version number to 0.8
289 * FAQ.html: Many updates, in particular w.r.t. debugging.
290 * manager.c: Support for non-default stacksize for
291 LinuxThreads-allocated stacks;
292 don't use guard pages for stacks with default size, rely on
293 rlimit(RLIMIT_STACK) instead (it's cheaper).
295 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
296 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
297 * condvar.c: Likewise.
298 * internals.h: Likewise.
299 * restart.h: Likewise.
300 * signals.c: Likewise.
301 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
303 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
305 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
306 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
307 * Versions: Put __pthread_mutexattr_settype under version
308 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
309 __pthread_mutexattr_gettype.
311 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
313 * sysdeps/pthread/bits/libc-lock.h: Make
314 __pthread_mutexattr_settype weak. Don't make
315 __pthread_mutexattr_setkind_np weak.
317 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
319 * manager.c (pthread_handle_create): Check whether sched_setscheduler
320 call can succeed here.
322 * mutex.c: Define __pthread_mutexattr_settype and make
323 __pthread_mutexattr_setkind_np an alias.
324 Likewise for __pthread_mutexattr_gettype.
326 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
328 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
331 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
333 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
335 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
337 * Examples/ex6.c: Include <unistd.h> for usleep.
339 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
341 * Examples/ex4.c (main): Use exit, not pthread_exit.
343 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
345 * Versions: Add __pthread_mutexattr_gettype and
346 __pthread_mutexattr_settype.
347 * lockfile.c: Use __pthread_mutexattr_settype instead of
348 __pthread_mutexattr_setkind_np.
349 * mutex.c: Define __pthread_mutexattr_gettype and
350 __pthread_mutexattr_settype.
352 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
353 __pthread_mutexattr_settype.
354 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
355 Use __pthread_mutexattr_settype.
357 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
359 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
360 * mutex.c: Define weak alias pthread_mutexattr_gettype and
361 pthread_mutexattr_settype.
362 * sysdeps/pthread/pthread.h: Declare these functions.
363 Move pthread_sigmask and pthread_kill declaration in separate header.
364 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
366 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
368 * Makefile: Add rules to compile and run tests.
369 * Examples/ex1.c: Little changes to fix warnings.
370 * Examples/ex2.c: Likewise.
371 * Examples/ex3.c: Likewise.
372 * Examples/ex4.c: Likewise.
373 * Examples/ex5.c: Likewise.
374 * Examples/ex6.c: New file.
376 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
378 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
380 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
382 * attr.c: Include <string.h>.
384 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
386 * attr.c: Include errno.h. Use memcpy to copy sched_param.
387 * internals.h: Include limits.h.
388 * manager.c: Use memcpy to copy sched_param.
389 * ptfork.c: Include errno.h.
390 * pthread.c: Likewise.
391 * semaphore.c: Likewise.
392 * specific.c: Likewise.
393 * spinlock.h: Likewise.
394 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
395 type definition to ...
396 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
398 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
400 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
402 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
403 as macros as demanded in POSIX.1, Annex C.
405 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
407 * internals.h (struct pthread_request): For free use pthread_t
408 instead of pthread_descr.
409 * join.c (pthread_join): Pass thread_id, not th to manager.
410 (pthread_detach): Likewise.
411 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
412 (pthread_exited): Remove detached queue code.
413 (pthread_handle_free): Expect thread ID parameter and use it to
414 validate the thread decsriptor. Don't use detached queue.
415 Patches by Xavier Leroy.
417 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
419 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
420 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
421 __pthread_atfork, __pthread_key_create, __pthread_once.
422 * internals.h: Doc fix.
423 * pthread.c (__pthread_initialize): Define again.
425 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
427 * manager.c (pthread_exited): If thread is not detached put it on
429 (pthread_handle_free): If thread is not on list with living threads
430 search on list with detached threads.
432 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
433 for new definition of pthread_rwlock_t.
435 * spinlock.c: Correct test whether to compile
436 __pthread_compare_and_swap or not.
438 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
440 * attr.c: Finish user stack support. Change locking code to be safe
441 in situations with different priorities.
442 * cancel.c: Likewise.
443 * condvar.c: Likewise.
444 * internals.h: Likewise.
446 * manager.c: Likewise.
448 * pthread.c: Likewise.
449 * ptlongjmp.c: Likewise.
451 * rwlock.c: Likewise.
452 * semaphore.c: Likewise.
453 * semaphore.h: Likewise.
454 * signals.c: Likewise.
455 * spinlock.c: Likewise.
456 * spinlock.h: Likewise.
457 * sysdeps/pthread/pthread.h: Likewise.
458 Patches by Xavier Leroy.
460 * sysdeps/i386/i686/pt-machine.h: New file.
462 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
464 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
465 [sg]et_stackaddr prototypes always available.
467 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
468 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
470 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
472 * manager.c (pthread_free): Undo patch from 980430.
473 Reported by David Wragg <dpw@doc.ic.ac.uk>.
475 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
477 * manager.c: Define __pthread_manager_adjust_prio and use it to
478 increase priority when needed.
479 * internals.h: Add prototype for __pthread_manager_adjust_prio.
480 * mutex.c: Optimize mutexes to wake up only one thread.
481 * pthread.c: Move PID of manager for global variable in structure
483 Patches by Xavier Leroy.
485 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
487 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
489 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
491 * attr.c: Correct typo.
493 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
495 * manager.c (pthread_free): Unmap guard before the stack.
496 Patch by Matthias Urlichs.
498 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
500 * manager.c (pthread_free): Detect already free child.
501 Patch by Xavier Leroy, reported by Matthias Urlichs.
503 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
505 * Makefile (linuxthreads-version): Renamed back from
508 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
510 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
513 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
515 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
516 * internals.h: Add definitions for new spinlock implementation.
517 * ptlongjmp.c: New file.
518 * spinlock.c: New file.
519 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
520 new function __pthread_acquire to prevent deadlocks with thread
521 with different priorities.
522 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
524 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
526 * manager.c (__pthread_manager): Reduce first argument to select
527 to include just the needed file descriptor.
529 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
531 * manager.c: Fix last patch which caused core dumps.
533 * pthread.c: Correctly handle missing SIGRTMIN.
535 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
537 * libpthread.map: Add __libc_internal_tsd_get and
538 __libc_internal_tsd_set. Add missing cancelable functions. Export
539 libc internal versions of the cancelable functions.
541 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
543 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
545 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
547 * attr.c: Implement pthread_attr_[gs]etguardsize,
548 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
549 Change pthread_attr_init to have two interfaces.
550 * internals.h (struct _pthread_descr_struct): Add new fields for
552 * libpthread.map: Add names in GLIBC_2.1 section.
553 * manager.c (pthread_handle_create): Implement guardsize and
555 (pthread_free): Likewise.
556 * pthread.c (pthread_create): Add new interface for changed
558 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
559 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
562 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
564 * manager.c: Enable resetting of the thread scheduling policy
565 to SCHED_OTHER when the parent thread has a different one.
567 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
569 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
570 _POSIX_ASYNCHRONOUS_IO.
572 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
574 * mutex.c: Implement new mutex types.
576 * internals.h: Include <signal.h>.
578 * libpthread.map: Add __erno_location and __h_errno_location.
580 * errno.c: Return pointer to variable actually in use. This might
581 not be the one in the thread structure.
582 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
584 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
585 of manager thread structure.
586 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
588 * pthread.c: Adapt initializer for thread structures.
589 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
590 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
591 current thread to global variables.
593 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
595 * rwlock.c: New file.
596 * Makefile (libpthread-routines): Add rwlock.
597 * sysdeps/pthread/pthread.h: Define data structures and declare
599 * libpthread.map: Add new functions.
601 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
603 * sysdeps/arm/pt-machine.h: New file; add ARM support.
604 * sysdeps/arm/Implies: likewise.
605 * README: Document it.
607 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
609 * signals.c: Remove unneeded initializer for sigwaited, saving a
612 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
614 * semaphore.c (sem_init): Set sem_spinlock only if available.
616 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
618 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
619 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
621 * Makefile: Update from LinuxThreads 0.7.
622 * internals.h. Likewise.
623 * manager.c: Likewise.
625 * pthread.c: Likewise.
626 * signals.c: Likewise.
627 * specific.c: Likewise.
628 * Examples/ex3.c: Likewise.
630 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
632 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
635 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
637 * wrapsyscall.c: Add socket functions which are also cancelation
640 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
642 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
643 New functions for fast thread specific data within libc.
645 * internals.h: Add new array p_libc_specific to struct
646 _pthread_descr_struct.
648 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
650 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
652 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
653 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
655 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
657 * internals.h (struct _pthread_descr_struct): Add definitions for
658 two-level specific key handling.
659 * manager.c (pthread_handle_create): Initialize specific memory array.
660 * specific.c: Implement two-level key handling.
661 * weaks.c: Don't provide dummy key handling.
662 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
663 Add definition of __libc_key_t.
664 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
666 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
667 PTHREAD_DESTRUCTOR_ITERATIONS.
669 * manager.c (pthread_handle_create): Compare mmap result with
672 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
673 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
675 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
677 sysdeps/sparc -> sysdeps/sparc/sparc32
678 sysdeps/sparc64 -> sysdeps/sparc/sparc64
680 * internals.h: Change definition of THREAD_SELF to be an expression,
681 not a statement that did a return.
682 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
683 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
684 Follow Solaris and use a "system reserved" register (%g6) to hold
685 the thread descriptor.
686 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
688 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
690 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
691 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
692 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
694 * semaphore.c: Include spinlock.h only when needed.
696 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
697 keys for entries not in use.
699 * weaks.c: Implement key handling functions for real.
701 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
703 Initial sparc64-linux support:
704 * linuxthreads/sysdeps/sparc64/Implies: New file.
705 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
707 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
709 * semaphore.c: Include spinlock.h at correct place.
712 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
714 The Great Bit File Move:
715 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
716 * sysdeps/powerpc/semaphorebits.h: Likewise.
717 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
718 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
719 * sysdeps/pthread/libc-lock.h: -> bits/
720 * sysdeps/pthread/stdio-lock.h: Likewise.
721 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
722 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
723 * semaphore.h: Likewise.
724 * sysdeps/pthread/pthread.h: Likewise.
726 * lockfile.c: <foo.h> -> <bits/foo.h>.
727 * semaphore.h: Likewise.
729 * Makefile: (headers): foo.h -> bits/foo.h.
730 * sysdeps/pthread/Makefile: Likewise.
732 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
734 * semaphore.c (sem_init): Set sem_spinlock only if available.
736 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
739 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
741 Update from LinuxThreads 0.6.
743 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
744 and __sched_get_priority_min instead of names without `__'.
746 * manager.c: Rewrite large parts to implement opaque pthread_t.
748 * cancel.c: Adapt for opaque pthread_t type.
749 * condvar.c: Likewise.
753 * pthread.c: Likewise.
754 * signals.c: Likewise.
755 * specific.c: Likewise.
756 * restart.h: Likewise.
758 * Examples/ex3.c: Likewise.
759 * Examples/ex4.c: Likewise.
760 * sysdeps/pthread/pthread.h: Likewise.
762 * pthread.c: Accumulate time for all threads in thread manager.
764 * semaphore.c: Implement fallback implementation for architectures
765 sometimes missing compare-exchange operations.
767 * cancel.c (pthread_cancel): Validate handle argument.
768 * join.c (pthread_join): Likewise.
769 (pthread_detach): Likewise.
770 * signals.c (pthread_kill): Likewise.
772 * spinlock.h (acquire): Use __sched_yield not sched_yield.
774 * queue.h (enqueue): Enqueue thread according to priority.
776 * internals.c (struct pthread_start_args): New struct for passing
777 args to cloning function.
778 (struct _pthread): Rename to _pthread_descr_struct and adapt for
781 * Examples/Makefile (clean): Pass -f option to rm.
783 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
784 and define TEST_FOR_COMPARE_AND_SWAP.
785 * sysdeps/i386/i486/pt-machine.h: Removed.
787 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
790 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
792 * restart.h (suspend): Clear p_signal before suspending.
793 (suspend_with_cancellation): Likewise.
794 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
796 * weaks.c: Make __pthread_key_create return 1.
797 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
798 __libc_getspecific, __libc_setspecific, and __libc_key_t.
799 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
802 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
804 * sysdeps/sparc/pt-machine (RELEASE): Fix.
806 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
808 * sysdeps/powerpc/Implies: Added.
809 * sysdeps/powerpc/pt-machine.h: Added.
810 * sysdeps/powerpc/semaphorebits.h: Added.
812 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
814 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
816 (__pthread_manager_thread): Likewise.
817 Reported by Andreas Jaeger.
819 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
821 Since sigset_t no longer fits in a register, we can't pass in the
822 thread's initial mask so easily. Take this opportunity to simplify
823 the clone implementation by only accepting a single void* argument.
825 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
826 in the thread struct instead of as arguments through clone.
827 (pthread_start_thread): Look for them there.
828 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
829 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
830 * linuxthreads/pthread.c (pthread_initialize_manager): Revise