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