1 2000-06-08 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/pthread/timer_routines.c (__timer_thread_queue_timer):
4 Be prepared for empty timer list.
6 * sysdeps/pthread/timer_create.c (timer_create): Correct names of
7 CPUTIME clock ID. Add support for thread clocks.
9 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in
10 subtraction were switched.
12 * sysdeps/pthread/timer_routines.c (init_module): Use
13 THREAD_MAXNODES threads.
15 * sysdeps/pthread/posix-timer.h (struct timer_node): Add creator_pid.
16 * sysdeps/pthread/timer_create.c: Fill in creator_pid.
17 * sysdeps/pthread/timer_routines.c (thread_expire_timer): Send signal
18 with sigqueueinfo is this system call is available.
20 * sysdeps/pthread/timer_create.c (timer_create): Allow
21 CLOCK_CPUTIME if _POSIX_CPUTIME is defined.
23 * sysdeps/pthread/Makefile: New file. Add rules to build timer
25 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add TIMER_MAX.
27 2000-06-04 Kaz Kylheku <kaz@ashi.footprints.net>
29 * sysdeps/pthread/posix-timer.h: New file.
30 * sysdeps/pthread/timer_create.c: New file.
31 * sysdeps/pthread/timer_delete.c: New file.
32 * sysdeps/pthread/timer_getoverr.c: New file.
33 * sysdeps/pthread/timer_gettime.c: New file.
34 * sysdeps/pthread/timer_routines.c: New file.
35 * sysdeps/pthread/timer_settime.c: New file.
36 * sysdeps/pthread/tst-timer.c: New file.
38 2000-06-08 Ulrich Drepper <drepper@redhat.com>
40 * sysdeps/unix/sysv/linux/bits/local_lim.h: Remove OPEN_MAX and
41 LINK_MAX definitions if necessary.
43 2000-06-04 Kaz Kylheku <kaz@ashi.footprints.net>
45 Added missing fork time handling of global libio lock.
47 * lockfile.c (__fresetlockfiles): Now also resets the list lock,
48 not just the individual stream locks. Rewritten to use new
49 iterator interface provided by libio rather than accessing
52 * lockfile.c (__flockfilelist, _funlockfilelist): New functions
53 which lock and unlock the stream list using the new interface
55 * internals.h: Likewise.
57 * ptfork.c (__fork): Now calls __flockfilelist before fork,
58 and __funlockfilelist in the parent after the fork.
59 Child still calls __fresetlockfiles as before.
61 * linuxthreads.texi: Now explains what happens to streams at
62 fork time. Also whole new section on forking and thread added.
63 Definition of pthread_atfork moved out of Miscellaneous Functions
66 2000-06-04 Jakub Jelinek <jakub@redhat.com>
68 * sysdeps/sparc/sparc32/sparcv9/pspinlock.c (__pthread_spin_lock):
70 * sysdeps/sparc/sparc64/pspinlock.c (__pthread_spin_lock): Likewise.
72 2000-06-02 Jakub Jelinek <jakub@redhat.com>
74 * sysdeps/sparc/sparc32/pspinlock.c: Implement spinlocks.
75 * sysdeps/sparc/sparc32/sparcv9/pspinlock.c: New.
76 * sysdeps/sparc/sparc64/pspinlock.c: Implement spinlocks.
78 2000-05-31 Andreas Jaeger <aj@suse.de>
80 * sysdeps/mips/pspinlock.c: Implement spinlocks.
82 2000-05-28 Ulrich Drepper <drepper@redhat.com>
84 * spinlock.c (__pthread_lock): Remove ASSERT.
86 * Makefile (tests): Add ex8.
87 * Examples/ex8.c: New file.
89 2000-05-12 Kaz Kylheku <kaz@ashi.footprints.net>
91 Bugfix: The pthread_atfork mechanism now takes care of its
92 own internal mutex at fork time.
94 * ptfork.c (__fork): Revised so that the mutex is held across
95 the fork operation and while the handlers are called, and so that
96 the child resets the mutex.
98 * linuxthreads.texi: Updated pthread_atfork documentation to make
99 it clear that fork and pthread_atfork can't be reentered from
100 atfork handlers, that pthread_atfork and fork are mutually atomic,
101 and that the handlers are inherited by the child process.
103 2000-05-24 Ulrich Drepper <drepper@redhat.com>
105 * Makefile (libpthread-routines): Add pspinlock.
106 * cancel.c: Rename __pthread_spin_unlock back to __pthread_unlock.
107 Use struct _pthread_fastlock instead of pthread_spinlock_t.
108 * condvar.c: Likewise.
109 * internals.h: Likewise.
111 * manager.c: Likewise.
113 * pthread.c: Likewise.
114 * rwlock.c: Likewise.
115 * semaphore.c: Likewise.
116 * signals.c: Likewise.
117 * spinlock.h: Likewise.
118 * spinlock.c: Likewise. Remove pthread_spin_lock functions.
119 * sysdeps/alpha/pspinlock.c: New file.
120 * sysdeps/arm/pspinlock.c: New file.
121 * sysdeps/i386/pspinlock.c: New file.
122 * sysdeps/m68k/pspinlock.c: New file.
123 * sysdeps/mips/pspinlock.c: New file.
124 * sysdeps/powerpc/pspinlock.c: New file.
125 * sysdeps/sparc/sparc32/pspinlock.c: New file.
126 * sysdeps/sparc/sparc64/pspinlock.c: New file.
127 * sysdeps/pthread/bits/pthreadtypes.h: Remove pthread_spinlock_t
128 back to _pthread_fastlock. Define new pthread_spinlock_t.
130 2000-05-24 Andreas Jaeger <aj@suse.de>
132 * sysdeps/i386/i686/pt-machine.h: Only use LDT on newer kernels.
134 2000-05-21 Jakub Jelinek <jakub@redhat.com>
136 * manager.c (pthread_handle_create): Initialize p_res._sock to -1.
138 2000-05-13 Jakub Jelinek <jakub@redhat.com>
140 * internals.h (__RES_PTHREAD_INTERNAL): Define.
142 2000-05-06 Kaz Kylheku <kaz@ashi.footprints.net>
144 * mutex.c (pthread_once): IN_PROGRESS state of pthread_once_t
145 object state is represented with additional bits which distinguish
146 whether that state was set up in the current process, or
147 in an ancestor process. If that state was set in an ancestor,
148 it means that a fork happened while thread was executing the init
149 function. In that case, the state is reset to NEVER.
150 * mutex.c (__pthread_once_fork_prepare): New function.
151 (__pthread_once_fork_child): Likewise
152 (__pthread_once_fork_parent): Likewise
153 (__pthread_reset_pthread_once): Removed.
154 * ptfork.c (__fork): Call new handlers in mutex.c.
155 * internals.h: Declarations of new mutex.c functions added.
156 Declaration of removed function deleted.
157 * linuxthreads.texi: Updated documentation about pthread_once
158 to clarify what happens under cancellation and forking.
160 2000-05-06 Kaz Kylheku <kaz@ashi.footprints.net>
162 * internals.h: New thread manager request type, REQ_KICK.
163 * join.c (pthread_exit): main thread now calls exit() instead
164 of _exit() in order to proper process cleanup.
165 * manager.c (__pthread_manager): Do not terminate manager
166 after unblocking main thread; wait for main thread's
167 REQ_PROCESS_EXIT request instead.
168 Also, added REQ_KICK case to handle new request; this just does
170 * manager.c (pthread_exited): Do not terminate manager after
171 unblocking main thread.
172 * manager.c (__pthread_manager_sighandler): If the main thread
173 is waiting for all other threads to die, send a REQ_KICK into
174 the thread manager request pipe to get it to clean out the threads
175 and unblock the main thread as soon as possible. This fixes
176 the 2000 millisecond hang on shutdown bug.
177 * Examples/ex7.c: New file, tests shutdown behavior when all threads
178 including the main one call pthread_exit(), or implicitly do so.
179 * Makefile (tests): Add ex7.
181 2000-05-05 Andreas Jaeger <aj@suse.de>
183 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
184 (pthread_getcpuclockid): Correct test for ourselves.
186 2000-05-05 Ulrich Drepper <drepper@redhat.com>
188 * internals.h (struct _pthread_descr_struct): Reorganization.
189 Allocate room for 16 pointers at head of the structure for future
190 thread-local data handling. Move p_self member in this area.
191 * manager.c (pthread_handle_create): Adjust use of p_self.
192 * sysdeps/i386/useldt.h (THREAD_SELF): Likewise.
193 * pthread.c (__pthread_initial_thread): Adjust initialization.
194 (__pthread_manager_thread): Likewise.
196 2000-04-29 Bruno Haible <haible@clisp.cons.org>
198 * join.c (pthread_exit): Use THREAD_GETMEM_NC instead of THREAD_GETMEM
199 for eventmask larger than 1 word.
201 2000-04-27 Ulrich Drepper <drepper@redhat.com>
203 * Versions [libpthread] (GLIBC_2.2): Add __pthread_initialize_minimal.
204 * pthread.c (__pthread_initialize_minimal): New function. Perform
205 minimal initialization.
206 (pthread_initialize): Remove this code here.
207 * sysdeps/i386/i686/pt-machine.h: Include "../useldt.h" again. We
208 are working around the problem in glibc.
210 2000-04-25 Ulrich Drepper <drepper@redhat.com>
212 * sysdeps/i386/i686/pt-machine.h: Do not use "../useldt.h" for
213 now. First gcc must be fixed (more concrete: libgcc).
215 2000-04-24 Ulrich Drepper <drepper@redhat.com>
217 * pthread.c: Remove special treatement for interrupt handlers on x86.
218 * manager.c (pthread_free): Use FREE_THREAD not FREE_THREAD_SELF.
219 * sysdeps/i386/useldt.h: Use "q" constraint instead of "r" where
221 * sysdeps/i386/i686/pt-machine.h: Include "../useldt.h".
223 2000-04-24 Mark Kettenis <kettenis@gnu.org>
225 * join.c (pthread_exit): Set p_terminated after reporting the
226 termination event instead of before.
228 2000-04-20 Jakub Jelinek <jakub@redhat.com>
230 * sysdeps/pthread/bits/libc-lock.h: Only declare __pthread_rwlock_*
233 2000-04-18 Andreas Jaeger <aj@suse.de>
235 * Versions: Use ld instead of ld.so.
237 2000-04-18 Jakub Jelinek <jakub@redhat.com>
239 * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h (struct sigcontext):
240 Remove the typedef keyword.
242 2000-04-18 Jakub Jelinek <jakub@redhat.com>
244 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Use membar,
246 (READ_MEMORY_BARRIER): Define.
247 * spinlock.c (__pthread_spin_unlock): Use READ_MEMORY_BARRIER, not
249 * internals.h (READ_MEMORY_BARRIER): Define if not defined in sysdep
252 2000-04-17 Ulrich Drepper <drepper@redhat.com>
254 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
255 (pthread_getcpuclockid): Don't compare thread_id with thread_self,
258 2000-04-16 Ulrich Drepper <drepper@redhat.com>
260 * condvar.c (pthread_cond_timedwait_relative): Don't test for owner
261 if fast mutex is used. Don't initialize `already_canceled' twice.
262 Correctly test for return value of timedsuspend.
264 * pthread.c: Correct long-time braino. We never set SA_SIGINFO and
265 therefore don't need the _rt versions of the signal handlers.
267 2000-04-15 Ulrich Drepper <drepper@redhat.com>
269 * pthread.c (pthread_yield): New function.
270 * sysdeps/pthread/pthread.h (pthread_yield): Add prototype.
271 * Versions [libpthread] (GLIBC_2.2): Add pthread_yield.
272 * internals.h: Declare __pthread_yield.
274 * pthread.c (pthread_initialize): Avoid a bit more code if
275 realtime signals are known to exist.
277 * pthread.c: Is __ASSUME_REALTIME_SIGNALS then avoid generating code
278 to dynamically detect RT signals and avoid generating compatibility
279 functions with old kernel.
280 * restart.h (restart) [__ASSUME_REALTIME_SIGNALS]: Use
281 __pthread_restart_new directly.
282 (suspend) [__ASSUME_REALTIME_SIGNALS]: Use
283 __pthread_wait_for_restart_signal directly.
284 (timedsuspend) [__ASSUME_REALTIME_SIGNALS]: Use
285 __pthread_timedsuspend_new directly.
287 2000-04-15 Ulrich Drepper <drepper@redhat.com>
289 * condvar.c: Remove all the special code to handle cond_timedwait.
290 Use timedsuspend instead.
291 * internals.h: Declare __pthread_timedsuspend_old,
292 __pthread_timedsuspend_new, and __pthread_timedsuspend.
293 Remove declaration of __pthread_init_condvar.
294 * pthread.c: Define __pthread_timedsuspend variable.
295 (__pthread_timedsuspend_old): New function. Timed suspension
296 implementation for old Linux kernels.
297 (__pthread_timedsuspend_new): New function. Timed suspension
298 implementation for new Linux kernels.
299 * restart.h (timedsuspend): New function. Call appropriate
300 suspension function through __pthread_timedsuspend.
301 * semaphore.c (sem_timedwait): Use timedsuspend, don't duplicate
303 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
305 * internals.h (WRITE_MEMORY_BARRIER): Define as MEMORY_BARRIER if
307 * spinlock.c: Use WRITE_MEMORY_BARRIER instead of MEMORY_BARRIER
309 * sysdeps/alpha/pt-machine.h: Define WRITE_MEMORY_BARRIER.
310 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
312 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _POSIX_SPAWN.
313 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
315 2000-04-14 Andreas Jaeger <aj@suse.de>
319 * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
320 2.2 for linuxthreads.
322 2000-04-13 Ulrich Drepper <drepper@redhat.com>
324 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
325 (pthread_getcpuclockid): Fix typo.
327 2000-04-12 Ulrich Drepper <drepper@redhat.com>
329 * Makefile (libpthread-routines): Add getcpuclockid.
330 * Versions [libpthread] (GLIBC_2.2): Add pthread_getcpuclockid.
331 * sysdeps/pthread/getcpuclockid.c: New file.
332 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c: New file.
333 * sysdeps/pthread/pthread.h: Add prototype for pthread_getcpuclockid.
335 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_SPIN_LOCKS):
337 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
339 * sysdeps/pthread/pthread.h: Add prototypes for pthread_spin_init,
340 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
341 and pthread_spin_unlock.
342 * sysdeps/pthread/bits/pthreadtypes.h: Change struct _pthread_fastlock
343 into pthread_spinlock_t. Change all uses.
344 * spinlock.c: Implement pthread_spin_lock.
345 Rename __pthread_unlock to __pthread_spin_unlock and define weak
347 Define pthread_spin_trylock, pthread_spin_init, and
348 pthread_spin_destroy.
349 Change all uses of _pthread_fastlock to pthread_spinlock_t.
350 * spinlock.h: Rename __pthread_unlock to __pthread_spin_unlock.
351 Change all uses of _pthread_fastlock to pthread_spinlock_t.
352 * Versions [libpthread] (GLIBC_2.2): Add pthread_spin_init,
353 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
354 and pthread_spin_unlock.
355 * cancel.c: Use __pthread_spin_unlock instead of __pthread_unlock.
356 Change all uses of _pthread_fastlock to pthread_spinlock_t.
357 * condvar.c: Likewise.
358 * internals.h: Likewise.
360 * manager.c: Likewise.
362 * pthread.c: Likewise.
363 * rwlock.c: Likewise.
364 * semaphore.c: Likewise.
365 * signals.c: Likewise.
367 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add various new POSIX
369 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
371 2000-04-11 Ulrich Drepper <drepper@redhat.com>
373 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
374 _POSIX_SHARED_MEMORY_OBJECTS.
376 2000-04-11 Andreas Jaeger <aj@suse.de>
378 * sysdeps/mips/pt-machine.h (MEMORY_BARRIER): Define.
379 (__compare_and_swap): Mark as modifying memory.
381 2000-04-11 Geoff Keating <geoffk@cygnus.com>
383 * sysdeps/powerpc/pt-machine.h (MEMORY_BARRIER): Don't be
385 (__compare_and_swap): Replace other 'sync' with MEMORY_BARRIER.
386 Don't have the 'asm' __volatile__.
388 2000-04-11 Ulrich Drepper <drepper@redhat.com>
390 * internals.h: Define MEMORY_BARRIER as empty if not defined already.
391 * spinlock.c (__pthread_lock): Add memory barriers.
392 (__pthread_unlock): Likewise.
393 * sysdeps/alpha/pt-machine.h (MEMORY_BARRIER): Define using mb
395 (RELEASE): Not needed anymore.
396 (__compare_and_swap): Mark asm as modifying memory.
397 * sysdeps/powerpc/pt-machine.h (sync): Remove. Replace with definition
399 (__compare_and_swap): Use MEMORY_BARRIER instead of sync.
400 * sysdeps/sparc/sparc32/pt-machine.h (RELEASE): Not needed anymore.
401 (MEMORY_BARRIER): Define using stbar.
402 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Define using
404 (__compare_and_swap): Use MEMORY_BARRIER to ensure ordering.
405 Patch by Xavier Leroy <Xavier.Leroy@inria.fr> based on comments by
406 Mike Burrows <m3b@pa.dec.com>.
408 2000-04-09 Ulrich Drepper <drepper@redhat.com>
410 * signals.c (sigaction): Fix return value for the case SIG is one
411 of the signals the implementation uses.
412 Patch by Xavier.Leroy@inria.fr.
414 2000-04-01 Andreas Jaeger <aj@suse.de>
416 * attr.c: Use shlib-compat macros.
417 * oldsemaphore.c: Likewise.
418 * pthread.c: Likewise.
421 2000-03-26 Ulrich Drepper <drepper@redhat.com>
423 * semaphore.c (sem_timedwait): New function.
424 Patch by Carl Mailloux <carlm@oricom.ca>.
425 * semaphore.h: Declare sem_timedwait.
426 * Versions [libpthread] (GLIBC_2.2): Add sem_timedwait.
428 2000-03-26 Roland McGrath <roland@baalperazim.frob.com>
430 * sysdeps/pthread/Makefile: File removed.
432 2000-03-23 Ulrich Drepper <drepper@redhat.com>
434 * mutex.c (__pthread_reset_pthread_once): Reset once_masterlock.
435 * internals.h (__pthread_reset_pthread_once): Add prototype.
436 * ptfork.c (__fork): Call __pthread_reset_pthread_once.
438 * manager.c (pthread_handle_create): Store ID of new thread before
441 2000-03-21 Ulrich Drepper <drepper@redhat.com>
443 * attr.c: Use new macros from shlib-compat.h to define versions.
444 * oldsemaphore.c: Likewise.
445 * semaphore.c: Likewise.
448 * pthread.c: Update for new SHLIB_COMPAT definition.
450 * manager.c (__pthread_manager): Unmask debug signal.
452 * pthread.c (pthread_initialize): Test for address of __dso_handle
453 being NULL, not value. Use __on_exit, not on_exit.
454 Patch by Andreas Jaeger <aj@suse.de>.
456 * pthread.c: Use new macros from shlib-compat.h to define versions.
458 2000-03-19 Ulrich Drepper <drepper@redhat.com>
460 * pthread.c (pthread_initialize): Instead of on_exit use
461 __cxa_atexit if __dso_label is available to allow unloading the
462 libpthread shared library.
464 2000-03-16 Ulrich Drepper <drepper@redhat.com>
466 * condvar.c: Make tests for ownership of mutex less strict.
468 2000-03-14 Ulrich Drepper <drepper@redhat.com>
470 * condvar.c (pthread_cond_wait): Check whether mutex is owned by
471 current thread and return error if not.
472 (pthread_cond_timedwait_relative_old): Likewise.
473 (pthread_cond_timedwait_relative_new): Likewise.
475 * mutex.c (__pthread_once): Handle cancelled init function correctly.
476 (pthread_once_cancelhandler): New function.
477 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
479 2000-03-14 Andreas Jaeger <aj@suse.de>
481 * pthread.c (pthread_handle_sigcancel_rt): GS has been renamed to
483 (pthread_handle_sigrestart_rt): Likewise.
484 * signals.c (pthread_sighandler_rt): Likewise.
486 2000-03-02 Andreas Jaeger <aj@suse.de>
488 * sysdeps/pthread/bits/libc-lock.h: Fix typo.
489 Reported by Sean Chen <sean.chen@turbolinux.com>.
491 2000-02-28 Andreas Jaeger <aj@suse.de>
493 * rwlock.c: Fix typo.
495 2000-02-27 Ulrich Drepper <drepper@redhat.com>
497 * rwlock.c: Define __* variants of the functions and make old names
499 * Versions [GLIBC_2.2]: Export the __pthread_rwlock_* functions.
500 * sysdeps/pthread/bits/libc-lock.h: Define __libc_rwlock_* macros.
502 2000-02-25 Andreas Jaeger <aj@suse.de>
504 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
505 pwrite64, lseek64, open64, and __open64 with version 2.2.
507 2000-02-22 Ulrich Drepper <drepper@redhat.com>
509 * semaphore.h (SEM_FAILED): Use 0 not NULL.
511 2000-02-14 Ulrich Drepper <drepper@redhat.com>
513 * condvar.c (pthread_cond_timedwait_relative_old): Tight loop with
514 nanosleep does not work either. Get absolute time inside the
516 (pthread_cond_timedwait_relative_new): Likewise.
517 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
519 2000-02-13 Andreas Jaeger <aj@suse.de>
521 * condvar.c (pthread_cond_timedwait_relative_new): Fix last patch.
522 (pthread_cond_timedwait_relative_old): Likewise.
524 2000-02-13 Ulrich Drepper <drepper@redhat.com>
526 * condvar.c (pthread_cond_timedwait_relative_old): Undo last patch
527 but keep the code around. A bug in the kernel prevent us from
529 (pthread_cond_timedwait_relative_new): Likewise.
530 (PR libc/1597 and libc/1598).
532 2000-02-01 Kaz Kylheku <kaz@ashi.footprints.net>
534 * condvar.c (pthread_cond_timedwait_relative_old): Do tight
535 loop around nanosleep calls instead of around most of the function
536 (pthread_cond_timedwait_relative_new): Likewise.
537 body. Got rid of backwards goto and one local.
539 2000-01-31 Ulrich Drepper <drepper@redhat.com>
541 * condvar.c (pthread_cond_timedwait_relative_old): Recompute time
542 before every nanosleep call to account for time spent in the rest
544 (pthread_cond_timedwait_relative_new): Likewise.
545 Patch by khendricks@ivey.uwo.ca (PR libc/1564).
547 2000-01-29 Ulrich Drepper <drepper@redhat.com>
549 * condvar.c (pthread_cond_timedwait_relative_old): Get remaining time
550 from nanosleep call so that in case we restart we only wait for the
552 (pthread_cond_timedwait_relative_new): Likewise.
553 Patch by khendricks@ivey.uwo.ca (PR libc/1561).
555 2000-01-18 Ulrich Drepper <drepper@cygnus.com>
557 * manager.c (pthread_allocate_stack): Compute guard page address
558 correctly. Patch by HJ Lu.
560 * sysdeps/pthread/pthread.h: Define
561 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP.
563 2000-01-16 Ulrich Drepper <drepper@cygnus.com>
565 * rwlock.c (pthread_rwlock_unlock): Correct one more problem with
567 (pthread_rwlockattr_setkind_np): Allow
568 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP.
569 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
571 2000-01-12 Ulrich Drepper <drepper@cygnus.com>
573 * internals.h (pthread_readlock_info): New structure.
574 (_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
575 p_untracked_readlock_count.
576 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
577 Add initializers for new fields.
578 * manager.c (pthread_free): Free read/write lock lists.
579 * queue.h (queue_is_empty): New function.
580 * rwlock.c: Implement requirements about when readers should get
582 * sysdeps/pthread/pthread.h
583 (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
584 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_rwlock_t):
585 Define this name as well.
586 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
588 2000-01-05 Ulrich Drepper <drepper@cygnus.com>
590 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
591 Adjust initializers for struct _pthread_descr_struct change.
592 * internals.h (struct _pthread_descr_struct): Move new elements to
595 2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
597 Redesigned how cancellation unblocks a thread from internal
598 cancellation points (sem_wait, pthread_join,
599 pthread_cond_{wait,timedwait}).
600 Cancellation won't eat a signal in any of these functions
601 (*required* by POSIX and Single Unix Spec!).
602 * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
603 simultaneous condition variable signal (not required by POSIX
604 or Single Unix Spec, but nice).
605 * spinlock.c: __pthread_lock queues back any received restarts
606 that don't belong to it instead of assuming ownership of lock
607 upon any restart; fastlock can no longer be acquired by two threads
609 * restart.h: Restarts queue even on kernels that don't have
610 queued real time signals (2.0, early 2.1), thanks to atomic counter,
611 avoiding a rare race condition in pthread_cond_timedwait.
613 1999-12-31 Andreas Jaeger <aj@suse.de>
615 * internals.h: Remove duplicate prototype declarations.
617 * weaks.c: Remove __THROW from prototypes since the file is not
618 compiled by a C++ compiler.
619 * internals.h: Likewise.
621 1999-12-30 Andreas Jaeger <aj@suse.de>
623 * sysdeps/pthread/pthread.h: Move internal functions to...
624 * sysdeps/pthread/bits/libc-lock.h: ...here.
626 1999-12-29 Andreas Jaeger <aj@suse.de>
628 * sysdeps/pthread/pthread.h: Fix typos, reformat comments.
630 1999-12-28 Ulrich Drepper <drepper@cygnus.com>
632 * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
635 * manager.c (__pthread_start): Add one more cast to prevent
636 warning on 64bit machines.
638 1999-12-21 Ulrich Drepper <drepper@cygnus.com>
640 * manager.c (pthread_handle_create): Set p_pid of new thread
641 before calling the callback function to report a new thread.
643 1999-12-20 Andreas Jaeger <aj@suse.de>
645 * pthread.c (pthread_initialize): Move getrlimit call after
648 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
650 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
651 pwrite64, lseek64, open64, and __open64.
652 * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
653 pwrite64, lseek64, open64, and __open64.
655 * manager.c (pthread_allocate_stack): Correct computation of
656 new_thread_bottom. Correct handling of stack size and when the
657 rlimit method to guard for stack growth is used.
658 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
659 minus one pagesize (not two).
661 1999-12-03 Andreas Jaeger <aj@suse.de>
663 * Versions: Add __res_state with version GLIBC_2.2.
665 * errno.c (__res_state): New function to return thread specific
668 * pthread.c (pthread_initialize): Initialize p_resp.
669 (__pthread_reset_main_thread): Also set p_resp.
671 * manager.c (pthread_handle_create): Initialize p_resp.
673 * internals.h: Add thread specific resolver state.
674 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
676 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
678 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
680 * sysdeps/i386/i686/pt-machine.h: Likewise.
681 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
683 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
685 * manager.c (pthread_start_thread_event): Initialize p_pid already
688 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
690 * internals.h: Add prototype for __pthread_manager_event.
691 * manager.c (__pthread_manager_event): New function.
692 (pthread_start_thread_event): Correct computation of self.
693 Use INIT_THREAD_SELF.
694 * pthread.c (__pthread_manager_thread): Initialize p_lock.
695 (__pthread_initialize_manager): Respect event flags also for creation
696 of the manager thread.
698 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
700 * pthread.c (__pthread_initialize_manager): Initialize
701 __pthread_manager_thread.p_tid.
703 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
705 * internals.h: Declare __pthread_last_event.
706 * manager.c: Define __pthread_last_event.
707 (pthread_handle_create): Set __pthread_last_event.
708 (pthread_exited): Likewise.
709 * join.c (pthread_exit): Likewise.
711 * Makefile (libpthread-routines): Add events.
712 * events.c: New file.
713 * internals.h: Protect against multiple inclusion.
714 Include thread_dbP.h header.
715 (struct _pthread_descr_struct): Add new fields p_report_events and
717 Declare event reporting functions.
718 * join.c (pthread_exit): Signal event if this is wanted.
719 * manager.c (__pthread_threads_events): New variable.
720 (pthread_handle_create): Take new parameters with event information.
721 Signal TD_CREATE event if wanted.
722 (__pthread_manager): Adjust pthread_handle_create call.
723 (pthread_start_thread_event): New function. Block until manager is
724 finished and then call pthread_start_thread.
725 (pthread_exited): Signal TD_REAP event if wanted.
727 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
729 * restart.h (suspend_with_cancellation): Rewrite as a macro.
731 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
733 1999-10-25 Andreas Jaeger <aj@suse.de>
735 * internals.h: Remove K&R compatibility.
736 * no-tsd.c: Likewise.
737 * semaphore.h: Likewise.
738 * signals.c: Likewise.
739 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
740 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
743 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
745 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
746 and pthread_handle_sigcancel with functions that restore
747 %gs from the signal context. For each signal handling function,
748 two wrappers are required, one for a non-RT signal and one for
750 * linuxthreads/signal.c: For i386, add code to restore %gs
751 from the signal context in pthread_sighandler and
752 pthread_sighandler_rt.
754 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
756 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
758 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
760 * pthread.c (__pthread_initial_thread): Pass argument to
761 PTHREAD_START_ARGS_INITIALIZER.
762 (__pthread_manager_thread): Likewise.
764 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
767 * manager.c (pthread_handle_create): Remove p_startfct initialization.
769 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
771 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
773 * internals.h: Correct return types for __libc_read and __libc_write.
775 1999-10-09 Andreas Jaeger <aj@suse.de>
777 * internals.h: Add __new_sem_post to get prototype in
778 manager.c; include semaphore.h for needed types.
780 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
782 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
783 directly instead of calling sem_post which should not be necessary
784 but is faster and might help in some case to work around problems.
785 Patch by khendricks@ivey.uwo.ca [libc/1382].
787 1999-10-08 Andreas Schwab <schwab@suse.de>
789 * sysdeps/pthread/Subdirs: New file.
792 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
795 * internals.h (struct _pthread_descr_struct): Add p_startfct.
796 * manager.c (pthread_handle_create): Initialize p_startfct.
797 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
799 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
801 * manager.c (__linuxthreads_pthread_threads_max): New variable.
802 * specific.c (__linuxthreads_pthread_keys_max): New variable.
803 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
805 * condvar.c (pthread_cond_timedwait_relative): Never return with
806 EINTR. Patch by Andreas Schwab.
808 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
810 * signals.c (sigaction): Correct last patch. Don't select
811 pthread_sighandler_rt based on the signal number but instead of
814 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
816 * specific.c: Move definitions of struct pthread_key_struct and
817 destr_function to ...
818 * internals.h: ...here.
820 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
822 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
823 this instead of pthread_handle_sigrestart if the signal is an RT
826 * signals.c: Handle passing through of sighandler arguments also
827 for real-time signals.
829 1999-09-03 Andreas Schwab <schwab@suse.de>
831 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
833 (__vfork): New function, alias vfork.
834 * Versions: Export __fork, vfork, and __vfork in libpthread.
836 1999-08-23 Andreas Schwab <schwab@suse.de>
838 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
839 call to signal handler.
841 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
843 * pthread.c (__pthread_reset_main_thread): Undo last change.
844 (__pthread_kill_other_threads_np): Reset signal handlers for the
845 signals we used in the thread implementation here.
847 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
849 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
850 for the signals we used in the thread implementation [PR libc/1234].
852 * Versions: Export __pthread_kill_other_threads_np from libpthread
855 * signals.c: Pass sigcontext through wrapper to the user function.
857 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
859 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
860 __libc_internal_tsd_set.
862 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
864 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
867 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
869 * internals.h: Align _pthread_descr_struct to 32 bytes.
870 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
873 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
875 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
878 1999-07-09 Cristian Gafton <gafton@redhat.com>
880 * Makefile (libpthread-routines): Add oldsemaphore routine.
881 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
882 sem_trywait, and sem_wait to GLIBC_2.1.
883 * oldsemaphore.c: New file.
884 * semaphore.c: Add default_symbol_versions for the changed functions.
885 (__new_sem_init): Rename from sem_init.
886 (__new_sem_post): Rename from sem_post.
887 (__new_sem_wait): Rename from sem_wait.
888 (__new_sem_trywait): Rename from sem_trywait.
889 (__new_sem_getvalue): Rename from sem_getvalue.
890 (__new_sem_destroy): Rename from sem_destroy.
892 1999-06-23 Robey Pointer <robey@netscape.com>
894 * internals.h: Added p_nextlock entry to separate queueing for a
895 lock from queueing for a CV (sometimes a thread queues on a lock
896 to serialize removing itself from a CV queue).
897 * pthread.c: Added p_nextlock to initializers.
898 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
900 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
902 * manager.c (pthread_handle_create): Free mmap region after stack
903 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
905 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
907 * man/pthread_cond_init.man: Correct example.
908 Reported by Tomas Berndtsson <tomas@nocrew.org>.
910 * linuxthreads.texi (Condition Variables): Likewise.
912 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
914 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
915 casx not cas, also successful casx returns the old value in rd
916 and not the new value.
918 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
920 * manager.c: If pthread_create() is given a NULL attribute
921 and the thread manager runs with a realtime policy, set the
922 scheduling policy of the newly created thread back to SCHED_OTHER.
923 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
924 initialize the schedpolicy field of new_thread->p_start_args
925 to that of the calling thread.
927 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
929 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
930 instruction does not allow memory element to use offset.
932 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
934 * manager.c (pthread_allocate_stack): Optimize initialization of new
937 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
938 Don't use initializer since it is all zeroes.
939 (__libc_once_define): Likewise.
941 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
943 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
944 doesn't exist anymore.
945 * sysdeps/i386/Implies: Likewise.
946 * sysdeps/m68k/Implies: Likewise.
947 * sysdeps/mips/Implies: Likewise.
948 * sysdeps/powerpc/Implies: Likewise.
949 * sysdeps/sparc/sparc32/Implies: Likewise.
950 * sysdeps/sparc/sparc64/Implies: Likewise.
952 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
954 * sysdeps/alpha/bits/semaphore.h: Removed.
955 * sysdeps/powerpc/bits/semaphore.h: Removed.
956 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
957 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
958 * Makefile (headers): Remove bits/semaphore.h.
960 * semaphore.h: Define _pthread_descr if necessary.
961 Don't include limits.h. Define SEM_VALUE_MAX directly.
963 (sem_t): Protect element names with leading __.
964 Add declarations for sem_close, sem_open, and sem_unlink.
965 * semaphore.c: Adjust all functions for new element names.
966 Define sem_close, sem_open, and sem_unlink.
967 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
969 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
972 1999-03-16 H.J. Lu <hjl@gnu.org>
974 * specific.c (pthread_key_delete): Check th->p_terminated to see
975 if the thread is running.
977 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
978 Added to GLIBC_2.0 for libc.so.
980 1999-02-12 H.J. Lu <hjl@gnu.org>
982 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
983 __libc_allocate_rtsig): Added to GLIBC_2.1.
985 * internals.h (DEFAULT_SIG_RESTART): Removed.
986 (DEFAULT_SIG_CANCEL): Removed.
988 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
989 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
990 (__pthread_sig_restart, __pthread_sig_cancel,
991 __pthread_sig_debug): Initialized.
992 (pthread_initialize): Call init_rtsigs () to initialize
995 1999-02-03 H.J. Lu <hjl@gnu.org>
997 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
998 Don't restart the thread which sent REQ_DEBUG.
999 (pthread_start_thread): Check if __pthread_sig_debug > 0
1002 * pthread.c (__pthread_initialize_manager): Suspend ourself
1003 after sending __pthread_sig_debug to gdb instead of
1004 __pthread_sig_cancel.
1006 1999-01-24 H.J. Lu <hjl@gnu.org>
1008 * manager.c (__pthread_manager): Delete __pthread_sig_debug
1009 from mask if __pthread_sig_debug > 0.
1010 (pthread_handle_create): Increment __pthread_handles_num.
1012 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
1013 * pthread.c (__pthread_initialize_manager): Likewise.
1015 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
1016 instead of __libc_allocate_rtsig (2).
1017 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
1018 instead of __pthread_sig_cancel.
1019 (pthread_handle_sigdebug): Fix comments.
1021 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
1023 * manager.c (pthread_allocate_stack): Set
1024 __pthread_nonstandard_stacks if user-specified stack is used.
1026 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
1028 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
1029 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
1031 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
1033 * pthread.c: Use a third signal __pthread_sig_debug distinct
1034 from __pthread_sig_cancel to notify gdb when a thread is
1036 * manager.c: Likewise.
1037 * internals.h: Likewise.
1038 * signals.c: The implementation of sigwait(s) assumed that
1039 all signals in s have signal handlers already attached.
1040 This is not required by the standard, so make it work
1041 also if some of the signals have no handlers.
1043 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1045 * linuxthreads.texi: Remove pointers from first @node. Move old
1046 @node spec inside comment.
1048 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
1050 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
1053 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
1055 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
1056 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
1058 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
1060 * manager.c: Threads now send __pthread_sig_cancel on termination.
1061 Change clone call and signal masks.
1062 * thread.c (pthread_handle_sigrestart): Remove special code for
1064 (pthread_handle_sigcancel): In manager thread call
1065 __pthread_manager_sighandler.
1066 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
1067 * sysdeps/i386/i686/pt-machine.h: Likewise.
1068 Patches by Xavier Leroy.
1070 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
1072 * spinlock.c (__pthread_unlock): Don't crash if called for an
1073 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
1075 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
1078 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
1080 * Examples/ex3.c: Wait until all threads are started before
1081 searching for the number to avoid race condition on very fast
1084 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1086 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
1087 declaration since it's not needed.
1089 * sysdeps/pthread/pthread.h: Move internal functions to ...
1090 * internals.h: ...here.
1092 1998-12-02 H.J. Lu <hjl@gnu.org>
1094 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
1095 SIGRTMIN is defined.
1096 (__pthread_sig_cancel): Likewise.
1098 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1100 * wrapsyscall.c: Include <sys/mman.h> for msync,
1101 <stdlib.h> for system and <termios.h> for tcdrain prototype.
1102 Correct msync declaration.
1104 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
1106 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
1107 __libc_tsd_set): New macros for new interface.
1108 * no-tsd.c: New file, provide uninitialized defns of
1109 __libc_internal_tsd_get and __libc_internal_tsd_set.
1110 * Makefile (routines): Add no-tsd.
1112 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
1114 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
1115 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
1116 __libc_internal_tsd_set): Move decls to ...
1117 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
1120 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
1121 __libc_internal_tsd_set): Make these pointers to functions, not
1122 functions; remove #pragma weak decls for them.
1123 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
1124 Define static functions and initialized pointers to them.
1126 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
1128 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
1129 (CFLAGS-specific.c): Likewise.
1130 (CFLAGS-pthread.c): Likewise.
1131 (CFLAGS-ptfork.c): Likewise.
1132 (CFLAGS-cancel.c): Likewise.
1133 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
1134 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
1136 * mutex.c (pthread_mutex_init): Define as strong symbol.
1137 (pthread_mutex_destroy): Likewise.
1138 (pthread_mutex_trylock): Likewise.
1139 (pthread_mutex_lock): Likewise.
1140 (pthread_mutex_unlock): Likewise.
1141 (pthread_mutexattr_init): Likewise.
1142 (pthread_mutexattr_destroy): Likewise.
1143 (pthread_once): Likewise.
1144 * ptfork.c (pthread_atfork): Likewise.
1145 * specific.c (pthread_key_create): Likewise.
1146 (pthread_setspecific): Likewise.
1147 (pthread_getspecific): Likewise.
1149 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1151 * linuxthreads.texi: Fix punctuation after xref.
1153 1998-11-10 H.J. Lu <hjl@gnu.org>
1155 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
1156 if it is defined in <linux/limits.h>.
1158 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
1160 * spinlock.h (__pthread_trylock): Define inline.
1161 (__pthread_lock): Add extra parameter to declaration. Declare
1162 using internal_function.
1163 (__pthread_unlock): Declare using internal_function.
1164 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
1165 of local variable self. Avoid recomputing self. Define using
1167 (__pthread_trylock): Remove.
1168 (__pthread_unlock): Define using internal_function.
1169 * cancel.c: Adjust for __pthread_lock interface change. Use already
1170 computed self value is possible.
1171 * condvar.c: Likewise.
1173 * manager.c: Likewise.
1174 * mutex.c: Likewise.
1175 * pthread.c: Likewise.
1176 * rwlock.c: Likewise.
1177 * semaphore.c: Likewise.
1178 * signals.c: Likewise.
1180 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
1182 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
1183 __ to field names of the struct.
1184 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
1186 (pthread_attr_t): Likewise.
1187 (pthread_cond_t): Likewise.
1188 (pthread_condattr_t): Likewise.
1189 (pthread_mutex_t): Likewise.
1190 (pthread_mutexattr_t): Likewise.
1191 (pthread_rwlock_t): Likewise.
1192 (pthread_rwlockattr_t): Likewise.
1193 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
1194 * cancel.c: Likewise.
1195 * condvar.c: Likewise.
1196 * manager.c: Likewise.
1197 * mutex.c: Likewise.
1198 * pthread.c: Likewise.
1199 * ptlongjmp.c: Likewise.
1200 * rwlock.c: Likewise.
1201 * spinlock.c: Likewise.
1203 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
1205 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
1208 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
1211 * Makefile (libpthread-routines): Add pt-machine.
1212 * pt-machine.c: New file.
1213 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
1214 yet defined. Use PT_EI in extern inline definitions.
1215 * sysdeps/arm/pt-machine.h: Likewise.
1216 * sysdeps/i386/pt-machine.h: Likewise.
1217 * sysdeps/i386/i686/pt-machine.h: Likewise.
1218 * sysdeps/m68k/pt-machine.h: Likewise.
1219 * sysdeps/mips/pt-machine.h: Likewise.
1220 * sysdeps/powerpc/pt-machine.h: Likewise.
1221 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
1222 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1224 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1226 * semaphore.h: Include <sys/types.h> so that _pthread_descr
1229 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
1231 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
1233 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
1235 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1237 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
1238 multiple inclusion guard.
1240 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1242 * signals.c (sigaction): Check that sig is less than NSIG to avoid
1243 array index overflow.
1245 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
1247 * sysdeps/pthread/semaphore.h: New file.
1249 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
1251 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
1252 _LIBC_TSD_KEY_DL_ERROR.
1254 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
1256 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
1257 * sysdeps/i386/pt-machine.h: Likewise.
1258 Suggested by Roland McGrath.
1260 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
1262 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
1263 access thread data with non-constant offsets.
1264 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
1267 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
1268 THREAD_SETMEM_NC definitions.
1270 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
1272 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1274 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
1276 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
1277 not already defined.
1278 (struct _pthread_descr_struct): Add p_self and p_nr field.
1279 * manager.c (__pthread_handles): Define second element to point
1281 (__pthread_handles_num): Initialize to 2.
1282 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
1283 (pthread_start_thread): Likewise.
1284 (pthread_handle_create): Start search for free slot at entry 2.
1285 Initialize new fields p_self and p_nr.
1286 Call __clone with CLONE_PTRACE if available.
1287 (pthread_free): Call FREE_THREAD_SELF if available.
1288 * pthread.c (__pthread_initial_thread): Initialize new fields.
1289 (__pthread_manager_thread): Likewise.
1290 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
1292 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
1293 elements of the thread descriptor.
1294 * condvar.c: Likewise.
1295 * errno.c: Likewise.
1297 * manager.c: Likewise.
1298 * pthread.c: Likewise.
1299 * ptlongjmp.c: Likewise.
1300 * semaphore.c: Likewise.
1301 * signals.c: Likewise.
1302 * specific.c: Likewise.
1303 * spinlock.c: Likewise.
1305 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
1307 * sysdeps/i386/useldt.h: New file.
1308 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
1310 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
1311 THREAD_SETMEM using __thread_self.
1312 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1314 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
1316 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
1317 turned out that we didn't need to queue after all.
1319 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
1321 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
1322 and wastes space; correct types.
1324 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
1326 * signals.c (sigaction): Handle NULL argument.
1328 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
1330 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
1333 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1335 * Makefile (linuxthreads-version): Extract correct number from
1338 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
1340 * Banner: Bump version number to 0.8
1341 * FAQ.html: Many updates, in particular w.r.t. debugging.
1342 * manager.c: Support for non-default stacksize for
1343 LinuxThreads-allocated stacks;
1344 don't use guard pages for stacks with default size, rely on
1345 rlimit(RLIMIT_STACK) instead (it's cheaper).
1347 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
1348 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
1349 * condvar.c: Likewise.
1350 * internals.h: Likewise.
1351 * restart.h: Likewise.
1352 * signals.c: Likewise.
1353 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
1355 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1357 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
1358 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
1359 * Versions: Put __pthread_mutexattr_settype under version
1360 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
1361 __pthread_mutexattr_gettype.
1363 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1365 * sysdeps/pthread/bits/libc-lock.h: Make
1366 __pthread_mutexattr_settype weak. Don't make
1367 __pthread_mutexattr_setkind_np weak.
1369 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
1371 * manager.c (pthread_handle_create): Check whether sched_setscheduler
1372 call can succeed here.
1374 * mutex.c: Define __pthread_mutexattr_settype and make
1375 __pthread_mutexattr_setkind_np an alias.
1376 Likewise for __pthread_mutexattr_gettype.
1378 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1380 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
1383 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
1385 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
1387 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1389 * Examples/ex6.c: Include <unistd.h> for usleep.
1391 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1393 * Examples/ex4.c (main): Use exit, not pthread_exit.
1395 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
1397 * Versions: Add __pthread_mutexattr_gettype and
1398 __pthread_mutexattr_settype.
1399 * lockfile.c: Use __pthread_mutexattr_settype instead of
1400 __pthread_mutexattr_setkind_np.
1401 * mutex.c: Define __pthread_mutexattr_gettype and
1402 __pthread_mutexattr_settype.
1404 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
1405 __pthread_mutexattr_settype.
1406 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
1407 Use __pthread_mutexattr_settype.
1409 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
1411 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
1412 * mutex.c: Define weak alias pthread_mutexattr_gettype and
1413 pthread_mutexattr_settype.
1414 * sysdeps/pthread/pthread.h: Declare these functions.
1415 Move pthread_sigmask and pthread_kill declaration in separate header.
1416 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
1418 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
1420 * Makefile: Add rules to compile and run tests.
1421 * Examples/ex1.c: Little changes to fix warnings.
1422 * Examples/ex2.c: Likewise.
1423 * Examples/ex3.c: Likewise.
1424 * Examples/ex4.c: Likewise.
1425 * Examples/ex5.c: Likewise.
1426 * Examples/ex6.c: New file.
1428 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
1430 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
1432 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1434 * attr.c: Include <string.h>.
1436 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
1438 * attr.c: Include errno.h. Use memcpy to copy sched_param.
1439 * internals.h: Include limits.h.
1440 * manager.c: Use memcpy to copy sched_param.
1441 * ptfork.c: Include errno.h.
1442 * pthread.c: Likewise.
1443 * semaphore.c: Likewise.
1444 * specific.c: Likewise.
1445 * spinlock.h: Likewise.
1446 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
1447 type definition to ...
1448 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
1450 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
1452 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
1454 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
1455 as macros as demanded in POSIX.1, Annex C.
1457 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
1459 * internals.h (struct pthread_request): For free use pthread_t
1460 instead of pthread_descr.
1461 * join.c (pthread_join): Pass thread_id, not th to manager.
1462 (pthread_detach): Likewise.
1463 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
1464 (pthread_exited): Remove detached queue code.
1465 (pthread_handle_free): Expect thread ID parameter and use it to
1466 validate the thread decsriptor. Don't use detached queue.
1467 Patches by Xavier Leroy.
1469 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1471 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
1472 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
1473 __pthread_atfork, __pthread_key_create, __pthread_once.
1474 * internals.h: Doc fix.
1475 * pthread.c (__pthread_initialize): Define again.
1477 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
1479 * manager.c (pthread_exited): If thread is not detached put it on
1481 (pthread_handle_free): If thread is not on list with living threads
1482 search on list with detached threads.
1484 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
1485 for new definition of pthread_rwlock_t.
1487 * spinlock.c: Correct test whether to compile
1488 __pthread_compare_and_swap or not.
1490 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
1492 * attr.c: Finish user stack support. Change locking code to be safe
1493 in situations with different priorities.
1494 * cancel.c: Likewise.
1495 * condvar.c: Likewise.
1496 * internals.h: Likewise.
1498 * manager.c: Likewise.
1499 * mutex.c: Likewise.
1500 * pthread.c: Likewise.
1501 * ptlongjmp.c: Likewise.
1502 * queue.h: Likewise.
1503 * rwlock.c: Likewise.
1504 * semaphore.c: Likewise.
1505 * semaphore.h: Likewise.
1506 * signals.c: Likewise.
1507 * spinlock.c: Likewise.
1508 * spinlock.h: Likewise.
1509 * sysdeps/pthread/pthread.h: Likewise.
1510 Patches by Xavier Leroy.
1512 * sysdeps/i386/i686/pt-machine.h: New file.
1514 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
1516 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
1517 [sg]et_stackaddr prototypes always available.
1519 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1520 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
1522 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
1524 * manager.c (pthread_free): Undo patch from 980430.
1525 Reported by David Wragg <dpw@doc.ic.ac.uk>.
1527 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
1529 * manager.c: Define __pthread_manager_adjust_prio and use it to
1530 increase priority when needed.
1531 * internals.h: Add prototype for __pthread_manager_adjust_prio.
1532 * mutex.c: Optimize mutexes to wake up only one thread.
1533 * pthread.c: Move PID of manager for global variable in structure
1535 Patches by Xavier Leroy.
1537 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
1539 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
1541 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1543 * attr.c: Correct typo.
1545 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
1547 * manager.c (pthread_free): Unmap guard before the stack.
1548 Patch by Matthias Urlichs.
1550 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
1552 * manager.c (pthread_free): Detect already free child.
1553 Patch by Xavier Leroy, reported by Matthias Urlichs.
1555 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1557 * Makefile (linuxthreads-version): Renamed back from
1560 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
1562 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
1565 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
1567 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
1568 * internals.h: Add definitions for new spinlock implementation.
1569 * ptlongjmp.c: New file.
1570 * spinlock.c: New file.
1571 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
1572 new function __pthread_acquire to prevent deadlocks with thread
1573 with different priorities.
1574 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
1576 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1578 * manager.c (__pthread_manager): Reduce first argument to select
1579 to include just the needed file descriptor.
1581 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
1583 * manager.c: Fix last patch which caused core dumps.
1585 * pthread.c: Correctly handle missing SIGRTMIN.
1587 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1589 * libpthread.map: Add __libc_internal_tsd_get and
1590 __libc_internal_tsd_set. Add missing cancelable functions. Export
1591 libc internal versions of the cancelable functions.
1593 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
1595 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
1597 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
1599 * attr.c: Implement pthread_attr_[gs]etguardsize,
1600 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
1601 Change pthread_attr_init to have two interfaces.
1602 * internals.h (struct _pthread_descr_struct): Add new fields for
1604 * libpthread.map: Add names in GLIBC_2.1 section.
1605 * manager.c (pthread_handle_create): Implement guardsize and
1607 (pthread_free): Likewise.
1608 * pthread.c (pthread_create): Add new interface for changed
1610 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
1611 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
1614 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
1616 * manager.c: Enable resetting of the thread scheduling policy
1617 to SCHED_OTHER when the parent thread has a different one.
1619 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
1621 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1622 _POSIX_ASYNCHRONOUS_IO.
1624 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
1626 * mutex.c: Implement new mutex types.
1628 * internals.h: Include <signal.h>.
1630 * libpthread.map: Add __erno_location and __h_errno_location.
1632 * errno.c: Return pointer to variable actually in use. This might
1633 not be the one in the thread structure.
1634 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
1636 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
1637 of manager thread structure.
1638 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
1640 * pthread.c: Adapt initializer for thread structures.
1641 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
1642 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
1643 current thread to global variables.
1645 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
1647 * rwlock.c: New file.
1648 * Makefile (libpthread-routines): Add rwlock.
1649 * sysdeps/pthread/pthread.h: Define data structures and declare
1651 * libpthread.map: Add new functions.
1653 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1655 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1656 * sysdeps/arm/Implies: likewise.
1657 * README: Document it.
1659 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1661 * signals.c: Remove unneeded initializer for sigwaited, saving a
1664 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1666 * semaphore.c (sem_init): Set sem_spinlock only if available.
1668 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1670 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1671 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1673 * Makefile: Update from LinuxThreads 0.7.
1674 * internals.h. Likewise.
1675 * manager.c: Likewise.
1676 * mutex.c: Likewise.
1677 * pthread.c: Likewise.
1678 * signals.c: Likewise.
1679 * specific.c: Likewise.
1680 * Examples/ex3.c: Likewise.
1682 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1684 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1687 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1689 * wrapsyscall.c: Add socket functions which are also cancelation
1692 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1694 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1695 New functions for fast thread specific data within libc.
1697 * internals.h: Add new array p_libc_specific to struct
1698 _pthread_descr_struct.
1700 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1702 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1704 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1705 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1707 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1709 * internals.h (struct _pthread_descr_struct): Add definitions for
1710 two-level specific key handling.
1711 * manager.c (pthread_handle_create): Initialize specific memory array.
1712 * specific.c: Implement two-level key handling.
1713 * weaks.c: Don't provide dummy key handling.
1714 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1715 Add definition of __libc_key_t.
1716 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1718 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1719 PTHREAD_DESTRUCTOR_ITERATIONS.
1721 * manager.c (pthread_handle_create): Compare mmap result with
1724 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1725 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1727 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1729 sysdeps/sparc -> sysdeps/sparc/sparc32
1730 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1732 * internals.h: Change definition of THREAD_SELF to be an expression,
1733 not a statement that did a return.
1734 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1735 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1736 Follow Solaris and use a "system reserved" register (%g6) to hold
1737 the thread descriptor.
1738 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1740 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1742 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1743 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1744 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1746 * semaphore.c: Include spinlock.h only when needed.
1748 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1749 keys for entries not in use.
1751 * weaks.c: Implement key handling functions for real.
1753 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1755 Initial sparc64-linux support:
1756 * linuxthreads/sysdeps/sparc64/Implies: New file.
1757 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1759 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1761 * semaphore.c: Include spinlock.h at correct place.
1764 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1766 The Great Bit File Move:
1767 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1768 * sysdeps/powerpc/semaphorebits.h: Likewise.
1769 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1770 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1771 * sysdeps/pthread/libc-lock.h: -> bits/
1772 * sysdeps/pthread/stdio-lock.h: Likewise.
1773 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1774 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1775 * semaphore.h: Likewise.
1776 * sysdeps/pthread/pthread.h: Likewise.
1778 * lockfile.c: <foo.h> -> <bits/foo.h>.
1779 * semaphore.h: Likewise.
1781 * Makefile: (headers): foo.h -> bits/foo.h.
1782 * sysdeps/pthread/Makefile: Likewise.
1784 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1786 * semaphore.c (sem_init): Set sem_spinlock only if available.
1788 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1791 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1793 Update from LinuxThreads 0.6.
1795 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1796 and __sched_get_priority_min instead of names without `__'.
1798 * manager.c: Rewrite large parts to implement opaque pthread_t.
1800 * cancel.c: Adapt for opaque pthread_t type.
1801 * condvar.c: Likewise.
1802 * errno.c: Likewise.
1804 * mutex.c: Likewise.
1805 * pthread.c: Likewise.
1806 * signals.c: Likewise.
1807 * specific.c: Likewise.
1808 * restart.h: Likewise.
1809 * queue.h: Likewise.
1810 * Examples/ex3.c: Likewise.
1811 * Examples/ex4.c: Likewise.
1812 * sysdeps/pthread/pthread.h: Likewise.
1814 * pthread.c: Accumulate time for all threads in thread manager.
1816 * semaphore.c: Implement fallback implementation for architectures
1817 sometimes missing compare-exchange operations.
1819 * cancel.c (pthread_cancel): Validate handle argument.
1820 * join.c (pthread_join): Likewise.
1821 (pthread_detach): Likewise.
1822 * signals.c (pthread_kill): Likewise.
1824 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1826 * queue.h (enqueue): Enqueue thread according to priority.
1828 * internals.c (struct pthread_start_args): New struct for passing
1829 args to cloning function.
1830 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1833 * Examples/Makefile (clean): Pass -f option to rm.
1835 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1836 and define TEST_FOR_COMPARE_AND_SWAP.
1837 * sysdeps/i386/i486/pt-machine.h: Removed.
1839 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1842 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1844 * restart.h (suspend): Clear p_signal before suspending.
1845 (suspend_with_cancellation): Likewise.
1846 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1848 * weaks.c: Make __pthread_key_create return 1.
1849 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1850 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1851 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1854 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1856 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1858 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1860 * sysdeps/powerpc/Implies: Added.
1861 * sysdeps/powerpc/pt-machine.h: Added.
1862 * sysdeps/powerpc/semaphorebits.h: Added.
1864 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1866 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1868 (__pthread_manager_thread): Likewise.
1869 Reported by Andreas Jaeger.
1871 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1873 Since sigset_t no longer fits in a register, we can't pass in the
1874 thread's initial mask so easily. Take this opportunity to simplify
1875 the clone implementation by only accepting a single void* argument.
1877 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1878 in the thread struct instead of as arguments through clone.
1879 (pthread_start_thread): Look for them there.
1880 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1881 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1882 * linuxthreads/pthread.c (pthread_initialize_manager): Revise