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