1 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
3 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
4 (CFLAGS-specific.c): Likewise.
5 (CFLAGS-pthread.c): Likewise.
6 (CFLAGS-ptfork.c): Likewise.
7 (CFLAGS-cancel.c): Likewise.
8 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
9 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
11 * mutex.c (pthread_mutex_init): Define as strong symbol.
12 (pthread_mutex_destroy): Likewise.
13 (pthread_mutex_trylock): Likewise.
14 (pthread_mutex_lock): Likewise.
15 (pthread_mutex_unlock): Likewise.
16 (pthread_mutexattr_init): Likewise.
17 (pthread_mutexattr_destroy): Likewise.
18 (pthread_once): Likewise.
19 * ptfork.c (pthread_atfork): Likewise.
20 * specific.c (pthread_key_create): Likewise.
21 (pthread_setspecific): Likewise.
22 (pthread_getspecific): Likewise.
24 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
26 * linuxthreads.texi: Fix punctuation after xref.
28 1998-11-10 H.J. Lu <hjl@gnu.org>
30 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
31 if it is defined in <linux/limits.h>.
33 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
35 * spinlock.h (__pthread_trylock): Define inline.
36 (__pthread_lock): Add extra parameter to declaration. Declare
37 using internal_function.
38 (__pthread_unlock): Declare using internal_function.
39 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
40 of local variable self. Avoid recomputing self. Define using
42 (__pthread_trylock): Remove.
43 (__pthread_unlock): Define using internal_function.
44 * cancel.c: Adjust for __pthread_lock interface change. Use already
45 computed self value is possible.
46 * condvar.c: Likewise.
48 * manager.c: Likewise.
50 * pthread.c: Likewise.
52 * semaphore.c: Likewise.
53 * signals.c: Likewise.
55 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
57 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
58 __ to field names of the struct.
59 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
61 (pthread_attr_t): Likewise.
62 (pthread_cond_t): Likewise.
63 (pthread_condattr_t): Likewise.
64 (pthread_mutex_t): Likewise.
65 (pthread_mutexattr_t): Likewise.
66 (pthread_rwlock_t): Likewise.
67 (pthread_rwlockattr_t): Likewise.
68 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
70 * condvar.c: Likewise.
71 * manager.c: Likewise.
73 * pthread.c: Likewise.
74 * ptlongjmp.c: Likewise.
76 * spinlock.c: Likewise.
78 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
80 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
83 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
86 * Makefile (libpthread-routines): Add pt-machine.
87 * pt-machine.c: New file.
88 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
89 yet defined. Use PT_EI in extern inline definitions.
90 * sysdeps/arm/pt-machine.h: Likewise.
91 * sysdeps/i386/pt-machine.h: Likewise.
92 * sysdeps/i386/i686/pt-machine.h: Likewise.
93 * sysdeps/m68k/pt-machine.h: Likewise.
94 * sysdeps/mips/pt-machine.h: Likewise.
95 * sysdeps/powerpc/pt-machine.h: Likewise.
96 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
97 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
99 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
101 * semaphore.h: Include <sys/types.h> so that _pthread_descr
104 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
106 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
108 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
110 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
112 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
113 multiple inclusion guard.
115 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
117 * signals.c (sigaction): Check that sig is less than NSIG to avoid
118 array index overflow.
120 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
122 * sysdeps/pthread/semaphore.h: New file.
124 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
126 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
127 _LIBC_TSD_KEY_DL_ERROR.
129 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
131 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
132 * sysdeps/i386/pt-machine.h: Likewise.
133 Suggested by Roland McGrath.
135 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
137 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
138 access thread data with non-constant offsets.
139 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
142 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
143 THREAD_SETMEM_NC definitions.
145 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
147 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
149 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
151 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
153 (struct _pthread_descr_struct): Add p_self and p_nr field.
154 * manager.c (__pthread_handles): Define second element to point
156 (__pthread_handles_num): Initialize to 2.
157 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
158 (pthread_start_thread): Likewise.
159 (pthread_handle_create): Start search for free slot at entry 2.
160 Initialize new fields p_self and p_nr.
161 Call __clone with CLONE_PTRACE if available.
162 (pthread_free): Call FREE_THREAD_SELF if available.
163 * pthread.c (__pthread_initial_thread): Initialize new fields.
164 (__pthread_manager_thread): Likewise.
165 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
167 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
168 elements of the thread descriptor.
169 * condvar.c: Likewise.
172 * manager.c: Likewise.
173 * pthread.c: Likewise.
174 * ptlongjmp.c: Likewise.
175 * semaphore.c: Likewise.
176 * signals.c: Likewise.
177 * specific.c: Likewise.
178 * spinlock.c: Likewise.
180 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
182 * sysdeps/i386/useldt.h: New file.
183 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
185 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
186 THREAD_SETMEM using __thread_self.
187 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
189 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
191 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
192 turned out that we didn't need to queue after all.
194 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
196 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
197 and wastes space; correct types.
199 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
201 * signals.c (sigaction): Handle NULL argument.
203 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
205 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
208 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
210 * Makefile (linuxthreads-version): Extract correct number from
213 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
215 * Banner: Bump version number to 0.8
216 * FAQ.html: Many updates, in particular w.r.t. debugging.
217 * manager.c: Support for non-default stacksize for
218 LinuxThreads-allocated stacks;
219 don't use guard pages for stacks with default size, rely on
220 rlimit(RLIMIT_STACK) instead (it's cheaper).
222 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
223 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
224 * condvar.c: Likewise.
225 * internals.h: Likewise.
226 * restart.h: Likewise.
227 * signals.c: Likewise.
228 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
230 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
232 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
233 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
234 * Versions: Put __pthread_mutexattr_settype under version
235 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
236 __pthread_mutexattr_gettype.
238 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
240 * sysdeps/pthread/bits/libc-lock.h: Make
241 __pthread_mutexattr_settype weak. Don't make
242 __pthread_mutexattr_setkind_np weak.
244 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
246 * manager.c (pthread_handle_create): Check whether sched_setscheduler
247 call can succeed here.
249 * mutex.c: Define __pthread_mutexattr_settype and make
250 __pthread_mutexattr_setkind_np an alias.
251 Likewise for __pthread_mutexattr_gettype.
253 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
255 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
258 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
260 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
262 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
264 * Examples/ex6.c: Include <unistd.h> for usleep.
266 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
268 * Examples/ex4.c (main): Use exit, not pthread_exit.
270 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
272 * Versions: Add __pthread_mutexattr_gettype and
273 __pthread_mutexattr_settype.
274 * lockfile.c: Use __pthread_mutexattr_settype instead of
275 __pthread_mutexattr_setkind_np.
276 * mutex.c: Define __pthread_mutexattr_gettype and
277 __pthread_mutexattr_settype.
279 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
280 __pthread_mutexattr_settype.
281 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
282 Use __pthread_mutexattr_settype.
284 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
286 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
287 * mutex.c: Define weak alias pthread_mutexattr_gettype and
288 pthread_mutexattr_settype.
289 * sysdeps/pthread/pthread.h: Declare these functions.
290 Move pthread_sigmask and pthread_kill declaration in separate header.
291 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
293 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
295 * Makefile: Add rules to compile and run tests.
296 * Examples/ex1.c: Little changes to fix warnings.
297 * Examples/ex2.c: Likewise.
298 * Examples/ex3.c: Likewise.
299 * Examples/ex4.c: Likewise.
300 * Examples/ex5.c: Likewise.
301 * Examples/ex6.c: New file.
303 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
305 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
307 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
309 * attr.c: Include <string.h>.
311 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
313 * attr.c: Include errno.h. Use memcpy to copy sched_param.
314 * internals.h: Include limits.h.
315 * manager.c: Use memcpy to copy sched_param.
316 * ptfork.c: Include errno.h.
317 * pthread.c: Likewise.
318 * semaphore.c: Likewise.
319 * specific.c: Likewise.
320 * spinlock.h: Likewise.
321 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
322 type definition to ...
323 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
325 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
327 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
329 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
330 as macros as demanded in POSIX.1, Annex C.
332 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
334 * internals.h (struct pthread_request): For free use pthread_t
335 instead of pthread_descr.
336 * join.c (pthread_join): Pass thread_id, not th to manager.
337 (pthread_detach): Likewise.
338 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
339 (pthread_exited): Remove detached queue code.
340 (pthread_handle_free): Expect thread ID parameter and use it to
341 validate the thread decsriptor. Don't use detached queue.
342 Patches by Xavier Leroy.
344 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
346 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
347 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
348 __pthread_atfork, __pthread_key_create, __pthread_once.
349 * internals.h: Doc fix.
350 * pthread.c (__pthread_initialize): Define again.
352 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
354 * manager.c (pthread_exited): If thread is not detached put it on
356 (pthread_handle_free): If thread is not on list with living threads
357 search on list with detached threads.
359 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
360 for new definition of pthread_rwlock_t.
362 * spinlock.c: Correct test whether to compile
363 __pthread_compare_and_swap or not.
365 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
367 * attr.c: Finish user stack support. Change locking code to be safe
368 in situations with different priorities.
369 * cancel.c: Likewise.
370 * condvar.c: Likewise.
371 * internals.h: Likewise.
373 * manager.c: Likewise.
375 * pthread.c: Likewise.
376 * ptlongjmp.c: Likewise.
378 * rwlock.c: Likewise.
379 * semaphore.c: Likewise.
380 * semaphore.h: Likewise.
381 * signals.c: Likewise.
382 * spinlock.c: Likewise.
383 * spinlock.h: Likewise.
384 * sysdeps/pthread/pthread.h: Likewise.
385 Patches by Xavier Leroy.
387 * sysdeps/i386/i686/pt-machine.h: New file.
389 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
391 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
392 [sg]et_stackaddr prototypes always available.
394 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
395 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
397 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
399 * manager.c (pthread_free): Undo patch from 980430.
400 Reported by David Wragg <dpw@doc.ic.ac.uk>.
402 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
404 * manager.c: Define __pthread_manager_adjust_prio and use it to
405 increase priority when needed.
406 * internals.h: Add prototype for __pthread_manager_adjust_prio.
407 * mutex.c: Optimize mutexes to wake up only one thread.
408 * pthread.c: Move PID of manager for global variable in structure
410 Patches by Xavier Leroy.
412 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
414 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
416 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
418 * attr.c: Correct typo.
420 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
422 * manager.c (pthread_free): Unmap guard before the stack.
423 Patch by Matthias Urlichs.
425 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
427 * manager.c (pthread_free): Detect already free child.
428 Patch by Xavier Leroy, reported by Matthias Urlichs.
430 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
432 * Makefile (linuxthreads-version): Renamed back from
435 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
437 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
440 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
442 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
443 * internals.h: Add definitions for new spinlock implementation.
444 * ptlongjmp.c: New file.
445 * spinlock.c: New file.
446 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
447 new function __pthread_acquire to prevent deadlocks with thread
448 with different priorities.
449 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
451 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
453 * manager.c (__pthread_manager): Reduce first argument to select
454 to include just the needed file descriptor.
456 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
458 * manager.c: Fix last patch which caused core dumps.
460 * pthread.c: Correctly handle missing SIGRTMIN.
462 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
464 * libpthread.map: Add __libc_internal_tsd_get and
465 __libc_internal_tsd_set. Add missing cancelable functions. Export
466 libc internal versions of the cancelable functions.
468 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
470 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
472 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
474 * attr.c: Implement pthread_attr_[gs]etguardsize,
475 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
476 Change pthread_attr_init to have two interfaces.
477 * internals.h (struct _pthread_descr_struct): Add new fields for
479 * libpthread.map: Add names in GLIBC_2.1 section.
480 * manager.c (pthread_handle_create): Implement guardsize and
482 (pthread_free): Likewise.
483 * pthread.c (pthread_create): Add new interface for changed
485 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
486 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
489 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
491 * manager.c: Enable resetting of the thread scheduling policy
492 to SCHED_OTHER when the parent thread has a different one.
494 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
496 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
497 _POSIX_ASYNCHRONOUS_IO.
499 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
501 * mutex.c: Implement new mutex types.
503 * internals.h: Include <signal.h>.
505 * libpthread.map: Add __erno_location and __h_errno_location.
507 * errno.c: Return pointer to variable actually in use. This might
508 not be the one in the thread structure.
509 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
511 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
512 of manager thread structure.
513 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
515 * pthread.c: Adapt initializer for thread structures.
516 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
517 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
518 current thread to global variables.
520 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
522 * rwlock.c: New file.
523 * Makefile (libpthread-routines): Add rwlock.
524 * sysdeps/pthread/pthread.h: Define data structures and declare
526 * libpthread.map: Add new functions.
528 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
530 * sysdeps/arm/pt-machine.h: New file; add ARM support.
531 * sysdeps/arm/Implies: likewise.
532 * README: Document it.
534 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
536 * signals.c: Remove unneeded initializer for sigwaited, saving a
539 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
541 * semaphore.c (sem_init): Set sem_spinlock only if available.
543 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
545 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
546 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
548 * Makefile: Update from LinuxThreads 0.7.
549 * internals.h. Likewise.
550 * manager.c: Likewise.
552 * pthread.c: Likewise.
553 * signals.c: Likewise.
554 * specific.c: Likewise.
555 * Examples/ex3.c: Likewise.
557 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
559 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
562 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
564 * wrapsyscall.c: Add socket functions which are also cancelation
567 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
569 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
570 New functions for fast thread specific data within libc.
572 * internals.h: Add new array p_libc_specific to struct
573 _pthread_descr_struct.
575 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
577 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
579 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
580 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
582 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
584 * internals.h (struct _pthread_descr_struct): Add definitions for
585 two-level specific key handling.
586 * manager.c (pthread_handle_create): Initialize specific memory array.
587 * specific.c: Implement two-level key handling.
588 * weaks.c: Don't provide dummy key handling.
589 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
590 Add definition of __libc_key_t.
591 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
593 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
594 PTHREAD_DESTRUCTOR_ITERATIONS.
596 * manager.c (pthread_handle_create): Compare mmap result with
599 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
600 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
602 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
604 sysdeps/sparc -> sysdeps/sparc/sparc32
605 sysdeps/sparc64 -> sysdeps/sparc/sparc64
607 * internals.h: Change definition of THREAD_SELF to be an expression,
608 not a statement that did a return.
609 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
610 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
611 Follow Solaris and use a "system reserved" register (%g6) to hold
612 the thread descriptor.
613 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
615 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
617 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
618 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
619 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
621 * semaphore.c: Include spinlock.h only when needed.
623 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
624 keys for entries not in use.
626 * weaks.c: Implement key handling functions for real.
628 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
630 Initial sparc64-linux support:
631 * linuxthreads/sysdeps/sparc64/Implies: New file.
632 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
634 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
636 * semaphore.c: Include spinlock.h at correct place.
639 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
641 The Great Bit File Move:
642 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
643 * sysdeps/powerpc/semaphorebits.h: Likewise.
644 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
645 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
646 * sysdeps/pthread/libc-lock.h: -> bits/
647 * sysdeps/pthread/stdio-lock.h: Likewise.
648 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
649 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
650 * semaphore.h: Likewise.
651 * sysdeps/pthread/pthread.h: Likewise.
653 * lockfile.c: <foo.h> -> <bits/foo.h>.
654 * semaphore.h: Likewise.
656 * Makefile: (headers): foo.h -> bits/foo.h.
657 * sysdeps/pthread/Makefile: Likewise.
659 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
661 * semaphore.c (sem_init): Set sem_spinlock only if available.
663 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
666 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
668 Update from LinuxThreads 0.6.
670 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
671 and __sched_get_priority_min instead of names without `__'.
673 * manager.c: Rewrite large parts to implement opaque pthread_t.
675 * cancel.c: Adapt for opaque pthread_t type.
676 * condvar.c: Likewise.
680 * pthread.c: Likewise.
681 * signals.c: Likewise.
682 * specific.c: Likewise.
683 * restart.h: Likewise.
685 * Examples/ex3.c: Likewise.
686 * Examples/ex4.c: Likewise.
687 * sysdeps/pthread/pthread.h: Likewise.
689 * pthread.c: Accumulate time for all threads in thread manager.
691 * semaphore.c: Implement fallback implementation for architectures
692 sometimes missing compare-exchange operations.
694 * cancel.c (pthread_cancel): Validate handle argument.
695 * join.c (pthread_join): Likewise.
696 (pthread_detach): Likewise.
697 * signals.c (pthread_kill): Likewise.
699 * spinlock.h (acquire): Use __sched_yield not sched_yield.
701 * queue.h (enqueue): Enqueue thread according to priority.
703 * internals.c (struct pthread_start_args): New struct for passing
704 args to cloning function.
705 (struct _pthread): Rename to _pthread_descr_struct and adapt for
708 * Examples/Makefile (clean): Pass -f option to rm.
710 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
711 and define TEST_FOR_COMPARE_AND_SWAP.
712 * sysdeps/i386/i486/pt-machine.h: Removed.
714 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
717 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
719 * restart.h (suspend): Clear p_signal before suspending.
720 (suspend_with_cancellation): Likewise.
721 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
723 * weaks.c: Make __pthread_key_create return 1.
724 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
725 __libc_getspecific, __libc_setspecific, and __libc_key_t.
726 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
729 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
731 * sysdeps/sparc/pt-machine (RELEASE): Fix.
733 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
735 * sysdeps/powerpc/Implies: Added.
736 * sysdeps/powerpc/pt-machine.h: Added.
737 * sysdeps/powerpc/semaphorebits.h: Added.
739 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
741 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
743 (__pthread_manager_thread): Likewise.
744 Reported by Andreas Jaeger.
746 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
748 Since sigset_t no longer fits in a register, we can't pass in the
749 thread's initial mask so easily. Take this opportunity to simplify
750 the clone implementation by only accepting a single void* argument.
752 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
753 in the thread struct instead of as arguments through clone.
754 (pthread_start_thread): Look for them there.
755 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
756 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
757 * linuxthreads/pthread.c (pthread_initialize_manager): Revise