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