1 2000-06-04 Jakub Jelinek <jakub@redhat.com>
3 * sysdeps/sparc/sparc32/sparcv9/pspinlock.c (__pthread_spin_lock):
5 * sysdeps/sparc/sparc64/pspinlock.c (__pthread_spin_lock): Likewise.
7 2000-06-02 Jakub Jelinek <jakub@redhat.com>
9 * sysdeps/sparc/sparc32/pspinlock.c: Implement spinlocks.
10 * sysdeps/sparc/sparc32/sparcv9/pspinlock.c: New.
11 * sysdeps/sparc/sparc64/pspinlock.c: Implement spinlocks.
13 2000-05-31 Andreas Jaeger <aj@suse.de>
15 * sysdeps/mips/pspinlock.c: Implement spinlocks.
17 2000-05-28 Ulrich Drepper <drepper@redhat.com>
19 * spinlock.c (__pthread_lock): Remove ASSERT.
21 * Makefile (tests): Add ex8.
22 * Examples/ex8.c: New file.
24 2000-05-12 Kaz Kylheku <kaz@ashi.footprints.net>
26 Bugfix: The pthread_atfork mechanism now takes care of its
27 own internal mutex at fork time.
29 * ptfork.c (__fork): Revised so that the mutex is held across
30 the fork operation and while the handlers are called, and so that
31 the child resets the mutex.
33 * linuxthreads.texi: Updated pthread_atfork documentation to make
34 it clear that fork and pthread_atfork can't be reentered from
35 atfork handlers, that pthread_atfork and fork are mutually atomic,
36 and that the handlers are inherited by the child process.
38 2000-05-24 Ulrich Drepper <drepper@redhat.com>
40 * Makefile (libpthread-routines): Add pspinlock.
41 * cancel.c: Rename __pthread_spin_unlock back to __pthread_unlock.
42 Use struct _pthread_fastlock instead of pthread_spinlock_t.
43 * condvar.c: Likewise.
44 * internals.h: Likewise.
46 * manager.c: Likewise.
48 * pthread.c: Likewise.
50 * semaphore.c: Likewise.
51 * signals.c: Likewise.
52 * spinlock.h: Likewise.
53 * spinlock.c: Likewise. Remove pthread_spin_lock functions.
54 * sysdeps/alpha/pspinlock.c: New file.
55 * sysdeps/arm/pspinlock.c: New file.
56 * sysdeps/i386/pspinlock.c: New file.
57 * sysdeps/m68k/pspinlock.c: New file.
58 * sysdeps/mips/pspinlock.c: New file.
59 * sysdeps/powerpc/pspinlock.c: New file.
60 * sysdeps/sparc/sparc32/pspinlock.c: New file.
61 * sysdeps/sparc/sparc64/pspinlock.c: New file.
62 * sysdeps/pthread/bits/pthreadtypes.h: Remove pthread_spinlock_t
63 back to _pthread_fastlock. Define new pthread_spinlock_t.
65 2000-05-24 Andreas Jaeger <aj@suse.de>
67 * sysdeps/i386/i686/pt-machine.h: Only use LDT on newer kernels.
69 2000-05-21 Jakub Jelinek <jakub@redhat.com>
71 * manager.c (pthread_handle_create): Initialize p_res._sock to -1.
73 2000-05-13 Jakub Jelinek <jakub@redhat.com>
75 * internals.h (__RES_PTHREAD_INTERNAL): Define.
77 2000-05-06 Kaz Kylheku <kaz@ashi.footprints.net>
79 * mutex.c (pthread_once): IN_PROGRESS state of pthread_once_t
80 object state is represented with additional bits which distinguish
81 whether that state was set up in the current process, or
82 in an ancestor process. If that state was set in an ancestor,
83 it means that a fork happened while thread was executing the init
84 function. In that case, the state is reset to NEVER.
85 * mutex.c (__pthread_once_fork_prepare): New function.
86 (__pthread_once_fork_child): Likewise
87 (__pthread_once_fork_parent): Likewise
88 (__pthread_reset_pthread_once): Removed.
89 * ptfork.c (__fork): Call new handlers in mutex.c.
90 * internals.h: Declarations of new mutex.c functions added.
91 Declaration of removed function deleted.
92 * linuxthreads.texi: Updated documentation about pthread_once
93 to clarify what happens under cancellation and forking.
95 2000-05-06 Kaz Kylheku <kaz@ashi.footprints.net>
97 * internals.h: New thread manager request type, REQ_KICK.
98 * join.c (pthread_exit): main thread now calls exit() instead
99 of _exit() in order to proper process cleanup.
100 * manager.c (__pthread_manager): Do not terminate manager
101 after unblocking main thread; wait for main thread's
102 REQ_PROCESS_EXIT request instead.
103 Also, added REQ_KICK case to handle new request; this just does
105 * manager.c (pthread_exited): Do not terminate manager after
106 unblocking main thread.
107 * manager.c (__pthread_manager_sighandler): If the main thread
108 is waiting for all other threads to die, send a REQ_KICK into
109 the thread manager request pipe to get it to clean out the threads
110 and unblock the main thread as soon as possible. This fixes
111 the 2000 millisecond hang on shutdown bug.
112 * Examples/ex7.c: New file, tests shutdown behavior when all threads
113 including the main one call pthread_exit(), or implicitly do so.
114 * Makefile (tests): Add ex7.
116 2000-05-05 Andreas Jaeger <aj@suse.de>
118 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
119 (pthread_getcpuclockid): Correct test for ourselves.
121 2000-05-05 Ulrich Drepper <drepper@redhat.com>
123 * internals.h (struct _pthread_descr_struct): Reorganization.
124 Allocate room for 16 pointers at head of the structure for future
125 thread-local data handling. Move p_self member in this area.
126 * manager.c (pthread_handle_create): Adjust use of p_self.
127 * sysdeps/i386/useldt.h (THREAD_SELF): Likewise.
128 * pthread.c (__pthread_initial_thread): Adjust initialization.
129 (__pthread_manager_thread): Likewise.
131 2000-04-29 Bruno Haible <haible@clisp.cons.org>
133 * join.c (pthread_exit): Use THREAD_GETMEM_NC instead of THREAD_GETMEM
134 for eventmask larger than 1 word.
136 2000-04-27 Ulrich Drepper <drepper@redhat.com>
138 * Versions [libpthread] (GLIBC_2.2): Add __pthread_initialize_minimal.
139 * pthread.c (__pthread_initialize_minimal): New function. Perform
140 minimal initialization.
141 (pthread_initialize): Remove this code here.
142 * sysdeps/i386/i686/pt-machine.h: Include "../useldt.h" again. We
143 are working around the problem in glibc.
145 2000-04-25 Ulrich Drepper <drepper@redhat.com>
147 * sysdeps/i386/i686/pt-machine.h: Do not use "../useldt.h" for
148 now. First gcc must be fixed (more concrete: libgcc).
150 2000-04-24 Ulrich Drepper <drepper@redhat.com>
152 * pthread.c: Remove special treatement for interrupt handlers on x86.
153 * manager.c (pthread_free): Use FREE_THREAD not FREE_THREAD_SELF.
154 * sysdeps/i386/useldt.h: Use "q" constraint instead of "r" where
156 * sysdeps/i386/i686/pt-machine.h: Include "../useldt.h".
158 2000-04-24 Mark Kettenis <kettenis@gnu.org>
160 * join.c (pthread_exit): Set p_terminated after reporting the
161 termination event instead of before.
163 2000-04-20 Jakub Jelinek <jakub@redhat.com>
165 * sysdeps/pthread/bits/libc-lock.h: Only declare __pthread_rwlock_*
168 2000-04-18 Andreas Jaeger <aj@suse.de>
170 * Versions: Use ld instead of ld.so.
172 2000-04-18 Jakub Jelinek <jakub@redhat.com>
174 * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h (struct sigcontext):
175 Remove the typedef keyword.
177 2000-04-18 Jakub Jelinek <jakub@redhat.com>
179 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Use membar,
181 (READ_MEMORY_BARRIER): Define.
182 * spinlock.c (__pthread_spin_unlock): Use READ_MEMORY_BARRIER, not
184 * internals.h (READ_MEMORY_BARRIER): Define if not defined in sysdep
187 2000-04-17 Ulrich Drepper <drepper@redhat.com>
189 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
190 (pthread_getcpuclockid): Don't compare thread_id with thread_self,
193 2000-04-16 Ulrich Drepper <drepper@redhat.com>
195 * condvar.c (pthread_cond_timedwait_relative): Don't test for owner
196 if fast mutex is used. Don't initialize `already_canceled' twice.
197 Correctly test for return value of timedsuspend.
199 * pthread.c: Correct long-time braino. We never set SA_SIGINFO and
200 therefore don't need the _rt versions of the signal handlers.
202 2000-04-15 Ulrich Drepper <drepper@redhat.com>
204 * pthread.c (pthread_yield): New function.
205 * sysdeps/pthread/pthread.h (pthread_yield): Add prototype.
206 * Versions [libpthread] (GLIBC_2.2): Add pthread_yield.
207 * internals.h: Declare __pthread_yield.
209 * pthread.c (pthread_initialize): Avoid a bit more code if
210 realtime signals are known to exist.
212 * pthread.c: Is __ASSUME_REALTIME_SIGNALS then avoid generating code
213 to dynamically detect RT signals and avoid generating compatibility
214 functions with old kernel.
215 * restart.h (restart) [__ASSUME_REALTIME_SIGNALS]: Use
216 __pthread_restart_new directly.
217 (suspend) [__ASSUME_REALTIME_SIGNALS]: Use
218 __pthread_wait_for_restart_signal directly.
219 (timedsuspend) [__ASSUME_REALTIME_SIGNALS]: Use
220 __pthread_timedsuspend_new directly.
222 2000-04-15 Ulrich Drepper <drepper@redhat.com>
224 * condvar.c: Remove all the special code to handle cond_timedwait.
225 Use timedsuspend instead.
226 * internals.h: Declare __pthread_timedsuspend_old,
227 __pthread_timedsuspend_new, and __pthread_timedsuspend.
228 Remove declaration of __pthread_init_condvar.
229 * pthread.c: Define __pthread_timedsuspend variable.
230 (__pthread_timedsuspend_old): New function. Timed suspension
231 implementation for old Linux kernels.
232 (__pthread_timedsuspend_new): New function. Timed suspension
233 implementation for new Linux kernels.
234 * restart.h (timedsuspend): New function. Call appropriate
235 suspension function through __pthread_timedsuspend.
236 * semaphore.c (sem_timedwait): Use timedsuspend, don't duplicate
238 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
240 * internals.h (WRITE_MEMORY_BARRIER): Define as MEMORY_BARRIER if
242 * spinlock.c: Use WRITE_MEMORY_BARRIER instead of MEMORY_BARRIER
244 * sysdeps/alpha/pt-machine.h: Define WRITE_MEMORY_BARRIER.
245 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
247 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _POSIX_SPAWN.
248 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
250 2000-04-14 Andreas Jaeger <aj@suse.de>
254 * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
255 2.2 for linuxthreads.
257 2000-04-13 Ulrich Drepper <drepper@redhat.com>
259 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
260 (pthread_getcpuclockid): Fix typo.
262 2000-04-12 Ulrich Drepper <drepper@redhat.com>
264 * Makefile (libpthread-routines): Add getcpuclockid.
265 * Versions [libpthread] (GLIBC_2.2): Add pthread_getcpuclockid.
266 * sysdeps/pthread/getcpuclockid.c: New file.
267 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c: New file.
268 * sysdeps/pthread/pthread.h: Add prototype for pthread_getcpuclockid.
270 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_SPIN_LOCKS):
272 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
274 * sysdeps/pthread/pthread.h: Add prototypes for pthread_spin_init,
275 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
276 and pthread_spin_unlock.
277 * sysdeps/pthread/bits/pthreadtypes.h: Change struct _pthread_fastlock
278 into pthread_spinlock_t. Change all uses.
279 * spinlock.c: Implement pthread_spin_lock.
280 Rename __pthread_unlock to __pthread_spin_unlock and define weak
282 Define pthread_spin_trylock, pthread_spin_init, and
283 pthread_spin_destroy.
284 Change all uses of _pthread_fastlock to pthread_spinlock_t.
285 * spinlock.h: Rename __pthread_unlock to __pthread_spin_unlock.
286 Change all uses of _pthread_fastlock to pthread_spinlock_t.
287 * Versions [libpthread] (GLIBC_2.2): Add pthread_spin_init,
288 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
289 and pthread_spin_unlock.
290 * cancel.c: Use __pthread_spin_unlock instead of __pthread_unlock.
291 Change all uses of _pthread_fastlock to pthread_spinlock_t.
292 * condvar.c: Likewise.
293 * internals.h: Likewise.
295 * manager.c: Likewise.
297 * pthread.c: Likewise.
298 * rwlock.c: Likewise.
299 * semaphore.c: Likewise.
300 * signals.c: Likewise.
302 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add various new POSIX
304 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
306 2000-04-11 Ulrich Drepper <drepper@redhat.com>
308 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
309 _POSIX_SHARED_MEMORY_OBJECTS.
311 2000-04-11 Andreas Jaeger <aj@suse.de>
313 * sysdeps/mips/pt-machine.h (MEMORY_BARRIER): Define.
314 (__compare_and_swap): Mark as modifying memory.
316 2000-04-11 Geoff Keating <geoffk@cygnus.com>
318 * sysdeps/powerpc/pt-machine.h (MEMORY_BARRIER): Don't be
320 (__compare_and_swap): Replace other 'sync' with MEMORY_BARRIER.
321 Don't have the 'asm' __volatile__.
323 2000-04-11 Ulrich Drepper <drepper@redhat.com>
325 * internals.h: Define MEMORY_BARRIER as empty if not defined already.
326 * spinlock.c (__pthread_lock): Add memory barriers.
327 (__pthread_unlock): Likewise.
328 * sysdeps/alpha/pt-machine.h (MEMORY_BARRIER): Define using mb
330 (RELEASE): Not needed anymore.
331 (__compare_and_swap): Mark asm as modifying memory.
332 * sysdeps/powerpc/pt-machine.h (sync): Remove. Replace with definition
334 (__compare_and_swap): Use MEMORY_BARRIER instead of sync.
335 * sysdeps/sparc/sparc32/pt-machine.h (RELEASE): Not needed anymore.
336 (MEMORY_BARRIER): Define using stbar.
337 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Define using
339 (__compare_and_swap): Use MEMORY_BARRIER to ensure ordering.
340 Patch by Xavier Leroy <Xavier.Leroy@inria.fr> based on comments by
341 Mike Burrows <m3b@pa.dec.com>.
343 2000-04-09 Ulrich Drepper <drepper@redhat.com>
345 * signals.c (sigaction): Fix return value for the case SIG is one
346 of the signals the implementation uses.
347 Patch by Xavier.Leroy@inria.fr.
349 2000-04-01 Andreas Jaeger <aj@suse.de>
351 * attr.c: Use shlib-compat macros.
352 * oldsemaphore.c: Likewise.
353 * pthread.c: Likewise.
356 2000-03-26 Ulrich Drepper <drepper@redhat.com>
358 * semaphore.c (sem_timedwait): New function.
359 Patch by Carl Mailloux <carlm@oricom.ca>.
360 * semaphore.h: Declare sem_timedwait.
361 * Versions [libpthread] (GLIBC_2.2): Add sem_timedwait.
363 2000-03-26 Roland McGrath <roland@baalperazim.frob.com>
365 * sysdeps/pthread/Makefile: File removed.
367 2000-03-23 Ulrich Drepper <drepper@redhat.com>
369 * mutex.c (__pthread_reset_pthread_once): Reset once_masterlock.
370 * internals.h (__pthread_reset_pthread_once): Add prototype.
371 * ptfork.c (__fork): Call __pthread_reset_pthread_once.
373 * manager.c (pthread_handle_create): Store ID of new thread before
376 2000-03-21 Ulrich Drepper <drepper@redhat.com>
378 * attr.c: Use new macros from shlib-compat.h to define versions.
379 * oldsemaphore.c: Likewise.
380 * semaphore.c: Likewise.
383 * pthread.c: Update for new SHLIB_COMPAT definition.
385 * manager.c (__pthread_manager): Unmask debug signal.
387 * pthread.c (pthread_initialize): Test for address of __dso_handle
388 being NULL, not value. Use __on_exit, not on_exit.
389 Patch by Andreas Jaeger <aj@suse.de>.
391 * pthread.c: Use new macros from shlib-compat.h to define versions.
393 2000-03-19 Ulrich Drepper <drepper@redhat.com>
395 * pthread.c (pthread_initialize): Instead of on_exit use
396 __cxa_atexit if __dso_label is available to allow unloading the
397 libpthread shared library.
399 2000-03-16 Ulrich Drepper <drepper@redhat.com>
401 * condvar.c: Make tests for ownership of mutex less strict.
403 2000-03-14 Ulrich Drepper <drepper@redhat.com>
405 * condvar.c (pthread_cond_wait): Check whether mutex is owned by
406 current thread and return error if not.
407 (pthread_cond_timedwait_relative_old): Likewise.
408 (pthread_cond_timedwait_relative_new): Likewise.
410 * mutex.c (__pthread_once): Handle cancelled init function correctly.
411 (pthread_once_cancelhandler): New function.
412 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
414 2000-03-14 Andreas Jaeger <aj@suse.de>
416 * pthread.c (pthread_handle_sigcancel_rt): GS has been renamed to
418 (pthread_handle_sigrestart_rt): Likewise.
419 * signals.c (pthread_sighandler_rt): Likewise.
421 2000-03-02 Andreas Jaeger <aj@suse.de>
423 * sysdeps/pthread/bits/libc-lock.h: Fix typo.
424 Reported by Sean Chen <sean.chen@turbolinux.com>.
426 2000-02-28 Andreas Jaeger <aj@suse.de>
428 * rwlock.c: Fix typo.
430 2000-02-27 Ulrich Drepper <drepper@redhat.com>
432 * rwlock.c: Define __* variants of the functions and make old names
434 * Versions [GLIBC_2.2]: Export the __pthread_rwlock_* functions.
435 * sysdeps/pthread/bits/libc-lock.h: Define __libc_rwlock_* macros.
437 2000-02-25 Andreas Jaeger <aj@suse.de>
439 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
440 pwrite64, lseek64, open64, and __open64 with version 2.2.
442 2000-02-22 Ulrich Drepper <drepper@redhat.com>
444 * semaphore.h (SEM_FAILED): Use 0 not NULL.
446 2000-02-14 Ulrich Drepper <drepper@redhat.com>
448 * condvar.c (pthread_cond_timedwait_relative_old): Tight loop with
449 nanosleep does not work either. Get absolute time inside the
451 (pthread_cond_timedwait_relative_new): Likewise.
452 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
454 2000-02-13 Andreas Jaeger <aj@suse.de>
456 * condvar.c (pthread_cond_timedwait_relative_new): Fix last patch.
457 (pthread_cond_timedwait_relative_old): Likewise.
459 2000-02-13 Ulrich Drepper <drepper@redhat.com>
461 * condvar.c (pthread_cond_timedwait_relative_old): Undo last patch
462 but keep the code around. A bug in the kernel prevent us from
464 (pthread_cond_timedwait_relative_new): Likewise.
465 (PR libc/1597 and libc/1598).
467 2000-02-01 Kaz Kylheku <kaz@ashi.footprints.net>
469 * condvar.c (pthread_cond_timedwait_relative_old): Do tight
470 loop around nanosleep calls instead of around most of the function
471 (pthread_cond_timedwait_relative_new): Likewise.
472 body. Got rid of backwards goto and one local.
474 2000-01-31 Ulrich Drepper <drepper@redhat.com>
476 * condvar.c (pthread_cond_timedwait_relative_old): Recompute time
477 before every nanosleep call to account for time spent in the rest
479 (pthread_cond_timedwait_relative_new): Likewise.
480 Patch by khendricks@ivey.uwo.ca (PR libc/1564).
482 2000-01-29 Ulrich Drepper <drepper@redhat.com>
484 * condvar.c (pthread_cond_timedwait_relative_old): Get remaining time
485 from nanosleep call so that in case we restart we only wait for the
487 (pthread_cond_timedwait_relative_new): Likewise.
488 Patch by khendricks@ivey.uwo.ca (PR libc/1561).
490 2000-01-18 Ulrich Drepper <drepper@cygnus.com>
492 * manager.c (pthread_allocate_stack): Compute guard page address
493 correctly. Patch by HJ Lu.
495 * sysdeps/pthread/pthread.h: Define
496 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP.
498 2000-01-16 Ulrich Drepper <drepper@cygnus.com>
500 * rwlock.c (pthread_rwlock_unlock): Correct one more problem with
502 (pthread_rwlockattr_setkind_np): Allow
503 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP.
504 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
506 2000-01-12 Ulrich Drepper <drepper@cygnus.com>
508 * internals.h (pthread_readlock_info): New structure.
509 (_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
510 p_untracked_readlock_count.
511 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
512 Add initializers for new fields.
513 * manager.c (pthread_free): Free read/write lock lists.
514 * queue.h (queue_is_empty): New function.
515 * rwlock.c: Implement requirements about when readers should get
517 * sysdeps/pthread/pthread.h
518 (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
519 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_rwlock_t):
520 Define this name as well.
521 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
523 2000-01-05 Ulrich Drepper <drepper@cygnus.com>
525 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
526 Adjust initializers for struct _pthread_descr_struct change.
527 * internals.h (struct _pthread_descr_struct): Move new elements to
530 2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
532 Redesigned how cancellation unblocks a thread from internal
533 cancellation points (sem_wait, pthread_join,
534 pthread_cond_{wait,timedwait}).
535 Cancellation won't eat a signal in any of these functions
536 (*required* by POSIX and Single Unix Spec!).
537 * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
538 simultaneous condition variable signal (not required by POSIX
539 or Single Unix Spec, but nice).
540 * spinlock.c: __pthread_lock queues back any received restarts
541 that don't belong to it instead of assuming ownership of lock
542 upon any restart; fastlock can no longer be acquired by two threads
544 * restart.h: Restarts queue even on kernels that don't have
545 queued real time signals (2.0, early 2.1), thanks to atomic counter,
546 avoiding a rare race condition in pthread_cond_timedwait.
548 1999-12-31 Andreas Jaeger <aj@suse.de>
550 * internals.h: Remove duplicate prototype declarations.
552 * weaks.c: Remove __THROW from prototypes since the file is not
553 compiled by a C++ compiler.
554 * internals.h: Likewise.
556 1999-12-30 Andreas Jaeger <aj@suse.de>
558 * sysdeps/pthread/pthread.h: Move internal functions to...
559 * sysdeps/pthread/bits/libc-lock.h: ...here.
561 1999-12-29 Andreas Jaeger <aj@suse.de>
563 * sysdeps/pthread/pthread.h: Fix typos, reformat comments.
565 1999-12-28 Ulrich Drepper <drepper@cygnus.com>
567 * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
570 * manager.c (__pthread_start): Add one more cast to prevent
571 warning on 64bit machines.
573 1999-12-21 Ulrich Drepper <drepper@cygnus.com>
575 * manager.c (pthread_handle_create): Set p_pid of new thread
576 before calling the callback function to report a new thread.
578 1999-12-20 Andreas Jaeger <aj@suse.de>
580 * pthread.c (pthread_initialize): Move getrlimit call after
583 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
585 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
586 pwrite64, lseek64, open64, and __open64.
587 * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
588 pwrite64, lseek64, open64, and __open64.
590 * manager.c (pthread_allocate_stack): Correct computation of
591 new_thread_bottom. Correct handling of stack size and when the
592 rlimit method to guard for stack growth is used.
593 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
594 minus one pagesize (not two).
596 1999-12-03 Andreas Jaeger <aj@suse.de>
598 * Versions: Add __res_state with version GLIBC_2.2.
600 * errno.c (__res_state): New function to return thread specific
603 * pthread.c (pthread_initialize): Initialize p_resp.
604 (__pthread_reset_main_thread): Also set p_resp.
606 * manager.c (pthread_handle_create): Initialize p_resp.
608 * internals.h: Add thread specific resolver state.
609 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
611 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
613 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
615 * sysdeps/i386/i686/pt-machine.h: Likewise.
616 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
618 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
620 * manager.c (pthread_start_thread_event): Initialize p_pid already
623 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
625 * internals.h: Add prototype for __pthread_manager_event.
626 * manager.c (__pthread_manager_event): New function.
627 (pthread_start_thread_event): Correct computation of self.
628 Use INIT_THREAD_SELF.
629 * pthread.c (__pthread_manager_thread): Initialize p_lock.
630 (__pthread_initialize_manager): Respect event flags also for creation
631 of the manager thread.
633 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
635 * pthread.c (__pthread_initialize_manager): Initialize
636 __pthread_manager_thread.p_tid.
638 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
640 * internals.h: Declare __pthread_last_event.
641 * manager.c: Define __pthread_last_event.
642 (pthread_handle_create): Set __pthread_last_event.
643 (pthread_exited): Likewise.
644 * join.c (pthread_exit): Likewise.
646 * Makefile (libpthread-routines): Add events.
647 * events.c: New file.
648 * internals.h: Protect against multiple inclusion.
649 Include thread_dbP.h header.
650 (struct _pthread_descr_struct): Add new fields p_report_events and
652 Declare event reporting functions.
653 * join.c (pthread_exit): Signal event if this is wanted.
654 * manager.c (__pthread_threads_events): New variable.
655 (pthread_handle_create): Take new parameters with event information.
656 Signal TD_CREATE event if wanted.
657 (__pthread_manager): Adjust pthread_handle_create call.
658 (pthread_start_thread_event): New function. Block until manager is
659 finished and then call pthread_start_thread.
660 (pthread_exited): Signal TD_REAP event if wanted.
662 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
664 * restart.h (suspend_with_cancellation): Rewrite as a macro.
666 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
668 1999-10-25 Andreas Jaeger <aj@suse.de>
670 * internals.h: Remove K&R compatibility.
671 * no-tsd.c: Likewise.
672 * semaphore.h: Likewise.
673 * signals.c: Likewise.
674 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
675 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
678 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
680 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
681 and pthread_handle_sigcancel with functions that restore
682 %gs from the signal context. For each signal handling function,
683 two wrappers are required, one for a non-RT signal and one for
685 * linuxthreads/signal.c: For i386, add code to restore %gs
686 from the signal context in pthread_sighandler and
687 pthread_sighandler_rt.
689 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
691 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
693 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
695 * pthread.c (__pthread_initial_thread): Pass argument to
696 PTHREAD_START_ARGS_INITIALIZER.
697 (__pthread_manager_thread): Likewise.
699 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
702 * manager.c (pthread_handle_create): Remove p_startfct initialization.
704 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
706 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
708 * internals.h: Correct return types for __libc_read and __libc_write.
710 1999-10-09 Andreas Jaeger <aj@suse.de>
712 * internals.h: Add __new_sem_post to get prototype in
713 manager.c; include semaphore.h for needed types.
715 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
717 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
718 directly instead of calling sem_post which should not be necessary
719 but is faster and might help in some case to work around problems.
720 Patch by khendricks@ivey.uwo.ca [libc/1382].
722 1999-10-08 Andreas Schwab <schwab@suse.de>
724 * sysdeps/pthread/Subdirs: New file.
727 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
730 * internals.h (struct _pthread_descr_struct): Add p_startfct.
731 * manager.c (pthread_handle_create): Initialize p_startfct.
732 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
734 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
736 * manager.c (__linuxthreads_pthread_threads_max): New variable.
737 * specific.c (__linuxthreads_pthread_keys_max): New variable.
738 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
740 * condvar.c (pthread_cond_timedwait_relative): Never return with
741 EINTR. Patch by Andreas Schwab.
743 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
745 * signals.c (sigaction): Correct last patch. Don't select
746 pthread_sighandler_rt based on the signal number but instead of
749 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
751 * specific.c: Move definitions of struct pthread_key_struct and
752 destr_function to ...
753 * internals.h: ...here.
755 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
757 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
758 this instead of pthread_handle_sigrestart if the signal is an RT
761 * signals.c: Handle passing through of sighandler arguments also
762 for real-time signals.
764 1999-09-03 Andreas Schwab <schwab@suse.de>
766 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
768 (__vfork): New function, alias vfork.
769 * Versions: Export __fork, vfork, and __vfork in libpthread.
771 1999-08-23 Andreas Schwab <schwab@suse.de>
773 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
774 call to signal handler.
776 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
778 * pthread.c (__pthread_reset_main_thread): Undo last change.
779 (__pthread_kill_other_threads_np): Reset signal handlers for the
780 signals we used in the thread implementation here.
782 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
784 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
785 for the signals we used in the thread implementation [PR libc/1234].
787 * Versions: Export __pthread_kill_other_threads_np from libpthread
790 * signals.c: Pass sigcontext through wrapper to the user function.
792 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
794 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
795 __libc_internal_tsd_set.
797 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
799 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
802 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
804 * internals.h: Align _pthread_descr_struct to 32 bytes.
805 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
808 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
810 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
813 1999-07-09 Cristian Gafton <gafton@redhat.com>
815 * Makefile (libpthread-routines): Add oldsemaphore routine.
816 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
817 sem_trywait, and sem_wait to GLIBC_2.1.
818 * oldsemaphore.c: New file.
819 * semaphore.c: Add default_symbol_versions for the changed functions.
820 (__new_sem_init): Rename from sem_init.
821 (__new_sem_post): Rename from sem_post.
822 (__new_sem_wait): Rename from sem_wait.
823 (__new_sem_trywait): Rename from sem_trywait.
824 (__new_sem_getvalue): Rename from sem_getvalue.
825 (__new_sem_destroy): Rename from sem_destroy.
827 1999-06-23 Robey Pointer <robey@netscape.com>
829 * internals.h: Added p_nextlock entry to separate queueing for a
830 lock from queueing for a CV (sometimes a thread queues on a lock
831 to serialize removing itself from a CV queue).
832 * pthread.c: Added p_nextlock to initializers.
833 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
835 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
837 * manager.c (pthread_handle_create): Free mmap region after stack
838 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
840 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
842 * man/pthread_cond_init.man: Correct example.
843 Reported by Tomas Berndtsson <tomas@nocrew.org>.
845 * linuxthreads.texi (Condition Variables): Likewise.
847 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
849 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
850 casx not cas, also successful casx returns the old value in rd
851 and not the new value.
853 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
855 * manager.c: If pthread_create() is given a NULL attribute
856 and the thread manager runs with a realtime policy, set the
857 scheduling policy of the newly created thread back to SCHED_OTHER.
858 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
859 initialize the schedpolicy field of new_thread->p_start_args
860 to that of the calling thread.
862 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
864 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
865 instruction does not allow memory element to use offset.
867 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
869 * manager.c (pthread_allocate_stack): Optimize initialization of new
872 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
873 Don't use initializer since it is all zeroes.
874 (__libc_once_define): Likewise.
876 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
878 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
879 doesn't exist anymore.
880 * sysdeps/i386/Implies: Likewise.
881 * sysdeps/m68k/Implies: Likewise.
882 * sysdeps/mips/Implies: Likewise.
883 * sysdeps/powerpc/Implies: Likewise.
884 * sysdeps/sparc/sparc32/Implies: Likewise.
885 * sysdeps/sparc/sparc64/Implies: Likewise.
887 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
889 * sysdeps/alpha/bits/semaphore.h: Removed.
890 * sysdeps/powerpc/bits/semaphore.h: Removed.
891 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
892 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
893 * Makefile (headers): Remove bits/semaphore.h.
895 * semaphore.h: Define _pthread_descr if necessary.
896 Don't include limits.h. Define SEM_VALUE_MAX directly.
898 (sem_t): Protect element names with leading __.
899 Add declarations for sem_close, sem_open, and sem_unlink.
900 * semaphore.c: Adjust all functions for new element names.
901 Define sem_close, sem_open, and sem_unlink.
902 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
904 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
907 1999-03-16 H.J. Lu <hjl@gnu.org>
909 * specific.c (pthread_key_delete): Check th->p_terminated to see
910 if the thread is running.
912 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
913 Added to GLIBC_2.0 for libc.so.
915 1999-02-12 H.J. Lu <hjl@gnu.org>
917 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
918 __libc_allocate_rtsig): Added to GLIBC_2.1.
920 * internals.h (DEFAULT_SIG_RESTART): Removed.
921 (DEFAULT_SIG_CANCEL): Removed.
923 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
924 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
925 (__pthread_sig_restart, __pthread_sig_cancel,
926 __pthread_sig_debug): Initialized.
927 (pthread_initialize): Call init_rtsigs () to initialize
930 1999-02-03 H.J. Lu <hjl@gnu.org>
932 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
933 Don't restart the thread which sent REQ_DEBUG.
934 (pthread_start_thread): Check if __pthread_sig_debug > 0
937 * pthread.c (__pthread_initialize_manager): Suspend ourself
938 after sending __pthread_sig_debug to gdb instead of
939 __pthread_sig_cancel.
941 1999-01-24 H.J. Lu <hjl@gnu.org>
943 * manager.c (__pthread_manager): Delete __pthread_sig_debug
944 from mask if __pthread_sig_debug > 0.
945 (pthread_handle_create): Increment __pthread_handles_num.
947 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
948 * pthread.c (__pthread_initialize_manager): Likewise.
950 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
951 instead of __libc_allocate_rtsig (2).
952 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
953 instead of __pthread_sig_cancel.
954 (pthread_handle_sigdebug): Fix comments.
956 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
958 * manager.c (pthread_allocate_stack): Set
959 __pthread_nonstandard_stacks if user-specified stack is used.
961 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
963 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
964 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
966 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
968 * pthread.c: Use a third signal __pthread_sig_debug distinct
969 from __pthread_sig_cancel to notify gdb when a thread is
971 * manager.c: Likewise.
972 * internals.h: Likewise.
973 * signals.c: The implementation of sigwait(s) assumed that
974 all signals in s have signal handlers already attached.
975 This is not required by the standard, so make it work
976 also if some of the signals have no handlers.
978 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
980 * linuxthreads.texi: Remove pointers from first @node. Move old
981 @node spec inside comment.
983 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
985 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
988 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
990 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
991 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
993 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
995 * manager.c: Threads now send __pthread_sig_cancel on termination.
996 Change clone call and signal masks.
997 * thread.c (pthread_handle_sigrestart): Remove special code for
999 (pthread_handle_sigcancel): In manager thread call
1000 __pthread_manager_sighandler.
1001 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
1002 * sysdeps/i386/i686/pt-machine.h: Likewise.
1003 Patches by Xavier Leroy.
1005 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
1007 * spinlock.c (__pthread_unlock): Don't crash if called for an
1008 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
1010 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
1013 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
1015 * Examples/ex3.c: Wait until all threads are started before
1016 searching for the number to avoid race condition on very fast
1019 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1021 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
1022 declaration since it's not needed.
1024 * sysdeps/pthread/pthread.h: Move internal functions to ...
1025 * internals.h: ...here.
1027 1998-12-02 H.J. Lu <hjl@gnu.org>
1029 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
1030 SIGRTMIN is defined.
1031 (__pthread_sig_cancel): Likewise.
1033 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1035 * wrapsyscall.c: Include <sys/mman.h> for msync,
1036 <stdlib.h> for system and <termios.h> for tcdrain prototype.
1037 Correct msync declaration.
1039 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
1041 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
1042 __libc_tsd_set): New macros for new interface.
1043 * no-tsd.c: New file, provide uninitialized defns of
1044 __libc_internal_tsd_get and __libc_internal_tsd_set.
1045 * Makefile (routines): Add no-tsd.
1047 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
1049 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
1050 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
1051 __libc_internal_tsd_set): Move decls to ...
1052 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
1055 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
1056 __libc_internal_tsd_set): Make these pointers to functions, not
1057 functions; remove #pragma weak decls for them.
1058 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
1059 Define static functions and initialized pointers to them.
1061 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
1063 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
1064 (CFLAGS-specific.c): Likewise.
1065 (CFLAGS-pthread.c): Likewise.
1066 (CFLAGS-ptfork.c): Likewise.
1067 (CFLAGS-cancel.c): Likewise.
1068 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
1069 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
1071 * mutex.c (pthread_mutex_init): Define as strong symbol.
1072 (pthread_mutex_destroy): Likewise.
1073 (pthread_mutex_trylock): Likewise.
1074 (pthread_mutex_lock): Likewise.
1075 (pthread_mutex_unlock): Likewise.
1076 (pthread_mutexattr_init): Likewise.
1077 (pthread_mutexattr_destroy): Likewise.
1078 (pthread_once): Likewise.
1079 * ptfork.c (pthread_atfork): Likewise.
1080 * specific.c (pthread_key_create): Likewise.
1081 (pthread_setspecific): Likewise.
1082 (pthread_getspecific): Likewise.
1084 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1086 * linuxthreads.texi: Fix punctuation after xref.
1088 1998-11-10 H.J. Lu <hjl@gnu.org>
1090 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
1091 if it is defined in <linux/limits.h>.
1093 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
1095 * spinlock.h (__pthread_trylock): Define inline.
1096 (__pthread_lock): Add extra parameter to declaration. Declare
1097 using internal_function.
1098 (__pthread_unlock): Declare using internal_function.
1099 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
1100 of local variable self. Avoid recomputing self. Define using
1102 (__pthread_trylock): Remove.
1103 (__pthread_unlock): Define using internal_function.
1104 * cancel.c: Adjust for __pthread_lock interface change. Use already
1105 computed self value is possible.
1106 * condvar.c: Likewise.
1108 * manager.c: Likewise.
1109 * mutex.c: Likewise.
1110 * pthread.c: Likewise.
1111 * rwlock.c: Likewise.
1112 * semaphore.c: Likewise.
1113 * signals.c: Likewise.
1115 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
1117 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
1118 __ to field names of the struct.
1119 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
1121 (pthread_attr_t): Likewise.
1122 (pthread_cond_t): Likewise.
1123 (pthread_condattr_t): Likewise.
1124 (pthread_mutex_t): Likewise.
1125 (pthread_mutexattr_t): Likewise.
1126 (pthread_rwlock_t): Likewise.
1127 (pthread_rwlockattr_t): Likewise.
1128 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
1129 * cancel.c: Likewise.
1130 * condvar.c: Likewise.
1131 * manager.c: Likewise.
1132 * mutex.c: Likewise.
1133 * pthread.c: Likewise.
1134 * ptlongjmp.c: Likewise.
1135 * rwlock.c: Likewise.
1136 * spinlock.c: Likewise.
1138 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
1140 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
1143 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
1146 * Makefile (libpthread-routines): Add pt-machine.
1147 * pt-machine.c: New file.
1148 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
1149 yet defined. Use PT_EI in extern inline definitions.
1150 * sysdeps/arm/pt-machine.h: Likewise.
1151 * sysdeps/i386/pt-machine.h: Likewise.
1152 * sysdeps/i386/i686/pt-machine.h: Likewise.
1153 * sysdeps/m68k/pt-machine.h: Likewise.
1154 * sysdeps/mips/pt-machine.h: Likewise.
1155 * sysdeps/powerpc/pt-machine.h: Likewise.
1156 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
1157 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1159 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1161 * semaphore.h: Include <sys/types.h> so that _pthread_descr
1164 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
1166 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
1168 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
1170 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1172 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
1173 multiple inclusion guard.
1175 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1177 * signals.c (sigaction): Check that sig is less than NSIG to avoid
1178 array index overflow.
1180 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
1182 * sysdeps/pthread/semaphore.h: New file.
1184 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
1186 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
1187 _LIBC_TSD_KEY_DL_ERROR.
1189 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
1191 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
1192 * sysdeps/i386/pt-machine.h: Likewise.
1193 Suggested by Roland McGrath.
1195 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
1197 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
1198 access thread data with non-constant offsets.
1199 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
1202 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
1203 THREAD_SETMEM_NC definitions.
1205 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
1207 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1209 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
1211 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
1212 not already defined.
1213 (struct _pthread_descr_struct): Add p_self and p_nr field.
1214 * manager.c (__pthread_handles): Define second element to point
1216 (__pthread_handles_num): Initialize to 2.
1217 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
1218 (pthread_start_thread): Likewise.
1219 (pthread_handle_create): Start search for free slot at entry 2.
1220 Initialize new fields p_self and p_nr.
1221 Call __clone with CLONE_PTRACE if available.
1222 (pthread_free): Call FREE_THREAD_SELF if available.
1223 * pthread.c (__pthread_initial_thread): Initialize new fields.
1224 (__pthread_manager_thread): Likewise.
1225 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
1227 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
1228 elements of the thread descriptor.
1229 * condvar.c: Likewise.
1230 * errno.c: Likewise.
1232 * manager.c: Likewise.
1233 * pthread.c: Likewise.
1234 * ptlongjmp.c: Likewise.
1235 * semaphore.c: Likewise.
1236 * signals.c: Likewise.
1237 * specific.c: Likewise.
1238 * spinlock.c: Likewise.
1240 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
1242 * sysdeps/i386/useldt.h: New file.
1243 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
1245 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
1246 THREAD_SETMEM using __thread_self.
1247 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1249 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
1251 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
1252 turned out that we didn't need to queue after all.
1254 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
1256 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
1257 and wastes space; correct types.
1259 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
1261 * signals.c (sigaction): Handle NULL argument.
1263 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
1265 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
1268 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1270 * Makefile (linuxthreads-version): Extract correct number from
1273 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
1275 * Banner: Bump version number to 0.8
1276 * FAQ.html: Many updates, in particular w.r.t. debugging.
1277 * manager.c: Support for non-default stacksize for
1278 LinuxThreads-allocated stacks;
1279 don't use guard pages for stacks with default size, rely on
1280 rlimit(RLIMIT_STACK) instead (it's cheaper).
1282 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
1283 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
1284 * condvar.c: Likewise.
1285 * internals.h: Likewise.
1286 * restart.h: Likewise.
1287 * signals.c: Likewise.
1288 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
1290 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1292 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
1293 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
1294 * Versions: Put __pthread_mutexattr_settype under version
1295 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
1296 __pthread_mutexattr_gettype.
1298 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1300 * sysdeps/pthread/bits/libc-lock.h: Make
1301 __pthread_mutexattr_settype weak. Don't make
1302 __pthread_mutexattr_setkind_np weak.
1304 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
1306 * manager.c (pthread_handle_create): Check whether sched_setscheduler
1307 call can succeed here.
1309 * mutex.c: Define __pthread_mutexattr_settype and make
1310 __pthread_mutexattr_setkind_np an alias.
1311 Likewise for __pthread_mutexattr_gettype.
1313 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1315 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
1318 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
1320 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
1322 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1324 * Examples/ex6.c: Include <unistd.h> for usleep.
1326 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1328 * Examples/ex4.c (main): Use exit, not pthread_exit.
1330 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
1332 * Versions: Add __pthread_mutexattr_gettype and
1333 __pthread_mutexattr_settype.
1334 * lockfile.c: Use __pthread_mutexattr_settype instead of
1335 __pthread_mutexattr_setkind_np.
1336 * mutex.c: Define __pthread_mutexattr_gettype and
1337 __pthread_mutexattr_settype.
1339 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
1340 __pthread_mutexattr_settype.
1341 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
1342 Use __pthread_mutexattr_settype.
1344 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
1346 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
1347 * mutex.c: Define weak alias pthread_mutexattr_gettype and
1348 pthread_mutexattr_settype.
1349 * sysdeps/pthread/pthread.h: Declare these functions.
1350 Move pthread_sigmask and pthread_kill declaration in separate header.
1351 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
1353 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
1355 * Makefile: Add rules to compile and run tests.
1356 * Examples/ex1.c: Little changes to fix warnings.
1357 * Examples/ex2.c: Likewise.
1358 * Examples/ex3.c: Likewise.
1359 * Examples/ex4.c: Likewise.
1360 * Examples/ex5.c: Likewise.
1361 * Examples/ex6.c: New file.
1363 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
1365 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
1367 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1369 * attr.c: Include <string.h>.
1371 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
1373 * attr.c: Include errno.h. Use memcpy to copy sched_param.
1374 * internals.h: Include limits.h.
1375 * manager.c: Use memcpy to copy sched_param.
1376 * ptfork.c: Include errno.h.
1377 * pthread.c: Likewise.
1378 * semaphore.c: Likewise.
1379 * specific.c: Likewise.
1380 * spinlock.h: Likewise.
1381 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
1382 type definition to ...
1383 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
1385 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
1387 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
1389 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
1390 as macros as demanded in POSIX.1, Annex C.
1392 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
1394 * internals.h (struct pthread_request): For free use pthread_t
1395 instead of pthread_descr.
1396 * join.c (pthread_join): Pass thread_id, not th to manager.
1397 (pthread_detach): Likewise.
1398 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
1399 (pthread_exited): Remove detached queue code.
1400 (pthread_handle_free): Expect thread ID parameter and use it to
1401 validate the thread decsriptor. Don't use detached queue.
1402 Patches by Xavier Leroy.
1404 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1406 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
1407 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
1408 __pthread_atfork, __pthread_key_create, __pthread_once.
1409 * internals.h: Doc fix.
1410 * pthread.c (__pthread_initialize): Define again.
1412 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
1414 * manager.c (pthread_exited): If thread is not detached put it on
1416 (pthread_handle_free): If thread is not on list with living threads
1417 search on list with detached threads.
1419 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
1420 for new definition of pthread_rwlock_t.
1422 * spinlock.c: Correct test whether to compile
1423 __pthread_compare_and_swap or not.
1425 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
1427 * attr.c: Finish user stack support. Change locking code to be safe
1428 in situations with different priorities.
1429 * cancel.c: Likewise.
1430 * condvar.c: Likewise.
1431 * internals.h: Likewise.
1433 * manager.c: Likewise.
1434 * mutex.c: Likewise.
1435 * pthread.c: Likewise.
1436 * ptlongjmp.c: Likewise.
1437 * queue.h: Likewise.
1438 * rwlock.c: Likewise.
1439 * semaphore.c: Likewise.
1440 * semaphore.h: Likewise.
1441 * signals.c: Likewise.
1442 * spinlock.c: Likewise.
1443 * spinlock.h: Likewise.
1444 * sysdeps/pthread/pthread.h: Likewise.
1445 Patches by Xavier Leroy.
1447 * sysdeps/i386/i686/pt-machine.h: New file.
1449 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
1451 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
1452 [sg]et_stackaddr prototypes always available.
1454 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1455 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
1457 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
1459 * manager.c (pthread_free): Undo patch from 980430.
1460 Reported by David Wragg <dpw@doc.ic.ac.uk>.
1462 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
1464 * manager.c: Define __pthread_manager_adjust_prio and use it to
1465 increase priority when needed.
1466 * internals.h: Add prototype for __pthread_manager_adjust_prio.
1467 * mutex.c: Optimize mutexes to wake up only one thread.
1468 * pthread.c: Move PID of manager for global variable in structure
1470 Patches by Xavier Leroy.
1472 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
1474 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
1476 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1478 * attr.c: Correct typo.
1480 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
1482 * manager.c (pthread_free): Unmap guard before the stack.
1483 Patch by Matthias Urlichs.
1485 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
1487 * manager.c (pthread_free): Detect already free child.
1488 Patch by Xavier Leroy, reported by Matthias Urlichs.
1490 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1492 * Makefile (linuxthreads-version): Renamed back from
1495 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
1497 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
1500 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
1502 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
1503 * internals.h: Add definitions for new spinlock implementation.
1504 * ptlongjmp.c: New file.
1505 * spinlock.c: New file.
1506 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
1507 new function __pthread_acquire to prevent deadlocks with thread
1508 with different priorities.
1509 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
1511 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1513 * manager.c (__pthread_manager): Reduce first argument to select
1514 to include just the needed file descriptor.
1516 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
1518 * manager.c: Fix last patch which caused core dumps.
1520 * pthread.c: Correctly handle missing SIGRTMIN.
1522 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1524 * libpthread.map: Add __libc_internal_tsd_get and
1525 __libc_internal_tsd_set. Add missing cancelable functions. Export
1526 libc internal versions of the cancelable functions.
1528 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
1530 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
1532 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
1534 * attr.c: Implement pthread_attr_[gs]etguardsize,
1535 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
1536 Change pthread_attr_init to have two interfaces.
1537 * internals.h (struct _pthread_descr_struct): Add new fields for
1539 * libpthread.map: Add names in GLIBC_2.1 section.
1540 * manager.c (pthread_handle_create): Implement guardsize and
1542 (pthread_free): Likewise.
1543 * pthread.c (pthread_create): Add new interface for changed
1545 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
1546 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
1549 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
1551 * manager.c: Enable resetting of the thread scheduling policy
1552 to SCHED_OTHER when the parent thread has a different one.
1554 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
1556 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1557 _POSIX_ASYNCHRONOUS_IO.
1559 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
1561 * mutex.c: Implement new mutex types.
1563 * internals.h: Include <signal.h>.
1565 * libpthread.map: Add __erno_location and __h_errno_location.
1567 * errno.c: Return pointer to variable actually in use. This might
1568 not be the one in the thread structure.
1569 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
1571 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
1572 of manager thread structure.
1573 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
1575 * pthread.c: Adapt initializer for thread structures.
1576 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
1577 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
1578 current thread to global variables.
1580 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
1582 * rwlock.c: New file.
1583 * Makefile (libpthread-routines): Add rwlock.
1584 * sysdeps/pthread/pthread.h: Define data structures and declare
1586 * libpthread.map: Add new functions.
1588 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1590 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1591 * sysdeps/arm/Implies: likewise.
1592 * README: Document it.
1594 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1596 * signals.c: Remove unneeded initializer for sigwaited, saving a
1599 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1601 * semaphore.c (sem_init): Set sem_spinlock only if available.
1603 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1605 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1606 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1608 * Makefile: Update from LinuxThreads 0.7.
1609 * internals.h. Likewise.
1610 * manager.c: Likewise.
1611 * mutex.c: Likewise.
1612 * pthread.c: Likewise.
1613 * signals.c: Likewise.
1614 * specific.c: Likewise.
1615 * Examples/ex3.c: Likewise.
1617 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1619 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1622 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1624 * wrapsyscall.c: Add socket functions which are also cancelation
1627 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1629 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1630 New functions for fast thread specific data within libc.
1632 * internals.h: Add new array p_libc_specific to struct
1633 _pthread_descr_struct.
1635 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1637 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1639 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1640 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1642 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1644 * internals.h (struct _pthread_descr_struct): Add definitions for
1645 two-level specific key handling.
1646 * manager.c (pthread_handle_create): Initialize specific memory array.
1647 * specific.c: Implement two-level key handling.
1648 * weaks.c: Don't provide dummy key handling.
1649 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1650 Add definition of __libc_key_t.
1651 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1653 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1654 PTHREAD_DESTRUCTOR_ITERATIONS.
1656 * manager.c (pthread_handle_create): Compare mmap result with
1659 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1660 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1662 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1664 sysdeps/sparc -> sysdeps/sparc/sparc32
1665 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1667 * internals.h: Change definition of THREAD_SELF to be an expression,
1668 not a statement that did a return.
1669 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1670 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1671 Follow Solaris and use a "system reserved" register (%g6) to hold
1672 the thread descriptor.
1673 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1675 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1677 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1678 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1679 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1681 * semaphore.c: Include spinlock.h only when needed.
1683 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1684 keys for entries not in use.
1686 * weaks.c: Implement key handling functions for real.
1688 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1690 Initial sparc64-linux support:
1691 * linuxthreads/sysdeps/sparc64/Implies: New file.
1692 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1694 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1696 * semaphore.c: Include spinlock.h at correct place.
1699 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1701 The Great Bit File Move:
1702 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1703 * sysdeps/powerpc/semaphorebits.h: Likewise.
1704 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1705 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1706 * sysdeps/pthread/libc-lock.h: -> bits/
1707 * sysdeps/pthread/stdio-lock.h: Likewise.
1708 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1709 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1710 * semaphore.h: Likewise.
1711 * sysdeps/pthread/pthread.h: Likewise.
1713 * lockfile.c: <foo.h> -> <bits/foo.h>.
1714 * semaphore.h: Likewise.
1716 * Makefile: (headers): foo.h -> bits/foo.h.
1717 * sysdeps/pthread/Makefile: Likewise.
1719 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1721 * semaphore.c (sem_init): Set sem_spinlock only if available.
1723 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1726 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1728 Update from LinuxThreads 0.6.
1730 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1731 and __sched_get_priority_min instead of names without `__'.
1733 * manager.c: Rewrite large parts to implement opaque pthread_t.
1735 * cancel.c: Adapt for opaque pthread_t type.
1736 * condvar.c: Likewise.
1737 * errno.c: Likewise.
1739 * mutex.c: Likewise.
1740 * pthread.c: Likewise.
1741 * signals.c: Likewise.
1742 * specific.c: Likewise.
1743 * restart.h: Likewise.
1744 * queue.h: Likewise.
1745 * Examples/ex3.c: Likewise.
1746 * Examples/ex4.c: Likewise.
1747 * sysdeps/pthread/pthread.h: Likewise.
1749 * pthread.c: Accumulate time for all threads in thread manager.
1751 * semaphore.c: Implement fallback implementation for architectures
1752 sometimes missing compare-exchange operations.
1754 * cancel.c (pthread_cancel): Validate handle argument.
1755 * join.c (pthread_join): Likewise.
1756 (pthread_detach): Likewise.
1757 * signals.c (pthread_kill): Likewise.
1759 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1761 * queue.h (enqueue): Enqueue thread according to priority.
1763 * internals.c (struct pthread_start_args): New struct for passing
1764 args to cloning function.
1765 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1768 * Examples/Makefile (clean): Pass -f option to rm.
1770 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1771 and define TEST_FOR_COMPARE_AND_SWAP.
1772 * sysdeps/i386/i486/pt-machine.h: Removed.
1774 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1777 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1779 * restart.h (suspend): Clear p_signal before suspending.
1780 (suspend_with_cancellation): Likewise.
1781 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1783 * weaks.c: Make __pthread_key_create return 1.
1784 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1785 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1786 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1789 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1791 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1793 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1795 * sysdeps/powerpc/Implies: Added.
1796 * sysdeps/powerpc/pt-machine.h: Added.
1797 * sysdeps/powerpc/semaphorebits.h: Added.
1799 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1801 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1803 (__pthread_manager_thread): Likewise.
1804 Reported by Andreas Jaeger.
1806 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1808 Since sigset_t no longer fits in a register, we can't pass in the
1809 thread's initial mask so easily. Take this opportunity to simplify
1810 the clone implementation by only accepting a single void* argument.
1812 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1813 in the thread struct instead of as arguments through clone.
1814 (pthread_start_thread): Look for them there.
1815 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1816 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1817 * linuxthreads/pthread.c (pthread_initialize_manager): Revise