1 2000-02-25 Andreas Jaeger <aj@suse.de>
3 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
4 pwrite64, lseek64, open64, and __open64 with version 2.2.
6 2000-02-22 Ulrich Drepper <drepper@redhat.com>
8 * semaphore.h (SEM_FAILED): Use 0 not NULL.
10 2000-02-14 Ulrich Drepper <drepper@redhat.com>
12 * condvar.c (pthread_cond_timedwait_relative_old): Tight loop with
13 nanosleep does not work either. Get absolute time inside the
15 (pthread_cond_timedwait_relative_new): Likewise.
16 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
18 2000-02-13 Andreas Jaeger <aj@suse.de>
20 * condvar.c (pthread_cond_timedwait_relative_new): Fix last patch.
21 (pthread_cond_timedwait_relative_old): Likewise.
23 2000-02-13 Ulrich Drepper <drepper@redhat.com>
25 * condvar.c (pthread_cond_timedwait_relative_old): Undo last patch
26 but keep the code around. A bug in the kernel prevent us from
28 (pthread_cond_timedwait_relative_new): Likewise.
29 (PR libc/1597 and libc/1598).
31 2000-02-01 Kaz Kylheku <kaz@ashi.footprints.net>
33 * condvar.c (pthread_cond_timedwait_relative_old): Do tight
34 loop around nanosleep calls instead of around most of the function
35 (pthread_cond_timedwait_relative_new): Likewise.
36 body. Got rid of backwards goto and one local.
38 2000-01-31 Ulrich Drepper <drepper@redhat.com>
40 * condvar.c (pthread_cond_timedwait_relative_old): Recompute time
41 before every nanosleep call to account for time spent in the rest
43 (pthread_cond_timedwait_relative_new): Likewise.
44 Patch by khendricks@ivey.uwo.ca (PR libc/1564).
46 2000-01-29 Ulrich Drepper <drepper@redhat.com>
48 * condvar.c (pthread_cond_timedwait_relative_old): Get remaining time
49 from nanosleep call so that in case we restart we only wait for the
51 (pthread_cond_timedwait_relative_new): Likewise.
52 Patch by khendricks@ivey.uwo.ca (PR libc/1561).
54 2000-01-18 Ulrich Drepper <drepper@cygnus.com>
56 * manager.c (pthread_allocate_stack): Compute guard page address
57 correctly. Patch by HJ Lu.
59 * sysdeps/pthread/pthread.h: Define
60 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP.
62 2000-01-16 Ulrich Drepper <drepper@cygnus.com>
64 * rwlock.c (pthread_rwlock_unlock): Correct one more problem with
66 (pthread_rwlockattr_setkind_np): Allow
67 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP.
68 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
70 2000-01-12 Ulrich Drepper <drepper@cygnus.com>
72 * internals.h (pthread_readlock_info): New structure.
73 (_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
74 p_untracked_readlock_count.
75 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
76 Add initializers for new fields.
77 * manager.c (pthread_free): Free read/write lock lists.
78 * queue.h (queue_is_empty): New function.
79 * rwlock.c: Implement requirements about when readers should get
81 * sysdeps/pthread/pthread.h
82 (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
83 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_rwlock_t):
84 Define this name as well.
85 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
87 2000-01-05 Ulrich Drepper <drepper@cygnus.com>
89 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
90 Adjust initializers for struct _pthread_descr_struct change.
91 * internals.h (struct _pthread_descr_struct): Move new elements to
94 2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
96 Redesigned how cancellation unblocks a thread from internal
97 cancellation points (sem_wait, pthread_join,
98 pthread_cond_{wait,timedwait}).
99 Cancellation won't eat a signal in any of these functions
100 (*required* by POSIX and Single Unix Spec!).
101 * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
102 simultaneous condition variable signal (not required by POSIX
103 or Single Unix Spec, but nice).
104 * spinlock.c: __pthread_lock queues back any received restarts
105 that don't belong to it instead of assuming ownership of lock
106 upon any restart; fastlock can no longer be acquired by two threads
108 * restart.h: Restarts queue even on kernels that don't have
109 queued real time signals (2.0, early 2.1), thanks to atomic counter,
110 avoiding a rare race condition in pthread_cond_timedwait.
112 1999-12-31 Andreas Jaeger <aj@suse.de>
114 * internals.h: Remove duplicate prototype declarations.
116 * weaks.c: Remove __THROW from prototypes since the file is not
117 compiled by a C++ compiler.
118 * internals.h: Likewise.
120 1999-12-30 Andreas Jaeger <aj@suse.de>
122 * sysdeps/pthread/pthread.h: Move internal functions to...
123 * sysdeps/pthread/bits/libc-lock.h: ...here.
125 1999-12-29 Andreas Jaeger <aj@suse.de>
127 * sysdeps/pthread/pthread.h: Fix typos, reformat comments.
129 1999-12-28 Ulrich Drepper <drepper@cygnus.com>
131 * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
134 * manager.c (__pthread_start): Add one more cast to prevent
135 warning on 64bit machines.
137 1999-12-21 Ulrich Drepper <drepper@cygnus.com>
139 * manager.c (pthread_handle_create): Set p_pid of new thread
140 before calling the callback function to report a new thread.
142 1999-12-20 Andreas Jaeger <aj@suse.de>
144 * pthread.c (pthread_initialize): Move getrlimit call after
147 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
149 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
150 pwrite64, lseek64, open64, and __open64.
151 * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
152 pwrite64, lseek64, open64, and __open64.
154 * manager.c (pthread_allocate_stack): Correct computation of
155 new_thread_bottom. Correct handling of stack size and when the
156 rlimit method to guard for stack growth is used.
157 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
158 minus one pagesize (not two).
160 1999-12-03 Andreas Jaeger <aj@suse.de>
162 * Versions: Add __res_state with version GLIBC_2.2.
164 * errno.c (__res_state): New function to return thread specific
167 * pthread.c (pthread_initialize): Initialize p_resp.
168 (__pthread_reset_main_thread): Also set p_resp.
170 * manager.c (pthread_handle_create): Initialize p_resp.
172 * internals.h: Add thread specific resolver state.
173 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
175 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
177 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
179 * sysdeps/i386/i686/pt-machine.h: Likewise.
180 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
182 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
184 * manager.c (pthread_start_thread_event): Initialize p_pid already
187 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
189 * internals.h: Add prototype for __pthread_manager_event.
190 * manager.c (__pthread_manager_event): New function.
191 (pthread_start_thread_event): Correct computation of self.
192 Use INIT_THREAD_SELF.
193 * pthread.c (__pthread_manager_thread): Initialize p_lock.
194 (__pthread_initialize_manager): Respect event flags also for creation
195 of the manager thread.
197 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
199 * pthread.c (__pthread_initialize_manager): Initialize
200 __pthread_manager_thread.p_tid.
202 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
204 * internals.h: Declare __pthread_last_event.
205 * manager.c: Define __pthread_last_event.
206 (pthread_handle_create): Set __pthread_last_event.
207 (pthread_exited): Likewise.
208 * join.c (pthread_exit): Likewise.
210 * Makefile (libpthread-routines): Add events.
211 * events.c: New file.
212 * internals.h: Protect against multiple inclusion.
213 Include thread_dbP.h header.
214 (struct _pthread_descr_struct): Add new fields p_report_events and
216 Declare event reporting functions.
217 * join.c (pthread_exit): Signal event if this is wanted.
218 * manager.c (__pthread_threads_events): New variable.
219 (pthread_handle_create): Take new parameters with event information.
220 Signal TD_CREATE event if wanted.
221 (__pthread_manager): Adjust pthread_handle_create call.
222 (pthread_start_thread_event): New function. Block until manager is
223 finished and then call pthread_start_thread.
224 (pthread_exited): Signal TD_REAP event if wanted.
226 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
228 * restart.h (suspend_with_cancellation): Rewrite as a macro.
230 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
232 1999-10-25 Andreas Jaeger <aj@suse.de>
234 * internals.h: Remove K&R compatibility.
235 * no-tsd.c: Likewise.
236 * semaphore.h: Likewise.
237 * signals.c: Likewise.
238 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
239 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
242 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
244 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
245 and pthread_handle_sigcancel with functions that restore
246 %gs from the signal context. For each signal handling function,
247 two wrappers are required, one for a non-RT signal and one for
249 * linuxthreads/signal.c: For i386, add code to restore %gs
250 from the signal context in pthread_sighandler and
251 pthread_sighandler_rt.
253 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
255 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
257 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
259 * pthread.c (__pthread_initial_thread): Pass argument to
260 PTHREAD_START_ARGS_INITIALIZER.
261 (__pthread_manager_thread): Likewise.
263 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
266 * manager.c (pthread_handle_create): Remove p_startfct initialization.
268 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
270 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
272 * internals.h: Correct return types for __libc_read and __libc_write.
274 1999-10-09 Andreas Jaeger <aj@suse.de>
276 * internals.h: Add __new_sem_post to get prototype in
277 manager.c; include semaphore.h for needed types.
279 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
281 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
282 directly instead of calling sem_post which should not be necessary
283 but is faster and might help in some case to work around problems.
284 Patch by khendricks@ivey.uwo.ca [libc/1382].
286 1999-10-08 Andreas Schwab <schwab@suse.de>
288 * sysdeps/pthread/Subdirs: New file.
291 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
294 * internals.h (struct _pthread_descr_struct): Add p_startfct.
295 * manager.c (pthread_handle_create): Initialize p_startfct.
296 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
298 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
300 * manager.c (__linuxthreads_pthread_threads_max): New variable.
301 * specific.c (__linuxthreads_pthread_keys_max): New variable.
302 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
304 * condvar.c (pthread_cond_timedwait_relative): Never return with
305 EINTR. Patch by Andreas Schwab.
307 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
309 * signals.c (sigaction): Correct last patch. Don't select
310 pthread_sighandler_rt based on the signal number but instead of
313 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
315 * specific.c: Move definitions of struct pthread_key_struct and
316 destr_function to ...
317 * internals.h: ...here.
319 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
321 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
322 this instead of pthread_handle_sigrestart if the signal is an RT
325 * signals.c: Handle passing through of sighandler arguments also
326 for real-time signals.
328 1999-09-03 Andreas Schwab <schwab@suse.de>
330 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
332 (__vfork): New function, alias vfork.
333 * Versions: Export __fork, vfork, and __vfork in libpthread.
335 1999-08-23 Andreas Schwab <schwab@suse.de>
337 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
338 call to signal handler.
340 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
342 * pthread.c (__pthread_reset_main_thread): Undo last change.
343 (__pthread_kill_other_threads_np): Reset signal handlers for the
344 signals we used in the thread implementation here.
346 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
348 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
349 for the signals we used in the thread implementation [PR libc/1234].
351 * Versions: Export __pthread_kill_other_threads_np from libpthread
354 * signals.c: Pass sigcontext through wrapper to the user function.
356 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
358 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
359 __libc_internal_tsd_set.
361 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
363 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
366 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
368 * internals.h: Align _pthread_descr_struct to 32 bytes.
369 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
372 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
374 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
377 1999-07-09 Cristian Gafton <gafton@redhat.com>
379 * Makefile (libpthread-routines): Add oldsemaphore routine.
380 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
381 sem_trywait, and sem_wait to GLIBC_2.1.
382 * oldsemaphore.c: New file.
383 * semaphore.c: Add default_symbol_versions for the changed functions.
384 (__new_sem_init): Rename from sem_init.
385 (__new_sem_post): Rename from sem_post.
386 (__new_sem_wait): Rename from sem_wait.
387 (__new_sem_trywait): Rename from sem_trywait.
388 (__new_sem_getvalue): Rename from sem_getvalue.
389 (__new_sem_destroy): Rename from sem_destroy.
391 1999-06-23 Robey Pointer <robey@netscape.com>
393 * internals.h: Added p_nextlock entry to separate queueing for a
394 lock from queueing for a CV (sometimes a thread queues on a lock
395 to serialize removing itself from a CV queue).
396 * pthread.c: Added p_nextlock to initializers.
397 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
399 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
401 * manager.c (pthread_handle_create): Free mmap region after stack
402 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
404 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
406 * man/pthread_cond_init.man: Correct example.
407 Reported by Tomas Berndtsson <tomas@nocrew.org>.
409 * linuxthreads.texi (Condition Variables): Likewise.
411 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
413 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
414 casx not cas, also successful casx returns the old value in rd
415 and not the new value.
417 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
419 * manager.c: If pthread_create() is given a NULL attribute
420 and the thread manager runs with a realtime policy, set the
421 scheduling policy of the newly created thread back to SCHED_OTHER.
422 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
423 initialize the schedpolicy field of new_thread->p_start_args
424 to that of the calling thread.
426 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
428 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
429 instruction does not allow memory element to use offset.
431 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
433 * manager.c (pthread_allocate_stack): Optimize initialization of new
436 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
437 Don't use initializer since it is all zeroes.
438 (__libc_once_define): Likewise.
440 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
442 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
443 doesn't exist anymore.
444 * sysdeps/i386/Implies: Likewise.
445 * sysdeps/m68k/Implies: Likewise.
446 * sysdeps/mips/Implies: Likewise.
447 * sysdeps/powerpc/Implies: Likewise.
448 * sysdeps/sparc/sparc32/Implies: Likewise.
449 * sysdeps/sparc/sparc64/Implies: Likewise.
451 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
453 * sysdeps/alpha/bits/semaphore.h: Removed.
454 * sysdeps/powerpc/bits/semaphore.h: Removed.
455 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
456 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
457 * Makefile (headers): Remove bits/semaphore.h.
459 * semaphore.h: Define _pthread_descr if necessary.
460 Don't include limits.h. Define SEM_VALUE_MAX directly.
462 (sem_t): Protect element names with leading __.
463 Add declarations for sem_close, sem_open, and sem_unlink.
464 * semaphore.c: Adjust all functions for new element names.
465 Define sem_close, sem_open, and sem_unlink.
466 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
468 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
471 1999-03-16 H.J. Lu <hjl@gnu.org>
473 * specific.c (pthread_key_delete): Check th->p_terminated to see
474 if the thread is running.
476 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
477 Added to GLIBC_2.0 for libc.so.
479 1999-02-12 H.J. Lu <hjl@gnu.org>
481 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
482 __libc_allocate_rtsig): Added to GLIBC_2.1.
484 * internals.h (DEFAULT_SIG_RESTART): Removed.
485 (DEFAULT_SIG_CANCEL): Removed.
487 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
488 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
489 (__pthread_sig_restart, __pthread_sig_cancel,
490 __pthread_sig_debug): Initialized.
491 (pthread_initialize): Call init_rtsigs () to initialize
494 1999-02-03 H.J. Lu <hjl@gnu.org>
496 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
497 Don't restart the thread which sent REQ_DEBUG.
498 (pthread_start_thread): Check if __pthread_sig_debug > 0
501 * pthread.c (__pthread_initialize_manager): Suspend ourself
502 after sending __pthread_sig_debug to gdb instead of
503 __pthread_sig_cancel.
505 1999-01-24 H.J. Lu <hjl@gnu.org>
507 * manager.c (__pthread_manager): Delete __pthread_sig_debug
508 from mask if __pthread_sig_debug > 0.
509 (pthread_handle_create): Increment __pthread_handles_num.
511 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
512 * pthread.c (__pthread_initialize_manager): Likewise.
514 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
515 instead of __libc_allocate_rtsig (2).
516 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
517 instead of __pthread_sig_cancel.
518 (pthread_handle_sigdebug): Fix comments.
520 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
522 * manager.c (pthread_allocate_stack): Set
523 __pthread_nonstandard_stacks if user-specified stack is used.
525 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
527 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
528 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
530 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
532 * pthread.c: Use a third signal __pthread_sig_debug distinct
533 from __pthread_sig_cancel to notify gdb when a thread is
535 * manager.c: Likewise.
536 * internals.h: Likewise.
537 * signals.c: The implementation of sigwait(s) assumed that
538 all signals in s have signal handlers already attached.
539 This is not required by the standard, so make it work
540 also if some of the signals have no handlers.
542 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
544 * linuxthreads.texi: Remove pointers from first @node. Move old
545 @node spec inside comment.
547 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
549 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
552 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
554 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
555 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
557 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
559 * manager.c: Threads now send __pthread_sig_cancel on termination.
560 Change clone call and signal masks.
561 * thread.c (pthread_handle_sigrestart): Remove special code for
563 (pthread_handle_sigcancel): In manager thread call
564 __pthread_manager_sighandler.
565 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
566 * sysdeps/i386/i686/pt-machine.h: Likewise.
567 Patches by Xavier Leroy.
569 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
571 * spinlock.c (__pthread_unlock): Don't crash if called for an
572 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
574 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
577 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
579 * Examples/ex3.c: Wait until all threads are started before
580 searching for the number to avoid race condition on very fast
583 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
585 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
586 declaration since it's not needed.
588 * sysdeps/pthread/pthread.h: Move internal functions to ...
589 * internals.h: ...here.
591 1998-12-02 H.J. Lu <hjl@gnu.org>
593 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
595 (__pthread_sig_cancel): Likewise.
597 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
599 * wrapsyscall.c: Include <sys/mman.h> for msync,
600 <stdlib.h> for system and <termios.h> for tcdrain prototype.
601 Correct msync declaration.
603 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
605 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
606 __libc_tsd_set): New macros for new interface.
607 * no-tsd.c: New file, provide uninitialized defns of
608 __libc_internal_tsd_get and __libc_internal_tsd_set.
609 * Makefile (routines): Add no-tsd.
611 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
613 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
614 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
615 __libc_internal_tsd_set): Move decls to ...
616 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
619 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
620 __libc_internal_tsd_set): Make these pointers to functions, not
621 functions; remove #pragma weak decls for them.
622 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
623 Define static functions and initialized pointers to them.
625 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
627 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
628 (CFLAGS-specific.c): Likewise.
629 (CFLAGS-pthread.c): Likewise.
630 (CFLAGS-ptfork.c): Likewise.
631 (CFLAGS-cancel.c): Likewise.
632 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
633 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
635 * mutex.c (pthread_mutex_init): Define as strong symbol.
636 (pthread_mutex_destroy): Likewise.
637 (pthread_mutex_trylock): Likewise.
638 (pthread_mutex_lock): Likewise.
639 (pthread_mutex_unlock): Likewise.
640 (pthread_mutexattr_init): Likewise.
641 (pthread_mutexattr_destroy): Likewise.
642 (pthread_once): Likewise.
643 * ptfork.c (pthread_atfork): Likewise.
644 * specific.c (pthread_key_create): Likewise.
645 (pthread_setspecific): Likewise.
646 (pthread_getspecific): Likewise.
648 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
650 * linuxthreads.texi: Fix punctuation after xref.
652 1998-11-10 H.J. Lu <hjl@gnu.org>
654 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
655 if it is defined in <linux/limits.h>.
657 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
659 * spinlock.h (__pthread_trylock): Define inline.
660 (__pthread_lock): Add extra parameter to declaration. Declare
661 using internal_function.
662 (__pthread_unlock): Declare using internal_function.
663 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
664 of local variable self. Avoid recomputing self. Define using
666 (__pthread_trylock): Remove.
667 (__pthread_unlock): Define using internal_function.
668 * cancel.c: Adjust for __pthread_lock interface change. Use already
669 computed self value is possible.
670 * condvar.c: Likewise.
672 * manager.c: Likewise.
674 * pthread.c: Likewise.
675 * rwlock.c: Likewise.
676 * semaphore.c: Likewise.
677 * signals.c: Likewise.
679 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
681 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
682 __ to field names of the struct.
683 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
685 (pthread_attr_t): Likewise.
686 (pthread_cond_t): Likewise.
687 (pthread_condattr_t): Likewise.
688 (pthread_mutex_t): Likewise.
689 (pthread_mutexattr_t): Likewise.
690 (pthread_rwlock_t): Likewise.
691 (pthread_rwlockattr_t): Likewise.
692 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
693 * cancel.c: Likewise.
694 * condvar.c: Likewise.
695 * manager.c: Likewise.
697 * pthread.c: Likewise.
698 * ptlongjmp.c: Likewise.
699 * rwlock.c: Likewise.
700 * spinlock.c: Likewise.
702 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
704 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
707 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
710 * Makefile (libpthread-routines): Add pt-machine.
711 * pt-machine.c: New file.
712 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
713 yet defined. Use PT_EI in extern inline definitions.
714 * sysdeps/arm/pt-machine.h: Likewise.
715 * sysdeps/i386/pt-machine.h: Likewise.
716 * sysdeps/i386/i686/pt-machine.h: Likewise.
717 * sysdeps/m68k/pt-machine.h: Likewise.
718 * sysdeps/mips/pt-machine.h: Likewise.
719 * sysdeps/powerpc/pt-machine.h: Likewise.
720 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
721 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
723 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
725 * semaphore.h: Include <sys/types.h> so that _pthread_descr
728 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
730 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
732 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
734 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
736 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
737 multiple inclusion guard.
739 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
741 * signals.c (sigaction): Check that sig is less than NSIG to avoid
742 array index overflow.
744 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
746 * sysdeps/pthread/semaphore.h: New file.
748 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
750 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
751 _LIBC_TSD_KEY_DL_ERROR.
753 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
755 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
756 * sysdeps/i386/pt-machine.h: Likewise.
757 Suggested by Roland McGrath.
759 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
761 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
762 access thread data with non-constant offsets.
763 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
766 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
767 THREAD_SETMEM_NC definitions.
769 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
771 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
773 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
775 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
777 (struct _pthread_descr_struct): Add p_self and p_nr field.
778 * manager.c (__pthread_handles): Define second element to point
780 (__pthread_handles_num): Initialize to 2.
781 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
782 (pthread_start_thread): Likewise.
783 (pthread_handle_create): Start search for free slot at entry 2.
784 Initialize new fields p_self and p_nr.
785 Call __clone with CLONE_PTRACE if available.
786 (pthread_free): Call FREE_THREAD_SELF if available.
787 * pthread.c (__pthread_initial_thread): Initialize new fields.
788 (__pthread_manager_thread): Likewise.
789 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
791 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
792 elements of the thread descriptor.
793 * condvar.c: Likewise.
796 * manager.c: Likewise.
797 * pthread.c: Likewise.
798 * ptlongjmp.c: Likewise.
799 * semaphore.c: Likewise.
800 * signals.c: Likewise.
801 * specific.c: Likewise.
802 * spinlock.c: Likewise.
804 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
806 * sysdeps/i386/useldt.h: New file.
807 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
809 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
810 THREAD_SETMEM using __thread_self.
811 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
813 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
815 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
816 turned out that we didn't need to queue after all.
818 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
820 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
821 and wastes space; correct types.
823 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
825 * signals.c (sigaction): Handle NULL argument.
827 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
829 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
832 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
834 * Makefile (linuxthreads-version): Extract correct number from
837 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
839 * Banner: Bump version number to 0.8
840 * FAQ.html: Many updates, in particular w.r.t. debugging.
841 * manager.c: Support for non-default stacksize for
842 LinuxThreads-allocated stacks;
843 don't use guard pages for stacks with default size, rely on
844 rlimit(RLIMIT_STACK) instead (it's cheaper).
846 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
847 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
848 * condvar.c: Likewise.
849 * internals.h: Likewise.
850 * restart.h: Likewise.
851 * signals.c: Likewise.
852 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
854 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
856 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
857 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
858 * Versions: Put __pthread_mutexattr_settype under version
859 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
860 __pthread_mutexattr_gettype.
862 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
864 * sysdeps/pthread/bits/libc-lock.h: Make
865 __pthread_mutexattr_settype weak. Don't make
866 __pthread_mutexattr_setkind_np weak.
868 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
870 * manager.c (pthread_handle_create): Check whether sched_setscheduler
871 call can succeed here.
873 * mutex.c: Define __pthread_mutexattr_settype and make
874 __pthread_mutexattr_setkind_np an alias.
875 Likewise for __pthread_mutexattr_gettype.
877 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
879 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
882 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
884 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
886 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
888 * Examples/ex6.c: Include <unistd.h> for usleep.
890 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
892 * Examples/ex4.c (main): Use exit, not pthread_exit.
894 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
896 * Versions: Add __pthread_mutexattr_gettype and
897 __pthread_mutexattr_settype.
898 * lockfile.c: Use __pthread_mutexattr_settype instead of
899 __pthread_mutexattr_setkind_np.
900 * mutex.c: Define __pthread_mutexattr_gettype and
901 __pthread_mutexattr_settype.
903 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
904 __pthread_mutexattr_settype.
905 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
906 Use __pthread_mutexattr_settype.
908 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
910 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
911 * mutex.c: Define weak alias pthread_mutexattr_gettype and
912 pthread_mutexattr_settype.
913 * sysdeps/pthread/pthread.h: Declare these functions.
914 Move pthread_sigmask and pthread_kill declaration in separate header.
915 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
917 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
919 * Makefile: Add rules to compile and run tests.
920 * Examples/ex1.c: Little changes to fix warnings.
921 * Examples/ex2.c: Likewise.
922 * Examples/ex3.c: Likewise.
923 * Examples/ex4.c: Likewise.
924 * Examples/ex5.c: Likewise.
925 * Examples/ex6.c: New file.
927 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
929 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
931 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
933 * attr.c: Include <string.h>.
935 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
937 * attr.c: Include errno.h. Use memcpy to copy sched_param.
938 * internals.h: Include limits.h.
939 * manager.c: Use memcpy to copy sched_param.
940 * ptfork.c: Include errno.h.
941 * pthread.c: Likewise.
942 * semaphore.c: Likewise.
943 * specific.c: Likewise.
944 * spinlock.h: Likewise.
945 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
946 type definition to ...
947 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
949 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
951 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
953 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
954 as macros as demanded in POSIX.1, Annex C.
956 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
958 * internals.h (struct pthread_request): For free use pthread_t
959 instead of pthread_descr.
960 * join.c (pthread_join): Pass thread_id, not th to manager.
961 (pthread_detach): Likewise.
962 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
963 (pthread_exited): Remove detached queue code.
964 (pthread_handle_free): Expect thread ID parameter and use it to
965 validate the thread decsriptor. Don't use detached queue.
966 Patches by Xavier Leroy.
968 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
970 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
971 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
972 __pthread_atfork, __pthread_key_create, __pthread_once.
973 * internals.h: Doc fix.
974 * pthread.c (__pthread_initialize): Define again.
976 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
978 * manager.c (pthread_exited): If thread is not detached put it on
980 (pthread_handle_free): If thread is not on list with living threads
981 search on list with detached threads.
983 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
984 for new definition of pthread_rwlock_t.
986 * spinlock.c: Correct test whether to compile
987 __pthread_compare_and_swap or not.
989 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
991 * attr.c: Finish user stack support. Change locking code to be safe
992 in situations with different priorities.
993 * cancel.c: Likewise.
994 * condvar.c: Likewise.
995 * internals.h: Likewise.
997 * manager.c: Likewise.
999 * pthread.c: Likewise.
1000 * ptlongjmp.c: Likewise.
1001 * queue.h: Likewise.
1002 * rwlock.c: Likewise.
1003 * semaphore.c: Likewise.
1004 * semaphore.h: Likewise.
1005 * signals.c: Likewise.
1006 * spinlock.c: Likewise.
1007 * spinlock.h: Likewise.
1008 * sysdeps/pthread/pthread.h: Likewise.
1009 Patches by Xavier Leroy.
1011 * sysdeps/i386/i686/pt-machine.h: New file.
1013 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
1015 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
1016 [sg]et_stackaddr prototypes always available.
1018 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1019 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
1021 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
1023 * manager.c (pthread_free): Undo patch from 980430.
1024 Reported by David Wragg <dpw@doc.ic.ac.uk>.
1026 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
1028 * manager.c: Define __pthread_manager_adjust_prio and use it to
1029 increase priority when needed.
1030 * internals.h: Add prototype for __pthread_manager_adjust_prio.
1031 * mutex.c: Optimize mutexes to wake up only one thread.
1032 * pthread.c: Move PID of manager for global variable in structure
1034 Patches by Xavier Leroy.
1036 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
1038 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
1040 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1042 * attr.c: Correct typo.
1044 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
1046 * manager.c (pthread_free): Unmap guard before the stack.
1047 Patch by Matthias Urlichs.
1049 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
1051 * manager.c (pthread_free): Detect already free child.
1052 Patch by Xavier Leroy, reported by Matthias Urlichs.
1054 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1056 * Makefile (linuxthreads-version): Renamed back from
1059 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
1061 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
1064 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
1066 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
1067 * internals.h: Add definitions for new spinlock implementation.
1068 * ptlongjmp.c: New file.
1069 * spinlock.c: New file.
1070 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
1071 new function __pthread_acquire to prevent deadlocks with thread
1072 with different priorities.
1073 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
1075 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1077 * manager.c (__pthread_manager): Reduce first argument to select
1078 to include just the needed file descriptor.
1080 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
1082 * manager.c: Fix last patch which caused core dumps.
1084 * pthread.c: Correctly handle missing SIGRTMIN.
1086 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1088 * libpthread.map: Add __libc_internal_tsd_get and
1089 __libc_internal_tsd_set. Add missing cancelable functions. Export
1090 libc internal versions of the cancelable functions.
1092 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
1094 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
1096 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
1098 * attr.c: Implement pthread_attr_[gs]etguardsize,
1099 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
1100 Change pthread_attr_init to have two interfaces.
1101 * internals.h (struct _pthread_descr_struct): Add new fields for
1103 * libpthread.map: Add names in GLIBC_2.1 section.
1104 * manager.c (pthread_handle_create): Implement guardsize and
1106 (pthread_free): Likewise.
1107 * pthread.c (pthread_create): Add new interface for changed
1109 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
1110 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
1113 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
1115 * manager.c: Enable resetting of the thread scheduling policy
1116 to SCHED_OTHER when the parent thread has a different one.
1118 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
1120 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1121 _POSIX_ASYNCHRONOUS_IO.
1123 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
1125 * mutex.c: Implement new mutex types.
1127 * internals.h: Include <signal.h>.
1129 * libpthread.map: Add __erno_location and __h_errno_location.
1131 * errno.c: Return pointer to variable actually in use. This might
1132 not be the one in the thread structure.
1133 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
1135 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
1136 of manager thread structure.
1137 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
1139 * pthread.c: Adapt initializer for thread structures.
1140 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
1141 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
1142 current thread to global variables.
1144 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
1146 * rwlock.c: New file.
1147 * Makefile (libpthread-routines): Add rwlock.
1148 * sysdeps/pthread/pthread.h: Define data structures and declare
1150 * libpthread.map: Add new functions.
1152 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1154 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1155 * sysdeps/arm/Implies: likewise.
1156 * README: Document it.
1158 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1160 * signals.c: Remove unneeded initializer for sigwaited, saving a
1163 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1165 * semaphore.c (sem_init): Set sem_spinlock only if available.
1167 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1169 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1170 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1172 * Makefile: Update from LinuxThreads 0.7.
1173 * internals.h. Likewise.
1174 * manager.c: Likewise.
1175 * mutex.c: Likewise.
1176 * pthread.c: Likewise.
1177 * signals.c: Likewise.
1178 * specific.c: Likewise.
1179 * Examples/ex3.c: Likewise.
1181 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1183 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1186 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1188 * wrapsyscall.c: Add socket functions which are also cancelation
1191 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1193 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1194 New functions for fast thread specific data within libc.
1196 * internals.h: Add new array p_libc_specific to struct
1197 _pthread_descr_struct.
1199 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1201 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1203 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1204 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1206 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1208 * internals.h (struct _pthread_descr_struct): Add definitions for
1209 two-level specific key handling.
1210 * manager.c (pthread_handle_create): Initialize specific memory array.
1211 * specific.c: Implement two-level key handling.
1212 * weaks.c: Don't provide dummy key handling.
1213 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1214 Add definition of __libc_key_t.
1215 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1217 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1218 PTHREAD_DESTRUCTOR_ITERATIONS.
1220 * manager.c (pthread_handle_create): Compare mmap result with
1223 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1224 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1226 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1228 sysdeps/sparc -> sysdeps/sparc/sparc32
1229 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1231 * internals.h: Change definition of THREAD_SELF to be an expression,
1232 not a statement that did a return.
1233 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1234 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1235 Follow Solaris and use a "system reserved" register (%g6) to hold
1236 the thread descriptor.
1237 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1239 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1241 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1242 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1243 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1245 * semaphore.c: Include spinlock.h only when needed.
1247 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1248 keys for entries not in use.
1250 * weaks.c: Implement key handling functions for real.
1252 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1254 Initial sparc64-linux support:
1255 * linuxthreads/sysdeps/sparc64/Implies: New file.
1256 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1258 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1260 * semaphore.c: Include spinlock.h at correct place.
1263 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1265 The Great Bit File Move:
1266 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1267 * sysdeps/powerpc/semaphorebits.h: Likewise.
1268 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1269 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1270 * sysdeps/pthread/libc-lock.h: -> bits/
1271 * sysdeps/pthread/stdio-lock.h: Likewise.
1272 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1273 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1274 * semaphore.h: Likewise.
1275 * sysdeps/pthread/pthread.h: Likewise.
1277 * lockfile.c: <foo.h> -> <bits/foo.h>.
1278 * semaphore.h: Likewise.
1280 * Makefile: (headers): foo.h -> bits/foo.h.
1281 * sysdeps/pthread/Makefile: Likewise.
1283 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1285 * semaphore.c (sem_init): Set sem_spinlock only if available.
1287 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1290 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1292 Update from LinuxThreads 0.6.
1294 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1295 and __sched_get_priority_min instead of names without `__'.
1297 * manager.c: Rewrite large parts to implement opaque pthread_t.
1299 * cancel.c: Adapt for opaque pthread_t type.
1300 * condvar.c: Likewise.
1301 * errno.c: Likewise.
1303 * mutex.c: Likewise.
1304 * pthread.c: Likewise.
1305 * signals.c: Likewise.
1306 * specific.c: Likewise.
1307 * restart.h: Likewise.
1308 * queue.h: Likewise.
1309 * Examples/ex3.c: Likewise.
1310 * Examples/ex4.c: Likewise.
1311 * sysdeps/pthread/pthread.h: Likewise.
1313 * pthread.c: Accumulate time for all threads in thread manager.
1315 * semaphore.c: Implement fallback implementation for architectures
1316 sometimes missing compare-exchange operations.
1318 * cancel.c (pthread_cancel): Validate handle argument.
1319 * join.c (pthread_join): Likewise.
1320 (pthread_detach): Likewise.
1321 * signals.c (pthread_kill): Likewise.
1323 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1325 * queue.h (enqueue): Enqueue thread according to priority.
1327 * internals.c (struct pthread_start_args): New struct for passing
1328 args to cloning function.
1329 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1332 * Examples/Makefile (clean): Pass -f option to rm.
1334 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1335 and define TEST_FOR_COMPARE_AND_SWAP.
1336 * sysdeps/i386/i486/pt-machine.h: Removed.
1338 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1341 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1343 * restart.h (suspend): Clear p_signal before suspending.
1344 (suspend_with_cancellation): Likewise.
1345 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1347 * weaks.c: Make __pthread_key_create return 1.
1348 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1349 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1350 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1353 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1355 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1357 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1359 * sysdeps/powerpc/Implies: Added.
1360 * sysdeps/powerpc/pt-machine.h: Added.
1361 * sysdeps/powerpc/semaphorebits.h: Added.
1363 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1365 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1367 (__pthread_manager_thread): Likewise.
1368 Reported by Andreas Jaeger.
1370 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1372 Since sigset_t no longer fits in a register, we can't pass in the
1373 thread's initial mask so easily. Take this opportunity to simplify
1374 the clone implementation by only accepting a single void* argument.
1376 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1377 in the thread struct instead of as arguments through clone.
1378 (pthread_start_thread): Look for them there.
1379 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1380 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1381 * linuxthreads/pthread.c (pthread_initialize_manager): Revise