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