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