-
Notifications
You must be signed in to change notification settings - Fork 364
/
ChangeLog
7426 lines (5769 loc) · 280 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2005-12-17 Ulrich Drepper <drepper@redhat.com>
* pthread_create.c (__pthread_create_2_1): Use
THREAD_COPY_POINTER_GUARD if available.
* sysdeps/i386/tcb-offsets.sym: Add POINTER_GUARD.
* sysdeps/x86_64/tcb-offsets.sym: Likewise.
* sysdeps/i386/tls.h (tcbhead_t): Add pointer_guard.
Define THREAD_SET_POINTER_GUARD and THREAD_COPY_POINTER_GUARD.
* sysdeps/x86_64/tls.h: Likewise.
2005-12-15 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/mq_notify.c: Don't use sysdeps/generic.
2005-12-13 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/sigfillset.c: Adjust for files moved out of
sysdeps/generic.
* errno-loc.c: New file.
2005-12-12 Roland McGrath <roland@redhat.com>
* init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
adjustments before choosing stack size. Update minimum stack size
calculation to match allocate_stack change.
2005-12-12 Ulrich Drepper <drepper@redhat.com>
* allocatestack.c (allocate_stack): Don't demand that there is an
additional full page available on the stack beside guard, TLS, the
minimum stack.
2005-11-24 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
(__cleanup_fct_attribute): Use __regparm__ not regparm.
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: When
compiling 32-bit code we must define __cleanup_fct_attribute.
005-11-24 Jakub Jelinek <jakub@redhat.com>
[BZ #1920]
* sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
__attribute__ instead of __attribute.
* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
(__cleanup_fct_attribute): Likewise.
2005-11-17 Jakub Jelinek <jakub@redhat.com>
* sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
a write barrier before writing libgcc_s_getcfa.
2005-11-06 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/configure: Removed.
2005-11-05 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Remove trace of
optional init_array/fini_array support.
2005-10-24 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove unnecessary
versioned_symbol use.
2005-10-16 Roland McGrath <roland@redhat.com>
* init.c (__pthread_initialize_minimal_internal): Even when using a
compile-time default stack size, apply the minimum that allocate_stack
will require, and round up to page size.
2005-10-10 Daniel Jacobowitz <dan@codesourcery.com>
* Makefile ($(test-modules)): Remove static pattern rule.
2005-10-14 Jakub Jelinek <jakub@redhat.com>
Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix stack
alignment in callback function.
* Makefile: Add rules to build and run tst-align3.
* tst-align3.c: New file.
2005-10-03 Jakub Jelinek <jakub@redhat.com>
* allocatestack.c (setxid_signal_thread): Add
INTERNAL_SYSCALL_DECL (err).
2005-10-02 Jakub Jelinek <jakub@redhat.com>
* allocatestack.c (setxid_signal_thread): Need to use
atomic_compare_and_exchange_bool_acq.
2005-10-01 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek <jakub@redhat.com>
* descr.h: Define SETXID_BIT and SETXID_BITMASK. Adjust
CANCEL_RESTMASK.
(struct pthread): Move specific_used field to avoid padding.
Add setxid_futex field.
* init.c (sighandler_setxid): Reset setxid flag and release the
setxid futex.
* allocatestack.c (setxid_signal_thread): New function. Broken
out of the bodies of the two loops in __nptl_setxid. For undetached
threads check whether they are exiting and if yes, don't send a signal.
(__nptl_setxid): Simplify loops by using setxid_signal_thread.
* pthread_create.c (start_thread): For undetached threads, check
whether setxid bit is set. If yes, wait until signal has been
processed.
* allocatestack.c (STACK_VARIABLES): Initialize them.
* pthread_create.c (__pthread_create_2_1): Initialize pd.
2004-09-02 Jakub Jelinek <jakub@redhat.com>
* pthread_cond_destroy.c (__pthread_cond_destroy): If there are
waiters, awake all waiters on the associated mutex.
2005-09-22 Roland McGrath <roland@redhat.com>
* perf.c [__x86_64__] (HP_TIMING_NOW): New macro (copied from
../sysdeps/x86_64/hp-timing.h).
2005-08-29 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_WAKE_OP,
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.
* sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_WAKE_OP,
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.
* sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_WAKE_OP,
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.
* sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_WAKE_OP,
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.
* sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_WAKE_OP,
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.
* sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): Use
lll_futex_wake_unlock.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
(FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(__pthread_cond_signal): Use FUTEX_WAKE_OP.
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
(FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(__pthread_cond_signal): Use FUTEX_WAKE_OP.
2005-09-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
Fix typo in register name.
2005-08-23 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
Use __sigfillset. Document that sigfillset does the right thing wrt
to SIGSETXID.
2005-07-11 Jakub Jelinek <jakub@redhat.com>
[BZ #1102]
* sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER,
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_RWLOCK_INITIALIZER,
PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
PTHREAD_COND_INITIALIZER): Supply zeros for all fields
in the structure.
* Makefile (tests): Add tst-initializers1.
(CFLAGS-tst-initializers1.c): Set.
* tst-initializers1.c: New test.
2005-07-11 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_rwlock_t):
Make sure __flags are located at offset 48 from the start of the
structure.
2005-07-02 Roland McGrath <roland@redhat.com>
* Makeconfig: Comment fix.
2005-07-05 Jakub Jelinek <jakub@redhat.com>
* descr.h (PTHREAD_STRUCT_END_PADDING): Define.
* sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): If PTHREAD_STRUCT_END_PADDING
is smaller than 8 bytes, increase TLS_PRE_TCB_SIZE by 16 bytes.
(THREAD_SYSINFO, THREAD_SELF, DB_THREAD_SELF): Don't assume
TLS_PRE_TCB_SIZE is sizeof (struct pthread).
(THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
* sysdeps/ia64/tcb-offsets.sym (PID, TID, MULTIPLE_THREADS_OFFSET):
Use TLS_PRE_TCB_SIZE instead of sizeof (struct pthread).
* sysdeps/unix/sysv/linux/ia64/createthread.c (TLS_VALUE): Don't
assume TLS_PRE_TCB_SIZE is sizeof (struct pthread).
2005-06-25 Jakub Jelinek <jakub@redhat.com>
* sysdeps/i386/tls.h (tcbhead_t): Add stack_guard field.
(THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
* sysdeps/x86_64/tls.h (tcbhead_t): Add sysinfo and stack_guard
fields.
(THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
* sysdeps/s390/tls.h (tcbhead_t): Add stack_guard
field. Put in sysinfo field unconditionally.
(THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
* sysdeps/powerpc/tls.h (tcbhead_t): Add stack_guard field.
(THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
* sysdeps/sparc/tls.h (tcbhead_t): Add sysinfo and stack_guard
fields.
(THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
* pthread_create.c (__pthread_create_2_1): Use
THREAD_COPY_STACK_GUARD macro.
* Makefile: Add rules to build and run tst-stackguard1{,-static}
tests.
* tst-stackguard1.c: New file.
* tst-stackguard1-static.c: New file.
2005-06-14 Alan Modra <amodra@bigpond.net.au>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
Invoke CGOTSETUP and CGOTRESTORE.
(CGOTSETUP, CGOTRESTORE): Define.
2005-05-29 Richard Henderson <rth@redhat.com>
* tst-cancel4.c (WRITE_BUFFER_SIZE): New.
(tf_write, tf_writev): Use it.
(do_test): Use socketpair instead of pipe. Set SO_SNDBUF to
the system minimum.
2005-05-23 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
[IS_IN_librt] (CENABLE, CDISABLE): Use JUMPTARGET instead of
__librt_*_asynccancel@local.
2005-05-17 Alan Modra <amodra@bigpond.net.au>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Delete
all occurrences of JUMPTARGET. Instead append @local to labels.
2005-05-20 Jakub Jelinek <jakub@redhat.com>
* sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
size/alignment of struct pthread rather than tcbhead_t.
* sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
Likewise.
* sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
Likewise.
* sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
Likewise.
2005-05-19 Richard Henderson <rth@redhat.com>
* sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use
__sync_val_compare_and_swap, not explicit _si variant.
* sysdeps/ia64/pthread_spin_trylock.c (pthread_spin_trylock): Likewise.
2005-05-03 Ulrich Drepper <drepper@redhat.com>
[BZ #915]
* sysdeps/pthread/pthread.h: Avoid empty initializers.
2005-05-03 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
.eh_frame section, use cfi_* directives.
2005-04-27 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
of "" includes.
2005-04-27 Ulrich Drepper <drepper@redhat.com>
[BZ #1075]
* tst-cancel17.c (do_test): Add arbitrary factor to make sure
aio_write blocks.
2005-04-27 Roland McGrath <roland@redhat.com>
* Makefile (tests): Remove tst-clock2.
* sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle
CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
translating to the kernel clockid_t for our own process/thread clock.
* sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
2005-04-15 Jakub Jelinek <jakub@redhat.com>
* old_pthread_cond_init.c: Include <errno.h>.
(__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is
process shared or uses clock other than CLOCK_REALTIME.
* pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
2005-04-13 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file.
* sysdeps/sparc/sparc64/clone.S: New file.
2005-04-05 Jakub Jelinek <jakub@redhat.com>
[BZ #1102]
* sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use
__inline instead of inline.
* sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise.
2005-03-31 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use
functionally equivalent, but shorter instructions.
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
* sysdeps/mips/Makefile: New file.
* sysdeps/mips/nptl-sysdep.S: New file.
* sysdeps/mips/tcb-offsets.sym: New file.
* sysdeps/mips/pthread_spin_lock.S: New file.
* sysdeps/mips/pthread_spin_trylock.S: New file.
* sysdeps/mips/pthreaddef.h: New file.
* sysdeps/mips/tls.h: New file.
* sysdeps/mips/jmpbuf-unwind.h: New file.
* sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file.
* sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file.
* sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file.
* sysdeps/unix/sysv/linux/mips/pthread_once.c: New file.
* sysdeps/unix/sysv/linux/mips/fork.c: New file.
* sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
* sysdeps/unix/sysv/linux/mips/vfork.S: New file.
* sysdeps/unix/sysv/linux/mips/clone.S: New file.
* sysdeps/unix/sysv/linux/mips/createthread.c: New file.
* sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
2005-03-23 Ulrich Drepper <drepper@redhat.com>
[BZ #1112]
* pthread_create.c (__pthread_create_2_1): Rename syscall error
variable to scerr.
2005-03-10 Jakub Jelinek <jakub@redhat.com>
* tst-getpid1.c (do_test): Align stack passed to clone{2,}.
2005-02-25 Roland McGrath <roland@redhat.com>
* alloca_cutoff.c: Correct license text.
* tst-unload.c: Likewise.
* sysdeps/pthread/allocalim.h: Likewise.
* sysdeps/pthread/pt-initfini.c: Likewise.
* sysdeps/pthread/bits/libc-lock.h: Likewise.
* sysdeps/pthread/bits/sigthread.h: Likewise.
* sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
* sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2005-02-16 Roland McGrath <roland@redhat.com>
* sysdeps/pthread/pthread-functions.h (struct pthread_functions):
Use unsigned int * for ptr_nthreads.
2005-02-14 Alan Modra <amodra@bigpond.net.au>
[BZ #721]
* sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
gcc4.
2005-02-07 Richard Henderson <rth@redhat.com>
[BZ #787]
* sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first
argument.
2004-11-03 Marcus Brinkmann <marcus@gnu.org>
* sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix
order of arguments in invocation of atomic_add_zero.
2005-01-26 Jakub Jelinek <jakub@redhat.com>
[BZ #737]
* sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait):
Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS,
at least gotntpoff relocation and addition.
* sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
Likewise.
* sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
Likewise.
* sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
Likewise.
2005-01-06 Ulrich Drepper <drepper@redhat.com>
* allocatestack.c (init_one_static_tls): Adjust initialization of DTV
entry for static tls deallocation fix.
* sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which
also contains information whether the memory pointed to is static
TLS or not.
* sysdeps/i386/tls.h: Likewise.
* sysdeps/ia64/tls.h: Likewise.
* sysdeps/powerpc/tls.h: Likewise.
* sysdeps/s390/tls.h: Likewise.
* sysdeps/sh/tls.h: Likewise.
* sysdeps/sparc/tls.h: Likewise.
* sysdeps/x86_64/tls.h: Likewise.
2004-12-27 Ulrich Drepper <drepper@redhat.com>
* init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
2004-12-21 Jakub Jelinek <jakub@redhat.com>
* sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of
%esp.
* Makefile (tests): Add tst-align2.
* tst-align2.c: New test.
* sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add
-mpreferred-stack-boundary=4.
2004-12-18 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h:
New file removed withdrawn for the moment.
2004-12-17 Richard Henderson <rth@redhat.com>
* sysdeps/unix/sysv/linux/alpha/clone.S: New file.
* sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
2004-12-16 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file.
Increased PTHREAD_STACK_MIN.
* tst-context1.c (stacks): Use bigger stack size.
2004-12-16 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
* sysdeps/sparc/tcb-offsets.sym: Add TID.
2004-12-15 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file.
* sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
* sysdeps/s390/tcb-offsets.sym (TID): Add.
2004-12-15 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file.
2004-12-14 Ulrich Drepper <drepper@redhat.com>
* sysdeps/powerpc/tcb-offsets.sym: Add TID.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
* tst-getpid1.c: If child crashes, report this first. Print which
signal.
2004-12-09 Ulrich Drepper <drepper@redhat.com>
* init.c (__pthread_initialize_minimal_internal): Also unblock
SIGSETXID.
2004-12-01 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
_POSIX_THREAD_CPUTIME): Define to 0.
* sysdeps/pthread/timer_create.c (timer_create): Remove unused code
handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
* sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
__timer_signal_thread_tclk): Remove.
(init_module): Remove their initialization.
(thread_cleanup): Remove their cleanup assertions.
* sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
__timer_signal_thread_tclk): Remove.
* sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
* sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
* sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
2004-12-07 Jakub Jelinek <jakub@redhat.com>
* sysdeps/ia64/tcb-offsets.sym (TID): Add.
* sysdeps/unix/sysv/linux/ia64/clone2.S: New file.
* Makefile (tests): Add tst-getpid2.
* tst-getpid1.c (TEST_CLONE_FLAGS): Define.
(do_test): Use it. Use __clone2 instead of clone on ia64.
* tst-getpid2.c: New test.
2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/clone.S: New file.
2004-12-04 Ulrich Drepper <drepper@redhat.com>
* Makefile (tests): Add tst-getpid1.
* tst-getpid1.c: New file.
* sysdeps/unix/sysv/linux/i386/clone.S: New file.
* sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2004-12-02 Roland McGrath <roland@redhat.com>
* Makefile (libpthread-nonshared): Variable removed.
($(objpfx)libpthread_nonshared.a): Target removed.
($(inst_libdir)/libpthread_nonshared.a): Likewise.
These are now handled by generic magic from
libpthread-static-only-routines being set.
2004-11-27 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO,
_POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT,
_POSIX_THREAD_PRIO_PROTECT): Define.
* sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
2004-11-26 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
_POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
_POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
_POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
* sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
2004-11-24 Ulrich Drepper <drepper@redhat.com>
* sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
* Makefile (libpthread-routines): Add pthread_setschedprio.
* Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
* sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
* pthread_setschedprio.c: New file.
2004-11-20 Jakub Jelinek <jakub@redhat.com>
* pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE.
* pthread_cancel.c (pthread_create): Likewise.
* Makefile (libpthread-routines): Add vars.
* sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove.
* init.c (__default_stacksize, __is_smp): Remove.
* vars.c: New file.
* pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function
and define a wrapper macro.
(PTHREAD_STATIC_FN_REQUIRE): Define.
* allocatestack.c (__find_thread_by_id): Undefine.
* pthread_create (__pthread_keys): Remove.
(pthread_mutex_lock, pthread_mutex_unlock, pthread_once,
pthread_key_create, pthread_setspecific, pthread_getspecific): Add
PTHREAD_STATIC_FN_REQUIRE.
2004-11-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias
parameter to REGISTER macro.
2004-11-17 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
Make sure SIGCANCEL is blocked as well.
2004-11-10 Jakub Jelinek <jakub@redhat.com>
* sysdeps/pthread/setxid.h: New file.
* sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove.
(struct xid_command): Add forward decl.
(struct pthread_functions): Change return type of __nptl_setxid hook
to int.
* pthreadP.h (__nptl_setxid): Change return type to int.
* allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the
calling thread, return its return value and set errno on failure.
* descr.h (struct xid_command): Change id type to long array.
* Makefile: Add rules to build and test tst-setuid1 and
tst-setuid1-static.
* tst-setuid1.c: New test.
* tst-setuid1-static.c: New test.
2004-11-10 Jakub Jelinek <jakub@redhat.com>
* Makefile (tests): Add tst-exit3.
* tst-exit3.c: New test.
2004-11-09 Ulrich Drepper <drepper@redhat.com>
* Makefile (tests): Add tst-exit2.
* tst-exit2.c: New file.
2004-11-09 Roland McGrath <roland@redhat.com>
[BZ #530]
* sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
here, before calling clone.
* pthread_create.c (start_thread): Don't do it here.
2004-11-02 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
Set ETIMEDOUT to errno when time is up. Tweak to avoid
assembler warning.
2004-10-28 Jakub Jelinek <jakub@redhat.com>
* pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
if sched_priority is not between minprio and maxprio.
2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
(__pthread_cond_timedwait): Use clock_gettime syscall if exists.
* sysdeps/unix/sysv/linux/sh/lowlevellock.S
(__lll_mutex_timedlock_wait): Fix a bad branch condition.
2004-10-24 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use
not-cancelable I/O functions.
2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/lowlevellock.S
(__lll_mutex_timedlock_wait): If woken but cannot get the lock,
make sure 2 is stored in the futex and we looked at the old value.
Fix a few other problems to return the correct value.
2004-10-14 Richard Henderson <rth@redhat.com>
* sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
make gcc4 happy.
2004-10-06 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
of pthread-functions.h and pthreaddef.h.
* sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
Change __data.__nwaiters from int to unsigned int.
* tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
sysconf (_SC_THREAD_CPUTIME) returns negative value.
* allocatestack.c (__find_thread_by_id): Move attribute_hidden
before return type.
* sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
(JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
2004-10-06 Ulrich Drepper <drepper@redhat.com>
* tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the
test fails, remove message queue.
(tf_msgsnd): Likewise.
2004-10-05 Jakub Jelinek <jakub@redhat.com>
* tst-clock1.c: Change #ifdef to #if defined.
* tst-clock2.c: Likewise.
* tst-cond11.c: Likewise.
* sysdeps/pthread/timer_create.c (timer_create): Use
defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of
defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for
THREAD_CPUTIME.
2004-10-05 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME,
_POSIX_THREAD_CPUTIME): Define to 0.
2004-10-04 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
and _POSIX_THREAD_CPUTIME to zero.
* sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
* tst-barrier2.c: Fix testing for POSIX feature.
* tst-clock1.c: Likewise.
* tst-clock2.c: Likewise.
* tst-cond11.c: Likewise.
* tst-cond4.c: Likewise.
* tst-cond6.c: Likewise.
* tst-flock2.c: Likewise.
* tst-mutex4.c: Likewise.
* tst-mutex9.c: Likewise.
* tst-rwlock12.c: Likewise.
* tst-rwlock4.c: Likewise.
* tst-signal1.c: Likewise.
* tst-spin2.c: Likewise.
* sysdeps/pthread/posix-timer.h: Likewise.
* sysdeps/pthread/timer_create.c: Likewise.
* sysdeps/pthread/timer_routines.c: Likewise.
2004-10-01 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
(__lll_mutex_timedlock_wait): Address futex correctly.
* sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
(__lll_mutex_timedlock_wait): If woken but cannot get the lock,
make sure 2 is stored in the futex and we looked at the old value.
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
(__lll_mutex_timedlock_wait): Likewise. Fix a few other problems
which might very well made the code not working at all before.
[BZ #417]
2004-09-28 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
allow SIGSETXID to be sent.
* sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
for SIGSETXID to be defined.
* sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
SIGSETXID cannot be blocked.
* sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
Add __extension__ to long long types.
* sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
2004-09-25 Ulrich Drepper <drepper@redhat.com>
* descr.h (struct pthread): Add stopped_start field.
* sysdeps/pthread/createthread.c (create_thread): Set
start_stopped flag in descriptor for new thread appropriately.
* pthread_create.c (start_thread): Only take lock to be stopped on
startup if stopped_start flag says so.
2004-09-24 Ulrich Drepper <drepper@redhat.com>
* pthread_create.c (__pthread_create_2_1): Remember whether thread
is created detached and if yes, do not try to free the stack in case
the thread creation failed.
* sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
case there has been no error. [BZ #405]
* pthread_create.c (start_thread): Don't wait for scheduler data
etc to be set at the beginning of the function. The cancellation
infrastructure must have been set up. And enable async
cancellation before potentially going to sleep. [BZ #401]
2004-09-20 Ulrich Drepper <drepper@redhat.com>
* Versions: Remove exports for pthread_set*id_np functions.
* sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes
for now.
* Makefile: Don't build pthread_set*id code for now.
2004-09-19 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for
internal use.
* allocatestack.c (__nptl_setxid): New function.
* descr.h (struct xid_command): Define type.
* init.c (pthread_functions): Add ptr__nptl_setxid initialization.
(sighandler_setxid): New function.
(__pthread_initialize_minimal): Register sighandler_setxid for
SIGCANCEL.
* pt-allocrtsig.c: Update comment.
* pthreadP.h: Define SIGSETXID. Declare __xidcmd variable.
Declare __nptl_setxid.
* sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid.
* sysdeps/pthread/pthread.h: Declare pthread_setgid_np,
pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
and pthread_setresuid_np.
* pthread_setgid_np.c: New file.
* pthread_setuid_np.c: New file.
* pthread_setegid_np.c: New file.
* pthread_seteuid_np.c: New file.
* pthread_setregid_np.c: New file.
* pthread_setreuid_np.c: New file.
* pthread_setresgid_np.c: New file.
* pthread_setresuid_np.c: New file.
* Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np,
pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
and pthread_setresuid_np.
* Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid,
pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid,
pthread_setregid, and pthread_setresgid.
2004-09-18 Ulrich Drepper <drepper@redhat.com>
* allocatestack.c (allocate_stack): Return EAGAIN instead of
ENOMEM when out of memory.
2004-09-10 Roland McGrath <roland@redhat.com>
[BZ #379]
* allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED]
code, since we don't try to use the broken CLONE_STOPPED any more.
* pthread_create.c (start_thread): Likewise.
2004-09-15 Richard Henderson <rth@redhat.com>
* sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
2004-09-01 David Mosberger <davidm@hpl.hp.com>
* sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
(__libc_unwind_longjmp): Delete macro and declare as function.
* sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
__ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
nptl directory.
* sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
* sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
* sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
2004-09-12 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/pthread.h: Make rwlock prototypes available also
for __USE_XOPEN2K.
* sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock
types also for __USE_XOPEN2K.
* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
[BZ #320]
2004-09-08 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/pthread.h
(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
(PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
(PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
[BZ #375]
2004-09-07 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow
PSEUDO to be used with . prefix.
* sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once):
Use atomic_increment instead of atomic_exchange_and_add.
* sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once):
Likewise.
* sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
Likewise.
* sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
Likewise.
* allocatestack.c (allocate_stack): Use atomic_increment_val
instead of atomic_exchange_and_add.
* sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise.
* sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
Likewise.
* sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
Likewise.
* sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
the initialization function might throw.
2005-09-05 Richard Henderson <rth@redhat.com>
* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
Move definition inside libpthread, libc, librt check. Provide
definition for rtld.
2004-09-02 Ulrich Drepper <drepper@redhat.com>
* sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
* sysdeps/i386/jmpbuf-unwind.h: Likewise
* sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
* sysdeps/s390/jmpbuf-unwind.h: Likewise.
* sysdeps/sh/jmpbuf-unwind.h: Likewise.
* sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
* sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
* unwind.c: Use it.
* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
Rename __data.__clock to __data.__nwaiters, make it unsigned int.
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
Decrement __nwaiters. If pthread_cond_destroy has been called and
this is the last waiter, signal pthread_cond_destroy caller and
avoid using the pthread_cond_t structure after unlock.
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
Read clock type from the least significant bits of __nwaiters instead
of __clock.
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
* sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS.
2004-08-31 Jakub Jelinek <jakub@redhat.com>
[BZ #342]
* Makefile (tests): Add tst-cond20 and tst-cond21.
* tst-cond20.c: New test.
* tst-cond21.c: New test.
* sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
(pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make
it unsigned int.
* sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
(pthread_cond_t): Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
Likewise.
* sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
Likewise.
* sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove.
(cond_nwaiters): New.
(clock_bits): New.
* pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY
if there are waiters not signalled yet.
Wait until all already signalled waiters wake up.
* sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement
__nwaiters. If pthread_cond_destroy has been called and this is the
last waiter, signal pthread_cond_destroy caller and avoid using
the pthread_cond_t structure after unlock.
(__pthread_cond_wait): Increment __nwaiters in the beginning,
decrement it when leaving. If pthread_cond_destroy has been called
and this is the last waiter, signal pthread_cond_destroy caller.
* sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
Likewise. Read clock type from the least significant bits of
__nwaiters instead of __clock.
* pthread_condattr_setclock.c (pthread_condattr_setclock): Check
whether clock ID can be encoded in COND_CLOCK_BITS bits.
* pthread_condattr_getclock.c (pthread_condattr_getclock): Decode
clock type just from the last COND_CLOCK_BITS bits of value.
* pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters
instead of __clock, just from second bit of condattr's value.
2004-08-30 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include
bits/wordsize.h. Make the header match i386 header when __WORDSIZE
!= 64.
* sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
2004-08-15 Roland McGrath <roland@frob.com>
* pthread_atfork.c: Update copyright terms including special exception
for these trivial files, which are statically linked into executables
that use dynamic linking for the significant library code.
2004-08-09 Jakub Jelinek <jakub@redhat.com>
* DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to
pthread_rwlock_rdlock.
* sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
Decrease __nr_readers_queued after reacquiring lock.
* sysdeps/pthread/pthread_rwlock_timedrdlock
(pthread_rwlock_timedrdlock): Likewise.
Reported by Bob Cook <bobcook47@hotmail.com>.
2004-08-11 Jakub Jelinek <jakub@redhat.com>
* tst-rwlock14.c (tf): Read main thread handle from *ARG
before pthread_barrier_wait.
2004-08-07 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
Remove unnecessary exception handling data.