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