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