1 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
3 * spinlock.c (__pthread_unlock): Don"t crash if called for an
4 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
6 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
9 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
11 * Examples/ex3.c: Wait until all threads are started before
12 searching for the number to avoid race condition on very fast
15 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
17 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
18 declaration since it's not needed.
20 * sysdeps/pthread/pthread.h: Move internal functions to ...
21 * internals.h: ...here.
23 1998-12-02 H.J. Lu <hjl@gnu.org>
25 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
27 (__pthread_sig_cancel): Likewise.
29 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
31 * wrapsyscall.c: Include <sys/mman.h> for msync,
32 <stdlib.h> for system and <termios.h> for tcdrain prototype.
33 Correct msync declaration.
35 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
37 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
38 __libc_tsd_set): New macros for new interface.
39 * no-tsd.c: New file, provide uninitialized defns of
40 __libc_internal_tsd_get and __libc_internal_tsd_set.
41 * Makefile (routines): Add no-tsd.
43 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
45 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
46 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
47 __libc_internal_tsd_set): Move decls to ...
48 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
51 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
52 __libc_internal_tsd_set): Make these pointers to functions, not
53 functions; remove #pragma weak decls for them.
54 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
55 Define static functions and initialized pointers to them.
57 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
59 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
60 (CFLAGS-specific.c): Likewise.
61 (CFLAGS-pthread.c): Likewise.
62 (CFLAGS-ptfork.c): Likewise.
63 (CFLAGS-cancel.c): Likewise.
64 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
65 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
67 * mutex.c (pthread_mutex_init): Define as strong symbol.
68 (pthread_mutex_destroy): Likewise.
69 (pthread_mutex_trylock): Likewise.
70 (pthread_mutex_lock): Likewise.
71 (pthread_mutex_unlock): Likewise.
72 (pthread_mutexattr_init): Likewise.
73 (pthread_mutexattr_destroy): Likewise.
74 (pthread_once): Likewise.
75 * ptfork.c (pthread_atfork): Likewise.
76 * specific.c (pthread_key_create): Likewise.
77 (pthread_setspecific): Likewise.
78 (pthread_getspecific): Likewise.
80 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
82 * linuxthreads.texi: Fix punctuation after xref.
84 1998-11-10 H.J. Lu <hjl@gnu.org>
86 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
87 if it is defined in <linux/limits.h>.
89 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
91 * spinlock.h (__pthread_trylock): Define inline.
92 (__pthread_lock): Add extra parameter to declaration. Declare
93 using internal_function.
94 (__pthread_unlock): Declare using internal_function.
95 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
96 of local variable self. Avoid recomputing self. Define using
98 (__pthread_trylock): Remove.
99 (__pthread_unlock): Define using internal_function.
100 * cancel.c: Adjust for __pthread_lock interface change. Use already
101 computed self value is possible.
102 * condvar.c: Likewise.
104 * manager.c: Likewise.
106 * pthread.c: Likewise.
107 * rwlock.c: Likewise.
108 * semaphore.c: Likewise.
109 * signals.c: Likewise.
111 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
113 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
114 __ to field names of the struct.
115 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
117 (pthread_attr_t): Likewise.
118 (pthread_cond_t): Likewise.
119 (pthread_condattr_t): Likewise.
120 (pthread_mutex_t): Likewise.
121 (pthread_mutexattr_t): Likewise.
122 (pthread_rwlock_t): Likewise.
123 (pthread_rwlockattr_t): Likewise.
124 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
125 * cancel.c: Likewise.
126 * condvar.c: Likewise.
127 * manager.c: Likewise.
129 * pthread.c: Likewise.
130 * ptlongjmp.c: Likewise.
131 * rwlock.c: Likewise.
132 * spinlock.c: Likewise.
134 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
136 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
139 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
142 * Makefile (libpthread-routines): Add pt-machine.
143 * pt-machine.c: New file.
144 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
145 yet defined. Use PT_EI in extern inline definitions.
146 * sysdeps/arm/pt-machine.h: Likewise.
147 * sysdeps/i386/pt-machine.h: Likewise.
148 * sysdeps/i386/i686/pt-machine.h: Likewise.
149 * sysdeps/m68k/pt-machine.h: Likewise.
150 * sysdeps/mips/pt-machine.h: Likewise.
151 * sysdeps/powerpc/pt-machine.h: Likewise.
152 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
153 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
155 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
157 * semaphore.h: Include <sys/types.h> so that _pthread_descr
160 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
162 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
164 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
166 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
168 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
169 multiple inclusion guard.
171 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
173 * signals.c (sigaction): Check that sig is less than NSIG to avoid
174 array index overflow.
176 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
178 * sysdeps/pthread/semaphore.h: New file.
180 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
182 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
183 _LIBC_TSD_KEY_DL_ERROR.
185 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
187 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
188 * sysdeps/i386/pt-machine.h: Likewise.
189 Suggested by Roland McGrath.
191 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
193 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
194 access thread data with non-constant offsets.
195 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
198 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
199 THREAD_SETMEM_NC definitions.
201 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
203 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
205 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
207 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
209 (struct _pthread_descr_struct): Add p_self and p_nr field.
210 * manager.c (__pthread_handles): Define second element to point
212 (__pthread_handles_num): Initialize to 2.
213 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
214 (pthread_start_thread): Likewise.
215 (pthread_handle_create): Start search for free slot at entry 2.
216 Initialize new fields p_self and p_nr.
217 Call __clone with CLONE_PTRACE if available.
218 (pthread_free): Call FREE_THREAD_SELF if available.
219 * pthread.c (__pthread_initial_thread): Initialize new fields.
220 (__pthread_manager_thread): Likewise.
221 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
223 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
224 elements of the thread descriptor.
225 * condvar.c: Likewise.
228 * manager.c: Likewise.
229 * pthread.c: Likewise.
230 * ptlongjmp.c: Likewise.
231 * semaphore.c: Likewise.
232 * signals.c: Likewise.
233 * specific.c: Likewise.
234 * spinlock.c: Likewise.
236 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
238 * sysdeps/i386/useldt.h: New file.
239 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
241 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
242 THREAD_SETMEM using __thread_self.
243 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
245 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
247 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
248 turned out that we didn't need to queue after all.
250 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
252 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
253 and wastes space; correct types.
255 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
257 * signals.c (sigaction): Handle NULL argument.
259 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
261 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
264 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
266 * Makefile (linuxthreads-version): Extract correct number from
269 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
271 * Banner: Bump version number to 0.8
272 * FAQ.html: Many updates, in particular w.r.t. debugging.
273 * manager.c: Support for non-default stacksize for
274 LinuxThreads-allocated stacks;
275 don't use guard pages for stacks with default size, rely on
276 rlimit(RLIMIT_STACK) instead (it's cheaper).
278 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
279 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
280 * condvar.c: Likewise.
281 * internals.h: Likewise.
282 * restart.h: Likewise.
283 * signals.c: Likewise.
284 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
286 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
288 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
289 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
290 * Versions: Put __pthread_mutexattr_settype under version
291 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
292 __pthread_mutexattr_gettype.
294 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
296 * sysdeps/pthread/bits/libc-lock.h: Make
297 __pthread_mutexattr_settype weak. Don't make
298 __pthread_mutexattr_setkind_np weak.
300 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
302 * manager.c (pthread_handle_create): Check whether sched_setscheduler
303 call can succeed here.
305 * mutex.c: Define __pthread_mutexattr_settype and make
306 __pthread_mutexattr_setkind_np an alias.
307 Likewise for __pthread_mutexattr_gettype.
309 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
311 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
314 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
316 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
318 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
320 * Examples/ex6.c: Include <unistd.h> for usleep.
322 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
324 * Examples/ex4.c (main): Use exit, not pthread_exit.
326 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
328 * Versions: Add __pthread_mutexattr_gettype and
329 __pthread_mutexattr_settype.
330 * lockfile.c: Use __pthread_mutexattr_settype instead of
331 __pthread_mutexattr_setkind_np.
332 * mutex.c: Define __pthread_mutexattr_gettype and
333 __pthread_mutexattr_settype.
335 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
336 __pthread_mutexattr_settype.
337 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
338 Use __pthread_mutexattr_settype.
340 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
342 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
343 * mutex.c: Define weak alias pthread_mutexattr_gettype and
344 pthread_mutexattr_settype.
345 * sysdeps/pthread/pthread.h: Declare these functions.
346 Move pthread_sigmask and pthread_kill declaration in separate header.
347 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
349 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
351 * Makefile: Add rules to compile and run tests.
352 * Examples/ex1.c: Little changes to fix warnings.
353 * Examples/ex2.c: Likewise.
354 * Examples/ex3.c: Likewise.
355 * Examples/ex4.c: Likewise.
356 * Examples/ex5.c: Likewise.
357 * Examples/ex6.c: New file.
359 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
361 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
363 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
365 * attr.c: Include <string.h>.
367 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
369 * attr.c: Include errno.h. Use memcpy to copy sched_param.
370 * internals.h: Include limits.h.
371 * manager.c: Use memcpy to copy sched_param.
372 * ptfork.c: Include errno.h.
373 * pthread.c: Likewise.
374 * semaphore.c: Likewise.
375 * specific.c: Likewise.
376 * spinlock.h: Likewise.
377 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
378 type definition to ...
379 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
381 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
383 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
385 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
386 as macros as demanded in POSIX.1, Annex C.
388 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
390 * internals.h (struct pthread_request): For free use pthread_t
391 instead of pthread_descr.
392 * join.c (pthread_join): Pass thread_id, not th to manager.
393 (pthread_detach): Likewise.
394 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
395 (pthread_exited): Remove detached queue code.
396 (pthread_handle_free): Expect thread ID parameter and use it to
397 validate the thread decsriptor. Don't use detached queue.
398 Patches by Xavier Leroy.
400 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
402 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
403 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
404 __pthread_atfork, __pthread_key_create, __pthread_once.
405 * internals.h: Doc fix.
406 * pthread.c (__pthread_initialize): Define again.
408 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
410 * manager.c (pthread_exited): If thread is not detached put it on
412 (pthread_handle_free): If thread is not on list with living threads
413 search on list with detached threads.
415 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
416 for new definition of pthread_rwlock_t.
418 * spinlock.c: Correct test whether to compile
419 __pthread_compare_and_swap or not.
421 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
423 * attr.c: Finish user stack support. Change locking code to be safe
424 in situations with different priorities.
425 * cancel.c: Likewise.
426 * condvar.c: Likewise.
427 * internals.h: Likewise.
429 * manager.c: Likewise.
431 * pthread.c: Likewise.
432 * ptlongjmp.c: Likewise.
434 * rwlock.c: Likewise.
435 * semaphore.c: Likewise.
436 * semaphore.h: Likewise.
437 * signals.c: Likewise.
438 * spinlock.c: Likewise.
439 * spinlock.h: Likewise.
440 * sysdeps/pthread/pthread.h: Likewise.
441 Patches by Xavier Leroy.
443 * sysdeps/i386/i686/pt-machine.h: New file.
445 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
447 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
448 [sg]et_stackaddr prototypes always available.
450 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
451 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
453 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
455 * manager.c (pthread_free): Undo patch from 980430.
456 Reported by David Wragg <dpw@doc.ic.ac.uk>.
458 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
460 * manager.c: Define __pthread_manager_adjust_prio and use it to
461 increase priority when needed.
462 * internals.h: Add prototype for __pthread_manager_adjust_prio.
463 * mutex.c: Optimize mutexes to wake up only one thread.
464 * pthread.c: Move PID of manager for global variable in structure
466 Patches by Xavier Leroy.
468 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
470 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
472 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
474 * attr.c: Correct typo.
476 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
478 * manager.c (pthread_free): Unmap guard before the stack.
479 Patch by Matthias Urlichs.
481 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
483 * manager.c (pthread_free): Detect already free child.
484 Patch by Xavier Leroy, reported by Matthias Urlichs.
486 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
488 * Makefile (linuxthreads-version): Renamed back from
491 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
493 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
496 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
498 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
499 * internals.h: Add definitions for new spinlock implementation.
500 * ptlongjmp.c: New file.
501 * spinlock.c: New file.
502 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
503 new function __pthread_acquire to prevent deadlocks with thread
504 with different priorities.
505 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
507 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
509 * manager.c (__pthread_manager): Reduce first argument to select
510 to include just the needed file descriptor.
512 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
514 * manager.c: Fix last patch which caused core dumps.
516 * pthread.c: Correctly handle missing SIGRTMIN.
518 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
520 * libpthread.map: Add __libc_internal_tsd_get and
521 __libc_internal_tsd_set. Add missing cancelable functions. Export
522 libc internal versions of the cancelable functions.
524 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
526 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
528 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
530 * attr.c: Implement pthread_attr_[gs]etguardsize,
531 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
532 Change pthread_attr_init to have two interfaces.
533 * internals.h (struct _pthread_descr_struct): Add new fields for
535 * libpthread.map: Add names in GLIBC_2.1 section.
536 * manager.c (pthread_handle_create): Implement guardsize and
538 (pthread_free): Likewise.
539 * pthread.c (pthread_create): Add new interface for changed
541 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
542 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
545 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
547 * manager.c: Enable resetting of the thread scheduling policy
548 to SCHED_OTHER when the parent thread has a different one.
550 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
552 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
553 _POSIX_ASYNCHRONOUS_IO.
555 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
557 * mutex.c: Implement new mutex types.
559 * internals.h: Include <signal.h>.
561 * libpthread.map: Add __erno_location and __h_errno_location.
563 * errno.c: Return pointer to variable actually in use. This might
564 not be the one in the thread structure.
565 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
567 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
568 of manager thread structure.
569 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
571 * pthread.c: Adapt initializer for thread structures.
572 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
573 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
574 current thread to global variables.
576 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
578 * rwlock.c: New file.
579 * Makefile (libpthread-routines): Add rwlock.
580 * sysdeps/pthread/pthread.h: Define data structures and declare
582 * libpthread.map: Add new functions.
584 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
586 * sysdeps/arm/pt-machine.h: New file; add ARM support.
587 * sysdeps/arm/Implies: likewise.
588 * README: Document it.
590 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
592 * signals.c: Remove unneeded initializer for sigwaited, saving a
595 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
597 * semaphore.c (sem_init): Set sem_spinlock only if available.
599 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
601 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
602 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
604 * Makefile: Update from LinuxThreads 0.7.
605 * internals.h. Likewise.
606 * manager.c: Likewise.
608 * pthread.c: Likewise.
609 * signals.c: Likewise.
610 * specific.c: Likewise.
611 * Examples/ex3.c: Likewise.
613 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
615 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
618 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
620 * wrapsyscall.c: Add socket functions which are also cancelation
623 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
625 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
626 New functions for fast thread specific data within libc.
628 * internals.h: Add new array p_libc_specific to struct
629 _pthread_descr_struct.
631 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
633 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
635 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
636 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
638 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
640 * internals.h (struct _pthread_descr_struct): Add definitions for
641 two-level specific key handling.
642 * manager.c (pthread_handle_create): Initialize specific memory array.
643 * specific.c: Implement two-level key handling.
644 * weaks.c: Don't provide dummy key handling.
645 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
646 Add definition of __libc_key_t.
647 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
649 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
650 PTHREAD_DESTRUCTOR_ITERATIONS.
652 * manager.c (pthread_handle_create): Compare mmap result with
655 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
656 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
658 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
660 sysdeps/sparc -> sysdeps/sparc/sparc32
661 sysdeps/sparc64 -> sysdeps/sparc/sparc64
663 * internals.h: Change definition of THREAD_SELF to be an expression,
664 not a statement that did a return.
665 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
666 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
667 Follow Solaris and use a "system reserved" register (%g6) to hold
668 the thread descriptor.
669 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
671 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
673 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
674 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
675 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
677 * semaphore.c: Include spinlock.h only when needed.
679 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
680 keys for entries not in use.
682 * weaks.c: Implement key handling functions for real.
684 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
686 Initial sparc64-linux support:
687 * linuxthreads/sysdeps/sparc64/Implies: New file.
688 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
690 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
692 * semaphore.c: Include spinlock.h at correct place.
695 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
697 The Great Bit File Move:
698 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
699 * sysdeps/powerpc/semaphorebits.h: Likewise.
700 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
701 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
702 * sysdeps/pthread/libc-lock.h: -> bits/
703 * sysdeps/pthread/stdio-lock.h: Likewise.
704 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
705 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
706 * semaphore.h: Likewise.
707 * sysdeps/pthread/pthread.h: Likewise.
709 * lockfile.c: <foo.h> -> <bits/foo.h>.
710 * semaphore.h: Likewise.
712 * Makefile: (headers): foo.h -> bits/foo.h.
713 * sysdeps/pthread/Makefile: Likewise.
715 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
717 * semaphore.c (sem_init): Set sem_spinlock only if available.
719 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
722 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
724 Update from LinuxThreads 0.6.
726 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
727 and __sched_get_priority_min instead of names without `__'.
729 * manager.c: Rewrite large parts to implement opaque pthread_t.
731 * cancel.c: Adapt for opaque pthread_t type.
732 * condvar.c: Likewise.
736 * pthread.c: Likewise.
737 * signals.c: Likewise.
738 * specific.c: Likewise.
739 * restart.h: Likewise.
741 * Examples/ex3.c: Likewise.
742 * Examples/ex4.c: Likewise.
743 * sysdeps/pthread/pthread.h: Likewise.
745 * pthread.c: Accumulate time for all threads in thread manager.
747 * semaphore.c: Implement fallback implementation for architectures
748 sometimes missing compare-exchange operations.
750 * cancel.c (pthread_cancel): Validate handle argument.
751 * join.c (pthread_join): Likewise.
752 (pthread_detach): Likewise.
753 * signals.c (pthread_kill): Likewise.
755 * spinlock.h (acquire): Use __sched_yield not sched_yield.
757 * queue.h (enqueue): Enqueue thread according to priority.
759 * internals.c (struct pthread_start_args): New struct for passing
760 args to cloning function.
761 (struct _pthread): Rename to _pthread_descr_struct and adapt for
764 * Examples/Makefile (clean): Pass -f option to rm.
766 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
767 and define TEST_FOR_COMPARE_AND_SWAP.
768 * sysdeps/i386/i486/pt-machine.h: Removed.
770 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
773 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
775 * restart.h (suspend): Clear p_signal before suspending.
776 (suspend_with_cancellation): Likewise.
777 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
779 * weaks.c: Make __pthread_key_create return 1.
780 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
781 __libc_getspecific, __libc_setspecific, and __libc_key_t.
782 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
785 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
787 * sysdeps/sparc/pt-machine (RELEASE): Fix.
789 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
791 * sysdeps/powerpc/Implies: Added.
792 * sysdeps/powerpc/pt-machine.h: Added.
793 * sysdeps/powerpc/semaphorebits.h: Added.
795 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
797 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
799 (__pthread_manager_thread): Likewise.
800 Reported by Andreas Jaeger.
802 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
804 Since sigset_t no longer fits in a register, we can't pass in the
805 thread's initial mask so easily. Take this opportunity to simplify
806 the clone implementation by only accepting a single void* argument.
808 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
809 in the thread struct instead of as arguments through clone.
810 (pthread_start_thread): Look for them there.
811 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
812 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
813 * linuxthreads/pthread.c (pthread_initialize_manager): Revise