1 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
3 * Makefile: Add rules to compile and run tests.
4 * Examples/ex1.c: Little changes to fix warnings.
5 * Examples/ex2.c: Likewise.
6 * Examples/ex3.c: Likewise.
7 * Examples/ex4.c: Likewise.
8 * Examples/ex5.c: Likewise.
9 * Examples/ex6.c: New file.
11 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
13 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
15 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
17 * attr.c: Include <string.h>.
19 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
21 * attr.c: Include errno.h. Use memcpy to copy sched_param.
22 * internals.h: Include limits.h.
23 * manager.c: Use memcpy to copy sched_param.
24 * ptfork.c: Include errno.h.
25 * pthread.c: Likewise.
26 * semaphore.c: Likewise.
27 * specific.c: Likewise.
28 * spinlock.h: Likewise.
29 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
30 type definition to ...
31 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
33 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
35 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
37 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
38 as macros as demanded in POSIX.1, Annex C.
40 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
42 * internals.h (struct pthread_request): For free use pthread_t
43 instead of pthread_descr.
44 * join.c (pthread_join): Pass thread_id, not th to manager.
45 (pthread_detach): Likewise.
46 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
47 (pthread_exited): Remove detached queue code.
48 (pthread_handle_free): Expect thread ID parameter and use it to
49 validate the thread decsriptor. Don't use detached queue.
50 Patches by Xavier Leroy.
52 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
54 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
55 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
56 __pthread_atfork, __pthread_key_create, __pthread_once.
57 * internals.h: Doc fix.
58 * pthread.c (__pthread_initialize): Define again.
60 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
62 * manager.c (pthread_exited): If thread is not detached put it on
64 (pthread_handle_free): If thread is not on list with living threads
65 search on list with detached threads.
67 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
68 for new definition of pthread_rwlock_t.
70 * spinlock.c: Correct test whether to compile
71 __pthread_compare_and_swap or not.
73 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
75 * attr.c: Finish user stack support. Change locking code to be safe
76 in situations with different priorities.
78 * condvar.c: Likewise.
79 * internals.h: Likewise.
81 * manager.c: Likewise.
83 * pthread.c: Likewise.
84 * ptlongjmp.c: Likewise.
87 * semaphore.c: Likewise.
88 * semaphore.h: Likewise.
89 * signals.c: Likewise.
90 * spinlock.c: Likewise.
91 * spinlock.h: Likewise.
92 * sysdeps/pthread/pthread.h: Likewise.
93 Patches by Xavier Leroy.
95 * sysdeps/i386/i686/pt-machine.h: New file.
97 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
99 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
100 [sg]et_stackaddr prototypes always available.
102 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
103 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
105 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
107 * manager.c (pthread_free): Undo patch from 980430.
108 Reported by David Wragg <dpw@doc.ic.ac.uk>.
110 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
112 * manager.c: Define __pthread_manager_adjust_prio and use it to
113 increase priority when needed.
114 * internals.h: Add prototype for __pthread_manager_adjust_prio.
115 * mutex.c: Optimize mutexes to wake up only one thread.
116 * pthread.c: Move PID of manager for global variable in structure
118 Patches by Xavier Leroy.
120 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
122 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
124 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
126 * attr.c: Correct typo.
128 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
130 * manager.c (pthread_free): Unmap guard before the stack.
131 Patch by Matthias Urlichs.
133 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
135 * manager.c (pthread_free): Detect already free child.
136 Patch by Xavier Leroy, reported by Matthias Urlichs.
138 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
140 * Makefile (linuxthreads-version): Renamed back from
143 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
145 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
148 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
150 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
151 * internals.h: Add definitions for new spinlock implementation.
152 * ptlongjmp.c: New file.
153 * spinlock.c: New file.
154 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
155 new function __pthread_acquire to prevent deadlocks with thread
156 with different priorities.
157 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
159 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
161 * manager.c (__pthread_manager): Reduce first argument to select
162 to include just the needed file descriptor.
164 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
166 * manager.c: Fix last patch which caused core dumps.
168 * pthread.c: Correctly handle missing SIGRTMIN.
170 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
172 * libpthread.map: Add __libc_internal_tsd_get and
173 __libc_internal_tsd_set. Add missing cancelable functions. Export
174 libc internal versions of the cancelable functions.
176 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
178 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
180 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
182 * attr.c: Implement pthread_attr_[gs]etguardsize,
183 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
184 Change pthread_attr_init to have two interfaces.
185 * internals.h (struct _pthread_descr_struct): Add new fields for
187 * libpthread.map: Add names in GLIBC_2.1 section.
188 * manager.c (pthread_handle_create): Implement guardsize and
190 (pthread_free): Likewise.
191 * pthread.c (pthread_create): Add new interface for changed
193 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
194 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
197 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
199 * manager.c: Enable resetting of the thread scheduling policy
200 to SCHED_OTHER when the parent thread has a different one.
202 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
204 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
205 _POSIX_ASYNCHRONOUS_IO.
207 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
209 * mutex.c: Implement new mutex types.
211 * internals.h: Include <signal.h>.
213 * libpthread.map: Add __erno_location and __h_errno_location.
215 * errno.c: Return pointer to variable actually in use. This might
216 not be the one in the thread structure.
217 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
219 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
220 of manager thread structure.
221 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
223 * pthread.c: Adapt initializer for thread structures.
224 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
225 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
226 current thread to global variables.
228 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
230 * rwlock.c: New file.
231 * Makefile (libpthread-routines): Add rwlock.
232 * sysdeps/pthread/pthread.h: Define data structures and declare
234 * libpthread.map: Add new functions.
236 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
238 * sysdeps/arm/pt-machine.h: New file; add ARM support.
239 * sysdeps/arm/Implies: likewise.
240 * README: Document it.
242 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
244 * signals.c: Remove unneeded initializer for sigwaited, saving a
247 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
249 * semaphore.c (sem_init): Set sem_spinlock only if available.
251 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
253 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
254 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
256 * Makefile: Update from LinuxThreads 0.7.
257 * internals.h. Likewise.
258 * manager.c: Likewise.
260 * pthread.c: Likewise.
261 * signals.c: Likewise.
262 * specific.c: Likewise.
263 * Examples/ex3.c: Likewise.
265 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
267 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
270 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
272 * wrapsyscall.c: Add socket functions which are also cancelation
275 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
277 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
278 New functions for fast thread specific data within libc.
280 * internals.h: Add new array p_libc_specific to struct
281 _pthread_descr_struct.
283 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
285 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
287 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
288 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
290 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
292 * internals.h (struct _pthread_descr_struct): Add definitions for
293 two-level specific key handling.
294 * manager.c (pthread_handle_create): Initialize specific memory array.
295 * specific.c: Implement two-level key handling.
296 * weaks.c: Don't provide dummy key handling.
297 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
298 Add definition of __libc_key_t.
299 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
301 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
302 PTHREAD_DESTRUCTOR_ITERATIONS.
304 * manager.c (pthread_handle_create): Compare mmap result with
307 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
308 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
310 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
312 sysdeps/sparc -> sysdeps/sparc/sparc32
313 sysdeps/sparc64 -> sysdeps/sparc/sparc64
315 * internals.h: Change definition of THREAD_SELF to be an expression,
316 not a statement that did a return.
317 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
318 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
319 Follow Solaris and use a "system reserved" register (%g6) to hold
320 the thread descriptor.
321 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
323 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
325 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
326 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
327 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
329 * semaphore.c: Include spinlock.h only when needed.
331 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
332 keys for entries not in use.
334 * weaks.c: Implement key handling functions for real.
336 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
338 Initial sparc64-linux support:
339 * linuxthreads/sysdeps/sparc64/Implies: New file.
340 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
342 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
344 * semaphore.c: Include spinlock.h at correct place.
347 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
349 The Great Bit File Move:
350 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
351 * sysdeps/powerpc/semaphorebits.h: Likewise.
352 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
353 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
354 * sysdeps/pthread/libc-lock.h: -> bits/
355 * sysdeps/pthread/stdio-lock.h: Likewise.
356 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
357 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
358 * semaphore.h: Likewise.
359 * sysdeps/pthread/pthread.h: Likewise.
361 * lockfile.c: <foo.h> -> <bits/foo.h>.
362 * semaphore.h: Likewise.
364 * Makefile: (headers): foo.h -> bits/foo.h.
365 * sysdeps/pthread/Makefile: Likewise.
367 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
369 * semaphore.c (sem_init): Set sem_spinlock only if available.
371 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
374 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
376 Update from LinuxThreads 0.6.
378 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
379 and __sched_get_priority_min instead of names without `__'.
381 * manager.c: Rewrite large parts to implement opaque pthread_t.
383 * cancel.c: Adapt for opaque pthread_t type.
384 * condvar.c: Likewise.
388 * pthread.c: Likewise.
389 * signals.c: Likewise.
390 * specific.c: Likewise.
391 * restart.h: Likewise.
393 * Examples/ex3.c: Likewise.
394 * Examples/ex4.c: Likewise.
395 * sysdeps/pthread/pthread.h: Likewise.
397 * pthread.c: Accumulate time for all threads in thread manager.
399 * semaphore.c: Implement fallback implementation for architectures
400 sometimes missing compare-exchange operations.
402 * cancel.c (pthread_cancel): Validate handle argument.
403 * join.c (pthread_join): Likewise.
404 (pthread_detach): Likewise.
405 * signals.c (pthread_kill): Likewise.
407 * spinlock.h (acquire): Use __sched_yield not sched_yield.
409 * queue.h (enqueue): Enqueue thread according to priority.
411 * internals.c (struct pthread_start_args): New struct for passing
412 args to cloning function.
413 (struct _pthread): Rename to _pthread_descr_struct and adapt for
416 * Examples/Makefile (clean): Pass -f option to rm.
418 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
419 and define TEST_FOR_COMPARE_AND_SWAP.
420 * sysdeps/i386/i486/pt-machine.h: Removed.
422 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
425 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
427 * restart.h (suspend): Clear p_signal before suspending.
428 (suspend_with_cancellation): Likewise.
429 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
431 * weaks.c: Make __pthread_key_create return 1.
432 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
433 __libc_getspecific, __libc_setspecific, and __libc_key_t.
434 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
437 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
439 * sysdeps/sparc/pt-machine (RELEASE): Fix.
441 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
443 * sysdeps/powerpc/Implies: Added.
444 * sysdeps/powerpc/pt-machine.h: Added.
445 * sysdeps/powerpc/semaphorebits.h: Added.
447 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
449 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
451 (__pthread_manager_thread): Likewise.
452 Reported by Andreas Jaeger.
454 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
456 Since sigset_t no longer fits in a register, we can't pass in the
457 thread's initial mask so easily. Take this opportunity to simplify
458 the clone implementation by only accepting a single void* argument.
460 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
461 in the thread struct instead of as arguments through clone.
462 (pthread_start_thread): Look for them there.
463 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
464 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
465 * linuxthreads/pthread.c (pthread_initialize_manager): Revise