1 2000-05-06 Kaz Kylheku <kaz@ashi.footprints.net>
3 * mutex.c (pthread_once): IN_PROGRESS state of pthread_once_t
4 object state is represented with additional bits which distinguish
5 whether that state was set up in the current process, or
6 in an ancestor process. If that state was set in an ancestor,
7 it means that a fork happened while thread was executing the init
8 function. In that case, the state is reset to NEVER.
9 * mutex.c (__pthread_once_fork_prepare): New function.
10 (__pthread_once_fork_child): Likewise
11 (__pthread_once_fork_parent): Likewise
12 (__pthread_reset_pthread_once): Removed.
13 * ptfork.c (__fork): Call new handlers in mutex.c.
14 * internals.h: Declarations of new mutex.c functions added.
15 Declaration of removed function deleted.
16 * linuxthreads.texi: Updated documentation about pthread_once
17 to clarify what happens under cancellation and forking.
19 2000-05-06 Kaz Kylheku <kaz@ashi.footprints.net>
21 * internals.h: New thread manager request type, REQ_KICK.
22 * join.c (pthread_exit): main thread now calls exit() instead
23 of _exit() in order to proper process cleanup.
24 * manager.c (__pthread_manager): Do not terminate manager
25 after unblocking main thread; wait for main thread's
26 REQ_PROCESS_EXIT request instead.
27 Also, added REQ_KICK case to handle new request; this just does
29 * manager.c (pthread_exited): Do not terminate manager after
30 unblocking main thread.
31 * manager.c (__pthread_manager_sighandler): If the main thread
32 is waiting for all other threads to die, send a REQ_KICK into
33 the thread manager request pipe to get it to clean out the threads
34 and unblock the main thread as soon as possible. This fixes
35 the 2000 millisecond hang on shutdown bug.
36 * Examples/ex7.c: New file, tests shutdown behavior when all threads
37 including the main one call pthread_exit(), or implicitly do so.
38 * Makefile (tests): Add ex7.
40 2000-05-05 Andreas Jaeger <aj@suse.de>
42 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
43 (pthread_getcpuclockid): Correct test for ourselves.
45 2000-05-05 Ulrich Drepper <drepper@redhat.com>
47 * internals.h (struct _pthread_descr_struct): Reorganization.
48 Allocate room for 16 pointers at head of the structure for future
49 thread-local data handling. Move p_self member in this area.
50 * manager.c (pthread_handle_create): Adjust use of p_self.
51 * sysdeps/i386/useldt.h (THREAD_SELF): Likewise.
52 * pthread.c (__pthread_initial_thread): Adjust initialization.
53 (__pthread_manager_thread): Likewise.
55 2000-04-29 Bruno Haible <haible@clisp.cons.org>
57 * join.c (pthread_exit): Use THREAD_GETMEM_NC instead of THREAD_GETMEM
58 for eventmask larger than 1 word.
60 2000-04-27 Ulrich Drepper <drepper@redhat.com>
62 * Versions [libpthread] (GLIBC_2.2): Add __pthread_initialize_minimal.
63 * pthread.c (__pthread_initialize_minimal): New function. Perform
64 minimal initialization.
65 (pthread_initialize): Remove this code here.
66 * sysdeps/i386/i686/pt-machine.h: Include "../useldt.h" again. We
67 are working around the problem in glibc.
69 2000-04-25 Ulrich Drepper <drepper@redhat.com>
71 * sysdeps/i386/i686/pt-machine.h: Do not use "../useldt.h" for
72 now. First gcc must be fixed (more concrete: libgcc).
74 2000-04-24 Ulrich Drepper <drepper@redhat.com>
76 * pthread.c: Remove special treatement for interrupt handlers on x86.
77 * manager.c (pthread_free): Use FREE_THREAD not FREE_THREAD_SELF.
78 * sysdeps/i386/useldt.h: Use "q" constraint instead of "r" where
80 * sysdeps/i386/i686/pt-machine.h: Include "../useldt.h".
82 2000-04-24 Mark Kettenis <kettenis@gnu.org>
84 * join.c (pthread_exit): Set p_terminated after reporting the
85 termination event instead of before.
87 2000-04-20 Jakub Jelinek <jakub@redhat.com>
89 * sysdeps/pthread/bits/libc-lock.h: Only declare __pthread_rwlock_*
92 2000-04-18 Andreas Jaeger <aj@suse.de>
94 * Versions: Use ld instead of ld.so.
96 2000-04-18 Jakub Jelinek <jakub@redhat.com>
98 * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h (struct sigcontext):
99 Remove the typedef keyword.
101 2000-04-18 Jakub Jelinek <jakub@redhat.com>
103 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Use membar,
105 (READ_MEMORY_BARRIER): Define.
106 * spinlock.c (__pthread_spin_unlock): Use READ_MEMORY_BARRIER, not
108 * internals.h (READ_MEMORY_BARRIER): Define if not defined in sysdep
111 2000-04-17 Ulrich Drepper <drepper@redhat.com>
113 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
114 (pthread_getcpuclockid): Don't compare thread_id with thread_self,
117 2000-04-16 Ulrich Drepper <drepper@redhat.com>
119 * condvar.c (pthread_cond_timedwait_relative): Don't test for owner
120 if fast mutex is used. Don't initialize `already_canceled' twice.
121 Correctly test for return value of timedsuspend.
123 * pthread.c: Correct long-time braino. We never set SA_SIGINFO and
124 therefore don't need the _rt versions of the signal handlers.
126 2000-04-15 Ulrich Drepper <drepper@redhat.com>
128 * pthread.c (pthread_yield): New function.
129 * sysdeps/pthread/pthread.h (pthread_yield): Add prototype.
130 * Versions [libpthread] (GLIBC_2.2): Add pthread_yield.
131 * internals.h: Declare __pthread_yield.
133 * pthread.c (pthread_initialize): Avoid a bit more code if
134 realtime signals are known to exist.
136 * pthread.c: Is __ASSUME_REALTIME_SIGNALS then avoid generating code
137 to dynamically detect RT signals and avoid generating compatibility
138 functions with old kernel.
139 * restart.h (restart) [__ASSUME_REALTIME_SIGNALS]: Use
140 __pthread_restart_new directly.
141 (suspend) [__ASSUME_REALTIME_SIGNALS]: Use
142 __pthread_wait_for_restart_signal directly.
143 (timedsuspend) [__ASSUME_REALTIME_SIGNALS]: Use
144 __pthread_timedsuspend_new directly.
146 2000-04-15 Ulrich Drepper <drepper@redhat.com>
148 * condvar.c: Remove all the special code to handle cond_timedwait.
149 Use timedsuspend instead.
150 * internals.h: Declare __pthread_timedsuspend_old,
151 __pthread_timedsuspend_new, and __pthread_timedsuspend.
152 Remove declaration of __pthread_init_condvar.
153 * pthread.c: Define __pthread_timedsuspend variable.
154 (__pthread_timedsuspend_old): New function. Timed suspension
155 implementation for old Linux kernels.
156 (__pthread_timedsuspend_new): New function. Timed suspension
157 implementation for new Linux kernels.
158 * restart.h (timedsuspend): New function. Call appropriate
159 suspension function through __pthread_timedsuspend.
160 * semaphore.c (sem_timedwait): Use timedsuspend, don't duplicate
162 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
164 * internals.h (WRITE_MEMORY_BARRIER): Define as MEMORY_BARRIER if
166 * spinlock.c: Use WRITE_MEMORY_BARRIER instead of MEMORY_BARRIER
168 * sysdeps/alpha/pt-machine.h: Define WRITE_MEMORY_BARRIER.
169 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
171 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _POSIX_SPAWN.
172 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
174 2000-04-14 Andreas Jaeger <aj@suse.de>
178 * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
179 2.2 for linuxthreads.
181 2000-04-13 Ulrich Drepper <drepper@redhat.com>
183 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
184 (pthread_getcpuclockid): Fix typo.
186 2000-04-12 Ulrich Drepper <drepper@redhat.com>
188 * Makefile (libpthread-routines): Add getcpuclockid.
189 * Versions [libpthread] (GLIBC_2.2): Add pthread_getcpuclockid.
190 * sysdeps/pthread/getcpuclockid.c: New file.
191 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c: New file.
192 * sysdeps/pthread/pthread.h: Add prototype for pthread_getcpuclockid.
194 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_SPIN_LOCKS):
196 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
198 * sysdeps/pthread/pthread.h: Add prototypes for pthread_spin_init,
199 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
200 and pthread_spin_unlock.
201 * sysdeps/pthread/bits/pthreadtypes.h: Change struct _pthread_fastlock
202 into pthread_spinlock_t. Change all uses.
203 * spinlock.c: Implement pthread_spin_lock.
204 Rename __pthread_unlock to __pthread_spin_unlock and define weak
206 Define pthread_spin_trylock, pthread_spin_init, and
207 pthread_spin_destroy.
208 Change all uses of _pthread_fastlock to pthread_spinlock_t.
209 * spinlock.h: Rename __pthread_unlock to __pthread_spin_unlock.
210 Change all uses of _pthread_fastlock to pthread_spinlock_t.
211 * Versions [libpthread] (GLIBC_2.2): Add pthread_spin_init,
212 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
213 and pthread_spin_unlock.
214 * cancel.c: Use __pthread_spin_unlock instead of __pthread_unlock.
215 Change all uses of _pthread_fastlock to pthread_spinlock_t.
216 * condvar.c: Likewise.
217 * internals.h: Likewise.
219 * manager.c: Likewise.
221 * pthread.c: Likewise.
222 * rwlock.c: Likewise.
223 * semaphore.c: Likewise.
224 * signals.c: Likewise.
226 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add various new POSIX
228 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
230 2000-04-11 Ulrich Drepper <drepper@redhat.com>
232 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
233 _POSIX_SHARED_MEMORY_OBJECTS.
235 2000-04-11 Andreas Jaeger <aj@suse.de>
237 * sysdeps/mips/pt-machine.h (MEMORY_BARRIER): Define.
238 (__compare_and_swap): Mark as modifying memory.
240 2000-04-11 Geoff Keating <geoffk@cygnus.com>
242 * sysdeps/powerpc/pt-machine.h (MEMORY_BARRIER): Don't be
244 (__compare_and_swap): Replace other 'sync' with MEMORY_BARRIER.
245 Don't have the 'asm' __volatile__.
247 2000-04-11 Ulrich Drepper <drepper@redhat.com>
249 * internals.h: Define MEMORY_BARRIER as empty if not defined already.
250 * spinlock.c (__pthread_lock): Add memory barriers.
251 (__pthread_unlock): Likewise.
252 * sysdeps/alpha/pt-machine.h (MEMORY_BARRIER): Define using mb
254 (RELEASE): Not needed anymore.
255 (__compare_and_swap): Mark asm as modifying memory.
256 * sysdeps/powerpc/pt-machine.h (sync): Remove. Replace with definition
258 (__compare_and_swap): Use MEMORY_BARRIER instead of sync.
259 * sysdeps/sparc/sparc32/pt-machine.h (RELEASE): Not needed anymore.
260 (MEMORY_BARRIER): Define using stbar.
261 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Define using
263 (__compare_and_swap): Use MEMORY_BARRIER to ensure ordering.
264 Patch by Xavier Leroy <Xavier.Leroy@inria.fr> based on comments by
265 Mike Burrows <m3b@pa.dec.com>.
267 2000-04-09 Ulrich Drepper <drepper@redhat.com>
269 * signals.c (sigaction): Fix return value for the case SIG is one
270 of the signals the implementation uses.
271 Patch by Xavier.Leroy@inria.fr.
273 2000-04-01 Andreas Jaeger <aj@suse.de>
275 * attr.c: Use shlib-compat macros.
276 * oldsemaphore.c: Likewise.
277 * pthread.c: Likewise.
280 2000-03-26 Ulrich Drepper <drepper@redhat.com>
282 * semaphore.c (sem_timedwait): New function.
283 Patch by Carl Mailloux <carlm@oricom.ca>.
284 * semaphore.h: Declare sem_timedwait.
285 * Versions [libpthread] (GLIBC_2.2): Add sem_timedwait.
287 2000-03-26 Roland McGrath <roland@baalperazim.frob.com>
289 * sysdeps/pthread/Makefile: File removed.
291 2000-03-23 Ulrich Drepper <drepper@redhat.com>
293 * mutex.c (__pthread_reset_pthread_once): Reset once_masterlock.
294 * internals.h (__pthread_reset_pthread_once): Add prototype.
295 * ptfork.c (__fork): Call __pthread_reset_pthread_once.
297 * manager.c (pthread_handle_create): Store ID of new thread before
300 2000-03-21 Ulrich Drepper <drepper@redhat.com>
302 * attr.c: Use new macros from shlib-compat.h to define versions.
303 * oldsemaphore.c: Likewise.
304 * semaphore.c: Likewise.
307 * pthread.c: Update for new SHLIB_COMPAT definition.
309 * manager.c (__pthread_manager): Unmask debug signal.
311 * pthread.c (pthread_initialize): Test for address of __dso_handle
312 being NULL, not value. Use __on_exit, not on_exit.
313 Patch by Andreas Jaeger <aj@suse.de>.
315 * pthread.c: Use new macros from shlib-compat.h to define versions.
317 2000-03-19 Ulrich Drepper <drepper@redhat.com>
319 * pthread.c (pthread_initialize): Instead of on_exit use
320 __cxa_atexit if __dso_label is available to allow unloading the
321 libpthread shared library.
323 2000-03-16 Ulrich Drepper <drepper@redhat.com>
325 * condvar.c: Make tests for ownership of mutex less strict.
327 2000-03-14 Ulrich Drepper <drepper@redhat.com>
329 * condvar.c (pthread_cond_wait): Check whether mutex is owned by
330 current thread and return error if not.
331 (pthread_cond_timedwait_relative_old): Likewise.
332 (pthread_cond_timedwait_relative_new): Likewise.
334 * mutex.c (__pthread_once): Handle cancelled init function correctly.
335 (pthread_once_cancelhandler): New function.
336 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
338 2000-03-14 Andreas Jaeger <aj@suse.de>
340 * pthread.c (pthread_handle_sigcancel_rt): GS has been renamed to
342 (pthread_handle_sigrestart_rt): Likewise.
343 * signals.c (pthread_sighandler_rt): Likewise.
345 2000-03-02 Andreas Jaeger <aj@suse.de>
347 * sysdeps/pthread/bits/libc-lock.h: Fix typo.
348 Reported by Sean Chen <sean.chen@turbolinux.com>.
350 2000-02-28 Andreas Jaeger <aj@suse.de>
352 * rwlock.c: Fix typo.
354 2000-02-27 Ulrich Drepper <drepper@redhat.com>
356 * rwlock.c: Define __* variants of the functions and make old names
358 * Versions [GLIBC_2.2]: Export the __pthread_rwlock_* functions.
359 * sysdeps/pthread/bits/libc-lock.h: Define __libc_rwlock_* macros.
361 2000-02-25 Andreas Jaeger <aj@suse.de>
363 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
364 pwrite64, lseek64, open64, and __open64 with version 2.2.
366 2000-02-22 Ulrich Drepper <drepper@redhat.com>
368 * semaphore.h (SEM_FAILED): Use 0 not NULL.
370 2000-02-14 Ulrich Drepper <drepper@redhat.com>
372 * condvar.c (pthread_cond_timedwait_relative_old): Tight loop with
373 nanosleep does not work either. Get absolute time inside the
375 (pthread_cond_timedwait_relative_new): Likewise.
376 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
378 2000-02-13 Andreas Jaeger <aj@suse.de>
380 * condvar.c (pthread_cond_timedwait_relative_new): Fix last patch.
381 (pthread_cond_timedwait_relative_old): Likewise.
383 2000-02-13 Ulrich Drepper <drepper@redhat.com>
385 * condvar.c (pthread_cond_timedwait_relative_old): Undo last patch
386 but keep the code around. A bug in the kernel prevent us from
388 (pthread_cond_timedwait_relative_new): Likewise.
389 (PR libc/1597 and libc/1598).
391 2000-02-01 Kaz Kylheku <kaz@ashi.footprints.net>
393 * condvar.c (pthread_cond_timedwait_relative_old): Do tight
394 loop around nanosleep calls instead of around most of the function
395 (pthread_cond_timedwait_relative_new): Likewise.
396 body. Got rid of backwards goto and one local.
398 2000-01-31 Ulrich Drepper <drepper@redhat.com>
400 * condvar.c (pthread_cond_timedwait_relative_old): Recompute time
401 before every nanosleep call to account for time spent in the rest
403 (pthread_cond_timedwait_relative_new): Likewise.
404 Patch by khendricks@ivey.uwo.ca (PR libc/1564).
406 2000-01-29 Ulrich Drepper <drepper@redhat.com>
408 * condvar.c (pthread_cond_timedwait_relative_old): Get remaining time
409 from nanosleep call so that in case we restart we only wait for the
411 (pthread_cond_timedwait_relative_new): Likewise.
412 Patch by khendricks@ivey.uwo.ca (PR libc/1561).
414 2000-01-18 Ulrich Drepper <drepper@cygnus.com>
416 * manager.c (pthread_allocate_stack): Compute guard page address
417 correctly. Patch by HJ Lu.
419 * sysdeps/pthread/pthread.h: Define
420 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP.
422 2000-01-16 Ulrich Drepper <drepper@cygnus.com>
424 * rwlock.c (pthread_rwlock_unlock): Correct one more problem with
426 (pthread_rwlockattr_setkind_np): Allow
427 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP.
428 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
430 2000-01-12 Ulrich Drepper <drepper@cygnus.com>
432 * internals.h (pthread_readlock_info): New structure.
433 (_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
434 p_untracked_readlock_count.
435 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
436 Add initializers for new fields.
437 * manager.c (pthread_free): Free read/write lock lists.
438 * queue.h (queue_is_empty): New function.
439 * rwlock.c: Implement requirements about when readers should get
441 * sysdeps/pthread/pthread.h
442 (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
443 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_rwlock_t):
444 Define this name as well.
445 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
447 2000-01-05 Ulrich Drepper <drepper@cygnus.com>
449 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
450 Adjust initializers for struct _pthread_descr_struct change.
451 * internals.h (struct _pthread_descr_struct): Move new elements to
454 2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
456 Redesigned how cancellation unblocks a thread from internal
457 cancellation points (sem_wait, pthread_join,
458 pthread_cond_{wait,timedwait}).
459 Cancellation won't eat a signal in any of these functions
460 (*required* by POSIX and Single Unix Spec!).
461 * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
462 simultaneous condition variable signal (not required by POSIX
463 or Single Unix Spec, but nice).
464 * spinlock.c: __pthread_lock queues back any received restarts
465 that don't belong to it instead of assuming ownership of lock
466 upon any restart; fastlock can no longer be acquired by two threads
468 * restart.h: Restarts queue even on kernels that don't have
469 queued real time signals (2.0, early 2.1), thanks to atomic counter,
470 avoiding a rare race condition in pthread_cond_timedwait.
472 1999-12-31 Andreas Jaeger <aj@suse.de>
474 * internals.h: Remove duplicate prototype declarations.
476 * weaks.c: Remove __THROW from prototypes since the file is not
477 compiled by a C++ compiler.
478 * internals.h: Likewise.
480 1999-12-30 Andreas Jaeger <aj@suse.de>
482 * sysdeps/pthread/pthread.h: Move internal functions to...
483 * sysdeps/pthread/bits/libc-lock.h: ...here.
485 1999-12-29 Andreas Jaeger <aj@suse.de>
487 * sysdeps/pthread/pthread.h: Fix typos, reformat comments.
489 1999-12-28 Ulrich Drepper <drepper@cygnus.com>
491 * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
494 * manager.c (__pthread_start): Add one more cast to prevent
495 warning on 64bit machines.
497 1999-12-21 Ulrich Drepper <drepper@cygnus.com>
499 * manager.c (pthread_handle_create): Set p_pid of new thread
500 before calling the callback function to report a new thread.
502 1999-12-20 Andreas Jaeger <aj@suse.de>
504 * pthread.c (pthread_initialize): Move getrlimit call after
507 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
509 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
510 pwrite64, lseek64, open64, and __open64.
511 * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
512 pwrite64, lseek64, open64, and __open64.
514 * manager.c (pthread_allocate_stack): Correct computation of
515 new_thread_bottom. Correct handling of stack size and when the
516 rlimit method to guard for stack growth is used.
517 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
518 minus one pagesize (not two).
520 1999-12-03 Andreas Jaeger <aj@suse.de>
522 * Versions: Add __res_state with version GLIBC_2.2.
524 * errno.c (__res_state): New function to return thread specific
527 * pthread.c (pthread_initialize): Initialize p_resp.
528 (__pthread_reset_main_thread): Also set p_resp.
530 * manager.c (pthread_handle_create): Initialize p_resp.
532 * internals.h: Add thread specific resolver state.
533 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
535 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
537 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
539 * sysdeps/i386/i686/pt-machine.h: Likewise.
540 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
542 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
544 * manager.c (pthread_start_thread_event): Initialize p_pid already
547 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
549 * internals.h: Add prototype for __pthread_manager_event.
550 * manager.c (__pthread_manager_event): New function.
551 (pthread_start_thread_event): Correct computation of self.
552 Use INIT_THREAD_SELF.
553 * pthread.c (__pthread_manager_thread): Initialize p_lock.
554 (__pthread_initialize_manager): Respect event flags also for creation
555 of the manager thread.
557 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
559 * pthread.c (__pthread_initialize_manager): Initialize
560 __pthread_manager_thread.p_tid.
562 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
564 * internals.h: Declare __pthread_last_event.
565 * manager.c: Define __pthread_last_event.
566 (pthread_handle_create): Set __pthread_last_event.
567 (pthread_exited): Likewise.
568 * join.c (pthread_exit): Likewise.
570 * Makefile (libpthread-routines): Add events.
571 * events.c: New file.
572 * internals.h: Protect against multiple inclusion.
573 Include thread_dbP.h header.
574 (struct _pthread_descr_struct): Add new fields p_report_events and
576 Declare event reporting functions.
577 * join.c (pthread_exit): Signal event if this is wanted.
578 * manager.c (__pthread_threads_events): New variable.
579 (pthread_handle_create): Take new parameters with event information.
580 Signal TD_CREATE event if wanted.
581 (__pthread_manager): Adjust pthread_handle_create call.
582 (pthread_start_thread_event): New function. Block until manager is
583 finished and then call pthread_start_thread.
584 (pthread_exited): Signal TD_REAP event if wanted.
586 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
588 * restart.h (suspend_with_cancellation): Rewrite as a macro.
590 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
592 1999-10-25 Andreas Jaeger <aj@suse.de>
594 * internals.h: Remove K&R compatibility.
595 * no-tsd.c: Likewise.
596 * semaphore.h: Likewise.
597 * signals.c: Likewise.
598 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
599 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
602 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
604 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
605 and pthread_handle_sigcancel with functions that restore
606 %gs from the signal context. For each signal handling function,
607 two wrappers are required, one for a non-RT signal and one for
609 * linuxthreads/signal.c: For i386, add code to restore %gs
610 from the signal context in pthread_sighandler and
611 pthread_sighandler_rt.
613 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
615 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
617 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
619 * pthread.c (__pthread_initial_thread): Pass argument to
620 PTHREAD_START_ARGS_INITIALIZER.
621 (__pthread_manager_thread): Likewise.
623 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
626 * manager.c (pthread_handle_create): Remove p_startfct initialization.
628 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
630 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
632 * internals.h: Correct return types for __libc_read and __libc_write.
634 1999-10-09 Andreas Jaeger <aj@suse.de>
636 * internals.h: Add __new_sem_post to get prototype in
637 manager.c; include semaphore.h for needed types.
639 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
641 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
642 directly instead of calling sem_post which should not be necessary
643 but is faster and might help in some case to work around problems.
644 Patch by khendricks@ivey.uwo.ca [libc/1382].
646 1999-10-08 Andreas Schwab <schwab@suse.de>
648 * sysdeps/pthread/Subdirs: New file.
651 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
654 * internals.h (struct _pthread_descr_struct): Add p_startfct.
655 * manager.c (pthread_handle_create): Initialize p_startfct.
656 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
658 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
660 * manager.c (__linuxthreads_pthread_threads_max): New variable.
661 * specific.c (__linuxthreads_pthread_keys_max): New variable.
662 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
664 * condvar.c (pthread_cond_timedwait_relative): Never return with
665 EINTR. Patch by Andreas Schwab.
667 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
669 * signals.c (sigaction): Correct last patch. Don't select
670 pthread_sighandler_rt based on the signal number but instead of
673 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
675 * specific.c: Move definitions of struct pthread_key_struct and
676 destr_function to ...
677 * internals.h: ...here.
679 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
681 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
682 this instead of pthread_handle_sigrestart if the signal is an RT
685 * signals.c: Handle passing through of sighandler arguments also
686 for real-time signals.
688 1999-09-03 Andreas Schwab <schwab@suse.de>
690 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
692 (__vfork): New function, alias vfork.
693 * Versions: Export __fork, vfork, and __vfork in libpthread.
695 1999-08-23 Andreas Schwab <schwab@suse.de>
697 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
698 call to signal handler.
700 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
702 * pthread.c (__pthread_reset_main_thread): Undo last change.
703 (__pthread_kill_other_threads_np): Reset signal handlers for the
704 signals we used in the thread implementation here.
706 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
708 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
709 for the signals we used in the thread implementation [PR libc/1234].
711 * Versions: Export __pthread_kill_other_threads_np from libpthread
714 * signals.c: Pass sigcontext through wrapper to the user function.
716 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
718 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
719 __libc_internal_tsd_set.
721 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
723 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
726 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
728 * internals.h: Align _pthread_descr_struct to 32 bytes.
729 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
732 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
734 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
737 1999-07-09 Cristian Gafton <gafton@redhat.com>
739 * Makefile (libpthread-routines): Add oldsemaphore routine.
740 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
741 sem_trywait, and sem_wait to GLIBC_2.1.
742 * oldsemaphore.c: New file.
743 * semaphore.c: Add default_symbol_versions for the changed functions.
744 (__new_sem_init): Rename from sem_init.
745 (__new_sem_post): Rename from sem_post.
746 (__new_sem_wait): Rename from sem_wait.
747 (__new_sem_trywait): Rename from sem_trywait.
748 (__new_sem_getvalue): Rename from sem_getvalue.
749 (__new_sem_destroy): Rename from sem_destroy.
751 1999-06-23 Robey Pointer <robey@netscape.com>
753 * internals.h: Added p_nextlock entry to separate queueing for a
754 lock from queueing for a CV (sometimes a thread queues on a lock
755 to serialize removing itself from a CV queue).
756 * pthread.c: Added p_nextlock to initializers.
757 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
759 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
761 * manager.c (pthread_handle_create): Free mmap region after stack
762 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
764 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
766 * man/pthread_cond_init.man: Correct example.
767 Reported by Tomas Berndtsson <tomas@nocrew.org>.
769 * linuxthreads.texi (Condition Variables): Likewise.
771 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
773 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
774 casx not cas, also successful casx returns the old value in rd
775 and not the new value.
777 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
779 * manager.c: If pthread_create() is given a NULL attribute
780 and the thread manager runs with a realtime policy, set the
781 scheduling policy of the newly created thread back to SCHED_OTHER.
782 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
783 initialize the schedpolicy field of new_thread->p_start_args
784 to that of the calling thread.
786 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
788 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
789 instruction does not allow memory element to use offset.
791 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
793 * manager.c (pthread_allocate_stack): Optimize initialization of new
796 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
797 Don't use initializer since it is all zeroes.
798 (__libc_once_define): Likewise.
800 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
802 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
803 doesn't exist anymore.
804 * sysdeps/i386/Implies: Likewise.
805 * sysdeps/m68k/Implies: Likewise.
806 * sysdeps/mips/Implies: Likewise.
807 * sysdeps/powerpc/Implies: Likewise.
808 * sysdeps/sparc/sparc32/Implies: Likewise.
809 * sysdeps/sparc/sparc64/Implies: Likewise.
811 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
813 * sysdeps/alpha/bits/semaphore.h: Removed.
814 * sysdeps/powerpc/bits/semaphore.h: Removed.
815 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
816 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
817 * Makefile (headers): Remove bits/semaphore.h.
819 * semaphore.h: Define _pthread_descr if necessary.
820 Don't include limits.h. Define SEM_VALUE_MAX directly.
822 (sem_t): Protect element names with leading __.
823 Add declarations for sem_close, sem_open, and sem_unlink.
824 * semaphore.c: Adjust all functions for new element names.
825 Define sem_close, sem_open, and sem_unlink.
826 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
828 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
831 1999-03-16 H.J. Lu <hjl@gnu.org>
833 * specific.c (pthread_key_delete): Check th->p_terminated to see
834 if the thread is running.
836 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
837 Added to GLIBC_2.0 for libc.so.
839 1999-02-12 H.J. Lu <hjl@gnu.org>
841 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
842 __libc_allocate_rtsig): Added to GLIBC_2.1.
844 * internals.h (DEFAULT_SIG_RESTART): Removed.
845 (DEFAULT_SIG_CANCEL): Removed.
847 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
848 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
849 (__pthread_sig_restart, __pthread_sig_cancel,
850 __pthread_sig_debug): Initialized.
851 (pthread_initialize): Call init_rtsigs () to initialize
854 1999-02-03 H.J. Lu <hjl@gnu.org>
856 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
857 Don't restart the thread which sent REQ_DEBUG.
858 (pthread_start_thread): Check if __pthread_sig_debug > 0
861 * pthread.c (__pthread_initialize_manager): Suspend ourself
862 after sending __pthread_sig_debug to gdb instead of
863 __pthread_sig_cancel.
865 1999-01-24 H.J. Lu <hjl@gnu.org>
867 * manager.c (__pthread_manager): Delete __pthread_sig_debug
868 from mask if __pthread_sig_debug > 0.
869 (pthread_handle_create): Increment __pthread_handles_num.
871 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
872 * pthread.c (__pthread_initialize_manager): Likewise.
874 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
875 instead of __libc_allocate_rtsig (2).
876 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
877 instead of __pthread_sig_cancel.
878 (pthread_handle_sigdebug): Fix comments.
880 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
882 * manager.c (pthread_allocate_stack): Set
883 __pthread_nonstandard_stacks if user-specified stack is used.
885 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
887 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
888 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
890 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
892 * pthread.c: Use a third signal __pthread_sig_debug distinct
893 from __pthread_sig_cancel to notify gdb when a thread is
895 * manager.c: Likewise.
896 * internals.h: Likewise.
897 * signals.c: The implementation of sigwait(s) assumed that
898 all signals in s have signal handlers already attached.
899 This is not required by the standard, so make it work
900 also if some of the signals have no handlers.
902 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
904 * linuxthreads.texi: Remove pointers from first @node. Move old
905 @node spec inside comment.
907 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
909 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
912 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
914 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
915 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
917 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
919 * manager.c: Threads now send __pthread_sig_cancel on termination.
920 Change clone call and signal masks.
921 * thread.c (pthread_handle_sigrestart): Remove special code for
923 (pthread_handle_sigcancel): In manager thread call
924 __pthread_manager_sighandler.
925 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
926 * sysdeps/i386/i686/pt-machine.h: Likewise.
927 Patches by Xavier Leroy.
929 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
931 * spinlock.c (__pthread_unlock): Don't crash if called for an
932 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
934 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
937 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
939 * Examples/ex3.c: Wait until all threads are started before
940 searching for the number to avoid race condition on very fast
943 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
945 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
946 declaration since it's not needed.
948 * sysdeps/pthread/pthread.h: Move internal functions to ...
949 * internals.h: ...here.
951 1998-12-02 H.J. Lu <hjl@gnu.org>
953 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
955 (__pthread_sig_cancel): Likewise.
957 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
959 * wrapsyscall.c: Include <sys/mman.h> for msync,
960 <stdlib.h> for system and <termios.h> for tcdrain prototype.
961 Correct msync declaration.
963 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
965 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
966 __libc_tsd_set): New macros for new interface.
967 * no-tsd.c: New file, provide uninitialized defns of
968 __libc_internal_tsd_get and __libc_internal_tsd_set.
969 * Makefile (routines): Add no-tsd.
971 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
973 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
974 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
975 __libc_internal_tsd_set): Move decls to ...
976 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
979 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
980 __libc_internal_tsd_set): Make these pointers to functions, not
981 functions; remove #pragma weak decls for them.
982 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
983 Define static functions and initialized pointers to them.
985 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
987 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
988 (CFLAGS-specific.c): Likewise.
989 (CFLAGS-pthread.c): Likewise.
990 (CFLAGS-ptfork.c): Likewise.
991 (CFLAGS-cancel.c): Likewise.
992 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
993 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
995 * mutex.c (pthread_mutex_init): Define as strong symbol.
996 (pthread_mutex_destroy): Likewise.
997 (pthread_mutex_trylock): Likewise.
998 (pthread_mutex_lock): Likewise.
999 (pthread_mutex_unlock): Likewise.
1000 (pthread_mutexattr_init): Likewise.
1001 (pthread_mutexattr_destroy): Likewise.
1002 (pthread_once): Likewise.
1003 * ptfork.c (pthread_atfork): Likewise.
1004 * specific.c (pthread_key_create): Likewise.
1005 (pthread_setspecific): Likewise.
1006 (pthread_getspecific): Likewise.
1008 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1010 * linuxthreads.texi: Fix punctuation after xref.
1012 1998-11-10 H.J. Lu <hjl@gnu.org>
1014 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
1015 if it is defined in <linux/limits.h>.
1017 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
1019 * spinlock.h (__pthread_trylock): Define inline.
1020 (__pthread_lock): Add extra parameter to declaration. Declare
1021 using internal_function.
1022 (__pthread_unlock): Declare using internal_function.
1023 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
1024 of local variable self. Avoid recomputing self. Define using
1026 (__pthread_trylock): Remove.
1027 (__pthread_unlock): Define using internal_function.
1028 * cancel.c: Adjust for __pthread_lock interface change. Use already
1029 computed self value is possible.
1030 * condvar.c: Likewise.
1032 * manager.c: Likewise.
1033 * mutex.c: Likewise.
1034 * pthread.c: Likewise.
1035 * rwlock.c: Likewise.
1036 * semaphore.c: Likewise.
1037 * signals.c: Likewise.
1039 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
1041 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
1042 __ to field names of the struct.
1043 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
1045 (pthread_attr_t): Likewise.
1046 (pthread_cond_t): Likewise.
1047 (pthread_condattr_t): Likewise.
1048 (pthread_mutex_t): Likewise.
1049 (pthread_mutexattr_t): Likewise.
1050 (pthread_rwlock_t): Likewise.
1051 (pthread_rwlockattr_t): Likewise.
1052 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
1053 * cancel.c: Likewise.
1054 * condvar.c: Likewise.
1055 * manager.c: Likewise.
1056 * mutex.c: Likewise.
1057 * pthread.c: Likewise.
1058 * ptlongjmp.c: Likewise.
1059 * rwlock.c: Likewise.
1060 * spinlock.c: Likewise.
1062 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
1064 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
1067 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
1070 * Makefile (libpthread-routines): Add pt-machine.
1071 * pt-machine.c: New file.
1072 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
1073 yet defined. Use PT_EI in extern inline definitions.
1074 * sysdeps/arm/pt-machine.h: Likewise.
1075 * sysdeps/i386/pt-machine.h: Likewise.
1076 * sysdeps/i386/i686/pt-machine.h: Likewise.
1077 * sysdeps/m68k/pt-machine.h: Likewise.
1078 * sysdeps/mips/pt-machine.h: Likewise.
1079 * sysdeps/powerpc/pt-machine.h: Likewise.
1080 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
1081 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1083 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1085 * semaphore.h: Include <sys/types.h> so that _pthread_descr
1088 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
1090 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
1092 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
1094 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1096 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
1097 multiple inclusion guard.
1099 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1101 * signals.c (sigaction): Check that sig is less than NSIG to avoid
1102 array index overflow.
1104 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
1106 * sysdeps/pthread/semaphore.h: New file.
1108 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
1110 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
1111 _LIBC_TSD_KEY_DL_ERROR.
1113 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
1115 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
1116 * sysdeps/i386/pt-machine.h: Likewise.
1117 Suggested by Roland McGrath.
1119 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
1121 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
1122 access thread data with non-constant offsets.
1123 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
1126 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
1127 THREAD_SETMEM_NC definitions.
1129 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
1131 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1133 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
1135 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
1136 not already defined.
1137 (struct _pthread_descr_struct): Add p_self and p_nr field.
1138 * manager.c (__pthread_handles): Define second element to point
1140 (__pthread_handles_num): Initialize to 2.
1141 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
1142 (pthread_start_thread): Likewise.
1143 (pthread_handle_create): Start search for free slot at entry 2.
1144 Initialize new fields p_self and p_nr.
1145 Call __clone with CLONE_PTRACE if available.
1146 (pthread_free): Call FREE_THREAD_SELF if available.
1147 * pthread.c (__pthread_initial_thread): Initialize new fields.
1148 (__pthread_manager_thread): Likewise.
1149 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
1151 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
1152 elements of the thread descriptor.
1153 * condvar.c: Likewise.
1154 * errno.c: Likewise.
1156 * manager.c: Likewise.
1157 * pthread.c: Likewise.
1158 * ptlongjmp.c: Likewise.
1159 * semaphore.c: Likewise.
1160 * signals.c: Likewise.
1161 * specific.c: Likewise.
1162 * spinlock.c: Likewise.
1164 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
1166 * sysdeps/i386/useldt.h: New file.
1167 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
1169 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
1170 THREAD_SETMEM using __thread_self.
1171 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1173 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
1175 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
1176 turned out that we didn't need to queue after all.
1178 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
1180 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
1181 and wastes space; correct types.
1183 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
1185 * signals.c (sigaction): Handle NULL argument.
1187 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
1189 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
1192 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1194 * Makefile (linuxthreads-version): Extract correct number from
1197 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
1199 * Banner: Bump version number to 0.8
1200 * FAQ.html: Many updates, in particular w.r.t. debugging.
1201 * manager.c: Support for non-default stacksize for
1202 LinuxThreads-allocated stacks;
1203 don't use guard pages for stacks with default size, rely on
1204 rlimit(RLIMIT_STACK) instead (it's cheaper).
1206 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
1207 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
1208 * condvar.c: Likewise.
1209 * internals.h: Likewise.
1210 * restart.h: Likewise.
1211 * signals.c: Likewise.
1212 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
1214 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1216 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
1217 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
1218 * Versions: Put __pthread_mutexattr_settype under version
1219 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
1220 __pthread_mutexattr_gettype.
1222 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1224 * sysdeps/pthread/bits/libc-lock.h: Make
1225 __pthread_mutexattr_settype weak. Don't make
1226 __pthread_mutexattr_setkind_np weak.
1228 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
1230 * manager.c (pthread_handle_create): Check whether sched_setscheduler
1231 call can succeed here.
1233 * mutex.c: Define __pthread_mutexattr_settype and make
1234 __pthread_mutexattr_setkind_np an alias.
1235 Likewise for __pthread_mutexattr_gettype.
1237 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1239 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
1242 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
1244 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
1246 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1248 * Examples/ex6.c: Include <unistd.h> for usleep.
1250 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1252 * Examples/ex4.c (main): Use exit, not pthread_exit.
1254 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
1256 * Versions: Add __pthread_mutexattr_gettype and
1257 __pthread_mutexattr_settype.
1258 * lockfile.c: Use __pthread_mutexattr_settype instead of
1259 __pthread_mutexattr_setkind_np.
1260 * mutex.c: Define __pthread_mutexattr_gettype and
1261 __pthread_mutexattr_settype.
1263 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
1264 __pthread_mutexattr_settype.
1265 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
1266 Use __pthread_mutexattr_settype.
1268 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
1270 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
1271 * mutex.c: Define weak alias pthread_mutexattr_gettype and
1272 pthread_mutexattr_settype.
1273 * sysdeps/pthread/pthread.h: Declare these functions.
1274 Move pthread_sigmask and pthread_kill declaration in separate header.
1275 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
1277 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
1279 * Makefile: Add rules to compile and run tests.
1280 * Examples/ex1.c: Little changes to fix warnings.
1281 * Examples/ex2.c: Likewise.
1282 * Examples/ex3.c: Likewise.
1283 * Examples/ex4.c: Likewise.
1284 * Examples/ex5.c: Likewise.
1285 * Examples/ex6.c: New file.
1287 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
1289 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
1291 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1293 * attr.c: Include <string.h>.
1295 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
1297 * attr.c: Include errno.h. Use memcpy to copy sched_param.
1298 * internals.h: Include limits.h.
1299 * manager.c: Use memcpy to copy sched_param.
1300 * ptfork.c: Include errno.h.
1301 * pthread.c: Likewise.
1302 * semaphore.c: Likewise.
1303 * specific.c: Likewise.
1304 * spinlock.h: Likewise.
1305 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
1306 type definition to ...
1307 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
1309 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
1311 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
1313 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
1314 as macros as demanded in POSIX.1, Annex C.
1316 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
1318 * internals.h (struct pthread_request): For free use pthread_t
1319 instead of pthread_descr.
1320 * join.c (pthread_join): Pass thread_id, not th to manager.
1321 (pthread_detach): Likewise.
1322 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
1323 (pthread_exited): Remove detached queue code.
1324 (pthread_handle_free): Expect thread ID parameter and use it to
1325 validate the thread decsriptor. Don't use detached queue.
1326 Patches by Xavier Leroy.
1328 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1330 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
1331 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
1332 __pthread_atfork, __pthread_key_create, __pthread_once.
1333 * internals.h: Doc fix.
1334 * pthread.c (__pthread_initialize): Define again.
1336 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
1338 * manager.c (pthread_exited): If thread is not detached put it on
1340 (pthread_handle_free): If thread is not on list with living threads
1341 search on list with detached threads.
1343 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
1344 for new definition of pthread_rwlock_t.
1346 * spinlock.c: Correct test whether to compile
1347 __pthread_compare_and_swap or not.
1349 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
1351 * attr.c: Finish user stack support. Change locking code to be safe
1352 in situations with different priorities.
1353 * cancel.c: Likewise.
1354 * condvar.c: Likewise.
1355 * internals.h: Likewise.
1357 * manager.c: Likewise.
1358 * mutex.c: Likewise.
1359 * pthread.c: Likewise.
1360 * ptlongjmp.c: Likewise.
1361 * queue.h: Likewise.
1362 * rwlock.c: Likewise.
1363 * semaphore.c: Likewise.
1364 * semaphore.h: Likewise.
1365 * signals.c: Likewise.
1366 * spinlock.c: Likewise.
1367 * spinlock.h: Likewise.
1368 * sysdeps/pthread/pthread.h: Likewise.
1369 Patches by Xavier Leroy.
1371 * sysdeps/i386/i686/pt-machine.h: New file.
1373 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
1375 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
1376 [sg]et_stackaddr prototypes always available.
1378 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1379 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
1381 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
1383 * manager.c (pthread_free): Undo patch from 980430.
1384 Reported by David Wragg <dpw@doc.ic.ac.uk>.
1386 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
1388 * manager.c: Define __pthread_manager_adjust_prio and use it to
1389 increase priority when needed.
1390 * internals.h: Add prototype for __pthread_manager_adjust_prio.
1391 * mutex.c: Optimize mutexes to wake up only one thread.
1392 * pthread.c: Move PID of manager for global variable in structure
1394 Patches by Xavier Leroy.
1396 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
1398 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
1400 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1402 * attr.c: Correct typo.
1404 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
1406 * manager.c (pthread_free): Unmap guard before the stack.
1407 Patch by Matthias Urlichs.
1409 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
1411 * manager.c (pthread_free): Detect already free child.
1412 Patch by Xavier Leroy, reported by Matthias Urlichs.
1414 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1416 * Makefile (linuxthreads-version): Renamed back from
1419 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
1421 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
1424 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
1426 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
1427 * internals.h: Add definitions for new spinlock implementation.
1428 * ptlongjmp.c: New file.
1429 * spinlock.c: New file.
1430 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
1431 new function __pthread_acquire to prevent deadlocks with thread
1432 with different priorities.
1433 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
1435 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1437 * manager.c (__pthread_manager): Reduce first argument to select
1438 to include just the needed file descriptor.
1440 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
1442 * manager.c: Fix last patch which caused core dumps.
1444 * pthread.c: Correctly handle missing SIGRTMIN.
1446 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1448 * libpthread.map: Add __libc_internal_tsd_get and
1449 __libc_internal_tsd_set. Add missing cancelable functions. Export
1450 libc internal versions of the cancelable functions.
1452 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
1454 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
1456 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
1458 * attr.c: Implement pthread_attr_[gs]etguardsize,
1459 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
1460 Change pthread_attr_init to have two interfaces.
1461 * internals.h (struct _pthread_descr_struct): Add new fields for
1463 * libpthread.map: Add names in GLIBC_2.1 section.
1464 * manager.c (pthread_handle_create): Implement guardsize and
1466 (pthread_free): Likewise.
1467 * pthread.c (pthread_create): Add new interface for changed
1469 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
1470 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
1473 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
1475 * manager.c: Enable resetting of the thread scheduling policy
1476 to SCHED_OTHER when the parent thread has a different one.
1478 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
1480 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1481 _POSIX_ASYNCHRONOUS_IO.
1483 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
1485 * mutex.c: Implement new mutex types.
1487 * internals.h: Include <signal.h>.
1489 * libpthread.map: Add __erno_location and __h_errno_location.
1491 * errno.c: Return pointer to variable actually in use. This might
1492 not be the one in the thread structure.
1493 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
1495 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
1496 of manager thread structure.
1497 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
1499 * pthread.c: Adapt initializer for thread structures.
1500 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
1501 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
1502 current thread to global variables.
1504 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
1506 * rwlock.c: New file.
1507 * Makefile (libpthread-routines): Add rwlock.
1508 * sysdeps/pthread/pthread.h: Define data structures and declare
1510 * libpthread.map: Add new functions.
1512 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1514 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1515 * sysdeps/arm/Implies: likewise.
1516 * README: Document it.
1518 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1520 * signals.c: Remove unneeded initializer for sigwaited, saving a
1523 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1525 * semaphore.c (sem_init): Set sem_spinlock only if available.
1527 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1529 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1530 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1532 * Makefile: Update from LinuxThreads 0.7.
1533 * internals.h. Likewise.
1534 * manager.c: Likewise.
1535 * mutex.c: Likewise.
1536 * pthread.c: Likewise.
1537 * signals.c: Likewise.
1538 * specific.c: Likewise.
1539 * Examples/ex3.c: Likewise.
1541 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1543 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1546 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1548 * wrapsyscall.c: Add socket functions which are also cancelation
1551 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1553 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1554 New functions for fast thread specific data within libc.
1556 * internals.h: Add new array p_libc_specific to struct
1557 _pthread_descr_struct.
1559 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1561 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1563 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1564 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1566 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1568 * internals.h (struct _pthread_descr_struct): Add definitions for
1569 two-level specific key handling.
1570 * manager.c (pthread_handle_create): Initialize specific memory array.
1571 * specific.c: Implement two-level key handling.
1572 * weaks.c: Don't provide dummy key handling.
1573 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1574 Add definition of __libc_key_t.
1575 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1577 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1578 PTHREAD_DESTRUCTOR_ITERATIONS.
1580 * manager.c (pthread_handle_create): Compare mmap result with
1583 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1584 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1586 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1588 sysdeps/sparc -> sysdeps/sparc/sparc32
1589 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1591 * internals.h: Change definition of THREAD_SELF to be an expression,
1592 not a statement that did a return.
1593 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1594 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1595 Follow Solaris and use a "system reserved" register (%g6) to hold
1596 the thread descriptor.
1597 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1599 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1601 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1602 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1603 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1605 * semaphore.c: Include spinlock.h only when needed.
1607 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1608 keys for entries not in use.
1610 * weaks.c: Implement key handling functions for real.
1612 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1614 Initial sparc64-linux support:
1615 * linuxthreads/sysdeps/sparc64/Implies: New file.
1616 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1618 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1620 * semaphore.c: Include spinlock.h at correct place.
1623 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1625 The Great Bit File Move:
1626 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1627 * sysdeps/powerpc/semaphorebits.h: Likewise.
1628 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1629 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1630 * sysdeps/pthread/libc-lock.h: -> bits/
1631 * sysdeps/pthread/stdio-lock.h: Likewise.
1632 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1633 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1634 * semaphore.h: Likewise.
1635 * sysdeps/pthread/pthread.h: Likewise.
1637 * lockfile.c: <foo.h> -> <bits/foo.h>.
1638 * semaphore.h: Likewise.
1640 * Makefile: (headers): foo.h -> bits/foo.h.
1641 * sysdeps/pthread/Makefile: Likewise.
1643 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1645 * semaphore.c (sem_init): Set sem_spinlock only if available.
1647 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1650 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1652 Update from LinuxThreads 0.6.
1654 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1655 and __sched_get_priority_min instead of names without `__'.
1657 * manager.c: Rewrite large parts to implement opaque pthread_t.
1659 * cancel.c: Adapt for opaque pthread_t type.
1660 * condvar.c: Likewise.
1661 * errno.c: Likewise.
1663 * mutex.c: Likewise.
1664 * pthread.c: Likewise.
1665 * signals.c: Likewise.
1666 * specific.c: Likewise.
1667 * restart.h: Likewise.
1668 * queue.h: Likewise.
1669 * Examples/ex3.c: Likewise.
1670 * Examples/ex4.c: Likewise.
1671 * sysdeps/pthread/pthread.h: Likewise.
1673 * pthread.c: Accumulate time for all threads in thread manager.
1675 * semaphore.c: Implement fallback implementation for architectures
1676 sometimes missing compare-exchange operations.
1678 * cancel.c (pthread_cancel): Validate handle argument.
1679 * join.c (pthread_join): Likewise.
1680 (pthread_detach): Likewise.
1681 * signals.c (pthread_kill): Likewise.
1683 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1685 * queue.h (enqueue): Enqueue thread according to priority.
1687 * internals.c (struct pthread_start_args): New struct for passing
1688 args to cloning function.
1689 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1692 * Examples/Makefile (clean): Pass -f option to rm.
1694 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1695 and define TEST_FOR_COMPARE_AND_SWAP.
1696 * sysdeps/i386/i486/pt-machine.h: Removed.
1698 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1701 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1703 * restart.h (suspend): Clear p_signal before suspending.
1704 (suspend_with_cancellation): Likewise.
1705 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1707 * weaks.c: Make __pthread_key_create return 1.
1708 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1709 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1710 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1713 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1715 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1717 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1719 * sysdeps/powerpc/Implies: Added.
1720 * sysdeps/powerpc/pt-machine.h: Added.
1721 * sysdeps/powerpc/semaphorebits.h: Added.
1723 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1725 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1727 (__pthread_manager_thread): Likewise.
1728 Reported by Andreas Jaeger.
1730 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1732 Since sigset_t no longer fits in a register, we can't pass in the
1733 thread's initial mask so easily. Take this opportunity to simplify
1734 the clone implementation by only accepting a single void* argument.
1736 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1737 in the thread struct instead of as arguments through clone.
1738 (pthread_start_thread): Look for them there.
1739 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1740 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1741 * linuxthreads/pthread.c (pthread_initialize_manager): Revise