Update.
[platform/upstream/glibc.git] / linuxthreads / ChangeLog
1 1999-10-07  Ulrich Drepper  <drepper@cygnus.com>
2
3         * Implies: New file.
4         * internals.h (struct _pthread_descr_struct): Add p_startfct.
5         * manager.c (pthread_handle_create): Initialize p_startfct.
6         * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
7
8 1999-09-25  Ulrich Drepper  <drepper@cygnus.com>
9
10         * manager.c (__linuxthreads_pthread_threads_max): New variable.
11         * specific.c (__linuxthreads_pthread_keys_max): New variable.
12         (__linuxthreads_pthread_key_2ndlevel_size): New variable.
13
14         * condvar.c (pthread_cond_timedwait_relative): Never return with
15         EINTR.  Patch by Andreas Schwab.
16
17 1999-09-19  Ulrich Drepper  <drepper@cygnus.com>
18
19         * signals.c (sigaction): Correct last patch.  Don't select
20         pthread_sighandler_rt based on the signal number but instead of
21         the SA_SIGINFO flag.
22
23 1999-09-23  Ulrich Drepper  <drepper@cygnus.com>
24
25         * specific.c: Move definitions of struct pthread_key_struct and
26         destr_function to ...
27         * internals.h: ...here.
28
29 1999-09-18  Ulrich Drepper  <drepper@cygnus.com>
30
31         * pthread.c (pthread_handle_sigrestart_rt): New function.  Use
32         this instead of pthread_handle_sigrestart if the signal is an RT
33         signal.
34
35         * signals.c: Handle passing through of sighandler arguments also
36         for real-time signals.
37
38 1999-09-03  Andreas Schwab  <schwab@suse.de>
39
40         * ptfork.c (__fork): Renamed from fork and use __libc_fork.  Add
41         fork as weak alias.
42         (__vfork): New function, alias vfork.
43         * Versions: Export __fork, vfork, and __vfork in libpthread.
44
45 1999-08-23  Andreas Schwab  <schwab@suse.de>
46
47         * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
48         call to signal handler.
49
50 1999-08-20  Ulrich Drepper  <drepper@cygnus.com>
51
52         * pthread.c (__pthread_reset_main_thread): Undo last change.
53         (__pthread_kill_other_threads_np): Reset signal handlers for the
54         signals we used in the thread implementation here.
55
56 1999-08-19  Ulrich Drepper  <drepper@cygnus.com>
57
58         * pthread.c (__pthread_reset_main_thread): Reset signal handlers
59         for the signals we used in the thread implementation [PR libc/1234].
60
61         * Versions: Export __pthread_kill_other_threads_np from libpthread
62         for GLIBC_2.1.2.
63
64         * signals.c: Pass sigcontext through wrapper to the user function.
65
66 1999-08-01  Ulrich Drepper  <drepper@cygnus.com>
67
68         * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
69         __libc_internal_tsd_set.
70
71 1999-07-29  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
72
73         * manager.c: Remove inclusion of <linux/tasks.h> since it's not
74         needed anymore.
75
76 1999-07-16  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
77
78         * internals.h: Align _pthread_descr_struct to 32 bytes.
79         Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
80         libc/1206.
81
82 1999-07-09  Ulrich Drepper  <drepper@cygnus.com>
83
84         * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
85         swap function.
86
87 1999-07-09  Cristian Gafton  <gafton@redhat.com>
88
89         * Makefile (libpthread-routines): Add oldsemaphore routine.
90         * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
91         sem_trywait, and sem_wait to GLIBC_2.1.
92         * oldsemaphore.c: New file.
93         * semaphore.c: Add default_symbol_versions for the changed functions.
94         (__new_sem_init): Rename from sem_init.
95         (__new_sem_post): Rename from sem_post.
96         (__new_sem_wait): Rename from sem_wait.
97         (__new_sem_trywait): Rename from sem_trywait.
98         (__new_sem_getvalue): Rename from sem_getvalue.
99         (__new_sem_destroy): Rename from sem_destroy.
100
101 1999-06-23  Robey Pointer  <robey@netscape.com>
102
103         * internals.h: Added p_nextlock entry to separate queueing for a
104         lock from queueing for a CV (sometimes a thread queues on a lock
105         to serialize removing itself from a CV queue).
106         * pthread.c: Added p_nextlock to initializers.
107         * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
108
109 1999-07-09  Ulrich Drepper  <drepper@cygnus.com>
110
111         * manager.c (pthread_handle_create): Free mmap region after stack
112         if clone failed.  Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
113
114 1999-05-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
115
116         * man/pthread_cond_init.man: Correct example.
117         Reported by Tomas Berndtsson <tomas@nocrew.org>.
118
119         * linuxthreads.texi (Condition Variables): Likewise.
120
121 1999-05-18  Jakub Jelinek  <jj@ultra.linux.cz>
122
123         * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
124         casx not cas, also successful casx returns the old value in rd
125         and not the new value.
126
127 1999-05-16  Xavier Leroy  <Xavier.Leroy@inria.fr>
128
129         * manager.c: If pthread_create() is given a NULL attribute
130         and the thread manager runs with a realtime policy, set the
131         scheduling policy of the newly created thread back to SCHED_OTHER.
132         * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
133         initialize the schedpolicy field of new_thread->p_start_args
134         to that of the calling thread.
135
136 1999-04-29  Ulrich Drepper  <drepper@cygnus.com>
137
138         * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
139         instruction does not allow memory element to use offset.
140
141 1999-04-28  Ulrich Drepper  <drepper@cygnus.com>
142
143         * manager.c (pthread_allocate_stack): Optimize initialization of new
144         thread descriptor.
145
146         * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
147         Don't use initializer since it is all zeroes.
148         (__libc_once_define): Likewise.
149
150 1999-04-16  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
151
152         * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
153         doesn't exist anymore.
154         * sysdeps/i386/Implies: Likewise.
155         * sysdeps/m68k/Implies: Likewise.
156         * sysdeps/mips/Implies: Likewise.
157         * sysdeps/powerpc/Implies: Likewise.
158         * sysdeps/sparc/sparc32/Implies: Likewise.
159         * sysdeps/sparc/sparc64/Implies: Likewise.
160
161 1999-04-15  Ulrich Drepper  <drepper@cygnus.com>
162
163         * sysdeps/alpha/bits/semaphore.h: Removed.
164         * sysdeps/powerpc/bits/semaphore.h: Removed.
165         * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
166         * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
167         * Makefile (headers): Remove bits/semaphore.h.
168
169         * semaphore.h: Define _pthread_descr if necessary.
170         Don't include limits.h.  Define SEM_VALUE_MAX directly.
171         Define SEM_FAILED.
172         (sem_t): Protect element names with leading __.
173         Add declarations for sem_close, sem_open, and sem_unlink.
174         * semaphore.c: Adjust all functions for new element names.
175         Define sem_close, sem_open, and sem_unlink.
176         * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
177         GLIBC_2.1.1.
178         * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
179         necessary.
180
181 1999-03-16  H.J. Lu  <hjl@gnu.org>
182
183         * specific.c (pthread_key_delete): Check th->p_terminated to see
184         if the thread is running.
185
186         * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
187         Added to GLIBC_2.0 for libc.so.
188
189 1999-02-12  H.J. Lu  <hjl@gnu.org>
190
191         * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
192         __libc_allocate_rtsig): Added to GLIBC_2.1.
193
194         * internals.h (DEFAULT_SIG_RESTART): Removed.
195         (DEFAULT_SIG_CANCEL): Removed.
196
197         * pthread.c (init_rtsigs, __libc_current_sigrtmin,
198         __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
199         (__pthread_sig_restart, __pthread_sig_cancel,
200         __pthread_sig_debug): Initialized.
201         (pthread_initialize): Call init_rtsigs () to initialize
202         real-time signals.
203
204 1999-02-03  H.J. Lu  <hjl@gnu.org>
205
206         * manager.c (__pthread_manager): Do block __pthread_sig_debug.
207         Don't restart the thread which sent REQ_DEBUG.
208         (pthread_start_thread): Check if __pthread_sig_debug > 0
209         before debugging.
210
211         * pthread.c (__pthread_initialize_manager): Suspend ourself
212         after sending __pthread_sig_debug to gdb instead of
213         __pthread_sig_cancel.
214
215 1999-01-24  H.J. Lu  <hjl@gnu.org>
216
217         * manager.c (__pthread_manager): Delete __pthread_sig_debug
218         from mask if __pthread_sig_debug > 0.
219         (pthread_handle_create): Increment __pthread_handles_num.
220
221         * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
222         * pthread.c (__pthread_initialize_manager): Likewise.
223
224         * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
225         instead of __libc_allocate_rtsig (2).
226         (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
227         instead of __pthread_sig_cancel.
228         (pthread_handle_sigdebug): Fix comments.
229
230 1999-01-21  Ulrich Drepper  <drepper@cygnus.com>
231
232         * manager.c (pthread_allocate_stack): Set
233         __pthread_nonstandard_stacks if user-specified stack is used.
234
235 1999-01-16  Ulrich Drepper  <drepper@cygnus.com>
236
237         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
238         _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
239
240 1999-01-07  Xavier Leroy  <Xavier.Leroy@inria.fr>
241
242         * pthread.c: Use a third signal __pthread_sig_debug distinct
243         from __pthread_sig_cancel to notify gdb when a thread is
244         created
245         * manager.c: Likewise.
246         * internals.h: Likewise.
247         * signals.c: The implementation of sigwait(s) assumed that
248         all signals in s have signal handlers already attached.
249         This is not required by the standard, so make it work
250         also if some of the signals have no handlers.
251
252 1999-01-05  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
253
254         * linuxthreads.texi: Remove pointers from first @node.  Move old
255         @node spec inside comment.
256
257 1998-12-31  Ulrich Drepper  <drepper@cygnus.com>
258
259         * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
260         _IO_lock_unlock.
261
262 1998-12-29  Ulrich Drepper  <drepper@cygnus.com>
263
264         * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
265         lock.  Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
266
267 1998-12-21  Ulrich Drepper  <drepper@cygnus.com>
268
269         * manager.c: Threads now send __pthread_sig_cancel on termination.
270         Change clone call and signal masks.
271         * thread.c (pthread_handle_sigrestart): Remove special code for
272         manager.
273         (pthread_handle_sigcancel): In manager thread call
274         __pthread_manager_sighandler.
275         * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
276         * sysdeps/i386/i686/pt-machine.h: Likewise.
277         Patches by Xavier Leroy.
278
279 1998-12-14  Ulrich Drepper  <drepper@cygnus.com>
280
281         * spinlock.c (__pthread_unlock): Don't crash if called for an
282         untaken mutex.  Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
283
284         * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
285         overall runtime.
286
287 1998-12-13  Ulrich Drepper  <drepper@cygnus.com>
288
289         * Examples/ex3.c: Wait until all threads are started before
290         searching for the number to avoid race condition on very fast
291         systems.
292
293 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
294
295         * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
296         declaration since it's not needed.
297
298         * sysdeps/pthread/pthread.h: Move internal functions to ...
299         * internals.h: ...here.
300
301 1998-12-02  H.J. Lu  <hjl@gnu.org>
302
303         * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
304         SIGRTMIN is defined.
305         (__pthread_sig_cancel): Likewise.
306
307 1998-12-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
308
309         * wrapsyscall.c: Include <sys/mman.h> for msync,
310         <stdlib.h> for system and <termios.h> for tcdrain prototype.
311         Correct msync declaration.
312
313 1998-11-29  Roland McGrath  <roland@baalperazim.frob.com>
314
315         * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
316         __libc_tsd_set): New macros for new interface.
317         * no-tsd.c: New file, provide uninitialized defns of
318         __libc_internal_tsd_get and __libc_internal_tsd_set.
319         * Makefile (routines): Add no-tsd.
320
321 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
322
323         * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
324         * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
325         __libc_internal_tsd_set): Move decls to ...
326         * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
327         declarations.
328
329         * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
330         __libc_internal_tsd_set): Make these pointers to functions, not
331         functions; remove #pragma weak decls for them.
332         * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
333         Define static functions and initialized pointers to them.
334
335 1998-11-18  Ulrich Drepper  <drepper@cygnus.com>
336
337         * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
338         (CFLAGS-specific.c): Likewise.
339         (CFLAGS-pthread.c): Likewise.
340         (CFLAGS-ptfork.c): Likewise.
341         (CFLAGS-cancel.c): Likewise.
342         * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
343         as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
344
345         * mutex.c (pthread_mutex_init): Define as strong symbol.
346         (pthread_mutex_destroy): Likewise.
347         (pthread_mutex_trylock): Likewise.
348         (pthread_mutex_lock): Likewise.
349         (pthread_mutex_unlock): Likewise.
350         (pthread_mutexattr_init): Likewise.
351         (pthread_mutexattr_destroy): Likewise.
352         (pthread_once): Likewise.
353         * ptfork.c (pthread_atfork): Likewise.
354         * specific.c (pthread_key_create): Likewise.
355         (pthread_setspecific): Likewise.
356         (pthread_getspecific): Likewise.
357
358 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
359
360         * linuxthreads.texi: Fix punctuation after xref.
361
362 1998-11-10  H.J. Lu  <hjl@gnu.org>
363
364         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
365         if it is defined in <linux/limits.h>.
366
367 1998-10-29 14:28  Ulrich Drepper  <drepper@cygnus.com>
368
369         * spinlock.h (__pthread_trylock): Define inline.
370         (__pthread_lock): Add extra parameter to declaration.  Declare
371         using internal_function.
372         (__pthread_unlock): Declare using internal_function.
373         * spinlock.c (__pthread_lock): Add new parameter.  Use it instead
374         of local variable self.  Avoid recomputing self.  Define using
375         internal_function.
376         (__pthread_trylock): Remove.
377         (__pthread_unlock): Define using internal_function.
378         * cancel.c: Adjust for __pthread_lock interface change.  Use already
379         computed self value is possible.
380         * condvar.c: Likewise.
381         * join.c: Likewise.
382         * manager.c: Likewise.
383         * mutex.c: Likewise.
384         * pthread.c: Likewise.
385         * rwlock.c: Likewise.
386         * semaphore.c: Likewise.
387         * signals.c: Likewise.
388
389 1998-10-27 13:46  Ulrich Drepper  <drepper@cygnus.com>
390
391         * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
392         __ to field names of the struct.
393         * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
394         Likewise.
395         (pthread_attr_t): Likewise.
396         (pthread_cond_t): Likewise.
397         (pthread_condattr_t): Likewise.
398         (pthread_mutex_t): Likewise.
399         (pthread_mutexattr_t): Likewise.
400         (pthread_rwlock_t): Likewise.
401         (pthread_rwlockattr_t): Likewise.
402         * attr.c: Adjust for pthread.h and pthreadtypes.h change.
403         * cancel.c: Likewise.
404         * condvar.c: Likewise.
405         * manager.c: Likewise.
406         * mutex.c: Likewise.
407         * pthread.c: Likewise.
408         * ptlongjmp.c: Likewise.
409         * rwlock.c: Likewise.
410         * spinlock.c: Likewise.
411
412 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
413
414         * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
415         also with PT_EI.
416
417         * sysdeps/i386/i686/pt-machine.h: Remove unused inline
418         definitions.
419
420         * Makefile (libpthread-routines): Add pt-machine.
421         * pt-machine.c: New file.
422         * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
423         yet defined.  Use PT_EI in extern inline definitions.
424         * sysdeps/arm/pt-machine.h: Likewise.
425         * sysdeps/i386/pt-machine.h: Likewise.
426         * sysdeps/i386/i686/pt-machine.h: Likewise.
427         * sysdeps/m68k/pt-machine.h: Likewise.
428         * sysdeps/mips/pt-machine.h: Likewise.
429         * sysdeps/powerpc/pt-machine.h: Likewise.
430         * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
431         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
432
433 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
434
435         * semaphore.h: Include <sys/types.h> so that _pthread_descr
436         is declared.
437
438 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
439
440         * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
441         argument.
442         * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
443
444 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
445
446         * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
447         multiple inclusion guard.
448
449 1998-09-02 11:08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
450
451         * signals.c (sigaction): Check that sig is less than NSIG to avoid
452         array index overflow.
453
454 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
455
456         * sysdeps/pthread/semaphore.h: New file.
457
458 1998-09-06 09:08  Ulrich Drepper  <drepper@cygnus.com>
459
460         * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
461         _LIBC_TSD_KEY_DL_ERROR.
462
463 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
464
465         * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
466         * sysdeps/i386/pt-machine.h: Likewise.
467         Suggested by Roland McGrath.
468
469 1998-08-28 13:58  Ulrich Drepper  <drepper@cygnus.com>
470
471         * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
472         access thread data with non-constant offsets.
473         * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
474         necessary.
475
476         * sysdeps/i386/useldt.h: Fix typo.  Add THREAD_GETMEM_NC and
477         THREAD_SETMEM_NC definitions.
478
479         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
480         THREAD_SETMEM_NC.
481         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
482
483 1998-08-26 15:46  Ulrich Drepper  <drepper@cygnus.com>
484
485         * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
486         not already defined.
487         (struct _pthread_descr_struct): Add p_self and p_nr field.
488         * manager.c (__pthread_handles): Define second element to point
489         to manager thread.
490         (__pthread_handles_num): Initialize to 2.
491         (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
492         (pthread_start_thread): Likewise.
493         (pthread_handle_create): Start search for free slot at entry 2.
494         Initialize new fields p_self and p_nr.
495         Call __clone with CLONE_PTRACE if available.
496         (pthread_free): Call FREE_THREAD_SELF if available.
497         * pthread.c (__pthread_initial_thread): Initialize new fields.
498         (__pthread_manager_thread): Likewise.
499         (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
500
501         * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
502         elements of the thread descriptor.
503         * condvar.c: Likewise.
504         * errno.c: Likewise.
505         * join.c: Likewise.
506         * manager.c: Likewise.
507         * pthread.c: Likewise.
508         * ptlongjmp.c: Likewise.
509         * semaphore.c: Likewise.
510         * signals.c: Likewise.
511         * specific.c: Likewise.
512         * spinlock.c: Likewise.
513
514         * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
515
516         * sysdeps/i386/useldt.h: New file.
517         * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
518
519         * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
520         THREAD_SETMEM using __thread_self.
521         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
522
523 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
524
525         * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
526         turned out that we didn't need to queue after all.
527
528 1998-08-22  Geoff Keating  <geoffk@ozemail.com.au>
529
530         * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
531         and wastes space; correct types.
532
533 1998-08-08 11:18  H.J. Lu  <hjl@gnu.org>
534
535         * signals.c (sigaction): Handle NULL argument.
536
537 1998-08-04  Ulrich Drepper  <drepper@cygnus.com>
538
539         * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
540         of sigset_t.
541
542 1998-08-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
543
544         * Makefile (linuxthreads-version): Extract correct number from
545         Banner.
546
547 1998-07-29  Xavier Leroy  <Xavier.Leroy@inria.fr>
548
549         * Banner: Bump version number to 0.8
550         * FAQ.html: Many updates, in particular w.r.t. debugging.
551         * manager.c: Support for non-default stacksize for
552         LinuxThreads-allocated stacks;
553         don't use guard pages for stacks with default size, rely on
554         rlimit(RLIMIT_STACK) instead (it's cheaper).
555         * attr.c: Likewise.
556         * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
557         everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
558         * condvar.c: Likewise.
559         * internals.h: Likewise.
560         * restart.h: Likewise.
561         * signals.c: Likewise.
562         * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
563
564 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
565
566         * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
567         __pthread_mutexattr_[sg]ettype.  Add more weak aliases.
568         * Versions: Put __pthread_mutexattr_settype under version
569         GLIBC_2.0.  Don't export __pthread_mutexattr_setkind_np and
570         __pthread_mutexattr_gettype.
571
572 1998-07-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
573
574         * sysdeps/pthread/bits/libc-lock.h: Make
575         __pthread_mutexattr_settype weak.  Don't make
576         __pthread_mutexattr_setkind_np weak.
577
578 1998-07-16 10:52  Ulrich Drepper  <drepper@cygnus.com>
579
580         * manager.c (pthread_handle_create): Check whether sched_setscheduler
581         call can succeed here.
582
583         * mutex.c: Define __pthread_mutexattr_settype and make
584         __pthread_mutexattr_setkind_np an alias.
585         Likewise for __pthread_mutexattr_gettype.
586
587 1998-07-15 11:00 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
588
589         * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
590         is root.
591
592 1998-07-14 19:38  Ulrich Drepper  <drepper@cygnus.com>
593
594         * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
595
596 1998-07-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
597
598         * Examples/ex6.c: Include <unistd.h> for usleep.
599
600 1998-06-13 11:04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
601
602         * Examples/ex4.c (main): Use exit, not pthread_exit.
603
604 1998-07-09 13:39  Ulrich Drepper  <drepper@cygnus.com>
605
606         * Versions: Add __pthread_mutexattr_gettype and
607         __pthread_mutexattr_settype.
608         * lockfile.c: Use __pthread_mutexattr_settype instead of
609         __pthread_mutexattr_setkind_np.
610         * mutex.c: Define __pthread_mutexattr_gettype and
611         __pthread_mutexattr_settype.
612         * weak.c: Likewise.
613         * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
614         __pthread_mutexattr_settype.
615         * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
616         Use __pthread_mutexattr_settype.
617
618 1998-07-08 22:26  Ulrich Drepper  <drepper@cygnus.com>
619
620         * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
621         * mutex.c: Define weak alias pthread_mutexattr_gettype and
622         pthread_mutexattr_settype.
623         * sysdeps/pthread/pthread.h: Declare these functions.
624         Move pthread_sigmask and pthread_kill declaration in separate header.
625         * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
626
627 1998-07-07 15:20  Ulrich Drepper  <drepper@cygnus.com>
628
629         * Makefile: Add rules to compile and run tests.
630         * Examples/ex1.c: Little changes to fix warnings.
631         * Examples/ex2.c: Likewise.
632         * Examples/ex3.c: Likewise.
633         * Examples/ex4.c: Likewise.
634         * Examples/ex5.c: Likewise.
635         * Examples/ex6.c: New file.
636
637 1998-07-05 11:54  Ulrich Drepper  <drepper@cygnus.com>
638
639         * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
640
641 1998-07-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
642
643         * attr.c: Include <string.h>.
644
645 1998-06-30 11:47  Ulrich Drepper  <drepper@cygnus.com>
646
647         * attr.c: Include errno.h.  Use memcpy to copy sched_param.
648         * internals.h: Include limits.h.
649         * manager.c: Use memcpy to copy sched_param.
650         * ptfork.c: Include errno.h.
651         * pthread.c: Likewise.
652         * semaphore.c: Likewise.
653         * specific.c: Likewise.
654         * spinlock.h: Likewise.
655         * sysdeps/pthread/pthread.h: Include only allowed headers.  Move
656         type definition to ...
657         * sysdeps/pthread/bits/pthreadtypes.h: ...here.  New file.
658
659 1998-06-29 12:34  Ulrich Drepper  <drepper@cygnus.com>
660
661         * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
662
663         * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
664         as macros as demanded in POSIX.1, Annex C.
665
666 1998-06-29 12:29  Ulrich Drepper  <drepper@cygnus.com>
667
668         * internals.h (struct pthread_request): For free use pthread_t
669         instead of pthread_descr.
670         * join.c (pthread_join): Pass thread_id, not th to manager.
671         (pthread_detach): Likewise.
672         * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
673         (pthread_exited): Remove detached queue code.
674         (pthread_handle_free): Expect thread ID parameter and use it to
675         validate the thread decsriptor.  Don't use detached queue.
676         Patches by Xavier Leroy.
677
678 1998-06-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
679
680         * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
681         _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
682         __pthread_atfork, __pthread_key_create, __pthread_once.
683         * internals.h: Doc fix.
684         * pthread.c (__pthread_initialize): Define again.
685
686 1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
687
688         * manager.c (pthread_exited): If thread is not detached put it on
689         special list.
690         (pthread_handle_free): If thread is not on list with living threads
691         search on list with detached threads.
692
693         * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
694         for new definition of pthread_rwlock_t.
695
696         * spinlock.c: Correct test whether to compile
697         __pthread_compare_and_swap or not.
698
699 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
700
701         * attr.c: Finish user stack support.  Change locking code to be safe
702         in situations with different priorities.
703         * cancel.c: Likewise.
704         * condvar.c: Likewise.
705         * internals.h: Likewise.
706         * join.c: Likewise.
707         * manager.c: Likewise.
708         * mutex.c: Likewise.
709         * pthread.c: Likewise.
710         * ptlongjmp.c: Likewise.
711         * queue.h: Likewise.
712         * rwlock.c: Likewise.
713         * semaphore.c: Likewise.
714         * semaphore.h: Likewise.
715         * signals.c: Likewise.
716         * spinlock.c: Likewise.
717         * spinlock.h: Likewise.
718         * sysdeps/pthread/pthread.h: Likewise.
719         Patches by Xavier Leroy.
720
721         * sysdeps/i386/i686/pt-machine.h: New file.
722
723 1998-06-25  Ulrich Drepper  <drepper@cygnus.com>
724
725         * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
726         [sg]et_stackaddr prototypes always available.
727
728         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
729         _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
730
731 1998-06-24  Ulrich Drepper  <drepper@cygnus.com>
732
733         * manager.c (pthread_free): Undo patch from 980430.
734         Reported by David Wragg <dpw@doc.ic.ac.uk>.
735
736 1998-06-09 15:07  Ulrich Drepper  <drepper@cygnus.com>
737
738         * manager.c: Define __pthread_manager_adjust_prio and use it to
739         increase priority when needed.
740         * internals.h: Add prototype for __pthread_manager_adjust_prio.
741         * mutex.c: Optimize mutexes to wake up only one thread.
742         * pthread.c: Move PID of manager for global variable in structure
743         element.
744         Patches by Xavier Leroy.
745
746 1998-06-07 13:47  Ulrich Drepper  <drepper@cygnus.com>
747
748         * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
749
750 1998-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
751
752         * attr.c: Correct typo.
753
754 1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
755
756         * manager.c (pthread_free): Unmap guard before the stack.
757         Patch by Matthias Urlichs.
758
759 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
760
761         * manager.c (pthread_free): Detect already free child.
762         Patch by Xavier Leroy, reported by Matthias Urlichs.
763
764 1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
765
766         * Makefile (linuxthreads-version): Renamed back from
767         libpthread-version.
768
769 1998-04-21  Ulrich Drepper  <drepper@cygnus.com>
770
771         * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
772         __libc_longjmp.
773
774 1998-04-20 14:55  Ulrich Drepper  <drepper@cygnus.com>
775
776         * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
777         * internals.h: Add definitions for new spinlock implementation.
778         * ptlongjmp.c: New file.
779         * spinlock.c: New file.
780         * spinlock.h (acquire): Don't reschedule using __sched_yield, use
781         new function __pthread_acquire to prevent deadlocks with thread
782         with different priorities.
783         Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
784
785 1998-03-16  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
786
787         * manager.c (__pthread_manager): Reduce first argument to select
788         to include just the needed file descriptor.
789
790 1998-03-17 00:06  Ulrich Drepper  <drepper@cygnus.com>
791
792         * manager.c: Fix last patch which caused core dumps.
793
794         * pthread.c: Correctly handle missing SIGRTMIN.
795
796 1998-03-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
797
798         * libpthread.map: Add __libc_internal_tsd_get and
799         __libc_internal_tsd_set.  Add missing cancelable functions. Export
800         libc internal versions of the cancelable functions.
801
802 1998-03-13 16:51  Ulrich Drepper  <drepper@cygnus.com>
803
804         * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
805
806 1998-03-13 00:46  Ulrich Drepper  <drepper@cygnus.com>
807
808         * attr.c: Implement pthread_attr_[gs]etguardsize,
809         pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
810         Change pthread_attr_init to have two interfaces.
811         * internals.h (struct _pthread_descr_struct): Add new fields for
812         above functions.
813         * libpthread.map: Add names in GLIBC_2.1 section.
814         * manager.c (pthread_handle_create): Implement guardsize and
815         user stack.
816         (pthread_free): Likewise.
817         * pthread.c (pthread_create): Add new interface for changed
818         pthread_attr_t.
819         * sysdeps/pthread/pthread.h: Add prototypes for new functions.
820         * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
821         PTHREAD_STACK_MIN.
822
823 1998-03-11 00:42  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
824
825         * manager.c: Enable resetting of the thread scheduling policy
826         to SCHED_OTHER when the parent thread has a different one.
827
828 1998-02-01 13:51  Ulrich Drepper  <drepper@cygnus.com>
829
830         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
831         _POSIX_ASYNCHRONOUS_IO.
832
833         * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
834         mutexes.
835         * mutex.c: Implement new mutex types.
836
837         * internals.h: Include <signal.h>.
838
839         * libpthread.map: Add __erno_location and __h_errno_location.
840
841         * errno.c: Return pointer to variable actually in use.  This might
842         not be the one in the thread structure.
843         * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
844         and p_h_errnop.
845         * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
846         of manager thread structure.
847         (pthread_handle_create): Set p_errnop and p_h_errnop members for new
848         thread.
849         * pthread.c: Adapt initializer for thread structures.
850         (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
851         (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
852         current thread to global variables.
853
854 1998-01-31 17:27  Ulrich Drepper  <drepper@cygnus.com>
855
856         * rwlock.c: New file.
857         * Makefile (libpthread-routines): Add rwlock.
858         * sysdeps/pthread/pthread.h: Define data structures and declare
859         functions.
860         * libpthread.map: Add new functions.
861
862 1997-12-18 13:50  Philip Blundell  <pb@nexus.co.uk>
863
864         * sysdeps/arm/pt-machine.h: New file; add ARM support.
865         * sysdeps/arm/Implies: likewise.
866         * README: Document it.
867
868 1997-12-13  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
869
870         * signals.c: Remove unneeded initializer for sigwaited, saving a
871         warning.
872
873 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
874
875         * semaphore.c (sem_init): Set sem_spinlock only if available.
876
877 1997-12-04 01:48  Ulrich Drepper  <drepper@cygnus.com>
878
879         * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
880         * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
881
882         * Makefile: Update from LinuxThreads 0.7.
883         * internals.h. Likewise.
884         * manager.c: Likewise.
885         * mutex.c: Likewise.
886         * pthread.c: Likewise.
887         * signals.c: Likewise.
888         * specific.c: Likewise.
889         * Examples/ex3.c: Likewise.
890
891 1997-11-20 18:13  Ulrich Drepper  <drepper@cygnus.com>
892
893         * pthread.c (__pthread_reset_main_thread): Close pipe only if still
894         open.
895
896 1997-10-29 05:38  Ulrich Drepper  <drepper@cygnus.com>
897
898         * wrapsyscall.c: Add socket functions which are also cancelation
899         points.
900
901 1997-10-19 21:40  Wolfram Gloger  <wg@wolfram.dent.med.uni-muenchen.de>
902
903         * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
904         New functions for fast thread specific data within libc.
905
906         * internals.h: Add new array p_libc_specific to struct
907         _pthread_descr_struct.
908
909         * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
910
911 1997-10-13 05:39  Ulrich Drepper  <drepper@cygnus.com>
912
913         * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
914         Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
915
916 1997-08-29 03:05  Ulrich Drepper  <drepper@cygnus.com>
917
918         * internals.h (struct _pthread_descr_struct): Add definitions for
919         two-level specific key handling.
920         * manager.c (pthread_handle_create): Initialize specific memory array.
921         * specific.c: Implement two-level key handling.
922         * weaks.c: Don't provide dummy key handling.
923         * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
924         Add definition of __libc_key_t.
925         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
926         as 1024.
927         Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
928         PTHREAD_DESTRUCTOR_ITERATIONS.
929
930         * manager.c (pthread_handle_create): Compare mmap result with
931         MAP_FAILED.
932
933         * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
934         * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
935
936 1997-08-22 19:04  Richard Henderson  <rth@cygnus.com>
937
938         sysdeps/sparc -> sysdeps/sparc/sparc32
939         sysdeps/sparc64 -> sysdeps/sparc/sparc64
940
941         * internals.h: Change definition of THREAD_SELF to be an expression,
942         not a statement that did a return.
943         * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
944         * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
945         Follow Solaris and use a "system reserved" register (%g6) to hold
946         the thread descriptor.
947         * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
948
949 1997-08-03 00:09  Ulrich Drepper  <drepper@cygnus.com>
950
951         * mutex.c: Correct pthread_once.  Patch by Xavier Leroy.
952         * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
953         * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
954
955         * semaphore.c: Include spinlock.h only when needed.
956
957         * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
958         keys for entries not in use.
959
960         * weaks.c: Implement key handling functions for real.
961
962 1997-06-29  01:04  Richard Henderson  <richard@gnu.ai.mit.edu>
963
964         Initial sparc64-linux support:
965         * linuxthreads/sysdeps/sparc64/Implies: New file.
966         * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
967
968 1997-06-29 00:48  Ulrich Drepper  <drepper@cygnus.com>
969
970         * semaphore.c: Include spinlock.h at correct place.
971         Patch by HJ Lu.
972
973 1997-06-13 10:06  Richard Henderson  <rth@tamu.edu>
974
975         The Great Bit File Move:
976         * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
977         * sysdeps/powerpc/semaphorebits.h: Likewise.
978         * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
979         * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
980         * sysdeps/pthread/libc-lock.h: -> bits/
981         * sysdeps/pthread/stdio-lock.h: Likewise.
982         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
983         * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
984         * semaphore.h: Likewise.
985         * sysdeps/pthread/pthread.h: Likewise.
986
987         * lockfile.c: <foo.h> -> <bits/foo.h>.
988         * semaphore.h: Likewise.
989
990         * Makefile: (headers): foo.h -> bits/foo.h.
991         * sysdeps/pthread/Makefile: Likewise.
992
993 1997-04-11 01:18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
994
995         * semaphore.c (sem_init): Set sem_spinlock only if available.
996
997         * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
998         asm constraints.
999
1000 1997-04-09 03:00  Ulrich Drepper  <drepper@cygnus.com>
1001
1002         Update from LinuxThreads 0.6.
1003
1004         * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1005         and __sched_get_priority_min instead of names without `__'.
1006
1007         * manager.c: Rewrite large parts to implement opaque pthread_t.
1008
1009         * cancel.c: Adapt for opaque pthread_t type.
1010         * condvar.c: Likewise.
1011         * errno.c: Likewise.
1012         * join.c: Likewise.
1013         * mutex.c: Likewise.
1014         * pthread.c: Likewise.
1015         * signals.c: Likewise.
1016         * specific.c: Likewise.
1017         * restart.h: Likewise.
1018         * queue.h: Likewise.
1019         * Examples/ex3.c: Likewise.
1020         * Examples/ex4.c: Likewise.
1021         * sysdeps/pthread/pthread.h: Likewise.
1022
1023         * pthread.c: Accumulate time for all threads in thread manager.
1024
1025         * semaphore.c: Implement fallback implementation for architectures
1026         sometimes missing compare-exchange operations.
1027
1028         * cancel.c (pthread_cancel): Validate handle argument.
1029         * join.c (pthread_join): Likewise.
1030         (pthread_detach): Likewise.
1031         * signals.c (pthread_kill): Likewise.
1032
1033         * spinlock.h (acquire): Use __sched_yield not sched_yield.
1034
1035         * queue.h (enqueue): Enqueue thread according to priority.
1036
1037         * internals.c (struct pthread_start_args): New struct for passing
1038         args to cloning function.
1039         (struct _pthread): Rename to _pthread_descr_struct and adapt for
1040         opaque pthread_t.
1041
1042         * Examples/Makefile (clean): Pass -f option to rm.
1043
1044         * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1045         and define TEST_FOR_COMPARE_AND_SWAP.
1046         * sysdeps/i386/i486/pt-machine.h: Removed.
1047
1048         * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1049         to 1024.
1050
1051 1997-04-04 16:38  Ulrich Drepper  <drepper@cygnus.com>
1052
1053         * restart.h (suspend): Clear p_signal before suspending.
1054         (suspend_with_cancellation): Likewise.
1055         Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1056
1057         * weaks.c: Make __pthread_key_create return 1.
1058         * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1059         __libc_getspecific, __libc_setspecific, and __libc_key_t.
1060         * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1061         using libio.
1062
1063 1997-03-19 15:13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
1064
1065         * sysdeps/sparc/pt-machine (RELEASE): Fix.
1066
1067 1997-03-01 07:55  Geoff Keating  <geoffk@ozemail.com.au>
1068
1069         * sysdeps/powerpc/Implies: Added.
1070         * sysdeps/powerpc/pt-machine.h: Added.
1071         * sysdeps/powerpc/semaphorebits.h: Added.
1072
1073 1997-01-22 01:22  Ulrich Drepper  <drepper@cygnus.com>
1074
1075         * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1076         initializer.
1077         (__pthread_manager_thread): Likewise.
1078         Reported by Andreas Jaeger.
1079
1080 1997-01-18 22:15  Richard Henderson  <rth@tamu.edu>
1081
1082         Since sigset_t no longer fits in a register, we can't pass in the
1083         thread's initial mask so easily.  Take this opportunity to simplify
1084         the clone implementation by only accepting a single void* argument.
1085
1086         * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1087         in the thread struct instead of as arguments through clone.
1088         (pthread_start_thread): Look for them there.
1089         * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1090         p_initial_fn_arg, p_initial_mask.  Fix __pthread_manager proto.
1091         * linuxthreads/pthread.c (pthread_initialize_manager): Revise
1092         clone invocation.