1 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
3 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
4 pwrite64, lseek64, open64, and __open64.
5 * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
6 pwrite64, lseek64, open64, and __open64.
8 * manager.c (pthread_allocate_stack): Correct computation of
9 new_thread_bottom. Correct handling of stack size and when the
10 rlimit method to guard for stack growth is used.
11 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
12 minus one pagesize (not two).
14 1999-12-03 Andreas Jaeger <aj@suse.de>
16 * Versions: Add __res_state with version GLIBC_2.2.
18 * errno.c (__res_state): New function to return thread specific
21 * pthread.c (pthread_initialize): Initialize p_resp.
22 (__pthread_reset_main_thread): Also set p_resp.
24 * manager.c (pthread_handle_create): Initialize p_resp.
26 * internals.h: Add thread specific resolver state.
27 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
29 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
31 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
33 * sysdeps/i386/i686/pt-machine.h: Likewise.
34 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
36 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
38 * manager.c (pthread_start_thread_event): Initialize p_pid already
41 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
43 * internals.h: Add prototype for __pthread_manager_event.
44 * manager.c (__pthread_manager_event): New function.
45 (pthread_start_thread_event): Correct computation of self.
47 * pthread.c (__pthread_manager_thread): Initialize p_lock.
48 (__pthread_initialize_manager): Respect event flags also for creation
49 of the manager thread.
51 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
53 * pthread.c (__pthread_initialize_manager): Initialize
54 __pthread_manager_thread.p_tid.
56 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
58 * internals.h: Declare __pthread_last_event.
59 * manager.c: Define __pthread_last_event.
60 (pthread_handle_create): Set __pthread_last_event.
61 (pthread_exited): Likewise.
62 * join.c (pthread_exit): Likewise.
64 * Makefile (libpthread-routines): Add events.
66 * internals.h: Protect against multiple inclusion.
67 Include thread_dbP.h header.
68 (struct _pthread_descr_struct): Add new fields p_report_events and
70 Declare event reporting functions.
71 * join.c (pthread_exit): Signal event if this is wanted.
72 * manager.c (__pthread_threads_events): New variable.
73 (pthread_handle_create): Take new parameters with event information.
74 Signal TD_CREATE event if wanted.
75 (__pthread_manager): Adjust pthread_handle_create call.
76 (pthread_start_thread_event): New function. Block until manager is
77 finished and then call pthread_start_thread.
78 (pthread_exited): Signal TD_REAP event if wanted.
80 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
82 * restart.h (suspend_with_cancellation): Rewrite as a macro.
84 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
86 1999-10-25 Andreas Jaeger <aj@suse.de>
88 * internals.h: Remove K&R compatibility.
90 * semaphore.h: Likewise.
91 * signals.c: Likewise.
92 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
93 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
96 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
98 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
99 and pthread_handle_sigcancel with functions that restore
100 %gs from the signal context. For each signal handling function,
101 two wrappers are required, one for a non-RT signal and one for
103 * linuxthreads/signal.c: For i386, add code to restore %gs
104 from the signal context in pthread_sighandler and
105 pthread_sighandler_rt.
107 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
109 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
111 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
113 * pthread.c (__pthread_initial_thread): Pass argument to
114 PTHREAD_START_ARGS_INITIALIZER.
115 (__pthread_manager_thread): Likewise.
117 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
120 * manager.c (pthread_handle_create): Remove p_startfct initialization.
122 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
124 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
126 * internals.h: Correct return types for __libc_read and __libc_write.
128 1999-10-09 Andreas Jaeger <aj@suse.de>
130 * internals.h: Add __new_sem_post to get prototype in
131 manager.c; include semaphore.h for needed types.
133 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
135 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
136 directly instead of calling sem_post which should not be necessary
137 but is faster and might help in some case to work around problems.
138 Patch by khendricks@ivey.uwo.ca [libc/1382].
140 1999-10-08 Andreas Schwab <schwab@suse.de>
142 * sysdeps/pthread/Subdirs: New file.
145 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
148 * internals.h (struct _pthread_descr_struct): Add p_startfct.
149 * manager.c (pthread_handle_create): Initialize p_startfct.
150 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
152 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
154 * manager.c (__linuxthreads_pthread_threads_max): New variable.
155 * specific.c (__linuxthreads_pthread_keys_max): New variable.
156 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
158 * condvar.c (pthread_cond_timedwait_relative): Never return with
159 EINTR. Patch by Andreas Schwab.
161 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
163 * signals.c (sigaction): Correct last patch. Don't select
164 pthread_sighandler_rt based on the signal number but instead of
167 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
169 * specific.c: Move definitions of struct pthread_key_struct and
170 destr_function to ...
171 * internals.h: ...here.
173 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
175 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
176 this instead of pthread_handle_sigrestart if the signal is an RT
179 * signals.c: Handle passing through of sighandler arguments also
180 for real-time signals.
182 1999-09-03 Andreas Schwab <schwab@suse.de>
184 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
186 (__vfork): New function, alias vfork.
187 * Versions: Export __fork, vfork, and __vfork in libpthread.
189 1999-08-23 Andreas Schwab <schwab@suse.de>
191 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
192 call to signal handler.
194 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
196 * pthread.c (__pthread_reset_main_thread): Undo last change.
197 (__pthread_kill_other_threads_np): Reset signal handlers for the
198 signals we used in the thread implementation here.
200 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
202 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
203 for the signals we used in the thread implementation [PR libc/1234].
205 * Versions: Export __pthread_kill_other_threads_np from libpthread
208 * signals.c: Pass sigcontext through wrapper to the user function.
210 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
212 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
213 __libc_internal_tsd_set.
215 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
217 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
220 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
222 * internals.h: Align _pthread_descr_struct to 32 bytes.
223 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
226 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
228 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
231 1999-07-09 Cristian Gafton <gafton@redhat.com>
233 * Makefile (libpthread-routines): Add oldsemaphore routine.
234 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
235 sem_trywait, and sem_wait to GLIBC_2.1.
236 * oldsemaphore.c: New file.
237 * semaphore.c: Add default_symbol_versions for the changed functions.
238 (__new_sem_init): Rename from sem_init.
239 (__new_sem_post): Rename from sem_post.
240 (__new_sem_wait): Rename from sem_wait.
241 (__new_sem_trywait): Rename from sem_trywait.
242 (__new_sem_getvalue): Rename from sem_getvalue.
243 (__new_sem_destroy): Rename from sem_destroy.
245 1999-06-23 Robey Pointer <robey@netscape.com>
247 * internals.h: Added p_nextlock entry to separate queueing for a
248 lock from queueing for a CV (sometimes a thread queues on a lock
249 to serialize removing itself from a CV queue).
250 * pthread.c: Added p_nextlock to initializers.
251 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
253 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
255 * manager.c (pthread_handle_create): Free mmap region after stack
256 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
258 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
260 * man/pthread_cond_init.man: Correct example.
261 Reported by Tomas Berndtsson <tomas@nocrew.org>.
263 * linuxthreads.texi (Condition Variables): Likewise.
265 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
267 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
268 casx not cas, also successful casx returns the old value in rd
269 and not the new value.
271 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
273 * manager.c: If pthread_create() is given a NULL attribute
274 and the thread manager runs with a realtime policy, set the
275 scheduling policy of the newly created thread back to SCHED_OTHER.
276 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
277 initialize the schedpolicy field of new_thread->p_start_args
278 to that of the calling thread.
280 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
282 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
283 instruction does not allow memory element to use offset.
285 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
287 * manager.c (pthread_allocate_stack): Optimize initialization of new
290 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
291 Don't use initializer since it is all zeroes.
292 (__libc_once_define): Likewise.
294 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
296 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
297 doesn't exist anymore.
298 * sysdeps/i386/Implies: Likewise.
299 * sysdeps/m68k/Implies: Likewise.
300 * sysdeps/mips/Implies: Likewise.
301 * sysdeps/powerpc/Implies: Likewise.
302 * sysdeps/sparc/sparc32/Implies: Likewise.
303 * sysdeps/sparc/sparc64/Implies: Likewise.
305 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
307 * sysdeps/alpha/bits/semaphore.h: Removed.
308 * sysdeps/powerpc/bits/semaphore.h: Removed.
309 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
310 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
311 * Makefile (headers): Remove bits/semaphore.h.
313 * semaphore.h: Define _pthread_descr if necessary.
314 Don't include limits.h. Define SEM_VALUE_MAX directly.
316 (sem_t): Protect element names with leading __.
317 Add declarations for sem_close, sem_open, and sem_unlink.
318 * semaphore.c: Adjust all functions for new element names.
319 Define sem_close, sem_open, and sem_unlink.
320 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
322 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
325 1999-03-16 H.J. Lu <hjl@gnu.org>
327 * specific.c (pthread_key_delete): Check th->p_terminated to see
328 if the thread is running.
330 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
331 Added to GLIBC_2.0 for libc.so.
333 1999-02-12 H.J. Lu <hjl@gnu.org>
335 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
336 __libc_allocate_rtsig): Added to GLIBC_2.1.
338 * internals.h (DEFAULT_SIG_RESTART): Removed.
339 (DEFAULT_SIG_CANCEL): Removed.
341 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
342 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
343 (__pthread_sig_restart, __pthread_sig_cancel,
344 __pthread_sig_debug): Initialized.
345 (pthread_initialize): Call init_rtsigs () to initialize
348 1999-02-03 H.J. Lu <hjl@gnu.org>
350 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
351 Don't restart the thread which sent REQ_DEBUG.
352 (pthread_start_thread): Check if __pthread_sig_debug > 0
355 * pthread.c (__pthread_initialize_manager): Suspend ourself
356 after sending __pthread_sig_debug to gdb instead of
357 __pthread_sig_cancel.
359 1999-01-24 H.J. Lu <hjl@gnu.org>
361 * manager.c (__pthread_manager): Delete __pthread_sig_debug
362 from mask if __pthread_sig_debug > 0.
363 (pthread_handle_create): Increment __pthread_handles_num.
365 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
366 * pthread.c (__pthread_initialize_manager): Likewise.
368 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
369 instead of __libc_allocate_rtsig (2).
370 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
371 instead of __pthread_sig_cancel.
372 (pthread_handle_sigdebug): Fix comments.
374 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
376 * manager.c (pthread_allocate_stack): Set
377 __pthread_nonstandard_stacks if user-specified stack is used.
379 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
381 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
382 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
384 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
386 * pthread.c: Use a third signal __pthread_sig_debug distinct
387 from __pthread_sig_cancel to notify gdb when a thread is
389 * manager.c: Likewise.
390 * internals.h: Likewise.
391 * signals.c: The implementation of sigwait(s) assumed that
392 all signals in s have signal handlers already attached.
393 This is not required by the standard, so make it work
394 also if some of the signals have no handlers.
396 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
398 * linuxthreads.texi: Remove pointers from first @node. Move old
399 @node spec inside comment.
401 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
403 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
406 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
408 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
409 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
411 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
413 * manager.c: Threads now send __pthread_sig_cancel on termination.
414 Change clone call and signal masks.
415 * thread.c (pthread_handle_sigrestart): Remove special code for
417 (pthread_handle_sigcancel): In manager thread call
418 __pthread_manager_sighandler.
419 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
420 * sysdeps/i386/i686/pt-machine.h: Likewise.
421 Patches by Xavier Leroy.
423 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
425 * spinlock.c (__pthread_unlock): Don't crash if called for an
426 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
428 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
431 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
433 * Examples/ex3.c: Wait until all threads are started before
434 searching for the number to avoid race condition on very fast
437 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
439 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
440 declaration since it's not needed.
442 * sysdeps/pthread/pthread.h: Move internal functions to ...
443 * internals.h: ...here.
445 1998-12-02 H.J. Lu <hjl@gnu.org>
447 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
449 (__pthread_sig_cancel): Likewise.
451 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
453 * wrapsyscall.c: Include <sys/mman.h> for msync,
454 <stdlib.h> for system and <termios.h> for tcdrain prototype.
455 Correct msync declaration.
457 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
459 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
460 __libc_tsd_set): New macros for new interface.
461 * no-tsd.c: New file, provide uninitialized defns of
462 __libc_internal_tsd_get and __libc_internal_tsd_set.
463 * Makefile (routines): Add no-tsd.
465 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
467 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
468 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
469 __libc_internal_tsd_set): Move decls to ...
470 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
473 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
474 __libc_internal_tsd_set): Make these pointers to functions, not
475 functions; remove #pragma weak decls for them.
476 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
477 Define static functions and initialized pointers to them.
479 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
481 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
482 (CFLAGS-specific.c): Likewise.
483 (CFLAGS-pthread.c): Likewise.
484 (CFLAGS-ptfork.c): Likewise.
485 (CFLAGS-cancel.c): Likewise.
486 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
487 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
489 * mutex.c (pthread_mutex_init): Define as strong symbol.
490 (pthread_mutex_destroy): Likewise.
491 (pthread_mutex_trylock): Likewise.
492 (pthread_mutex_lock): Likewise.
493 (pthread_mutex_unlock): Likewise.
494 (pthread_mutexattr_init): Likewise.
495 (pthread_mutexattr_destroy): Likewise.
496 (pthread_once): Likewise.
497 * ptfork.c (pthread_atfork): Likewise.
498 * specific.c (pthread_key_create): Likewise.
499 (pthread_setspecific): Likewise.
500 (pthread_getspecific): Likewise.
502 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
504 * linuxthreads.texi: Fix punctuation after xref.
506 1998-11-10 H.J. Lu <hjl@gnu.org>
508 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
509 if it is defined in <linux/limits.h>.
511 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
513 * spinlock.h (__pthread_trylock): Define inline.
514 (__pthread_lock): Add extra parameter to declaration. Declare
515 using internal_function.
516 (__pthread_unlock): Declare using internal_function.
517 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
518 of local variable self. Avoid recomputing self. Define using
520 (__pthread_trylock): Remove.
521 (__pthread_unlock): Define using internal_function.
522 * cancel.c: Adjust for __pthread_lock interface change. Use already
523 computed self value is possible.
524 * condvar.c: Likewise.
526 * manager.c: Likewise.
528 * pthread.c: Likewise.
529 * rwlock.c: Likewise.
530 * semaphore.c: Likewise.
531 * signals.c: Likewise.
533 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
535 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
536 __ to field names of the struct.
537 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
539 (pthread_attr_t): Likewise.
540 (pthread_cond_t): Likewise.
541 (pthread_condattr_t): Likewise.
542 (pthread_mutex_t): Likewise.
543 (pthread_mutexattr_t): Likewise.
544 (pthread_rwlock_t): Likewise.
545 (pthread_rwlockattr_t): Likewise.
546 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
547 * cancel.c: Likewise.
548 * condvar.c: Likewise.
549 * manager.c: Likewise.
551 * pthread.c: Likewise.
552 * ptlongjmp.c: Likewise.
553 * rwlock.c: Likewise.
554 * spinlock.c: Likewise.
556 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
558 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
561 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
564 * Makefile (libpthread-routines): Add pt-machine.
565 * pt-machine.c: New file.
566 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
567 yet defined. Use PT_EI in extern inline definitions.
568 * sysdeps/arm/pt-machine.h: Likewise.
569 * sysdeps/i386/pt-machine.h: Likewise.
570 * sysdeps/i386/i686/pt-machine.h: Likewise.
571 * sysdeps/m68k/pt-machine.h: Likewise.
572 * sysdeps/mips/pt-machine.h: Likewise.
573 * sysdeps/powerpc/pt-machine.h: Likewise.
574 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
575 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
577 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
579 * semaphore.h: Include <sys/types.h> so that _pthread_descr
582 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
584 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
586 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
588 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
590 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
591 multiple inclusion guard.
593 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
595 * signals.c (sigaction): Check that sig is less than NSIG to avoid
596 array index overflow.
598 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
600 * sysdeps/pthread/semaphore.h: New file.
602 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
604 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
605 _LIBC_TSD_KEY_DL_ERROR.
607 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
609 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
610 * sysdeps/i386/pt-machine.h: Likewise.
611 Suggested by Roland McGrath.
613 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
615 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
616 access thread data with non-constant offsets.
617 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
620 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
621 THREAD_SETMEM_NC definitions.
623 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
625 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
627 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
629 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
631 (struct _pthread_descr_struct): Add p_self and p_nr field.
632 * manager.c (__pthread_handles): Define second element to point
634 (__pthread_handles_num): Initialize to 2.
635 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
636 (pthread_start_thread): Likewise.
637 (pthread_handle_create): Start search for free slot at entry 2.
638 Initialize new fields p_self and p_nr.
639 Call __clone with CLONE_PTRACE if available.
640 (pthread_free): Call FREE_THREAD_SELF if available.
641 * pthread.c (__pthread_initial_thread): Initialize new fields.
642 (__pthread_manager_thread): Likewise.
643 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
645 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
646 elements of the thread descriptor.
647 * condvar.c: Likewise.
650 * manager.c: Likewise.
651 * pthread.c: Likewise.
652 * ptlongjmp.c: Likewise.
653 * semaphore.c: Likewise.
654 * signals.c: Likewise.
655 * specific.c: Likewise.
656 * spinlock.c: Likewise.
658 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
660 * sysdeps/i386/useldt.h: New file.
661 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
663 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
664 THREAD_SETMEM using __thread_self.
665 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
667 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
669 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
670 turned out that we didn't need to queue after all.
672 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
674 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
675 and wastes space; correct types.
677 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
679 * signals.c (sigaction): Handle NULL argument.
681 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
683 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
686 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
688 * Makefile (linuxthreads-version): Extract correct number from
691 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
693 * Banner: Bump version number to 0.8
694 * FAQ.html: Many updates, in particular w.r.t. debugging.
695 * manager.c: Support for non-default stacksize for
696 LinuxThreads-allocated stacks;
697 don't use guard pages for stacks with default size, rely on
698 rlimit(RLIMIT_STACK) instead (it's cheaper).
700 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
701 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
702 * condvar.c: Likewise.
703 * internals.h: Likewise.
704 * restart.h: Likewise.
705 * signals.c: Likewise.
706 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
708 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
710 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
711 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
712 * Versions: Put __pthread_mutexattr_settype under version
713 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
714 __pthread_mutexattr_gettype.
716 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
718 * sysdeps/pthread/bits/libc-lock.h: Make
719 __pthread_mutexattr_settype weak. Don't make
720 __pthread_mutexattr_setkind_np weak.
722 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
724 * manager.c (pthread_handle_create): Check whether sched_setscheduler
725 call can succeed here.
727 * mutex.c: Define __pthread_mutexattr_settype and make
728 __pthread_mutexattr_setkind_np an alias.
729 Likewise for __pthread_mutexattr_gettype.
731 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
733 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
736 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
738 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
740 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
742 * Examples/ex6.c: Include <unistd.h> for usleep.
744 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
746 * Examples/ex4.c (main): Use exit, not pthread_exit.
748 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
750 * Versions: Add __pthread_mutexattr_gettype and
751 __pthread_mutexattr_settype.
752 * lockfile.c: Use __pthread_mutexattr_settype instead of
753 __pthread_mutexattr_setkind_np.
754 * mutex.c: Define __pthread_mutexattr_gettype and
755 __pthread_mutexattr_settype.
757 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
758 __pthread_mutexattr_settype.
759 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
760 Use __pthread_mutexattr_settype.
762 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
764 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
765 * mutex.c: Define weak alias pthread_mutexattr_gettype and
766 pthread_mutexattr_settype.
767 * sysdeps/pthread/pthread.h: Declare these functions.
768 Move pthread_sigmask and pthread_kill declaration in separate header.
769 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
771 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
773 * Makefile: Add rules to compile and run tests.
774 * Examples/ex1.c: Little changes to fix warnings.
775 * Examples/ex2.c: Likewise.
776 * Examples/ex3.c: Likewise.
777 * Examples/ex4.c: Likewise.
778 * Examples/ex5.c: Likewise.
779 * Examples/ex6.c: New file.
781 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
783 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
785 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
787 * attr.c: Include <string.h>.
789 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
791 * attr.c: Include errno.h. Use memcpy to copy sched_param.
792 * internals.h: Include limits.h.
793 * manager.c: Use memcpy to copy sched_param.
794 * ptfork.c: Include errno.h.
795 * pthread.c: Likewise.
796 * semaphore.c: Likewise.
797 * specific.c: Likewise.
798 * spinlock.h: Likewise.
799 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
800 type definition to ...
801 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
803 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
805 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
807 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
808 as macros as demanded in POSIX.1, Annex C.
810 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
812 * internals.h (struct pthread_request): For free use pthread_t
813 instead of pthread_descr.
814 * join.c (pthread_join): Pass thread_id, not th to manager.
815 (pthread_detach): Likewise.
816 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
817 (pthread_exited): Remove detached queue code.
818 (pthread_handle_free): Expect thread ID parameter and use it to
819 validate the thread decsriptor. Don't use detached queue.
820 Patches by Xavier Leroy.
822 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
824 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
825 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
826 __pthread_atfork, __pthread_key_create, __pthread_once.
827 * internals.h: Doc fix.
828 * pthread.c (__pthread_initialize): Define again.
830 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
832 * manager.c (pthread_exited): If thread is not detached put it on
834 (pthread_handle_free): If thread is not on list with living threads
835 search on list with detached threads.
837 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
838 for new definition of pthread_rwlock_t.
840 * spinlock.c: Correct test whether to compile
841 __pthread_compare_and_swap or not.
843 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
845 * attr.c: Finish user stack support. Change locking code to be safe
846 in situations with different priorities.
847 * cancel.c: Likewise.
848 * condvar.c: Likewise.
849 * internals.h: Likewise.
851 * manager.c: Likewise.
853 * pthread.c: Likewise.
854 * ptlongjmp.c: Likewise.
856 * rwlock.c: Likewise.
857 * semaphore.c: Likewise.
858 * semaphore.h: Likewise.
859 * signals.c: Likewise.
860 * spinlock.c: Likewise.
861 * spinlock.h: Likewise.
862 * sysdeps/pthread/pthread.h: Likewise.
863 Patches by Xavier Leroy.
865 * sysdeps/i386/i686/pt-machine.h: New file.
867 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
869 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
870 [sg]et_stackaddr prototypes always available.
872 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
873 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
875 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
877 * manager.c (pthread_free): Undo patch from 980430.
878 Reported by David Wragg <dpw@doc.ic.ac.uk>.
880 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
882 * manager.c: Define __pthread_manager_adjust_prio and use it to
883 increase priority when needed.
884 * internals.h: Add prototype for __pthread_manager_adjust_prio.
885 * mutex.c: Optimize mutexes to wake up only one thread.
886 * pthread.c: Move PID of manager for global variable in structure
888 Patches by Xavier Leroy.
890 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
892 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
894 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
896 * attr.c: Correct typo.
898 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
900 * manager.c (pthread_free): Unmap guard before the stack.
901 Patch by Matthias Urlichs.
903 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
905 * manager.c (pthread_free): Detect already free child.
906 Patch by Xavier Leroy, reported by Matthias Urlichs.
908 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
910 * Makefile (linuxthreads-version): Renamed back from
913 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
915 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
918 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
920 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
921 * internals.h: Add definitions for new spinlock implementation.
922 * ptlongjmp.c: New file.
923 * spinlock.c: New file.
924 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
925 new function __pthread_acquire to prevent deadlocks with thread
926 with different priorities.
927 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
929 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
931 * manager.c (__pthread_manager): Reduce first argument to select
932 to include just the needed file descriptor.
934 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
936 * manager.c: Fix last patch which caused core dumps.
938 * pthread.c: Correctly handle missing SIGRTMIN.
940 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
942 * libpthread.map: Add __libc_internal_tsd_get and
943 __libc_internal_tsd_set. Add missing cancelable functions. Export
944 libc internal versions of the cancelable functions.
946 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
948 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
950 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
952 * attr.c: Implement pthread_attr_[gs]etguardsize,
953 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
954 Change pthread_attr_init to have two interfaces.
955 * internals.h (struct _pthread_descr_struct): Add new fields for
957 * libpthread.map: Add names in GLIBC_2.1 section.
958 * manager.c (pthread_handle_create): Implement guardsize and
960 (pthread_free): Likewise.
961 * pthread.c (pthread_create): Add new interface for changed
963 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
964 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
967 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
969 * manager.c: Enable resetting of the thread scheduling policy
970 to SCHED_OTHER when the parent thread has a different one.
972 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
974 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
975 _POSIX_ASYNCHRONOUS_IO.
977 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
979 * mutex.c: Implement new mutex types.
981 * internals.h: Include <signal.h>.
983 * libpthread.map: Add __erno_location and __h_errno_location.
985 * errno.c: Return pointer to variable actually in use. This might
986 not be the one in the thread structure.
987 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
989 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
990 of manager thread structure.
991 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
993 * pthread.c: Adapt initializer for thread structures.
994 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
995 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
996 current thread to global variables.
998 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
1000 * rwlock.c: New file.
1001 * Makefile (libpthread-routines): Add rwlock.
1002 * sysdeps/pthread/pthread.h: Define data structures and declare
1004 * libpthread.map: Add new functions.
1006 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1008 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1009 * sysdeps/arm/Implies: likewise.
1010 * README: Document it.
1012 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1014 * signals.c: Remove unneeded initializer for sigwaited, saving a
1017 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1019 * semaphore.c (sem_init): Set sem_spinlock only if available.
1021 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1023 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1024 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1026 * Makefile: Update from LinuxThreads 0.7.
1027 * internals.h. Likewise.
1028 * manager.c: Likewise.
1029 * mutex.c: Likewise.
1030 * pthread.c: Likewise.
1031 * signals.c: Likewise.
1032 * specific.c: Likewise.
1033 * Examples/ex3.c: Likewise.
1035 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1037 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1040 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1042 * wrapsyscall.c: Add socket functions which are also cancelation
1045 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1047 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1048 New functions for fast thread specific data within libc.
1050 * internals.h: Add new array p_libc_specific to struct
1051 _pthread_descr_struct.
1053 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1055 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1057 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1058 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1060 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1062 * internals.h (struct _pthread_descr_struct): Add definitions for
1063 two-level specific key handling.
1064 * manager.c (pthread_handle_create): Initialize specific memory array.
1065 * specific.c: Implement two-level key handling.
1066 * weaks.c: Don't provide dummy key handling.
1067 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1068 Add definition of __libc_key_t.
1069 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1071 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1072 PTHREAD_DESTRUCTOR_ITERATIONS.
1074 * manager.c (pthread_handle_create): Compare mmap result with
1077 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1078 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1080 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1082 sysdeps/sparc -> sysdeps/sparc/sparc32
1083 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1085 * internals.h: Change definition of THREAD_SELF to be an expression,
1086 not a statement that did a return.
1087 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1088 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1089 Follow Solaris and use a "system reserved" register (%g6) to hold
1090 the thread descriptor.
1091 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1093 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1095 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1096 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1097 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1099 * semaphore.c: Include spinlock.h only when needed.
1101 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1102 keys for entries not in use.
1104 * weaks.c: Implement key handling functions for real.
1106 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1108 Initial sparc64-linux support:
1109 * linuxthreads/sysdeps/sparc64/Implies: New file.
1110 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1112 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1114 * semaphore.c: Include spinlock.h at correct place.
1117 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1119 The Great Bit File Move:
1120 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1121 * sysdeps/powerpc/semaphorebits.h: Likewise.
1122 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1123 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1124 * sysdeps/pthread/libc-lock.h: -> bits/
1125 * sysdeps/pthread/stdio-lock.h: Likewise.
1126 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1127 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1128 * semaphore.h: Likewise.
1129 * sysdeps/pthread/pthread.h: Likewise.
1131 * lockfile.c: <foo.h> -> <bits/foo.h>.
1132 * semaphore.h: Likewise.
1134 * Makefile: (headers): foo.h -> bits/foo.h.
1135 * sysdeps/pthread/Makefile: Likewise.
1137 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1139 * semaphore.c (sem_init): Set sem_spinlock only if available.
1141 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1144 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1146 Update from LinuxThreads 0.6.
1148 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1149 and __sched_get_priority_min instead of names without `__'.
1151 * manager.c: Rewrite large parts to implement opaque pthread_t.
1153 * cancel.c: Adapt for opaque pthread_t type.
1154 * condvar.c: Likewise.
1155 * errno.c: Likewise.
1157 * mutex.c: Likewise.
1158 * pthread.c: Likewise.
1159 * signals.c: Likewise.
1160 * specific.c: Likewise.
1161 * restart.h: Likewise.
1162 * queue.h: Likewise.
1163 * Examples/ex3.c: Likewise.
1164 * Examples/ex4.c: Likewise.
1165 * sysdeps/pthread/pthread.h: Likewise.
1167 * pthread.c: Accumulate time for all threads in thread manager.
1169 * semaphore.c: Implement fallback implementation for architectures
1170 sometimes missing compare-exchange operations.
1172 * cancel.c (pthread_cancel): Validate handle argument.
1173 * join.c (pthread_join): Likewise.
1174 (pthread_detach): Likewise.
1175 * signals.c (pthread_kill): Likewise.
1177 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1179 * queue.h (enqueue): Enqueue thread according to priority.
1181 * internals.c (struct pthread_start_args): New struct for passing
1182 args to cloning function.
1183 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1186 * Examples/Makefile (clean): Pass -f option to rm.
1188 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1189 and define TEST_FOR_COMPARE_AND_SWAP.
1190 * sysdeps/i386/i486/pt-machine.h: Removed.
1192 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1195 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1197 * restart.h (suspend): Clear p_signal before suspending.
1198 (suspend_with_cancellation): Likewise.
1199 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1201 * weaks.c: Make __pthread_key_create return 1.
1202 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1203 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1204 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1207 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1209 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1211 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1213 * sysdeps/powerpc/Implies: Added.
1214 * sysdeps/powerpc/pt-machine.h: Added.
1215 * sysdeps/powerpc/semaphorebits.h: Added.
1217 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1219 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1221 (__pthread_manager_thread): Likewise.
1222 Reported by Andreas Jaeger.
1224 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1226 Since sigset_t no longer fits in a register, we can't pass in the
1227 thread's initial mask so easily. Take this opportunity to simplify
1228 the clone implementation by only accepting a single void* argument.
1230 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1231 in the thread struct instead of as arguments through clone.
1232 (pthread_start_thread): Look for them there.
1233 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1234 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1235 * linuxthreads/pthread.c (pthread_initialize_manager): Revise