1 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
3 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
4 __ to field names of the struct.
5 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
7 (pthread_attr_t): Likewise.
8 (pthread_cond_t): Likewise.
9 (pthread_condattr_t): Likewise.
10 (pthread_mutex_t): Likewise.
11 (pthread_mutexattr_t): Likewise.
12 (pthread_rwlock_t): Likewise.
13 (pthread_rwlockattr_t): Likewise.
14 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
16 * condvar.c: Likewise.
17 * manager.c: Likewise.
19 * pthread.c: Likewise.
20 * ptlongjmp.c: Likewise.
22 * spinlock.c: Likewise.
24 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
26 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
29 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
32 * Makefile (libpthread-routines): Add pt-machine.
33 * pt-machine.c: New file.
34 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
35 yet defined. Use PT_EI in extern inline definitions.
36 * sysdeps/arm/pt-machine.h: Likewise.
37 * sysdeps/i386/pt-machine.h: Likewise.
38 * sysdeps/i386/i686/pt-machine.h: Likewise.
39 * sysdeps/m68k/pt-machine.h: Likewise.
40 * sysdeps/mips/pt-machine.h: Likewise.
41 * sysdeps/powerpc/pt-machine.h: Likewise.
42 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
43 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
45 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
47 * semaphore.h: Include <sys/types.h> so that _pthread_descr
50 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
52 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
54 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
56 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
58 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
59 multiple inclusion guard.
61 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
63 * signals.c (sigaction): Check that sig is less than NSIG to avoid
66 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
68 * sysdeps/pthread/semaphore.h: New file.
70 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
72 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
73 _LIBC_TSD_KEY_DL_ERROR.
75 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
77 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
78 * sysdeps/i386/pt-machine.h: Likewise.
79 Suggested by Roland McGrath.
81 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
83 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
84 access thread data with non-constant offsets.
85 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
88 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
89 THREAD_SETMEM_NC definitions.
91 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
93 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
95 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
97 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
99 (struct _pthread_descr_struct): Add p_self and p_nr field.
100 * manager.c (__pthread_handles): Define second element to point
102 (__pthread_handles_num): Initialize to 2.
103 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
104 (pthread_start_thread): Likewise.
105 (pthread_handle_create): Start search for free slot at entry 2.
106 Initialize new fields p_self and p_nr.
107 Call __clone with CLONE_PTRACE if available.
108 (pthread_free): Call FREE_THREAD_SELF if available.
109 * pthread.c (__pthread_initial_thread): Initialize new fields.
110 (__pthread_manager_thread): Likewise.
111 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
113 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
114 elements of the thread descriptor.
115 * condvar.c: Likewise.
118 * manager.c: Likewise.
119 * pthread.c: Likewise.
120 * ptlongjmp.c: Likewise.
121 * semaphore.c: Likewise.
122 * signals.c: Likewise.
123 * specific.c: Likewise.
124 * spinlock.c: Likewise.
126 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
128 * sysdeps/i386/useldt.h: New file.
129 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
131 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
132 THREAD_SETMEM using __thread_self.
133 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
135 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
137 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
138 turned out that we didn't need to queue after all.
140 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
142 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
143 and wastes space; correct types.
145 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
147 * signals.c (sigaction): Handle NULL argument.
149 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
151 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
154 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
156 * Makefile (linuxthreads-version): Extract correct number from
159 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
161 * Banner: Bump version number to 0.8
162 * FAQ.html: Many updates, in particular w.r.t. debugging.
163 * manager.c: Support for non-default stacksize for
164 LinuxThreads-allocated stacks;
165 don't use guard pages for stacks with default size, rely on
166 rlimit(RLIMIT_STACK) instead (it's cheaper).
168 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
169 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
170 * condvar.c: Likewise.
171 * internals.h: Likewise.
172 * restart.h: Likewise.
173 * signals.c: Likewise.
174 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
176 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
178 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
179 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
180 * Versions: Put __pthread_mutexattr_settype under version
181 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
182 __pthread_mutexattr_gettype.
184 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
186 * sysdeps/pthread/bits/libc-lock.h: Make
187 __pthread_mutexattr_settype weak. Don't make
188 __pthread_mutexattr_setkind_np weak.
190 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
192 * manager.c (pthread_handle_create): Check whether sched_setscheduler
193 call can succeed here.
195 * mutex.c: Define __pthread_mutexattr_settype and make
196 __pthread_mutexattr_setkind_np an alias.
197 Likewise for __pthread_mutexattr_gettype.
199 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
201 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
204 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
206 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
208 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
210 * Examples/ex6.c: Include <unistd.h> for usleep.
212 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
214 * Examples/ex4.c (main): Use exit, not pthread_exit.
216 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
218 * Versions: Add __pthread_mutexattr_gettype and
219 __pthread_mutexattr_settype.
220 * lockfile.c: Use __pthread_mutexattr_settype instead of
221 __pthread_mutexattr_setkind_np.
222 * mutex.c: Define __pthread_mutexattr_gettype and
223 __pthread_mutexattr_settype.
225 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
226 __pthread_mutexattr_settype.
227 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
228 Use __pthread_mutexattr_settype.
230 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
232 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
233 * mutex.c: Define weak alias pthread_mutexattr_gettype and
234 pthread_mutexattr_settype.
235 * sysdeps/pthread/pthread.h: Declare these functions.
236 Move pthread_sigmask and pthread_kill declaration in separate header.
237 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
239 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
241 * Makefile: Add rules to compile and run tests.
242 * Examples/ex1.c: Little changes to fix warnings.
243 * Examples/ex2.c: Likewise.
244 * Examples/ex3.c: Likewise.
245 * Examples/ex4.c: Likewise.
246 * Examples/ex5.c: Likewise.
247 * Examples/ex6.c: New file.
249 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
251 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
253 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
255 * attr.c: Include <string.h>.
257 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
259 * attr.c: Include errno.h. Use memcpy to copy sched_param.
260 * internals.h: Include limits.h.
261 * manager.c: Use memcpy to copy sched_param.
262 * ptfork.c: Include errno.h.
263 * pthread.c: Likewise.
264 * semaphore.c: Likewise.
265 * specific.c: Likewise.
266 * spinlock.h: Likewise.
267 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
268 type definition to ...
269 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
271 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
273 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
275 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
276 as macros as demanded in POSIX.1, Annex C.
278 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
280 * internals.h (struct pthread_request): For free use pthread_t
281 instead of pthread_descr.
282 * join.c (pthread_join): Pass thread_id, not th to manager.
283 (pthread_detach): Likewise.
284 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
285 (pthread_exited): Remove detached queue code.
286 (pthread_handle_free): Expect thread ID parameter and use it to
287 validate the thread decsriptor. Don't use detached queue.
288 Patches by Xavier Leroy.
290 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
292 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
293 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
294 __pthread_atfork, __pthread_key_create, __pthread_once.
295 * internals.h: Doc fix.
296 * pthread.c (__pthread_initialize): Define again.
298 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
300 * manager.c (pthread_exited): If thread is not detached put it on
302 (pthread_handle_free): If thread is not on list with living threads
303 search on list with detached threads.
305 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
306 for new definition of pthread_rwlock_t.
308 * spinlock.c: Correct test whether to compile
309 __pthread_compare_and_swap or not.
311 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
313 * attr.c: Finish user stack support. Change locking code to be safe
314 in situations with different priorities.
315 * cancel.c: Likewise.
316 * condvar.c: Likewise.
317 * internals.h: Likewise.
319 * manager.c: Likewise.
321 * pthread.c: Likewise.
322 * ptlongjmp.c: Likewise.
324 * rwlock.c: Likewise.
325 * semaphore.c: Likewise.
326 * semaphore.h: Likewise.
327 * signals.c: Likewise.
328 * spinlock.c: Likewise.
329 * spinlock.h: Likewise.
330 * sysdeps/pthread/pthread.h: Likewise.
331 Patches by Xavier Leroy.
333 * sysdeps/i386/i686/pt-machine.h: New file.
335 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
337 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
338 [sg]et_stackaddr prototypes always available.
340 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
341 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
343 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
345 * manager.c (pthread_free): Undo patch from 980430.
346 Reported by David Wragg <dpw@doc.ic.ac.uk>.
348 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
350 * manager.c: Define __pthread_manager_adjust_prio and use it to
351 increase priority when needed.
352 * internals.h: Add prototype for __pthread_manager_adjust_prio.
353 * mutex.c: Optimize mutexes to wake up only one thread.
354 * pthread.c: Move PID of manager for global variable in structure
356 Patches by Xavier Leroy.
358 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
360 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
362 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
364 * attr.c: Correct typo.
366 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
368 * manager.c (pthread_free): Unmap guard before the stack.
369 Patch by Matthias Urlichs.
371 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
373 * manager.c (pthread_free): Detect already free child.
374 Patch by Xavier Leroy, reported by Matthias Urlichs.
376 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
378 * Makefile (linuxthreads-version): Renamed back from
381 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
383 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
386 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
388 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
389 * internals.h: Add definitions for new spinlock implementation.
390 * ptlongjmp.c: New file.
391 * spinlock.c: New file.
392 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
393 new function __pthread_acquire to prevent deadlocks with thread
394 with different priorities.
395 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
397 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
399 * manager.c (__pthread_manager): Reduce first argument to select
400 to include just the needed file descriptor.
402 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
404 * manager.c: Fix last patch which caused core dumps.
406 * pthread.c: Correctly handle missing SIGRTMIN.
408 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
410 * libpthread.map: Add __libc_internal_tsd_get and
411 __libc_internal_tsd_set. Add missing cancelable functions. Export
412 libc internal versions of the cancelable functions.
414 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
416 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
418 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
420 * attr.c: Implement pthread_attr_[gs]etguardsize,
421 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
422 Change pthread_attr_init to have two interfaces.
423 * internals.h (struct _pthread_descr_struct): Add new fields for
425 * libpthread.map: Add names in GLIBC_2.1 section.
426 * manager.c (pthread_handle_create): Implement guardsize and
428 (pthread_free): Likewise.
429 * pthread.c (pthread_create): Add new interface for changed
431 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
432 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
435 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
437 * manager.c: Enable resetting of the thread scheduling policy
438 to SCHED_OTHER when the parent thread has a different one.
440 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
442 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
443 _POSIX_ASYNCHRONOUS_IO.
445 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
447 * mutex.c: Implement new mutex types.
449 * internals.h: Include <signal.h>.
451 * libpthread.map: Add __erno_location and __h_errno_location.
453 * errno.c: Return pointer to variable actually in use. This might
454 not be the one in the thread structure.
455 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
457 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
458 of manager thread structure.
459 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
461 * pthread.c: Adapt initializer for thread structures.
462 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
463 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
464 current thread to global variables.
466 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
468 * rwlock.c: New file.
469 * Makefile (libpthread-routines): Add rwlock.
470 * sysdeps/pthread/pthread.h: Define data structures and declare
472 * libpthread.map: Add new functions.
474 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
476 * sysdeps/arm/pt-machine.h: New file; add ARM support.
477 * sysdeps/arm/Implies: likewise.
478 * README: Document it.
480 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
482 * signals.c: Remove unneeded initializer for sigwaited, saving a
485 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
487 * semaphore.c (sem_init): Set sem_spinlock only if available.
489 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
491 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
492 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
494 * Makefile: Update from LinuxThreads 0.7.
495 * internals.h. Likewise.
496 * manager.c: Likewise.
498 * pthread.c: Likewise.
499 * signals.c: Likewise.
500 * specific.c: Likewise.
501 * Examples/ex3.c: Likewise.
503 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
505 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
508 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
510 * wrapsyscall.c: Add socket functions which are also cancelation
513 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
515 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
516 New functions for fast thread specific data within libc.
518 * internals.h: Add new array p_libc_specific to struct
519 _pthread_descr_struct.
521 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
523 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
525 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
526 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
528 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
530 * internals.h (struct _pthread_descr_struct): Add definitions for
531 two-level specific key handling.
532 * manager.c (pthread_handle_create): Initialize specific memory array.
533 * specific.c: Implement two-level key handling.
534 * weaks.c: Don't provide dummy key handling.
535 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
536 Add definition of __libc_key_t.
537 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
539 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
540 PTHREAD_DESTRUCTOR_ITERATIONS.
542 * manager.c (pthread_handle_create): Compare mmap result with
545 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
546 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
548 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
550 sysdeps/sparc -> sysdeps/sparc/sparc32
551 sysdeps/sparc64 -> sysdeps/sparc/sparc64
553 * internals.h: Change definition of THREAD_SELF to be an expression,
554 not a statement that did a return.
555 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
556 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
557 Follow Solaris and use a "system reserved" register (%g6) to hold
558 the thread descriptor.
559 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
561 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
563 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
564 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
565 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
567 * semaphore.c: Include spinlock.h only when needed.
569 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
570 keys for entries not in use.
572 * weaks.c: Implement key handling functions for real.
574 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
576 Initial sparc64-linux support:
577 * linuxthreads/sysdeps/sparc64/Implies: New file.
578 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
580 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
582 * semaphore.c: Include spinlock.h at correct place.
585 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
587 The Great Bit File Move:
588 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
589 * sysdeps/powerpc/semaphorebits.h: Likewise.
590 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
591 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
592 * sysdeps/pthread/libc-lock.h: -> bits/
593 * sysdeps/pthread/stdio-lock.h: Likewise.
594 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
595 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
596 * semaphore.h: Likewise.
597 * sysdeps/pthread/pthread.h: Likewise.
599 * lockfile.c: <foo.h> -> <bits/foo.h>.
600 * semaphore.h: Likewise.
602 * Makefile: (headers): foo.h -> bits/foo.h.
603 * sysdeps/pthread/Makefile: Likewise.
605 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
607 * semaphore.c (sem_init): Set sem_spinlock only if available.
609 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
612 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
614 Update from LinuxThreads 0.6.
616 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
617 and __sched_get_priority_min instead of names without `__'.
619 * manager.c: Rewrite large parts to implement opaque pthread_t.
621 * cancel.c: Adapt for opaque pthread_t type.
622 * condvar.c: Likewise.
626 * pthread.c: Likewise.
627 * signals.c: Likewise.
628 * specific.c: Likewise.
629 * restart.h: Likewise.
631 * Examples/ex3.c: Likewise.
632 * Examples/ex4.c: Likewise.
633 * sysdeps/pthread/pthread.h: Likewise.
635 * pthread.c: Accumulate time for all threads in thread manager.
637 * semaphore.c: Implement fallback implementation for architectures
638 sometimes missing compare-exchange operations.
640 * cancel.c (pthread_cancel): Validate handle argument.
641 * join.c (pthread_join): Likewise.
642 (pthread_detach): Likewise.
643 * signals.c (pthread_kill): Likewise.
645 * spinlock.h (acquire): Use __sched_yield not sched_yield.
647 * queue.h (enqueue): Enqueue thread according to priority.
649 * internals.c (struct pthread_start_args): New struct for passing
650 args to cloning function.
651 (struct _pthread): Rename to _pthread_descr_struct and adapt for
654 * Examples/Makefile (clean): Pass -f option to rm.
656 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
657 and define TEST_FOR_COMPARE_AND_SWAP.
658 * sysdeps/i386/i486/pt-machine.h: Removed.
660 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
663 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
665 * restart.h (suspend): Clear p_signal before suspending.
666 (suspend_with_cancellation): Likewise.
667 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
669 * weaks.c: Make __pthread_key_create return 1.
670 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
671 __libc_getspecific, __libc_setspecific, and __libc_key_t.
672 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
675 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
677 * sysdeps/sparc/pt-machine (RELEASE): Fix.
679 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
681 * sysdeps/powerpc/Implies: Added.
682 * sysdeps/powerpc/pt-machine.h: Added.
683 * sysdeps/powerpc/semaphorebits.h: Added.
685 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
687 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
689 (__pthread_manager_thread): Likewise.
690 Reported by Andreas Jaeger.
692 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
694 Since sigset_t no longer fits in a register, we can't pass in the
695 thread's initial mask so easily. Take this opportunity to simplify
696 the clone implementation by only accepting a single void* argument.
698 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
699 in the thread struct instead of as arguments through clone.
700 (pthread_start_thread): Look for them there.
701 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
702 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
703 * linuxthreads/pthread.c (pthread_initialize_manager): Revise