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