+2000-03-14 Ulrich Drepper <drepper@redhat.com>
+
+ * mutex.c (__pthread_once): Handle cancelled init function correctly.
+ (pthread_once_cancelhandler): New function.
+ Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
+
+2000-03-14 Andreas Jaeger <aj@suse.de>
+
+ * pthread.c (pthread_handle_sigcancel_rt): GS has been renamed to
+ REG_GS.
+ (pthread_handle_sigrestart_rt): Likewise.
+ * signals.c (pthread_sighandler_rt): Likewise.
+
+2000-03-02 Andreas Jaeger <aj@suse.de>
+
+ * sysdeps/pthread/bits/libc-lock.h: Fix typo.
+ Reported by Sean Chen <sean.chen@turbolinux.com>.
+
+2000-02-28 Andreas Jaeger <aj@suse.de>
+
+ * rwlock.c: Fix typo.
+
+2000-02-27 Ulrich Drepper <drepper@redhat.com>
+
+ * rwlock.c: Define __* variants of the functions and make old names
+ aliases.
+ * Versions [GLIBC_2.2]: Export the __pthread_rwlock_* functions.
+ * sysdeps/pthread/bits/libc-lock.h: Define __libc_rwlock_* macros.
+
+2000-02-25 Andreas Jaeger <aj@suse.de>
+
+ * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
+ pwrite64, lseek64, open64, and __open64 with version 2.2.
+
+2000-02-22 Ulrich Drepper <drepper@redhat.com>
+
+ * semaphore.h (SEM_FAILED): Use 0 not NULL.
+
+2000-02-14 Ulrich Drepper <drepper@redhat.com>
+
+ * condvar.c (pthread_cond_timedwait_relative_old): Tight loop with
+ nanosleep does not work either. Get absolute time inside the
+ loop.
+ (pthread_cond_timedwait_relative_new): Likewise.
+ Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
+
+2000-02-13 Andreas Jaeger <aj@suse.de>
+
+ * condvar.c (pthread_cond_timedwait_relative_new): Fix last patch.
+ (pthread_cond_timedwait_relative_old): Likewise.
+
+2000-02-13 Ulrich Drepper <drepper@redhat.com>
+
+ * condvar.c (pthread_cond_timedwait_relative_old): Undo last patch
+ but keep the code around. A bug in the kernel prevent us from
+ using the code.
+ (pthread_cond_timedwait_relative_new): Likewise.
+ (PR libc/1597 and libc/1598).
+
+2000-02-01 Kaz Kylheku <kaz@ashi.footprints.net>
+
+ * condvar.c (pthread_cond_timedwait_relative_old): Do tight
+ loop around nanosleep calls instead of around most of the function
+ (pthread_cond_timedwait_relative_new): Likewise.
+ body. Got rid of backwards goto and one local.
+
+2000-01-31 Ulrich Drepper <drepper@redhat.com>
+
+ * condvar.c (pthread_cond_timedwait_relative_old): Recompute time
+ before every nanosleep call to account for time spent in the rest
+ of the function.
+ (pthread_cond_timedwait_relative_new): Likewise.
+ Patch by khendricks@ivey.uwo.ca (PR libc/1564).
+
+2000-01-29 Ulrich Drepper <drepper@redhat.com>
+
+ * condvar.c (pthread_cond_timedwait_relative_old): Get remaining time
+ from nanosleep call so that in case we restart we only wait for the
+ remaining time.
+ (pthread_cond_timedwait_relative_new): Likewise.
+ Patch by khendricks@ivey.uwo.ca (PR libc/1561).
+
+2000-01-18 Ulrich Drepper <drepper@cygnus.com>
+
+ * manager.c (pthread_allocate_stack): Compute guard page address
+ correctly. Patch by HJ Lu.
+
+ * sysdeps/pthread/pthread.h: Define
+ PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP.
+
+2000-01-16 Ulrich Drepper <drepper@cygnus.com>
+
+ * rwlock.c (pthread_rwlock_unlock): Correct one more problem with
+ preference handling.
+ (pthread_rwlockattr_setkind_np): Allow
+ PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP.
+ Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
+
+2000-01-12 Ulrich Drepper <drepper@cygnus.com>
+
+ * internals.h (pthread_readlock_info): New structure.
+ (_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
+ p_untracked_readlock_count.
+ * pthread.c (__pthread_initial_thread, pthread_manager_thread):
+ Add initializers for new fields.
+ * manager.c (pthread_free): Free read/write lock lists.
+ * queue.h (queue_is_empty): New function.
+ * rwlock.c: Implement requirements about when readers should get
+ locks assigned.
+ * sysdeps/pthread/pthread.h
+ (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
+ * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_rwlock_t):
+ Define this name as well.
+ Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
+
+2000-01-05 Ulrich Drepper <drepper@cygnus.com>
+
+ * pthread.c (__pthread_initial_thread, pthread_manager_thread):
+ Adjust initializers for struct _pthread_descr_struct change.
+ * internals.h (struct _pthread_descr_struct): Move new elements to
+ the end.
+
+2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
+
+ Redesigned how cancellation unblocks a thread from internal
+ cancellation points (sem_wait, pthread_join,
+ pthread_cond_{wait,timedwait}).
+ Cancellation won't eat a signal in any of these functions
+ (*required* by POSIX and Single Unix Spec!).
+ * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
+ simultaneous condition variable signal (not required by POSIX
+ or Single Unix Spec, but nice).
+ * spinlock.c: __pthread_lock queues back any received restarts
+ that don't belong to it instead of assuming ownership of lock
+ upon any restart; fastlock can no longer be acquired by two threads
+ simultaneously.
+ * restart.h: Restarts queue even on kernels that don't have
+ queued real time signals (2.0, early 2.1), thanks to atomic counter,
+ avoiding a rare race condition in pthread_cond_timedwait.
+
+1999-12-31 Andreas Jaeger <aj@suse.de>
+
+ * internals.h: Remove duplicate prototype declarations.
+
+ * weaks.c: Remove __THROW from prototypes since the file is not
+ compiled by a C++ compiler.
+ * internals.h: Likewise.
+
+1999-12-30 Andreas Jaeger <aj@suse.de>
+
+ * sysdeps/pthread/pthread.h: Move internal functions to...
+ * sysdeps/pthread/bits/libc-lock.h: ...here.
+
+1999-12-29 Andreas Jaeger <aj@suse.de>
+
+ * sysdeps/pthread/pthread.h: Fix typos, reformat comments.
+
+1999-12-28 Ulrich Drepper <drepper@cygnus.com>
+
+ * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
+ beginning.
+
+ * manager.c (__pthread_start): Add one more cast to prevent
+ warning on 64bit machines.
+
+1999-12-21 Ulrich Drepper <drepper@cygnus.com>
+
+ * manager.c (pthread_handle_create): Set p_pid of new thread
+ before calling the callback function to report a new thread.
+
+1999-12-20 Andreas Jaeger <aj@suse.de>
+
+ * pthread.c (pthread_initialize): Move getrlimit call after
+ setting of errno.
+
+1999-12-18 Ulrich Drepper <drepper@cygnus.com>
+
+ * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
+ pwrite64, lseek64, open64, and __open64.
+ * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
+ pwrite64, lseek64, open64, and __open64.
+
+ * manager.c (pthread_allocate_stack): Correct computation of
+ new_thread_bottom. Correct handling of stack size and when the
+ rlimit method to guard for stack growth is used.
+ * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
+ minus one pagesize (not two).
+
+1999-12-03 Andreas Jaeger <aj@suse.de>
+
+ * Versions: Add __res_state with version GLIBC_2.2.
+
+ * errno.c (__res_state): New function to return thread specific
+ resolver state.
+
+ * pthread.c (pthread_initialize): Initialize p_resp.
+ (__pthread_reset_main_thread): Also set p_resp.
+
+ * manager.c (pthread_handle_create): Initialize p_resp.
+
+ * internals.h: Add thread specific resolver state.
+ Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
+
+1999-12-01 Ulrich Drepper <drepper@cygnus.com>
+
+ * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
+ beginning.
+ * sysdeps/i386/i686/pt-machine.h: Likewise.
+ Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
+
+1999-11-23 Ulrich Drepper <drepper@cygnus.com>
+
+ * manager.c (pthread_start_thread_event): Initialize p_pid already
+ here.
+
+1999-11-22 Ulrich Drepper <drepper@cygnus.com>
+
+ * internals.h: Add prototype for __pthread_manager_event.
+ * manager.c (__pthread_manager_event): New function.
+ (pthread_start_thread_event): Correct computation of self.
+ Use INIT_THREAD_SELF.
+ * pthread.c (__pthread_manager_thread): Initialize p_lock.
+ (__pthread_initialize_manager): Respect event flags also for creation
+ of the manager thread.
+
+1999-11-08 Ulrich Drepper <drepper@cygnus.com>
+
+ * pthread.c (__pthread_initialize_manager): Initialize
+ __pthread_manager_thread.p_tid.
+
+1999-11-02 Ulrich Drepper <drepper@cygnus.com>
+
+ * internals.h: Declare __pthread_last_event.
+ * manager.c: Define __pthread_last_event.
+ (pthread_handle_create): Set __pthread_last_event.
+ (pthread_exited): Likewise.
+ * join.c (pthread_exit): Likewise.
+
+ * Makefile (libpthread-routines): Add events.
+ * events.c: New file.
+ * internals.h: Protect against multiple inclusion.
+ Include thread_dbP.h header.
+ (struct _pthread_descr_struct): Add new fields p_report_events and
+ p_eventbuf.
+ Declare event reporting functions.
+ * join.c (pthread_exit): Signal event if this is wanted.
+ * manager.c (__pthread_threads_events): New variable.
+ (pthread_handle_create): Take new parameters with event information.
+ Signal TD_CREATE event if wanted.
+ (__pthread_manager): Adjust pthread_handle_create call.
+ (pthread_start_thread_event): New function. Block until manager is
+ finished and then call pthread_start_thread.
+ (pthread_exited): Signal TD_REAP event if wanted.
+
+1999-10-26 Ulrich Drepper <drepper@cygnus.com>
+
+ * restart.h (suspend_with_cancellation): Rewrite as a macro.
+
+ * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
+
+1999-10-25 Andreas Jaeger <aj@suse.de>
+
+ * internals.h: Remove K&R compatibility.
+ * no-tsd.c: Likewise.
+ * semaphore.h: Likewise.
+ * signals.c: Likewise.
+ * sysdeps/pthread/bits/libc-tsd.h: Likewise.
+ * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
+ * weaks.c: Likewise.
+
+1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
+
+ * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
+ and pthread_handle_sigcancel with functions that restore
+ %gs from the signal context. For each signal handling function,
+ two wrappers are required, one for a non-RT signal and one for
+ a RT signal.
+ * linuxthreads/signal.c: For i386, add code to restore %gs
+ from the signal context in pthread_sighandler and
+ pthread_sighandler_rt.
+
+1999-10-17 Ulrich Drepper <drepper@cygnus.com>
+
+ * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
+
+1999-10-14 Ulrich Drepper <drepper@cygnus.com>
+
+ * pthread.c (__pthread_initial_thread): Pass argument to
+ PTHREAD_START_ARGS_INITIALIZER.
+ (__pthread_manager_thread): Likewise.
+
+ * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
+ initialize function.
+
+ * manager.c (pthread_handle_create): Remove p_startfct initialization.
+
+ * internals.h (_pthread_descr_struct): We don't need p_startfct field.
+
+1999-10-12 Ulrich Drepper <drepper@cygnus.com>
+
+ * internals.h: Correct return types for __libc_read and __libc_write.
+
+1999-10-09 Andreas Jaeger <aj@suse.de>
+
+ * internals.h: Add __new_sem_post to get prototype in
+ manager.c; include semaphore.h for needed types.
+
+1999-10-08 Ulrich Drepper <drepper@cygnus.com>
+
+ * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
+ directly instead of calling sem_post which should not be necessary
+ but is faster and might help in some case to work around problems.
+ Patch by khendricks@ivey.uwo.ca [libc/1382].
+
+1999-10-08 Andreas Schwab <schwab@suse.de>
+
+ * sysdeps/pthread/Subdirs: New file.
+ * Implies: Removed.
+
+1999-10-07 Ulrich Drepper <drepper@cygnus.com>
+
+ * Implies: New file.
+ * internals.h (struct _pthread_descr_struct): Add p_startfct.
+ * manager.c (pthread_handle_create): Initialize p_startfct.
+ * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
+
+1999-09-25 Ulrich Drepper <drepper@cygnus.com>
+
+ * manager.c (__linuxthreads_pthread_threads_max): New variable.
+ * specific.c (__linuxthreads_pthread_keys_max): New variable.
+ (__linuxthreads_pthread_key_2ndlevel_size): New variable.
+
+ * condvar.c (pthread_cond_timedwait_relative): Never return with
+ EINTR. Patch by Andreas Schwab.
+
+1999-09-19 Ulrich Drepper <drepper@cygnus.com>
+
+ * signals.c (sigaction): Correct last patch. Don't select
+ pthread_sighandler_rt based on the signal number but instead of
+ the SA_SIGINFO flag.
+
+1999-09-23 Ulrich Drepper <drepper@cygnus.com>
+
+ * specific.c: Move definitions of struct pthread_key_struct and
+ destr_function to ...
+ * internals.h: ...here.
+
+1999-09-18 Ulrich Drepper <drepper@cygnus.com>
+
+ * pthread.c (pthread_handle_sigrestart_rt): New function. Use
+ this instead of pthread_handle_sigrestart if the signal is an RT
+ signal.
+
+ * signals.c: Handle passing through of sighandler arguments also
+ for real-time signals.
+
+1999-09-03 Andreas Schwab <schwab@suse.de>
+
+ * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
+ fork as weak alias.
+ (__vfork): New function, alias vfork.
+ * Versions: Export __fork, vfork, and __vfork in libpthread.
+
+1999-08-23 Andreas Schwab <schwab@suse.de>
+
+ * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
+ call to signal handler.
+
+1999-08-20 Ulrich Drepper <drepper@cygnus.com>
+
+ * pthread.c (__pthread_reset_main_thread): Undo last change.
+ (__pthread_kill_other_threads_np): Reset signal handlers for the
+ signals we used in the thread implementation here.
+
+1999-08-19 Ulrich Drepper <drepper@cygnus.com>
+
+ * pthread.c (__pthread_reset_main_thread): Reset signal handlers
+ for the signals we used in the thread implementation [PR libc/1234].
+
+ * Versions: Export __pthread_kill_other_threads_np from libpthread
+ for GLIBC_2.1.2.
+
+ * signals.c: Pass sigcontext through wrapper to the user function.
+
+1999-08-01 Ulrich Drepper <drepper@cygnus.com>
+
+ * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
+ __libc_internal_tsd_set.
+
+1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * manager.c: Remove inclusion of <linux/tasks.h> since it's not
+ needed anymore.
+
+1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * internals.h: Align _pthread_descr_struct to 32 bytes.
+ Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
+ libc/1206.
+
+1999-07-09 Ulrich Drepper <drepper@cygnus.com>
+
+ * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
+ swap function.
+
+1999-07-09 Cristian Gafton <gafton@redhat.com>
+
+ * Makefile (libpthread-routines): Add oldsemaphore routine.
+ * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
+ sem_trywait, and sem_wait to GLIBC_2.1.
+ * oldsemaphore.c: New file.
+ * semaphore.c: Add default_symbol_versions for the changed functions.
+ (__new_sem_init): Rename from sem_init.
+ (__new_sem_post): Rename from sem_post.
+ (__new_sem_wait): Rename from sem_wait.
+ (__new_sem_trywait): Rename from sem_trywait.
+ (__new_sem_getvalue): Rename from sem_getvalue.
+ (__new_sem_destroy): Rename from sem_destroy.
+
+1999-06-23 Robey Pointer <robey@netscape.com>
+
+ * internals.h: Added p_nextlock entry to separate queueing for a
+ lock from queueing for a CV (sometimes a thread queues on a lock
+ to serialize removing itself from a CV queue).
+ * pthread.c: Added p_nextlock to initializers.
+ * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
+
+1999-07-09 Ulrich Drepper <drepper@cygnus.com>
+
+ * manager.c (pthread_handle_create): Free mmap region after stack
+ if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
+
+1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * man/pthread_cond_init.man: Correct example.
+ Reported by Tomas Berndtsson <tomas@nocrew.org>.
+
+ * linuxthreads.texi (Condition Variables): Likewise.
+
+1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
+
+ * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
+ casx not cas, also successful casx returns the old value in rd
+ and not the new value.
+
+1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
+
+ * manager.c: If pthread_create() is given a NULL attribute
+ and the thread manager runs with a realtime policy, set the
+ scheduling policy of the newly created thread back to SCHED_OTHER.
+ * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
+ initialize the schedpolicy field of new_thread->p_start_args
+ to that of the calling thread.
+
+1999-04-29 Ulrich Drepper <drepper@cygnus.com>
+
+ * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
+ instruction does not allow memory element to use offset.
+
+1999-04-28 Ulrich Drepper <drepper@cygnus.com>
+
+ * manager.c (pthread_allocate_stack): Optimize initialization of new
+ thread descriptor.
+
+ * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
+ Don't use initializer since it is all zeroes.
+ (__libc_once_define): Likewise.
+
+1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
+ doesn't exist anymore.
+ * sysdeps/i386/Implies: Likewise.
+ * sysdeps/m68k/Implies: Likewise.
+ * sysdeps/mips/Implies: Likewise.
+ * sysdeps/powerpc/Implies: Likewise.
+ * sysdeps/sparc/sparc32/Implies: Likewise.
+ * sysdeps/sparc/sparc64/Implies: Likewise.
+
+1999-04-15 Ulrich Drepper <drepper@cygnus.com>
+
+ * sysdeps/alpha/bits/semaphore.h: Removed.
+ * sysdeps/powerpc/bits/semaphore.h: Removed.
+ * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
+ * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
+ * Makefile (headers): Remove bits/semaphore.h.
+
+ * semaphore.h: Define _pthread_descr if necessary.
+ Don't include limits.h. Define SEM_VALUE_MAX directly.
+ Define SEM_FAILED.
+ (sem_t): Protect element names with leading __.
+ Add declarations for sem_close, sem_open, and sem_unlink.
+ * semaphore.c: Adjust all functions for new element names.
+ Define sem_close, sem_open, and sem_unlink.
+ * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
+ GLIBC_2.1.1.
+ * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
+ necessary.
+
+1999-03-16 H.J. Lu <hjl@gnu.org>
+
+ * specific.c (pthread_key_delete): Check th->p_terminated to see
+ if the thread is running.
+
+ * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
+ Added to GLIBC_2.0 for libc.so.
+
+1999-02-12 H.J. Lu <hjl@gnu.org>
+
+ * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
+ __libc_allocate_rtsig): Added to GLIBC_2.1.
+
+ * internals.h (DEFAULT_SIG_RESTART): Removed.
+ (DEFAULT_SIG_CANCEL): Removed.
+
+ * pthread.c (init_rtsigs, __libc_current_sigrtmin,
+ __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
+ (__pthread_sig_restart, __pthread_sig_cancel,
+ __pthread_sig_debug): Initialized.
+ (pthread_initialize): Call init_rtsigs () to initialize
+ real-time signals.
+
+1999-02-03 H.J. Lu <hjl@gnu.org>
+
+ * manager.c (__pthread_manager): Do block __pthread_sig_debug.
+ Don't restart the thread which sent REQ_DEBUG.
+ (pthread_start_thread): Check if __pthread_sig_debug > 0
+ before debugging.
+
+ * pthread.c (__pthread_initialize_manager): Suspend ourself
+ after sending __pthread_sig_debug to gdb instead of
+ __pthread_sig_cancel.
+
1999-01-24 H.J. Lu <hjl@gnu.org>
* manager.c (__pthread_manager): Delete __pthread_sig_debug