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