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