]> sourceware.org Git - glibc.git/blob - linuxthreads/ChangeLog
Update.
[glibc.git] / linuxthreads / ChangeLog
1 2000-06-10 Kaz Kylheku <kaz@ashi.footprints.net>
2
3 * sysdeps/pthread/timer_create.c: Thread matching now done on
4 clock type as well as thread attributes.
5 There are individual global signal-delivering threads for
6 different clock types.
7 * sysdeps/pthread/posix-timer.h: Likewise.
8 * sysdeps/pthread/timer_routines.c: Likewise.
9
10 * sysdeps/pthread/timer_routines.c: Thread allocation and
11 deallocation function now remembers to put thread on active
12 list and remove from active list.
13 Thus now the feature of binding multiple timers
14 to a single thread actually works.
15
16 2000-06-10 Ulrich Drepper <drepper@redhat.com>
17
18 * pthread.c (__pthread_create_2_1): Optimize a bit.
19
20 * internals.h (invalid_handle): Also test for p_terminated != 0.
21 (nonexisting_handle): New function. Same as old invalid_handle.
22 * join.c (pthread_join): Use nonexisting_handle instead of
23 invalid_handle to test for acceptable thread handle.
24 * manager.c (pthread_handle_free): Likewise.
25 * joinrace.c: New file.
26 Reported by Permaine Cheung <pcheung@cygnus.com>.
27
28 2000-06-08 Ulrich Drepper <drepper@redhat.com>
29
30 * sysdeps/pthread/timer_routines.c (__timer_thread_queue_timer):
31 Correct handling of matching variable.
32
33 * sysdeps/pthread/tst-timer.c (main): Rewrite initializers to
34 avoid warnings.
35
36 * sysdeps/pthread/timer_routines.c (__timer_thread_queue_timer):
37 Be prepared for empty timer list.
38
39 * sysdeps/pthread/timer_create.c (timer_create): Correct names of
40 CPUTIME clock ID. Add support for thread clocks.
41
42 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Operands in
43 subtraction were switched.
44
45 * sysdeps/pthread/timer_routines.c (init_module): Use
46 THREAD_MAXNODES threads.
47
48 * sysdeps/pthread/posix-timer.h (struct timer_node): Add creator_pid.
49 * sysdeps/pthread/timer_create.c: Fill in creator_pid.
50 * sysdeps/pthread/timer_routines.c (thread_expire_timer): Send signal
51 with sigqueueinfo is this system call is available.
52
53 * sysdeps/pthread/timer_create.c (timer_create): Allow
54 CLOCK_CPUTIME if _POSIX_CPUTIME is defined.
55
56 * sysdeps/pthread/Makefile: New file. Add rules to build timer
57 functionality.
58 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add TIMER_MAX.
59
60 2000-06-04 Kaz Kylheku <kaz@ashi.footprints.net>
61
62 * sysdeps/pthread/posix-timer.h: New file.
63 * sysdeps/pthread/timer_create.c: New file.
64 * sysdeps/pthread/timer_delete.c: New file.
65 * sysdeps/pthread/timer_getoverr.c: New file.
66 * sysdeps/pthread/timer_gettime.c: New file.
67 * sysdeps/pthread/timer_routines.c: New file.
68 * sysdeps/pthread/timer_settime.c: New file.
69 * sysdeps/pthread/tst-timer.c: New file.
70
71 2000-06-08 Ulrich Drepper <drepper@redhat.com>
72
73 * sysdeps/unix/sysv/linux/bits/local_lim.h: Remove OPEN_MAX and
74 LINK_MAX definitions if necessary.
75
76 2000-06-04 Kaz Kylheku <kaz@ashi.footprints.net>
77
78 Added missing fork time handling of global libio lock.
79
80 * lockfile.c (__fresetlockfiles): Now also resets the list lock,
81 not just the individual stream locks. Rewritten to use new
82 iterator interface provided by libio rather than accessing
83 global variable.
84
85 * lockfile.c (__flockfilelist, _funlockfilelist): New functions
86 which lock and unlock the stream list using the new interface
87 provied by libio.
88 * internals.h: Likewise.
89
90 * ptfork.c (__fork): Now calls __flockfilelist before fork,
91 and __funlockfilelist in the parent after the fork.
92 Child still calls __fresetlockfiles as before.
93
94 * linuxthreads.texi: Now explains what happens to streams at
95 fork time. Also whole new section on forking and thread added.
96 Definition of pthread_atfork moved out of Miscellaneous Functions
97 to this new section.
98
99 2000-06-04 Jakub Jelinek <jakub@redhat.com>
100
101 * sysdeps/sparc/sparc32/sparcv9/pspinlock.c (__pthread_spin_lock):
102 Add missing register.
103 * sysdeps/sparc/sparc64/pspinlock.c (__pthread_spin_lock): Likewise.
104
105 2000-06-02 Jakub Jelinek <jakub@redhat.com>
106
107 * sysdeps/sparc/sparc32/pspinlock.c: Implement spinlocks.
108 * sysdeps/sparc/sparc32/sparcv9/pspinlock.c: New.
109 * sysdeps/sparc/sparc64/pspinlock.c: Implement spinlocks.
110
111 2000-05-31 Andreas Jaeger <aj@suse.de>
112
113 * sysdeps/mips/pspinlock.c: Implement spinlocks.
114
115 2000-05-28 Ulrich Drepper <drepper@redhat.com>
116
117 * spinlock.c (__pthread_lock): Remove ASSERT.
118
119 * Makefile (tests): Add ex8.
120 * Examples/ex8.c: New file.
121
122 2000-05-12 Kaz Kylheku <kaz@ashi.footprints.net>
123
124 Bugfix: The pthread_atfork mechanism now takes care of its
125 own internal mutex at fork time.
126
127 * ptfork.c (__fork): Revised so that the mutex is held across
128 the fork operation and while the handlers are called, and so that
129 the child resets the mutex.
130
131 * linuxthreads.texi: Updated pthread_atfork documentation to make
132 it clear that fork and pthread_atfork can't be reentered from
133 atfork handlers, that pthread_atfork and fork are mutually atomic,
134 and that the handlers are inherited by the child process.
135
136 2000-05-24 Ulrich Drepper <drepper@redhat.com>
137
138 * Makefile (libpthread-routines): Add pspinlock.
139 * cancel.c: Rename __pthread_spin_unlock back to __pthread_unlock.
140 Use struct _pthread_fastlock instead of pthread_spinlock_t.
141 * condvar.c: Likewise.
142 * internals.h: Likewise.
143 * join.c: Likewise.
144 * manager.c: Likewise.
145 * mutex.c: Likewise.
146 * pthread.c: Likewise.
147 * rwlock.c: Likewise.
148 * semaphore.c: Likewise.
149 * signals.c: Likewise.
150 * spinlock.h: Likewise.
151 * spinlock.c: Likewise. Remove pthread_spin_lock functions.
152 * sysdeps/alpha/pspinlock.c: New file.
153 * sysdeps/arm/pspinlock.c: New file.
154 * sysdeps/i386/pspinlock.c: New file.
155 * sysdeps/m68k/pspinlock.c: New file.
156 * sysdeps/mips/pspinlock.c: New file.
157 * sysdeps/powerpc/pspinlock.c: New file.
158 * sysdeps/sparc/sparc32/pspinlock.c: New file.
159 * sysdeps/sparc/sparc64/pspinlock.c: New file.
160 * sysdeps/pthread/bits/pthreadtypes.h: Remove pthread_spinlock_t
161 back to _pthread_fastlock. Define new pthread_spinlock_t.
162
163 2000-05-24 Andreas Jaeger <aj@suse.de>
164
165 * sysdeps/i386/i686/pt-machine.h: Only use LDT on newer kernels.
166
167 2000-05-21 Jakub Jelinek <jakub@redhat.com>
168
169 * manager.c (pthread_handle_create): Initialize p_res._sock to -1.
170
171 2000-05-13 Jakub Jelinek <jakub@redhat.com>
172
173 * internals.h (__RES_PTHREAD_INTERNAL): Define.
174
175 2000-05-06 Kaz Kylheku <kaz@ashi.footprints.net>
176
177 * mutex.c (pthread_once): IN_PROGRESS state of pthread_once_t
178 object state is represented with additional bits which distinguish
179 whether that state was set up in the current process, or
180 in an ancestor process. If that state was set in an ancestor,
181 it means that a fork happened while thread was executing the init
182 function. In that case, the state is reset to NEVER.
183 * mutex.c (__pthread_once_fork_prepare): New function.
184 (__pthread_once_fork_child): Likewise
185 (__pthread_once_fork_parent): Likewise
186 (__pthread_reset_pthread_once): Removed.
187 * ptfork.c (__fork): Call new handlers in mutex.c.
188 * internals.h: Declarations of new mutex.c functions added.
189 Declaration of removed function deleted.
190 * linuxthreads.texi: Updated documentation about pthread_once
191 to clarify what happens under cancellation and forking.
192
193 2000-05-06 Kaz Kylheku <kaz@ashi.footprints.net>
194
195 * internals.h: New thread manager request type, REQ_KICK.
196 * join.c (pthread_exit): main thread now calls exit() instead
197 of _exit() in order to proper process cleanup.
198 * manager.c (__pthread_manager): Do not terminate manager
199 after unblocking main thread; wait for main thread's
200 REQ_PROCESS_EXIT request instead.
201 Also, added REQ_KICK case to handle new request; this just does
202 nothing.
203 * manager.c (pthread_exited): Do not terminate manager after
204 unblocking main thread.
205 * manager.c (__pthread_manager_sighandler): If the main thread
206 is waiting for all other threads to die, send a REQ_KICK into
207 the thread manager request pipe to get it to clean out the threads
208 and unblock the main thread as soon as possible. This fixes
209 the 2000 millisecond hang on shutdown bug.
210 * Examples/ex7.c: New file, tests shutdown behavior when all threads
211 including the main one call pthread_exit(), or implicitly do so.
212 * Makefile (tests): Add ex7.
213
214 2000-05-05 Andreas Jaeger <aj@suse.de>
215
216 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
217 (pthread_getcpuclockid): Correct test for ourselves.
218
219 2000-05-05 Ulrich Drepper <drepper@redhat.com>
220
221 * internals.h (struct _pthread_descr_struct): Reorganization.
222 Allocate room for 16 pointers at head of the structure for future
223 thread-local data handling. Move p_self member in this area.
224 * manager.c (pthread_handle_create): Adjust use of p_self.
225 * sysdeps/i386/useldt.h (THREAD_SELF): Likewise.
226 * pthread.c (__pthread_initial_thread): Adjust initialization.
227 (__pthread_manager_thread): Likewise.
228
229 2000-04-29 Bruno Haible <haible@clisp.cons.org>
230
231 * join.c (pthread_exit): Use THREAD_GETMEM_NC instead of THREAD_GETMEM
232 for eventmask larger than 1 word.
233
234 2000-04-27 Ulrich Drepper <drepper@redhat.com>
235
236 * Versions [libpthread] (GLIBC_2.2): Add __pthread_initialize_minimal.
237 * pthread.c (__pthread_initialize_minimal): New function. Perform
238 minimal initialization.
239 (pthread_initialize): Remove this code here.
240 * sysdeps/i386/i686/pt-machine.h: Include "../useldt.h" again. We
241 are working around the problem in glibc.
242
243 2000-04-25 Ulrich Drepper <drepper@redhat.com>
244
245 * sysdeps/i386/i686/pt-machine.h: Do not use "../useldt.h" for
246 now. First gcc must be fixed (more concrete: libgcc).
247
248 2000-04-24 Ulrich Drepper <drepper@redhat.com>
249
250 * pthread.c: Remove special treatement for interrupt handlers on x86.
251 * manager.c (pthread_free): Use FREE_THREAD not FREE_THREAD_SELF.
252 * sysdeps/i386/useldt.h: Use "q" constraint instead of "r" where
253 necessary.
254 * sysdeps/i386/i686/pt-machine.h: Include "../useldt.h".
255
256 2000-04-24 Mark Kettenis <kettenis@gnu.org>
257
258 * join.c (pthread_exit): Set p_terminated after reporting the
259 termination event instead of before.
260
261 2000-04-20 Jakub Jelinek <jakub@redhat.com>
262
263 * sysdeps/pthread/bits/libc-lock.h: Only declare __pthread_rwlock_*
264 if __USE_UNIX98.
265
266 2000-04-18 Andreas Jaeger <aj@suse.de>
267
268 * Versions: Use ld instead of ld.so.
269
270 2000-04-18 Jakub Jelinek <jakub@redhat.com>
271
272 * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h (struct sigcontext):
273 Remove the typedef keyword.
274
275 2000-04-18 Jakub Jelinek <jakub@redhat.com>
276
277 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Use membar,
278 not stbar.
279 (READ_MEMORY_BARRIER): Define.
280 * spinlock.c (__pthread_spin_unlock): Use READ_MEMORY_BARRIER, not
281 MEMORY_BARRIER.
282 * internals.h (READ_MEMORY_BARRIER): Define if not defined in sysdep
283 headers.
284
285 2000-04-17 Ulrich Drepper <drepper@redhat.com>
286
287 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
288 (pthread_getcpuclockid): Don't compare thread_id with thread_self,
289 use thread_handle().
290
291 2000-04-16 Ulrich Drepper <drepper@redhat.com>
292
293 * condvar.c (pthread_cond_timedwait_relative): Don't test for owner
294 if fast mutex is used. Don't initialize `already_canceled' twice.
295 Correctly test for return value of timedsuspend.
296
297 * pthread.c: Correct long-time braino. We never set SA_SIGINFO and
298 therefore don't need the _rt versions of the signal handlers.
299
300 2000-04-15 Ulrich Drepper <drepper@redhat.com>
301
302 * pthread.c (pthread_yield): New function.
303 * sysdeps/pthread/pthread.h (pthread_yield): Add prototype.
304 * Versions [libpthread] (GLIBC_2.2): Add pthread_yield.
305 * internals.h: Declare __pthread_yield.
306
307 * pthread.c (pthread_initialize): Avoid a bit more code if
308 realtime signals are known to exist.
309
310 * pthread.c: Is __ASSUME_REALTIME_SIGNALS then avoid generating code
311 to dynamically detect RT signals and avoid generating compatibility
312 functions with old kernel.
313 * restart.h (restart) [__ASSUME_REALTIME_SIGNALS]: Use
314 __pthread_restart_new directly.
315 (suspend) [__ASSUME_REALTIME_SIGNALS]: Use
316 __pthread_wait_for_restart_signal directly.
317 (timedsuspend) [__ASSUME_REALTIME_SIGNALS]: Use
318 __pthread_timedsuspend_new directly.
319
320 2000-04-15 Ulrich Drepper <drepper@redhat.com>
321
322 * condvar.c: Remove all the special code to handle cond_timedwait.
323 Use timedsuspend instead.
324 * internals.h: Declare __pthread_timedsuspend_old,
325 __pthread_timedsuspend_new, and __pthread_timedsuspend.
326 Remove declaration of __pthread_init_condvar.
327 * pthread.c: Define __pthread_timedsuspend variable.
328 (__pthread_timedsuspend_old): New function. Timed suspension
329 implementation for old Linux kernels.
330 (__pthread_timedsuspend_new): New function. Timed suspension
331 implementation for new Linux kernels.
332 * restart.h (timedsuspend): New function. Call appropriate
333 suspension function through __pthread_timedsuspend.
334 * semaphore.c (sem_timedwait): Use timedsuspend, don't duplicate
335 the code.
336 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
337
338 * internals.h (WRITE_MEMORY_BARRIER): Define as MEMORY_BARRIER if
339 undefined.
340 * spinlock.c: Use WRITE_MEMORY_BARRIER instead of MEMORY_BARRIER
341 where possible.
342 * sysdeps/alpha/pt-machine.h: Define WRITE_MEMORY_BARRIER.
343 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
344
345 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _POSIX_SPAWN.
346 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
347
348 2000-04-14 Andreas Jaeger <aj@suse.de>
349
350 * weaks.c: Fix typo.
351
352 * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
353 2.2 for linuxthreads.
354
355 2000-04-13 Ulrich Drepper <drepper@redhat.com>
356
357 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
358 (pthread_getcpuclockid): Fix typo.
359
360 2000-04-12 Ulrich Drepper <drepper@redhat.com>
361
362 * Makefile (libpthread-routines): Add getcpuclockid.
363 * Versions [libpthread] (GLIBC_2.2): Add pthread_getcpuclockid.
364 * sysdeps/pthread/getcpuclockid.c: New file.
365 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c: New file.
366 * sysdeps/pthread/pthread.h: Add prototype for pthread_getcpuclockid.
367
368 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_SPIN_LOCKS):
369 Defined.
370 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
371
372 * sysdeps/pthread/pthread.h: Add prototypes for pthread_spin_init,
373 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
374 and pthread_spin_unlock.
375 * sysdeps/pthread/bits/pthreadtypes.h: Change struct _pthread_fastlock
376 into pthread_spinlock_t. Change all uses.
377 * spinlock.c: Implement pthread_spin_lock.
378 Rename __pthread_unlock to __pthread_spin_unlock and define weak
379 alias for real name.
380 Define pthread_spin_trylock, pthread_spin_init, and
381 pthread_spin_destroy.
382 Change all uses of _pthread_fastlock to pthread_spinlock_t.
383 * spinlock.h: Rename __pthread_unlock to __pthread_spin_unlock.
384 Change all uses of _pthread_fastlock to pthread_spinlock_t.
385 * Versions [libpthread] (GLIBC_2.2): Add pthread_spin_init,
386 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
387 and pthread_spin_unlock.
388 * cancel.c: Use __pthread_spin_unlock instead of __pthread_unlock.
389 Change all uses of _pthread_fastlock to pthread_spinlock_t.
390 * condvar.c: Likewise.
391 * internals.h: Likewise.
392 * join.c: Likewise.
393 * manager.c: Likewise.
394 * mutex.c: Likewise.
395 * pthread.c: Likewise.
396 * rwlock.c: Likewise.
397 * semaphore.c: Likewise.
398 * signals.c: Likewise.
399
400 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add various new POSIX
401 macros.
402 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
403
404 2000-04-11 Ulrich Drepper <drepper@redhat.com>
405
406 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
407 _POSIX_SHARED_MEMORY_OBJECTS.
408
409 2000-04-11 Andreas Jaeger <aj@suse.de>
410
411 * sysdeps/mips/pt-machine.h (MEMORY_BARRIER): Define.
412 (__compare_and_swap): Mark as modifying memory.
413
414 2000-04-11 Geoff Keating <geoffk@cygnus.com>
415
416 * sysdeps/powerpc/pt-machine.h (MEMORY_BARRIER): Don't be
417 __volatile__.
418 (__compare_and_swap): Replace other 'sync' with MEMORY_BARRIER.
419 Don't have the 'asm' __volatile__.
420
421 2000-04-11 Ulrich Drepper <drepper@redhat.com>
422
423 * internals.h: Define MEMORY_BARRIER as empty if not defined already.
424 * spinlock.c (__pthread_lock): Add memory barriers.
425 (__pthread_unlock): Likewise.
426 * sysdeps/alpha/pt-machine.h (MEMORY_BARRIER): Define using mb
427 instruction.
428 (RELEASE): Not needed anymore.
429 (__compare_and_swap): Mark asm as modifying memory.
430 * sysdeps/powerpc/pt-machine.h (sync): Remove. Replace with definition
431 of MEMORY_BARRIER.
432 (__compare_and_swap): Use MEMORY_BARRIER instead of sync.
433 * sysdeps/sparc/sparc32/pt-machine.h (RELEASE): Not needed anymore.
434 (MEMORY_BARRIER): Define using stbar.
435 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Define using
436 stbar.
437 (__compare_and_swap): Use MEMORY_BARRIER to ensure ordering.
438 Patch by Xavier Leroy <Xavier.Leroy@inria.fr> based on comments by
439 Mike Burrows <m3b@pa.dec.com>.
440
441 2000-04-09 Ulrich Drepper <drepper@redhat.com>
442
443 * signals.c (sigaction): Fix return value for the case SIG is one
444 of the signals the implementation uses.
445 Patch by Xavier.Leroy@inria.fr.
446
447 2000-04-01 Andreas Jaeger <aj@suse.de>
448
449 * attr.c: Use shlib-compat macros.
450 * oldsemaphore.c: Likewise.
451 * pthread.c: Likewise.
452 * weaks.c: Likewise.
453
454 2000-03-26 Ulrich Drepper <drepper@redhat.com>
455
456 * semaphore.c (sem_timedwait): New function.
457 Patch by Carl Mailloux <carlm@oricom.ca>.
458 * semaphore.h: Declare sem_timedwait.
459 * Versions [libpthread] (GLIBC_2.2): Add sem_timedwait.
460
461 2000-03-26 Roland McGrath <roland@baalperazim.frob.com>
462
463 * sysdeps/pthread/Makefile: File removed.
464
465 2000-03-23 Ulrich Drepper <drepper@redhat.com>
466
467 * mutex.c (__pthread_reset_pthread_once): Reset once_masterlock.
468 * internals.h (__pthread_reset_pthread_once): Add prototype.
469 * ptfork.c (__fork): Call __pthread_reset_pthread_once.
470
471 * manager.c (pthread_handle_create): Store ID of new thread before
472 clone call.
473
474 2000-03-21 Ulrich Drepper <drepper@redhat.com>
475
476 * attr.c: Use new macros from shlib-compat.h to define versions.
477 * oldsemaphore.c: Likewise.
478 * semaphore.c: Likewise.
479 * weaks.c: Likewise.
480
481 * pthread.c: Update for new SHLIB_COMPAT definition.
482
483 * manager.c (__pthread_manager): Unmask debug signal.
484
485 * pthread.c (pthread_initialize): Test for address of __dso_handle
486 being NULL, not value. Use __on_exit, not on_exit.
487 Patch by Andreas Jaeger <aj@suse.de>.
488
489 * pthread.c: Use new macros from shlib-compat.h to define versions.
490
491 2000-03-19 Ulrich Drepper <drepper@redhat.com>
492
493 * pthread.c (pthread_initialize): Instead of on_exit use
494 __cxa_atexit if __dso_label is available to allow unloading the
495 libpthread shared library.
496
497 2000-03-16 Ulrich Drepper <drepper@redhat.com>
498
499 * condvar.c: Make tests for ownership of mutex less strict.
500
501 2000-03-14 Ulrich Drepper <drepper@redhat.com>
502
503 * condvar.c (pthread_cond_wait): Check whether mutex is owned by
504 current thread and return error if not.
505 (pthread_cond_timedwait_relative_old): Likewise.
506 (pthread_cond_timedwait_relative_new): Likewise.
507
508 * mutex.c (__pthread_once): Handle cancelled init function correctly.
509 (pthread_once_cancelhandler): New function.
510 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
511
512 2000-03-14 Andreas Jaeger <aj@suse.de>
513
514 * pthread.c (pthread_handle_sigcancel_rt): GS has been renamed to
515 REG_GS.
516 (pthread_handle_sigrestart_rt): Likewise.
517 * signals.c (pthread_sighandler_rt): Likewise.
518
519 2000-03-02 Andreas Jaeger <aj@suse.de>
520
521 * sysdeps/pthread/bits/libc-lock.h: Fix typo.
522 Reported by Sean Chen <sean.chen@turbolinux.com>.
523
524 2000-02-28 Andreas Jaeger <aj@suse.de>
525
526 * rwlock.c: Fix typo.
527
528 2000-02-27 Ulrich Drepper <drepper@redhat.com>
529
530 * rwlock.c: Define __* variants of the functions and make old names
531 aliases.
532 * Versions [GLIBC_2.2]: Export the __pthread_rwlock_* functions.
533 * sysdeps/pthread/bits/libc-lock.h: Define __libc_rwlock_* macros.
534
535 2000-02-25 Andreas Jaeger <aj@suse.de>
536
537 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
538 pwrite64, lseek64, open64, and __open64 with version 2.2.
539
540 2000-02-22 Ulrich Drepper <drepper@redhat.com>
541
542 * semaphore.h (SEM_FAILED): Use 0 not NULL.
543
544 2000-02-14 Ulrich Drepper <drepper@redhat.com>
545
546 * condvar.c (pthread_cond_timedwait_relative_old): Tight loop with
547 nanosleep does not work either. Get absolute time inside the
548 loop.
549 (pthread_cond_timedwait_relative_new): Likewise.
550 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
551
552 2000-02-13 Andreas Jaeger <aj@suse.de>
553
554 * condvar.c (pthread_cond_timedwait_relative_new): Fix last patch.
555 (pthread_cond_timedwait_relative_old): Likewise.
556
557 2000-02-13 Ulrich Drepper <drepper@redhat.com>
558
559 * condvar.c (pthread_cond_timedwait_relative_old): Undo last patch
560 but keep the code around. A bug in the kernel prevent us from
561 using the code.
562 (pthread_cond_timedwait_relative_new): Likewise.
563 (PR libc/1597 and libc/1598).
564
565 2000-02-01 Kaz Kylheku <kaz@ashi.footprints.net>
566
567 * condvar.c (pthread_cond_timedwait_relative_old): Do tight
568 loop around nanosleep calls instead of around most of the function
569 (pthread_cond_timedwait_relative_new): Likewise.
570 body. Got rid of backwards goto and one local.
571
572 2000-01-31 Ulrich Drepper <drepper@redhat.com>
573
574 * condvar.c (pthread_cond_timedwait_relative_old): Recompute time
575 before every nanosleep call to account for time spent in the rest
576 of the function.
577 (pthread_cond_timedwait_relative_new): Likewise.
578 Patch by khendricks@ivey.uwo.ca (PR libc/1564).
579
580 2000-01-29 Ulrich Drepper <drepper@redhat.com>
581
582 * condvar.c (pthread_cond_timedwait_relative_old): Get remaining time
583 from nanosleep call so that in case we restart we only wait for the
584 remaining time.
585 (pthread_cond_timedwait_relative_new): Likewise.
586 Patch by khendricks@ivey.uwo.ca (PR libc/1561).
587
588 2000-01-18 Ulrich Drepper <drepper@cygnus.com>
589
590 * manager.c (pthread_allocate_stack): Compute guard page address
591 correctly. Patch by HJ Lu.
592
593 * sysdeps/pthread/pthread.h: Define
594 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP.
595
596 2000-01-16 Ulrich Drepper <drepper@cygnus.com>
597
598 * rwlock.c (pthread_rwlock_unlock): Correct one more problem with
599 preference handling.
600 (pthread_rwlockattr_setkind_np): Allow
601 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP.
602 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
603
604 2000-01-12 Ulrich Drepper <drepper@cygnus.com>
605
606 * internals.h (pthread_readlock_info): New structure.
607 (_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
608 p_untracked_readlock_count.
609 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
610 Add initializers for new fields.
611 * manager.c (pthread_free): Free read/write lock lists.
612 * queue.h (queue_is_empty): New function.
613 * rwlock.c: Implement requirements about when readers should get
614 locks assigned.
615 * sysdeps/pthread/pthread.h
616 (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
617 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_rwlock_t):
618 Define this name as well.
619 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
620
621 2000-01-05 Ulrich Drepper <drepper@cygnus.com>
622
623 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
624 Adjust initializers for struct _pthread_descr_struct change.
625 * internals.h (struct _pthread_descr_struct): Move new elements to
626 the end.
627
628 2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
629
630 Redesigned how cancellation unblocks a thread from internal
631 cancellation points (sem_wait, pthread_join,
632 pthread_cond_{wait,timedwait}).
633 Cancellation won't eat a signal in any of these functions
634 (*required* by POSIX and Single Unix Spec!).
635 * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
636 simultaneous condition variable signal (not required by POSIX
637 or Single Unix Spec, but nice).
638 * spinlock.c: __pthread_lock queues back any received restarts
639 that don't belong to it instead of assuming ownership of lock
640 upon any restart; fastlock can no longer be acquired by two threads
641 simultaneously.
642 * restart.h: Restarts queue even on kernels that don't have
643 queued real time signals (2.0, early 2.1), thanks to atomic counter,
644 avoiding a rare race condition in pthread_cond_timedwait.
645
646 1999-12-31 Andreas Jaeger <aj@suse.de>
647
648 * internals.h: Remove duplicate prototype declarations.
649
650 * weaks.c: Remove __THROW from prototypes since the file is not
651 compiled by a C++ compiler.
652 * internals.h: Likewise.
653
654 1999-12-30 Andreas Jaeger <aj@suse.de>
655
656 * sysdeps/pthread/pthread.h: Move internal functions to...
657 * sysdeps/pthread/bits/libc-lock.h: ...here.
658
659 1999-12-29 Andreas Jaeger <aj@suse.de>
660
661 * sysdeps/pthread/pthread.h: Fix typos, reformat comments.
662
663 1999-12-28 Ulrich Drepper <drepper@cygnus.com>
664
665 * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
666 beginning.
667
668 * manager.c (__pthread_start): Add one more cast to prevent
669 warning on 64bit machines.
670
671 1999-12-21 Ulrich Drepper <drepper@cygnus.com>
672
673 * manager.c (pthread_handle_create): Set p_pid of new thread
674 before calling the callback function to report a new thread.
675
676 1999-12-20 Andreas Jaeger <aj@suse.de>
677
678 * pthread.c (pthread_initialize): Move getrlimit call after
679 setting of errno.
680
681 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
682
683 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
684 pwrite64, lseek64, open64, and __open64.
685 * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
686 pwrite64, lseek64, open64, and __open64.
687
688 * manager.c (pthread_allocate_stack): Correct computation of
689 new_thread_bottom. Correct handling of stack size and when the
690 rlimit method to guard for stack growth is used.
691 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
692 minus one pagesize (not two).
693
694 1999-12-03 Andreas Jaeger <aj@suse.de>
695
696 * Versions: Add __res_state with version GLIBC_2.2.
697
698 * errno.c (__res_state): New function to return thread specific
699 resolver state.
700
701 * pthread.c (pthread_initialize): Initialize p_resp.
702 (__pthread_reset_main_thread): Also set p_resp.
703
704 * manager.c (pthread_handle_create): Initialize p_resp.
705
706 * internals.h: Add thread specific resolver state.
707 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
708
709 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
710
711 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
712 beginning.
713 * sysdeps/i386/i686/pt-machine.h: Likewise.
714 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
715
716 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
717
718 * manager.c (pthread_start_thread_event): Initialize p_pid already
719 here.
720
721 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
722
723 * internals.h: Add prototype for __pthread_manager_event.
724 * manager.c (__pthread_manager_event): New function.
725 (pthread_start_thread_event): Correct computation of self.
726 Use INIT_THREAD_SELF.
727 * pthread.c (__pthread_manager_thread): Initialize p_lock.
728 (__pthread_initialize_manager): Respect event flags also for creation
729 of the manager thread.
730
731 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
732
733 * pthread.c (__pthread_initialize_manager): Initialize
734 __pthread_manager_thread.p_tid.
735
736 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
737
738 * internals.h: Declare __pthread_last_event.
739 * manager.c: Define __pthread_last_event.
740 (pthread_handle_create): Set __pthread_last_event.
741 (pthread_exited): Likewise.
742 * join.c (pthread_exit): Likewise.
743
744 * Makefile (libpthread-routines): Add events.
745 * events.c: New file.
746 * internals.h: Protect against multiple inclusion.
747 Include thread_dbP.h header.
748 (struct _pthread_descr_struct): Add new fields p_report_events and
749 p_eventbuf.
750 Declare event reporting functions.
751 * join.c (pthread_exit): Signal event if this is wanted.
752 * manager.c (__pthread_threads_events): New variable.
753 (pthread_handle_create): Take new parameters with event information.
754 Signal TD_CREATE event if wanted.
755 (__pthread_manager): Adjust pthread_handle_create call.
756 (pthread_start_thread_event): New function. Block until manager is
757 finished and then call pthread_start_thread.
758 (pthread_exited): Signal TD_REAP event if wanted.
759
760 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
761
762 * restart.h (suspend_with_cancellation): Rewrite as a macro.
763
764 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
765
766 1999-10-25 Andreas Jaeger <aj@suse.de>
767
768 * internals.h: Remove K&R compatibility.
769 * no-tsd.c: Likewise.
770 * semaphore.h: Likewise.
771 * signals.c: Likewise.
772 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
773 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
774 * weaks.c: Likewise.
775
776 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
777
778 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
779 and pthread_handle_sigcancel with functions that restore
780 %gs from the signal context. For each signal handling function,
781 two wrappers are required, one for a non-RT signal and one for
782 a RT signal.
783 * linuxthreads/signal.c: For i386, add code to restore %gs
784 from the signal context in pthread_sighandler and
785 pthread_sighandler_rt.
786
787 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
788
789 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
790
791 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
792
793 * pthread.c (__pthread_initial_thread): Pass argument to
794 PTHREAD_START_ARGS_INITIALIZER.
795 (__pthread_manager_thread): Likewise.
796
797 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
798 initialize function.
799
800 * manager.c (pthread_handle_create): Remove p_startfct initialization.
801
802 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
803
804 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
805
806 * internals.h: Correct return types for __libc_read and __libc_write.
807
808 1999-10-09 Andreas Jaeger <aj@suse.de>
809
810 * internals.h: Add __new_sem_post to get prototype in
811 manager.c; include semaphore.h for needed types.
812
813 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
814
815 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
816 directly instead of calling sem_post which should not be necessary
817 but is faster and might help in some case to work around problems.
818 Patch by khendricks@ivey.uwo.ca [libc/1382].
819
820 1999-10-08 Andreas Schwab <schwab@suse.de>
821
822 * sysdeps/pthread/Subdirs: New file.
823 * Implies: Removed.
824
825 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
826
827 * Implies: New file.
828 * internals.h (struct _pthread_descr_struct): Add p_startfct.
829 * manager.c (pthread_handle_create): Initialize p_startfct.
830 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
831
832 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
833
834 * manager.c (__linuxthreads_pthread_threads_max): New variable.
835 * specific.c (__linuxthreads_pthread_keys_max): New variable.
836 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
837
838 * condvar.c (pthread_cond_timedwait_relative): Never return with
839 EINTR. Patch by Andreas Schwab.
840
841 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
842
843 * signals.c (sigaction): Correct last patch. Don't select
844 pthread_sighandler_rt based on the signal number but instead of
845 the SA_SIGINFO flag.
846
847 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
848
849 * specific.c: Move definitions of struct pthread_key_struct and
850 destr_function to ...
851 * internals.h: ...here.
852
853 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
854
855 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
856 this instead of pthread_handle_sigrestart if the signal is an RT
857 signal.
858
859 * signals.c: Handle passing through of sighandler arguments also
860 for real-time signals.
861
862 1999-09-03 Andreas Schwab <schwab@suse.de>
863
864 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
865 fork as weak alias.
866 (__vfork): New function, alias vfork.
867 * Versions: Export __fork, vfork, and __vfork in libpthread.
868
869 1999-08-23 Andreas Schwab <schwab@suse.de>
870
871 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
872 call to signal handler.
873
874 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
875
876 * pthread.c (__pthread_reset_main_thread): Undo last change.
877 (__pthread_kill_other_threads_np): Reset signal handlers for the
878 signals we used in the thread implementation here.
879
880 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
881
882 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
883 for the signals we used in the thread implementation [PR libc/1234].
884
885 * Versions: Export __pthread_kill_other_threads_np from libpthread
886 for GLIBC_2.1.2.
887
888 * signals.c: Pass sigcontext through wrapper to the user function.
889
890 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
891
892 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
893 __libc_internal_tsd_set.
894
895 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
896
897 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
898 needed anymore.
899
900 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
901
902 * internals.h: Align _pthread_descr_struct to 32 bytes.
903 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
904 libc/1206.
905
906 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
907
908 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
909 swap function.
910
911 1999-07-09 Cristian Gafton <gafton@redhat.com>
912
913 * Makefile (libpthread-routines): Add oldsemaphore routine.
914 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
915 sem_trywait, and sem_wait to GLIBC_2.1.
916 * oldsemaphore.c: New file.
917 * semaphore.c: Add default_symbol_versions for the changed functions.
918 (__new_sem_init): Rename from sem_init.
919 (__new_sem_post): Rename from sem_post.
920 (__new_sem_wait): Rename from sem_wait.
921 (__new_sem_trywait): Rename from sem_trywait.
922 (__new_sem_getvalue): Rename from sem_getvalue.
923 (__new_sem_destroy): Rename from sem_destroy.
924
925 1999-06-23 Robey Pointer <robey@netscape.com>
926
927 * internals.h: Added p_nextlock entry to separate queueing for a
928 lock from queueing for a CV (sometimes a thread queues on a lock
929 to serialize removing itself from a CV queue).
930 * pthread.c: Added p_nextlock to initializers.
931 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
932
933 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
934
935 * manager.c (pthread_handle_create): Free mmap region after stack
936 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
937
938 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
939
940 * man/pthread_cond_init.man: Correct example.
941 Reported by Tomas Berndtsson <tomas@nocrew.org>.
942
943 * linuxthreads.texi (Condition Variables): Likewise.
944
945 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
946
947 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
948 casx not cas, also successful casx returns the old value in rd
949 and not the new value.
950
951 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
952
953 * manager.c: If pthread_create() is given a NULL attribute
954 and the thread manager runs with a realtime policy, set the
955 scheduling policy of the newly created thread back to SCHED_OTHER.
956 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
957 initialize the schedpolicy field of new_thread->p_start_args
958 to that of the calling thread.
959
960 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
961
962 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
963 instruction does not allow memory element to use offset.
964
965 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
966
967 * manager.c (pthread_allocate_stack): Optimize initialization of new
968 thread descriptor.
969
970 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
971 Don't use initializer since it is all zeroes.
972 (__libc_once_define): Likewise.
973
974 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
975
976 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
977 doesn't exist anymore.
978 * sysdeps/i386/Implies: Likewise.
979 * sysdeps/m68k/Implies: Likewise.
980 * sysdeps/mips/Implies: Likewise.
981 * sysdeps/powerpc/Implies: Likewise.
982 * sysdeps/sparc/sparc32/Implies: Likewise.
983 * sysdeps/sparc/sparc64/Implies: Likewise.
984
985 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
986
987 * sysdeps/alpha/bits/semaphore.h: Removed.
988 * sysdeps/powerpc/bits/semaphore.h: Removed.
989 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
990 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
991 * Makefile (headers): Remove bits/semaphore.h.
992
993 * semaphore.h: Define _pthread_descr if necessary.
994 Don't include limits.h. Define SEM_VALUE_MAX directly.
995 Define SEM_FAILED.
996 (sem_t): Protect element names with leading __.
997 Add declarations for sem_close, sem_open, and sem_unlink.
998 * semaphore.c: Adjust all functions for new element names.
999 Define sem_close, sem_open, and sem_unlink.
1000 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
1001 GLIBC_2.1.1.
1002 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
1003 necessary.
1004
1005 1999-03-16 H.J. Lu <hjl@gnu.org>
1006
1007 * specific.c (pthread_key_delete): Check th->p_terminated to see
1008 if the thread is running.
1009
1010 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
1011 Added to GLIBC_2.0 for libc.so.
1012
1013 1999-02-12 H.J. Lu <hjl@gnu.org>
1014
1015 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
1016 __libc_allocate_rtsig): Added to GLIBC_2.1.
1017
1018 * internals.h (DEFAULT_SIG_RESTART): Removed.
1019 (DEFAULT_SIG_CANCEL): Removed.
1020
1021 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
1022 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
1023 (__pthread_sig_restart, __pthread_sig_cancel,
1024 __pthread_sig_debug): Initialized.
1025 (pthread_initialize): Call init_rtsigs () to initialize
1026 real-time signals.
1027
1028 1999-02-03 H.J. Lu <hjl@gnu.org>
1029
1030 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
1031 Don't restart the thread which sent REQ_DEBUG.
1032 (pthread_start_thread): Check if __pthread_sig_debug > 0
1033 before debugging.
1034
1035 * pthread.c (__pthread_initialize_manager): Suspend ourself
1036 after sending __pthread_sig_debug to gdb instead of
1037 __pthread_sig_cancel.
1038
1039 1999-01-24 H.J. Lu <hjl@gnu.org>
1040
1041 * manager.c (__pthread_manager): Delete __pthread_sig_debug
1042 from mask if __pthread_sig_debug > 0.
1043 (pthread_handle_create): Increment __pthread_handles_num.
1044
1045 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
1046 * pthread.c (__pthread_initialize_manager): Likewise.
1047
1048 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
1049 instead of __libc_allocate_rtsig (2).
1050 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
1051 instead of __pthread_sig_cancel.
1052 (pthread_handle_sigdebug): Fix comments.
1053
1054 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
1055
1056 * manager.c (pthread_allocate_stack): Set
1057 __pthread_nonstandard_stacks if user-specified stack is used.
1058
1059 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
1060
1061 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
1062 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
1063
1064 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
1065
1066 * pthread.c: Use a third signal __pthread_sig_debug distinct
1067 from __pthread_sig_cancel to notify gdb when a thread is
1068 created
1069 * manager.c: Likewise.
1070 * internals.h: Likewise.
1071 * signals.c: The implementation of sigwait(s) assumed that
1072 all signals in s have signal handlers already attached.
1073 This is not required by the standard, so make it work
1074 also if some of the signals have no handlers.
1075
1076 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1077
1078 * linuxthreads.texi: Remove pointers from first @node. Move old
1079 @node spec inside comment.
1080
1081 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
1082
1083 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
1084 _IO_lock_unlock.
1085
1086 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
1087
1088 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
1089 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
1090
1091 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
1092
1093 * manager.c: Threads now send __pthread_sig_cancel on termination.
1094 Change clone call and signal masks.
1095 * thread.c (pthread_handle_sigrestart): Remove special code for
1096 manager.
1097 (pthread_handle_sigcancel): In manager thread call
1098 __pthread_manager_sighandler.
1099 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
1100 * sysdeps/i386/i686/pt-machine.h: Likewise.
1101 Patches by Xavier Leroy.
1102
1103 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
1104
1105 * spinlock.c (__pthread_unlock): Don't crash if called for an
1106 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
1107
1108 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
1109 overall runtime.
1110
1111 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
1112
1113 * Examples/ex3.c: Wait until all threads are started before
1114 searching for the number to avoid race condition on very fast
1115 systems.
1116
1117 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1118
1119 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
1120 declaration since it's not needed.
1121
1122 * sysdeps/pthread/pthread.h: Move internal functions to ...
1123 * internals.h: ...here.
1124
1125 1998-12-02 H.J. Lu <hjl@gnu.org>
1126
1127 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
1128 SIGRTMIN is defined.
1129 (__pthread_sig_cancel): Likewise.
1130
1131 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1132
1133 * wrapsyscall.c: Include <sys/mman.h> for msync,
1134 <stdlib.h> for system and <termios.h> for tcdrain prototype.
1135 Correct msync declaration.
1136
1137 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
1138
1139 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
1140 __libc_tsd_set): New macros for new interface.
1141 * no-tsd.c: New file, provide uninitialized defns of
1142 __libc_internal_tsd_get and __libc_internal_tsd_set.
1143 * Makefile (routines): Add no-tsd.
1144
1145 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
1146
1147 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
1148 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
1149 __libc_internal_tsd_set): Move decls to ...
1150 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
1151 declarations.
1152
1153 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
1154 __libc_internal_tsd_set): Make these pointers to functions, not
1155 functions; remove #pragma weak decls for them.
1156 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
1157 Define static functions and initialized pointers to them.
1158
1159 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
1160
1161 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
1162 (CFLAGS-specific.c): Likewise.
1163 (CFLAGS-pthread.c): Likewise.
1164 (CFLAGS-ptfork.c): Likewise.
1165 (CFLAGS-cancel.c): Likewise.
1166 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
1167 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
1168
1169 * mutex.c (pthread_mutex_init): Define as strong symbol.
1170 (pthread_mutex_destroy): Likewise.
1171 (pthread_mutex_trylock): Likewise.
1172 (pthread_mutex_lock): Likewise.
1173 (pthread_mutex_unlock): Likewise.
1174 (pthread_mutexattr_init): Likewise.
1175 (pthread_mutexattr_destroy): Likewise.
1176 (pthread_once): Likewise.
1177 * ptfork.c (pthread_atfork): Likewise.
1178 * specific.c (pthread_key_create): Likewise.
1179 (pthread_setspecific): Likewise.
1180 (pthread_getspecific): Likewise.
1181
1182 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1183
1184 * linuxthreads.texi: Fix punctuation after xref.
1185
1186 1998-11-10 H.J. Lu <hjl@gnu.org>
1187
1188 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
1189 if it is defined in <linux/limits.h>.
1190
1191 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
1192
1193 * spinlock.h (__pthread_trylock): Define inline.
1194 (__pthread_lock): Add extra parameter to declaration. Declare
1195 using internal_function.
1196 (__pthread_unlock): Declare using internal_function.
1197 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
1198 of local variable self. Avoid recomputing self. Define using
1199 internal_function.
1200 (__pthread_trylock): Remove.
1201 (__pthread_unlock): Define using internal_function.
1202 * cancel.c: Adjust for __pthread_lock interface change. Use already
1203 computed self value is possible.
1204 * condvar.c: Likewise.
1205 * join.c: Likewise.
1206 * manager.c: Likewise.
1207 * mutex.c: Likewise.
1208 * pthread.c: Likewise.
1209 * rwlock.c: Likewise.
1210 * semaphore.c: Likewise.
1211 * signals.c: Likewise.
1212
1213 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
1214
1215 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
1216 __ to field names of the struct.
1217 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
1218 Likewise.
1219 (pthread_attr_t): Likewise.
1220 (pthread_cond_t): Likewise.
1221 (pthread_condattr_t): Likewise.
1222 (pthread_mutex_t): Likewise.
1223 (pthread_mutexattr_t): Likewise.
1224 (pthread_rwlock_t): Likewise.
1225 (pthread_rwlockattr_t): Likewise.
1226 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
1227 * cancel.c: Likewise.
1228 * condvar.c: Likewise.
1229 * manager.c: Likewise.
1230 * mutex.c: Likewise.
1231 * pthread.c: Likewise.
1232 * ptlongjmp.c: Likewise.
1233 * rwlock.c: Likewise.
1234 * spinlock.c: Likewise.
1235
1236 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
1237
1238 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
1239 also with PT_EI.
1240
1241 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
1242 definitions.
1243
1244 * Makefile (libpthread-routines): Add pt-machine.
1245 * pt-machine.c: New file.
1246 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
1247 yet defined. Use PT_EI in extern inline definitions.
1248 * sysdeps/arm/pt-machine.h: Likewise.
1249 * sysdeps/i386/pt-machine.h: Likewise.
1250 * sysdeps/i386/i686/pt-machine.h: Likewise.
1251 * sysdeps/m68k/pt-machine.h: Likewise.
1252 * sysdeps/mips/pt-machine.h: Likewise.
1253 * sysdeps/powerpc/pt-machine.h: Likewise.
1254 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
1255 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1256
1257 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1258
1259 * semaphore.h: Include <sys/types.h> so that _pthread_descr
1260 is declared.
1261
1262 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
1263
1264 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
1265 argument.
1266 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
1267
1268 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1269
1270 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
1271 multiple inclusion guard.
1272
1273 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1274
1275 * signals.c (sigaction): Check that sig is less than NSIG to avoid
1276 array index overflow.
1277
1278 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
1279
1280 * sysdeps/pthread/semaphore.h: New file.
1281
1282 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
1283
1284 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
1285 _LIBC_TSD_KEY_DL_ERROR.
1286
1287 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
1288
1289 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
1290 * sysdeps/i386/pt-machine.h: Likewise.
1291 Suggested by Roland McGrath.
1292
1293 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
1294
1295 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
1296 access thread data with non-constant offsets.
1297 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
1298 necessary.
1299
1300 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
1301 THREAD_SETMEM_NC definitions.
1302
1303 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
1304 THREAD_SETMEM_NC.
1305 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1306
1307 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
1308
1309 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
1310 not already defined.
1311 (struct _pthread_descr_struct): Add p_self and p_nr field.
1312 * manager.c (__pthread_handles): Define second element to point
1313 to manager thread.
1314 (__pthread_handles_num): Initialize to 2.
1315 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
1316 (pthread_start_thread): Likewise.
1317 (pthread_handle_create): Start search for free slot at entry 2.
1318 Initialize new fields p_self and p_nr.
1319 Call __clone with CLONE_PTRACE if available.
1320 (pthread_free): Call FREE_THREAD_SELF if available.
1321 * pthread.c (__pthread_initial_thread): Initialize new fields.
1322 (__pthread_manager_thread): Likewise.
1323 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
1324
1325 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
1326 elements of the thread descriptor.
1327 * condvar.c: Likewise.
1328 * errno.c: Likewise.
1329 * join.c: Likewise.
1330 * manager.c: Likewise.
1331 * pthread.c: Likewise.
1332 * ptlongjmp.c: Likewise.
1333 * semaphore.c: Likewise.
1334 * signals.c: Likewise.
1335 * specific.c: Likewise.
1336 * spinlock.c: Likewise.
1337
1338 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
1339
1340 * sysdeps/i386/useldt.h: New file.
1341 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
1342
1343 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
1344 THREAD_SETMEM using __thread_self.
1345 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1346
1347 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
1348
1349 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
1350 turned out that we didn't need to queue after all.
1351
1352 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
1353
1354 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
1355 and wastes space; correct types.
1356
1357 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
1358
1359 * signals.c (sigaction): Handle NULL argument.
1360
1361 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
1362
1363 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
1364 of sigset_t.
1365
1366 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1367
1368 * Makefile (linuxthreads-version): Extract correct number from
1369 Banner.
1370
1371 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
1372
1373 * Banner: Bump version number to 0.8
1374 * FAQ.html: Many updates, in particular w.r.t. debugging.
1375 * manager.c: Support for non-default stacksize for
1376 LinuxThreads-allocated stacks;
1377 don't use guard pages for stacks with default size, rely on
1378 rlimit(RLIMIT_STACK) instead (it's cheaper).
1379 * attr.c: Likewise.
1380 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
1381 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
1382 * condvar.c: Likewise.
1383 * internals.h: Likewise.
1384 * restart.h: Likewise.
1385 * signals.c: Likewise.
1386 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
1387
1388 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1389
1390 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
1391 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
1392 * Versions: Put __pthread_mutexattr_settype under version
1393 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
1394 __pthread_mutexattr_gettype.
1395
1396 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1397
1398 * sysdeps/pthread/bits/libc-lock.h: Make
1399 __pthread_mutexattr_settype weak. Don't make
1400 __pthread_mutexattr_setkind_np weak.
1401
1402 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
1403
1404 * manager.c (pthread_handle_create): Check whether sched_setscheduler
1405 call can succeed here.
1406
1407 * mutex.c: Define __pthread_mutexattr_settype and make
1408 __pthread_mutexattr_setkind_np an alias.
1409 Likewise for __pthread_mutexattr_gettype.
1410
1411 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1412
1413 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
1414 is root.
1415
1416 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
1417
1418 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
1419
1420 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1421
1422 * Examples/ex6.c: Include <unistd.h> for usleep.
1423
1424 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1425
1426 * Examples/ex4.c (main): Use exit, not pthread_exit.
1427
1428 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
1429
1430 * Versions: Add __pthread_mutexattr_gettype and
1431 __pthread_mutexattr_settype.
1432 * lockfile.c: Use __pthread_mutexattr_settype instead of
1433 __pthread_mutexattr_setkind_np.
1434 * mutex.c: Define __pthread_mutexattr_gettype and
1435 __pthread_mutexattr_settype.
1436 * weak.c: Likewise.
1437 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
1438 __pthread_mutexattr_settype.
1439 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
1440 Use __pthread_mutexattr_settype.
1441
1442 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
1443
1444 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
1445 * mutex.c: Define weak alias pthread_mutexattr_gettype and
1446 pthread_mutexattr_settype.
1447 * sysdeps/pthread/pthread.h: Declare these functions.
1448 Move pthread_sigmask and pthread_kill declaration in separate header.
1449 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
1450
1451 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
1452
1453 * Makefile: Add rules to compile and run tests.
1454 * Examples/ex1.c: Little changes to fix warnings.
1455 * Examples/ex2.c: Likewise.
1456 * Examples/ex3.c: Likewise.
1457 * Examples/ex4.c: Likewise.
1458 * Examples/ex5.c: Likewise.
1459 * Examples/ex6.c: New file.
1460
1461 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
1462
1463 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
1464
1465 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1466
1467 * attr.c: Include <string.h>.
1468
1469 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
1470
1471 * attr.c: Include errno.h. Use memcpy to copy sched_param.
1472 * internals.h: Include limits.h.
1473 * manager.c: Use memcpy to copy sched_param.
1474 * ptfork.c: Include errno.h.
1475 * pthread.c: Likewise.
1476 * semaphore.c: Likewise.
1477 * specific.c: Likewise.
1478 * spinlock.h: Likewise.
1479 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
1480 type definition to ...
1481 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
1482
1483 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
1484
1485 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
1486
1487 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
1488 as macros as demanded in POSIX.1, Annex C.
1489
1490 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
1491
1492 * internals.h (struct pthread_request): For free use pthread_t
1493 instead of pthread_descr.
1494 * join.c (pthread_join): Pass thread_id, not th to manager.
1495 (pthread_detach): Likewise.
1496 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
1497 (pthread_exited): Remove detached queue code.
1498 (pthread_handle_free): Expect thread ID parameter and use it to
1499 validate the thread decsriptor. Don't use detached queue.
1500 Patches by Xavier Leroy.
1501
1502 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1503
1504 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
1505 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
1506 __pthread_atfork, __pthread_key_create, __pthread_once.
1507 * internals.h: Doc fix.
1508 * pthread.c (__pthread_initialize): Define again.
1509
1510 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
1511
1512 * manager.c (pthread_exited): If thread is not detached put it on
1513 special list.
1514 (pthread_handle_free): If thread is not on list with living threads
1515 search on list with detached threads.
1516
1517 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
1518 for new definition of pthread_rwlock_t.
1519
1520 * spinlock.c: Correct test whether to compile
1521 __pthread_compare_and_swap or not.
1522
1523 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
1524
1525 * attr.c: Finish user stack support. Change locking code to be safe
1526 in situations with different priorities.
1527 * cancel.c: Likewise.
1528 * condvar.c: Likewise.
1529 * internals.h: Likewise.
1530 * join.c: Likewise.
1531 * manager.c: Likewise.
1532 * mutex.c: Likewise.
1533 * pthread.c: Likewise.
1534 * ptlongjmp.c: Likewise.
1535 * queue.h: Likewise.
1536 * rwlock.c: Likewise.
1537 * semaphore.c: Likewise.
1538 * semaphore.h: Likewise.
1539 * signals.c: Likewise.
1540 * spinlock.c: Likewise.
1541 * spinlock.h: Likewise.
1542 * sysdeps/pthread/pthread.h: Likewise.
1543 Patches by Xavier Leroy.
1544
1545 * sysdeps/i386/i686/pt-machine.h: New file.
1546
1547 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
1548
1549 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
1550 [sg]et_stackaddr prototypes always available.
1551
1552 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1553 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
1554
1555 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
1556
1557 * manager.c (pthread_free): Undo patch from 980430.
1558 Reported by David Wragg <dpw@doc.ic.ac.uk>.
1559
1560 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
1561
1562 * manager.c: Define __pthread_manager_adjust_prio and use it to
1563 increase priority when needed.
1564 * internals.h: Add prototype for __pthread_manager_adjust_prio.
1565 * mutex.c: Optimize mutexes to wake up only one thread.
1566 * pthread.c: Move PID of manager for global variable in structure
1567 element.
1568 Patches by Xavier Leroy.
1569
1570 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
1571
1572 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
1573
1574 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1575
1576 * attr.c: Correct typo.
1577
1578 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
1579
1580 * manager.c (pthread_free): Unmap guard before the stack.
1581 Patch by Matthias Urlichs.
1582
1583 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
1584
1585 * manager.c (pthread_free): Detect already free child.
1586 Patch by Xavier Leroy, reported by Matthias Urlichs.
1587
1588 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1589
1590 * Makefile (linuxthreads-version): Renamed back from
1591 libpthread-version.
1592
1593 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
1594
1595 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
1596 __libc_longjmp.
1597
1598 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
1599
1600 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
1601 * internals.h: Add definitions for new spinlock implementation.
1602 * ptlongjmp.c: New file.
1603 * spinlock.c: New file.
1604 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
1605 new function __pthread_acquire to prevent deadlocks with thread
1606 with different priorities.
1607 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
1608
1609 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1610
1611 * manager.c (__pthread_manager): Reduce first argument to select
1612 to include just the needed file descriptor.
1613
1614 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
1615
1616 * manager.c: Fix last patch which caused core dumps.
1617
1618 * pthread.c: Correctly handle missing SIGRTMIN.
1619
1620 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1621
1622 * libpthread.map: Add __libc_internal_tsd_get and
1623 __libc_internal_tsd_set. Add missing cancelable functions. Export
1624 libc internal versions of the cancelable functions.
1625
1626 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
1627
1628 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
1629
1630 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
1631
1632 * attr.c: Implement pthread_attr_[gs]etguardsize,
1633 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
1634 Change pthread_attr_init to have two interfaces.
1635 * internals.h (struct _pthread_descr_struct): Add new fields for
1636 above functions.
1637 * libpthread.map: Add names in GLIBC_2.1 section.
1638 * manager.c (pthread_handle_create): Implement guardsize and
1639 user stack.
1640 (pthread_free): Likewise.
1641 * pthread.c (pthread_create): Add new interface for changed
1642 pthread_attr_t.
1643 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
1644 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
1645 PTHREAD_STACK_MIN.
1646
1647 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
1648
1649 * manager.c: Enable resetting of the thread scheduling policy
1650 to SCHED_OTHER when the parent thread has a different one.
1651
1652 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
1653
1654 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1655 _POSIX_ASYNCHRONOUS_IO.
1656
1657 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
1658 mutexes.
1659 * mutex.c: Implement new mutex types.
1660
1661 * internals.h: Include <signal.h>.
1662
1663 * libpthread.map: Add __erno_location and __h_errno_location.
1664
1665 * errno.c: Return pointer to variable actually in use. This might
1666 not be the one in the thread structure.
1667 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
1668 and p_h_errnop.
1669 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
1670 of manager thread structure.
1671 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
1672 thread.
1673 * pthread.c: Adapt initializer for thread structures.
1674 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
1675 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
1676 current thread to global variables.
1677
1678 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
1679
1680 * rwlock.c: New file.
1681 * Makefile (libpthread-routines): Add rwlock.
1682 * sysdeps/pthread/pthread.h: Define data structures and declare
1683 functions.
1684 * libpthread.map: Add new functions.
1685
1686 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1687
1688 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1689 * sysdeps/arm/Implies: likewise.
1690 * README: Document it.
1691
1692 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1693
1694 * signals.c: Remove unneeded initializer for sigwaited, saving a
1695 warning.
1696
1697 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1698
1699 * semaphore.c (sem_init): Set sem_spinlock only if available.
1700
1701 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1702
1703 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1704 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1705
1706 * Makefile: Update from LinuxThreads 0.7.
1707 * internals.h. Likewise.
1708 * manager.c: Likewise.
1709 * mutex.c: Likewise.
1710 * pthread.c: Likewise.
1711 * signals.c: Likewise.
1712 * specific.c: Likewise.
1713 * Examples/ex3.c: Likewise.
1714
1715 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1716
1717 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1718 open.
1719
1720 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1721
1722 * wrapsyscall.c: Add socket functions which are also cancelation
1723 points.
1724
1725 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1726
1727 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1728 New functions for fast thread specific data within libc.
1729
1730 * internals.h: Add new array p_libc_specific to struct
1731 _pthread_descr_struct.
1732
1733 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1734
1735 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1736
1737 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1738 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1739
1740 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1741
1742 * internals.h (struct _pthread_descr_struct): Add definitions for
1743 two-level specific key handling.
1744 * manager.c (pthread_handle_create): Initialize specific memory array.
1745 * specific.c: Implement two-level key handling.
1746 * weaks.c: Don't provide dummy key handling.
1747 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1748 Add definition of __libc_key_t.
1749 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1750 as 1024.
1751 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1752 PTHREAD_DESTRUCTOR_ITERATIONS.
1753
1754 * manager.c (pthread_handle_create): Compare mmap result with
1755 MAP_FAILED.
1756
1757 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1758 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1759
1760 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1761
1762 sysdeps/sparc -> sysdeps/sparc/sparc32
1763 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1764
1765 * internals.h: Change definition of THREAD_SELF to be an expression,
1766 not a statement that did a return.
1767 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1768 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1769 Follow Solaris and use a "system reserved" register (%g6) to hold
1770 the thread descriptor.
1771 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1772
1773 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1774
1775 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1776 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1777 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1778
1779 * semaphore.c: Include spinlock.h only when needed.
1780
1781 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1782 keys for entries not in use.
1783
1784 * weaks.c: Implement key handling functions for real.
1785
1786 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1787
1788 Initial sparc64-linux support:
1789 * linuxthreads/sysdeps/sparc64/Implies: New file.
1790 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1791
1792 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1793
1794 * semaphore.c: Include spinlock.h at correct place.
1795 Patch by HJ Lu.
1796
1797 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1798
1799 The Great Bit File Move:
1800 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1801 * sysdeps/powerpc/semaphorebits.h: Likewise.
1802 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1803 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1804 * sysdeps/pthread/libc-lock.h: -> bits/
1805 * sysdeps/pthread/stdio-lock.h: Likewise.
1806 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1807 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1808 * semaphore.h: Likewise.
1809 * sysdeps/pthread/pthread.h: Likewise.
1810
1811 * lockfile.c: <foo.h> -> <bits/foo.h>.
1812 * semaphore.h: Likewise.
1813
1814 * Makefile: (headers): foo.h -> bits/foo.h.
1815 * sysdeps/pthread/Makefile: Likewise.
1816
1817 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1818
1819 * semaphore.c (sem_init): Set sem_spinlock only if available.
1820
1821 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1822 asm constraints.
1823
1824 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1825
1826 Update from LinuxThreads 0.6.
1827
1828 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1829 and __sched_get_priority_min instead of names without `__'.
1830
1831 * manager.c: Rewrite large parts to implement opaque pthread_t.
1832
1833 * cancel.c: Adapt for opaque pthread_t type.
1834 * condvar.c: Likewise.
1835 * errno.c: Likewise.
1836 * join.c: Likewise.
1837 * mutex.c: Likewise.
1838 * pthread.c: Likewise.
1839 * signals.c: Likewise.
1840 * specific.c: Likewise.
1841 * restart.h: Likewise.
1842 * queue.h: Likewise.
1843 * Examples/ex3.c: Likewise.
1844 * Examples/ex4.c: Likewise.
1845 * sysdeps/pthread/pthread.h: Likewise.
1846
1847 * pthread.c: Accumulate time for all threads in thread manager.
1848
1849 * semaphore.c: Implement fallback implementation for architectures
1850 sometimes missing compare-exchange operations.
1851
1852 * cancel.c (pthread_cancel): Validate handle argument.
1853 * join.c (pthread_join): Likewise.
1854 (pthread_detach): Likewise.
1855 * signals.c (pthread_kill): Likewise.
1856
1857 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1858
1859 * queue.h (enqueue): Enqueue thread according to priority.
1860
1861 * internals.c (struct pthread_start_args): New struct for passing
1862 args to cloning function.
1863 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1864 opaque pthread_t.
1865
1866 * Examples/Makefile (clean): Pass -f option to rm.
1867
1868 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1869 and define TEST_FOR_COMPARE_AND_SWAP.
1870 * sysdeps/i386/i486/pt-machine.h: Removed.
1871
1872 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1873 to 1024.
1874
1875 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1876
1877 * restart.h (suspend): Clear p_signal before suspending.
1878 (suspend_with_cancellation): Likewise.
1879 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1880
1881 * weaks.c: Make __pthread_key_create return 1.
1882 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1883 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1884 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1885 using libio.
1886
1887 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1888
1889 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1890
1891 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1892
1893 * sysdeps/powerpc/Implies: Added.
1894 * sysdeps/powerpc/pt-machine.h: Added.
1895 * sysdeps/powerpc/semaphorebits.h: Added.
1896
1897 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1898
1899 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1900 initializer.
1901 (__pthread_manager_thread): Likewise.
1902 Reported by Andreas Jaeger.
1903
1904 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1905
1906 Since sigset_t no longer fits in a register, we can't pass in the
1907 thread's initial mask so easily. Take this opportunity to simplify
1908 the clone implementation by only accepting a single void* argument.
1909
1910 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1911 in the thread struct instead of as arguments through clone.
1912 (pthread_start_thread): Look for them there.
1913 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1914 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1915 * linuxthreads/pthread.c (pthread_initialize_manager): Revise
1916 clone invocation.
This page took 0.141329 seconds and 6 git commands to generate.