1 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3 * linuxthreads.texi: Fix punctuation after xref.
5 1998-11-10 H.J. Lu <hjl@gnu.org>
7 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
8 if it is defined in <linux/limits.h>.
10 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
12 * spinlock.h (__pthread_trylock): Define inline.
13 (__pthread_lock): Add extra parameter to declaration. Declare
14 using internal_function.
15 (__pthread_unlock): Declare using internal_function.
16 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
17 of local variable self. Avoid recomputing self. Define using
19 (__pthread_trylock): Remove.
20 (__pthread_unlock): Define using internal_function.
21 * cancel.c: Adjust for __pthread_lock interface change. Use already
22 computed self value is possible.
23 * condvar.c: Likewise.
25 * manager.c: Likewise.
27 * pthread.c: Likewise.
29 * semaphore.c: Likewise.
30 * signals.c: Likewise.
32 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
34 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
35 __ to field names of the struct.
36 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
38 (pthread_attr_t): Likewise.
39 (pthread_cond_t): Likewise.
40 (pthread_condattr_t): Likewise.
41 (pthread_mutex_t): Likewise.
42 (pthread_mutexattr_t): Likewise.
43 (pthread_rwlock_t): Likewise.
44 (pthread_rwlockattr_t): Likewise.
45 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
47 * condvar.c: Likewise.
48 * manager.c: Likewise.
50 * pthread.c: Likewise.
51 * ptlongjmp.c: Likewise.
53 * spinlock.c: Likewise.
55 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
57 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
60 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
63 * Makefile (libpthread-routines): Add pt-machine.
64 * pt-machine.c: New file.
65 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
66 yet defined. Use PT_EI in extern inline definitions.
67 * sysdeps/arm/pt-machine.h: Likewise.
68 * sysdeps/i386/pt-machine.h: Likewise.
69 * sysdeps/i386/i686/pt-machine.h: Likewise.
70 * sysdeps/m68k/pt-machine.h: Likewise.
71 * sysdeps/mips/pt-machine.h: Likewise.
72 * sysdeps/powerpc/pt-machine.h: Likewise.
73 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
74 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
76 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
78 * semaphore.h: Include <sys/types.h> so that _pthread_descr
81 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
83 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
85 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
87 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
89 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
90 multiple inclusion guard.
92 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
94 * signals.c (sigaction): Check that sig is less than NSIG to avoid
97 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
99 * sysdeps/pthread/semaphore.h: New file.
101 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
103 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
104 _LIBC_TSD_KEY_DL_ERROR.
106 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
108 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
109 * sysdeps/i386/pt-machine.h: Likewise.
110 Suggested by Roland McGrath.
112 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
114 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
115 access thread data with non-constant offsets.
116 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
119 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
120 THREAD_SETMEM_NC definitions.
122 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
124 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
126 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
128 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
130 (struct _pthread_descr_struct): Add p_self and p_nr field.
131 * manager.c (__pthread_handles): Define second element to point
133 (__pthread_handles_num): Initialize to 2.
134 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
135 (pthread_start_thread): Likewise.
136 (pthread_handle_create): Start search for free slot at entry 2.
137 Initialize new fields p_self and p_nr.
138 Call __clone with CLONE_PTRACE if available.
139 (pthread_free): Call FREE_THREAD_SELF if available.
140 * pthread.c (__pthread_initial_thread): Initialize new fields.
141 (__pthread_manager_thread): Likewise.
142 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
144 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
145 elements of the thread descriptor.
146 * condvar.c: Likewise.
149 * manager.c: Likewise.
150 * pthread.c: Likewise.
151 * ptlongjmp.c: Likewise.
152 * semaphore.c: Likewise.
153 * signals.c: Likewise.
154 * specific.c: Likewise.
155 * spinlock.c: Likewise.
157 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
159 * sysdeps/i386/useldt.h: New file.
160 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
162 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
163 THREAD_SETMEM using __thread_self.
164 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
166 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
168 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
169 turned out that we didn't need to queue after all.
171 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
173 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
174 and wastes space; correct types.
176 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
178 * signals.c (sigaction): Handle NULL argument.
180 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
182 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
185 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
187 * Makefile (linuxthreads-version): Extract correct number from
190 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
192 * Banner: Bump version number to 0.8
193 * FAQ.html: Many updates, in particular w.r.t. debugging.
194 * manager.c: Support for non-default stacksize for
195 LinuxThreads-allocated stacks;
196 don't use guard pages for stacks with default size, rely on
197 rlimit(RLIMIT_STACK) instead (it's cheaper).
199 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
200 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
201 * condvar.c: Likewise.
202 * internals.h: Likewise.
203 * restart.h: Likewise.
204 * signals.c: Likewise.
205 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
207 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
209 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
210 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
211 * Versions: Put __pthread_mutexattr_settype under version
212 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
213 __pthread_mutexattr_gettype.
215 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
217 * sysdeps/pthread/bits/libc-lock.h: Make
218 __pthread_mutexattr_settype weak. Don't make
219 __pthread_mutexattr_setkind_np weak.
221 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
223 * manager.c (pthread_handle_create): Check whether sched_setscheduler
224 call can succeed here.
226 * mutex.c: Define __pthread_mutexattr_settype and make
227 __pthread_mutexattr_setkind_np an alias.
228 Likewise for __pthread_mutexattr_gettype.
230 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
232 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
235 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
237 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
239 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
241 * Examples/ex6.c: Include <unistd.h> for usleep.
243 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
245 * Examples/ex4.c (main): Use exit, not pthread_exit.
247 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
249 * Versions: Add __pthread_mutexattr_gettype and
250 __pthread_mutexattr_settype.
251 * lockfile.c: Use __pthread_mutexattr_settype instead of
252 __pthread_mutexattr_setkind_np.
253 * mutex.c: Define __pthread_mutexattr_gettype and
254 __pthread_mutexattr_settype.
256 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
257 __pthread_mutexattr_settype.
258 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
259 Use __pthread_mutexattr_settype.
261 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
263 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
264 * mutex.c: Define weak alias pthread_mutexattr_gettype and
265 pthread_mutexattr_settype.
266 * sysdeps/pthread/pthread.h: Declare these functions.
267 Move pthread_sigmask and pthread_kill declaration in separate header.
268 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
270 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
272 * Makefile: Add rules to compile and run tests.
273 * Examples/ex1.c: Little changes to fix warnings.
274 * Examples/ex2.c: Likewise.
275 * Examples/ex3.c: Likewise.
276 * Examples/ex4.c: Likewise.
277 * Examples/ex5.c: Likewise.
278 * Examples/ex6.c: New file.
280 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
282 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
284 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
286 * attr.c: Include <string.h>.
288 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
290 * attr.c: Include errno.h. Use memcpy to copy sched_param.
291 * internals.h: Include limits.h.
292 * manager.c: Use memcpy to copy sched_param.
293 * ptfork.c: Include errno.h.
294 * pthread.c: Likewise.
295 * semaphore.c: Likewise.
296 * specific.c: Likewise.
297 * spinlock.h: Likewise.
298 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
299 type definition to ...
300 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
302 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
304 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
306 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
307 as macros as demanded in POSIX.1, Annex C.
309 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
311 * internals.h (struct pthread_request): For free use pthread_t
312 instead of pthread_descr.
313 * join.c (pthread_join): Pass thread_id, not th to manager.
314 (pthread_detach): Likewise.
315 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
316 (pthread_exited): Remove detached queue code.
317 (pthread_handle_free): Expect thread ID parameter and use it to
318 validate the thread decsriptor. Don't use detached queue.
319 Patches by Xavier Leroy.
321 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
323 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
324 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
325 __pthread_atfork, __pthread_key_create, __pthread_once.
326 * internals.h: Doc fix.
327 * pthread.c (__pthread_initialize): Define again.
329 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
331 * manager.c (pthread_exited): If thread is not detached put it on
333 (pthread_handle_free): If thread is not on list with living threads
334 search on list with detached threads.
336 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
337 for new definition of pthread_rwlock_t.
339 * spinlock.c: Correct test whether to compile
340 __pthread_compare_and_swap or not.
342 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
344 * attr.c: Finish user stack support. Change locking code to be safe
345 in situations with different priorities.
346 * cancel.c: Likewise.
347 * condvar.c: Likewise.
348 * internals.h: Likewise.
350 * manager.c: Likewise.
352 * pthread.c: Likewise.
353 * ptlongjmp.c: Likewise.
355 * rwlock.c: Likewise.
356 * semaphore.c: Likewise.
357 * semaphore.h: Likewise.
358 * signals.c: Likewise.
359 * spinlock.c: Likewise.
360 * spinlock.h: Likewise.
361 * sysdeps/pthread/pthread.h: Likewise.
362 Patches by Xavier Leroy.
364 * sysdeps/i386/i686/pt-machine.h: New file.
366 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
368 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
369 [sg]et_stackaddr prototypes always available.
371 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
372 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
374 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
376 * manager.c (pthread_free): Undo patch from 980430.
377 Reported by David Wragg <dpw@doc.ic.ac.uk>.
379 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
381 * manager.c: Define __pthread_manager_adjust_prio and use it to
382 increase priority when needed.
383 * internals.h: Add prototype for __pthread_manager_adjust_prio.
384 * mutex.c: Optimize mutexes to wake up only one thread.
385 * pthread.c: Move PID of manager for global variable in structure
387 Patches by Xavier Leroy.
389 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
391 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
393 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
395 * attr.c: Correct typo.
397 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
399 * manager.c (pthread_free): Unmap guard before the stack.
400 Patch by Matthias Urlichs.
402 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
404 * manager.c (pthread_free): Detect already free child.
405 Patch by Xavier Leroy, reported by Matthias Urlichs.
407 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
409 * Makefile (linuxthreads-version): Renamed back from
412 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
414 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
417 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
419 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
420 * internals.h: Add definitions for new spinlock implementation.
421 * ptlongjmp.c: New file.
422 * spinlock.c: New file.
423 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
424 new function __pthread_acquire to prevent deadlocks with thread
425 with different priorities.
426 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
428 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
430 * manager.c (__pthread_manager): Reduce first argument to select
431 to include just the needed file descriptor.
433 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
435 * manager.c: Fix last patch which caused core dumps.
437 * pthread.c: Correctly handle missing SIGRTMIN.
439 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
441 * libpthread.map: Add __libc_internal_tsd_get and
442 __libc_internal_tsd_set. Add missing cancelable functions. Export
443 libc internal versions of the cancelable functions.
445 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
447 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
449 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
451 * attr.c: Implement pthread_attr_[gs]etguardsize,
452 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
453 Change pthread_attr_init to have two interfaces.
454 * internals.h (struct _pthread_descr_struct): Add new fields for
456 * libpthread.map: Add names in GLIBC_2.1 section.
457 * manager.c (pthread_handle_create): Implement guardsize and
459 (pthread_free): Likewise.
460 * pthread.c (pthread_create): Add new interface for changed
462 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
463 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
466 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
468 * manager.c: Enable resetting of the thread scheduling policy
469 to SCHED_OTHER when the parent thread has a different one.
471 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
473 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
474 _POSIX_ASYNCHRONOUS_IO.
476 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
478 * mutex.c: Implement new mutex types.
480 * internals.h: Include <signal.h>.
482 * libpthread.map: Add __erno_location and __h_errno_location.
484 * errno.c: Return pointer to variable actually in use. This might
485 not be the one in the thread structure.
486 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
488 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
489 of manager thread structure.
490 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
492 * pthread.c: Adapt initializer for thread structures.
493 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
494 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
495 current thread to global variables.
497 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
499 * rwlock.c: New file.
500 * Makefile (libpthread-routines): Add rwlock.
501 * sysdeps/pthread/pthread.h: Define data structures and declare
503 * libpthread.map: Add new functions.
505 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
507 * sysdeps/arm/pt-machine.h: New file; add ARM support.
508 * sysdeps/arm/Implies: likewise.
509 * README: Document it.
511 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
513 * signals.c: Remove unneeded initializer for sigwaited, saving a
516 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
518 * semaphore.c (sem_init): Set sem_spinlock only if available.
520 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
522 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
523 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
525 * Makefile: Update from LinuxThreads 0.7.
526 * internals.h. Likewise.
527 * manager.c: Likewise.
529 * pthread.c: Likewise.
530 * signals.c: Likewise.
531 * specific.c: Likewise.
532 * Examples/ex3.c: Likewise.
534 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
536 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
539 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
541 * wrapsyscall.c: Add socket functions which are also cancelation
544 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
546 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
547 New functions for fast thread specific data within libc.
549 * internals.h: Add new array p_libc_specific to struct
550 _pthread_descr_struct.
552 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
554 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
556 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
557 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
559 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
561 * internals.h (struct _pthread_descr_struct): Add definitions for
562 two-level specific key handling.
563 * manager.c (pthread_handle_create): Initialize specific memory array.
564 * specific.c: Implement two-level key handling.
565 * weaks.c: Don't provide dummy key handling.
566 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
567 Add definition of __libc_key_t.
568 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
570 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
571 PTHREAD_DESTRUCTOR_ITERATIONS.
573 * manager.c (pthread_handle_create): Compare mmap result with
576 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
577 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
579 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
581 sysdeps/sparc -> sysdeps/sparc/sparc32
582 sysdeps/sparc64 -> sysdeps/sparc/sparc64
584 * internals.h: Change definition of THREAD_SELF to be an expression,
585 not a statement that did a return.
586 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
587 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
588 Follow Solaris and use a "system reserved" register (%g6) to hold
589 the thread descriptor.
590 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
592 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
594 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
595 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
596 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
598 * semaphore.c: Include spinlock.h only when needed.
600 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
601 keys for entries not in use.
603 * weaks.c: Implement key handling functions for real.
605 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
607 Initial sparc64-linux support:
608 * linuxthreads/sysdeps/sparc64/Implies: New file.
609 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
611 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
613 * semaphore.c: Include spinlock.h at correct place.
616 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
618 The Great Bit File Move:
619 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
620 * sysdeps/powerpc/semaphorebits.h: Likewise.
621 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
622 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
623 * sysdeps/pthread/libc-lock.h: -> bits/
624 * sysdeps/pthread/stdio-lock.h: Likewise.
625 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
626 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
627 * semaphore.h: Likewise.
628 * sysdeps/pthread/pthread.h: Likewise.
630 * lockfile.c: <foo.h> -> <bits/foo.h>.
631 * semaphore.h: Likewise.
633 * Makefile: (headers): foo.h -> bits/foo.h.
634 * sysdeps/pthread/Makefile: Likewise.
636 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
638 * semaphore.c (sem_init): Set sem_spinlock only if available.
640 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
643 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
645 Update from LinuxThreads 0.6.
647 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
648 and __sched_get_priority_min instead of names without `__'.
650 * manager.c: Rewrite large parts to implement opaque pthread_t.
652 * cancel.c: Adapt for opaque pthread_t type.
653 * condvar.c: Likewise.
657 * pthread.c: Likewise.
658 * signals.c: Likewise.
659 * specific.c: Likewise.
660 * restart.h: Likewise.
662 * Examples/ex3.c: Likewise.
663 * Examples/ex4.c: Likewise.
664 * sysdeps/pthread/pthread.h: Likewise.
666 * pthread.c: Accumulate time for all threads in thread manager.
668 * semaphore.c: Implement fallback implementation for architectures
669 sometimes missing compare-exchange operations.
671 * cancel.c (pthread_cancel): Validate handle argument.
672 * join.c (pthread_join): Likewise.
673 (pthread_detach): Likewise.
674 * signals.c (pthread_kill): Likewise.
676 * spinlock.h (acquire): Use __sched_yield not sched_yield.
678 * queue.h (enqueue): Enqueue thread according to priority.
680 * internals.c (struct pthread_start_args): New struct for passing
681 args to cloning function.
682 (struct _pthread): Rename to _pthread_descr_struct and adapt for
685 * Examples/Makefile (clean): Pass -f option to rm.
687 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
688 and define TEST_FOR_COMPARE_AND_SWAP.
689 * sysdeps/i386/i486/pt-machine.h: Removed.
691 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
694 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
696 * restart.h (suspend): Clear p_signal before suspending.
697 (suspend_with_cancellation): Likewise.
698 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
700 * weaks.c: Make __pthread_key_create return 1.
701 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
702 __libc_getspecific, __libc_setspecific, and __libc_key_t.
703 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
706 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
708 * sysdeps/sparc/pt-machine (RELEASE): Fix.
710 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
712 * sysdeps/powerpc/Implies: Added.
713 * sysdeps/powerpc/pt-machine.h: Added.
714 * sysdeps/powerpc/semaphorebits.h: Added.
716 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
718 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
720 (__pthread_manager_thread): Likewise.
721 Reported by Andreas Jaeger.
723 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
725 Since sigset_t no longer fits in a register, we can't pass in the
726 thread's initial mask so easily. Take this opportunity to simplify
727 the clone implementation by only accepting a single void* argument.
729 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
730 in the thread struct instead of as arguments through clone.
731 (pthread_start_thread): Look for them there.
732 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
733 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
734 * linuxthreads/pthread.c (pthread_initialize_manager): Revise