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