1 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3 * libpthread.map: Add __libc_internal_tsd_get and
4 __libc_internal_tsd_set. Add missing cancelable functions. Export
5 libc internal versions of the cancelable functions.
7 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
9 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
11 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
13 * attr.c: Implement pthread_attr_[gs]etguardsize,
14 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
15 Change pthread_attr_init to have two interfaces.
16 * internals.h (struct _pthread_descr_struct): Add new fields for
18 * libpthread.map: Add names in GLIBC_2.1 section.
19 * manager.c (pthread_handle_create): Implement guardsize and
21 (pthread_free): Likewise.
22 * pthread.c (pthread_create): Add new interface for changed
24 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
25 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
28 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
30 * manager.c: Enable resetting of the thread scheduling policy
31 to SCHED_OTHER when the parent thread has a different one.
33 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
35 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
36 _POSIX_ASYNCHRONOUS_IO.
38 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
40 * mutex.c: Implement new mutex types.
42 * internals.h: Include <signal.h>.
44 * libpthread.map: Add __erno_location and __h_errno_location.
46 * errno.c: Return pointer to variable actually in use. This might
47 not be the one in the thread structure.
48 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
50 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
51 of manager thread structure.
52 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
54 * pthread.c: Adapt initializer for thread structures.
55 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
56 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
57 current thread to global variables.
59 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
62 * Makefile (libpthread-routines): Add rwlock.
63 * sysdeps/pthread/pthread.h: Define data structures and declare
65 * libpthread.map: Add new functions.
67 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
69 * sysdeps/arm/pt-machine.h: New file; add ARM support.
70 * sysdeps/arm/Implies: likewise.
71 * README: Document it.
73 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
75 * signals.c: Remove unneeded initializer for sigwaited, saving a
78 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
80 * semaphore.c (sem_init): Set sem_spinlock only if available.
82 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
84 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
85 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
87 * Makefile: Update from LinuxThreads 0.7.
88 * internals.h. Likewise.
89 * manager.c: Likewise.
91 * pthread.c: Likewise.
92 * signals.c: Likewise.
93 * specific.c: Likewise.
94 * Examples/ex3.c: Likewise.
96 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
98 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
101 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
103 * wrapsyscall.c: Add socket functions which are also cancelation
106 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
108 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
109 New functions for fast thread specific data within libc.
111 * internals.h: Add new array p_libc_specific to struct
112 _pthread_descr_struct.
114 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
116 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
118 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
119 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
121 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
123 * internals.h (struct _pthread_descr_struct): Add definitions for
124 two-level specific key handling.
125 * manager.c (pthread_handle_create): Initialize specific memory array.
126 * specific.c: Implement two-level key handling.
127 * weaks.c: Don't provide dummy key handling.
128 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
129 Add definition of __libc_key_t.
130 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
132 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
133 PTHREAD_DESTRUCTOR_ITERATIONS.
135 * manager.c (pthread_handle_create): Compare mmap result with
138 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
139 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
141 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
143 sysdeps/sparc -> sysdeps/sparc/sparc32
144 sysdeps/sparc64 -> sysdeps/sparc/sparc64
146 * internals.h: Change definition of THREAD_SELF to be an expression,
147 not a statement that did a return.
148 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
149 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
150 Follow Solaris and use a "system reserved" register (%g6) to hold
151 the thread descriptor.
152 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
154 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
156 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
157 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
158 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
160 * semaphore.c: Include spinlock.h only when needed.
162 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
163 keys for entries not in use.
165 * weaks.c: Implement key handling functions for real.
167 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
169 Initial sparc64-linux support:
170 * linuxthreads/sysdeps/sparc64/Implies: New file.
171 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
173 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
175 * semaphore.c: Include spinlock.h at correct place.
178 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
180 The Great Bit File Move:
181 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
182 * sysdeps/powerpc/semaphorebits.h: Likewise.
183 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
184 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
185 * sysdeps/pthread/libc-lock.h: -> bits/
186 * sysdeps/pthread/stdio-lock.h: Likewise.
187 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
188 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
189 * semaphore.h: Likewise.
190 * sysdeps/pthread/pthread.h: Likewise.
192 * lockfile.c: <foo.h> -> <bits/foo.h>.
193 * semaphore.h: Likewise.
195 * Makefile: (headers): foo.h -> bits/foo.h.
196 * sysdeps/pthread/Makefile: Likewise.
198 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
200 * semaphore.c (sem_init): Set sem_spinlock only if available.
202 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
205 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
207 Update from LinuxThreads 0.6.
209 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
210 and __sched_get_priority_min instead of names without `__'.
212 * manager.c: Rewrite large parts to implement opaque pthread_t.
214 * cancel.c: Adapt for opaque pthread_t type.
215 * condvar.c: Likewise.
219 * pthread.c: Likewise.
220 * signals.c: Likewise.
221 * specific.c: Likewise.
222 * restart.h: Likewise.
224 * Examples/ex3.c: Likewise.
225 * Examples/ex4.c: Likewise.
226 * sysdeps/pthread/pthread.h: Likewise.
228 * pthread.c: Accumulate time for all threads in thread manager.
230 * semaphore.c: Implement fallback implementation for architectures
231 sometimes missing compare-exchange operations.
233 * cancel.c (pthread_cancel): Validate handle argument.
234 * join.c (pthread_join): Likewise.
235 (pthread_detach): Likewise.
236 * signals.c (pthread_kill): Likewise.
238 * spinlock.h (acquire): Use __sched_yield not sched_yield.
240 * queue.h (enqueue): Enqueue thread according to priority.
242 * internals.c (struct pthread_start_args): New struct for passing
243 args to cloning function.
244 (struct _pthread): Rename to _pthread_descr_struct and adapt for
247 * Examples/Makefile (clean): Pass -f option to rm.
249 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
250 and define TEST_FOR_COMPARE_AND_SWAP.
251 * sysdeps/i386/i486/pt-machine.h: Removed.
253 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
256 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
258 * restart.h (suspend): Clear p_signal before suspending.
259 (suspend_with_cancellation): Likewise.
260 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
262 * weaks.c: Make __pthread_key_create return 1.
263 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
264 __libc_getspecific, __libc_setspecific, and __libc_key_t.
265 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
268 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
270 * sysdeps/sparc/pt-machine (RELEASE): Fix.
272 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
274 * sysdeps/powerpc/Implies: Added.
275 * sysdeps/powerpc/pt-machine.h: Added.
276 * sysdeps/powerpc/semaphorebits.h: Added.
278 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
280 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
282 (__pthread_manager_thread): Likewise.
283 Reported by Andreas Jaeger.
285 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
287 Since sigset_t no longer fits in a register, we can't pass in the
288 thread's initial mask so easily. Take this opportunity to simplify
289 the clone implementation by only accepting a single void* argument.
291 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
292 in the thread struct instead of as arguments through clone.
293 (pthread_start_thread): Look for them there.
294 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
295 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
296 * linuxthreads/pthread.c (pthread_initialize_manager): Revise