1 2000-05-28 Ulrich Drepper <drepper@redhat.com>
3 * spinlock.c (__pthread_lock): Remove ASSERT.
5 * Makefile (tests): Add ex8.
6 * Examples/ex8.c: New file.
8 2000-05-12 Kaz Kylheku <kaz@ashi.footprints.net>
10 Bugfix: The pthread_atfork mechanism now takes care of its
11 own internal mutex at fork time.
13 * ptfork.c (__fork): Revised so that the mutex is held across
14 the fork operation and while the handlers are called, and so that
15 the child resets the mutex.
17 * linuxthreads.texi: Updated pthread_atfork documentation to make
18 it clear that fork and pthread_atfork can't be reentered from
19 atfork handlers, that pthread_atfork and fork are mutually atomic,
20 and that the handlers are inherited by the child process.
22 2000-05-24 Ulrich Drepper <drepper@redhat.com>
24 * Makefile (libpthread-routines): Add pspinlock.
25 * cancel.c: Rename __pthread_spin_unlock back to __pthread_unlock.
26 Use struct _pthread_fastlock instead of pthread_spinlock_t.
27 * condvar.c: Likewise.
28 * internals.h: Likewise.
30 * manager.c: Likewise.
32 * pthread.c: Likewise.
34 * semaphore.c: Likewise.
35 * signals.c: Likewise.
36 * spinlock.h: Likewise.
37 * spinlock.c: Likewise. Remove pthread_spin_lock functions.
38 * sysdeps/alpha/pspinlock.c: New file.
39 * sysdeps/arm/pspinlock.c: New file.
40 * sysdeps/i386/pspinlock.c: New file.
41 * sysdeps/m68k/pspinlock.c: New file.
42 * sysdeps/mips/pspinlock.c: New file.
43 * sysdeps/powerpc/pspinlock.c: New file.
44 * sysdeps/sparc/sparc32/pspinlock.c: New file.
45 * sysdeps/sparc/sparc64/pspinlock.c: New file.
46 * sysdeps/pthread/bits/pthreadtypes.h: Remove pthread_spinlock_t
47 back to _pthread_fastlock. Define new pthread_spinlock_t.
49 2000-05-24 Andreas Jaeger <aj@suse.de>
51 * sysdeps/i386/i686/pt-machine.h: Only use LDT on newer kernels.
53 2000-05-21 Jakub Jelinek <jakub@redhat.com>
55 * manager.c (pthread_handle_create): Initialize p_res._sock to -1.
57 2000-05-13 Jakub Jelinek <jakub@redhat.com>
59 * internals.h (__RES_PTHREAD_INTERNAL): Define.
61 2000-05-06 Kaz Kylheku <kaz@ashi.footprints.net>
63 * mutex.c (pthread_once): IN_PROGRESS state of pthread_once_t
64 object state is represented with additional bits which distinguish
65 whether that state was set up in the current process, or
66 in an ancestor process. If that state was set in an ancestor,
67 it means that a fork happened while thread was executing the init
68 function. In that case, the state is reset to NEVER.
69 * mutex.c (__pthread_once_fork_prepare): New function.
70 (__pthread_once_fork_child): Likewise
71 (__pthread_once_fork_parent): Likewise
72 (__pthread_reset_pthread_once): Removed.
73 * ptfork.c (__fork): Call new handlers in mutex.c.
74 * internals.h: Declarations of new mutex.c functions added.
75 Declaration of removed function deleted.
76 * linuxthreads.texi: Updated documentation about pthread_once
77 to clarify what happens under cancellation and forking.
79 2000-05-06 Kaz Kylheku <kaz@ashi.footprints.net>
81 * internals.h: New thread manager request type, REQ_KICK.
82 * join.c (pthread_exit): main thread now calls exit() instead
83 of _exit() in order to proper process cleanup.
84 * manager.c (__pthread_manager): Do not terminate manager
85 after unblocking main thread; wait for main thread's
86 REQ_PROCESS_EXIT request instead.
87 Also, added REQ_KICK case to handle new request; this just does
89 * manager.c (pthread_exited): Do not terminate manager after
90 unblocking main thread.
91 * manager.c (__pthread_manager_sighandler): If the main thread
92 is waiting for all other threads to die, send a REQ_KICK into
93 the thread manager request pipe to get it to clean out the threads
94 and unblock the main thread as soon as possible. This fixes
95 the 2000 millisecond hang on shutdown bug.
96 * Examples/ex7.c: New file, tests shutdown behavior when all threads
97 including the main one call pthread_exit(), or implicitly do so.
98 * Makefile (tests): Add ex7.
100 2000-05-05 Andreas Jaeger <aj@suse.de>
102 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
103 (pthread_getcpuclockid): Correct test for ourselves.
105 2000-05-05 Ulrich Drepper <drepper@redhat.com>
107 * internals.h (struct _pthread_descr_struct): Reorganization.
108 Allocate room for 16 pointers at head of the structure for future
109 thread-local data handling. Move p_self member in this area.
110 * manager.c (pthread_handle_create): Adjust use of p_self.
111 * sysdeps/i386/useldt.h (THREAD_SELF): Likewise.
112 * pthread.c (__pthread_initial_thread): Adjust initialization.
113 (__pthread_manager_thread): Likewise.
115 2000-04-29 Bruno Haible <haible@clisp.cons.org>
117 * join.c (pthread_exit): Use THREAD_GETMEM_NC instead of THREAD_GETMEM
118 for eventmask larger than 1 word.
120 2000-04-27 Ulrich Drepper <drepper@redhat.com>
122 * Versions [libpthread] (GLIBC_2.2): Add __pthread_initialize_minimal.
123 * pthread.c (__pthread_initialize_minimal): New function. Perform
124 minimal initialization.
125 (pthread_initialize): Remove this code here.
126 * sysdeps/i386/i686/pt-machine.h: Include "../useldt.h" again. We
127 are working around the problem in glibc.
129 2000-04-25 Ulrich Drepper <drepper@redhat.com>
131 * sysdeps/i386/i686/pt-machine.h: Do not use "../useldt.h" for
132 now. First gcc must be fixed (more concrete: libgcc).
134 2000-04-24 Ulrich Drepper <drepper@redhat.com>
136 * pthread.c: Remove special treatement for interrupt handlers on x86.
137 * manager.c (pthread_free): Use FREE_THREAD not FREE_THREAD_SELF.
138 * sysdeps/i386/useldt.h: Use "q" constraint instead of "r" where
140 * sysdeps/i386/i686/pt-machine.h: Include "../useldt.h".
142 2000-04-24 Mark Kettenis <kettenis@gnu.org>
144 * join.c (pthread_exit): Set p_terminated after reporting the
145 termination event instead of before.
147 2000-04-20 Jakub Jelinek <jakub@redhat.com>
149 * sysdeps/pthread/bits/libc-lock.h: Only declare __pthread_rwlock_*
152 2000-04-18 Andreas Jaeger <aj@suse.de>
154 * Versions: Use ld instead of ld.so.
156 2000-04-18 Jakub Jelinek <jakub@redhat.com>
158 * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h (struct sigcontext):
159 Remove the typedef keyword.
161 2000-04-18 Jakub Jelinek <jakub@redhat.com>
163 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Use membar,
165 (READ_MEMORY_BARRIER): Define.
166 * spinlock.c (__pthread_spin_unlock): Use READ_MEMORY_BARRIER, not
168 * internals.h (READ_MEMORY_BARRIER): Define if not defined in sysdep
171 2000-04-17 Ulrich Drepper <drepper@redhat.com>
173 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
174 (pthread_getcpuclockid): Don't compare thread_id with thread_self,
177 2000-04-16 Ulrich Drepper <drepper@redhat.com>
179 * condvar.c (pthread_cond_timedwait_relative): Don't test for owner
180 if fast mutex is used. Don't initialize `already_canceled' twice.
181 Correctly test for return value of timedsuspend.
183 * pthread.c: Correct long-time braino. We never set SA_SIGINFO and
184 therefore don't need the _rt versions of the signal handlers.
186 2000-04-15 Ulrich Drepper <drepper@redhat.com>
188 * pthread.c (pthread_yield): New function.
189 * sysdeps/pthread/pthread.h (pthread_yield): Add prototype.
190 * Versions [libpthread] (GLIBC_2.2): Add pthread_yield.
191 * internals.h: Declare __pthread_yield.
193 * pthread.c (pthread_initialize): Avoid a bit more code if
194 realtime signals are known to exist.
196 * pthread.c: Is __ASSUME_REALTIME_SIGNALS then avoid generating code
197 to dynamically detect RT signals and avoid generating compatibility
198 functions with old kernel.
199 * restart.h (restart) [__ASSUME_REALTIME_SIGNALS]: Use
200 __pthread_restart_new directly.
201 (suspend) [__ASSUME_REALTIME_SIGNALS]: Use
202 __pthread_wait_for_restart_signal directly.
203 (timedsuspend) [__ASSUME_REALTIME_SIGNALS]: Use
204 __pthread_timedsuspend_new directly.
206 2000-04-15 Ulrich Drepper <drepper@redhat.com>
208 * condvar.c: Remove all the special code to handle cond_timedwait.
209 Use timedsuspend instead.
210 * internals.h: Declare __pthread_timedsuspend_old,
211 __pthread_timedsuspend_new, and __pthread_timedsuspend.
212 Remove declaration of __pthread_init_condvar.
213 * pthread.c: Define __pthread_timedsuspend variable.
214 (__pthread_timedsuspend_old): New function. Timed suspension
215 implementation for old Linux kernels.
216 (__pthread_timedsuspend_new): New function. Timed suspension
217 implementation for new Linux kernels.
218 * restart.h (timedsuspend): New function. Call appropriate
219 suspension function through __pthread_timedsuspend.
220 * semaphore.c (sem_timedwait): Use timedsuspend, don't duplicate
222 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
224 * internals.h (WRITE_MEMORY_BARRIER): Define as MEMORY_BARRIER if
226 * spinlock.c: Use WRITE_MEMORY_BARRIER instead of MEMORY_BARRIER
228 * sysdeps/alpha/pt-machine.h: Define WRITE_MEMORY_BARRIER.
229 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
231 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _POSIX_SPAWN.
232 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
234 2000-04-14 Andreas Jaeger <aj@suse.de>
238 * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
239 2.2 for linuxthreads.
241 2000-04-13 Ulrich Drepper <drepper@redhat.com>
243 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
244 (pthread_getcpuclockid): Fix typo.
246 2000-04-12 Ulrich Drepper <drepper@redhat.com>
248 * Makefile (libpthread-routines): Add getcpuclockid.
249 * Versions [libpthread] (GLIBC_2.2): Add pthread_getcpuclockid.
250 * sysdeps/pthread/getcpuclockid.c: New file.
251 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c: New file.
252 * sysdeps/pthread/pthread.h: Add prototype for pthread_getcpuclockid.
254 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_SPIN_LOCKS):
256 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
258 * sysdeps/pthread/pthread.h: Add prototypes for pthread_spin_init,
259 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
260 and pthread_spin_unlock.
261 * sysdeps/pthread/bits/pthreadtypes.h: Change struct _pthread_fastlock
262 into pthread_spinlock_t. Change all uses.
263 * spinlock.c: Implement pthread_spin_lock.
264 Rename __pthread_unlock to __pthread_spin_unlock and define weak
266 Define pthread_spin_trylock, pthread_spin_init, and
267 pthread_spin_destroy.
268 Change all uses of _pthread_fastlock to pthread_spinlock_t.
269 * spinlock.h: Rename __pthread_unlock to __pthread_spin_unlock.
270 Change all uses of _pthread_fastlock to pthread_spinlock_t.
271 * Versions [libpthread] (GLIBC_2.2): Add pthread_spin_init,
272 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
273 and pthread_spin_unlock.
274 * cancel.c: Use __pthread_spin_unlock instead of __pthread_unlock.
275 Change all uses of _pthread_fastlock to pthread_spinlock_t.
276 * condvar.c: Likewise.
277 * internals.h: Likewise.
279 * manager.c: Likewise.
281 * pthread.c: Likewise.
282 * rwlock.c: Likewise.
283 * semaphore.c: Likewise.
284 * signals.c: Likewise.
286 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add various new POSIX
288 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
290 2000-04-11 Ulrich Drepper <drepper@redhat.com>
292 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
293 _POSIX_SHARED_MEMORY_OBJECTS.
295 2000-04-11 Andreas Jaeger <aj@suse.de>
297 * sysdeps/mips/pt-machine.h (MEMORY_BARRIER): Define.
298 (__compare_and_swap): Mark as modifying memory.
300 2000-04-11 Geoff Keating <geoffk@cygnus.com>
302 * sysdeps/powerpc/pt-machine.h (MEMORY_BARRIER): Don't be
304 (__compare_and_swap): Replace other 'sync' with MEMORY_BARRIER.
305 Don't have the 'asm' __volatile__.
307 2000-04-11 Ulrich Drepper <drepper@redhat.com>
309 * internals.h: Define MEMORY_BARRIER as empty if not defined already.
310 * spinlock.c (__pthread_lock): Add memory barriers.
311 (__pthread_unlock): Likewise.
312 * sysdeps/alpha/pt-machine.h (MEMORY_BARRIER): Define using mb
314 (RELEASE): Not needed anymore.
315 (__compare_and_swap): Mark asm as modifying memory.
316 * sysdeps/powerpc/pt-machine.h (sync): Remove. Replace with definition
318 (__compare_and_swap): Use MEMORY_BARRIER instead of sync.
319 * sysdeps/sparc/sparc32/pt-machine.h (RELEASE): Not needed anymore.
320 (MEMORY_BARRIER): Define using stbar.
321 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Define using
323 (__compare_and_swap): Use MEMORY_BARRIER to ensure ordering.
324 Patch by Xavier Leroy <Xavier.Leroy@inria.fr> based on comments by
325 Mike Burrows <m3b@pa.dec.com>.
327 2000-04-09 Ulrich Drepper <drepper@redhat.com>
329 * signals.c (sigaction): Fix return value for the case SIG is one
330 of the signals the implementation uses.
331 Patch by Xavier.Leroy@inria.fr.
333 2000-04-01 Andreas Jaeger <aj@suse.de>
335 * attr.c: Use shlib-compat macros.
336 * oldsemaphore.c: Likewise.
337 * pthread.c: Likewise.
340 2000-03-26 Ulrich Drepper <drepper@redhat.com>
342 * semaphore.c (sem_timedwait): New function.
343 Patch by Carl Mailloux <carlm@oricom.ca>.
344 * semaphore.h: Declare sem_timedwait.
345 * Versions [libpthread] (GLIBC_2.2): Add sem_timedwait.
347 2000-03-26 Roland McGrath <roland@baalperazim.frob.com>
349 * sysdeps/pthread/Makefile: File removed.
351 2000-03-23 Ulrich Drepper <drepper@redhat.com>
353 * mutex.c (__pthread_reset_pthread_once): Reset once_masterlock.
354 * internals.h (__pthread_reset_pthread_once): Add prototype.
355 * ptfork.c (__fork): Call __pthread_reset_pthread_once.
357 * manager.c (pthread_handle_create): Store ID of new thread before
360 2000-03-21 Ulrich Drepper <drepper@redhat.com>
362 * attr.c: Use new macros from shlib-compat.h to define versions.
363 * oldsemaphore.c: Likewise.
364 * semaphore.c: Likewise.
367 * pthread.c: Update for new SHLIB_COMPAT definition.
369 * manager.c (__pthread_manager): Unmask debug signal.
371 * pthread.c (pthread_initialize): Test for address of __dso_handle
372 being NULL, not value. Use __on_exit, not on_exit.
373 Patch by Andreas Jaeger <aj@suse.de>.
375 * pthread.c: Use new macros from shlib-compat.h to define versions.
377 2000-03-19 Ulrich Drepper <drepper@redhat.com>
379 * pthread.c (pthread_initialize): Instead of on_exit use
380 __cxa_atexit if __dso_label is available to allow unloading the
381 libpthread shared library.
383 2000-03-16 Ulrich Drepper <drepper@redhat.com>
385 * condvar.c: Make tests for ownership of mutex less strict.
387 2000-03-14 Ulrich Drepper <drepper@redhat.com>
389 * condvar.c (pthread_cond_wait): Check whether mutex is owned by
390 current thread and return error if not.
391 (pthread_cond_timedwait_relative_old): Likewise.
392 (pthread_cond_timedwait_relative_new): Likewise.
394 * mutex.c (__pthread_once): Handle cancelled init function correctly.
395 (pthread_once_cancelhandler): New function.
396 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
398 2000-03-14 Andreas Jaeger <aj@suse.de>
400 * pthread.c (pthread_handle_sigcancel_rt): GS has been renamed to
402 (pthread_handle_sigrestart_rt): Likewise.
403 * signals.c (pthread_sighandler_rt): Likewise.
405 2000-03-02 Andreas Jaeger <aj@suse.de>
407 * sysdeps/pthread/bits/libc-lock.h: Fix typo.
408 Reported by Sean Chen <sean.chen@turbolinux.com>.
410 2000-02-28 Andreas Jaeger <aj@suse.de>
412 * rwlock.c: Fix typo.
414 2000-02-27 Ulrich Drepper <drepper@redhat.com>
416 * rwlock.c: Define __* variants of the functions and make old names
418 * Versions [GLIBC_2.2]: Export the __pthread_rwlock_* functions.
419 * sysdeps/pthread/bits/libc-lock.h: Define __libc_rwlock_* macros.
421 2000-02-25 Andreas Jaeger <aj@suse.de>
423 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
424 pwrite64, lseek64, open64, and __open64 with version 2.2.
426 2000-02-22 Ulrich Drepper <drepper@redhat.com>
428 * semaphore.h (SEM_FAILED): Use 0 not NULL.
430 2000-02-14 Ulrich Drepper <drepper@redhat.com>
432 * condvar.c (pthread_cond_timedwait_relative_old): Tight loop with
433 nanosleep does not work either. Get absolute time inside the
435 (pthread_cond_timedwait_relative_new): Likewise.
436 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
438 2000-02-13 Andreas Jaeger <aj@suse.de>
440 * condvar.c (pthread_cond_timedwait_relative_new): Fix last patch.
441 (pthread_cond_timedwait_relative_old): Likewise.
443 2000-02-13 Ulrich Drepper <drepper@redhat.com>
445 * condvar.c (pthread_cond_timedwait_relative_old): Undo last patch
446 but keep the code around. A bug in the kernel prevent us from
448 (pthread_cond_timedwait_relative_new): Likewise.
449 (PR libc/1597 and libc/1598).
451 2000-02-01 Kaz Kylheku <kaz@ashi.footprints.net>
453 * condvar.c (pthread_cond_timedwait_relative_old): Do tight
454 loop around nanosleep calls instead of around most of the function
455 (pthread_cond_timedwait_relative_new): Likewise.
456 body. Got rid of backwards goto and one local.
458 2000-01-31 Ulrich Drepper <drepper@redhat.com>
460 * condvar.c (pthread_cond_timedwait_relative_old): Recompute time
461 before every nanosleep call to account for time spent in the rest
463 (pthread_cond_timedwait_relative_new): Likewise.
464 Patch by khendricks@ivey.uwo.ca (PR libc/1564).
466 2000-01-29 Ulrich Drepper <drepper@redhat.com>
468 * condvar.c (pthread_cond_timedwait_relative_old): Get remaining time
469 from nanosleep call so that in case we restart we only wait for the
471 (pthread_cond_timedwait_relative_new): Likewise.
472 Patch by khendricks@ivey.uwo.ca (PR libc/1561).
474 2000-01-18 Ulrich Drepper <drepper@cygnus.com>
476 * manager.c (pthread_allocate_stack): Compute guard page address
477 correctly. Patch by HJ Lu.
479 * sysdeps/pthread/pthread.h: Define
480 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP.
482 2000-01-16 Ulrich Drepper <drepper@cygnus.com>
484 * rwlock.c (pthread_rwlock_unlock): Correct one more problem with
486 (pthread_rwlockattr_setkind_np): Allow
487 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP.
488 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
490 2000-01-12 Ulrich Drepper <drepper@cygnus.com>
492 * internals.h (pthread_readlock_info): New structure.
493 (_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
494 p_untracked_readlock_count.
495 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
496 Add initializers for new fields.
497 * manager.c (pthread_free): Free read/write lock lists.
498 * queue.h (queue_is_empty): New function.
499 * rwlock.c: Implement requirements about when readers should get
501 * sysdeps/pthread/pthread.h
502 (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
503 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_rwlock_t):
504 Define this name as well.
505 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
507 2000-01-05 Ulrich Drepper <drepper@cygnus.com>
509 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
510 Adjust initializers for struct _pthread_descr_struct change.
511 * internals.h (struct _pthread_descr_struct): Move new elements to
514 2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
516 Redesigned how cancellation unblocks a thread from internal
517 cancellation points (sem_wait, pthread_join,
518 pthread_cond_{wait,timedwait}).
519 Cancellation won't eat a signal in any of these functions
520 (*required* by POSIX and Single Unix Spec!).
521 * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
522 simultaneous condition variable signal (not required by POSIX
523 or Single Unix Spec, but nice).
524 * spinlock.c: __pthread_lock queues back any received restarts
525 that don't belong to it instead of assuming ownership of lock
526 upon any restart; fastlock can no longer be acquired by two threads
528 * restart.h: Restarts queue even on kernels that don't have
529 queued real time signals (2.0, early 2.1), thanks to atomic counter,
530 avoiding a rare race condition in pthread_cond_timedwait.
532 1999-12-31 Andreas Jaeger <aj@suse.de>
534 * internals.h: Remove duplicate prototype declarations.
536 * weaks.c: Remove __THROW from prototypes since the file is not
537 compiled by a C++ compiler.
538 * internals.h: Likewise.
540 1999-12-30 Andreas Jaeger <aj@suse.de>
542 * sysdeps/pthread/pthread.h: Move internal functions to...
543 * sysdeps/pthread/bits/libc-lock.h: ...here.
545 1999-12-29 Andreas Jaeger <aj@suse.de>
547 * sysdeps/pthread/pthread.h: Fix typos, reformat comments.
549 1999-12-28 Ulrich Drepper <drepper@cygnus.com>
551 * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
554 * manager.c (__pthread_start): Add one more cast to prevent
555 warning on 64bit machines.
557 1999-12-21 Ulrich Drepper <drepper@cygnus.com>
559 * manager.c (pthread_handle_create): Set p_pid of new thread
560 before calling the callback function to report a new thread.
562 1999-12-20 Andreas Jaeger <aj@suse.de>
564 * pthread.c (pthread_initialize): Move getrlimit call after
567 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
569 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
570 pwrite64, lseek64, open64, and __open64.
571 * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
572 pwrite64, lseek64, open64, and __open64.
574 * manager.c (pthread_allocate_stack): Correct computation of
575 new_thread_bottom. Correct handling of stack size and when the
576 rlimit method to guard for stack growth is used.
577 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
578 minus one pagesize (not two).
580 1999-12-03 Andreas Jaeger <aj@suse.de>
582 * Versions: Add __res_state with version GLIBC_2.2.
584 * errno.c (__res_state): New function to return thread specific
587 * pthread.c (pthread_initialize): Initialize p_resp.
588 (__pthread_reset_main_thread): Also set p_resp.
590 * manager.c (pthread_handle_create): Initialize p_resp.
592 * internals.h: Add thread specific resolver state.
593 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
595 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
597 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
599 * sysdeps/i386/i686/pt-machine.h: Likewise.
600 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
602 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
604 * manager.c (pthread_start_thread_event): Initialize p_pid already
607 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
609 * internals.h: Add prototype for __pthread_manager_event.
610 * manager.c (__pthread_manager_event): New function.
611 (pthread_start_thread_event): Correct computation of self.
612 Use INIT_THREAD_SELF.
613 * pthread.c (__pthread_manager_thread): Initialize p_lock.
614 (__pthread_initialize_manager): Respect event flags also for creation
615 of the manager thread.
617 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
619 * pthread.c (__pthread_initialize_manager): Initialize
620 __pthread_manager_thread.p_tid.
622 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
624 * internals.h: Declare __pthread_last_event.
625 * manager.c: Define __pthread_last_event.
626 (pthread_handle_create): Set __pthread_last_event.
627 (pthread_exited): Likewise.
628 * join.c (pthread_exit): Likewise.
630 * Makefile (libpthread-routines): Add events.
631 * events.c: New file.
632 * internals.h: Protect against multiple inclusion.
633 Include thread_dbP.h header.
634 (struct _pthread_descr_struct): Add new fields p_report_events and
636 Declare event reporting functions.
637 * join.c (pthread_exit): Signal event if this is wanted.
638 * manager.c (__pthread_threads_events): New variable.
639 (pthread_handle_create): Take new parameters with event information.
640 Signal TD_CREATE event if wanted.
641 (__pthread_manager): Adjust pthread_handle_create call.
642 (pthread_start_thread_event): New function. Block until manager is
643 finished and then call pthread_start_thread.
644 (pthread_exited): Signal TD_REAP event if wanted.
646 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
648 * restart.h (suspend_with_cancellation): Rewrite as a macro.
650 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
652 1999-10-25 Andreas Jaeger <aj@suse.de>
654 * internals.h: Remove K&R compatibility.
655 * no-tsd.c: Likewise.
656 * semaphore.h: Likewise.
657 * signals.c: Likewise.
658 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
659 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
662 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
664 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
665 and pthread_handle_sigcancel with functions that restore
666 %gs from the signal context. For each signal handling function,
667 two wrappers are required, one for a non-RT signal and one for
669 * linuxthreads/signal.c: For i386, add code to restore %gs
670 from the signal context in pthread_sighandler and
671 pthread_sighandler_rt.
673 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
675 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
677 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
679 * pthread.c (__pthread_initial_thread): Pass argument to
680 PTHREAD_START_ARGS_INITIALIZER.
681 (__pthread_manager_thread): Likewise.
683 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
686 * manager.c (pthread_handle_create): Remove p_startfct initialization.
688 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
690 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
692 * internals.h: Correct return types for __libc_read and __libc_write.
694 1999-10-09 Andreas Jaeger <aj@suse.de>
696 * internals.h: Add __new_sem_post to get prototype in
697 manager.c; include semaphore.h for needed types.
699 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
701 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
702 directly instead of calling sem_post which should not be necessary
703 but is faster and might help in some case to work around problems.
704 Patch by khendricks@ivey.uwo.ca [libc/1382].
706 1999-10-08 Andreas Schwab <schwab@suse.de>
708 * sysdeps/pthread/Subdirs: New file.
711 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
714 * internals.h (struct _pthread_descr_struct): Add p_startfct.
715 * manager.c (pthread_handle_create): Initialize p_startfct.
716 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
718 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
720 * manager.c (__linuxthreads_pthread_threads_max): New variable.
721 * specific.c (__linuxthreads_pthread_keys_max): New variable.
722 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
724 * condvar.c (pthread_cond_timedwait_relative): Never return with
725 EINTR. Patch by Andreas Schwab.
727 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
729 * signals.c (sigaction): Correct last patch. Don't select
730 pthread_sighandler_rt based on the signal number but instead of
733 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
735 * specific.c: Move definitions of struct pthread_key_struct and
736 destr_function to ...
737 * internals.h: ...here.
739 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
741 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
742 this instead of pthread_handle_sigrestart if the signal is an RT
745 * signals.c: Handle passing through of sighandler arguments also
746 for real-time signals.
748 1999-09-03 Andreas Schwab <schwab@suse.de>
750 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
752 (__vfork): New function, alias vfork.
753 * Versions: Export __fork, vfork, and __vfork in libpthread.
755 1999-08-23 Andreas Schwab <schwab@suse.de>
757 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
758 call to signal handler.
760 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
762 * pthread.c (__pthread_reset_main_thread): Undo last change.
763 (__pthread_kill_other_threads_np): Reset signal handlers for the
764 signals we used in the thread implementation here.
766 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
768 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
769 for the signals we used in the thread implementation [PR libc/1234].
771 * Versions: Export __pthread_kill_other_threads_np from libpthread
774 * signals.c: Pass sigcontext through wrapper to the user function.
776 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
778 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
779 __libc_internal_tsd_set.
781 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
783 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
786 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
788 * internals.h: Align _pthread_descr_struct to 32 bytes.
789 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
792 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
794 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
797 1999-07-09 Cristian Gafton <gafton@redhat.com>
799 * Makefile (libpthread-routines): Add oldsemaphore routine.
800 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
801 sem_trywait, and sem_wait to GLIBC_2.1.
802 * oldsemaphore.c: New file.
803 * semaphore.c: Add default_symbol_versions for the changed functions.
804 (__new_sem_init): Rename from sem_init.
805 (__new_sem_post): Rename from sem_post.
806 (__new_sem_wait): Rename from sem_wait.
807 (__new_sem_trywait): Rename from sem_trywait.
808 (__new_sem_getvalue): Rename from sem_getvalue.
809 (__new_sem_destroy): Rename from sem_destroy.
811 1999-06-23 Robey Pointer <robey@netscape.com>
813 * internals.h: Added p_nextlock entry to separate queueing for a
814 lock from queueing for a CV (sometimes a thread queues on a lock
815 to serialize removing itself from a CV queue).
816 * pthread.c: Added p_nextlock to initializers.
817 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
819 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
821 * manager.c (pthread_handle_create): Free mmap region after stack
822 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
824 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
826 * man/pthread_cond_init.man: Correct example.
827 Reported by Tomas Berndtsson <tomas@nocrew.org>.
829 * linuxthreads.texi (Condition Variables): Likewise.
831 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
833 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
834 casx not cas, also successful casx returns the old value in rd
835 and not the new value.
837 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
839 * manager.c: If pthread_create() is given a NULL attribute
840 and the thread manager runs with a realtime policy, set the
841 scheduling policy of the newly created thread back to SCHED_OTHER.
842 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
843 initialize the schedpolicy field of new_thread->p_start_args
844 to that of the calling thread.
846 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
848 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
849 instruction does not allow memory element to use offset.
851 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
853 * manager.c (pthread_allocate_stack): Optimize initialization of new
856 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
857 Don't use initializer since it is all zeroes.
858 (__libc_once_define): Likewise.
860 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
862 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
863 doesn't exist anymore.
864 * sysdeps/i386/Implies: Likewise.
865 * sysdeps/m68k/Implies: Likewise.
866 * sysdeps/mips/Implies: Likewise.
867 * sysdeps/powerpc/Implies: Likewise.
868 * sysdeps/sparc/sparc32/Implies: Likewise.
869 * sysdeps/sparc/sparc64/Implies: Likewise.
871 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
873 * sysdeps/alpha/bits/semaphore.h: Removed.
874 * sysdeps/powerpc/bits/semaphore.h: Removed.
875 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
876 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
877 * Makefile (headers): Remove bits/semaphore.h.
879 * semaphore.h: Define _pthread_descr if necessary.
880 Don't include limits.h. Define SEM_VALUE_MAX directly.
882 (sem_t): Protect element names with leading __.
883 Add declarations for sem_close, sem_open, and sem_unlink.
884 * semaphore.c: Adjust all functions for new element names.
885 Define sem_close, sem_open, and sem_unlink.
886 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
888 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
891 1999-03-16 H.J. Lu <hjl@gnu.org>
893 * specific.c (pthread_key_delete): Check th->p_terminated to see
894 if the thread is running.
896 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
897 Added to GLIBC_2.0 for libc.so.
899 1999-02-12 H.J. Lu <hjl@gnu.org>
901 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
902 __libc_allocate_rtsig): Added to GLIBC_2.1.
904 * internals.h (DEFAULT_SIG_RESTART): Removed.
905 (DEFAULT_SIG_CANCEL): Removed.
907 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
908 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
909 (__pthread_sig_restart, __pthread_sig_cancel,
910 __pthread_sig_debug): Initialized.
911 (pthread_initialize): Call init_rtsigs () to initialize
914 1999-02-03 H.J. Lu <hjl@gnu.org>
916 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
917 Don't restart the thread which sent REQ_DEBUG.
918 (pthread_start_thread): Check if __pthread_sig_debug > 0
921 * pthread.c (__pthread_initialize_manager): Suspend ourself
922 after sending __pthread_sig_debug to gdb instead of
923 __pthread_sig_cancel.
925 1999-01-24 H.J. Lu <hjl@gnu.org>
927 * manager.c (__pthread_manager): Delete __pthread_sig_debug
928 from mask if __pthread_sig_debug > 0.
929 (pthread_handle_create): Increment __pthread_handles_num.
931 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
932 * pthread.c (__pthread_initialize_manager): Likewise.
934 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
935 instead of __libc_allocate_rtsig (2).
936 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
937 instead of __pthread_sig_cancel.
938 (pthread_handle_sigdebug): Fix comments.
940 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
942 * manager.c (pthread_allocate_stack): Set
943 __pthread_nonstandard_stacks if user-specified stack is used.
945 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
947 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
948 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
950 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
952 * pthread.c: Use a third signal __pthread_sig_debug distinct
953 from __pthread_sig_cancel to notify gdb when a thread is
955 * manager.c: Likewise.
956 * internals.h: Likewise.
957 * signals.c: The implementation of sigwait(s) assumed that
958 all signals in s have signal handlers already attached.
959 This is not required by the standard, so make it work
960 also if some of the signals have no handlers.
962 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
964 * linuxthreads.texi: Remove pointers from first @node. Move old
965 @node spec inside comment.
967 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
969 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
972 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
974 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
975 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
977 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
979 * manager.c: Threads now send __pthread_sig_cancel on termination.
980 Change clone call and signal masks.
981 * thread.c (pthread_handle_sigrestart): Remove special code for
983 (pthread_handle_sigcancel): In manager thread call
984 __pthread_manager_sighandler.
985 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
986 * sysdeps/i386/i686/pt-machine.h: Likewise.
987 Patches by Xavier Leroy.
989 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
991 * spinlock.c (__pthread_unlock): Don't crash if called for an
992 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
994 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
997 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
999 * Examples/ex3.c: Wait until all threads are started before
1000 searching for the number to avoid race condition on very fast
1003 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1005 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
1006 declaration since it's not needed.
1008 * sysdeps/pthread/pthread.h: Move internal functions to ...
1009 * internals.h: ...here.
1011 1998-12-02 H.J. Lu <hjl@gnu.org>
1013 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
1014 SIGRTMIN is defined.
1015 (__pthread_sig_cancel): Likewise.
1017 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1019 * wrapsyscall.c: Include <sys/mman.h> for msync,
1020 <stdlib.h> for system and <termios.h> for tcdrain prototype.
1021 Correct msync declaration.
1023 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
1025 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
1026 __libc_tsd_set): New macros for new interface.
1027 * no-tsd.c: New file, provide uninitialized defns of
1028 __libc_internal_tsd_get and __libc_internal_tsd_set.
1029 * Makefile (routines): Add no-tsd.
1031 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
1033 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
1034 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
1035 __libc_internal_tsd_set): Move decls to ...
1036 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
1039 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
1040 __libc_internal_tsd_set): Make these pointers to functions, not
1041 functions; remove #pragma weak decls for them.
1042 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
1043 Define static functions and initialized pointers to them.
1045 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
1047 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
1048 (CFLAGS-specific.c): Likewise.
1049 (CFLAGS-pthread.c): Likewise.
1050 (CFLAGS-ptfork.c): Likewise.
1051 (CFLAGS-cancel.c): Likewise.
1052 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
1053 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
1055 * mutex.c (pthread_mutex_init): Define as strong symbol.
1056 (pthread_mutex_destroy): Likewise.
1057 (pthread_mutex_trylock): Likewise.
1058 (pthread_mutex_lock): Likewise.
1059 (pthread_mutex_unlock): Likewise.
1060 (pthread_mutexattr_init): Likewise.
1061 (pthread_mutexattr_destroy): Likewise.
1062 (pthread_once): Likewise.
1063 * ptfork.c (pthread_atfork): Likewise.
1064 * specific.c (pthread_key_create): Likewise.
1065 (pthread_setspecific): Likewise.
1066 (pthread_getspecific): Likewise.
1068 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1070 * linuxthreads.texi: Fix punctuation after xref.
1072 1998-11-10 H.J. Lu <hjl@gnu.org>
1074 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
1075 if it is defined in <linux/limits.h>.
1077 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
1079 * spinlock.h (__pthread_trylock): Define inline.
1080 (__pthread_lock): Add extra parameter to declaration. Declare
1081 using internal_function.
1082 (__pthread_unlock): Declare using internal_function.
1083 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
1084 of local variable self. Avoid recomputing self. Define using
1086 (__pthread_trylock): Remove.
1087 (__pthread_unlock): Define using internal_function.
1088 * cancel.c: Adjust for __pthread_lock interface change. Use already
1089 computed self value is possible.
1090 * condvar.c: Likewise.
1092 * manager.c: Likewise.
1093 * mutex.c: Likewise.
1094 * pthread.c: Likewise.
1095 * rwlock.c: Likewise.
1096 * semaphore.c: Likewise.
1097 * signals.c: Likewise.
1099 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
1101 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
1102 __ to field names of the struct.
1103 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
1105 (pthread_attr_t): Likewise.
1106 (pthread_cond_t): Likewise.
1107 (pthread_condattr_t): Likewise.
1108 (pthread_mutex_t): Likewise.
1109 (pthread_mutexattr_t): Likewise.
1110 (pthread_rwlock_t): Likewise.
1111 (pthread_rwlockattr_t): Likewise.
1112 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
1113 * cancel.c: Likewise.
1114 * condvar.c: Likewise.
1115 * manager.c: Likewise.
1116 * mutex.c: Likewise.
1117 * pthread.c: Likewise.
1118 * ptlongjmp.c: Likewise.
1119 * rwlock.c: Likewise.
1120 * spinlock.c: Likewise.
1122 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
1124 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
1127 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
1130 * Makefile (libpthread-routines): Add pt-machine.
1131 * pt-machine.c: New file.
1132 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
1133 yet defined. Use PT_EI in extern inline definitions.
1134 * sysdeps/arm/pt-machine.h: Likewise.
1135 * sysdeps/i386/pt-machine.h: Likewise.
1136 * sysdeps/i386/i686/pt-machine.h: Likewise.
1137 * sysdeps/m68k/pt-machine.h: Likewise.
1138 * sysdeps/mips/pt-machine.h: Likewise.
1139 * sysdeps/powerpc/pt-machine.h: Likewise.
1140 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
1141 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1143 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1145 * semaphore.h: Include <sys/types.h> so that _pthread_descr
1148 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
1150 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
1152 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
1154 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1156 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
1157 multiple inclusion guard.
1159 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1161 * signals.c (sigaction): Check that sig is less than NSIG to avoid
1162 array index overflow.
1164 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
1166 * sysdeps/pthread/semaphore.h: New file.
1168 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
1170 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
1171 _LIBC_TSD_KEY_DL_ERROR.
1173 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
1175 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
1176 * sysdeps/i386/pt-machine.h: Likewise.
1177 Suggested by Roland McGrath.
1179 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
1181 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
1182 access thread data with non-constant offsets.
1183 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
1186 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
1187 THREAD_SETMEM_NC definitions.
1189 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
1191 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1193 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
1195 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
1196 not already defined.
1197 (struct _pthread_descr_struct): Add p_self and p_nr field.
1198 * manager.c (__pthread_handles): Define second element to point
1200 (__pthread_handles_num): Initialize to 2.
1201 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
1202 (pthread_start_thread): Likewise.
1203 (pthread_handle_create): Start search for free slot at entry 2.
1204 Initialize new fields p_self and p_nr.
1205 Call __clone with CLONE_PTRACE if available.
1206 (pthread_free): Call FREE_THREAD_SELF if available.
1207 * pthread.c (__pthread_initial_thread): Initialize new fields.
1208 (__pthread_manager_thread): Likewise.
1209 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
1211 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
1212 elements of the thread descriptor.
1213 * condvar.c: Likewise.
1214 * errno.c: Likewise.
1216 * manager.c: Likewise.
1217 * pthread.c: Likewise.
1218 * ptlongjmp.c: Likewise.
1219 * semaphore.c: Likewise.
1220 * signals.c: Likewise.
1221 * specific.c: Likewise.
1222 * spinlock.c: Likewise.
1224 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
1226 * sysdeps/i386/useldt.h: New file.
1227 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
1229 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
1230 THREAD_SETMEM using __thread_self.
1231 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1233 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
1235 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
1236 turned out that we didn't need to queue after all.
1238 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
1240 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
1241 and wastes space; correct types.
1243 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
1245 * signals.c (sigaction): Handle NULL argument.
1247 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
1249 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
1252 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1254 * Makefile (linuxthreads-version): Extract correct number from
1257 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
1259 * Banner: Bump version number to 0.8
1260 * FAQ.html: Many updates, in particular w.r.t. debugging.
1261 * manager.c: Support for non-default stacksize for
1262 LinuxThreads-allocated stacks;
1263 don't use guard pages for stacks with default size, rely on
1264 rlimit(RLIMIT_STACK) instead (it's cheaper).
1266 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
1267 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
1268 * condvar.c: Likewise.
1269 * internals.h: Likewise.
1270 * restart.h: Likewise.
1271 * signals.c: Likewise.
1272 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
1274 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1276 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
1277 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
1278 * Versions: Put __pthread_mutexattr_settype under version
1279 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
1280 __pthread_mutexattr_gettype.
1282 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1284 * sysdeps/pthread/bits/libc-lock.h: Make
1285 __pthread_mutexattr_settype weak. Don't make
1286 __pthread_mutexattr_setkind_np weak.
1288 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
1290 * manager.c (pthread_handle_create): Check whether sched_setscheduler
1291 call can succeed here.
1293 * mutex.c: Define __pthread_mutexattr_settype and make
1294 __pthread_mutexattr_setkind_np an alias.
1295 Likewise for __pthread_mutexattr_gettype.
1297 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1299 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
1302 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
1304 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
1306 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1308 * Examples/ex6.c: Include <unistd.h> for usleep.
1310 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1312 * Examples/ex4.c (main): Use exit, not pthread_exit.
1314 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
1316 * Versions: Add __pthread_mutexattr_gettype and
1317 __pthread_mutexattr_settype.
1318 * lockfile.c: Use __pthread_mutexattr_settype instead of
1319 __pthread_mutexattr_setkind_np.
1320 * mutex.c: Define __pthread_mutexattr_gettype and
1321 __pthread_mutexattr_settype.
1323 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
1324 __pthread_mutexattr_settype.
1325 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
1326 Use __pthread_mutexattr_settype.
1328 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
1330 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
1331 * mutex.c: Define weak alias pthread_mutexattr_gettype and
1332 pthread_mutexattr_settype.
1333 * sysdeps/pthread/pthread.h: Declare these functions.
1334 Move pthread_sigmask and pthread_kill declaration in separate header.
1335 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
1337 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
1339 * Makefile: Add rules to compile and run tests.
1340 * Examples/ex1.c: Little changes to fix warnings.
1341 * Examples/ex2.c: Likewise.
1342 * Examples/ex3.c: Likewise.
1343 * Examples/ex4.c: Likewise.
1344 * Examples/ex5.c: Likewise.
1345 * Examples/ex6.c: New file.
1347 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
1349 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
1351 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1353 * attr.c: Include <string.h>.
1355 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
1357 * attr.c: Include errno.h. Use memcpy to copy sched_param.
1358 * internals.h: Include limits.h.
1359 * manager.c: Use memcpy to copy sched_param.
1360 * ptfork.c: Include errno.h.
1361 * pthread.c: Likewise.
1362 * semaphore.c: Likewise.
1363 * specific.c: Likewise.
1364 * spinlock.h: Likewise.
1365 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
1366 type definition to ...
1367 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
1369 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
1371 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
1373 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
1374 as macros as demanded in POSIX.1, Annex C.
1376 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
1378 * internals.h (struct pthread_request): For free use pthread_t
1379 instead of pthread_descr.
1380 * join.c (pthread_join): Pass thread_id, not th to manager.
1381 (pthread_detach): Likewise.
1382 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
1383 (pthread_exited): Remove detached queue code.
1384 (pthread_handle_free): Expect thread ID parameter and use it to
1385 validate the thread decsriptor. Don't use detached queue.
1386 Patches by Xavier Leroy.
1388 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1390 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
1391 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
1392 __pthread_atfork, __pthread_key_create, __pthread_once.
1393 * internals.h: Doc fix.
1394 * pthread.c (__pthread_initialize): Define again.
1396 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
1398 * manager.c (pthread_exited): If thread is not detached put it on
1400 (pthread_handle_free): If thread is not on list with living threads
1401 search on list with detached threads.
1403 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
1404 for new definition of pthread_rwlock_t.
1406 * spinlock.c: Correct test whether to compile
1407 __pthread_compare_and_swap or not.
1409 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
1411 * attr.c: Finish user stack support. Change locking code to be safe
1412 in situations with different priorities.
1413 * cancel.c: Likewise.
1414 * condvar.c: Likewise.
1415 * internals.h: Likewise.
1417 * manager.c: Likewise.
1418 * mutex.c: Likewise.
1419 * pthread.c: Likewise.
1420 * ptlongjmp.c: Likewise.
1421 * queue.h: Likewise.
1422 * rwlock.c: Likewise.
1423 * semaphore.c: Likewise.
1424 * semaphore.h: Likewise.
1425 * signals.c: Likewise.
1426 * spinlock.c: Likewise.
1427 * spinlock.h: Likewise.
1428 * sysdeps/pthread/pthread.h: Likewise.
1429 Patches by Xavier Leroy.
1431 * sysdeps/i386/i686/pt-machine.h: New file.
1433 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
1435 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
1436 [sg]et_stackaddr prototypes always available.
1438 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1439 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
1441 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
1443 * manager.c (pthread_free): Undo patch from 980430.
1444 Reported by David Wragg <dpw@doc.ic.ac.uk>.
1446 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
1448 * manager.c: Define __pthread_manager_adjust_prio and use it to
1449 increase priority when needed.
1450 * internals.h: Add prototype for __pthread_manager_adjust_prio.
1451 * mutex.c: Optimize mutexes to wake up only one thread.
1452 * pthread.c: Move PID of manager for global variable in structure
1454 Patches by Xavier Leroy.
1456 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
1458 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
1460 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1462 * attr.c: Correct typo.
1464 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
1466 * manager.c (pthread_free): Unmap guard before the stack.
1467 Patch by Matthias Urlichs.
1469 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
1471 * manager.c (pthread_free): Detect already free child.
1472 Patch by Xavier Leroy, reported by Matthias Urlichs.
1474 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1476 * Makefile (linuxthreads-version): Renamed back from
1479 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
1481 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
1484 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
1486 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
1487 * internals.h: Add definitions for new spinlock implementation.
1488 * ptlongjmp.c: New file.
1489 * spinlock.c: New file.
1490 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
1491 new function __pthread_acquire to prevent deadlocks with thread
1492 with different priorities.
1493 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
1495 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1497 * manager.c (__pthread_manager): Reduce first argument to select
1498 to include just the needed file descriptor.
1500 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
1502 * manager.c: Fix last patch which caused core dumps.
1504 * pthread.c: Correctly handle missing SIGRTMIN.
1506 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1508 * libpthread.map: Add __libc_internal_tsd_get and
1509 __libc_internal_tsd_set. Add missing cancelable functions. Export
1510 libc internal versions of the cancelable functions.
1512 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
1514 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
1516 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
1518 * attr.c: Implement pthread_attr_[gs]etguardsize,
1519 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
1520 Change pthread_attr_init to have two interfaces.
1521 * internals.h (struct _pthread_descr_struct): Add new fields for
1523 * libpthread.map: Add names in GLIBC_2.1 section.
1524 * manager.c (pthread_handle_create): Implement guardsize and
1526 (pthread_free): Likewise.
1527 * pthread.c (pthread_create): Add new interface for changed
1529 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
1530 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
1533 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
1535 * manager.c: Enable resetting of the thread scheduling policy
1536 to SCHED_OTHER when the parent thread has a different one.
1538 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
1540 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1541 _POSIX_ASYNCHRONOUS_IO.
1543 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
1545 * mutex.c: Implement new mutex types.
1547 * internals.h: Include <signal.h>.
1549 * libpthread.map: Add __erno_location and __h_errno_location.
1551 * errno.c: Return pointer to variable actually in use. This might
1552 not be the one in the thread structure.
1553 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
1555 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
1556 of manager thread structure.
1557 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
1559 * pthread.c: Adapt initializer for thread structures.
1560 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
1561 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
1562 current thread to global variables.
1564 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
1566 * rwlock.c: New file.
1567 * Makefile (libpthread-routines): Add rwlock.
1568 * sysdeps/pthread/pthread.h: Define data structures and declare
1570 * libpthread.map: Add new functions.
1572 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1574 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1575 * sysdeps/arm/Implies: likewise.
1576 * README: Document it.
1578 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1580 * signals.c: Remove unneeded initializer for sigwaited, saving a
1583 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1585 * semaphore.c (sem_init): Set sem_spinlock only if available.
1587 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1589 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1590 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1592 * Makefile: Update from LinuxThreads 0.7.
1593 * internals.h. Likewise.
1594 * manager.c: Likewise.
1595 * mutex.c: Likewise.
1596 * pthread.c: Likewise.
1597 * signals.c: Likewise.
1598 * specific.c: Likewise.
1599 * Examples/ex3.c: Likewise.
1601 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1603 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1606 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1608 * wrapsyscall.c: Add socket functions which are also cancelation
1611 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1613 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1614 New functions for fast thread specific data within libc.
1616 * internals.h: Add new array p_libc_specific to struct
1617 _pthread_descr_struct.
1619 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1621 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1623 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1624 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1626 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1628 * internals.h (struct _pthread_descr_struct): Add definitions for
1629 two-level specific key handling.
1630 * manager.c (pthread_handle_create): Initialize specific memory array.
1631 * specific.c: Implement two-level key handling.
1632 * weaks.c: Don't provide dummy key handling.
1633 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1634 Add definition of __libc_key_t.
1635 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1637 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1638 PTHREAD_DESTRUCTOR_ITERATIONS.
1640 * manager.c (pthread_handle_create): Compare mmap result with
1643 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1644 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1646 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1648 sysdeps/sparc -> sysdeps/sparc/sparc32
1649 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1651 * internals.h: Change definition of THREAD_SELF to be an expression,
1652 not a statement that did a return.
1653 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1654 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1655 Follow Solaris and use a "system reserved" register (%g6) to hold
1656 the thread descriptor.
1657 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1659 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1661 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1662 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1663 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1665 * semaphore.c: Include spinlock.h only when needed.
1667 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1668 keys for entries not in use.
1670 * weaks.c: Implement key handling functions for real.
1672 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1674 Initial sparc64-linux support:
1675 * linuxthreads/sysdeps/sparc64/Implies: New file.
1676 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1678 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1680 * semaphore.c: Include spinlock.h at correct place.
1683 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1685 The Great Bit File Move:
1686 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1687 * sysdeps/powerpc/semaphorebits.h: Likewise.
1688 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1689 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1690 * sysdeps/pthread/libc-lock.h: -> bits/
1691 * sysdeps/pthread/stdio-lock.h: Likewise.
1692 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1693 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1694 * semaphore.h: Likewise.
1695 * sysdeps/pthread/pthread.h: Likewise.
1697 * lockfile.c: <foo.h> -> <bits/foo.h>.
1698 * semaphore.h: Likewise.
1700 * Makefile: (headers): foo.h -> bits/foo.h.
1701 * sysdeps/pthread/Makefile: Likewise.
1703 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1705 * semaphore.c (sem_init): Set sem_spinlock only if available.
1707 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1710 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1712 Update from LinuxThreads 0.6.
1714 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1715 and __sched_get_priority_min instead of names without `__'.
1717 * manager.c: Rewrite large parts to implement opaque pthread_t.
1719 * cancel.c: Adapt for opaque pthread_t type.
1720 * condvar.c: Likewise.
1721 * errno.c: Likewise.
1723 * mutex.c: Likewise.
1724 * pthread.c: Likewise.
1725 * signals.c: Likewise.
1726 * specific.c: Likewise.
1727 * restart.h: Likewise.
1728 * queue.h: Likewise.
1729 * Examples/ex3.c: Likewise.
1730 * Examples/ex4.c: Likewise.
1731 * sysdeps/pthread/pthread.h: Likewise.
1733 * pthread.c: Accumulate time for all threads in thread manager.
1735 * semaphore.c: Implement fallback implementation for architectures
1736 sometimes missing compare-exchange operations.
1738 * cancel.c (pthread_cancel): Validate handle argument.
1739 * join.c (pthread_join): Likewise.
1740 (pthread_detach): Likewise.
1741 * signals.c (pthread_kill): Likewise.
1743 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1745 * queue.h (enqueue): Enqueue thread according to priority.
1747 * internals.c (struct pthread_start_args): New struct for passing
1748 args to cloning function.
1749 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1752 * Examples/Makefile (clean): Pass -f option to rm.
1754 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1755 and define TEST_FOR_COMPARE_AND_SWAP.
1756 * sysdeps/i386/i486/pt-machine.h: Removed.
1758 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1761 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1763 * restart.h (suspend): Clear p_signal before suspending.
1764 (suspend_with_cancellation): Likewise.
1765 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1767 * weaks.c: Make __pthread_key_create return 1.
1768 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1769 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1770 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1773 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1775 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1777 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1779 * sysdeps/powerpc/Implies: Added.
1780 * sysdeps/powerpc/pt-machine.h: Added.
1781 * sysdeps/powerpc/semaphorebits.h: Added.
1783 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1785 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1787 (__pthread_manager_thread): Likewise.
1788 Reported by Andreas Jaeger.
1790 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1792 Since sigset_t no longer fits in a register, we can't pass in the
1793 thread's initial mask so easily. Take this opportunity to simplify
1794 the clone implementation by only accepting a single void* argument.
1796 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1797 in the thread struct instead of as arguments through clone.
1798 (pthread_start_thread): Look for them there.
1799 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1800 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1801 * linuxthreads/pthread.c (pthread_initialize_manager): Revise