1 2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
3 Redesigned how cancellation unblocks a thread from internal
4 cancellation points (sem_wait, pthread_join,
5 pthread_cond_{wait,timedwait}).
6 Cancellation won't eat a signal in any of these functions
7 (*required* by POSIX and Single Unix Spec!).
8 * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
9 simultaneous condition variable signal (not required by POSIX
10 or Single Unix Spec, but nice).
11 * spinlock.c: __pthread_lock queues back any received restarts
12 that don't belong to it instead of assuming ownership of lock
13 upon any restart; fastlock can no longer be acquired by two threads
15 * restart.h: Restarts queue even on kernels that don't have
16 queued real time signals (2.0, early 2.1), thanks to atomic counter,
17 avoiding a rare race condition in pthread_cond_timedwait.
19 1999-12-31 Andreas Jaeger <aj@suse.de>
21 * internals.h: Remove duplicate prototype declarations.
23 * weaks.c: Remove __THROW from prototypes since the file is not
24 compiled by a C++ compiler.
25 * internals.h: Likewise.
27 1999-12-30 Andreas Jaeger <aj@suse.de>
29 * sysdeps/pthread/pthread.h: Move internal functions to...
30 * sysdeps/pthread/bits/libc-lock.h: ...here.
32 1999-12-29 Andreas Jaeger <aj@suse.de>
34 * sysdeps/pthread/pthread.h: Fix typos, reformat comments.
36 1999-12-28 Ulrich Drepper <drepper@cygnus.com>
38 * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
41 * manager.c (__pthread_start): Add one more cast to prevent
42 warning on 64bit machines.
44 1999-12-21 Ulrich Drepper <drepper@cygnus.com>
46 * manager.c (pthread_handle_create): Set p_pid of new thread
47 before calling the callback function to report a new thread.
49 1999-12-20 Andreas Jaeger <aj@suse.de>
51 * pthread.c (pthread_initialize): Move getrlimit call after
54 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
56 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
57 pwrite64, lseek64, open64, and __open64.
58 * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
59 pwrite64, lseek64, open64, and __open64.
61 * manager.c (pthread_allocate_stack): Correct computation of
62 new_thread_bottom. Correct handling of stack size and when the
63 rlimit method to guard for stack growth is used.
64 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
65 minus one pagesize (not two).
67 1999-12-03 Andreas Jaeger <aj@suse.de>
69 * Versions: Add __res_state with version GLIBC_2.2.
71 * errno.c (__res_state): New function to return thread specific
74 * pthread.c (pthread_initialize): Initialize p_resp.
75 (__pthread_reset_main_thread): Also set p_resp.
77 * manager.c (pthread_handle_create): Initialize p_resp.
79 * internals.h: Add thread specific resolver state.
80 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
82 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
84 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
86 * sysdeps/i386/i686/pt-machine.h: Likewise.
87 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
89 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
91 * manager.c (pthread_start_thread_event): Initialize p_pid already
94 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
96 * internals.h: Add prototype for __pthread_manager_event.
97 * manager.c (__pthread_manager_event): New function.
98 (pthread_start_thread_event): Correct computation of self.
100 * pthread.c (__pthread_manager_thread): Initialize p_lock.
101 (__pthread_initialize_manager): Respect event flags also for creation
102 of the manager thread.
104 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
106 * pthread.c (__pthread_initialize_manager): Initialize
107 __pthread_manager_thread.p_tid.
109 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
111 * internals.h: Declare __pthread_last_event.
112 * manager.c: Define __pthread_last_event.
113 (pthread_handle_create): Set __pthread_last_event.
114 (pthread_exited): Likewise.
115 * join.c (pthread_exit): Likewise.
117 * Makefile (libpthread-routines): Add events.
118 * events.c: New file.
119 * internals.h: Protect against multiple inclusion.
120 Include thread_dbP.h header.
121 (struct _pthread_descr_struct): Add new fields p_report_events and
123 Declare event reporting functions.
124 * join.c (pthread_exit): Signal event if this is wanted.
125 * manager.c (__pthread_threads_events): New variable.
126 (pthread_handle_create): Take new parameters with event information.
127 Signal TD_CREATE event if wanted.
128 (__pthread_manager): Adjust pthread_handle_create call.
129 (pthread_start_thread_event): New function. Block until manager is
130 finished and then call pthread_start_thread.
131 (pthread_exited): Signal TD_REAP event if wanted.
133 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
135 * restart.h (suspend_with_cancellation): Rewrite as a macro.
137 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
139 1999-10-25 Andreas Jaeger <aj@suse.de>
141 * internals.h: Remove K&R compatibility.
142 * no-tsd.c: Likewise.
143 * semaphore.h: Likewise.
144 * signals.c: Likewise.
145 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
146 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
149 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
151 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
152 and pthread_handle_sigcancel with functions that restore
153 %gs from the signal context. For each signal handling function,
154 two wrappers are required, one for a non-RT signal and one for
156 * linuxthreads/signal.c: For i386, add code to restore %gs
157 from the signal context in pthread_sighandler and
158 pthread_sighandler_rt.
160 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
162 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
164 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
166 * pthread.c (__pthread_initial_thread): Pass argument to
167 PTHREAD_START_ARGS_INITIALIZER.
168 (__pthread_manager_thread): Likewise.
170 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
173 * manager.c (pthread_handle_create): Remove p_startfct initialization.
175 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
177 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
179 * internals.h: Correct return types for __libc_read and __libc_write.
181 1999-10-09 Andreas Jaeger <aj@suse.de>
183 * internals.h: Add __new_sem_post to get prototype in
184 manager.c; include semaphore.h for needed types.
186 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
188 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
189 directly instead of calling sem_post which should not be necessary
190 but is faster and might help in some case to work around problems.
191 Patch by khendricks@ivey.uwo.ca [libc/1382].
193 1999-10-08 Andreas Schwab <schwab@suse.de>
195 * sysdeps/pthread/Subdirs: New file.
198 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
201 * internals.h (struct _pthread_descr_struct): Add p_startfct.
202 * manager.c (pthread_handle_create): Initialize p_startfct.
203 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
205 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
207 * manager.c (__linuxthreads_pthread_threads_max): New variable.
208 * specific.c (__linuxthreads_pthread_keys_max): New variable.
209 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
211 * condvar.c (pthread_cond_timedwait_relative): Never return with
212 EINTR. Patch by Andreas Schwab.
214 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
216 * signals.c (sigaction): Correct last patch. Don't select
217 pthread_sighandler_rt based on the signal number but instead of
220 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
222 * specific.c: Move definitions of struct pthread_key_struct and
223 destr_function to ...
224 * internals.h: ...here.
226 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
228 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
229 this instead of pthread_handle_sigrestart if the signal is an RT
232 * signals.c: Handle passing through of sighandler arguments also
233 for real-time signals.
235 1999-09-03 Andreas Schwab <schwab@suse.de>
237 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
239 (__vfork): New function, alias vfork.
240 * Versions: Export __fork, vfork, and __vfork in libpthread.
242 1999-08-23 Andreas Schwab <schwab@suse.de>
244 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
245 call to signal handler.
247 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
249 * pthread.c (__pthread_reset_main_thread): Undo last change.
250 (__pthread_kill_other_threads_np): Reset signal handlers for the
251 signals we used in the thread implementation here.
253 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
255 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
256 for the signals we used in the thread implementation [PR libc/1234].
258 * Versions: Export __pthread_kill_other_threads_np from libpthread
261 * signals.c: Pass sigcontext through wrapper to the user function.
263 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
265 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
266 __libc_internal_tsd_set.
268 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
270 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
273 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
275 * internals.h: Align _pthread_descr_struct to 32 bytes.
276 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
279 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
281 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
284 1999-07-09 Cristian Gafton <gafton@redhat.com>
286 * Makefile (libpthread-routines): Add oldsemaphore routine.
287 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
288 sem_trywait, and sem_wait to GLIBC_2.1.
289 * oldsemaphore.c: New file.
290 * semaphore.c: Add default_symbol_versions for the changed functions.
291 (__new_sem_init): Rename from sem_init.
292 (__new_sem_post): Rename from sem_post.
293 (__new_sem_wait): Rename from sem_wait.
294 (__new_sem_trywait): Rename from sem_trywait.
295 (__new_sem_getvalue): Rename from sem_getvalue.
296 (__new_sem_destroy): Rename from sem_destroy.
298 1999-06-23 Robey Pointer <robey@netscape.com>
300 * internals.h: Added p_nextlock entry to separate queueing for a
301 lock from queueing for a CV (sometimes a thread queues on a lock
302 to serialize removing itself from a CV queue).
303 * pthread.c: Added p_nextlock to initializers.
304 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
306 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
308 * manager.c (pthread_handle_create): Free mmap region after stack
309 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
311 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
313 * man/pthread_cond_init.man: Correct example.
314 Reported by Tomas Berndtsson <tomas@nocrew.org>.
316 * linuxthreads.texi (Condition Variables): Likewise.
318 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
320 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
321 casx not cas, also successful casx returns the old value in rd
322 and not the new value.
324 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
326 * manager.c: If pthread_create() is given a NULL attribute
327 and the thread manager runs with a realtime policy, set the
328 scheduling policy of the newly created thread back to SCHED_OTHER.
329 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
330 initialize the schedpolicy field of new_thread->p_start_args
331 to that of the calling thread.
333 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
335 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
336 instruction does not allow memory element to use offset.
338 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
340 * manager.c (pthread_allocate_stack): Optimize initialization of new
343 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
344 Don't use initializer since it is all zeroes.
345 (__libc_once_define): Likewise.
347 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
349 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
350 doesn't exist anymore.
351 * sysdeps/i386/Implies: Likewise.
352 * sysdeps/m68k/Implies: Likewise.
353 * sysdeps/mips/Implies: Likewise.
354 * sysdeps/powerpc/Implies: Likewise.
355 * sysdeps/sparc/sparc32/Implies: Likewise.
356 * sysdeps/sparc/sparc64/Implies: Likewise.
358 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
360 * sysdeps/alpha/bits/semaphore.h: Removed.
361 * sysdeps/powerpc/bits/semaphore.h: Removed.
362 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
363 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
364 * Makefile (headers): Remove bits/semaphore.h.
366 * semaphore.h: Define _pthread_descr if necessary.
367 Don't include limits.h. Define SEM_VALUE_MAX directly.
369 (sem_t): Protect element names with leading __.
370 Add declarations for sem_close, sem_open, and sem_unlink.
371 * semaphore.c: Adjust all functions for new element names.
372 Define sem_close, sem_open, and sem_unlink.
373 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
375 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
378 1999-03-16 H.J. Lu <hjl@gnu.org>
380 * specific.c (pthread_key_delete): Check th->p_terminated to see
381 if the thread is running.
383 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
384 Added to GLIBC_2.0 for libc.so.
386 1999-02-12 H.J. Lu <hjl@gnu.org>
388 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
389 __libc_allocate_rtsig): Added to GLIBC_2.1.
391 * internals.h (DEFAULT_SIG_RESTART): Removed.
392 (DEFAULT_SIG_CANCEL): Removed.
394 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
395 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
396 (__pthread_sig_restart, __pthread_sig_cancel,
397 __pthread_sig_debug): Initialized.
398 (pthread_initialize): Call init_rtsigs () to initialize
401 1999-02-03 H.J. Lu <hjl@gnu.org>
403 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
404 Don't restart the thread which sent REQ_DEBUG.
405 (pthread_start_thread): Check if __pthread_sig_debug > 0
408 * pthread.c (__pthread_initialize_manager): Suspend ourself
409 after sending __pthread_sig_debug to gdb instead of
410 __pthread_sig_cancel.
412 1999-01-24 H.J. Lu <hjl@gnu.org>
414 * manager.c (__pthread_manager): Delete __pthread_sig_debug
415 from mask if __pthread_sig_debug > 0.
416 (pthread_handle_create): Increment __pthread_handles_num.
418 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
419 * pthread.c (__pthread_initialize_manager): Likewise.
421 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
422 instead of __libc_allocate_rtsig (2).
423 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
424 instead of __pthread_sig_cancel.
425 (pthread_handle_sigdebug): Fix comments.
427 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
429 * manager.c (pthread_allocate_stack): Set
430 __pthread_nonstandard_stacks if user-specified stack is used.
432 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
434 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
435 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
437 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
439 * pthread.c: Use a third signal __pthread_sig_debug distinct
440 from __pthread_sig_cancel to notify gdb when a thread is
442 * manager.c: Likewise.
443 * internals.h: Likewise.
444 * signals.c: The implementation of sigwait(s) assumed that
445 all signals in s have signal handlers already attached.
446 This is not required by the standard, so make it work
447 also if some of the signals have no handlers.
449 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
451 * linuxthreads.texi: Remove pointers from first @node. Move old
452 @node spec inside comment.
454 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
456 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
459 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
461 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
462 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
464 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
466 * manager.c: Threads now send __pthread_sig_cancel on termination.
467 Change clone call and signal masks.
468 * thread.c (pthread_handle_sigrestart): Remove special code for
470 (pthread_handle_sigcancel): In manager thread call
471 __pthread_manager_sighandler.
472 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
473 * sysdeps/i386/i686/pt-machine.h: Likewise.
474 Patches by Xavier Leroy.
476 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
478 * spinlock.c (__pthread_unlock): Don't crash if called for an
479 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
481 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
484 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
486 * Examples/ex3.c: Wait until all threads are started before
487 searching for the number to avoid race condition on very fast
490 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
492 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
493 declaration since it's not needed.
495 * sysdeps/pthread/pthread.h: Move internal functions to ...
496 * internals.h: ...here.
498 1998-12-02 H.J. Lu <hjl@gnu.org>
500 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
502 (__pthread_sig_cancel): Likewise.
504 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
506 * wrapsyscall.c: Include <sys/mman.h> for msync,
507 <stdlib.h> for system and <termios.h> for tcdrain prototype.
508 Correct msync declaration.
510 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
512 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
513 __libc_tsd_set): New macros for new interface.
514 * no-tsd.c: New file, provide uninitialized defns of
515 __libc_internal_tsd_get and __libc_internal_tsd_set.
516 * Makefile (routines): Add no-tsd.
518 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
520 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
521 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
522 __libc_internal_tsd_set): Move decls to ...
523 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
526 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
527 __libc_internal_tsd_set): Make these pointers to functions, not
528 functions; remove #pragma weak decls for them.
529 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
530 Define static functions and initialized pointers to them.
532 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
534 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
535 (CFLAGS-specific.c): Likewise.
536 (CFLAGS-pthread.c): Likewise.
537 (CFLAGS-ptfork.c): Likewise.
538 (CFLAGS-cancel.c): Likewise.
539 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
540 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
542 * mutex.c (pthread_mutex_init): Define as strong symbol.
543 (pthread_mutex_destroy): Likewise.
544 (pthread_mutex_trylock): Likewise.
545 (pthread_mutex_lock): Likewise.
546 (pthread_mutex_unlock): Likewise.
547 (pthread_mutexattr_init): Likewise.
548 (pthread_mutexattr_destroy): Likewise.
549 (pthread_once): Likewise.
550 * ptfork.c (pthread_atfork): Likewise.
551 * specific.c (pthread_key_create): Likewise.
552 (pthread_setspecific): Likewise.
553 (pthread_getspecific): Likewise.
555 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
557 * linuxthreads.texi: Fix punctuation after xref.
559 1998-11-10 H.J. Lu <hjl@gnu.org>
561 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
562 if it is defined in <linux/limits.h>.
564 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
566 * spinlock.h (__pthread_trylock): Define inline.
567 (__pthread_lock): Add extra parameter to declaration. Declare
568 using internal_function.
569 (__pthread_unlock): Declare using internal_function.
570 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
571 of local variable self. Avoid recomputing self. Define using
573 (__pthread_trylock): Remove.
574 (__pthread_unlock): Define using internal_function.
575 * cancel.c: Adjust for __pthread_lock interface change. Use already
576 computed self value is possible.
577 * condvar.c: Likewise.
579 * manager.c: Likewise.
581 * pthread.c: Likewise.
582 * rwlock.c: Likewise.
583 * semaphore.c: Likewise.
584 * signals.c: Likewise.
586 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
588 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
589 __ to field names of the struct.
590 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
592 (pthread_attr_t): Likewise.
593 (pthread_cond_t): Likewise.
594 (pthread_condattr_t): Likewise.
595 (pthread_mutex_t): Likewise.
596 (pthread_mutexattr_t): Likewise.
597 (pthread_rwlock_t): Likewise.
598 (pthread_rwlockattr_t): Likewise.
599 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
600 * cancel.c: Likewise.
601 * condvar.c: Likewise.
602 * manager.c: Likewise.
604 * pthread.c: Likewise.
605 * ptlongjmp.c: Likewise.
606 * rwlock.c: Likewise.
607 * spinlock.c: Likewise.
609 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
611 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
614 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
617 * Makefile (libpthread-routines): Add pt-machine.
618 * pt-machine.c: New file.
619 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
620 yet defined. Use PT_EI in extern inline definitions.
621 * sysdeps/arm/pt-machine.h: Likewise.
622 * sysdeps/i386/pt-machine.h: Likewise.
623 * sysdeps/i386/i686/pt-machine.h: Likewise.
624 * sysdeps/m68k/pt-machine.h: Likewise.
625 * sysdeps/mips/pt-machine.h: Likewise.
626 * sysdeps/powerpc/pt-machine.h: Likewise.
627 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
628 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
630 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
632 * semaphore.h: Include <sys/types.h> so that _pthread_descr
635 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
637 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
639 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
641 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
643 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
644 multiple inclusion guard.
646 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
648 * signals.c (sigaction): Check that sig is less than NSIG to avoid
649 array index overflow.
651 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
653 * sysdeps/pthread/semaphore.h: New file.
655 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
657 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
658 _LIBC_TSD_KEY_DL_ERROR.
660 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
662 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
663 * sysdeps/i386/pt-machine.h: Likewise.
664 Suggested by Roland McGrath.
666 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
668 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
669 access thread data with non-constant offsets.
670 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
673 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
674 THREAD_SETMEM_NC definitions.
676 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
678 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
680 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
682 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
684 (struct _pthread_descr_struct): Add p_self and p_nr field.
685 * manager.c (__pthread_handles): Define second element to point
687 (__pthread_handles_num): Initialize to 2.
688 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
689 (pthread_start_thread): Likewise.
690 (pthread_handle_create): Start search for free slot at entry 2.
691 Initialize new fields p_self and p_nr.
692 Call __clone with CLONE_PTRACE if available.
693 (pthread_free): Call FREE_THREAD_SELF if available.
694 * pthread.c (__pthread_initial_thread): Initialize new fields.
695 (__pthread_manager_thread): Likewise.
696 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
698 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
699 elements of the thread descriptor.
700 * condvar.c: Likewise.
703 * manager.c: Likewise.
704 * pthread.c: Likewise.
705 * ptlongjmp.c: Likewise.
706 * semaphore.c: Likewise.
707 * signals.c: Likewise.
708 * specific.c: Likewise.
709 * spinlock.c: Likewise.
711 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
713 * sysdeps/i386/useldt.h: New file.
714 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
716 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
717 THREAD_SETMEM using __thread_self.
718 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
720 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
722 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
723 turned out that we didn't need to queue after all.
725 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
727 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
728 and wastes space; correct types.
730 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
732 * signals.c (sigaction): Handle NULL argument.
734 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
736 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
739 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
741 * Makefile (linuxthreads-version): Extract correct number from
744 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
746 * Banner: Bump version number to 0.8
747 * FAQ.html: Many updates, in particular w.r.t. debugging.
748 * manager.c: Support for non-default stacksize for
749 LinuxThreads-allocated stacks;
750 don't use guard pages for stacks with default size, rely on
751 rlimit(RLIMIT_STACK) instead (it's cheaper).
753 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
754 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
755 * condvar.c: Likewise.
756 * internals.h: Likewise.
757 * restart.h: Likewise.
758 * signals.c: Likewise.
759 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
761 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
763 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
764 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
765 * Versions: Put __pthread_mutexattr_settype under version
766 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
767 __pthread_mutexattr_gettype.
769 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
771 * sysdeps/pthread/bits/libc-lock.h: Make
772 __pthread_mutexattr_settype weak. Don't make
773 __pthread_mutexattr_setkind_np weak.
775 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
777 * manager.c (pthread_handle_create): Check whether sched_setscheduler
778 call can succeed here.
780 * mutex.c: Define __pthread_mutexattr_settype and make
781 __pthread_mutexattr_setkind_np an alias.
782 Likewise for __pthread_mutexattr_gettype.
784 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
786 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
789 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
791 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
793 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
795 * Examples/ex6.c: Include <unistd.h> for usleep.
797 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
799 * Examples/ex4.c (main): Use exit, not pthread_exit.
801 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
803 * Versions: Add __pthread_mutexattr_gettype and
804 __pthread_mutexattr_settype.
805 * lockfile.c: Use __pthread_mutexattr_settype instead of
806 __pthread_mutexattr_setkind_np.
807 * mutex.c: Define __pthread_mutexattr_gettype and
808 __pthread_mutexattr_settype.
810 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
811 __pthread_mutexattr_settype.
812 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
813 Use __pthread_mutexattr_settype.
815 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
817 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
818 * mutex.c: Define weak alias pthread_mutexattr_gettype and
819 pthread_mutexattr_settype.
820 * sysdeps/pthread/pthread.h: Declare these functions.
821 Move pthread_sigmask and pthread_kill declaration in separate header.
822 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
824 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
826 * Makefile: Add rules to compile and run tests.
827 * Examples/ex1.c: Little changes to fix warnings.
828 * Examples/ex2.c: Likewise.
829 * Examples/ex3.c: Likewise.
830 * Examples/ex4.c: Likewise.
831 * Examples/ex5.c: Likewise.
832 * Examples/ex6.c: New file.
834 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
836 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
838 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
840 * attr.c: Include <string.h>.
842 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
844 * attr.c: Include errno.h. Use memcpy to copy sched_param.
845 * internals.h: Include limits.h.
846 * manager.c: Use memcpy to copy sched_param.
847 * ptfork.c: Include errno.h.
848 * pthread.c: Likewise.
849 * semaphore.c: Likewise.
850 * specific.c: Likewise.
851 * spinlock.h: Likewise.
852 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
853 type definition to ...
854 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
856 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
858 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
860 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
861 as macros as demanded in POSIX.1, Annex C.
863 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
865 * internals.h (struct pthread_request): For free use pthread_t
866 instead of pthread_descr.
867 * join.c (pthread_join): Pass thread_id, not th to manager.
868 (pthread_detach): Likewise.
869 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
870 (pthread_exited): Remove detached queue code.
871 (pthread_handle_free): Expect thread ID parameter and use it to
872 validate the thread decsriptor. Don't use detached queue.
873 Patches by Xavier Leroy.
875 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
877 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
878 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
879 __pthread_atfork, __pthread_key_create, __pthread_once.
880 * internals.h: Doc fix.
881 * pthread.c (__pthread_initialize): Define again.
883 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
885 * manager.c (pthread_exited): If thread is not detached put it on
887 (pthread_handle_free): If thread is not on list with living threads
888 search on list with detached threads.
890 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
891 for new definition of pthread_rwlock_t.
893 * spinlock.c: Correct test whether to compile
894 __pthread_compare_and_swap or not.
896 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
898 * attr.c: Finish user stack support. Change locking code to be safe
899 in situations with different priorities.
900 * cancel.c: Likewise.
901 * condvar.c: Likewise.
902 * internals.h: Likewise.
904 * manager.c: Likewise.
906 * pthread.c: Likewise.
907 * ptlongjmp.c: Likewise.
909 * rwlock.c: Likewise.
910 * semaphore.c: Likewise.
911 * semaphore.h: Likewise.
912 * signals.c: Likewise.
913 * spinlock.c: Likewise.
914 * spinlock.h: Likewise.
915 * sysdeps/pthread/pthread.h: Likewise.
916 Patches by Xavier Leroy.
918 * sysdeps/i386/i686/pt-machine.h: New file.
920 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
922 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
923 [sg]et_stackaddr prototypes always available.
925 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
926 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
928 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
930 * manager.c (pthread_free): Undo patch from 980430.
931 Reported by David Wragg <dpw@doc.ic.ac.uk>.
933 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
935 * manager.c: Define __pthread_manager_adjust_prio and use it to
936 increase priority when needed.
937 * internals.h: Add prototype for __pthread_manager_adjust_prio.
938 * mutex.c: Optimize mutexes to wake up only one thread.
939 * pthread.c: Move PID of manager for global variable in structure
941 Patches by Xavier Leroy.
943 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
945 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
947 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
949 * attr.c: Correct typo.
951 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
953 * manager.c (pthread_free): Unmap guard before the stack.
954 Patch by Matthias Urlichs.
956 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
958 * manager.c (pthread_free): Detect already free child.
959 Patch by Xavier Leroy, reported by Matthias Urlichs.
961 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
963 * Makefile (linuxthreads-version): Renamed back from
966 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
968 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
971 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
973 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
974 * internals.h: Add definitions for new spinlock implementation.
975 * ptlongjmp.c: New file.
976 * spinlock.c: New file.
977 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
978 new function __pthread_acquire to prevent deadlocks with thread
979 with different priorities.
980 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
982 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
984 * manager.c (__pthread_manager): Reduce first argument to select
985 to include just the needed file descriptor.
987 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
989 * manager.c: Fix last patch which caused core dumps.
991 * pthread.c: Correctly handle missing SIGRTMIN.
993 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
995 * libpthread.map: Add __libc_internal_tsd_get and
996 __libc_internal_tsd_set. Add missing cancelable functions. Export
997 libc internal versions of the cancelable functions.
999 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
1001 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
1003 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
1005 * attr.c: Implement pthread_attr_[gs]etguardsize,
1006 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
1007 Change pthread_attr_init to have two interfaces.
1008 * internals.h (struct _pthread_descr_struct): Add new fields for
1010 * libpthread.map: Add names in GLIBC_2.1 section.
1011 * manager.c (pthread_handle_create): Implement guardsize and
1013 (pthread_free): Likewise.
1014 * pthread.c (pthread_create): Add new interface for changed
1016 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
1017 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
1020 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
1022 * manager.c: Enable resetting of the thread scheduling policy
1023 to SCHED_OTHER when the parent thread has a different one.
1025 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
1027 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1028 _POSIX_ASYNCHRONOUS_IO.
1030 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
1032 * mutex.c: Implement new mutex types.
1034 * internals.h: Include <signal.h>.
1036 * libpthread.map: Add __erno_location and __h_errno_location.
1038 * errno.c: Return pointer to variable actually in use. This might
1039 not be the one in the thread structure.
1040 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
1042 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
1043 of manager thread structure.
1044 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
1046 * pthread.c: Adapt initializer for thread structures.
1047 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
1048 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
1049 current thread to global variables.
1051 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
1053 * rwlock.c: New file.
1054 * Makefile (libpthread-routines): Add rwlock.
1055 * sysdeps/pthread/pthread.h: Define data structures and declare
1057 * libpthread.map: Add new functions.
1059 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1061 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1062 * sysdeps/arm/Implies: likewise.
1063 * README: Document it.
1065 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1067 * signals.c: Remove unneeded initializer for sigwaited, saving a
1070 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1072 * semaphore.c (sem_init): Set sem_spinlock only if available.
1074 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1076 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1077 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1079 * Makefile: Update from LinuxThreads 0.7.
1080 * internals.h. Likewise.
1081 * manager.c: Likewise.
1082 * mutex.c: Likewise.
1083 * pthread.c: Likewise.
1084 * signals.c: Likewise.
1085 * specific.c: Likewise.
1086 * Examples/ex3.c: Likewise.
1088 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1090 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1093 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1095 * wrapsyscall.c: Add socket functions which are also cancelation
1098 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1100 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1101 New functions for fast thread specific data within libc.
1103 * internals.h: Add new array p_libc_specific to struct
1104 _pthread_descr_struct.
1106 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1108 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1110 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1111 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1113 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1115 * internals.h (struct _pthread_descr_struct): Add definitions for
1116 two-level specific key handling.
1117 * manager.c (pthread_handle_create): Initialize specific memory array.
1118 * specific.c: Implement two-level key handling.
1119 * weaks.c: Don't provide dummy key handling.
1120 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1121 Add definition of __libc_key_t.
1122 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1124 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1125 PTHREAD_DESTRUCTOR_ITERATIONS.
1127 * manager.c (pthread_handle_create): Compare mmap result with
1130 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1131 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1133 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1135 sysdeps/sparc -> sysdeps/sparc/sparc32
1136 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1138 * internals.h: Change definition of THREAD_SELF to be an expression,
1139 not a statement that did a return.
1140 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1141 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1142 Follow Solaris and use a "system reserved" register (%g6) to hold
1143 the thread descriptor.
1144 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1146 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1148 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1149 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1150 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1152 * semaphore.c: Include spinlock.h only when needed.
1154 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1155 keys for entries not in use.
1157 * weaks.c: Implement key handling functions for real.
1159 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1161 Initial sparc64-linux support:
1162 * linuxthreads/sysdeps/sparc64/Implies: New file.
1163 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1165 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1167 * semaphore.c: Include spinlock.h at correct place.
1170 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1172 The Great Bit File Move:
1173 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1174 * sysdeps/powerpc/semaphorebits.h: Likewise.
1175 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1176 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1177 * sysdeps/pthread/libc-lock.h: -> bits/
1178 * sysdeps/pthread/stdio-lock.h: Likewise.
1179 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1180 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1181 * semaphore.h: Likewise.
1182 * sysdeps/pthread/pthread.h: Likewise.
1184 * lockfile.c: <foo.h> -> <bits/foo.h>.
1185 * semaphore.h: Likewise.
1187 * Makefile: (headers): foo.h -> bits/foo.h.
1188 * sysdeps/pthread/Makefile: Likewise.
1190 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1192 * semaphore.c (sem_init): Set sem_spinlock only if available.
1194 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1197 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1199 Update from LinuxThreads 0.6.
1201 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1202 and __sched_get_priority_min instead of names without `__'.
1204 * manager.c: Rewrite large parts to implement opaque pthread_t.
1206 * cancel.c: Adapt for opaque pthread_t type.
1207 * condvar.c: Likewise.
1208 * errno.c: Likewise.
1210 * mutex.c: Likewise.
1211 * pthread.c: Likewise.
1212 * signals.c: Likewise.
1213 * specific.c: Likewise.
1214 * restart.h: Likewise.
1215 * queue.h: Likewise.
1216 * Examples/ex3.c: Likewise.
1217 * Examples/ex4.c: Likewise.
1218 * sysdeps/pthread/pthread.h: Likewise.
1220 * pthread.c: Accumulate time for all threads in thread manager.
1222 * semaphore.c: Implement fallback implementation for architectures
1223 sometimes missing compare-exchange operations.
1225 * cancel.c (pthread_cancel): Validate handle argument.
1226 * join.c (pthread_join): Likewise.
1227 (pthread_detach): Likewise.
1228 * signals.c (pthread_kill): Likewise.
1230 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1232 * queue.h (enqueue): Enqueue thread according to priority.
1234 * internals.c (struct pthread_start_args): New struct for passing
1235 args to cloning function.
1236 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1239 * Examples/Makefile (clean): Pass -f option to rm.
1241 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1242 and define TEST_FOR_COMPARE_AND_SWAP.
1243 * sysdeps/i386/i486/pt-machine.h: Removed.
1245 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1248 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1250 * restart.h (suspend): Clear p_signal before suspending.
1251 (suspend_with_cancellation): Likewise.
1252 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1254 * weaks.c: Make __pthread_key_create return 1.
1255 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1256 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1257 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1260 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1262 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1264 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1266 * sysdeps/powerpc/Implies: Added.
1267 * sysdeps/powerpc/pt-machine.h: Added.
1268 * sysdeps/powerpc/semaphorebits.h: Added.
1270 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1272 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1274 (__pthread_manager_thread): Likewise.
1275 Reported by Andreas Jaeger.
1277 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1279 Since sigset_t no longer fits in a register, we can't pass in the
1280 thread's initial mask so easily. Take this opportunity to simplify
1281 the clone implementation by only accepting a single void* argument.
1283 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1284 in the thread struct instead of as arguments through clone.
1285 (pthread_start_thread): Look for them there.
1286 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1287 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1288 * linuxthreads/pthread.c (pthread_initialize_manager): Revise