1 2000-01-18 Ulrich Drepper <drepper@cygnus.com>
3 * manager.c (pthread_allocate_stack): Compute guard page address
4 correctly. Patch by HJ Lu.
6 * sysdeps/pthread/pthread.h: Define
7 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP.
9 2000-01-16 Ulrich Drepper <drepper@cygnus.com>
11 * rwlock.c (pthread_rwlock_unlock): Correct one more problem with
13 (pthread_rwlockattr_setkind_np): Allow
14 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP.
15 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
17 2000-01-12 Ulrich Drepper <drepper@cygnus.com>
19 * internals.h (pthread_readlock_info): New structure.
20 (_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
21 p_untracked_readlock_count.
22 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
23 Add initializers for new fields.
24 * manager.c (pthread_free): Free read/write lock lists.
25 * queue.h (queue_is_empty): New function.
26 * rwlock.c: Implement requirements about when readers should get
28 * sysdeps/pthread/pthread.h
29 (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
30 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_rwlock_t):
31 Define this name as well.
32 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
34 2000-01-05 Ulrich Drepper <drepper@cygnus.com>
36 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
37 Adjust initializers for struct _pthread_descr_struct change.
38 * internals.h (struct _pthread_descr_struct): Move new elements to
41 2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
43 Redesigned how cancellation unblocks a thread from internal
44 cancellation points (sem_wait, pthread_join,
45 pthread_cond_{wait,timedwait}).
46 Cancellation won't eat a signal in any of these functions
47 (*required* by POSIX and Single Unix Spec!).
48 * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
49 simultaneous condition variable signal (not required by POSIX
50 or Single Unix Spec, but nice).
51 * spinlock.c: __pthread_lock queues back any received restarts
52 that don't belong to it instead of assuming ownership of lock
53 upon any restart; fastlock can no longer be acquired by two threads
55 * restart.h: Restarts queue even on kernels that don't have
56 queued real time signals (2.0, early 2.1), thanks to atomic counter,
57 avoiding a rare race condition in pthread_cond_timedwait.
59 1999-12-31 Andreas Jaeger <aj@suse.de>
61 * internals.h: Remove duplicate prototype declarations.
63 * weaks.c: Remove __THROW from prototypes since the file is not
64 compiled by a C++ compiler.
65 * internals.h: Likewise.
67 1999-12-30 Andreas Jaeger <aj@suse.de>
69 * sysdeps/pthread/pthread.h: Move internal functions to...
70 * sysdeps/pthread/bits/libc-lock.h: ...here.
72 1999-12-29 Andreas Jaeger <aj@suse.de>
74 * sysdeps/pthread/pthread.h: Fix typos, reformat comments.
76 1999-12-28 Ulrich Drepper <drepper@cygnus.com>
78 * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
81 * manager.c (__pthread_start): Add one more cast to prevent
82 warning on 64bit machines.
84 1999-12-21 Ulrich Drepper <drepper@cygnus.com>
86 * manager.c (pthread_handle_create): Set p_pid of new thread
87 before calling the callback function to report a new thread.
89 1999-12-20 Andreas Jaeger <aj@suse.de>
91 * pthread.c (pthread_initialize): Move getrlimit call after
94 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
96 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
97 pwrite64, lseek64, open64, and __open64.
98 * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
99 pwrite64, lseek64, open64, and __open64.
101 * manager.c (pthread_allocate_stack): Correct computation of
102 new_thread_bottom. Correct handling of stack size and when the
103 rlimit method to guard for stack growth is used.
104 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
105 minus one pagesize (not two).
107 1999-12-03 Andreas Jaeger <aj@suse.de>
109 * Versions: Add __res_state with version GLIBC_2.2.
111 * errno.c (__res_state): New function to return thread specific
114 * pthread.c (pthread_initialize): Initialize p_resp.
115 (__pthread_reset_main_thread): Also set p_resp.
117 * manager.c (pthread_handle_create): Initialize p_resp.
119 * internals.h: Add thread specific resolver state.
120 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
122 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
124 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
126 * sysdeps/i386/i686/pt-machine.h: Likewise.
127 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
129 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
131 * manager.c (pthread_start_thread_event): Initialize p_pid already
134 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
136 * internals.h: Add prototype for __pthread_manager_event.
137 * manager.c (__pthread_manager_event): New function.
138 (pthread_start_thread_event): Correct computation of self.
139 Use INIT_THREAD_SELF.
140 * pthread.c (__pthread_manager_thread): Initialize p_lock.
141 (__pthread_initialize_manager): Respect event flags also for creation
142 of the manager thread.
144 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
146 * pthread.c (__pthread_initialize_manager): Initialize
147 __pthread_manager_thread.p_tid.
149 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
151 * internals.h: Declare __pthread_last_event.
152 * manager.c: Define __pthread_last_event.
153 (pthread_handle_create): Set __pthread_last_event.
154 (pthread_exited): Likewise.
155 * join.c (pthread_exit): Likewise.
157 * Makefile (libpthread-routines): Add events.
158 * events.c: New file.
159 * internals.h: Protect against multiple inclusion.
160 Include thread_dbP.h header.
161 (struct _pthread_descr_struct): Add new fields p_report_events and
163 Declare event reporting functions.
164 * join.c (pthread_exit): Signal event if this is wanted.
165 * manager.c (__pthread_threads_events): New variable.
166 (pthread_handle_create): Take new parameters with event information.
167 Signal TD_CREATE event if wanted.
168 (__pthread_manager): Adjust pthread_handle_create call.
169 (pthread_start_thread_event): New function. Block until manager is
170 finished and then call pthread_start_thread.
171 (pthread_exited): Signal TD_REAP event if wanted.
173 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
175 * restart.h (suspend_with_cancellation): Rewrite as a macro.
177 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
179 1999-10-25 Andreas Jaeger <aj@suse.de>
181 * internals.h: Remove K&R compatibility.
182 * no-tsd.c: Likewise.
183 * semaphore.h: Likewise.
184 * signals.c: Likewise.
185 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
186 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
189 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
191 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
192 and pthread_handle_sigcancel with functions that restore
193 %gs from the signal context. For each signal handling function,
194 two wrappers are required, one for a non-RT signal and one for
196 * linuxthreads/signal.c: For i386, add code to restore %gs
197 from the signal context in pthread_sighandler and
198 pthread_sighandler_rt.
200 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
202 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
204 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
206 * pthread.c (__pthread_initial_thread): Pass argument to
207 PTHREAD_START_ARGS_INITIALIZER.
208 (__pthread_manager_thread): Likewise.
210 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
213 * manager.c (pthread_handle_create): Remove p_startfct initialization.
215 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
217 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
219 * internals.h: Correct return types for __libc_read and __libc_write.
221 1999-10-09 Andreas Jaeger <aj@suse.de>
223 * internals.h: Add __new_sem_post to get prototype in
224 manager.c; include semaphore.h for needed types.
226 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
228 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
229 directly instead of calling sem_post which should not be necessary
230 but is faster and might help in some case to work around problems.
231 Patch by khendricks@ivey.uwo.ca [libc/1382].
233 1999-10-08 Andreas Schwab <schwab@suse.de>
235 * sysdeps/pthread/Subdirs: New file.
238 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
241 * internals.h (struct _pthread_descr_struct): Add p_startfct.
242 * manager.c (pthread_handle_create): Initialize p_startfct.
243 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
245 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
247 * manager.c (__linuxthreads_pthread_threads_max): New variable.
248 * specific.c (__linuxthreads_pthread_keys_max): New variable.
249 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
251 * condvar.c (pthread_cond_timedwait_relative): Never return with
252 EINTR. Patch by Andreas Schwab.
254 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
256 * signals.c (sigaction): Correct last patch. Don't select
257 pthread_sighandler_rt based on the signal number but instead of
260 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
262 * specific.c: Move definitions of struct pthread_key_struct and
263 destr_function to ...
264 * internals.h: ...here.
266 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
268 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
269 this instead of pthread_handle_sigrestart if the signal is an RT
272 * signals.c: Handle passing through of sighandler arguments also
273 for real-time signals.
275 1999-09-03 Andreas Schwab <schwab@suse.de>
277 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
279 (__vfork): New function, alias vfork.
280 * Versions: Export __fork, vfork, and __vfork in libpthread.
282 1999-08-23 Andreas Schwab <schwab@suse.de>
284 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
285 call to signal handler.
287 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
289 * pthread.c (__pthread_reset_main_thread): Undo last change.
290 (__pthread_kill_other_threads_np): Reset signal handlers for the
291 signals we used in the thread implementation here.
293 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
295 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
296 for the signals we used in the thread implementation [PR libc/1234].
298 * Versions: Export __pthread_kill_other_threads_np from libpthread
301 * signals.c: Pass sigcontext through wrapper to the user function.
303 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
305 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
306 __libc_internal_tsd_set.
308 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
310 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
313 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
315 * internals.h: Align _pthread_descr_struct to 32 bytes.
316 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
319 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
321 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
324 1999-07-09 Cristian Gafton <gafton@redhat.com>
326 * Makefile (libpthread-routines): Add oldsemaphore routine.
327 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
328 sem_trywait, and sem_wait to GLIBC_2.1.
329 * oldsemaphore.c: New file.
330 * semaphore.c: Add default_symbol_versions for the changed functions.
331 (__new_sem_init): Rename from sem_init.
332 (__new_sem_post): Rename from sem_post.
333 (__new_sem_wait): Rename from sem_wait.
334 (__new_sem_trywait): Rename from sem_trywait.
335 (__new_sem_getvalue): Rename from sem_getvalue.
336 (__new_sem_destroy): Rename from sem_destroy.
338 1999-06-23 Robey Pointer <robey@netscape.com>
340 * internals.h: Added p_nextlock entry to separate queueing for a
341 lock from queueing for a CV (sometimes a thread queues on a lock
342 to serialize removing itself from a CV queue).
343 * pthread.c: Added p_nextlock to initializers.
344 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
346 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
348 * manager.c (pthread_handle_create): Free mmap region after stack
349 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
351 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
353 * man/pthread_cond_init.man: Correct example.
354 Reported by Tomas Berndtsson <tomas@nocrew.org>.
356 * linuxthreads.texi (Condition Variables): Likewise.
358 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
360 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
361 casx not cas, also successful casx returns the old value in rd
362 and not the new value.
364 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
366 * manager.c: If pthread_create() is given a NULL attribute
367 and the thread manager runs with a realtime policy, set the
368 scheduling policy of the newly created thread back to SCHED_OTHER.
369 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
370 initialize the schedpolicy field of new_thread->p_start_args
371 to that of the calling thread.
373 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
375 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
376 instruction does not allow memory element to use offset.
378 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
380 * manager.c (pthread_allocate_stack): Optimize initialization of new
383 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
384 Don't use initializer since it is all zeroes.
385 (__libc_once_define): Likewise.
387 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
389 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
390 doesn't exist anymore.
391 * sysdeps/i386/Implies: Likewise.
392 * sysdeps/m68k/Implies: Likewise.
393 * sysdeps/mips/Implies: Likewise.
394 * sysdeps/powerpc/Implies: Likewise.
395 * sysdeps/sparc/sparc32/Implies: Likewise.
396 * sysdeps/sparc/sparc64/Implies: Likewise.
398 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
400 * sysdeps/alpha/bits/semaphore.h: Removed.
401 * sysdeps/powerpc/bits/semaphore.h: Removed.
402 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
403 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
404 * Makefile (headers): Remove bits/semaphore.h.
406 * semaphore.h: Define _pthread_descr if necessary.
407 Don't include limits.h. Define SEM_VALUE_MAX directly.
409 (sem_t): Protect element names with leading __.
410 Add declarations for sem_close, sem_open, and sem_unlink.
411 * semaphore.c: Adjust all functions for new element names.
412 Define sem_close, sem_open, and sem_unlink.
413 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
415 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
418 1999-03-16 H.J. Lu <hjl@gnu.org>
420 * specific.c (pthread_key_delete): Check th->p_terminated to see
421 if the thread is running.
423 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
424 Added to GLIBC_2.0 for libc.so.
426 1999-02-12 H.J. Lu <hjl@gnu.org>
428 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
429 __libc_allocate_rtsig): Added to GLIBC_2.1.
431 * internals.h (DEFAULT_SIG_RESTART): Removed.
432 (DEFAULT_SIG_CANCEL): Removed.
434 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
435 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
436 (__pthread_sig_restart, __pthread_sig_cancel,
437 __pthread_sig_debug): Initialized.
438 (pthread_initialize): Call init_rtsigs () to initialize
441 1999-02-03 H.J. Lu <hjl@gnu.org>
443 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
444 Don't restart the thread which sent REQ_DEBUG.
445 (pthread_start_thread): Check if __pthread_sig_debug > 0
448 * pthread.c (__pthread_initialize_manager): Suspend ourself
449 after sending __pthread_sig_debug to gdb instead of
450 __pthread_sig_cancel.
452 1999-01-24 H.J. Lu <hjl@gnu.org>
454 * manager.c (__pthread_manager): Delete __pthread_sig_debug
455 from mask if __pthread_sig_debug > 0.
456 (pthread_handle_create): Increment __pthread_handles_num.
458 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
459 * pthread.c (__pthread_initialize_manager): Likewise.
461 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
462 instead of __libc_allocate_rtsig (2).
463 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
464 instead of __pthread_sig_cancel.
465 (pthread_handle_sigdebug): Fix comments.
467 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
469 * manager.c (pthread_allocate_stack): Set
470 __pthread_nonstandard_stacks if user-specified stack is used.
472 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
474 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
475 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
477 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
479 * pthread.c: Use a third signal __pthread_sig_debug distinct
480 from __pthread_sig_cancel to notify gdb when a thread is
482 * manager.c: Likewise.
483 * internals.h: Likewise.
484 * signals.c: The implementation of sigwait(s) assumed that
485 all signals in s have signal handlers already attached.
486 This is not required by the standard, so make it work
487 also if some of the signals have no handlers.
489 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
491 * linuxthreads.texi: Remove pointers from first @node. Move old
492 @node spec inside comment.
494 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
496 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
499 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
501 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
502 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
504 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
506 * manager.c: Threads now send __pthread_sig_cancel on termination.
507 Change clone call and signal masks.
508 * thread.c (pthread_handle_sigrestart): Remove special code for
510 (pthread_handle_sigcancel): In manager thread call
511 __pthread_manager_sighandler.
512 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
513 * sysdeps/i386/i686/pt-machine.h: Likewise.
514 Patches by Xavier Leroy.
516 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
518 * spinlock.c (__pthread_unlock): Don't crash if called for an
519 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
521 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
524 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
526 * Examples/ex3.c: Wait until all threads are started before
527 searching for the number to avoid race condition on very fast
530 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
532 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
533 declaration since it's not needed.
535 * sysdeps/pthread/pthread.h: Move internal functions to ...
536 * internals.h: ...here.
538 1998-12-02 H.J. Lu <hjl@gnu.org>
540 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
542 (__pthread_sig_cancel): Likewise.
544 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
546 * wrapsyscall.c: Include <sys/mman.h> for msync,
547 <stdlib.h> for system and <termios.h> for tcdrain prototype.
548 Correct msync declaration.
550 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
552 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
553 __libc_tsd_set): New macros for new interface.
554 * no-tsd.c: New file, provide uninitialized defns of
555 __libc_internal_tsd_get and __libc_internal_tsd_set.
556 * Makefile (routines): Add no-tsd.
558 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
560 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
561 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
562 __libc_internal_tsd_set): Move decls to ...
563 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
566 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
567 __libc_internal_tsd_set): Make these pointers to functions, not
568 functions; remove #pragma weak decls for them.
569 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
570 Define static functions and initialized pointers to them.
572 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
574 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
575 (CFLAGS-specific.c): Likewise.
576 (CFLAGS-pthread.c): Likewise.
577 (CFLAGS-ptfork.c): Likewise.
578 (CFLAGS-cancel.c): Likewise.
579 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
580 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
582 * mutex.c (pthread_mutex_init): Define as strong symbol.
583 (pthread_mutex_destroy): Likewise.
584 (pthread_mutex_trylock): Likewise.
585 (pthread_mutex_lock): Likewise.
586 (pthread_mutex_unlock): Likewise.
587 (pthread_mutexattr_init): Likewise.
588 (pthread_mutexattr_destroy): Likewise.
589 (pthread_once): Likewise.
590 * ptfork.c (pthread_atfork): Likewise.
591 * specific.c (pthread_key_create): Likewise.
592 (pthread_setspecific): Likewise.
593 (pthread_getspecific): Likewise.
595 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
597 * linuxthreads.texi: Fix punctuation after xref.
599 1998-11-10 H.J. Lu <hjl@gnu.org>
601 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
602 if it is defined in <linux/limits.h>.
604 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
606 * spinlock.h (__pthread_trylock): Define inline.
607 (__pthread_lock): Add extra parameter to declaration. Declare
608 using internal_function.
609 (__pthread_unlock): Declare using internal_function.
610 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
611 of local variable self. Avoid recomputing self. Define using
613 (__pthread_trylock): Remove.
614 (__pthread_unlock): Define using internal_function.
615 * cancel.c: Adjust for __pthread_lock interface change. Use already
616 computed self value is possible.
617 * condvar.c: Likewise.
619 * manager.c: Likewise.
621 * pthread.c: Likewise.
622 * rwlock.c: Likewise.
623 * semaphore.c: Likewise.
624 * signals.c: Likewise.
626 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
628 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
629 __ to field names of the struct.
630 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
632 (pthread_attr_t): Likewise.
633 (pthread_cond_t): Likewise.
634 (pthread_condattr_t): Likewise.
635 (pthread_mutex_t): Likewise.
636 (pthread_mutexattr_t): Likewise.
637 (pthread_rwlock_t): Likewise.
638 (pthread_rwlockattr_t): Likewise.
639 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
640 * cancel.c: Likewise.
641 * condvar.c: Likewise.
642 * manager.c: Likewise.
644 * pthread.c: Likewise.
645 * ptlongjmp.c: Likewise.
646 * rwlock.c: Likewise.
647 * spinlock.c: Likewise.
649 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
651 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
654 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
657 * Makefile (libpthread-routines): Add pt-machine.
658 * pt-machine.c: New file.
659 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
660 yet defined. Use PT_EI in extern inline definitions.
661 * sysdeps/arm/pt-machine.h: Likewise.
662 * sysdeps/i386/pt-machine.h: Likewise.
663 * sysdeps/i386/i686/pt-machine.h: Likewise.
664 * sysdeps/m68k/pt-machine.h: Likewise.
665 * sysdeps/mips/pt-machine.h: Likewise.
666 * sysdeps/powerpc/pt-machine.h: Likewise.
667 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
668 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
670 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
672 * semaphore.h: Include <sys/types.h> so that _pthread_descr
675 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
677 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
679 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
681 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
683 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
684 multiple inclusion guard.
686 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
688 * signals.c (sigaction): Check that sig is less than NSIG to avoid
689 array index overflow.
691 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
693 * sysdeps/pthread/semaphore.h: New file.
695 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
697 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
698 _LIBC_TSD_KEY_DL_ERROR.
700 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
702 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
703 * sysdeps/i386/pt-machine.h: Likewise.
704 Suggested by Roland McGrath.
706 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
708 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
709 access thread data with non-constant offsets.
710 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
713 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
714 THREAD_SETMEM_NC definitions.
716 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
718 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
720 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
722 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
724 (struct _pthread_descr_struct): Add p_self and p_nr field.
725 * manager.c (__pthread_handles): Define second element to point
727 (__pthread_handles_num): Initialize to 2.
728 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
729 (pthread_start_thread): Likewise.
730 (pthread_handle_create): Start search for free slot at entry 2.
731 Initialize new fields p_self and p_nr.
732 Call __clone with CLONE_PTRACE if available.
733 (pthread_free): Call FREE_THREAD_SELF if available.
734 * pthread.c (__pthread_initial_thread): Initialize new fields.
735 (__pthread_manager_thread): Likewise.
736 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
738 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
739 elements of the thread descriptor.
740 * condvar.c: Likewise.
743 * manager.c: Likewise.
744 * pthread.c: Likewise.
745 * ptlongjmp.c: Likewise.
746 * semaphore.c: Likewise.
747 * signals.c: Likewise.
748 * specific.c: Likewise.
749 * spinlock.c: Likewise.
751 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
753 * sysdeps/i386/useldt.h: New file.
754 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
756 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
757 THREAD_SETMEM using __thread_self.
758 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
760 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
762 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
763 turned out that we didn't need to queue after all.
765 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
767 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
768 and wastes space; correct types.
770 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
772 * signals.c (sigaction): Handle NULL argument.
774 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
776 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
779 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
781 * Makefile (linuxthreads-version): Extract correct number from
784 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
786 * Banner: Bump version number to 0.8
787 * FAQ.html: Many updates, in particular w.r.t. debugging.
788 * manager.c: Support for non-default stacksize for
789 LinuxThreads-allocated stacks;
790 don't use guard pages for stacks with default size, rely on
791 rlimit(RLIMIT_STACK) instead (it's cheaper).
793 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
794 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
795 * condvar.c: Likewise.
796 * internals.h: Likewise.
797 * restart.h: Likewise.
798 * signals.c: Likewise.
799 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
801 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
803 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
804 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
805 * Versions: Put __pthread_mutexattr_settype under version
806 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
807 __pthread_mutexattr_gettype.
809 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
811 * sysdeps/pthread/bits/libc-lock.h: Make
812 __pthread_mutexattr_settype weak. Don't make
813 __pthread_mutexattr_setkind_np weak.
815 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
817 * manager.c (pthread_handle_create): Check whether sched_setscheduler
818 call can succeed here.
820 * mutex.c: Define __pthread_mutexattr_settype and make
821 __pthread_mutexattr_setkind_np an alias.
822 Likewise for __pthread_mutexattr_gettype.
824 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
826 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
829 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
831 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
833 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
835 * Examples/ex6.c: Include <unistd.h> for usleep.
837 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
839 * Examples/ex4.c (main): Use exit, not pthread_exit.
841 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
843 * Versions: Add __pthread_mutexattr_gettype and
844 __pthread_mutexattr_settype.
845 * lockfile.c: Use __pthread_mutexattr_settype instead of
846 __pthread_mutexattr_setkind_np.
847 * mutex.c: Define __pthread_mutexattr_gettype and
848 __pthread_mutexattr_settype.
850 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
851 __pthread_mutexattr_settype.
852 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
853 Use __pthread_mutexattr_settype.
855 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
857 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
858 * mutex.c: Define weak alias pthread_mutexattr_gettype and
859 pthread_mutexattr_settype.
860 * sysdeps/pthread/pthread.h: Declare these functions.
861 Move pthread_sigmask and pthread_kill declaration in separate header.
862 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
864 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
866 * Makefile: Add rules to compile and run tests.
867 * Examples/ex1.c: Little changes to fix warnings.
868 * Examples/ex2.c: Likewise.
869 * Examples/ex3.c: Likewise.
870 * Examples/ex4.c: Likewise.
871 * Examples/ex5.c: Likewise.
872 * Examples/ex6.c: New file.
874 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
876 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
878 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
880 * attr.c: Include <string.h>.
882 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
884 * attr.c: Include errno.h. Use memcpy to copy sched_param.
885 * internals.h: Include limits.h.
886 * manager.c: Use memcpy to copy sched_param.
887 * ptfork.c: Include errno.h.
888 * pthread.c: Likewise.
889 * semaphore.c: Likewise.
890 * specific.c: Likewise.
891 * spinlock.h: Likewise.
892 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
893 type definition to ...
894 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
896 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
898 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
900 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
901 as macros as demanded in POSIX.1, Annex C.
903 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
905 * internals.h (struct pthread_request): For free use pthread_t
906 instead of pthread_descr.
907 * join.c (pthread_join): Pass thread_id, not th to manager.
908 (pthread_detach): Likewise.
909 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
910 (pthread_exited): Remove detached queue code.
911 (pthread_handle_free): Expect thread ID parameter and use it to
912 validate the thread decsriptor. Don't use detached queue.
913 Patches by Xavier Leroy.
915 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
917 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
918 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
919 __pthread_atfork, __pthread_key_create, __pthread_once.
920 * internals.h: Doc fix.
921 * pthread.c (__pthread_initialize): Define again.
923 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
925 * manager.c (pthread_exited): If thread is not detached put it on
927 (pthread_handle_free): If thread is not on list with living threads
928 search on list with detached threads.
930 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
931 for new definition of pthread_rwlock_t.
933 * spinlock.c: Correct test whether to compile
934 __pthread_compare_and_swap or not.
936 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
938 * attr.c: Finish user stack support. Change locking code to be safe
939 in situations with different priorities.
940 * cancel.c: Likewise.
941 * condvar.c: Likewise.
942 * internals.h: Likewise.
944 * manager.c: Likewise.
946 * pthread.c: Likewise.
947 * ptlongjmp.c: Likewise.
949 * rwlock.c: Likewise.
950 * semaphore.c: Likewise.
951 * semaphore.h: Likewise.
952 * signals.c: Likewise.
953 * spinlock.c: Likewise.
954 * spinlock.h: Likewise.
955 * sysdeps/pthread/pthread.h: Likewise.
956 Patches by Xavier Leroy.
958 * sysdeps/i386/i686/pt-machine.h: New file.
960 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
962 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
963 [sg]et_stackaddr prototypes always available.
965 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
966 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
968 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
970 * manager.c (pthread_free): Undo patch from 980430.
971 Reported by David Wragg <dpw@doc.ic.ac.uk>.
973 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
975 * manager.c: Define __pthread_manager_adjust_prio and use it to
976 increase priority when needed.
977 * internals.h: Add prototype for __pthread_manager_adjust_prio.
978 * mutex.c: Optimize mutexes to wake up only one thread.
979 * pthread.c: Move PID of manager for global variable in structure
981 Patches by Xavier Leroy.
983 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
985 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
987 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
989 * attr.c: Correct typo.
991 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
993 * manager.c (pthread_free): Unmap guard before the stack.
994 Patch by Matthias Urlichs.
996 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
998 * manager.c (pthread_free): Detect already free child.
999 Patch by Xavier Leroy, reported by Matthias Urlichs.
1001 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1003 * Makefile (linuxthreads-version): Renamed back from
1006 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
1008 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
1011 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
1013 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
1014 * internals.h: Add definitions for new spinlock implementation.
1015 * ptlongjmp.c: New file.
1016 * spinlock.c: New file.
1017 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
1018 new function __pthread_acquire to prevent deadlocks with thread
1019 with different priorities.
1020 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
1022 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1024 * manager.c (__pthread_manager): Reduce first argument to select
1025 to include just the needed file descriptor.
1027 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
1029 * manager.c: Fix last patch which caused core dumps.
1031 * pthread.c: Correctly handle missing SIGRTMIN.
1033 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1035 * libpthread.map: Add __libc_internal_tsd_get and
1036 __libc_internal_tsd_set. Add missing cancelable functions. Export
1037 libc internal versions of the cancelable functions.
1039 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
1041 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
1043 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
1045 * attr.c: Implement pthread_attr_[gs]etguardsize,
1046 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
1047 Change pthread_attr_init to have two interfaces.
1048 * internals.h (struct _pthread_descr_struct): Add new fields for
1050 * libpthread.map: Add names in GLIBC_2.1 section.
1051 * manager.c (pthread_handle_create): Implement guardsize and
1053 (pthread_free): Likewise.
1054 * pthread.c (pthread_create): Add new interface for changed
1056 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
1057 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
1060 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
1062 * manager.c: Enable resetting of the thread scheduling policy
1063 to SCHED_OTHER when the parent thread has a different one.
1065 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
1067 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1068 _POSIX_ASYNCHRONOUS_IO.
1070 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
1072 * mutex.c: Implement new mutex types.
1074 * internals.h: Include <signal.h>.
1076 * libpthread.map: Add __erno_location and __h_errno_location.
1078 * errno.c: Return pointer to variable actually in use. This might
1079 not be the one in the thread structure.
1080 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
1082 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
1083 of manager thread structure.
1084 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
1086 * pthread.c: Adapt initializer for thread structures.
1087 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
1088 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
1089 current thread to global variables.
1091 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
1093 * rwlock.c: New file.
1094 * Makefile (libpthread-routines): Add rwlock.
1095 * sysdeps/pthread/pthread.h: Define data structures and declare
1097 * libpthread.map: Add new functions.
1099 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1101 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1102 * sysdeps/arm/Implies: likewise.
1103 * README: Document it.
1105 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1107 * signals.c: Remove unneeded initializer for sigwaited, saving a
1110 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1112 * semaphore.c (sem_init): Set sem_spinlock only if available.
1114 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1116 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1117 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1119 * Makefile: Update from LinuxThreads 0.7.
1120 * internals.h. Likewise.
1121 * manager.c: Likewise.
1122 * mutex.c: Likewise.
1123 * pthread.c: Likewise.
1124 * signals.c: Likewise.
1125 * specific.c: Likewise.
1126 * Examples/ex3.c: Likewise.
1128 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1130 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1133 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1135 * wrapsyscall.c: Add socket functions which are also cancelation
1138 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1140 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1141 New functions for fast thread specific data within libc.
1143 * internals.h: Add new array p_libc_specific to struct
1144 _pthread_descr_struct.
1146 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1148 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1150 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1151 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1153 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1155 * internals.h (struct _pthread_descr_struct): Add definitions for
1156 two-level specific key handling.
1157 * manager.c (pthread_handle_create): Initialize specific memory array.
1158 * specific.c: Implement two-level key handling.
1159 * weaks.c: Don't provide dummy key handling.
1160 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1161 Add definition of __libc_key_t.
1162 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1164 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1165 PTHREAD_DESTRUCTOR_ITERATIONS.
1167 * manager.c (pthread_handle_create): Compare mmap result with
1170 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1171 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1173 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1175 sysdeps/sparc -> sysdeps/sparc/sparc32
1176 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1178 * internals.h: Change definition of THREAD_SELF to be an expression,
1179 not a statement that did a return.
1180 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1181 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1182 Follow Solaris and use a "system reserved" register (%g6) to hold
1183 the thread descriptor.
1184 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1186 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1188 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1189 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1190 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1192 * semaphore.c: Include spinlock.h only when needed.
1194 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1195 keys for entries not in use.
1197 * weaks.c: Implement key handling functions for real.
1199 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1201 Initial sparc64-linux support:
1202 * linuxthreads/sysdeps/sparc64/Implies: New file.
1203 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1205 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1207 * semaphore.c: Include spinlock.h at correct place.
1210 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1212 The Great Bit File Move:
1213 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1214 * sysdeps/powerpc/semaphorebits.h: Likewise.
1215 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1216 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1217 * sysdeps/pthread/libc-lock.h: -> bits/
1218 * sysdeps/pthread/stdio-lock.h: Likewise.
1219 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1220 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1221 * semaphore.h: Likewise.
1222 * sysdeps/pthread/pthread.h: Likewise.
1224 * lockfile.c: <foo.h> -> <bits/foo.h>.
1225 * semaphore.h: Likewise.
1227 * Makefile: (headers): foo.h -> bits/foo.h.
1228 * sysdeps/pthread/Makefile: Likewise.
1230 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1232 * semaphore.c (sem_init): Set sem_spinlock only if available.
1234 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1237 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1239 Update from LinuxThreads 0.6.
1241 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1242 and __sched_get_priority_min instead of names without `__'.
1244 * manager.c: Rewrite large parts to implement opaque pthread_t.
1246 * cancel.c: Adapt for opaque pthread_t type.
1247 * condvar.c: Likewise.
1248 * errno.c: Likewise.
1250 * mutex.c: Likewise.
1251 * pthread.c: Likewise.
1252 * signals.c: Likewise.
1253 * specific.c: Likewise.
1254 * restart.h: Likewise.
1255 * queue.h: Likewise.
1256 * Examples/ex3.c: Likewise.
1257 * Examples/ex4.c: Likewise.
1258 * sysdeps/pthread/pthread.h: Likewise.
1260 * pthread.c: Accumulate time for all threads in thread manager.
1262 * semaphore.c: Implement fallback implementation for architectures
1263 sometimes missing compare-exchange operations.
1265 * cancel.c (pthread_cancel): Validate handle argument.
1266 * join.c (pthread_join): Likewise.
1267 (pthread_detach): Likewise.
1268 * signals.c (pthread_kill): Likewise.
1270 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1272 * queue.h (enqueue): Enqueue thread according to priority.
1274 * internals.c (struct pthread_start_args): New struct for passing
1275 args to cloning function.
1276 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1279 * Examples/Makefile (clean): Pass -f option to rm.
1281 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1282 and define TEST_FOR_COMPARE_AND_SWAP.
1283 * sysdeps/i386/i486/pt-machine.h: Removed.
1285 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1288 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1290 * restart.h (suspend): Clear p_signal before suspending.
1291 (suspend_with_cancellation): Likewise.
1292 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1294 * weaks.c: Make __pthread_key_create return 1.
1295 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1296 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1297 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1300 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1302 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1304 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1306 * sysdeps/powerpc/Implies: Added.
1307 * sysdeps/powerpc/pt-machine.h: Added.
1308 * sysdeps/powerpc/semaphorebits.h: Added.
1310 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1312 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1314 (__pthread_manager_thread): Likewise.
1315 Reported by Andreas Jaeger.
1317 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1319 Since sigset_t no longer fits in a register, we can't pass in the
1320 thread's initial mask so easily. Take this opportunity to simplify
1321 the clone implementation by only accepting a single void* argument.
1323 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1324 in the thread struct instead of as arguments through clone.
1325 (pthread_start_thread): Look for them there.
1326 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1327 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1328 * linuxthreads/pthread.c (pthread_initialize_manager): Revise