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