1 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
3 * manager.c (pthread_allocate_stack): Correct computation of
4 new_thread_bottom. Correct handling of stack size and when the
5 rlimit method to guard for stack growth is used.
6 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
7 minus one pagesize (not two).
9 1999-12-03 Andreas Jaeger <aj@suse.de>
11 * Versions: Add __res_state with version GLIBC_2.2.
13 * errno.c (__res_state): New function to return thread specific
16 * pthread.c (pthread_initialize): Initialize p_resp.
17 (__pthread_reset_main_thread): Also set p_resp.
19 * manager.c (pthread_handle_create): Initialize p_resp.
21 * internals.h: Add thread specific resolver state.
22 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
24 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
26 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
28 * sysdeps/i386/i686/pt-machine.h: Likewise.
29 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
31 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
33 * manager.c (pthread_start_thread_event): Initialize p_pid already
36 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
38 * internals.h: Add prototype for __pthread_manager_event.
39 * manager.c (__pthread_manager_event): New function.
40 (pthread_start_thread_event): Correct computation of self.
42 * pthread.c (__pthread_manager_thread): Initialize p_lock.
43 (__pthread_initialize_manager): Respect event flags also for creation
44 of the manager thread.
46 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
48 * pthread.c (__pthread_initialize_manager): Initialize
49 __pthread_manager_thread.p_tid.
51 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
53 * internals.h: Declare __pthread_last_event.
54 * manager.c: Define __pthread_last_event.
55 (pthread_handle_create): Set __pthread_last_event.
56 (pthread_exited): Likewise.
57 * join.c (pthread_exit): Likewise.
59 * Makefile (libpthread-routines): Add events.
61 * internals.h: Protect against multiple inclusion.
62 Include thread_dbP.h header.
63 (struct _pthread_descr_struct): Add new fields p_report_events and
65 Declare event reporting functions.
66 * join.c (pthread_exit): Signal event if this is wanted.
67 * manager.c (__pthread_threads_events): New variable.
68 (pthread_handle_create): Take new parameters with event information.
69 Signal TD_CREATE event if wanted.
70 (__pthread_manager): Adjust pthread_handle_create call.
71 (pthread_start_thread_event): New function. Block until manager is
72 finished and then call pthread_start_thread.
73 (pthread_exited): Signal TD_REAP event if wanted.
75 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
77 * restart.h (suspend_with_cancellation): Rewrite as a macro.
79 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
81 1999-10-25 Andreas Jaeger <aj@suse.de>
83 * internals.h: Remove K&R compatibility.
85 * semaphore.h: Likewise.
86 * signals.c: Likewise.
87 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
88 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
91 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
93 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
94 and pthread_handle_sigcancel with functions that restore
95 %gs from the signal context. For each signal handling function,
96 two wrappers are required, one for a non-RT signal and one for
98 * linuxthreads/signal.c: For i386, add code to restore %gs
99 from the signal context in pthread_sighandler and
100 pthread_sighandler_rt.
102 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
104 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
106 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
108 * pthread.c (__pthread_initial_thread): Pass argument to
109 PTHREAD_START_ARGS_INITIALIZER.
110 (__pthread_manager_thread): Likewise.
112 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
115 * manager.c (pthread_handle_create): Remove p_startfct initialization.
117 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
119 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
121 * internals.h: Correct return types for __libc_read and __libc_write.
123 1999-10-09 Andreas Jaeger <aj@suse.de>
125 * internals.h: Add __new_sem_post to get prototype in
126 manager.c; include semaphore.h for needed types.
128 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
130 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
131 directly instead of calling sem_post which should not be necessary
132 but is faster and might help in some case to work around problems.
133 Patch by khendricks@ivey.uwo.ca [libc/1382].
135 1999-10-08 Andreas Schwab <schwab@suse.de>
137 * sysdeps/pthread/Subdirs: New file.
140 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
143 * internals.h (struct _pthread_descr_struct): Add p_startfct.
144 * manager.c (pthread_handle_create): Initialize p_startfct.
145 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
147 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
149 * manager.c (__linuxthreads_pthread_threads_max): New variable.
150 * specific.c (__linuxthreads_pthread_keys_max): New variable.
151 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
153 * condvar.c (pthread_cond_timedwait_relative): Never return with
154 EINTR. Patch by Andreas Schwab.
156 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
158 * signals.c (sigaction): Correct last patch. Don't select
159 pthread_sighandler_rt based on the signal number but instead of
162 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
164 * specific.c: Move definitions of struct pthread_key_struct and
165 destr_function to ...
166 * internals.h: ...here.
168 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
170 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
171 this instead of pthread_handle_sigrestart if the signal is an RT
174 * signals.c: Handle passing through of sighandler arguments also
175 for real-time signals.
177 1999-09-03 Andreas Schwab <schwab@suse.de>
179 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
181 (__vfork): New function, alias vfork.
182 * Versions: Export __fork, vfork, and __vfork in libpthread.
184 1999-08-23 Andreas Schwab <schwab@suse.de>
186 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
187 call to signal handler.
189 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
191 * pthread.c (__pthread_reset_main_thread): Undo last change.
192 (__pthread_kill_other_threads_np): Reset signal handlers for the
193 signals we used in the thread implementation here.
195 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
197 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
198 for the signals we used in the thread implementation [PR libc/1234].
200 * Versions: Export __pthread_kill_other_threads_np from libpthread
203 * signals.c: Pass sigcontext through wrapper to the user function.
205 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
207 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
208 __libc_internal_tsd_set.
210 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
212 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
215 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
217 * internals.h: Align _pthread_descr_struct to 32 bytes.
218 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
221 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
223 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
226 1999-07-09 Cristian Gafton <gafton@redhat.com>
228 * Makefile (libpthread-routines): Add oldsemaphore routine.
229 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
230 sem_trywait, and sem_wait to GLIBC_2.1.
231 * oldsemaphore.c: New file.
232 * semaphore.c: Add default_symbol_versions for the changed functions.
233 (__new_sem_init): Rename from sem_init.
234 (__new_sem_post): Rename from sem_post.
235 (__new_sem_wait): Rename from sem_wait.
236 (__new_sem_trywait): Rename from sem_trywait.
237 (__new_sem_getvalue): Rename from sem_getvalue.
238 (__new_sem_destroy): Rename from sem_destroy.
240 1999-06-23 Robey Pointer <robey@netscape.com>
242 * internals.h: Added p_nextlock entry to separate queueing for a
243 lock from queueing for a CV (sometimes a thread queues on a lock
244 to serialize removing itself from a CV queue).
245 * pthread.c: Added p_nextlock to initializers.
246 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
248 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
250 * manager.c (pthread_handle_create): Free mmap region after stack
251 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
253 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
255 * man/pthread_cond_init.man: Correct example.
256 Reported by Tomas Berndtsson <tomas@nocrew.org>.
258 * linuxthreads.texi (Condition Variables): Likewise.
260 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
262 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
263 casx not cas, also successful casx returns the old value in rd
264 and not the new value.
266 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
268 * manager.c: If pthread_create() is given a NULL attribute
269 and the thread manager runs with a realtime policy, set the
270 scheduling policy of the newly created thread back to SCHED_OTHER.
271 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
272 initialize the schedpolicy field of new_thread->p_start_args
273 to that of the calling thread.
275 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
277 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
278 instruction does not allow memory element to use offset.
280 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
282 * manager.c (pthread_allocate_stack): Optimize initialization of new
285 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
286 Don't use initializer since it is all zeroes.
287 (__libc_once_define): Likewise.
289 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
291 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
292 doesn't exist anymore.
293 * sysdeps/i386/Implies: Likewise.
294 * sysdeps/m68k/Implies: Likewise.
295 * sysdeps/mips/Implies: Likewise.
296 * sysdeps/powerpc/Implies: Likewise.
297 * sysdeps/sparc/sparc32/Implies: Likewise.
298 * sysdeps/sparc/sparc64/Implies: Likewise.
300 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
302 * sysdeps/alpha/bits/semaphore.h: Removed.
303 * sysdeps/powerpc/bits/semaphore.h: Removed.
304 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
305 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
306 * Makefile (headers): Remove bits/semaphore.h.
308 * semaphore.h: Define _pthread_descr if necessary.
309 Don't include limits.h. Define SEM_VALUE_MAX directly.
311 (sem_t): Protect element names with leading __.
312 Add declarations for sem_close, sem_open, and sem_unlink.
313 * semaphore.c: Adjust all functions for new element names.
314 Define sem_close, sem_open, and sem_unlink.
315 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
317 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
320 1999-03-16 H.J. Lu <hjl@gnu.org>
322 * specific.c (pthread_key_delete): Check th->p_terminated to see
323 if the thread is running.
325 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
326 Added to GLIBC_2.0 for libc.so.
328 1999-02-12 H.J. Lu <hjl@gnu.org>
330 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
331 __libc_allocate_rtsig): Added to GLIBC_2.1.
333 * internals.h (DEFAULT_SIG_RESTART): Removed.
334 (DEFAULT_SIG_CANCEL): Removed.
336 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
337 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
338 (__pthread_sig_restart, __pthread_sig_cancel,
339 __pthread_sig_debug): Initialized.
340 (pthread_initialize): Call init_rtsigs () to initialize
343 1999-02-03 H.J. Lu <hjl@gnu.org>
345 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
346 Don't restart the thread which sent REQ_DEBUG.
347 (pthread_start_thread): Check if __pthread_sig_debug > 0
350 * pthread.c (__pthread_initialize_manager): Suspend ourself
351 after sending __pthread_sig_debug to gdb instead of
352 __pthread_sig_cancel.
354 1999-01-24 H.J. Lu <hjl@gnu.org>
356 * manager.c (__pthread_manager): Delete __pthread_sig_debug
357 from mask if __pthread_sig_debug > 0.
358 (pthread_handle_create): Increment __pthread_handles_num.
360 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
361 * pthread.c (__pthread_initialize_manager): Likewise.
363 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
364 instead of __libc_allocate_rtsig (2).
365 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
366 instead of __pthread_sig_cancel.
367 (pthread_handle_sigdebug): Fix comments.
369 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
371 * manager.c (pthread_allocate_stack): Set
372 __pthread_nonstandard_stacks if user-specified stack is used.
374 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
376 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
377 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
379 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
381 * pthread.c: Use a third signal __pthread_sig_debug distinct
382 from __pthread_sig_cancel to notify gdb when a thread is
384 * manager.c: Likewise.
385 * internals.h: Likewise.
386 * signals.c: The implementation of sigwait(s) assumed that
387 all signals in s have signal handlers already attached.
388 This is not required by the standard, so make it work
389 also if some of the signals have no handlers.
391 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
393 * linuxthreads.texi: Remove pointers from first @node. Move old
394 @node spec inside comment.
396 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
398 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
401 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
403 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
404 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
406 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
408 * manager.c: Threads now send __pthread_sig_cancel on termination.
409 Change clone call and signal masks.
410 * thread.c (pthread_handle_sigrestart): Remove special code for
412 (pthread_handle_sigcancel): In manager thread call
413 __pthread_manager_sighandler.
414 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
415 * sysdeps/i386/i686/pt-machine.h: Likewise.
416 Patches by Xavier Leroy.
418 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
420 * spinlock.c (__pthread_unlock): Don't crash if called for an
421 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
423 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
426 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
428 * Examples/ex3.c: Wait until all threads are started before
429 searching for the number to avoid race condition on very fast
432 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
434 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
435 declaration since it's not needed.
437 * sysdeps/pthread/pthread.h: Move internal functions to ...
438 * internals.h: ...here.
440 1998-12-02 H.J. Lu <hjl@gnu.org>
442 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
444 (__pthread_sig_cancel): Likewise.
446 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
448 * wrapsyscall.c: Include <sys/mman.h> for msync,
449 <stdlib.h> for system and <termios.h> for tcdrain prototype.
450 Correct msync declaration.
452 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
454 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
455 __libc_tsd_set): New macros for new interface.
456 * no-tsd.c: New file, provide uninitialized defns of
457 __libc_internal_tsd_get and __libc_internal_tsd_set.
458 * Makefile (routines): Add no-tsd.
460 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
462 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
463 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
464 __libc_internal_tsd_set): Move decls to ...
465 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
468 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
469 __libc_internal_tsd_set): Make these pointers to functions, not
470 functions; remove #pragma weak decls for them.
471 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
472 Define static functions and initialized pointers to them.
474 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
476 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
477 (CFLAGS-specific.c): Likewise.
478 (CFLAGS-pthread.c): Likewise.
479 (CFLAGS-ptfork.c): Likewise.
480 (CFLAGS-cancel.c): Likewise.
481 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
482 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
484 * mutex.c (pthread_mutex_init): Define as strong symbol.
485 (pthread_mutex_destroy): Likewise.
486 (pthread_mutex_trylock): Likewise.
487 (pthread_mutex_lock): Likewise.
488 (pthread_mutex_unlock): Likewise.
489 (pthread_mutexattr_init): Likewise.
490 (pthread_mutexattr_destroy): Likewise.
491 (pthread_once): Likewise.
492 * ptfork.c (pthread_atfork): Likewise.
493 * specific.c (pthread_key_create): Likewise.
494 (pthread_setspecific): Likewise.
495 (pthread_getspecific): Likewise.
497 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
499 * linuxthreads.texi: Fix punctuation after xref.
501 1998-11-10 H.J. Lu <hjl@gnu.org>
503 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
504 if it is defined in <linux/limits.h>.
506 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
508 * spinlock.h (__pthread_trylock): Define inline.
509 (__pthread_lock): Add extra parameter to declaration. Declare
510 using internal_function.
511 (__pthread_unlock): Declare using internal_function.
512 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
513 of local variable self. Avoid recomputing self. Define using
515 (__pthread_trylock): Remove.
516 (__pthread_unlock): Define using internal_function.
517 * cancel.c: Adjust for __pthread_lock interface change. Use already
518 computed self value is possible.
519 * condvar.c: Likewise.
521 * manager.c: Likewise.
523 * pthread.c: Likewise.
524 * rwlock.c: Likewise.
525 * semaphore.c: Likewise.
526 * signals.c: Likewise.
528 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
530 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
531 __ to field names of the struct.
532 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
534 (pthread_attr_t): Likewise.
535 (pthread_cond_t): Likewise.
536 (pthread_condattr_t): Likewise.
537 (pthread_mutex_t): Likewise.
538 (pthread_mutexattr_t): Likewise.
539 (pthread_rwlock_t): Likewise.
540 (pthread_rwlockattr_t): Likewise.
541 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
542 * cancel.c: Likewise.
543 * condvar.c: Likewise.
544 * manager.c: Likewise.
546 * pthread.c: Likewise.
547 * ptlongjmp.c: Likewise.
548 * rwlock.c: Likewise.
549 * spinlock.c: Likewise.
551 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
553 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
556 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
559 * Makefile (libpthread-routines): Add pt-machine.
560 * pt-machine.c: New file.
561 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
562 yet defined. Use PT_EI in extern inline definitions.
563 * sysdeps/arm/pt-machine.h: Likewise.
564 * sysdeps/i386/pt-machine.h: Likewise.
565 * sysdeps/i386/i686/pt-machine.h: Likewise.
566 * sysdeps/m68k/pt-machine.h: Likewise.
567 * sysdeps/mips/pt-machine.h: Likewise.
568 * sysdeps/powerpc/pt-machine.h: Likewise.
569 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
570 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
572 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
574 * semaphore.h: Include <sys/types.h> so that _pthread_descr
577 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
579 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
581 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
583 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
585 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
586 multiple inclusion guard.
588 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
590 * signals.c (sigaction): Check that sig is less than NSIG to avoid
591 array index overflow.
593 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
595 * sysdeps/pthread/semaphore.h: New file.
597 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
599 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
600 _LIBC_TSD_KEY_DL_ERROR.
602 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
604 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
605 * sysdeps/i386/pt-machine.h: Likewise.
606 Suggested by Roland McGrath.
608 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
610 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
611 access thread data with non-constant offsets.
612 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
615 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
616 THREAD_SETMEM_NC definitions.
618 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
620 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
622 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
624 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
626 (struct _pthread_descr_struct): Add p_self and p_nr field.
627 * manager.c (__pthread_handles): Define second element to point
629 (__pthread_handles_num): Initialize to 2.
630 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
631 (pthread_start_thread): Likewise.
632 (pthread_handle_create): Start search for free slot at entry 2.
633 Initialize new fields p_self and p_nr.
634 Call __clone with CLONE_PTRACE if available.
635 (pthread_free): Call FREE_THREAD_SELF if available.
636 * pthread.c (__pthread_initial_thread): Initialize new fields.
637 (__pthread_manager_thread): Likewise.
638 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
640 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
641 elements of the thread descriptor.
642 * condvar.c: Likewise.
645 * manager.c: Likewise.
646 * pthread.c: Likewise.
647 * ptlongjmp.c: Likewise.
648 * semaphore.c: Likewise.
649 * signals.c: Likewise.
650 * specific.c: Likewise.
651 * spinlock.c: Likewise.
653 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
655 * sysdeps/i386/useldt.h: New file.
656 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
658 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
659 THREAD_SETMEM using __thread_self.
660 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
662 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
664 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
665 turned out that we didn't need to queue after all.
667 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
669 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
670 and wastes space; correct types.
672 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
674 * signals.c (sigaction): Handle NULL argument.
676 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
678 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
681 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
683 * Makefile (linuxthreads-version): Extract correct number from
686 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
688 * Banner: Bump version number to 0.8
689 * FAQ.html: Many updates, in particular w.r.t. debugging.
690 * manager.c: Support for non-default stacksize for
691 LinuxThreads-allocated stacks;
692 don't use guard pages for stacks with default size, rely on
693 rlimit(RLIMIT_STACK) instead (it's cheaper).
695 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
696 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
697 * condvar.c: Likewise.
698 * internals.h: Likewise.
699 * restart.h: Likewise.
700 * signals.c: Likewise.
701 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
703 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
705 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
706 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
707 * Versions: Put __pthread_mutexattr_settype under version
708 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
709 __pthread_mutexattr_gettype.
711 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
713 * sysdeps/pthread/bits/libc-lock.h: Make
714 __pthread_mutexattr_settype weak. Don't make
715 __pthread_mutexattr_setkind_np weak.
717 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
719 * manager.c (pthread_handle_create): Check whether sched_setscheduler
720 call can succeed here.
722 * mutex.c: Define __pthread_mutexattr_settype and make
723 __pthread_mutexattr_setkind_np an alias.
724 Likewise for __pthread_mutexattr_gettype.
726 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
728 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
731 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
733 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
735 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
737 * Examples/ex6.c: Include <unistd.h> for usleep.
739 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
741 * Examples/ex4.c (main): Use exit, not pthread_exit.
743 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
745 * Versions: Add __pthread_mutexattr_gettype and
746 __pthread_mutexattr_settype.
747 * lockfile.c: Use __pthread_mutexattr_settype instead of
748 __pthread_mutexattr_setkind_np.
749 * mutex.c: Define __pthread_mutexattr_gettype and
750 __pthread_mutexattr_settype.
752 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
753 __pthread_mutexattr_settype.
754 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
755 Use __pthread_mutexattr_settype.
757 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
759 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
760 * mutex.c: Define weak alias pthread_mutexattr_gettype and
761 pthread_mutexattr_settype.
762 * sysdeps/pthread/pthread.h: Declare these functions.
763 Move pthread_sigmask and pthread_kill declaration in separate header.
764 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
766 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
768 * Makefile: Add rules to compile and run tests.
769 * Examples/ex1.c: Little changes to fix warnings.
770 * Examples/ex2.c: Likewise.
771 * Examples/ex3.c: Likewise.
772 * Examples/ex4.c: Likewise.
773 * Examples/ex5.c: Likewise.
774 * Examples/ex6.c: New file.
776 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
778 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
780 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
782 * attr.c: Include <string.h>.
784 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
786 * attr.c: Include errno.h. Use memcpy to copy sched_param.
787 * internals.h: Include limits.h.
788 * manager.c: Use memcpy to copy sched_param.
789 * ptfork.c: Include errno.h.
790 * pthread.c: Likewise.
791 * semaphore.c: Likewise.
792 * specific.c: Likewise.
793 * spinlock.h: Likewise.
794 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
795 type definition to ...
796 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
798 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
800 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
802 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
803 as macros as demanded in POSIX.1, Annex C.
805 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
807 * internals.h (struct pthread_request): For free use pthread_t
808 instead of pthread_descr.
809 * join.c (pthread_join): Pass thread_id, not th to manager.
810 (pthread_detach): Likewise.
811 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
812 (pthread_exited): Remove detached queue code.
813 (pthread_handle_free): Expect thread ID parameter and use it to
814 validate the thread decsriptor. Don't use detached queue.
815 Patches by Xavier Leroy.
817 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
819 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
820 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
821 __pthread_atfork, __pthread_key_create, __pthread_once.
822 * internals.h: Doc fix.
823 * pthread.c (__pthread_initialize): Define again.
825 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
827 * manager.c (pthread_exited): If thread is not detached put it on
829 (pthread_handle_free): If thread is not on list with living threads
830 search on list with detached threads.
832 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
833 for new definition of pthread_rwlock_t.
835 * spinlock.c: Correct test whether to compile
836 __pthread_compare_and_swap or not.
838 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
840 * attr.c: Finish user stack support. Change locking code to be safe
841 in situations with different priorities.
842 * cancel.c: Likewise.
843 * condvar.c: Likewise.
844 * internals.h: Likewise.
846 * manager.c: Likewise.
848 * pthread.c: Likewise.
849 * ptlongjmp.c: Likewise.
851 * rwlock.c: Likewise.
852 * semaphore.c: Likewise.
853 * semaphore.h: Likewise.
854 * signals.c: Likewise.
855 * spinlock.c: Likewise.
856 * spinlock.h: Likewise.
857 * sysdeps/pthread/pthread.h: Likewise.
858 Patches by Xavier Leroy.
860 * sysdeps/i386/i686/pt-machine.h: New file.
862 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
864 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
865 [sg]et_stackaddr prototypes always available.
867 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
868 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
870 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
872 * manager.c (pthread_free): Undo patch from 980430.
873 Reported by David Wragg <dpw@doc.ic.ac.uk>.
875 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
877 * manager.c: Define __pthread_manager_adjust_prio and use it to
878 increase priority when needed.
879 * internals.h: Add prototype for __pthread_manager_adjust_prio.
880 * mutex.c: Optimize mutexes to wake up only one thread.
881 * pthread.c: Move PID of manager for global variable in structure
883 Patches by Xavier Leroy.
885 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
887 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
889 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
891 * attr.c: Correct typo.
893 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
895 * manager.c (pthread_free): Unmap guard before the stack.
896 Patch by Matthias Urlichs.
898 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
900 * manager.c (pthread_free): Detect already free child.
901 Patch by Xavier Leroy, reported by Matthias Urlichs.
903 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
905 * Makefile (linuxthreads-version): Renamed back from
908 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
910 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
913 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
915 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
916 * internals.h: Add definitions for new spinlock implementation.
917 * ptlongjmp.c: New file.
918 * spinlock.c: New file.
919 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
920 new function __pthread_acquire to prevent deadlocks with thread
921 with different priorities.
922 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
924 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
926 * manager.c (__pthread_manager): Reduce first argument to select
927 to include just the needed file descriptor.
929 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
931 * manager.c: Fix last patch which caused core dumps.
933 * pthread.c: Correctly handle missing SIGRTMIN.
935 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
937 * libpthread.map: Add __libc_internal_tsd_get and
938 __libc_internal_tsd_set. Add missing cancelable functions. Export
939 libc internal versions of the cancelable functions.
941 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
943 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
945 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
947 * attr.c: Implement pthread_attr_[gs]etguardsize,
948 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
949 Change pthread_attr_init to have two interfaces.
950 * internals.h (struct _pthread_descr_struct): Add new fields for
952 * libpthread.map: Add names in GLIBC_2.1 section.
953 * manager.c (pthread_handle_create): Implement guardsize and
955 (pthread_free): Likewise.
956 * pthread.c (pthread_create): Add new interface for changed
958 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
959 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
962 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
964 * manager.c: Enable resetting of the thread scheduling policy
965 to SCHED_OTHER when the parent thread has a different one.
967 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
969 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
970 _POSIX_ASYNCHRONOUS_IO.
972 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
974 * mutex.c: Implement new mutex types.
976 * internals.h: Include <signal.h>.
978 * libpthread.map: Add __erno_location and __h_errno_location.
980 * errno.c: Return pointer to variable actually in use. This might
981 not be the one in the thread structure.
982 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
984 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
985 of manager thread structure.
986 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
988 * pthread.c: Adapt initializer for thread structures.
989 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
990 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
991 current thread to global variables.
993 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
995 * rwlock.c: New file.
996 * Makefile (libpthread-routines): Add rwlock.
997 * sysdeps/pthread/pthread.h: Define data structures and declare
999 * libpthread.map: Add new functions.
1001 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1003 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1004 * sysdeps/arm/Implies: likewise.
1005 * README: Document it.
1007 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1009 * signals.c: Remove unneeded initializer for sigwaited, saving a
1012 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1014 * semaphore.c (sem_init): Set sem_spinlock only if available.
1016 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1018 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1019 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1021 * Makefile: Update from LinuxThreads 0.7.
1022 * internals.h. Likewise.
1023 * manager.c: Likewise.
1024 * mutex.c: Likewise.
1025 * pthread.c: Likewise.
1026 * signals.c: Likewise.
1027 * specific.c: Likewise.
1028 * Examples/ex3.c: Likewise.
1030 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1032 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1035 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1037 * wrapsyscall.c: Add socket functions which are also cancelation
1040 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1042 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1043 New functions for fast thread specific data within libc.
1045 * internals.h: Add new array p_libc_specific to struct
1046 _pthread_descr_struct.
1048 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1050 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1052 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1053 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1055 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1057 * internals.h (struct _pthread_descr_struct): Add definitions for
1058 two-level specific key handling.
1059 * manager.c (pthread_handle_create): Initialize specific memory array.
1060 * specific.c: Implement two-level key handling.
1061 * weaks.c: Don't provide dummy key handling.
1062 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1063 Add definition of __libc_key_t.
1064 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1066 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1067 PTHREAD_DESTRUCTOR_ITERATIONS.
1069 * manager.c (pthread_handle_create): Compare mmap result with
1072 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1073 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1075 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1077 sysdeps/sparc -> sysdeps/sparc/sparc32
1078 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1080 * internals.h: Change definition of THREAD_SELF to be an expression,
1081 not a statement that did a return.
1082 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1083 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1084 Follow Solaris and use a "system reserved" register (%g6) to hold
1085 the thread descriptor.
1086 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1088 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1090 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1091 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1092 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1094 * semaphore.c: Include spinlock.h only when needed.
1096 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1097 keys for entries not in use.
1099 * weaks.c: Implement key handling functions for real.
1101 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1103 Initial sparc64-linux support:
1104 * linuxthreads/sysdeps/sparc64/Implies: New file.
1105 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1107 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1109 * semaphore.c: Include spinlock.h at correct place.
1112 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1114 The Great Bit File Move:
1115 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1116 * sysdeps/powerpc/semaphorebits.h: Likewise.
1117 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1118 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1119 * sysdeps/pthread/libc-lock.h: -> bits/
1120 * sysdeps/pthread/stdio-lock.h: Likewise.
1121 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1122 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1123 * semaphore.h: Likewise.
1124 * sysdeps/pthread/pthread.h: Likewise.
1126 * lockfile.c: <foo.h> -> <bits/foo.h>.
1127 * semaphore.h: Likewise.
1129 * Makefile: (headers): foo.h -> bits/foo.h.
1130 * sysdeps/pthread/Makefile: Likewise.
1132 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1134 * semaphore.c (sem_init): Set sem_spinlock only if available.
1136 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1139 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1141 Update from LinuxThreads 0.6.
1143 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1144 and __sched_get_priority_min instead of names without `__'.
1146 * manager.c: Rewrite large parts to implement opaque pthread_t.
1148 * cancel.c: Adapt for opaque pthread_t type.
1149 * condvar.c: Likewise.
1150 * errno.c: Likewise.
1152 * mutex.c: Likewise.
1153 * pthread.c: Likewise.
1154 * signals.c: Likewise.
1155 * specific.c: Likewise.
1156 * restart.h: Likewise.
1157 * queue.h: Likewise.
1158 * Examples/ex3.c: Likewise.
1159 * Examples/ex4.c: Likewise.
1160 * sysdeps/pthread/pthread.h: Likewise.
1162 * pthread.c: Accumulate time for all threads in thread manager.
1164 * semaphore.c: Implement fallback implementation for architectures
1165 sometimes missing compare-exchange operations.
1167 * cancel.c (pthread_cancel): Validate handle argument.
1168 * join.c (pthread_join): Likewise.
1169 (pthread_detach): Likewise.
1170 * signals.c (pthread_kill): Likewise.
1172 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1174 * queue.h (enqueue): Enqueue thread according to priority.
1176 * internals.c (struct pthread_start_args): New struct for passing
1177 args to cloning function.
1178 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1181 * Examples/Makefile (clean): Pass -f option to rm.
1183 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1184 and define TEST_FOR_COMPARE_AND_SWAP.
1185 * sysdeps/i386/i486/pt-machine.h: Removed.
1187 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1190 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1192 * restart.h (suspend): Clear p_signal before suspending.
1193 (suspend_with_cancellation): Likewise.
1194 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1196 * weaks.c: Make __pthread_key_create return 1.
1197 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1198 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1199 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1202 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1204 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1206 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1208 * sysdeps/powerpc/Implies: Added.
1209 * sysdeps/powerpc/pt-machine.h: Added.
1210 * sysdeps/powerpc/semaphorebits.h: Added.
1212 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1214 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1216 (__pthread_manager_thread): Likewise.
1217 Reported by Andreas Jaeger.
1219 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1221 Since sigset_t no longer fits in a register, we can't pass in the
1222 thread's initial mask so easily. Take this opportunity to simplify
1223 the clone implementation by only accepting a single void* argument.
1225 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1226 in the thread struct instead of as arguments through clone.
1227 (pthread_start_thread): Look for them there.
1228 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1229 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1230 * linuxthreads/pthread.c (pthread_initialize_manager): Revise