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