]>
Commit | Line | Data |
---|---|---|
539842a4 UD |
1 | 2004-06-22 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue): | |
4 | Set __r7 to val, not mutex. | |
5 | ||
46f4c578 UD |
6 | 2004-06-27 Ulrich Drepper <drepper@redhat.com> |
7 | ||
8 | * Makefile: Add rules to build tst-rwlock14. | |
9 | * tst-rwlock14.c: New file. | |
10 | ||
11 | 2004-06-24 Boris Hu <boris.hu@intel.com> | |
12 | ||
13 | * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation | |
14 | check. | |
15 | * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise. | |
16 | ||
9898e99c AJ |
17 | 2004-06-19 Andreas Jaeger <aj@suse.de> |
18 | ||
19 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix | |
20 | assembler in last patch. | |
21 | ||
7c3164bc UD |
22 | 2004-06-17 Ulrich Drepper <drepper@redhat.com> |
23 | ||
24 | * sysdeps/pthread/pthread_cond_timedwait.c | |
25 | (__pthread_cond_timedwait): Also check for negativ nanoseconds. | |
26 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | |
27 | (__pthread_cond_timedwait): Check for invalid nanosecond in | |
28 | timeout value. | |
29 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. | |
30 | * tst-cond19.c: New file. | |
31 | * Makefile: Add rules to build and run tst-cond19. | |
32 | ||
72e61500 UD |
33 | 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com> |
34 | ||
35 | * tst-context1.c (GUARD_PATTERN): Defined. | |
36 | (tst_context_t): Define struct containing ucontext_t & guard words. | |
37 | (ctx): Declare as an array of tst_context_t. | |
38 | (fct): Verify uc_link & guard words are still valid. | |
39 | (tf): Initialize guard words in ctx. Adjust ctx refs for new struct. | |
40 | ||
7c370086 UD |
41 | 2004-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
42 | ||
43 | * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t): | |
44 | Add __data.__futex field, reshuffle __data.__clock. | |
45 | * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S | |
46 | (__pthread_cond_signal): Increment __futex at the same time as | |
47 | __wakeup_seq or __total_seq. Pass address of __futex instead of | |
48 | address of low 32-bits of __wakeup_seq to futex syscall. | |
49 | * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S | |
50 | (__pthread_cond_wait): Likewise. Pass __futex value from before | |
51 | releasing internal lock to FUTEX_WAIT. | |
52 | * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S | |
53 | (__pthread_cond_timedwait): Likewise. | |
54 | * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S | |
55 | (FUTEX_CMP_REQUEUE): Define. | |
56 | (__pthread_cond_broadcast): Set __futex to 2 * __total_seq. | |
57 | Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE. | |
58 | Pass __futex value from before the unlock and __futex address instead | |
59 | of address of low 32-bits of __wakeup_seq to futex syscall. | |
60 | Fallback to FUTEX_WAKE all on any errors. | |
61 | ||
a9e526e7 RM |
62 | 2004-06-08 Jakub Jelinek <jakub@redhat.com> |
63 | ||
64 | * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix | |
65 | comment typo. | |
66 | * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise. | |
67 | * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise. | |
68 | * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise. | |
69 | * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared): | |
70 | Likewise. Reported by Bob Cook <bobcook47@hotmail.com>. | |
71 | ||
f1847a84 RM |
72 | 2004-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com> |
73 | ||
74 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap): | |
75 | Add memory clobber to inline assembly. | |
76 | (__lll_mutex_trylock): Likewise. | |
77 | (__lll_mutex_cond_trylock): Likewise. | |
78 | ||
f7c81e1a UD |
79 | 2004-06-07 Martin Schwidefsky <schwidefsky@de.ibm.com> |
80 | ||
81 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue): | |
82 | Pass val argument as 6th system call argument in %r7. | |
83 | ||
75fccede UD |
84 | 2004-05-21 Jakub Jelinek <jakub@redhat.com> |
85 | ||
86 | * Makefile (tests): Add tst-cond16. | |
87 | * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add. | |
88 | * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex. | |
89 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t): | |
90 | Add __data.__futex field, reshuffle __data.__clock. | |
91 | * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S | |
92 | (__pthread_cond_signal): Increment __futex at the same time as | |
93 | __wakeup_seq or __total_seq. Pass address of __futex instead of | |
94 | address of low 32-bits of __wakeup_seq to futex syscall. | |
95 | * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S | |
96 | (__pthread_cond_wait): Likewise. Pass __futex value from before | |
97 | releasing internal lock to FUTEX_WAIT. | |
98 | * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S | |
99 | (__pthread_cond_timedwait): Likewise. | |
100 | * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S | |
101 | (FUTEX_CMP_REQUEUE): Define. | |
102 | (__pthread_cond_broadcast): Set __futex to 2 * __total_seq. | |
103 | Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE. | |
104 | Pass __futex value from before the unlock and __futex address instead | |
105 | of address of low 32-bits of __wakeup_seq to futex syscall. | |
106 | Fallback to FUTEX_WAKE all on any errors. | |
107 | * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE): | |
108 | Define. | |
109 | (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE | |
110 | internally. Return non-zero if error, zero if success. | |
111 | * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t): | |
112 | Add __data.__futex field, reshuffle __data.__clock. | |
113 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE): | |
114 | Define. | |
115 | (lll_futex_requeue): Add val argument, return 1 unconditionally | |
116 | for the time being. | |
117 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t): | |
118 | Add __data.__futex field, reshuffle __data.__clock. | |
119 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE): | |
120 | Define. | |
121 | (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE | |
122 | internally. Return non-zero if error, zero if success. | |
123 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h | |
124 | (pthread_cond_t): Add __data.__futex field, reshuffle __data.__clock. | |
125 | * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_CMP_REQUEUE): | |
126 | Define. | |
127 | (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE | |
128 | internally. Return non-zero if error, zero if success. | |
129 | * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t): | |
130 | Add __data.__futex field, reshuffle __data.__clock. | |
131 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_CMP_REQUEUE): | |
132 | Define. | |
133 | (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE | |
134 | internally. Return non-zero if error, zero if success. | |
135 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t): | |
136 | Add __data.__futex field, reshuffle __data.__clock. | |
137 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t): | |
138 | Add __data.__futex field, reshuffle __data.__clock. | |
139 | * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): | |
140 | Increment __futex at the same time as __wakeup_seq or __total_seq. | |
141 | Pass address of __futex instead of address of low 32-bits of | |
142 | __wakeup_seq to futex syscall. | |
143 | * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise. | |
144 | Pass __futex value from before releasing internal lock | |
145 | to FUTEX_WAIT. | |
146 | * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait): | |
147 | Likewise. Avoid unnecessary shadowing of variables. | |
148 | * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast): | |
149 | Set __futex to 2 * __total_seq. Pass __futex value from before the | |
150 | unlock and __futex address instead of address of low 32-bits of | |
151 | __wakeup_seq to futex_requeue macro, adjust for new return value | |
152 | meaning. | |
153 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S | |
154 | (__pthread_cond_signal): Increment __futex at the same time as | |
155 | __wakeup_seq or __total_seq. Pass address of __futex instead of | |
156 | address of low 32-bits of __wakeup_seq to futex syscall. | |
157 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S | |
158 | (__pthread_cond_wait): Likewise. Pass __futex value from before | |
159 | releasing internal lock to FUTEX_WAIT. | |
160 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S | |
161 | (__pthread_cond_timedwait): Likewise. | |
162 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S | |
163 | (FUTEX_CMP_REQUEUE): Define. | |
164 | (__pthread_cond_broadcast): Set __futex to 2 * __total_seq. | |
165 | Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE. | |
166 | Pass __futex value from before the unlock and __futex address instead | |
167 | of address of low 32-bits of __wakeup_seq to futex syscall. | |
168 | Fallback to FUTEX_WAKE all on any errors. | |
169 | ||
170 | 2004-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp> | |
171 | ||
172 | * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_mutex_lock): | |
173 | Add nop to align the end of critical section. | |
174 | (lll_mutex_cond_lock, lll_mutex_timedlock): Likewise. | |
175 | ||
fbf86dda UD |
176 | 2004-06-01 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
177 | ||
178 | * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t): | |
179 | Add __broadcast_seq field. | |
180 | * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Mark | |
181 | all waiters as woken with woken_seq and bump broadcast counter. | |
182 | * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use new | |
183 | __broadcast_seq. Increment __woken_seq correctly when cleanuped. | |
184 | * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise. | |
185 | Comment typo fixes. Avoid returning -ETIMEDOUT. | |
186 | ||
187 | 2004-06-01 Ulrich Drepper <drepper@redhat.com> | |
188 | ||
189 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | |
190 | (__condvar_tw_cleanup): Fix access to saved broadcast_seq value. | |
191 | Reported by Kaz Kojima. | |
192 | ||
ffdd5e50 UD |
193 | 2004-05-25 Jakub Jelinek <jakub@redhat.com> |
194 | ||
195 | * sysdeps/unix/sysv/linux/aio_misc.h: New file. | |
196 | ||
3abc82c8 UD |
197 | 2004-05-21 Jakub Jelinek <jakub@redhat.com> |
198 | ||
199 | * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare | |
200 | __broadcast_seq with bc_seq after acquiring internal lock instead of | |
201 | before it. | |
202 | ||
893a3511 UD |
203 | 2004-05-18 Jakub Jelinek <jakub@redhat.com> |
204 | ||
205 | * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not | |
206 | compilation. | |
207 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | |
208 | (__pthread_cond_timedwait): Avoid returning -ETIMEDOUT. | |
209 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h | |
210 | (pthread_cond_t): Add __data.__broadcast_seq field. | |
211 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S | |
212 | (FRAME_SIZE): Define. | |
213 | (__pthread_cond_timedwait): Use it. Store/check broadcast_seq. | |
214 | Comment typo fixes. | |
215 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (FRAME_SIZE): | |
216 | Define. | |
217 | (__pthread_cond_wait): Use it. Store/check broadcast_seq. Comment | |
218 | typo fixes. | |
219 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S | |
220 | (__pthread_cond_broadcast): Increment broadcast_seq. Comment typo | |
221 | fixes. | |
222 | ||
223 | 2004-05-18 Ulrich Drepper <drepper@redhat.com> | |
224 | ||
225 | * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add broadcast_seq entry. | |
226 | * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t): | |
227 | Add __broadcast_seq field. | |
228 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. | |
229 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. | |
230 | * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise. | |
231 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise. | |
232 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. | |
233 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Mark | |
234 | all waiters as woken with woken_seq and bump broadcast counter. | |
235 | * sysdeps/pthread/pthread_cond_broadcast.c: Likewise. | |
236 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use new | |
237 | __broadcast_seq field. | |
238 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
239 | * sysdeps/pthread/pthread_cond_wait.c: Likewise. | |
240 | * sysdeps/pthread/pthread_cond_timedwait.c: Likewise. | |
241 | * pthread_cond_init.c: Initialize __broadcast_seq field. | |
242 | * Makefile (tests): Add tst-cond17 and tst-cond18. | |
243 | Add .NOTPARALLEL goal. | |
244 | * tst-cond16.c: New file. From Jakub. | |
245 | * tst-cond17.c: New file. From Jakub. | |
246 | * tst-cond18.c: New file. From Jakub. | |
247 | ||
4123718e UD |
248 | 2004-05-16 Ulrich Drepper <drepper@redhat.com> |
249 | ||
250 | * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Correct some | |
251 | unwind info. | |
252 | ||
253 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: | |
254 | Parametrize frame size. Correct some unwind info. | |
255 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
256 | ||
2d7ae210 UD |
257 | 2004-05-04 Jakub Jelinek <jakub@redhat.com> |
258 | ||
259 | * tst-stack3.c: Note testing functionality beyond POSIX. | |
260 | ||
50c2b6d7 UD |
261 | 2004-05-04 Jakub Jelinek <jakub@redhat.com> |
262 | ||
263 | * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD): | |
264 | Change conditional from ifdef to if. | |
265 | ||
27b02589 UD |
266 | 2004-04-23 Jakub Jelinek <jakub@redhat.com> |
267 | ||
268 | * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SYSDEP_CANCEL_ERRNO, | |
269 | SYSDEP_CANCEL_ERROR): Define. | |
270 | (PSEUDO): Use it. | |
271 | ||
4bb8fc33 UD |
272 | 2004-05-01 Jakub Jelinek <jakub@redhat.com> |
273 | ||
274 | * Versions (libpthread): Remove __pthread_cleanup_upto@@GLIBC_PRIVATE. | |
275 | ||
f9a06dc1 UD |
276 | 2004-04-20 Jakub Jelinek <jakub@redhat.com> |
277 | ||
278 | * sem_unlink.c (sem_unlink): Change EPERM into EACCES. | |
279 | ||
d3b52028 UD |
280 | 2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
281 | ||
282 | * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info. | |
283 | Use HIDDEN_JUMPTARGET to jump to __pthread_unwind. | |
284 | * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove unneeded frame | |
285 | info. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind. | |
286 | ||
a5dd0a6c UD |
287 | 2004-04-19 Ulrich Drepper <drepper@redhat.com> |
288 | ||
289 | * sysdeps/unix/sysv/linux/timer_routines.c: Make sure helper | |
290 | thread has all signals blocked. | |
291 | ||
620c3354 AJ |
292 | 2004-04-18 Andreas Jaeger <aj@suse.de> |
293 | ||
294 | * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h | |
295 | (SEM_VALUE_MAX): Add missing brace. | |
296 | ||
1683daeb UD |
297 | 2004-04-17 Jakub Jelinek <jakub@redhat.com> |
298 | ||
299 | * sysdeps/pthread/Makefile (tests): Add tst-mqueue8x | |
300 | in rt subdir. | |
301 | (CFLAGS-tst-mqueue8x.c): Add -fexceptions. | |
302 | * sysdeps/pthread/tst-mqueue8x.c: New test. | |
303 | * tst-cancel4.c: Update comment about message queues. | |
304 | ||
305 | * sysdeps/pthread/timer_gettime.c (timer_gettime): For expired timer | |
306 | return it_value { 0, 0 }. | |
307 | * sysdeps/pthread/timer_create.c (timer_create): Handle SIGEV_NONE | |
308 | like SIGEV_SIGNAL. | |
309 | * sysdeps/pthread/timer_routines.c (thread_expire_timer): Remove | |
310 | assertion for SIGEV_NONE. | |
311 | (thread_attr_compare): Compare all attributes, not just a partial | |
312 | subset. | |
313 | ||
314 | 2004-04-17 Jakub Jelinek <jakub@redhat.com> | |
315 | ||
316 | * sysdeps/unix/sysv/linux/mq_notify.c: Include stdlib.h. | |
317 | ||
f532641d UD |
318 | 2004-04-17 Ulrich Drepper <drepper@redhat.com> |
319 | ||
320 | * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h (SEM_VALUE_MAX): | |
321 | Just use a plain number. | |
322 | * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise. | |
323 | * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise. | |
324 | * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise. | |
325 | * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise. | |
326 | * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise. | |
327 | * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise. | |
328 | * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise. | |
329 | ||
7eb7fdda UD |
330 | 2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
331 | ||
53392906 UD |
332 | * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded |
333 | frame info. | |
334 | * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise. | |
7eb7fdda | 335 | |
d7ba1313 UD |
336 | 2004-04-15 Jakub Jelinek <jakub@redhat.com> |
337 | ||
338 | * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h. | |
339 | (timer_helper_thread): Use inline rt_sigtimedwait syscall instead | |
340 | of calling sigwaitinfo. | |
341 | ||
5adac0e4 UD |
342 | 2004-04-16 Ulrich Drepper <drepper@redhat.com> |
343 | ||
344 | * allocatestack.c (allocate_stack): Set reported_guardsize | |
345 | unconditionally. | |
346 | * pthread_getattr_np.c (pthread_getattr_np): Use | |
347 | reported_guardsize instead of guardsize. | |
348 | * descr.h (struct pthread): Add reported_guardsize field. | |
349 | ||
f93fa7d4 UD |
350 | 2004-04-13 Jakub Jelinek <jakub@redhat.com> |
351 | ||
352 | * sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning. | |
353 | ||
1b82c6c7 UD |
354 | 2004-04-12 Ulrich Drepper <drepper@redhat.com> |
355 | ||
356 | * sysdeps/unix/sysv/linux/mq-notify.c: New file. | |
357 | ||
358 | 2004-04-08 Jakub Jelinek <jakub@redhat.com> | |
359 | ||
360 | * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define. | |
361 | * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h (MQ_PRIO_MAX): Define. | |
362 | * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h (MQ_PRIO_MAX): Define. | |
363 | * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h (MQ_PRIO_MAX): Define. | |
364 | * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_MESSAGE_PASSING): | |
365 | Define. | |
366 | * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h | |
367 | (_POSIX_MESSAGE_PASSING): Define. | |
368 | * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h | |
369 | (_POSIX_MESSAGE_PASSING): Define. | |
370 | * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h | |
371 | (_POSIX_MESSAGE_PASSING): Define. | |
372 | ||
e6eb894e UD |
373 | 2004-04-04 Ulrich Drepper <drepper@redhat.com> |
374 | ||
375 | * tst-context1.c (fct): Check whether correct stack is used. | |
376 | ||
1e084487 UD |
377 | 2004-04-03 Ulrich Drepper <drepper@redhat.com> |
378 | ||
4e73e115 UD |
379 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use |
380 | matching constraints for asm mem parameters. | |
381 | ||
1e084487 UD |
382 | * tst-clock2.c (tf): Don't define unless needed. |
383 | ||
feca5e0b UD |
384 | 2004-03-30 H.J. Lu <hongjiu.lu@intel.com> |
385 | ||
386 | * Makefile (link-libc-static): Use $(static-gnulib) instead of | |
387 | $(gnulib). | |
388 | ||
3fa21fd8 UD |
389 | 2004-03-30 Ulrich Drepper <drepper@redhat.com> |
390 | ||
391 | * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_deallocate_tsd. | |
392 | * init.c (pthread_functions): Add ptr__nptl_deallocate_tsd. | |
393 | * pthreadP.h: Declare __nptl_deallocate_tsd. | |
394 | * pthread_create.c (deallocate_tsd): Remove to __nptl_deallocate_tsd. | |
395 | Adjust caller. | |
396 | ||
397 | * Makefile (tests): Add tst-tsd5. | |
398 | * tst-tsd5.c: New file. | |
399 | ||
8e32efa6 UD |
400 | 2004-03-29 Ulrich Drepper <drepper@redhat.com> |
401 | ||
402 | * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c | |
403 | (__pthread_attr_setaffinity_old): Prepend GLIBC_ to version names | |
404 | is SHLIB_COMPAT check. | |
405 | * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c | |
406 | (__pthread_attr_getaffinity_old): Likewise. | |
407 | * sysdeps/unix/sysv/linux/pthread_getaffinity.c | |
408 | (__pthread_getaffinity_old): Likewise. | |
409 | * sysdeps/unix/sysv/linux/pthread_setaffinity.c | |
410 | (__pthread_setaffinity_old): Likewise. | |
411 | ||
eec8b6ca UD |
412 | 2004-03-26 Ulrich Drepper <drepper@redhat.com> |
413 | ||
414 | * allocatestack.c (_make_stacks_executable): Call | |
415 | _dl_make_stack_executable first. | |
416 | ||
db2f05ba RM |
417 | 2004-03-24 Roland McGrath <roland@redhat.com> |
418 | ||
419 | * sysdeps/i386/pthread_spin_lock.c (pthread_spin_lock): Use "m" | |
420 | constraint instead of "0". | |
421 | ||
6abbc501 UD |
422 | 2004-03-24 Ulrich Drepper <drepper@redhat.com> |
423 | ||
68dc4dcb UD |
424 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h |
425 | (lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock. | |
426 | ||
6abbc501 UD |
427 | * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Reorganize |
428 | code to avoid warning. | |
429 | ||
865e14d9 AJ |
430 | 2004-03-24 Andreas Jaeger <aj@suse.de> |
431 | ||
432 | * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c | |
433 | (__pthread_attr_setaffinity_old): Remove const. | |
434 | ||
16b06b70 UD |
435 | 2004-03-23 Ulrich Drepper <drepper@redhat.com> |
436 | ||
2c0b891a UD |
437 | * sysdeps/unix/sysv/linux/smp.h: New file. |
438 | * sysdeps/unix/sysv/linux/sh/smp.h: New file. | |
439 | * init.c: Define __is_smp. | |
440 | (__pthread_initialize_minimal_internal): Call is_smp_system to | |
441 | initialize __is_smp. | |
442 | * pthreadP.h: Declare __is_smp. | |
443 | Define MAX_ADAPTIVE_COUNT is necessary. | |
444 | * pthread_mutex_init.c: Add comment regarding __spins field. | |
445 | * pthread_mutex_lock.c: Implement adaptive mutex type. | |
446 | * pthread_mutex_timedlock.c: Likewise. | |
447 | * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise. | |
448 | * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t): | |
449 | Add __spins field. | |
450 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise. | |
451 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. | |
452 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. | |
453 | * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise. | |
454 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. | |
455 | * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise. | |
456 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. | |
457 | * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define | |
458 | lll_mutex_cond_trylock. | |
459 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. | |
460 | * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise. | |
461 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. | |
462 | * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise. | |
463 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise. | |
464 | Define BUSY_WAIT_NOP. | |
465 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. | |
466 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. | |
467 | ||
468 | * tst-mutex5.c: Add support for testing adaptive mutexes. | |
469 | * tst-mutex7.c: Likewise. | |
470 | * tst-mutex5a.c: New file. | |
471 | * tst-mutex7a.c: New file. | |
472 | * Makefile (tests): Add tst-mutex5a and tst-mutex7a. | |
473 | ||
565699e4 UD |
474 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S |
475 | (__lll_mutex_timedlock_wait): Preserve r8 and r9 since the | |
6abbc501 | 476 | vgettimeofday call might destroy the content. |
565699e4 | 477 | |
7fe1586f UD |
478 | * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use hint |
479 | @pause in the loop. | |
480 | ||
e408880b UD |
481 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock): |
482 | No need to restrict type of ret. Make it int. Add comment. | |
483 | ||
16b06b70 UD |
484 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock): |
485 | Remove unnecessary setne instruction. | |
486 | ||
61645263 UD |
487 | 2004-03-22 Jakub Jelinek <jakub@redhat.com> |
488 | ||
489 | * sysdeps/unix/sysv/linux/pthread_getaffinity.c | |
490 | (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX. | |
491 | * pthread_getattr_np.c (pthread_getattr_np): Double size every cycle. | |
492 | If realloc fails, break out of the loop. | |
493 | ||
e3d4c585 AJ |
494 | 2004-03-20 Andreas Jaeger <aj@suse.de> |
495 | ||
496 | * sysdeps/unix/sysv/linux/pthread_setaffinity.c | |
497 | (__pthread_setaffinity_old): Fix interface. | |
498 | * sysdeps/unix/sysv/linux/pthread_getaffinity.c | |
499 | (__pthread_getaffinity_old): Likewise. | |
500 | ||
501 | * sysdeps/unix/sysv/linux/pthread_setaffinity.c | |
502 | (__pthread_setaffinity_new): Remove duplicate declaration. | |
503 | ||
3abb1ff7 UD |
504 | 2004-03-20 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
505 | ||
506 | * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save | |
507 | the return value to a safe register. | |
508 | (CDISABLE): Set the function argument correctly. | |
509 | ||
07bd2a3f UD |
510 | 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
511 | ||
512 | * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XCHG): Define. | |
513 | * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait): | |
514 | Rewrite so that only one locked memory operation per round is needed. | |
515 | * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S | |
516 | (pthread_barrier_wait): After wakeup, release lock only when the | |
517 | last thread stopped using the barrier object. | |
518 | * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S | |
519 | (__pthread_cond_wait): Don't store mutex address if the current | |
520 | value is ~0l. Add correct cleanup support and unwind info. | |
521 | * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise. | |
522 | * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S | |
523 | (__pthread_cond_broadcast): Don't use requeue for pshared condvars. | |
524 | * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Update comment. | |
525 | * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once): | |
526 | Add correct cleanup support and unwind info. | |
527 | * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise. | |
528 | * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Add unwind | |
529 | information for syscall wrappers. | |
530 | ||
14c35863 UD |
531 | 2004-03-18 Ulrich Drepper <drepper@redhat.com> |
532 | ||
533 | * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add | |
534 | cpusetsize field, remove next. | |
535 | * sysdeps/pthread/pthread.h (pthread_getaffinity_np): Add new second | |
536 | parameter for size of the CPU set. | |
537 | (pthread_setaffinity_np): Likewise. | |
538 | (pthread_attr_getaffinity_np): Likewise. | |
539 | (pthread_attr_setaffinity_np): Likewise. | |
540 | * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Implement | |
541 | interface change, keep compatibility code. | |
542 | * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise. | |
543 | * sysdeps/unix/sysv/linux/pthread_getaffinity.c: Likewise. | |
544 | * sysdeps/unix/sysv/linux/pthread_setaffinity.c: Likewise. | |
545 | * pthreadP.h: Remove hidden_proto for pthread_getaffinity_np. Declare | |
546 | __pthread_getaffinity_np. | |
547 | * Versions: Add version for changed interfaces. | |
548 | * tst-attr3.c: Adjust test for interface change. | |
549 | * pthread_getattr_np.c: Query the kernel about the affinity mask with | |
550 | increasing buffer sizes. | |
551 | * pthread_attr_destroy.c: Remove unused list handling. | |
552 | * pthread_attr_init.c: Likewise. | |
553 | ||
8e115d80 RM |
554 | 2004-03-17 Roland McGrath <roland@redhat.com> |
555 | ||
556 | * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing | |
557 | first argument to clock_getres so we ever enable kernel timers. | |
558 | ||
e3b22ad3 UD |
559 | 2004-03-15 Ulrich Weigand <uweigand@de.ibm.com> |
560 | ||
561 | * init.c (nptl_version): Add __attribute_used__ to nptl_version. | |
562 | ||
841153fa RH |
563 | 2004-03-12 Richard Henderson <rth@redhat.com> |
564 | ||
e3b22ad3 UD |
565 | * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate |
566 | oldvalue from CENABLE to CDISABLE. | |
841153fa | 567 | |
932dfea7 UD |
568 | 2004-03-12 Ulrich Drepper <drepper@redhat.com> |
569 | ||
570 | * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX. | |
571 | * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise. | |
572 | * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise. | |
573 | * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise. | |
574 | ||
9852f6dc RH |
575 | 2004-03-11 Richard Henderson <rth@redhat.com> |
576 | ||
577 | * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New. | |
578 | * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID. | |
579 | * sysdeps/unix/sysv/linux/alpha/vfork.S: New file. | |
580 | ||
43513fb7 UD |
581 | 2004-03-11 Jakub Jelinek <jakub@redhat.com> |
582 | ||
583 | * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Use jgnl | |
584 | instead of jnl instruction to jump to SYSCALL_ERROR_LABEL. | |
585 | * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S (__vfork): Likewise. | |
586 | ||
587 | 2004-03-11 Jakub Jelinek <jakub@redhat.com> | |
588 | ||
589 | * forward.c (__pthread_cond_broadcast_2_0, | |
590 | __pthread_cond_destroy_2_0, __pthread_cond_init_2_0, | |
591 | __pthread_cond_signal_2_0, __pthread_cond_wait_2_0, | |
592 | __pthread_cond_timedwait_2_0): Use return 0 as defaction instead of 0. | |
593 | ||
8a3e10e0 UD |
594 | 2004-03-11 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
595 | ||
596 | * sysdeps/sh/tcb-offsets.sym: Add PID. | |
597 | * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Properly handle PID cache. | |
598 | * sysdeps/unix/sysv/linux/sh/vfork.S: New file. | |
599 | ||
6d3a2bec UD |
600 | 2004-03-10 Ulrich Drepper <drepper@redhat.com> |
601 | ||
602 | * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: No need to | |
603 | include <sysdep-cancel.h>, vfork is no cancellation point. | |
604 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise. | |
605 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: Likewise. | |
606 | * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: Likewise. | |
607 | ||
d3a4a571 UD |
608 | 2004-03-10 Jakub Jelinek <jakub@redhat.com> |
609 | ||
73b4ce64 UD |
610 | * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add |
611 | libc_hidden_def. | |
612 | * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise. | |
613 | * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork): | |
614 | Likewise. | |
615 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork): | |
616 | Likewise. | |
617 | * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise. | |
618 | * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise. | |
619 | * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Include tcb-offsets.h. | |
620 | * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Use DO_CALL instead | |
621 | of DO_CALL_VIA_BREAK. Work around a gas problem. | |
622 | ||
d682a515 UD |
623 | * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: Remove. |
624 | * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file. | |
625 | * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: New file. | |
626 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file. | |
627 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: New file. | |
628 | * sysdeps/powerpc/tcb-offsets.sym: Add PID. | |
629 | ||
630 | * sysdeps/unix/sysv/linux/ia64/pt-vfork.S (__vfork): Don't use | |
631 | a local register for saving old PID. Negate PID in parent upon exit. | |
632 | ||
d3a4a571 UD |
633 | * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Include |
634 | tcb-offsets.h. | |
635 | (__vfork): Negate PID if non-zero and set to INT_MIN if zero | |
636 | before syscall, set to the old value in the parent afterwards. | |
637 | * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: New file. | |
638 | * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Include | |
639 | tcb-offsets.h. | |
640 | (__vfork): Negate PID if non-zero and set to INT_MIN if zero | |
641 | before syscall, set to the old value in the parent afterwards. | |
642 | * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: New file. | |
643 | * sysdeps/s390/tcb-offsets.sym: Add PID. | |
644 | ||
645 | * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Remove. | |
646 | * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: New file. | |
647 | * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: New file. | |
648 | * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: New file. | |
649 | * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: New file. | |
650 | * sysdeps/sparc/tcb-offsets.sym: Add PID. | |
651 | ||
652 | 2004-03-10 Andreas Schwab <schwab@suse.de> | |
653 | ||
654 | * sysdeps/ia64/tcb-offsets.sym: Add PID. | |
655 | * sysdeps/unix/sysv/linux/ia64/vfork.S: New file. | |
656 | * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Properly handle PID cache. | |
657 | ||
3f2fb223 | 658 | 2004-03-09 Jakub Jelinek <jakub@redhat.com> |
f4c024d1 | 659 | |
3f2fb223 UD |
660 | * tst-cancel20.c (do_one_test): Clear in_sh_body first. |
661 | * tst-cancel21.c (do_one_test): Likewise. | |
662 | Reported by Gordon Jin <gordon.jin@intel.com>. | |
f4c024d1 | 663 | |
8b9d6054 UD |
664 | 2004-02-09 Jakub Jelinek <jakub@redhat.com> |
665 | ||
666 | * sysdeps/unix/sysv/linux/i386/vfork.S (SAVE_PID): Negate PID | |
667 | if non-zero and set to INT_MIN if zero. | |
668 | * sysdeps/unix/sysv/linux/x86_64/vfork.S (SAVE_PID): Likewise. | |
669 | * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Include tcb-offsets.h. | |
670 | (SAVE_PID, RESTORE_PID): Define. | |
671 | (__vfork): Use it. | |
672 | * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: Include tcb-offsets.h. | |
673 | Use relative path to avoid including NPTL i386/vfork.S. | |
674 | (SAVE_PID, RESTORE_PID): Define. | |
675 | * sysdeps/unix/sysv/linux/raise.c: Include limits.h. | |
676 | (raise): Handle THREAD_SELF->pid INT_MIN the same as 0. | |
677 | * Makefile (tests): Add tst-vfork1, tst-vfork2, tst-vfork1x and | |
678 | tst-vfork2x. | |
679 | (tests-reverse): Add tst-vfork1x and tst-vfork2x. | |
680 | * tst-vfork1.c: New test. | |
681 | * tst-vfork2.c: New test. | |
682 | * tst-vfork1x.c: New test. | |
683 | * tst-vfork2x.c: New test. | |
684 | ||
02287d05 UD |
685 | 2004-03-08 Ulrich Drepper <drepper@redhat.com> |
686 | ||
c072ef6d | 687 | * sysdeps/i386/tcb-offsets.sym: Add PID. |
6fadea9f | 688 | * sysdeps/x86_64/tcb-offsets.sym: Likewise. |
c072ef6d | 689 | * sysdeps/unix/sysv/linux/i386/vfork.S: New file. |
6fadea9f | 690 | * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file. |
02287d05 | 691 | |
d4acd24b UD |
692 | 2004-03-08 Steven Munroe <sjmunroe@us.ibm.com> |
693 | ||
694 | * sysdeps/unix/sysv/linux/powerpc/Versions: Remove leading tabs. | |
695 | ||
8acb4b81 UD |
696 | 2004-03-08 H.J. Lu <hongjiu.lu@intel.com> |
697 | ||
698 | * sysdeps/s390/tls.h (INIT_SYSINFO): _dl_sysinfo is now in | |
699 | _rtld_global_ro. | |
700 | ||
4d1a02ef UD |
701 | 2004-03-07 Ulrich Drepper <drepper@redhat.com> |
702 | ||
001836c8 | 703 | * sysdeps/ia64/tls.h (INIT_SYSINFO): _dl_sysinfo is now in |
8acb4b81 | 704 | _rtld_global_ro. |
001836c8 | 705 | |
4d1a02ef UD |
706 | * tst-once4.c: Remove unnecessary macro definition. |
707 | ||
708 | * tst-mutex7.c (do_test): Limit thread stack size. | |
709 | * tst-once2.c (do_test): Likewise. | |
710 | * tst-tls3.c (do_test): Likewise. | |
711 | * tst-tls1.c (do_test): Likewise. | |
712 | * tst-signal3.c (do_test): Likewise. | |
713 | * tst-kill6.c (do_test): Likewise. | |
714 | * tst-key4.c (do_test): Likewise. | |
715 | * tst-join4.c (do_test): Likewise. | |
716 | * tst-fork1.c (do_test): Likewise. | |
717 | * tst-context1.c (do_test): Likewise. | |
718 | * tst-cond2.c (do_test): Likewise. | |
719 | * tst-cond10.c (do_test): Likewise. | |
720 | * tst-clock2.c (do_test): Likewise. | |
721 | * tst-cancel10.c (do_test): Likewise. | |
722 | * tst-basic2.c (do_test): Likewise. | |
723 | * tst-barrier4.c (do_test): Likewise. | |
724 | ||
aa420660 UD |
725 | 2004-03-05 Ulrich Drepper <drepper@redhat.com> |
726 | ||
727 | * sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate. | |
728 | ||
cff08c81 UD |
729 | 2004-03-01 Ulrich Drepper <drepper@redhat.com> |
730 | ||
731 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | |
732 | (__pthread_cond_timedwait): Optimize wakeup test. | |
733 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S | |
734 | (__pthread_cond_wait): Likewise. | |
735 | * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise. | |
736 | * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait): | |
737 | Likewise. | |
738 | ||
b7fe377c UD |
739 | 2004-02-29 Ulrich Drepper <drepper@redhat.com> |
740 | ||
741 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S | |
742 | (__lll_mutex_lock_wait): Optimize a bit more. Just one copy of | |
743 | the atomic instruction needed. | |
744 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S | |
745 | (__lll_mutex_lock_wait): Likewise. | |
746 | ||
4c771a3b UD |
747 | 2004-02-28 Ulrich Drepper <drepper@redhat.com> |
748 | ||
749 | * Makefile (tests): Add tst-cond14 and tst-cond15. | |
750 | * tst-cond14.c: New file. | |
751 | * tst-cond15.c: New file. | |
752 | ||
a2c33d5a UD |
753 | 2004-02-27 Ulrich Drepper <drepper@redhat.com> |
754 | ||
755 | * sysdeps/pthread/createthread.c (create_thread): Remove use of | |
756 | CLONE_STOPPED. We cannot use SIGCONT which means CLONE_STOPPED | |
757 | needs to be implemented differently to be useful. | |
758 | ||
261eada2 UD |
759 | 2004-02-26 Ulrich Drepper <drepper@redhat.com> |
760 | ||
14ffbc83 UD |
761 | * pthread_attr_setschedparam.c: Don't test priority against limits |
762 | here. Set ATTR_FLAG_SCHED_SET flag. | |
763 | * pthread_attr_setschedpolicy.c: Set ATTR_FLAG_POLICY_SET flag. | |
764 | * pthread_create.c (__pthread_create_2_1): Copy scheduling attributes | |
765 | from parent thread to child. If attribute is used and scheduling | |
766 | parameters are not inherited, copy parameters from attribute or | |
767 | compute them. Check priority value. | |
768 | * pthread_getschedparam.c: If the parameters aren't known yet get | |
769 | them from the kernel. | |
770 | * pthread_setschedparam.c: Set ATTR_FLAG_SCHED_SET and | |
771 | ATTR_FLAG_POLICY_SET flag for thread. | |
772 | * sysdeps/unix/sysv/linux/internaltypes.h: Define ATTR_FLAG_SCHED_SET | |
773 | and ATTR_FLAG_POLICY_SET. | |
774 | ||
775 | * sysdeps/pthread/createthread.c: Use tgkill if possible. | |
776 | ||
261eada2 UD |
777 | * pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Don't |
778 | fail if stack address hasn't been set. Just return 0. | |
779 | ||
701d185c UD |
780 | 2004-02-25 Ulrich Drepper <drepper@redhat.com> |
781 | ||
25b8e63c UD |
782 | * Makefile (tests-nolibpthread): Add tst-unload. Don't link with |
783 | libpthread for the files in this list. | |
784 | (CFLAGS-tst-unload): Removed. | |
785 | * tst-unload.c (do_test): Don't use complete path for | |
786 | LIBPHREAD_SO. | |
787 | ||
701d185c UD |
788 | * Makefile: Define sonames for tst-tls5mod, tst-_res1mod1, and |
789 | tst-_res1mod2. | |
790 | ||
a8fd5a02 UD |
791 | 2004-02-22 Ulrich Drepper <drepper@redhat.com> |
792 | ||
793 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S | |
794 | (__lll_mutex_lock_wait): Rewrite so that only one locked memory | |
795 | operation per round is needed. | |
796 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S | |
797 | (__lll_mutex_lock_wait): Likewise. | |
798 | ||
dd0b7b19 UD |
799 | 2004-02-20 Ulrich Drepper <drepper@redhat.com> |
800 | ||
801 | * tst-cancel9.c (cleanup): Don't print to stderr. | |
802 | ||
5990e1fe UD |
803 | 2004-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
804 | ||
805 | * sysdeps/sh/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Fix variable name. | |
806 | ||
33ab3b66 UD |
807 | 2004-02-20 Jakub Jelinek <jakub@redhat.com> |
808 | ||
1be3130e UD |
809 | * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h |
810 | (__syscall_error_handler2): Call CDISABLE. | |
811 | * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h | |
812 | (__syscall_error_handler2): Call CDISABLE. | |
813 | ||
8ba5025a UD |
814 | * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait): |
815 | Release lock before the loop, don't reacquire it. | |
8ba5025a | 816 | |
33ab3b66 UD |
817 | * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define. |
818 | ||
11986c68 UD |
819 | 2004-02-19 Andreas Schwab <schwab@suse.de> |
820 | ||
821 | * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait): | |
822 | Fix last change. | |
823 | ||
dc391246 UD |
824 | 2004-02-18 Ulrich Drepper <drepper@redhat.com> |
825 | ||
37c054c7 UD |
826 | * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S |
827 | (pthread_barrier_wait): After wakeup, release lock only when the | |
828 | last thread stopped using the barrier object. | |
829 | * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S | |
830 | (pthread_barrier_wait): Likewise. | |
831 | * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait): | |
832 | Likewise. | |
833 | * Makefile (tests): Add tst-barrier4. | |
834 | * tst-barrier4.c: New file. | |
dc391246 UD |
835 | |
836 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | |
837 | (__pthread_cond_timedwait): Perform timeout test while holding | |
838 | internal lock to prevent wakeup race. | |
839 | Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>. | |
840 | * sysdeps/pthread/pthread_cond_timedwait.c | |
841 | (__pthread_cond_timedwait): Likewise. | |
842 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S | |
843 | (__pthread_cond_timedwait): Likewise. | |
844 | ||
4a08113c UD |
845 | 2004-02-18 Jakub Jelinek <jakub@redhat.com> |
846 | ||
847 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S | |
848 | (__pthread_rwlock_unlock): Access WRITER as 32-bit value. | |
849 | * Makefile (tests): Add tst-rwlock13. | |
850 | * tst-rwlock13.c: New test. | |
851 | ||
71b1675e UD |
852 | 2004-02-16 Ulrich Drepper <drepper@redhat.com> |
853 | ||
854 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | |
855 | (__condvar_tw_cleanup): Little optimization. | |
856 | Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>. | |
857 | ||
cd9fdc72 UD |
858 | 2004-02-16 Steven Munroe <sjmunroe@us.ibm.com> |
859 | ||
860 | * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Replace libc with | |
861 | libpthread as "lib" parameter to SHLIB_COMPAT. | |
862 | (__novmx_siglongjmp): Fix typo in function name. | |
863 | (__novmx_longjmp): Fix typo in function name. | |
864 | ||
82038750 UD |
865 | 2004-02-13 Ulrich Drepper <drepper@redhat.com> |
866 | ||
b078c591 UD |
867 | * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a |
868 | __builtin_expect. | |
869 | ||
82038750 UD |
870 | * sysdeps/generic/pt-longjmp.c: Moved to... |
871 | * sysdeps/pthread/pt-longjmp.c: ...here. New file. | |
872 | ||
e2982bf0 UD |
873 | 2004-01-29 Steven Munroe <sjmunroe@us.ibm.com> |
874 | ||
875 | * Makefile (libpthread-routines): Add pt-cleanup. | |
876 | * pt-longjmp.c: Removed. | |
877 | * pt-cleanup.c: Copied __pthread_cleanup_upto to here. New file. | |
878 | * sysdeps/generic/pt-longjmp.c: Copied longjmp to here. New file. | |
879 | * sysdeps/unix/sysv/linux/powerpc/Versions: New file. | |
880 | Version longjmp, siglongjmp for GLIBC_2.3.4. | |
881 | * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: New File. | |
882 | ||
3730d95c UD |
883 | 2004-02-13 Ulrich Drepper <drepper@redhat.com> |
884 | ||
219304ec UD |
885 | * sysdeps/pthread/pthread_cond_timedwait.c |
886 | (__pthread_cond_timedwait): Optimize. Drop internal lock earlier. | |
887 | Reuse code. Add __builtin_expects. | |
888 | ||
3730d95c UD |
889 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S |
890 | (__pthread_cond_timedwait): Get internal lock in case timeout has | |
891 | passed before the futex syscall. | |
892 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. | |
893 | ||
5673ccc1 UD |
894 | 2004-01-20 Ulrich Drepper <drepper@redhat.com> |
895 | ||
debddf64 UD |
896 | * allocatestack.c: Pretty printing. |
897 | ||
5673ccc1 UD |
898 | * sysdeps/pthread/createthread.c (create_thread): Don't add |
899 | CLONE_DETACHED bit if it is not necessary. | |
900 | ||
6bae8725 UD |
901 | 2004-01-16 Ulrich Drepper <drepper@redhat.com> |
902 | ||
903 | * pthread_getattr_np.c: Include ldsodefs.h. | |
904 | ||
ff151400 RH |
905 | 2004-01-16 Richard Henderson <rth@redhat.com> |
906 | ||
6bae8725 UD |
907 | * allocatestack.c: Don't declare __libc_stack_end. |
908 | * init.c (__pthread_initialize_minimal_internal): Likewise. | |
909 | * pthread_getattr_np.c (pthread_getattr_np): Likewise. | |
ff151400 | 910 | |
ba683832 RH |
911 | 2004-01-15 Richard Henderson <rth@redhat.com> |
912 | ||
913 | * sysdeps/alpha/tls.h (tcbhead_t): Add private. | |
914 | (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE, | |
915 | TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV, | |
916 | GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64. | |
917 | (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove. | |
918 | (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify. | |
919 | (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise. | |
920 | * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64. | |
921 | ||
630d93a7 UD |
922 | 2004-01-14 Ulrich Drepper <drepper@redhat.com> |
923 | ||
219304ec | 924 | * init.c (pthread_functions): Make array const. |
630d93a7 | 925 | |
d1fc817e UD |
926 | 2004-01-13 Ulrich Drepper <drepper@redhat.com> |
927 | ||
928 | * allocatestack.c (__make_stacks_executable): Change interface. | |
929 | Check parameters. Pass parameter on to libc counterpart. | |
930 | * pthreadP.h: Change declaration. | |
931 | ||
dc927809 RH |
932 | 2004-01-13 Richard Henderson <rth@redhat.com> |
933 | ||
10677727 UD |
934 | * pthread_attr_setstack.c (__old_pthread_attr_setstack): Use |
935 | prototype form. | |
936 | * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): | |
937 | Likewise. | |
938 | ||
d1fc817e UD |
939 | * sysdeps/alpha/Makefile: New file. |
940 | * sysdeps/alpha/tcb-offsets.sym: New file. | |
941 | * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P): | |
942 | Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version. | |
dc927809 | 943 | |
d1fc817e UD |
944 | * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based |
945 | on powerpc version. | |
dc927809 | 946 | |
249a3d0c UD |
947 | 2004-01-08 Jakub Jelinek <jakub@redhat.com> |
948 | ||
949 | * Makefile (tests): Add tst-backtrace1. | |
950 | * tst-backtrace1.c: New test. | |
951 | ||
763c0490 RM |
952 | 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com> |
953 | ||
954 | * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread | |
955 | register as second parameter to the REGISTER macro. | |
956 | * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise. | |
957 | * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise. | |
958 | * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise. | |
959 | * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise. | |
960 | * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size | |
961 | of thread register as second parameter to REGISTER macro in 64 case. | |
962 | ||
c7baafd5 UD |
963 | 2004-01-03 Ulrich Drepper <drepper@redhat.com> |
964 | ||
965 | * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed. | |
966 | (CFLAGS-getpid.o): Defined. | |
967 | (CFLAGS-getpid.os): Defined. | |
968 | ||
25ac0258 UD |
969 | 2003-12-31 Ulrich Drepper <drepper@redhat.com> |
970 | ||
971 | * pthread_getattr_np.c (pthread_getattr_np): Make sure stack info | |
972 | returned for main thread does not overlap with any other VMA. | |
973 | Patch by Jakub Jelinek. | |
974 | ||
795985e4 UD |
975 | 2003-12-29 Jakub Jelinek <jakub@redhat.com> |
976 | ||
977 | * tst-raise1.c: Include stdio.h. | |
978 | ||
cb5b9388 UD |
979 | 2003-12-23 Jakub Jelinek <jakub@redhat.com> |
980 | ||
981 | * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid | |
982 | setting with __ASSUME_TGKILL || defined __NR_tgkill. | |
983 | If pid is 0, set it to selftid. | |
984 | * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline. | |
985 | Don't set self->pid but self->tid. If self->pid == 0 and self->tid | |
986 | != 0, return self->tid without doing a syscall. | |
987 | * descr.h (struct pthread): Move pid field after tid. | |
988 | ||
989 | * Makefile (tests): Add tst-raise1. | |
990 | * tst-raise1.c: New file. | |
991 | ||
432aaf5b RM |
992 | 2003-12-23 Roland McGrath <roland@redhat.com> |
993 | ||
994 | * tst-oddstacklimit.c: New file. | |
995 | * Makefile (tests): Add it. | |
996 | (tst-oddstacklimit-ENV): New variable. | |
997 | ||
998 | * init.c (__pthread_initialize_minimal_internal): Round stack rlimit | |
999 | value up to page size for __default_stacksize. | |
1000 | ||
33ebea17 UD |
1001 | 2003-12-21 Ulrich Drepper <drepper@redhat.com> |
1002 | ||
1003 | * Makefile (tests): Add tst-eintr5. | |
1004 | * tst-eintr5.c: New file. | |
1005 | ||
1006 | * eintr.c (eintr_source): Prevent sending signal to self. | |
1007 | ||
1008 | * tst-eintr2.c (tf1): Improve error message. | |
1009 | ||
bbe35eb5 UD |
1010 | 2003-12-20 Ulrich Drepper <drepper@redhat.com> |
1011 | ||
1012 | * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define. | |
1013 | * sysdeps/unix/sysv/linux/getpid.c: New file. | |
c0ecb80a UD |
1014 | * pthread_cancel.c: Add comment explaining use of PID field. |
1015 | * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise. | |
1016 | * pthread_getattr_np.c: Use abs() when comparing PID and TID fields. | |
1017 | * sysdeps/unix/sysv/linux/fork.c: Negate PID field of parent | |
1018 | temporarily to signal the field must not be relied on and updated | |
1019 | by getpid(). | |
1020 | * sysdeps/unix/sysv/linux/pt-raise.c: Handle case where PID is | |
1021 | temporarily negative. | |
1022 | * sysdeps/unix/sysv/linux/raise.c: Likewise. | |
bbe35eb5 | 1023 | |
4efdd8d3 UD |
1024 | 2003-12-19 Ulrich Drepper <drepper@redhat.com> |
1025 | ||
1026 | * eintr.c (setup_eintr): Add new parameter. Pass to thread function. | |
1027 | (eintr_source): If ARG != NULL, use pthread_kill. | |
1028 | * tst-eintr1.c: Adjust for this change. | |
1029 | * tst-eintr2.c: Likewise. | |
1030 | * Makefile (tests): Add tst-eintr3 and tst-eintr4. | |
1031 | * tst-eintr3.c: New file. | |
1032 | * tst-eintr4.c: New file. | |
1033 | ||
1034 | 2003-12-19 Jakub Jelinek <jakub@redhat.com> | |
1035 | ||
1036 | * libc-cancellation.c (__libc_enable_asynccancel): Don't cancel | |
1037 | if CANCELSTATE_BITMASK is set. | |
1038 | * sysdeps/pthread/librt-cancellation.c (__librt_enable_asynccancel): | |
1039 | Likewise. | |
1040 | ||
1041 | * Makefile (tests): Add tst-cancel22 and tst-cancel23. | |
1042 | (tests-reverse): Add tst-cancel23. | |
1043 | * tst-cancel22.c: New test. | |
1044 | * tst-cancel23.c: New test. | |
1045 | ||
675620f7 UD |
1046 | 2003-12-18 Ulrich Drepper <drepper@redhat.com> |
1047 | ||
1048 | * tst-eintr1.c: Better error messages. | |
1049 | ||
1050 | * Makefile (tests): Add tst-eintr2. | |
1051 | * tst-eintr2.c: New file. | |
1052 | ||
1053 | 2003-12-18 Jakub Jelinek <jakub@redhat.com> | |
1054 | ||
1055 | * Makefile (tests): Add tst-cancel21 and tst-cancelx21. | |
1056 | (CFLAGS-tst-cancelx21.c): Set. | |
1057 | * tst-cancel21.c: New test. | |
1058 | * tst-cancelx21.c: New test. | |
1059 | ||
1060 | * unwind.c (FRAME_LEFT): Add adj argument. Subtract it from each | |
1061 | comparison operand. | |
1062 | (unwind_stop): Use _JMPBUF_CFA_UNWINDS_ADJ macro instead of | |
1063 | _JMPBUF_CFA_UNWINDS. Adjust FRAME_LEFT invocations. | |
1064 | * pt-longjmp.c: Include jmpbuf-unwind.h. | |
1065 | (__pthread_cleanup_upto): Use _JMPBUF_UNWINDS_ADJ macro instead of | |
1066 | _JMPBUF_UNWINDS. Adjust compared pointers. | |
1067 | * init.c (__pthread_initialize_minimal_internal): Initialize | |
1068 | pd->stackblock_size. | |
1069 | * sysdeps/pthread/jmpbuf-unwind.h: Removed. | |
1070 | * sysdeps/alpha/jmpbuf-unwind.h: New file. | |
1071 | * sysdeps/i386/jmpbuf-unwind.h: New file. | |
1072 | * sysdeps/powerpc/jmpbuf-unwind.h: New file. | |
1073 | * sysdeps/s390/jmpbuf-unwind.h: New file. | |
1074 | * sysdeps/sh/jmpbuf-unwind.h: New file. | |
1075 | * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file. | |
1076 | * sysdeps/x86_64/jmpbuf-unwind.h: New file. | |
2e5e031d | 1077 | * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Include stdint.h. |
675620f7 UD |
1078 | (_JMPBUF_CFA_UNWINDS): Remove. |
1079 | (_JMPBUF_CFA_UNWINDS_ADJ, _JMPBUF_UNWINDS_ADJ): Define. | |
1080 | ||
1081 | 2003-12-12 Jakub Jelinek <jakub@redhat.com> | |
1082 | ||
1083 | * Makefile (tests): Add tst-cancel20 and tst-cancelx20. | |
1084 | (CFLAGS-tst-cancelx20.c): Set. | |
1085 | * tst-cancel20.c: New test. | |
1086 | * tst-cancelx20.c: New test. | |
1087 | ||
2d951ab6 UD |
1088 | 2003-12-17 Ulrich Drepper <drepper@redhat.com> |
1089 | ||
1090 | * init.c (__pthread_initialize_minimal_internal): Don't treat | |
1091 | architectures with separate register stack special here when | |
1092 | computing default stack size. | |
1093 | ||
f8a3a2e7 RM |
1094 | 2003-12-17 Roland McGrath <roland@redhat.com> |
1095 | ||
1096 | * Makefile (tst-cancelx7-ARGS): New variable. | |
1097 | Reportd by Greg Schafer <gschafer@zip.com.au>. | |
1098 | ||
e796f92f UD |
1099 | 2003-12-17 Jakub Jelinek <jakub@redhat.com> |
1100 | ||
1101 | * Makefile (tests): Add tst-stack3. Depend on $(objpfx)tst-stack3-mem. | |
1102 | (generated): Add tst-stack3.mtrace and tst-stack3-mem. | |
1103 | (tst-stack3-ENV): Set. | |
1104 | ($(objpfx)tst-stack3-mem): New. | |
1105 | * tst-stack3.c: New test. | |
1106 | ||
092eb73c UD |
1107 | 2003-12-10 David Mosberger <davidm@hpl.hp.com> |
1108 | ||
1109 | * sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init_EPILOG_BEGINS): | |
1110 | Add unwind directives. Drop unused .regstk directive. | |
1111 | (_fini_EPILOG_BEGINS): Add unwind directives. | |
1112 | ||
ff48874d UD |
1113 | 2003-12-11 Ulrich Drepper <drepper@redhat.com> |
1114 | ||
1115 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait): | |
1116 | Assume parameter is a pointer. | |
1117 | (lll_futex_wake): Likewise. | |
20945457 UD |
1118 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wait): |
1119 | Likewise. | |
1120 | (lll_futex_wake): Likewise. | |
ff48874d UD |
1121 | Reported by Boris Hu. |
1122 | * sysdeps/unix/sysv/linux/unregister-atfork.c | |
1123 | (__unregister_atfork): Pass pointer to refcntr to lll_futex_wait. | |
1124 | ||
1125 | * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Simplify a bit. | |
1126 | ||
1d9d0b80 UD |
1127 | 2003-12-10 Ulrich Drepper <drepper@redhat.com> |
1128 | ||
1129 | * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define. | |
1130 | * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call | |
1131 | __rtld_lock_initialize for ld.so lock. | |
1132 | Patch in part by Adam Li <adam.li@intel.com>. | |
1133 | ||
c776b3d7 UD |
1134 | 2003-12-02 David Mosberger <davidm@hpl.hp.com> |
1135 | ||
1136 | * Makefile (link-libc-static): Remove -lgcc_eh---it's already mentioned | |
1137 | in $(gnulib). Also, remove stale comment. | |
1138 | ||
1139 | 2003-11-12 David Mosberger <davidm@hpl.hp.com> | |
1140 | ||
1141 | * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Take | |
1142 | advantage of new syscall stub and optimize accordingly. | |
1143 | ||
1144 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__NR_futex): Rename | |
1145 | from SYS_futex, to match expectations of | |
1146 | sysdep.h:DO_INLINE_SYSCALL. | |
1147 | (lll_futex_clobbers): Remove. | |
1148 | (lll_futex_timed_wait): Rewrite in terms of DO_INLINE_SYSCALL. | |
1149 | (lll_futex_wake): Likewise. | |
1150 | (lll_futex_requeue): Likewise. | |
1151 | (__lll_mutex_trylock): Rewrite to a macro, so we can include this | |
1152 | file before DO_INLINE_SYSCALL is defined (proposed by Jakub | |
1153 | Jelinek). | |
1154 | (__lll_mutex_lock): Likewise. | |
1155 | (__lll_mutex_cond_lock): Likewise. | |
1156 | (__lll_mutex_timed_lock): Likewise. | |
1157 | (__lll_mutex_unlock): Likewise. | |
1158 | (__lll_mutex_unlock_force): Likewise. | |
1159 | ||
1160 | * sysdeps/ia64/tls.h: Move declaration of __thread_self up so it | |
1161 | comes before the include of <sysdep.h>. | |
1162 | (THREAD_SELF_SYSINFO): New macro. | |
1163 | (THREAD_SYSINFO): Likewise. | |
1164 | (INIT_SYSINFO): New macro. | |
1165 | (TLS_INIT_TP): Call INIT_SYSINFO. | |
1166 | ||
1167 | * sysdeps/ia64/tcb-offsets.sym: Add SYSINFO_OFFSET. | |
1168 | ||
1169 | * sysdeps/pthread/createthread.c (create_thread): Use | |
1170 | THREAD_SELF_SYSINFO and THREAD_SYSINFO instead of open code. | |
1171 | * allocatestack.c (allocate_stack): Use THREAD_SYSINFO and | |
1172 | THREAD_SELF_SYSINFO instead of open code. | |
1173 | * sysdeps/i386/tls.h (THREAD_SELF_SYSINFO): New macro. | |
1174 | (THREAD_SYSINFO): Likewise. | |
1175 | ||
1176 | * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: New file. | |
1177 | ||
1178 | * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Work around gas problem. | |
1179 | ||
57d20ee7 UD |
1180 | 2003-12-06 Ulrich Drepper <drepper@redhat.com> |
1181 | ||
1182 | * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Use .init_array | |
1183 | instead of .init. Patch by David Mosberger. | |
1184 | ||
67aeab2a AJ |
1185 | 2003-11-30 Thorsten Kukuk <kukuk@suse.de> |
1186 | ||
1187 | * sysdeps/pthread/configure.in: Remove broken declaration in C | |
1188 | cleanup handling check. | |
1189 | ||
8ca203e6 AJ |
1190 | 2003-11-30 Andreas Jaeger <aj@suse.de> |
1191 | ||
1192 | * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time). | |
1193 | * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s): | |
1194 | Likewise. | |
1195 | ||
46bf9de7 UD |
1196 | 2003-11-27 Jakub Jelinek <jakub@redhat.com> |
1197 | ||
1198 | * sysdeps/unix/sysv/linux/internaltypes.h (ATTR_FLAG_OLDATTR): Define. | |
1199 | * pthread_attr_destroy.c: Include shlib-compat.h. | |
1200 | (__pthread_attr_destroy): Return immediately if ATTR_FLAG_OLDATTR | |
1201 | is set in iattr->flags. | |
1202 | * pthread_attr_init.c (__pthread_attr_init_2_0): Set ATTR_FLAG_OLDATTR. | |
1203 | ||
1d9b73ab UD |
1204 | 2003-11-21 Jakub Jelinek <jakub@redhat.com> |
1205 | ||
1206 | * Makefile (distribute): Add tst-cleanup4aux.c. | |
1207 | ||
1208 | * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c | |
1209 | include. | |
1210 | ||
53f9084e UD |
1211 | 2003-11-21 Ulrich Drepper <drepper@redhat.com> |
1212 | ||
1d9b73ab UD |
1213 | * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use |
1214 | pthread_cond_signal. | |
1215 | ||
e42a990e UD |
1216 | * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Don't |
1217 | store mutex address if the current value is ~0l. | |
1218 | * sysdeps/pthread/pthread_cond_timedwait.c | |
1219 | (__pthread_cond_timedwait): Likewise. | |
1220 | * sysdeps/pthread/pthread_cond_broadcast.c | |
1221 | (__pthread_cond_broadcast): Don't use requeue for pshared | |
1222 | condvars. | |
1223 | ||
1224 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S | |
1225 | (__pthread_cond_wait): Don't store mutex address if the current | |
1226 | value is ~0l. | |
1227 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S | |
1228 | (__pthread_cond_timedwait): Likewise. | |
1229 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S | |
1230 | (__pthread_cond_broadcast): Don't use requeue for pshared | |
1231 | condvars. | |
1232 | ||
1233 | * pthread_cond_init.c (__pthread_cond_init): Initialize __mutex | |
1234 | element with ~0l for pshared condvars, with NULL otherwise. | |
1235 | ||
1236 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S | |
1237 | (__pthread_cond_wait): Don't store mutex address if the current | |
1238 | value is ~0l. | |
1239 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | |
1240 | (__pthread_cond_timedwait): Likewise. | |
1241 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S | |
1242 | (__pthread_cond_broadcast): Don't use requeue for pshared | |
1243 | condvars. | |
1244 | ||
bf68b236 | 1245 | * Makefile: Add rules to build and run tst-cond12 and tst-cond13. |
53f9084e | 1246 | * tst-cond12.c: New file. |
bf68b236 | 1247 | * tst-cond13.c: New file. |
53f9084e | 1248 | |
9780c971 UD |
1249 | 2003-11-17 Ulrich Drepper <drepper@redhat.com> |
1250 | ||
1251 | * sysdeps/pthread/configure.in: Make missing forced unwind support | |
1252 | fatal. | |
1253 | ||
74e12fbc UD |
1254 | 2003-11-11 Ulrich Drepper <drepper@redhat.com> |
1255 | ||
1256 | * pthreadP.h: Don't declare __pthread_unwind as weak inside libpthread. | |
1257 | ||
c685b2b0 UD |
1258 | 2003-11-06 Ulrich Drepper <drepper@redhat.com> |
1259 | ||
1260 | * Makefile: Add magic to clean up correctly. | |
1261 | ||
44e94149 UD |
1262 | 2003-11-05 Jakub Jelinek <jakub@redhat.com> |
1263 | ||
1264 | * unwind.c (FRAME_LEFT): Define. | |
1265 | (unwind_stop): Handle old style cleanups here. | |
1266 | (__pthread_unwind): Handle old style cleanups only if | |
1267 | !HAVE_FORCED_UNWIND. | |
1268 | * Makefile (tests): Add tst-cleanup4 and tst-cleanupx4. | |
1269 | (CFLAGS-tst-cleanupx4.c): Add -fexceptions. | |
1270 | ($(objpfx)tst-cleanup4): Depend on $(objpfx)tst-cleanup4aux.o. | |
1271 | ($(objpfx)tst-cleanupx4): Likewise. | |
1272 | * tst-cleanup4.c: New test. | |
1273 | * tst-cleanup4aux.c: New. | |
1274 | * tst-cleanupx4.c: New test. | |
1275 | ||
c28422b5 UD |
1276 | 2003-11-04 Ulrich Drepper <drepper@redhat.com> |
1277 | ||
1278 | * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of | |
1279 | lll_mutex_*lock macros to skip atomic operations on some archs. | |
1280 | ||
27176677 UD |
1281 | 2003-11-03 Ulrich Drepper <drepper@redhat.com> |
1282 | ||
1283 | * sysdeps/pthread/tst-timer.c (main): Initialize | |
1284 | sigev2.sigev_value as well. | |
1285 | ||
026395a2 RM |
1286 | 2003-10-15 Roland McGrath <roland@redhat.com> |
1287 | ||
1288 | * sysdeps/pthread/configure.in: Barf if visibility attribute support | |
1289 | is missing. | |
1290 | * sysdeps/pthread/configure: Regenerated. | |
1291 | ||
fa3cbe3d UD |
1292 | 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
1293 | ||
1294 | * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Completely revamp the | |
1295 | locking macros. No distinction between normal and mutex locking | |
1296 | anymore. | |
1297 | * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Rewrite mutex locking. | |
1298 | Merge bits from lowlevelmutex.S we still need. | |
1299 | * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Remove. | |
1300 | * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise. | |
1301 | * sysdeps/unix/sysv/linux/sh/not-cancel.h: New file. | |
1302 | * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Adjust for | |
1303 | new mutex implementation. | |
1304 | * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise. | |
1305 | * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise. | |
1306 | * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise. | |
1307 | * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise. | |
1308 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise. | |
1309 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise. | |
1310 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise. | |
1311 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise. | |
1312 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise. | |
1313 | * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Also defined | |
1314 | symbol for entry point to avoid cancellation. | |
1315 | ||
e700a908 UD |
1316 | 2003-10-07 Jakub Jelinek <jakub@redhat.com> |
1317 | ||
1318 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Backout 2003-10-02 | |
1319 | changes. | |
1320 | (SAVE_OLDTYPE_0): Fix a typo. | |
1321 | ||
c70a86b6 UD |
1322 | 2003-10-03 Ulrich Drepper <drepper@redhat.com> |
1323 | ||
1324 | * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): | |
1325 | Check __sigsetjmp return value. Reported by Daniel Jacobowitz. | |
1326 | ||
134abcb5 UD |
1327 | 2003-10-02 Ulrich Drepper <drepper@redhat.com> |
1328 | ||
1329 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (DOCARGS_1): Use | |
1330 | correct offset. | |
1331 | ||
b77ca0e8 UD |
1332 | 2003-10-02 Jakub Jelinek <jakub@redhat.com> |
1333 | ||
1334 | * Makefile (tests): Add tst-cancel19. | |
1335 | * tst-cancel19.c: New test. | |
1336 | ||
4d961dc7 UD |
1337 | 2003-10-02 Ulrich Drepper <drepper@redhat.com> |
1338 | ||
1339 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix saving and | |
1340 | restoring of the old cancellation type. | |
1341 | ||
1d5b20ad | 1342 | 2003-09-30 Jakub Jelinek <jakub@redhat.com> |
94ae6d75 | 1343 | |
1d5b20ad UD |
1344 | * sysdeps/pthread/malloc-machine.h: Remove misleading comment. |
1345 | ||
4106a403 RM |
1346 | 2003-09-27 Wolfram Gloger <wg@malloc.de> |
1347 | ||
4d961dc7 | 1348 | * sysdeps/pthread/malloc-machine.h: New file |
94ae6d75 | 1349 | |
fca9d8e4 RM |
1350 | 2003-09-24 Roland McGrath <roland@redhat.com> |
1351 | ||
1352 | * allocatestack.c (__make_stacks_executable): Don't ignore return | |
1353 | value from _dl_make_stack_executable. | |
1354 | ||
c9c60884 UD |
1355 | 2003-09-24 Ulrich Drepper <drepper@redhat.com> |
1356 | ||
69c9fa04 UD |
1357 | * allocatestack.c (__make_stacks_executable): Also change |
1358 | permission of the currently unused stacks. | |
1359 | ||
279f1143 UD |
1360 | * allocatestack.c (change_stack_perm): Split out from |
1361 | __make_stacks_executable. | |
1362 | (allocate_stack): If the required permission changed between the time | |
1363 | we started preparing the stack and queueing it, change the permission. | |
1364 | (__make_stacks_executable): Call change_stack_perm. | |
1365 | ||
c9c60884 UD |
1366 | * Makefile: Build tst-execstack-mod locally. |
1367 | * tst-execstack-mod.c: New file. | |
1368 | ||
54ee14b3 UD |
1369 | 2003-09-23 Jakub Jelinek <jakub@redhat.com> |
1370 | ||
1371 | * Makefile (tests): Only add tst-execstack if have-z-execstack is yes. | |
1372 | ||
1373 | 2003-09-23 Roland McGrath <roland@redhat.com> | |
1374 | ||
1375 | * tst-execstack.c: New file. | |
1376 | * Makefile (tests): Add it. | |
1377 | ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets. | |
1378 | (LDFLAGS-tst-execstack): New variable. | |
1379 | ||
1380 | * allocatestack.c (allocate_stack): Use GL(dl_stack_flags) to decide | |
1381 | whether to use PROT_EXEC for stack mmap. | |
1382 | (__make_stacks_executable): New function. | |
1383 | * pthreadP.h: Declare it. | |
1384 | * init.c (__pthread_initialize_minimal_internal): Set | |
1385 | GL(dl_make_stack_executable_hook) to that. | |
1386 | ||
365b1602 UD |
1387 | 2003-09-22 Ulrich Drepper <drepper@redhat.com> |
1388 | ||
1389 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Adjust for latest | |
1390 | recommendation from AMD re avoidance of lock prefix. | |
1391 | ||
39358e8b UD |
1392 | 2003-09-22 Jakub Jelinek <jakub@redhat.com> |
1393 | ||
1394 | * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Use | |
1395 | lll_futex_timed_wait instead of lll_futex_wait. | |
1396 | * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Removed. | |
1397 | * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Removed. | |
1398 | * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: Removed. | |
1399 | * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: Removed. | |
1400 | * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Removed. | |
1401 | * sysdeps/unix/sysv/linux/s390/sem_wait.c: Removed. | |
1402 | * sysdeps/unix/sysv/linux/s390/sem_post.c: Removed. | |
1403 | * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Removed. | |
1404 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include atomic.h. | |
1405 | Completely revamp the locking macros. No distinction between | |
1406 | normal and mutex locking anymore. | |
1407 | * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise. | |
1408 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock_wait, | |
1409 | __lll_lock_timedwait): Fix prototypes. | |
1410 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_lock_wait, | |
1411 | __lll_lock_timedwait): Likewise. | |
1412 | (lll_mutex_lock, lll_mutex_cond_lock): Use _val instead of _bool | |
1413 | macros, add __builtin_expect. | |
1414 | (lll_mutex_timedlock): Likewise. Fix return value. | |
1415 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Removed. | |
1416 | * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: Removed. | |
1417 | * sysdeps/unix/sysv/linux/i386/i586/lowlevelmutex.S: Removed. | |
1418 | * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: Removed. | |
1419 | * sysdeps/unix/sysv/linux/i386/i686/lowlevelmutex.S: Removed. | |
1420 | * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: Removed. | |
1421 | * sysdeps/unix/sysv/linux/lowlevelmutex.c: Removed. | |
1422 | * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: Removed. | |
1423 | ||
9d08fbbb UD |
1424 | 2003-09-22 Ulrich Drepper <drepper@redhat.com> |
1425 | ||
c0df57e1 UD |
1426 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S |
1427 | (__lll_mutex_lock_wait): Minor optimization to avoid one atomic | |
1428 | operation if possible. | |
1429 | ||
9d08fbbb UD |
1430 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks |
1431 | like jumping over the lock prefix. | |
1432 | ||
71451de2 UD |
1433 | 2003-09-21 Ulrich Drepper <drepper@redhat.com> |
1434 | ||
1435 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the | |
1436 | locking macros. No distinction between normal and mutex locking | |
1437 | anymore. | |
3a226d33 | 1438 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise. |
bc1989aa UD |
1439 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise. |
1440 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise. | |
71451de2 UD |
1441 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Rewrite mutex |
1442 | locking. Merge bits from lowlevelmutex.S we still need. | |
3a226d33 | 1443 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise. |
bc1989aa | 1444 | * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise. |
71451de2 | 1445 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Removed. |
3a226d33 | 1446 | * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Removed. |
71451de2 UD |
1447 | * Makefile (routines): Remove libc-lowlevelmutex. |
1448 | (libpthread-rountines): Remove lowlevelmutex. | |
3a226d33 UD |
1449 | * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Adjust |
1450 | for new mutex implementation. | |
1451 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise. | |
1452 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
1453 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. | |
1454 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise. | |
1455 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: | |
1456 | Likewise. | |
1457 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: | |
1458 | Likewise. | |
1459 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise. | |
1460 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise. | |
1461 | * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise | |
1462 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise. | |
1463 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. | |
1464 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. | |
1465 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise. | |
1466 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: | |
1467 | Likewise. | |
1468 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: | |
1469 | Likewise. | |
1470 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise. | |
1471 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise. | |
1472 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise. | |
1473 | Don't use requeue. | |
1474 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise. | |
bc1989aa | 1475 | * sysdeps/pthread/pthread_cond_signal.c: Don't use requeue. |
71451de2 | 1476 | |
8f31c0ef UD |
1477 | 2003-09-20 Ulrich Drepper <drepper@redhat.com> |
1478 | ||
56a4aa98 UD |
1479 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't match memory |
1480 | in parameters of asm with output parameters. | |
1481 | ||
8f31c0ef UD |
1482 | * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change |
1483 | type of DECR parameter to int. | |
1484 | * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt. | |
1485 | ||
8b8074da UD |
1486 | 2003-09-18 Jakub Jelinek <jakub@redhat.com> |
1487 | ||
1488 | * tst-attr3.c (tf, do_test): Print stack start/end/size and | |
1489 | guardsize for each thread. | |
1490 | ||
65af7e61 UD |
1491 | 2003-09-17 Jakub Jelinek <jakub@redhat.com> |
1492 | ||
9ba96eda UD |
1493 | * sysdeps/pthread/pthread.h (pthread_getattr_np): Clarify usage. |
1494 | * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c | |
1495 | (pthread_attr_setaffinity_np): Handle cpuset == NULL. | |
1496 | ||
06f6ca90 UD |
1497 | * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c |
1498 | (pthread_attr_getaffinity_np): Don't segfault if iattr->cpuset is | |
1499 | NULL. | |
1500 | * pthread_getattr_np.c: Set cpuset using pthread_getaffinity_np. | |
1501 | * pthreadP.h (pthread_getaffinity_np): Add hidden_proto. | |
1502 | * sysdeps/unix/sysv/linux/pthread_getaffinity.c | |
1503 | (pthread_getaffinity_np): Add hidden_def. | |
1504 | ||
1505 | * Makefile (tests): Add tst-attr3. | |
1506 | * tst-attr3.c: New test. | |
1507 | ||
65af7e61 UD |
1508 | * sysdeps/i386/Makefile (CFLAGS-tst-align.c): Remove. |
1509 | ||
3402852c UD |
1510 | 2003-09-15 Jakub Jelinek <jakub@redhat.com> |
1511 | ||
1512 | * sysdeps/i386/Makefile (CFLAGS-pthread_create.c, | |
1513 | CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4. | |
1514 | ||
a4db3439 UD |
1515 | 2003-09-17 Jakub Jelinek <jakub@redhat.com> |
1516 | ||
1517 | * Makefile (CFLAGS-tst-align.c): Add $(stack-align-test-flags). | |
1518 | * tst-align.c: Include tst-stack-align.h. | |
1519 | (tf, do_test): Use TEST_STACK_ALIGN macro. | |
1520 | ||
1521 | 2003-09-17 Ulrich Drepper <drepper@redhat.com> | |
1522 | ||
1523 | * pthread_attr_init.c (__pthread_attr_init_2_0): Remove unused | |
1524 | variable. | |
1525 | ||
92ce4676 UD |
1526 | 2003-09-16 Ulrich Drepper <drepper@redhat.com> |
1527 | ||
1528 | * pthread_getattr_np.c (pthread_getattr_np): Correctly fill in the | |
1529 | stack-related values for the initial thread. | |
1530 | ||
e07bb02a UD |
1531 | 2003-09-15 Jakub Jelinek <jakub@redhat.com> |
1532 | ||
1533 | * Makefile (CFLAGS-pthread_once.c): Add $(uses-callbacks). | |
1534 | ||
d087b5dc UD |
1535 | 2003-09-11 Ulrich Drepper <drepper@redhat.com> |
1536 | ||
1537 | * pthread_mutex_lock.c: Minor code rearrangements. | |
1538 | ||
7f08f55a RM |
1539 | 2003-09-05 Roland McGrath <roland@redhat.com> |
1540 | ||
1541 | * pthread_create.c (__pthread_pthread_sizeof_descr): Removed. | |
1542 | Instead, include ../nptl_db/db_info.c to do its magic. | |
1543 | * pthread_key_create.c (__pthread_pthread_keys_max): Removed. | |
1544 | (__pthread_pthread_key_2ndlevel_size): Likewise. | |
1545 | * sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro. | |
1546 | * sysdeps/i386/tls.h (DB_THREAD_SELF): New macro. | |
1547 | * sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro. | |
1548 | * sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro. | |
1549 | * sysdeps/s390/tls.h (DB_THREAD_SELF): New macro. | |
1550 | * sysdeps/sh/tls.h (DB_THREAD_SELF): New macro. | |
1551 | * sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro. | |
1552 | * sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro. | |
1553 | * sysdeps/alpha/td_ta_map_lwp2thr.c: File removed. | |
1554 | * sysdeps/generic/td_ta_map_lwp2thr.c: File removed. | |
1555 | * sysdeps/i386/td_ta_map_lwp2thr.c: File removed. | |
1556 | * sysdeps/ia64/td_ta_map_lwp2thr.c: File removed. | |
1557 | * sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed. | |
1558 | * sysdeps/s390/td_ta_map_lwp2thr.c: File removed. | |
1559 | * sysdeps/sh/td_ta_map_lwp2thr.c: File removed. | |
1560 | * sysdeps/sparc/td_ta_map_lwp2thr.c: File removed. | |
1561 | * sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed. | |
1562 | ||
806e4a4a UD |
1563 | 2003-09-08 Ulrich Drepper <drepper@redhat.com> |
1564 | ||
1565 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Change type | |
1566 | of pthread_t to be compatible with LT. | |
1567 | * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise. | |
1568 | * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise. | |
1569 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. | |
1570 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. | |
1571 | * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise. | |
1572 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. | |
1573 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise. | |
1574 | ||
17f83e56 UD |
1575 | 2003-09-04 Ulrich Drepper <drepper@redhat.com> |
1576 | ||
1577 | * sysdeps/unix/sysv/linux/i386/not-cancel.h (fcntl_not_cancel): Define. | |
1578 | ||
58e8ec84 UD |
1579 | 2003-09-04 Jakub Jelinek <jakub@redhat.com> |
1580 | ||
1581 | * unwind-forcedunwind.c: Move to... | |
1582 | * sysdeps/pthread/unwind-forcedunwind.c: ...here. | |
1583 | (pthread_cancel_init): Use ARCH_CANCEL_INIT if defined. | |
1584 | * sysdeps/pthread/jmpbuf-unwind.h: New file. | |
1585 | * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: New file. | |
1586 | * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: New file. | |
1587 | * unwind.c: Include jmpbuf-unwind.h. | |
1588 | (unwind_stop): Use _JMPBUF_CFA_UNWINDS macro. | |
1589 | ||
abf1cf21 JJ |
1590 | 2003-09-02 Jakub Jelinek <jakub@redhat.com> |
1591 | ||
4a244f0d UD |
1592 | * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file. |
1593 | * sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export | |
1594 | pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3. | |
1595 | * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file. | |
1596 | * sysdeps/unix/sysv/linux/alpha/Versions: New file. | |
1597 | * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file. | |
1598 | * sysdeps/unix/sysv/linux/sparc/Versions: New file. | |
1599 | * pthread_attr_setstack.c (__old_pthread_attr_setstack): New function. | |
1600 | (pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export | |
1601 | as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2. | |
1602 | * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New | |
1603 | function. | |
1604 | (pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export | |
1605 | as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1. | |
1606 | * Makefile (tests): Add tst-stack2. | |
1607 | * tst-stack2.c: New test. | |
1608 | * tst-stack1.c: Include limits.h and sys/param.h. | |
1609 | (do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN). | |
1610 | ||
e29ef647 UD |
1611 | * pthread_condattr_setpshared.c: Include errno.h. |
1612 | (pthread_condattr_setpshared): Return EINVAL if pshared | |
1613 | is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED. | |
1614 | ||
5777d565 UD |
1615 | * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also |
1616 | defined symbol for entry point to avoid cancellation. | |
1617 | * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): | |
1618 | Likewise. | |
1619 | * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO): | |
1620 | Likewise. | |
1621 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO): | |
1622 | Likewise. | |
1623 | * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h (PSEUDO): | |
1624 | Likewise. | |
1625 | * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO): | |
1626 | Likewise. | |
1627 | * sysdeps/unix/sysv/linux/i386/not-cancel.h (__open_nocancel, | |
1628 | __close_nocancel, __read_nocancel, __write_nocancel, | |
1629 | __waitpid_nocancel): Add attribute_hidden. If not in libc.so, | |
1630 | libpthread.so or librt.so, define to corresponding function | |
1631 | without _nocancel suffix. | |
1632 | * sysdeps/unix/sysv/linux/s390/not-cancel.h: New file. | |
1633 | * sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file. | |
1634 | * sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file. | |
1635 | ||
abf1cf21 JJ |
1636 | * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo. |
1637 | ||
8348dcc8 UD |
1638 | 2003-09-02 Ulrich Drepper <drepper@redhat.com> |
1639 | ||
1640 | * sysdeps/unix/sysv/linux/i386/not-cancel.h: New file. | |
1e03e0af | 1641 | * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: New file. |
8348dcc8 UD |
1642 | |
1643 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Make sure the code | |
1644 | in subsections has a symbol associated with it. | |
1645 | ||
1646 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Also | |
1647 | defined symbol for entry point to avoid cancellation. | |
1648 | * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Likewise. | |
1649 | ||
c874a32e UD |
1650 | 2003-09-01 Jakub Jelinek <jakub@redhat.com> |
1651 | ||
1652 | * Makefile (tests): Add tst-tls5. | |
1653 | (module-names): Add tst-tls5mod{,a,b,c,d,e,f}. | |
1654 | ($(objpfx)tst-tls5mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes. | |
1655 | ($(objpfx)tst-tls5): New. | |
1656 | ($(objpfx)tst-tls6.out): Likewise. | |
1657 | (tests): Depend on $(objpfx)tst-tls6.out. | |
1658 | * tst-tls3.c: Include stdint.h and pthreaddef.h. | |
1659 | (do_test): Check pthread_self () return value alignment. | |
1660 | * tst-tls3mod.c: Include stdint.h and pthreaddef.h. | |
1661 | (tf): Check pthread_self () return value alignment. | |
1662 | * tst-tls5.c: New test. | |
1663 | * tst-tls5.h: New. | |
1664 | * tst-tls5mod.c: New. | |
1665 | * tst-tls5moda.c: New. | |
1666 | * tst-tls5modb.c: New. | |
1667 | * tst-tls5modc.c: New. | |
1668 | * tst-tls5modd.c: New. | |
1669 | * tst-tls5mode.c: New. | |
1670 | * tst-tls5modf.c: New. | |
1671 | * tst-tls6.sh: New test. | |
1672 | ||
c503d3dc UD |
1673 | * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Add |
1674 | ptr___pthread_cond_timedwait and ptr___pthread_cond_timedwait_2_0. | |
1675 | * init.c (pthread_functions): Initialize them. | |
1676 | * forward.c (pthread_cond_timedwait@GLIBC_2.0, | |
1677 | pthread_cond_timedwait@@GLIBC_2.3.2): New forwards. | |
1678 | * Versions (libc): Export pthread_cond_timedwait@GLIBC_2.0, | |
1679 | pthread_cond_timedwait@@GLIBC_2.3.2. | |
1680 | ||
48614753 JJ |
1681 | 2003-09-01 Jakub Jelinek <jakub@redhat.com> |
1682 | ||
56a1b877 JJ |
1683 | * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file. |
1684 | * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file. | |
1685 | * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file. | |
1686 | * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file. | |
1687 | * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file. | |
1688 | * sysdeps/unix/sysv/linux/alpha/Versions: New file. | |
1689 | ||
1690 | * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file. | |
1691 | ||
48614753 JJ |
1692 | * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define |
1693 | _POSIX_THREAD_PRIORITY_SCHEDULING. | |
1694 | * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise. | |
1695 | ||
28c97261 UD |
1696 | 2003-08-31 Ulrich Drepper <drepper@redhat.com> |
1697 | ||
eef80cf8 UD |
1698 | * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock): Avoid |
1699 | nested function, use static inline function from libio.h. | |
1700 | Code by Richard Henderson. | |
1701 | ||
28c97261 UD |
1702 | * sysdeps/pthread/bits/libc-lock.h: Mark pthread_setcancelstate as |
1703 | weak. | |
1704 | ||
cd2fbe58 UD |
1705 | 2003-08-30 Jakub Jelinek <jakub@redhat.com> |
1706 | ||
1707 | * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file. | |
1708 | * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: New file. | |
1709 | * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: New file. | |
1710 | * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: New file. | |
1711 | * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: New file. | |
1712 | * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: New file. | |
1713 | * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: New file. | |
1714 | * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: New file. | |
1715 | * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: New file. | |
1716 | * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: New file. | |
1717 | * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: New file. | |
1718 | * sysdeps/unix/sysv/linux/sparc/pthread_once.c: New file. | |
1719 | * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file. | |
1720 | * sysdeps/unix/sysv/linux/sparc/fork.c: New file. | |
1721 | * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: New file. | |
1722 | * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: New file. | |
1723 | * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: New file. | |
1724 | * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: New file. | |
1725 | * sysdeps/sparc/sparc32/pthread_spin_lock.c: New file. | |
1726 | * sysdeps/sparc/sparc32/pthread_spin_trylock.c: New file. | |
1727 | * sysdeps/sparc/sparc32/pthreaddef.h: New file. | |
1728 | * sysdeps/sparc/sparc64/pthread_spin_lock.c: New file. | |
1729 | * sysdeps/sparc/sparc64/pthread_spin_trylock.c: New file. | |
1730 | * sysdeps/sparc/sparc64/pthread_spin_unlock.c: New file. | |
1731 | * sysdeps/sparc/sparc64/pthreaddef.h: New file. | |
1732 | * sysdeps/sparc/tls.h: New file. | |
1733 | * sysdeps/sparc/tcb-offsets.sym: New file. | |
1734 | * sysdeps/sparc/Makefile: New file. | |
1735 | * sysdeps/sparc/td_ta_map_lwp2thr.c: New file. | |
1736 | * init.c [__sparc__] (__NR_set_tid_address): Define. | |
1737 | ||
feda52c0 UD |
1738 | 2003-08-29 Jakub Jelinek <jakub@redhat.com> |
1739 | ||
1740 | * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock, | |
1741 | _IO_release_lock): Define. | |
1742 | ||
7c868816 JJ |
1743 | 2003-08-29 Jakub Jelinek <jakuB@redhat.com> |
1744 | ||
0261d33f | 1745 | * tst-cancel4.c (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add |
7c868816 JJ |
1746 | sigemptyset before sigaddset. Reported by jreiser@BitWagon.com. |
1747 | ||
68b9e1ae UD |
1748 | 2003-08-27 Ulrich Drepper <drepper@redhat.com> |
1749 | ||
1750 | * sysdeps/pthread/pthread.h (pthread_exit): Remove __THROW. | |
1751 | (__pthread_cleanup_class): Add missing return types of member | |
1752 | functions. | |
1753 | ||
13b3edfc UD |
1754 | 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com> |
1755 | ||
1756 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h | |
1757 | (lll_mutex_unlock_force): Add memory barrier between store and futex | |
1758 | syscall. | |
1759 | ||
bb606fbe UD |
1760 | 2003-08-25 Ulrich Drepper <drepper@redhat.com> |
1761 | ||
1762 | * tst-cancel4.c (do_test): Also unlink tempfname and remove | |
1763 | tempmsg in first loop. | |
1764 | ||
ee4e5a3d UD |
1765 | 2003-08-18 Ulrich Drepper <drepper@redhat.com> |
1766 | ||
1767 | * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define | |
1768 | _POSIX_THREAD_PRIORITY_SCHEDULING. | |
1769 | * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise. | |
1770 | ||
334fcf2a UD |
1771 | 2003-08-07 Jakub Jelinek <jakub@redhat.com> |
1772 | ||
1773 | * sysdeps/pthread/bits/libc-lock.h [_LIBC && SHARED] | |
1774 | (__rtld_lock_default_lock_recursive, | |
1775 | __rtld_lock_default_unlock_recursive): Define. | |
1776 | [_LIBC && SHARED] (__rtld_lock_lock_recursive, | |
1777 | __rtld_lock_unlock_recursive): Define using | |
1778 | GL(_dl_rtld_*lock_recursive). | |
1779 | * init.c (__pthread_initialize_minimal_internal): Initialize | |
1780 | _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive. | |
1781 | Lock GL(_dl_load_lock) the same number of times as | |
1782 | GL(_dl_load_lock) using non-mt implementation was nested. | |
1783 | ||
1784 | * pthreadP.h (__pthread_cleanup_upto): Add hidden_proto. | |
1785 | * pt-longjmp.c (__pthread_cleanup_upto): Add hidden_def. | |
1786 | ||
a30fb2df UD |
1787 | 2003-08-06 Jakub Jelinek <jakub@redhat.com> |
1788 | ||
1789 | * tst-cancel17.c (do_test): Make len2 maximum of page size and | |
1790 | PIPE_BUF. | |
1791 | ||
ce0d30a0 JJ |
1792 | 2003-08-07 Jakub Jelinek <jakub@redhat.com> |
1793 | ||
1794 | * pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset. | |
1795 | ||
9c988b83 UD |
1796 | 2003-08-03 Jakub Jelinek <jakub@redhat.com> |
1797 | ||
1798 | * sysdeps/pthread/createthread.c (do_clone): Move error handling | |
1799 | to first syscall error check. Move syscall error check for tkill | |
1800 | into __ASSUME_CLONE_STOPPED #ifdef. | |
1801 | ||
5c5252bd UD |
1802 | 2003-08-02 Ulrich Drepper <drepper@redhat.com> |
1803 | ||
f1205aa7 UD |
1804 | * sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED |
1805 | is not defined, do explicit synchronization. | |
1806 | (create_thread): Do not lock pd->lock here. If __ASSUME_CLONE_STOPPED | |
1807 | is not defined also unlock pd->lock for non-debugging case in case | |
1808 | it is necessary. | |
1809 | * pthread_create.c (start_thread): Always get and release pd->lock | |
1810 | if __ASSUME_CLONE_STOPPED is not defined. | |
1811 | (start_thread_debug): Removed. Adjust users. | |
1812 | * allocatestack.c (allocate_stack): Always initialize lock if | |
1813 | __ASSUME_CLONE_STOPPED is not defined. | |
1814 | * Makefile (tests): Add tst-sched1. | |
1815 | * tst-sched1.c: New file. | |
1816 | ||
5c5252bd UD |
1817 | * sysdeps/pthread/createthread.c (do_clone): Only use |
1818 | sched_setschduler and pass correct parameters. | |
1819 | ||
973d66e4 UD |
1820 | 2003-07-31 Jakub Jelinek <jakub@redhat.com> |
1821 | ||
1822 | * sysdeps/pthread/pthread.h (pthread_attr_setstackaddr, | |
1823 | pthread_attr_setstacksize): Change PTHREAD_STACK_SIZE to | |
1824 | PTHREAD_STACK_MIN in comments. | |
1825 | ||
d347a4ab UD |
1826 | 2003-07-31 Jakub Jelinek <jakub@redhat.com> |
1827 | ||
1828 | * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait): | |
1829 | Shut up warnings if INTERNAL_SYSCALL_ERROR_P does not use its first | |
1830 | argument. | |
1831 | * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise. | |
1832 | * pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise. | |
1833 | * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Include pthreaddef.h. | |
1834 | (__pthread_cleanup_upto): Fix prototype. | |
1835 | (_longjmp_unwind): Adjust caller. | |
1836 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_timedlock): | |
1837 | Change second argument to const struct pointer. | |
1838 | * tst-sem8.c (main): Remove unused s2 and s3 variables. | |
1839 | * tst-sem9.c (main): Likewise. | |
1840 | * unwind.c: Include string.h for strlen prototype. | |
1841 | ||
1b26e9a5 UD |
1842 | 2003-07-31 Ulrich Drepper <drepper@redhat.com> |
1843 | ||
1844 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | |
1845 | (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined. | |
1846 | * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: | |
1847 | Define HAVE_CMOV. | |
1848 | Patch by Nicholas Miell <nmiell@attbi.com>. | |
1849 | ||
adc12574 UD |
1850 | 2003-07-30 Jakub Jelinek <jakub@redhat.com> |
1851 | ||
1852 | * init.c (__pthread_initialize_minimal_internal): Initialize | |
1853 | GL(dl_init_static_tls). | |
1854 | * pthreadP.h (__pthread_init_static_tls): New prototype. | |
1855 | * allocatestack.c (init_one_static_tls, __pthread_init_static_tls): | |
1856 | New functions. | |
1857 | * Makefile (tests): Add tst-tls4. | |
1858 | (modules-names): Add tst-tls4moda and tst-tls4modb. | |
1859 | ($(objpfx)tst-tls4): Link against libdl and libpthread. | |
1860 | ($(objpfx)tst-tls4.out): Depend on tst-tls4moda.so and | |
1861 | tst-tls4modb.so. | |
1862 | * tst-tls4.c: New file. | |
1863 | * tst-tls4moda.c: New file. | |
1864 | * tst-tls4modb.c: New file. | |
1865 | ||
a7f6c66e RM |
1866 | 2003-06-19 Daniel Jacobowitz <drow@mvista.com> |
1867 | ||
1868 | * sysdeps/pthread/timer_create.c (timer_create): Call timer_delref | |
1869 | before __timer_dealloc. | |
1870 | * sysdeps/pthread/timer_routines.c (__timer_thread_find_matching): | |
1871 | Don't call list_unlink. | |
1872 | ||
172ce013 RM |
1873 | 2003-07-29 Roland McGrath <roland@redhat.com> |
1874 | ||
1875 | * Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules). | |
1876 | ||
7b787f85 UD |
1877 | 2003-07-25 Jakub Jelinek <jakub@redhat.com> |
1878 | ||
1879 | * tst-cancel17.c (do_test): Check if aio_cancel failed. | |
1880 | Don't reuse struct aiocb A if it failed. | |
1881 | Write fpathconf (fds[1], _PC_PIPE_BUF) + 2 bytes using aio_write, | |
1882 | not just one byte, as that does not block. | |
1883 | ||
0e9d6240 UD |
1884 | 2003-07-22 Jakub Jelinek <jakub@redhat.com> |
1885 | ||
9d79e037 UD |
1886 | * sysdeps/pthread/unwind-resume.c: New file. |
1887 | * sysdeps/pthread/Makefile (routines, shared-only-routines): Add | |
1888 | unwind-resume in csu subdir. | |
1889 | (CFLAGS-unwind-resume.c, CFLAGS-rt-unwind-resume.c): Compile with | |
1890 | exceptions. | |
1891 | (librt-sysdep_routines, librt-shared-only-routines): Add | |
1892 | rt-unwind-resume. | |
1893 | * sysdeps/pthread/rt-unwind-resume.c: New file. | |
1894 | * unwind-forcedunwind.c: New file. | |
1895 | * Makefile (libpthread-routines): Add unwind-forcedunwind. | |
1896 | (libpthread-shared-only-routines): Likewise. | |
1897 | (CFLAGS-unwind-forcedunwind.c): Compile with exceptions. | |
1898 | * pthreadP.h (pthread_cancel_init): New prototype. | |
1899 | * pthread_cancel.c (pthread_cancel): Call pthread_cancel_init. | |
1900 | ||
1901 | * sysdeps/pthread/createthread.c (do_thread, create_thread): Make | |
1902 | attr argument const struct pthread_attr *. | |
1903 | ||
0e9d6240 UD |
1904 | * res.c (__res_state): Return __resp. |
1905 | * descr.h: Include resolv.h. | |
1906 | (struct pthread): Add res field. | |
1907 | * pthread_create.c: Include resolv.h. | |
1908 | (start_thread): Initialize __resp. | |
1909 | * Makefile (tests): Add tst-_res1. | |
1910 | (module-names): Add tst-_res1mod1, tst-_res1mod2. | |
1911 | ($(objpfx)tst-_res1mod2.so): Depend on $(objpfx)tst-_res1mod1.so. | |
1912 | ($(objpfx)tst-_res1): Depend on $(objpfx)tst-_res1mod2.so and | |
1913 | libpthread. | |
1914 | * tst-_res1.c: New file. | |
1915 | * tst-_res1mod1.c: New file. | |
1916 | * tst-_res1mod2.c: New file. | |
1917 | ||
1a379ea0 UD |
1918 | 2003-07-21 Ulrich Drepper <drepper@redhat.com> |
1919 | ||
7e939b21 UD |
1920 | * sysdeps/pthread/createthread.c: Don't define CLONE_STOPPED. |
1921 | ||
1a379ea0 UD |
1922 | * Makefile: Define various *-no-z-defs variables for test DSOs |
1923 | which has undefined symbols. | |
1924 | ||
ca86a763 UD |
1925 | 2003-07-21 Steven Munroe <sjmunroe@us.ibm.com> |
1926 | ||
1927 | * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once): | |
1928 | Retry if the stwcx fails to store once_control. | |
1929 | ||
80f536db UD |
1930 | 2003-07-20 Ulrich Drepper <drepper@redhat.com> |
1931 | ||
1932 | * Makefile (libpthread-routines): Add pthread_attr_getaffinity and | |
1933 | pthread_attr_setaffinity. | |
1934 | * Versions [libpthread] (GLIBC_2.3.3): Likewise. | |
1935 | * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file. | |
1936 | * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file. | |
1937 | * pthread_attr_destroy.c: Free cpuset element if allocated. | |
1938 | * pthread_create.c: Pass iattr as additional parameter to | |
1939 | create_thread. | |
1940 | * sysdeps/pthread/createthread.c: If attribute is provided and | |
1941 | a new thread is created with affinity set or scheduling parameters, | |
1942 | start thread with CLONE_STOPPED. | |
1943 | * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and | |
1944 | pthread_attr_setaffinity. | |
1945 | * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add | |
1946 | cpuset element. | |
1947 | ||
73299943 UD |
1948 | 2003-07-15 Ulrich Drepper <drepper@redhat.com> |
1949 | ||
1950 | * tst-tcancel-wrappers.sh: lseek and llseek are not cancelation points. | |
1951 | ||
da35d15e UD |
1952 | 2003-07-14 Ulrich Drepper <drepper@redhat.com> |
1953 | ||
1954 | * sysdeps/pthread/configure.in: Require CFI directives also for | |
1955 | ppc and s390. | |
1956 | ||
75540d8a UD |
1957 | 2003-07-15 Jakub Jelinek <jakub@redhat.com> |
1958 | ||
1959 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO): | |
1960 | Add cfi directives. | |
1961 | ||
4a17085f UD |
1962 | 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
1963 | ||
1964 | * sysdeps/sh/tcb-offsets.sym: Add RESULT, TID, CANCELHANDLING and | |
1965 | CLEANUP_JMP_BUF. | |
1966 | * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use more | |
1967 | registers as variables. Call __pthread_mutex_unlock_usercnt. | |
1968 | * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise. | |
1969 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Store TID | |
1970 | not self pointer in __writer. Compare with TID to determine | |
1971 | deadlocks. | |
1972 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise. | |
1973 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: | |
1974 | Likewise. | |
1975 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: | |
1976 | Likewise. | |
1977 | * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add cancellation support. | |
1978 | * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise. | |
1979 | * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Define all the nice | |
1980 | macros also when compiling librt. | |
1981 | ||
6080ecdf UD |
1982 | 2003-07-11 Jakub Jelinek <jakub@redhat.com> |
1983 | ||
1984 | * Makefile (CFLAGS-pthread_once.c): Add -fexceptions | |
1985 | -fasynchronous-unwind-tables. | |
1986 | * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h | |
1987 | (PSEUDO): Add cfi directives. | |
1988 | * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): | |
1989 | Likewise. | |
1990 | * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): | |
1991 | Likewise. | |
1992 | ||
da0c02ee UD |
1993 | 2003-07-08 Jakub Jelinek <jakub@redhat.com> |
1994 | ||
1995 | * pthreadP.h (__pthread_unwind_next, __pthread_register_cancel, | |
1996 | __pthread_unregister_cancel): Add prototypes and hidden_proto. | |
1997 | * unwind.c (__pthread_unwind_next): Add hidden_def. | |
1998 | * cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel): | |
1999 | Likewise. | |
2000 | * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait): | |
2001 | Use HIDDEN_JUMPTARGET to jump to __pthread_unwind. | |
2002 | * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait): | |
2003 | Likewise. | |
2004 | * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise. | |
2005 | * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait): | |
2006 | Likewise. | |
2007 | * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use | |
2008 | HIDDEN_JUMPTARGET to call __pthread_register_cancel, | |
2009 | __pthread_unregister_cancel and __pthread_unwind_next. | |
2010 | ||
57a5ea02 UD |
2011 | 2003-07-04 Jakub Jelinek <jakub@redhat.com> |
2012 | ||
2013 | * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Use | |
2014 | different symbol for the cancellation syscall wrapper and | |
2015 | non-cancellation syscall wrapper. | |
2016 | (PSEUDO_END): Define. | |
2017 | ||
d810b358 UD |
2018 | 2003-07-05 Richard Henderson <rth@redhat.com> |
2019 | ||
2020 | * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end. | |
2021 | * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_wait, | |
2022 | lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success | |
2023 | return actual return value from the syscall, not 0. | |
2024 | ||
db54f488 UD |
2025 | 2003-07-07 Ulrich Drepper <drepper@redhat.com> |
2026 | ||
2027 | * descr.h (struct pthread): Add pid field. | |
2028 | * allocatestack.c (allocate_stack): Initialize pid field in descriptor. | |
2029 | (__reclaim_stacks): Likewise. | |
2030 | * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined | |
2031 | also check for PID of the signal source. | |
2032 | (__pthread_initialize_minimal_internal): Also initialize pid field | |
2033 | of initial thread's descriptor. | |
2034 | * pthread_cancel.c: Use tgkill instead of tkill if possible. | |
2035 | * sysdeps/unix/sysv/linux/fork.c: Likewise. | |
2036 | * sysdeps/unix/sysv/linux/pt-raise.c: Likewise. | |
2037 | * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise. | |
2038 | * sysdeps/unix/sysv/linux/raise.c: Likewise. | |
2039 | ||
5e497a41 UD |
2040 | 2003-07-05 Ulrich Drepper <drepper@redhat.com> |
2041 | ||
2042 | * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed. | |
2043 | Fix use of parameter. | |
2044 | (__libc_cleanup_pop): Likewise. | |
2045 | ||
86a0c4fa UD |
2046 | 2003-07-04 Ulrich Drepper <drepper@redhat.com> |
2047 | ||
2048 | * init.c (sigcancel_handler): Change parameters to match handler | |
2049 | for SA_SIGACTION. Check signal number and code to recognize | |
2050 | invalid invocations. | |
2051 | ||
bdbecaa3 RM |
2052 | 2003-07-03 Roland McGrath <roland@redhat.com> |
2053 | ||
2054 | * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): | |
2055 | Apply sizeof (struct pthread) bias to r13 value. | |
2056 | ||
56421b23 UD |
2057 | 2003-07-03 Ulrich Drepper <drepper@redhat.com> |
2058 | ||
fbd90f6c UD |
2059 | * sysdeps/pthread/configure.in: Require CFI directives. |
2060 | ||
56421b23 UD |
2061 | * sysdeps/pthread/librt-cancellation.c (__pthread_unwind): Remove |
2062 | definition. | |
2063 | * pthreadP.h (__pthread_unwind): Add hidden_proto if used in | |
2064 | libpthread compilation. | |
2065 | * unwind.c (__pthread_unwind): Add hidden_def. | |
2066 | * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_unwind. | |
2067 | ||
ca2b4cd7 UD |
2068 | 2003-07-01 Ulrich Drepper <drepper@redhat.com> |
2069 | ||
2070 | * libc-cancellation.c (__libc_cleanup_routine): Define. | |
2071 | * sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define. | |
2072 | (__pthread_cleanup_pop): Define. | |
2073 | ||
f036e569 UD |
2074 | 2003-07-01 Richard Henderson <rth@redhat.com> |
2075 | ||
2076 | * sysdeps/alpha/elf/pt-initfini.c: New file. | |
2077 | * sysdeps/alpha/pthread_spin_lock.S: New file. | |
2078 | * sysdeps/alpha/pthread_spin_trylock.S: New file. | |
2079 | * sysdeps/alpha/pthreaddef.h: New file. | |
2080 | * sysdeps/alpha/td_ta_map_lwp2thr.c: New file. | |
2081 | * sysdeps/alpha/tls.h: New file. | |
2082 | * sysdeps/unix/sysv/linux/alpha/Makefile: New file. | |
2083 | * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: New file. | |
2084 | * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: New file. | |
2085 | * sysdeps/unix/sysv/linux/alpha/createthread.c: New file. | |
2086 | * sysdeps/unix/sysv/linux/alpha/fork.c: New file. | |
2087 | * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: New file. | |
2088 | * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file. | |
2089 | * sysdeps/unix/sysv/linux/alpha/pthread_once.c: New file. | |
2090 | * sysdeps/unix/sysv/linux/alpha/sem_post.c: New file. | |
2091 | * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: New file. | |
2092 | ||
3b985826 UD |
2093 | 2003-07-01 Ulrich Drepper <drepper@redhat.com> |
2094 | ||
2095 | * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Add correct | |
2096 | cleanup support and unwind info. | |
2097 | ||
3a4d1e1e UD |
2098 | 2003-06-30 Ulrich Drepper <drepper@redhat.com> |
2099 | ||
2100 | * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): | |
2101 | Use correct cleanup handler registration. Add unwind info. | |
96c814d3 UD |
2102 | * sysdeps/unix/sysv/linux/unwindbuf.sym: New file. |
2103 | * sysdeps/unix/sysv/linux/Makefile: Add rule to build unwindbuf.h. | |
3a4d1e1e UD |
2104 | * tst-once3.c: Add cleanup handler and check it is called. |
2105 | * tst-once4.c: Likewise. | |
2106 | * tst-oncex3.c: New file. | |
2107 | * tst-oncex4.c: New file. | |
2108 | * Makefile: Add rules to build and run tst-oncex3 and tst-oncex4. | |
2109 | ||
e479cc8e UD |
2110 | 2003-06-29 Ulrich Drepper <drepper@redhat.com> |
2111 | ||
2112 | * sysdeps/pthread/configure.in: Check for C cleanup handling in gcc. | |
2113 | ||
7d7ff54c UD |
2114 | 2003-06-27 Ulrich Drepper <drepper@redhat.com> |
2115 | ||
483e95d0 UD |
2116 | * tst-cancel4.c (tf_msgrcv): Use IPC_PRIVATE in msgget call. |
2117 | (tf_msgsnd): Likewise. | |
2118 | ||
7d7ff54c UD |
2119 | * tst-cancel4.c (tf_msgrcv): Strengthen test against valid |
2120 | premature returns a bit more. | |
2121 | ||
7539c7ec UD |
2122 | 2003-06-26 Ulrich Drepper <drepper@redhat.com> |
2123 | ||
2124 | * sysdeps/pthread/librt-cancellation.c: Move __pthread_unwind | |
2125 | definition to the front. | |
2126 | ||
2127 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rename | |
2128 | the cleanup functions to make the names unique. Fix dwarf opcode | |
2129 | un unwind table. | |
2130 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Rename cleanup | |
2131 | functions to make the names unique. Fix CFA offset for two blocks. | |
2132 | ||
0af6a1d9 UD |
2133 | 2003-06-25 Ulrich Drepper <drepper@redhat.com> |
2134 | ||
2135 | * sysdeps/pthread/pthread.h (class __pthread_cleanup_class): Add | |
2136 | missing closing braces. | |
2137 | Patch by Christophe Saout <christophe@saout.de>. | |
2138 | ||
eef4a9f3 RM |
2139 | 2003-06-24 Roland McGrath <roland@redhat.com> |
2140 | ||
2141 | * pthread_mutex_trylock.c (__pthread_mutex_trylock): Typo fix. | |
2142 | ||
4165d44d UD |
2143 | 2003-06-24 Ulrich Drepper <drepper@redhat.com> |
2144 | ||
7f8f7b9d UD |
2145 | * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: New file. |
2146 | * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: New file. | |
2147 | ||
4165d44d UD |
2148 | * pthreadP.h: Declare __find_thread_by_id. |
2149 | * allocatestack.c [HP_TIMING_AVAIL]: Define __find_thread_by_id. | |
2150 | * pthread_clock_gettime.c: Allow using other thread's clock. | |
2151 | * pthread_clock_settime.c: Likewise. | |
2152 | * sysdeps/pthread/pthread_getcpuclockid.c: Likewise. | |
2153 | * Makefile: Add rules to build and run tst-clock2. | |
2154 | * tst-clock2.c: New file. | |
2155 | ||
67b78ef9 UD |
2156 | 2003-06-23 Ulrich Drepper <drepper@redhat.com> |
2157 | ||
2158 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rewrite | |
2159 | to use exception-based cleanup handler. | |
2160 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. | |
2161 | ||
2162 | * tst-cond8.c (ch): Announce that we are done. | |
2163 | ||
2164 | * pthreadP.h (__pthread_mutex_cond_lock): Mark with internal_function. | |
2165 | ||
2166 | * tst-cancel17.c (tf): Retry aio_suspend in case of EINTR. | |
2167 | Also test aio_suspend with timeout value. | |
2168 | ||
61623643 UD |
2169 | 2003-06-22 Ulrich Drepper <drepper@redhat.com> |
2170 | ||
3a4f2043 UD |
2171 | * pthreadP.h: Mark __pthread_mutex_unlock_usercnt also hidden. |
2172 | * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Add | |
2173 | attribute_hidden. | |
2174 | ||
61623643 UD |
2175 | * pthreadP.h (__pthread_mutex_init_internal): Mark hidden. |
2176 | (__pthread_mutex_lock_internal): Likewise. | |
2177 | (__pthread_mutex_unlock_internal): Likewise. | |
2178 | (__pthread_mutex_unlock_usercnt): Declare. | |
2179 | * pthread_mutex_destroy.c: Always fail if used in any way. | |
2180 | * pthread_mutex_init.c: Update comment. | |
2181 | * pthread_mutex_lock.c: If NO_INCR is not defined adjust __nusers. | |
2182 | * pthread_mutex_timedlock.c: Adjust __nusers. | |
2183 | * pthread_mutex_trylock.c: Adjust __nusers. | |
2184 | * pthread_mutex_unlock.c: Old code is in __pthread_mutex_unlock_usercnt | |
2185 | and public interfaces are wrapper with pass additional parameter. | |
2186 | __pthread_mutex_unlock_usercnt does not adjust __nusers if second | |
2187 | parameter zero. | |
2188 | * tst-mutex8.c: New file. | |
2189 | * Makefile (tests): Add tst-mutex8. | |
2190 | * sysdeps/pthread/pthread_cond_timedwait.c: Call | |
2191 | __pthread_mutex_unlock_usercnt. | |
2192 | * sysdeps/pthread/pthread_cond_wait.c: Likewise. | |
2193 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
2194 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. | |
2195 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. | |
2196 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. | |
2197 | * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Define NO_INCR. | |
2198 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t): | |
2199 | Add __nusers. | |
2200 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. | |
2201 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. | |
2202 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. | |
2203 | * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise. | |
2204 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. | |
2205 | ||
2206 | * pthread_mutex_lock.c: Don't store THREAD_ID in __owner, use TID. | |
2207 | * pthread_mutex_timedlock.c: Likewise. | |
2208 | * pthread_mutex_trylock.c: Adjust __nusers. | |
2209 | * pthread_mutex_unlock.c: Compare with TID not THREAD_ID. | |
2210 | * tst-mutex9.c: New file. | |
2211 | * Makefile (tests): Add tst-mutex9. | |
2212 | * sysdeps/i386/tls.h: Remove THREAD_ID definition. | |
2213 | * sysdeps/ia64/tls.h: Likewise. | |
2214 | * sysdeps/powerpc/tls.h: Likewise. | |
2215 | * sysdeps/s390/tls.h: Likewise. | |
2216 | * sysdeps/sh/tls.h: Likewise. | |
2217 | * sysdeps/x86_64/tls.h: Likewise. | |
2218 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t): | |
2219 | Change type of __owner. | |
2220 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. | |
2221 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. | |
2222 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. | |
2223 | * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise. | |
2224 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. | |
2225 | ||
9bdabb94 UD |
2226 | 2003-06-19 Jakub Jelinek <jakub@redhat.com> |
2227 | ||
2228 | * sysdeps/unix/sysv/linux/ia64/sem_post.c: Move to... | |
2229 | * sysdeps/unix/sysv/linux/sem_post.c: ...here. | |
2230 | ||
2231 | * sysdeps/unix/sysv/linux/sem_post.c: Move to... | |
2232 | * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here. Pass nr + 1 | |
2233 | instead of nr to lll_futex_wake. Only set errno and return -1 | |
2234 | if err < 0. | |
2235 | ||
2236 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_wait, | |
2237 | lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success | |
2238 | return actual return value from the syscall, not 0. | |
2239 | ||
f6c93bd9 UD |
2240 | 2003-06-18 Ulrich Drepper <drepper@redhat.com> |
2241 | ||
ca343e73 UD |
2242 | * tst-cancel4.c (tf_msgsnd): Don't always use 100 as the type, |
2243 | find a random value. | |
2244 | (tf_msgrcv): Likewise. Also don't report msgrcv returns if | |
2245 | errno==EIDRM. | |
2246 | ||
50441a98 UD |
2247 | * sysdeps/unix/sysv/linux/timer_settime.c: Add prototype for |
2248 | compat_timer_settime. | |
2249 | * sysdeps/unix/sysv/linux/timer_gettime.c: Add prototype for | |
2250 | compat_timer_gettime. | |
2251 | * sysdeps/unix/sysv/linux/timer_getoverr.c: Add prototype for | |
9bdabb94 | 2252 | compat_timer_getoverrun. |
50441a98 UD |
2253 | * sysdeps/unix/sysv/linux/timer_delete.c: Add prototype for |
2254 | compat_timer_delete. | |
2255 | ||
f6c93bd9 UD |
2256 | * pthread_mutex_destroy.c (__pthread_mutex_destroy): For |
2257 | error-checking mutex detect busy mutexes. | |
2258 | ||
047aec8f UD |
2259 | 2003-06-17 Ulrich Drepper <drepper@redhat.com> |
2260 | ||
1d53508d UD |
2261 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_mutex_lock): |
2262 | Add ax to clobber list. | |
2263 | (lll_mutex_cond_lock): Likewise. | |
2264 | (lll_mutex_unlock): Likewise. | |
2265 | (lll_lock): Likewise. | |
2266 | (lll_unlock): Likewise. | |
2267 | ||
f23b30e2 UD |
2268 | * Makefile: Add rules to build and run tst-cancel18 and tst-cancelx18. |
2269 | * tst-cancel18.c: New file. | |
2270 | * tst-cancelx18.c: New file. | |
2271 | ||
2272 | * tst-cancel4.c: Test connect, creat, msgrcv, msgsnd, sendmsg, sendto, | |
2273 | and tcdrain. | |
2274 | ||
2275 | * Makefile: Add rules to build and run tst-cancel17 and tst-cancel17x. | |
2276 | * tst-cancel17.c: New file. | |
2277 | * tst-cancelx17.c: New file. | |
2278 | ||
2279 | * sysdeps/unix/sysv/linux/sigtimedwait.c: New file. | |
2280 | * sysdeps/unix/sysv/linux/sigwait.c: New file. | |
2281 | * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file. | |
2282 | ||
047aec8f UD |
2283 | * tst-cancel4.c: Test open, close, pread, pwrite, fsync, and msync. |
2284 | ||
bbde8527 UD |
2285 | 2003-06-16 Jakub Jelinek <jakub@redhat.com> |
2286 | ||
2287 | * sysdeps/pthread/createthread.c (create_thread): Set | |
2288 | header.multiple_threads unconditionally. | |
2289 | * allocatestack.c (allocate_stack): Likewise. | |
2290 | * descr.h (struct pthread): Add header.multiple_threads | |
2291 | unconditionally. | |
2292 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (CENABLE, CDISABLE): | |
2293 | Define for librt. #error if neither libpthread, libc nor librt. | |
2294 | * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (CENABLE, CDISABLE): | |
2295 | Likewise. | |
2296 | * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (CENABLE, | |
2297 | CDISABLE): Likewise. | |
2298 | * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (CENABLE, | |
2299 | CDISABLE): Likewise. | |
2300 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (CENABLE, | |
2301 | CDISABLE): Likewise. | |
2302 | * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (CENABLE, | |
2303 | CDISABLE): Likewise. Access header.multiple_threads outside of | |
2304 | libc and libpthread. | |
2305 | * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (CENABLE, CDISABLE): | |
2306 | Likewise. | |
2307 | * sysdeps/x86_64/tls.h (tcbhead_t): Add multiple_threads. | |
2308 | * sysdeps/x86_64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define. | |
2309 | ||
26676450 UD |
2310 | 2003-06-17 Ulrich Drepper <drepper@redhat.com> |
2311 | ||
2312 | * tst-cancel4.c: Add tests for the socket and signal functions, pause. | |
2313 | Also test early cancellation before the thread reaches the cancellation | |
2314 | point. | |
2315 | ||
2316 | * Makefile: Compile forward.c with exceptions. | |
2317 | ||
2318 | * sysdeps/unix/sysv/linux/sleep.c: New file. | |
2319 | ||
301a6724 UD |
2320 | 2003-06-16 Ulrich Drepper <drepper@redhat.com> |
2321 | ||
0e0deb03 UD |
2322 | * Makefile: Add CFLAGS definition to compile function wrappers |
2323 | duplicated from libc with exceptions. | |
2324 | * tst-cancel4.c: Also check cancellation handlers. | |
2325 | ||
301a6724 UD |
2326 | * Makefile: Add rules to build and run tst-cancel16 and |
2327 | tst-cancelx16. Add missing CFLAGS definitions. | |
2328 | * tst-cancel16.c: New file. | |
2329 | * tst-cancelx16.c: New file. | |
2330 | ||
7a114794 UD |
2331 | 2003-06-15 Ulrich Drepper <drepper@redhat.com> |
2332 | ||
452aea84 UD |
2333 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h |
2334 | (DL_SYSINFO_IMPLEMENTATION): Use CFI opcodes. | |
2335 | * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h | |
2336 | (DL_SYSINFO_IMPLEMENTATION): Likewise. | |
2337 | ||
7a114794 UD |
2338 | * pthreadP.h (LIBC_CANCEL_ASYNC): Also define for librt. |
2339 | (LIBC_CANCEL_RESET): Likewise. | |
2340 | Declare __librt_enable_asynccancel and __librt_disable_asynccancel. | |
2341 | * sysdeps/pthread/Makefile (librt-sysdep_routines): Add | |
2342 | librt-cancellation. | |
2343 | (CFLAGS-libcrt-cancellation.c): Define. | |
2344 | * sysdeps/pthread/librt-cancellation.c: New file. | |
2345 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define all the nice | |
2346 | macros also when compiling librt. | |
2347 | * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise. | |
2348 | * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise. | |
2349 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise. | |
2350 | * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise. | |
2351 | * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise. | |
2352 | * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise. | |
2353 | * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise. | |
2354 | ||
2355 | * sysdeps/unix/sysv/linux/timer_create.c: Add prototype for | |
2356 | compat_timer_create. | |
2357 | ||
8ba1d429 UD |
2358 | 2003-06-14 Ulrich Drepper <drepper@redhat.com> |
2359 | ||
cc8fb6f3 UD |
2360 | * sysdeps/pthread/posix-timer.h (timespec_compare): Always inline. |
2361 | ||
8ba1d429 UD |
2362 | * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for |
2363 | __register_atfork. | |
2364 | * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork): | |
2365 | Add libc_hidden_def. | |
2366 | ||
d4f100e2 RM |
2367 | 2003-06-13 Roland McGrath <roland@redhat.com> |
2368 | ||
2369 | * sysdeps/x86_64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Pass FS | |
2370 | constant from <sys/reg.h> to ps_get_thread_area, not register contents. | |
2371 | ||
dd9423a6 UD |
2372 | 2003-06-11 Ulrich Drepper <drepper@redhat.com> |
2373 | ||
2374 | * allocatestack.c (queue_stack): Always inline. | |
2375 | * ptreadhP.h (__do_cancel): Likewise. | |
2376 | ||
ed24330d JJ |
2377 | 2003-06-10 Jakub Jelinek <jakub@redhat.com> |
2378 | ||
2379 | * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): Fix | |
2380 | a typo. | |
2381 | ||
06120d79 UD |
2382 | 2003-06-10 Ulrich Drepper <drepper@redhat.com> |
2383 | ||
2384 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S | |
2385 | (__pthread_cond_signal): Remove incorrect second addition for | |
2386 | cond_lock!=0. | |
2387 | ||
b1720346 UD |
2388 | 2003-06-09 Ulrich Drepper <drepper@redhat.com> |
2389 | ||
5b318f85 UD |
2390 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S |
2391 | (__pthread_cond_signal): Use correct futex pointer in | |
2392 | __lll_mutex_lock_wait call. | |
2393 | ||
b1720346 UD |
2394 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S |
2395 | (__pthread_cond_signal): Some more tweaks to handle cond_lock!=0. | |
2396 | ||
3e36c37d UD |
2397 | 2003-06-08 Ulrich Drepper <drepper@redhat.com> |
2398 | ||
ecf7955d UD |
2399 | * sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make |
2400 | cancelable. | |
ed24330d | 2401 | * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): |
ecf7955d UD |
2402 | Likewise. |
2403 | ||
3e36c37d UD |
2404 | * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Remove |
2405 | hand-written CFI generation code. Since ENTRY/END also initiated | |
2406 | CFI frames this caused two CFI sets to be generated. | |
2407 | ||
7726edc2 UD |
2408 | 2003-06-07 Ulrich Drepper <drepper@redhat.com> |
2409 | ||
2410 | * cleanup_routine.c: New file. | |
2411 | * Versions (libpthread) [GLIBC_2.3.3]: Add __pthread_cleanup_routine. | |
2412 | * sysdeps/pthread/pthread.h: Add support for fully exception-based | |
2413 | cleanup handling. | |
2414 | * Makefile (libpthread-routines): Add cleanup_routine. | |
2415 | Add more CFLAGS variables to compile with exceptions. Add comments | |
2416 | why which file needs unwind tables. | |
2417 | (tests) [have-forced-unwind==yes]: Add tst-cancelx* and tst-cleanupx* | |
2418 | tests. | |
2419 | * tst-cancelx1.c: New file. | |
2420 | * tst-cancelx2.c: New file. | |
2421 | * tst-cancelx3.c: New file. | |
2422 | * tst-cancelx4.c: New file. | |
2423 | * tst-cancelx5.c: New file. | |
2424 | * tst-cancelx6.c: New file. | |
2425 | * tst-cancelx7.c: New file. | |
2426 | * tst-cancelx8.c: New file. | |
2427 | * tst-cancelx9.c: New file. | |
2428 | * tst-cancelx10.c: New file. | |
2429 | * tst-cancelx11.c: New file. | |
2430 | * tst-cancelx12.c: New file. | |
2431 | * tst-cancelx13.c: New file. | |
2432 | * tst-cancelx14.c: New file. | |
2433 | * tst-cancelx15.c: New file. | |
2434 | * tst-cleanupx0.c: New file. | |
2435 | * tst-cleanupx0.expect: New file. | |
2436 | * tst-cleanupx1.c: New file. | |
2437 | * tst-cleanupx2.c: New file. | |
2438 | * tst-cleanupx3.c: New file. | |
2439 | ||
2440 | * tst-cleanup0.c: Make standard compliant. | |
2441 | * tst-cleanup1.c: Likewise. | |
2442 | ||
2443 | * sysdeps/unix/sysv/linux/sem_timedwait.c: Add cancellation support. | |
2444 | * sysdeps/unix/sysv/linux/sem_wait.c: Likewise. | |
2445 | * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise. | |
2446 | * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise. | |
2447 | * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise. | |
2448 | * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise. | |
2449 | * sysdeps/i386/tcb-offsets.sym: Add RESULT, CANCELHANDLING, and | |
2450 | CLEANUP_JMP_BUF. | |
2451 | * sysdeps/x86_64/tcb-offsets.sym: Likewise. | |
2452 | * tst-cancel12.c: New file. | |
2453 | * tst-cancel13.c: New file. | |
2454 | * tst-cancel14.c: New file. | |
2455 | * tst-cancel15.c: New file. | |
2456 | * Makefile (tests): Add tst-cancel12, tst-cancel13, tst-cancel14, | |
2457 | and tst-cancel15. | |
2458 | ||
2459 | * tst-cancel1.c: Add some comments. | |
2460 | ||
2461 | * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Compute relative | |
2462 | timeout correctly. | |
2463 | ||
7a8a8e21 UD |
2464 | 2003-06-06 Ulrich Drepper <drepper@redhat.com> |
2465 | ||
2466 | * Makefile (CFLAGS-pthread_cancel.c): Define. | |
2467 | ||
4ad0bbf4 UD |
2468 | 2003-06-05 Ulrich Drepper <drepper@redhat.com> |
2469 | ||
2470 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_rwlock_t): | |
2471 | Change type of __writer element to int. | |
2472 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. | |
2473 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. | |
2474 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. | |
2475 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. | |
2476 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. | |
2477 | * sysdeps/i386/tcb-offsets.sym: Replace SELF entry with TID entry. | |
2478 | * sysdeps/x86_64/tcb-offsets.sym: Likewise. | |
2479 | * pthread_rwlock_trywrlock.c: Store TID not self pointer in __writer. | |
2480 | Compare with TID to determine deadlocks. | |
2481 | * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise. | |
2482 | * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise. | |
2483 | * sysdeps/pthread/pthread_rwlock_timedwrlock.: Likewise. | |
2484 | * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise. | |
2485 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise. | |
2486 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: | |
2487 | Likewise. | |
2488 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: | |
2489 | Likewise. | |
2490 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise. | |
2491 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise. | |
2492 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: | |
2493 | Likewise. | |
2494 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: | |
2495 | Likewise. | |
2496 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise. | |
2497 | * Makefile (tests): Add tst-rwlock12. | |
2498 | * tst-rwlock12.c: New file. | |
2499 | ||
332faa96 JJ |
2500 | 2003-06-05 Jakub Jelinek <jakub@redhat.com> |
2501 | ||
2502 | * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait, | |
2503 | __lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid): | |
2504 | Remove bogus hidden_proto. | |
2505 | * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock): | |
2506 | Likewise. | |
2507 | * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock, | |
2508 | lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise. | |
2509 | * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock, | |
2510 | ___lll_mutex_timedlock): Likewise. | |
2511 | ||
29d9e2fd UD |
2512 | 2003-06-04 Ulrich Drepper <drepper@redhat.com> |
2513 | ||
2514 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S | |
2515 | (__pthread_cond_signal): Add some code to eventually handle | |
2516 | cond_lock!=0. | |
2517 | ||
6f1acb30 UD |
2518 | 2003-06-01 Ulrich Drepper <drepper@redhat.com> |
2519 | ||
2520 | * Makefile (tests): Add tst-exec4. | |
2521 | (tst-exec4-ARGS): Define. | |
2522 | * tst-exec4.c: New file. | |
2523 | ||
49b65043 UD |
2524 | 2003-05-31 Ulrich Drepper <drepper@redhat.com> |
2525 | ||
31195be2 UD |
2526 | * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): |
2527 | Also fail if tv_nsec < 0. | |
2528 | (__lll_timedwait_tid): Likewise. | |
2529 | * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise. | |
2530 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_timedwait_tid): | |
2531 | Likewise. | |
2532 | * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_timedwait_tid): | |
2533 | Likewise. | |
2534 | * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (__lll_mutex_timedlock): | |
2535 | Likewise. | |
2536 | * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): | |
2537 | Likewise. | |
80b54217 UD |
2538 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_timedwait_tid): |
2539 | Likewise. | |
2540 | * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_timedwait_tid): | |
2541 | Likewise. | |
31195be2 | 2542 | |
dcfc8224 UD |
2543 | * Makefile (tests): Add tst-sem8 and tst-sem9. |
2544 | * tst-sem8.c: New file. | |
2545 | * tst-sem9.c: New file. | |
2546 | * sem_open.c: Fix creation of in_use record if the file exists but | |
2547 | no internal record. | |
2548 | ||
49b65043 UD |
2549 | * posix-timer.h: Remove old, unused timer_id2ptr and timer_ptr2id |
2550 | definitions. | |
2551 | ||
2552 | * sysdeps/pthread/timer_create.c (timer_create): In case | |
2553 | evp==NULL, assign timer ID to sival_ptr. | |
2554 | ||
2555 | * descr.h (struct pthread_unwind_buf): Change type of prev element to | |
2556 | struct pthread_unwind_buf *. | |
2557 | (struct pthread): Likewise for cleanup_jmp_buf element. | |
2558 | ||
2559 | * cleanup.c (__pthread_register_cancel): Add cast to avoid warning. | |
2560 | * cleanup_defer.c (__pthread_register_cancel_defer): Likewise. | |
2561 | * unwind.c (__pthread_unwind_next): Likewise. | |
2562 | ||
50794a45 UD |
2563 | 2003-05-30 Ulrich Drepper <drepper@redhat.com> |
2564 | ||
5d4f57bd UD |
2565 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h |
2566 | (lll_futex_timed_wait): Use int for futex value parameter. | |
2567 | (lll_futex_wake): Likewise. | |
2568 | (lll_futex_requeue): Likewise. | |
2569 | ||
2570 | * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait): | |
2571 | Replace one memory operation with one register operation. | |
2572 | ||
2573 | * tst-join4.c (do_test): Fix error message. | |
2574 | ||
7ab7ea33 UD |
2575 | * tst-rwlock6.c (do_test): Use correct format specifier. |
2576 | ||
2577 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S | |
2578 | (__lll_mutex_lock_wait): Replace one memory operation with one | |
2579 | register operation. | |
2580 | * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S | |
2581 | (__lll_mutex_lock_wait): Likewise. | |
2582 | ||
50794a45 UD |
2583 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h |
2584 | (__lll_mutex_cond_lock): Add one to value parameter of | |
2585 | __lll_lock_wait to reflect reality in the futex syscall. | |
2586 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h | |
2587 | (lll_mutex_cond_lock): Likewise. | |
2588 | ||
5a70784e JJ |
2589 | 2003-05-30 Jakub Jelinek <jakub@redhat.com> |
2590 | ||
2591 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_cond_lock): | |
2592 | New function. | |
2593 | (lll_mutex_cond_lock): Define. | |
2594 | ||
e7c5ac68 UD |
2595 | 2003-05-29 Ulrich Drepper <drepper@redhat.com> |
2596 | ||
586d1748 UD |
2597 | * Makefile (tests): Add tst-signal6. |
2598 | * tst-signal6.c: New file. | |
2599 | ||
b8ba4a27 UD |
2600 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h |
2601 | (__lll_mutex_unlock_force): New function | |
2602 | (lll_mutex_unlock_force): Use __lll_mutex_unlock_force. | |
2603 | ||
65d46efe UD |
2604 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h |
2605 | (__lll_mutex_unlock_force): New function. | |
2606 | (lll_mutex_unlock_force): Use __lll_mutex_unlock_force. | |
2607 | ||
2608 | * tst-rwlock7.c (do_test): Use correct format specifier. | |
2609 | ||
e7c5ac68 UD |
2610 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue): |
2611 | Find break parameter in correct asm argument. | |
2612 | ||
284bdc42 UD |
2613 | 2003-05-27 Jakub Jelinek <jakub@redhat.com> |
2614 | ||
2615 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_clobbers): | |
2616 | Remove out4. | |
2617 | (lll_futex_requeue): Fix __o3 constraint, return negative errno if | |
2618 | error occured. | |
2619 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t): | |
2620 | Add __mutex. | |
2621 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_REQUEUE, | |
2622 | lll_futex_requeue, lll_mutex_unlock_force): Define. | |
2623 | ||
e7c5ac68 UD |
2624 | 2003-05-30 Jakub Jelinek <jakub@redhat.com> |
2625 | ||
2626 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h | |
2627 | (pthread_cond_t): Add __mutex. | |
2628 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_REQUEUE, | |
2629 | lll_futex_requeue, lll_mutex_unlock_force): Define. | |
2630 | ||
ea2630c6 UD |
2631 | 2003-05-28 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
2632 | ||
2633 | * sysdeps/sh/tcb-offsets.sym: Define MUTEX_FUTEX. | |
2634 | * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t): | |
2635 | Add __mutex field. | |
2636 | * sysdeps/unix/sysv/linux/sh/lowlevellock.h (SYSCALL_WITH_INST_PAD): | |
2637 | Define. | |
2638 | (lll_futex_wait, lll_futex_wake): Define. | |
2639 | * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: New file. | |
2640 | * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Try using | |
2641 | FUTEX_REQUEUE instead of FUTEX_WAIT. | |
2642 | * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise. | |
2643 | * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Remember | |
2644 | mutex which was used in condvar structure. Call | |
2645 | __pthread_mutex_cond_lock instead of __pthread_mutex_lock_internal. | |
2646 | * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise. | |
2647 | ||
2648 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Don't | |
2649 | include tcb-offsets.h. Read wakeup value in locked region. | |
2650 | Use the value of gbr register as THREAD_ID. | |
2651 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise. | |
2652 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise. | |
2653 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise. | |
2654 | ||
2655 | * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove futex related | |
2656 | macros. | |
2657 | ||
5a77f150 UD |
2658 | 2003-05-28 Ulrich Drepper <drepper@redhat.com> |
2659 | ||
2660 | * sysdeps/pthread/pthread_cond_broadcast.c | |
2661 | (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX. | |
2662 | ||
7661d9f7 UD |
2663 | 2003-05-26 Ulrich Drepper <drepper@redhat.com> |
2664 | ||
2665 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix | |
2666 | typo in register name. | |
2667 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use parameters | |
2668 | correctly. Actually use requeue. Little optimization. | |
2669 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Store | |
2670 | mutex address early. Handle cancellation state as 32-bit value. | |
2671 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. | |
2672 | Remove unnecessary label. | |
2673 | ||
69431c9a UD |
2674 | 2003-05-25 Ulrich Drepper <drepper@redhat.com> |
2675 | ||
2676 | * sysdeps/pthread/pthread_cond_broadcast.c: Try using FUTEX_REQUEUE | |
2677 | instead of FUTEX_WAIT. | |
2678 | * sysdeps/pthread/pthread_cond_signal.c: Likewise. | |
2679 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise. | |
2680 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise. | |
2681 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise. | |
2682 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise. | |
2683 | * sysdeps/pthread/pthread_cond_timedwait.c: Remember mutex which was | |
2684 | used in condvar structure. Call __pthread_mutex_cond_lock instead | |
2685 | of __pthread_mutex_lock_internal. | |
2686 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
2687 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. | |
2688 | * sysdeps/pthread/pthread_cond_wait.c: Likewise. | |
2689 | (__condvar_cleanup): Always call __pthread_mutex_cond_lock. | |
2690 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. | |
2691 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. | |
2692 | * sysdeps/unix/sysv/linux/Makefile (libpthread-sysdep_routines): | |
2693 | Add pthread_mutex_cond_lock. | |
2694 | * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add dep_mutex. | |
2695 | * sysdeps/unix/sysv/linux/pthread_cond_mutex_lock.c: New file. | |
2696 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define | |
2697 | lll_mutex_cond_lock. | |
2698 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise. | |
2699 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise. | |
248a3490 | 2700 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t): |
69431c9a | 2701 | Add __mutex field. |
248a3490 | 2702 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. |
69431c9a UD |
2703 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. |
2704 | ||
2705 | * sysdeps/i386/tcb-offsets.sym: Define MUTEX_FUTEX. | |
2706 | * sysdeps/x86_64/tcb-offsets.sym: Likewise. | |
2707 | ||
2708 | * pthreadP.h: Declare __pthread_mutex_cond_lock. | |
2709 | * pthread_mutex_lock.c: Define LLL_MUTEX_LOCK if not already defined. | |
2710 | Use it instead of lll_mutex_lock. If __pthread_mutex_lock is a | |
2711 | macro don't define aliases. | |
2712 | ||
2713 | * cancellation.c: Remove __pthread_enable_asynccancel_2. | |
2714 | * pthreadP.h: Remove declaration of __pthread_enable_asynccancel_2. | |
2715 | * sysdeps/pthread/pthread_cond_timedwait.c: Use | |
2716 | __pthread_enable_asynccancel instead of __pthread_enable_asynccancel_2. | |
2717 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
2718 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. | |
2719 | * sysdeps/pthread/pthread_cond_wait.c: Likewise. | |
2720 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. | |
2721 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. | |
2722 | ||
fddfebbd UD |
2723 | 2003-05-17 Ulrich Drepper <drepper@redhat.com> |
2724 | ||
2725 | * sem_open.c: Fix one endless loop. Implement correct semantics | |
2726 | wrt opening the same semaphore more then once. | |
2727 | * sem_close.c: Adjust for sem_open change. | |
2728 | * semaphoreP.h: Include <semaphore.h>. Define struct inuse_sem. | |
2729 | Declare __sem_mappings, __sem_mappings_lock, __sem_search. | |
2730 | * Makefile (tests): Add tst-sem7. | |
2731 | * tst-sem7.c: New file. | |
2732 | ||
1eefffb0 RM |
2733 | 2003-05-16 Roland McGrath <roland@redhat.com> |
2734 | ||
2735 | * sysdeps/unix/sysv/linux/register-atfork.c (libc_freeres_fn): Fix | |
2736 | uninitialized variable braino. | |
2737 | ||
6e66dc78 UD |
2738 | 2003-05-16 Ulrich Drepper <drepper@redhat.com> |
2739 | ||
23ae6451 UD |
2740 | * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Correct |
2741 | test for syscall availability. | |
2742 | ||
2743 | * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime): Set | |
2744 | __no_posix_timers to -1 if the syscalls don't exist. | |
2745 | ||
7ac5b8e2 UD |
2746 | * pthread_join.c (pthread_join): Set tid field of the joined |
2747 | thread to -1. This isn't necessary but helps to recognize some | |
2748 | error conditions with almost no cost. | |
2749 | ||
2750 | * allocatestack.c (FREE_P): Also negative values indicate an | |
2751 | unused stack. | |
2752 | ||
6e66dc78 UD |
2753 | * unwind.c: Include <unistd.h>. |
2754 | ||
855dba3c UD |
2755 | 2003-05-14 Ulrich Drepper <drepper@redhat.com> |
2756 | ||
2757 | * Makefile ($(objpfx)$(multidir)): Add rule to create the directory. | |
2758 | ||
81f3ac4c UD |
2759 | 2003-05-14 Jakub Jelinek <jakub@redhat.com> |
2760 | ||
2761 | * Makefile (crti-objs, crtn-objs): New variables. | |
2762 | (omit-deps, extra-objs): Add crtn. | |
2763 | ($(objpfx)libpthread.so): Depend on both crti and crtn | |
2764 | and links to them in multidir. | |
2765 | ($(objpfx)crtn.S, $(objpfx)crtn.o): New rules. | |
2766 | ||
7158eae4 UD |
2767 | 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com> |
2768 | ||
2769 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h | |
2770 | (lll_mutex_unlock): Use atomic_exchange_rel. | |
2771 | ||
edf205d5 UD |
2772 | 2003-05-11 Ulrich Drepper <drepper@redhat.com> |
2773 | ||
2774 | * cond-perf.c (cons): Add missing locking around setting of alldone. | |
2775 | ||
a3f979a7 UD |
2776 | 2003-05-10 Ulrich Drepper <drepper@redhat.com> |
2777 | ||
2778 | * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove futex | |
2779 | related macros. | |
2780 | * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise. | |
2781 | ||
880867a4 UD |
2782 | 2003-05-09 Ulrich Drepper <drepper@redhat.com> |
2783 | ||
949ec764 UD |
2784 | * tst-sem6.c: New file. |
2785 | * Makefile (tests): Add tst-sem6. | |
2786 | ||
2787 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (___lll_mutex_unlock): | |
2788 | Use atomic_exchange_rel instead of atomic_exchange. | |
2789 | * sysdeps/unix/sysv/linux/lowlevellock.c (lll_unlock_wake_cb): | |
2790 | Likewise. | |
2791 | ||
2792 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Improve quality of | |
2793 | code for lll_futex_wait and lll_futex_wake in static apps. Use | |
2794 | vsyscall is possible. | |
2795 | ||
2796 | * sysdeps/unix/sysv/linux/pthread_getaffinity.c: New file. | |
2797 | * sysdeps/unix/sysv/linux/pthread_setaffinity.c: New file. | |
2798 | * sysdeps/pthread/pthread.h: Declare pthread_getaffinity_np and | |
2799 | pthread_setaffinity_np. | |
2800 | * Versions [libpthread] (GLIBC_2.3.3): Add pthread_getaffinity_np | |
2801 | and pthread_setaffinity_np. | |
2802 | * Makefile (libpthread-routines): Add pthread_getaffinity and | |
2803 | pthread_setaffinity. | |
2804 | ||
880867a4 UD |
2805 | * allocatestack.c (allocate_stack): If ARCH_RETRY_MMAP is defined, |
2806 | use it in case mmap to allocate the stack fails. | |
2807 | * sysdeps/unix/sysv/linux/x86_64/Makefile: Don't define | |
2808 | ARCH_MAP_FLAGS here. | |
2809 | * sysdeps/x86_64/pthreaddef.h: Define ARCH_MAP_FLAGS and | |
2810 | ARCH_RETRY_MMAP. | |
2811 | ||
92d83c72 UD |
2812 | 2003-05-08 Ulrich Drepper <drepper@redhat.com> |
2813 | ||
2814 | * sysdeps/unix/sysv/linux/fork.c: Complete rewrite of the atfork | |
2815 | handler implementation. It is now lockless in fork(). | |
2816 | * sysdeps/unix/sysv/linux/register-atfork.c: Likewise. | |
2817 | * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise. | |
2818 | * sysdeps/unix/sysv/linux/fork.h: Don't include <link.h>. Don't | |
2819 | declare the __fork_*_lists. | |
2820 | (struct fork_handler): Include pointers to all three functions. | |
2821 | Add next, refcntr and need_signal elements. | |
2822 | (__fork_handlers): New declaration. | |
2823 | (__register_atfork_malloc): Remove declaration. | |
2824 | (HAVE_register_atfork_malloc): Remove definition. | |
2825 | * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove | |
2826 | __pthread_child_handler variable. | |
2827 | (__libc_pthread_init): Use __register_atfork instead of explicitly | |
2828 | adding to the list. | |
2829 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define lll_futex_wait | |
2830 | and lll_futex_wake. | |
2831 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise. | |
2832 | ||
2833 | * unwind.c (unwind_cleanup): Print error message and then abort. This | |
2834 | function must never be reached. | |
2835 | ||
2836 | * cond-perf.c: New file. | |
2837 | ||
be4d8038 UD |
2838 | 2003-05-05 Ulrich Drepper <drepper@redhat.com> |
2839 | ||
2840 | * sysdeps/i386/tls.h (TLS_INIT_TP): Include \n in error message. | |
2841 | ||
c6696b79 RM |
2842 | 2003-05-04 Roland McGrath <roland@redhat.com> |
2843 | ||
2844 | * Makefile ($(objpfx)../libc.so): New target. | |
2845 | ||
7da168bf UD |
2846 | 2003-05-02 Ulrich Drepper <drepper@redhat.com> |
2847 | ||
2848 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h | |
2849 | (pthread_condattr_t): Size is only an int, don't use long for | |
2850 | alignment. | |
2851 | (pthread_mutexattr_t): Likewise. | |
7da168bf UD |
2852 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. |
2853 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. | |
2854 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. | |
2855 | ||
9a7178d6 UD |
2856 | 2003-05-01 Ulrich Drepper <drepper@redhat.com> |
2857 | ||
2858 | * sysdeps/i386/tls.h: Define THREAD_ID. | |
2859 | * sysdeps/ia64/tls.h: Likewise. | |
2860 | * sysdeps/powerpc/tls.h: Likewise. | |
2861 | * sysdeps/s390/tls.h: Likewise. | |
2862 | * sysdeps/sh/tls.h: Likewise. | |
2863 | * sysdeps/x86_64/tls.h: Likewise. | |
2864 | * pthread_mutex_lock.c: Use THREAD_ID instead of THREAD_SELF to | |
2865 | record ownership. | |
2866 | * pthread_mutex_timedlock.c: Likewise. | |
2867 | * pthread_mutex_trylock.c: Likewise. | |
2868 | * pthread_mutex_unlock.c: Likewise. | |
2869 | * pthread_rwlock_trywrlock.c: Likewise. | |
2870 | * sysdeps/pthread/pthread_rwlocklock_rdlock.c: Likewise. | |
2871 | * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise. | |
2872 | * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise. | |
2873 | * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise. | |
2874 | ||
2875 | * sysdeps/pthread/createthread.c (create_thread): Use CLONE_SYSVSEM | |
2876 | flag. | |
2877 | ||
a234e27d UD |
2878 | 2003-04-29 Jakub Jelinek <jakub@redhat.com> |
2879 | ||
2880 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h | |
2881 | (__SIZEOF_PTHREAD_COND_T): Define to 48. | |
2882 | (pthread_rwlock_t): Add 16 bytes of pad instead of 8 before __flags. | |
2883 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t): | |
2884 | Make __align long long instead of long. | |
2885 | (pthread_rwlock_t): Formatting. | |
2886 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h | |
2887 | (pthread_rwlock_t): Formatting. | |
2888 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h | |
2889 | (pthread_cond_t): Make __align long long instead of long. | |
2890 | (pthread_rwlock_t): Move __flags field to the same position as in | |
2891 | linuxthreads. | |
2892 | ||
f025c136 UD |
2893 | 2003-04-30 Ulrich Drepper <drepper@redhat.com> |
2894 | ||
2895 | * tst-rwlock6.c (do_test): Use correct printf format specifiers. | |
2896 | * tst-rwlock7.c (do_test): Likewise. | |
2897 | ||
7531ab9e RM |
2898 | 2003-04-26 Roland McGrath <roland@redhat.com> |
2899 | ||
2900 | * Makefile ($(test-modules)): Depend on $(common-objpfx)shlib.lds. | |
2901 | ||
299601a1 UD |
2902 | 2003-04-22 Jakub Jelinek <jakub@redhat.com> |
2903 | ||
299601a1 UD |
2904 | * allocatestack.c (TLS_TPADJ): Add TLS_PRE_TCB_SIZE instead of |
2905 | sizeof (struct pthread). | |
2906 | (allocate_stack): Subtract TLS_PRE_TCB_SIZE bytes instead of | |
468777e1 | 2907 | 1 struct pthread. |
299601a1 UD |
2908 | * sysdeps/powerpc/tls.h (TLS_INIT_TCB_SIZE, TLS_TCB_SIZE): Define |
2909 | to 0. | |
2910 | (TLS_INIT_TCB_ALIGN, TLS_TCB_ALIGN): Define to alignment of | |
2911 | struct pthread. | |
2912 | (TLS_PRE_TCB_SIZE): Increase to cover tcbhead_t preceeded by pad | |
2913 | to 32-bit bytes. | |
2914 | (INSTALL_DTV, GET_DTV, THREAD_DTV): tcbhead_t is immediately before | |
2915 | tcbp. | |
2916 | (TLS_INIT_TP, THREAD_SELF, INIT_THREAD_SELF): Don't add TLS_TCB_SIZE | |
2917 | unneccessarily. | |
2918 | (NO_TLS_OFFSET): Define. | |
299601a1 UD |
2919 | * sysdeps/unix/sysv/linux/powerpc/createthread.c (TLS_VALUE): Don't |
2920 | add TLS_TCB_SIZE unnecessarily. | |
299601a1 | 2921 | |
950094f8 RM |
2922 | 2003-04-22 Roland McGrath <roland@redhat.com> |
2923 | ||
2924 | * Makeconfig (shared-thread-library): Reverse link order to work | |
2925 | around linker bug. | |
2926 | ||
dc2f6455 UD |
2927 | 2003-04-22 Ulrich Drepper <drepper@redhat.com> |
2928 | ||
2929 | * semaphore.h: Fix typo in comment. | |
2930 | ||
e7608d77 UD |
2931 | 2003-04-21 Ulrich Drepper <drepper@redhat.com> |
2932 | ||
6a87ee19 UD |
2933 | * sysdeps/pthread/sigfillset.c: New file. |
2934 | ||
e7608d77 UD |
2935 | * init.c (__pthread_initialize_minimal): Don't block SIGTIMER. |
2936 | * pthreadP.h: Make SIGTIMER and SIGCANCEL the same. | |
2937 | * sysdeps/pthread/pthread_sigmask.c: Remove handling of SIGTIMER. | |
2938 | * sysdeps/pthread/sigaction.c: Likewise. | |
2939 | * sysdeps/pthread/sigprocmask.c: New file. | |
2940 | * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): Define as | |
2941 | __SIGRTMIN+1. | |
2942 | * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread): | |
2943 | Block SIGTIMER. Also handle SI_TKILL events and terminate thread | |
2944 | in this case. | |
2945 | ||
0b3df49e UD |
2946 | 2003-04-19 Ulrich Drepper <drepper@redhat.com> |
2947 | ||
58a7a325 UD |
2948 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h |
2949 | (DL_SYSINFO_IMPLEMENTATION): Add .eh_frame information. | |
2950 | ||
0b3df49e UD |
2951 | * sysdeps/unix/sysv/linux/unregister-atfork.c |
2952 | (__unregister_atfork): Don't free memory not allocated dynamically. | |
2953 | ||
2954 | * semaphore.h: Remove __THROW marker from cancellation points. | |
2955 | * nptl/sysdeps/pthread/pthread.h: Likewise. | |
2956 | ||
7d74651e UD |
2957 | 2003-04-18 Ulrich Drepper <drepper@redhat.com> |
2958 | ||
76a67697 UD |
2959 | * sysdeps/pthread/pthread.h: Don't mark pthread_testcancel, |
2960 | pthread_cancel, pthread_setcancelstate, and pthread_setcanceltype with | |
7d74651e UD |
2961 | __THROW. |
2962 | ||
dd9d6538 JJ |
2963 | 2003-04-16 Jakub Jelinek <jakub@redhat.com> |
2964 | ||
2965 | * tst-cancel4.c (do_test): Use %zd instead of %d when printing cnt. | |
2966 | ||
4ab6f47c RM |
2967 | 2003-04-15 Roland McGrath <roland@redhat.com> |
2968 | ||
2969 | * forward.c (__pthread_unwind): Tweak to avoid warning. | |
2970 | ||
162434a6 UD |
2971 | 2003-04-15 Ulrich Drepper <drepper@redhat.com> |
2972 | ||
2973 | * pthreadP.h: Move THREAD_ATOMIC_* replacements to the top. | |
2974 | ||
35909161 UD |
2975 | 2003-04-14 Ulrich Drepper <drepper@redhat.com> |
2976 | ||
18ddd3aa | 2977 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't |
35909161 UD |
2978 | overflow CFA advance instructions. |
2979 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. | |
2980 | ||
18a8e730 UD |
2981 | 2003-04-14 Jakub Jelinek <jakub@redhat.com> |
2982 | ||
bd4f43b4 UD |
2983 | * sysdeps/i386/tls.h: Rename LOCK to LOCK_PREFIX. |
2984 | * sysdeps/i386/pthread_spin_lock.c: Likewise. | |
2985 | * sysdeps/x86_64/tls.h: Likewise. Define LOCK_PREFIX if not already | |
2986 | defined. | |
2987 | ||
18a8e730 UD |
2988 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Use |
2989 | DW_CFA_advance_loc2 for .Laddl-.Lsubl. | |
2990 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use | |
2991 | DW_CFA_advance_loc for .Laddl-.Lsubl. | |
2992 | ||
08c765fa UD |
2993 | 2003-04-13 Ulrich Drepper <drepper@redhat.com> |
2994 | ||
18a8e730 UD |
2995 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Don't use |
2996 | position-independent unwind data for static libraries. | |
2997 | Add missing unwind info. Add comments. | |
2998 | ||
ad2be852 UD |
2999 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Add unwind info. |
3000 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. | |
3001 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. | |
08c765fa UD |
3002 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. |
3003 | ||
177d1ad3 UD |
3004 | 2003-04-12 Ulrich Drepper <drepper@redhat.com> |
3005 | ||
08c765fa UD |
3006 | * Makefile: Make sure all cancellation points are compiled with |
3007 | exception and asynchronous unwind tables. | |
3008 | ||
177d1ad3 UD |
3009 | * sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug |
3010 | which mishandles loading of global object addresses in PIC. | |
3011 | (THREAD_SETMEM_NC): Likewise. | |
3012 | ||
09d65ff3 UD |
3013 | 2003-04-11 Ulrich Drepper <drepper@redhat.com> |
3014 | ||
3015 | * pthread.h: Define new data structure for cleanup buffer. Declare | |
3016 | new cleanup handler interfaces. | |
3017 | * descr.h: Include <unwind.h> if necessary. Define pthread_unwind_buf. | |
3018 | (struct pthread): Add cleanup_jmp_buf pointer. Define | |
3019 | HAVE_CLEANUP_JMP_BUF and not HAVE_CANCELBUF. | |
3020 | * pthreadP.h: Declare __pthread_unwind. Define __do_cancel to use | |
3021 | it. Declare old cleanup handler installation functions. | |
3022 | * cleanup.c: Rewrite. Install handler for unwind-based cleanup | |
3023 | handling. | |
3024 | * cleanup_defer.c: Likewise. | |
3025 | * cleanup_compat.c: New file. Old cleanup code. | |
3026 | * cleanup_def_compat.c: New file. Old cleanup code. | |
3027 | * pthread_create.c (start_thread): Initialize cleanup_jmp_buf element | |
3028 | if own thread descriptor. | |
3029 | * unwind.c: New file. | |
3030 | * forward.c: Add __pthread_unwind. | |
3031 | * init.c (pthread_functions): Add __pthread_unwind. | |
3032 | * sysdeps/pthread/pthread-functions.s (struct pthread_functions): | |
3033 | Add ptr___pthread_unwind. | |
3034 | * Versions [GLIBC_2.3.3] (libpthread): Export new cleanup handling | |
3035 | and unwind function. | |
3036 | * Makefile (libpthread-routines): Add cleanup_compat, | |
3037 | cleanup_def_compat, and unwind. Define CFLAGS to enable unwind | |
3038 | table generation if necessary. | |
3039 | * version.c: Record whether unwind support is compiled in. | |
3040 | * sysdeps/pthread/configure.in: Add checks for unwind unterfaces. | |
3041 | * sysdeps/pthread/bits/libc-lock.h: Add prototypes of the old cleanup | |
3042 | handler interfaces. | |
3043 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add quite a bit of | |
3044 | complication to generate unwind information for syscall wrappers. | |
68107ec0 | 3045 | * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise. |
09d65ff3 UD |
3046 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define |
3047 | __cleanup_fct_attribute. | |
3048 | ||
3049 | * Makefile: Add rules to build and run tst-cleanup0. | |
3050 | * tst-cleanup0.c: New file. | |
3051 | * tst-cleanup0.expect: New file. | |
3052 | ||
3053 | * pthread_create.c (deallocate_tsd): Don't take parameter. Adjust | |
3054 | caller. Optimize to avoid often unecessary local variable. | |
3055 | ||
0dc44b51 RM |
3056 | 2003-04-11 Roland McGrath <roland@redhat.com> |
3057 | ||
3058 | * Makefile ($(objpfx)multidir.mk): New target, generated makefile that | |
3059 | sets variable `multidir'; include that. | |
3060 | (generated): Add it. | |
3061 | ($(objpfx)$(multidir)/crti.o): New target. | |
3062 | [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it. | |
3063 | ||
84a80719 UD |
3064 | 2003-04-11 Ulrich Drepper <drepper@redhat.com> |
3065 | ||
3066 | * tst-attr2.c (do_test): Add cast to avoid warning. | |
3067 | * tst-mutex4.c (do_test): Likewise. | |
3068 | ||
88ff4759 UD |
3069 | 2003-04-10 Ulrich Drepper <drepper@redhat.com> |
3070 | ||
3071 | * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset CPU clocks | |
3072 | in child. | |
3073 | ||
b2041097 UD |
3074 | 2003-04-09 Ulrich Drepper <drepper@redhat.com> |
3075 | ||
3076 | * Makefile (tests): Add tst-detach1. | |
3077 | * tst-detach1.c: New file. | |
3078 | ||
f9657e88 UD |
3079 | 2003-04-08 Ulrich Drepper <drepper@redhat.com> |
3080 | ||
9afe4964 UD |
3081 | * sysdeps/pthread/pthread.h: Remove duplicate |
3082 | pthread_cleanup_{push,pop} definitions. | |
3083 | ||
f9657e88 UD |
3084 | * tst-barrier2.c: Eliminate warnings. |
3085 | * tst-cancel4.c: Likewise. | |
3086 | * tst-cond4.c: Likewise. | |
3087 | * tst-cond6.c: Likewise. | |
3088 | * tst-detach1.c: Likewise. | |
3089 | * tst-rwlock4.c: Likewise. | |
3090 | * tst-rwlock6.c: Likewise. | |
3091 | * tst-rwlock7.c: Likewise. | |
3092 | * tst-sem3.c: Likewise. | |
3093 | * tst-spin2.c: Likewise. | |
3094 | * tst-umask1.c: Likewise. | |
3095 | ||
69b35e86 UD |
3096 | 2003-04-07 Ulrich Drepper <drepper@redhat.com> |
3097 | ||
3098 | * pthread_detach.c (pthread_detach): Fix test for invalid TID. | |
3099 | ||
c70ad7d7 UD |
3100 | 2003-04-06 Ulrich Drepper <drepper@redhat.com> |
3101 | ||
3102 | * descr.h (struct pthread): Move cancelhandling member to the front. | |
3103 | ||
54e0138f UD |
3104 | 2003-04-05 Ulrich Drepper <drepper@redhat.com> |
3105 | ||
3106 | * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare, | |
3107 | malloc_parent, and malloc_child statically. | |
3108 | (__register_atfork_malloc): New function. | |
3109 | (free_mem): Don't free any of the malloc_* variables on the list. | |
3110 | * sysdeps/unix/sysv/linux/fork.h: Declare __register_atfork_malloc. | |
3111 | Define HAVE_register_atfork_malloc. | |
3112 | ||
b22d701b UD |
3113 | 2003-04-04 Ulrich Drepper <drepper@redhat.com> |
3114 | ||
3115 | * sysdeps/pthread/createthread.c (create_thread): Add some more | |
3116 | comments explaining when to set multiple_threads and when not. | |
3117 | ||
3118 | * pthreadP.h: Define THREAD_ATOMIC_CMPXCHG_VAL and | |
3119 | THREAD_ATOMIC_BIT_SET if not already defined. | |
3120 | * sysdeps/i386/tls.h: Define THREAD_ATOMIC_CMPXCHG_VAL and | |
3121 | THREAD_ATOMIC_BIT_SET: | |
3122 | * sysdeps/x86_64/tls.h: Likewise. | |
3123 | * cleanup_defer.c (_pthread_cleanup_push_defer): Rewrite to use | |
3124 | THREAD_ATOMIC_CMPXCHG_VAL. | |
3125 | (_pthread_cleanup_pop_restore): Likewise. | |
3126 | * cancellation.c (__pthread_enable_asynccancel): Likewise. | |
3127 | (__pthread_enable_asynccancel_2): Likewise. | |
3128 | (__pthread_disable_asynccancel): Likewise. | |
3129 | * libc-cancellation.c (__libc_enable_asynccancel): Likewise. | |
3130 | (__libc_disable_asynccancel): Likewise. | |
3131 | * init.c (sigcancel_handler): Likewise. | |
3132 | * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise. | |
3133 | * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise. | |
3134 | ||
86246935 UD |
3135 | 2003-04-03 Ulrich Drepper <drepper@redhat.com> |
3136 | ||
3137 | * init.c (sigcancel_handler): Don't set EXITING_BIT here. | |
3138 | * libc-cancellation.c (__libc_enable_asynccancel): Likewise. | |
3139 | * pthreadP.h (__do_cancel): Set EXITING_BIT here. | |
3140 | * Makefile (tests): Add tst-cancel11. | |
3141 | * tst-cancel11.c: New file. | |
3142 | ||
6b4686a5 UD |
3143 | 2003-04-01 Ulrich Drepper <drepper@redhat.com> |
3144 | ||
3145 | * pthread_create.c (deallocate_tsd): Clear/free memory after the last | |
3146 | round, not the first. Use specific_used flag instead of local | |
3147 | found_nonzero variable. Use THREAD_[SG]ETMEM where possible. | |
3148 | (__free_tcb): Don't call deallocate_tsd here. | |
3149 | (start_thread): Call deallocate_tsd here. | |
3150 | * pthread_setspecific.c: Set specific_used flag really only when | |
3151 | needed. | |
0d73a73b | 3152 | * Makefile (tests): Add tst-tsd3.c and tst-tsd4. |
6b4686a5 | 3153 | * tst-tsd3.c: New file. |
0d73a73b | 3154 | * tst-tsd4.c: New file. |
6b4686a5 | 3155 | |
42b2395d UD |
3156 | 2003-03-31 Ulrich Drepper <drepper@redhat.com> |
3157 | ||
211d90c5 UD |
3158 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock): |
3159 | Use atomic_exchange_and_add instead of __lll_add. | |
3160 | (__lll_mutex_timedlock): Likewise. | |
3161 | Patch by Ian Wienand. | |
3162 | ||
3163 | 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com> | |
3164 | ||
3165 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h | |
3166 | (SINGLE_THREAD_P): Fix typo. | |
3167 | * tst-cancel-wrappers.sh: Handle '.'ed symbols. | |
3168 | ||
3169 | 2003-03-31 Ulrich Drepper <drepper@redhat.com> | |
3170 | ||
3171 | * Makefile (tests): Add tst-align. | |
3172 | * tst-align.c: New file. | |
3173 | * sysdeps/i386/Makefile: Define CFLAGS-tst-align. | |
211d90c5 | 3174 | |
42b2395d UD |
3175 | * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called |
3176 | function correctly. | |
3177 | ||
211d90c5 UD |
3178 | * tst-tsd2.c: Add casts to avoid warnings. |
3179 | ||
163b180f UD |
3180 | 2003-03-30 Ulrich Drepper <drepper@redhat.com> |
3181 | ||
3182 | * descr.h (struct pthread): Move most often used elements to the front. | |
3183 | ||
ea473bad UD |
3184 | 2003-03-29 Ulrich Drepper <drepper@redhat.com> |
3185 | ||
3186 | * Makefile (libpthread-routines): Add pthread_atfork. | |
3187 | (libpthread-static-only-routines): Add pthread_atfork. | |
3188 | ||
dd731d53 UD |
3189 | 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
3190 | ||
3191 | * sysdeps/sh/tls.h: Include nptl/descr.h after the definition | |
3192 | of TLS_DTV_AT_TP. | |
3193 | (INSTALL_DTV): Add parens. | |
3194 | (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC): | |
3195 | Use passed descr instead of THREAD_SELF. | |
3196 | * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S | |
3197 | (__lll_mutex_timedlock_wait): Correct expected value after | |
3198 | spurious wakeup. | |
3199 | * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: | |
3200 | Release lock before waking up the waiters. | |
3201 | * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit | |
3202 | criteria. Reorderstruct passed to cleanup handler. Fix | |
3203 | handling of cancellation and failung pthread_mutex_unlock call. | |
3204 | Use __pthread_enable_asynccancel_2 instead of | |
3205 | __pthread_enable_asynccancel. | |
3206 | * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise. | |
3207 | Return result of lock re-get if it fails. | |
3208 | * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument | |
3209 | for __pthread_cleanup_push. | |
3210 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix | |
3211 | completely broken rwlock implementation. | |
3212 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise. | |
3213 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise. | |
3214 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise. | |
3215 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise. | |
3216 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise. | |
3217 | * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use | |
3218 | versioned_symbol macro. | |
3219 | * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro. | |
3220 | * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise. | |
3221 | ||
c75d02f0 UD |
3222 | 2003-03-27 Ulrich Drepper <drepper@redhat.com> |
3223 | ||
5f5004df UD |
3224 | * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare |
3225 | __timer_helper_thread. Declare __start_helper_thread, __helper_once, | |
3226 | and __helper_tid. | |
3227 | (struct timer): Remove th and bar field. | |
3228 | * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove | |
3229 | debugging code. Create only one helper thread. | |
3230 | * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill | |
3231 | helper thread. | |
3232 | * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread): | |
3233 | Renamed. Define statically. Use thread info from siginfo. | |
3234 | (__helper_once): New variable. | |
3235 | (__helper_tid): New variable. | |
3236 | (__reset_helper_control): New function. | |
3237 | (__start_helper_thread): New function. | |
3238 | ||
18d009ca UD |
3239 | * pthread_create.c (start_thread): Don't use setjmp inside |
3240 | __builtin_expect to work around gcc bug. | |
3241 | ||
c75d02f0 UD |
3242 | * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if |
3243 | timer_delete syscall fails, but not with ENOSYS, set | |
3244 | __no_posix_timers. | |
3245 | ||
3246 | * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS] | |
3247 | (timer_settime): Fix typo. | |
28cf3058 UD |
3248 | * sysdeps/unix/sysv/linux/timer_getoverr.c |
3249 | [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise. | |
c75d02f0 | 3250 | |
049ac259 JJ |
3251 | 2003-03-27 Jakub Jelinek <jakub@redhat.com> |
3252 | ||
3253 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix | |
3254 | offset of cleanupbuf.__prev. | |
3255 | ||
f93d39dd JJ |
3256 | 2003-03-26 Jakub Jelinek <jakub@redhat.com> |
3257 | ||
3258 | * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name | |
3259 | of included file. | |
3260 | ||
f064e4c5 UD |
3261 | 2003-03-26 Ulrich Drepper <drepper@redhat.com> |
3262 | ||
3263 | * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP == | |
3264 | NULL provide default definition to syscall. | |
3265 | ||
83e886a3 RM |
3266 | 2003-03-25 Roland McGrath <roland@redhat.com> |
3267 | ||
3268 | * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined. | |
3269 | (timer_id2ptr): Fix typo. | |
3270 | ||
09402f5b UD |
3271 | 2003-03-25 Ulrich Drepper <drepper@redhat.com> |
3272 | ||
3273 | * pthreadP.h: Define SIGCANCEL and SIGTIMER. | |
3274 | * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition. | |
3275 | * sysdeps/ia64/pthreaddef.h: Likewise. | |
3276 | * sysdeps/powerpc/pthreaddef.h: Likewise. | |
3277 | * sysdeps/s390/pthreaddef.h: Likewise. | |
3278 | * sysdeps/sh/pthreaddef.h: Likewise. | |
3279 | * sysdeps/x86_64/pthreaddef.h: Likewise. | |
3280 | * init.c (__pthread_initialize_minimal): Block SIGTIMER. | |
3281 | * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from | |
3282 | being changed. | |
3283 | * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure | |
3284 | SIGTIMER is not unblocked. | |
3285 | * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more | |
3286 | RT signal taken. | |
3287 | * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to | |
3288 | be send. | |
3289 | * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just | |
3290 | pass pointer through as ID. | |
3291 | * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed. | |
3292 | * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file. | |
3293 | * sysdeps/unix/sysv/linux/timer_create.c: New file. | |
3294 | * sysdeps/unix/sysv/linux/timer_delete.c: New file. | |
3295 | * sysdeps/unix/sysv/linux/timer_getoverr.c: New file. | |
3296 | * sysdeps/unix/sysv/linux/timer_gettime.c: New file. | |
3297 | * sysdeps/unix/sysv/linux/timer_routines.c: New file. | |
3298 | * sysdeps/unix/sysv/linux/timer_settime.c: New file. | |
3299 | * sysdeps/unix/sysv/linux/ia64/Versions: New file. | |
3300 | * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file. | |
3301 | * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file. | |
3302 | * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file. | |
3303 | * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file. | |
3304 | * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file. | |
3305 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file. | |
3306 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file. | |
3307 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file. | |
3308 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file. | |
3309 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file. | |
3310 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file. | |
3311 | * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file. | |
3312 | * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file. | |
3313 | * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file. | |
3314 | * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file. | |
3315 | * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file. | |
3316 | * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file. | |
3317 | * sysdeps/unix/sysv/linux/x86_64/Versions: New file. | |
3318 | * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file. | |
3319 | * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file. | |
3320 | * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file. | |
3321 | * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file. | |
3322 | * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file. | |
3323 | * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file. | |
3324 | ||
3325 | * pthreadP.h: Remove FRAME_LEFT definition. | |
3326 | * cleanup.c (_pthread_cleanup_push): Don't check for reference to | |
3327 | already left frame. Programs which have this problem are not POSIX | |
3328 | compliant. | |
3329 | * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise. | |
3330 | ||
5e826ab5 UD |
3331 | 2003-03-24 Ulrich Drepper <drepper@redhat.com> |
3332 | ||
3333 | * sysdeps/pthread/tst-timer.c: Check return values of the | |
3334 | functions we test. | |
3335 | ||
b910f788 RM |
3336 | 2003-03-23 Roland McGrath <roland@redhat.com> |
3337 | ||
3045a1fe RM |
3338 | * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything. |
3339 | * tst-tls3mod.c: Likewise. | |
3340 | * tst-tls1.c: Likewise. | |
3341 | * tst-tls2.c: Likewise. | |
3342 | ||
85047fe3 RM |
3343 | * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke |
3344 | undefined behavior. | |
3345 | ||
b910f788 RM |
3346 | * tst-join5.c (tf1, tf2): Add a cast. |
3347 | ||
3348 | * Makeconfig (includes): Append -I$(..)nptl to this variable. | |
3349 | ||
3350 | * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]: | |
3351 | Don't test anything. | |
3352 | * tst-cond4.c: Likewise. | |
3353 | * tst-cond6.c: Likewise. | |
3354 | * tst-flock2.c: Likewise. | |
3355 | * tst-mutex4.c: Likewise. | |
3356 | * tst-rwlock4.c: Likewise. | |
3357 | * tst-signal1.c: Likewise. | |
3358 | * tst-spin2.c: Likewise. | |
3359 | * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise. | |
3360 | ||
3361 | * tst-mutex4.c: Use test-skeleton.c. | |
3362 | * tst-spin2.c: Likewise. | |
3363 | * tst-sysconf.c: Likewise. | |
3364 | * tst-barrier2.c: Likewise. | |
3365 | * tst-cond4.c: Likewise. | |
3366 | * tst-cond6.c: Likewise. | |
3367 | * tst-rwlock4.c: Likewise. | |
3368 | * tst-unload.c: Likewise. | |
3369 | * tst-flock2.c (do_test): Use return instead of exit. | |
3370 | ||
4baa087a RM |
3371 | 2003-03-22 Jakub Jelinek <jakub@redhat.com> |
3372 | ||
3373 | * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def. | |
3374 | ||
5a3ab2fc UD |
3375 | 2003-03-21 Ulrich Drepper <drepper@redhat.com> |
3376 | ||
9f07eae2 UD |
3377 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h |
3378 | (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq | |
3379 | instead of __lll_compare_and_swap. | |
3380 | * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once): | |
3381 | Likewise. | |
3382 | Removed definition if __lll_compare_and_swap. | |
3383 | ||
5a3ab2fc UD |
3384 | * cancellation.c: Adjust for new form of compare&exchange macros. |
3385 | * cleanup_defer.c: Likewise. | |
3386 | * init.c: Likewise. | |
3387 | * libc-cancellation.c: Likewise. | |
3388 | * old_pthread_cond_broadcast.c: Likewise. | |
3389 | * old_pthread_cond_signal.c: Likewise. | |
3390 | * old_pthread_cond_timedwait.c: Likewise. | |
3391 | * old_pthread_cond_wait.c: Likewise. | |
3392 | * pthread_cancel.c: Likewise. | |
3393 | * pthread_create.c: Likewise. | |
3394 | * pthread_detach.c: Likewise. | |
3395 | * pthread_join.c: Likewise. | |
3396 | * pthread_key_delete.c: Likewise. | |
3397 | * pthread_setcancelstate.c: Likewise. | |
3398 | * pthread_setcanceltype.c: Likewise. | |
3399 | * pthread_timedjoin.c: Likewise. | |
3400 | * pthread_tryjoin.c: Likewise. | |
3401 | * sysdeps/pthread/createthread.c: Likewise. | |
3402 | ||
b1aea098 UD |
3403 | 2003-03-20 Ulrich Drepper <drepper@redhat.com> |
3404 | ||
3405 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>. | |
4baa087a | 3406 | Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set |
b1aea098 UD |
3407 | definitions. Replace uses with calls to atomic_* functions. |
3408 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise. | |
3409 | * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and | |
3410 | __lll_test_and_set calls with atomic_exchange_and_add and | |
3411 | atomic_exchange calls respectively. | |
3412 | * sysdeps/unix/sysv/linux/sem_post.c: Likewise. | |
3413 | * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise. | |
3414 | * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise. | |
3415 | * sysdeps/unix/sysv/linux/sem_wait.c: Likewise. | |
3416 | * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise. | |
3417 | * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise. | |
3418 | * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise. | |
3419 | ||
3420 | * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add | |
3421 | returns the old value. | |
3422 | ||
100a7100 RM |
3423 | 2003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com> |
3424 | ||
3425 | * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type | |
3426 | int for variable OLDVAL and correct inline assembler contraint. | |
3427 | * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use | |
3428 | type int for variable OLD. | |
3429 | ||
3430 | * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it | |
3431 | only for s390-32. | |
3432 | * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h | |
3433 | (SINGLE_THREAD_P): Use global variable __local_multiple_threads | |
3434 | instead of multiple_threads field in the TCB. | |
3435 | ||
95767b36 UD |
3436 | 2003-03-19 Ulrich Drepper <drepper@redhat.com> |
3437 | ||
4009bf40 UD |
3438 | * sysdeps/i386/i686/bits/atomic.h: Removed. |
3439 | * sysdeps/i386/i586/bits/atomic.h: Removed. | |
3440 | * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc. | |
3441 | * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc. | |
3442 | * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc. | |
3443 | * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc. | |
3444 | * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc. | |
3445 | * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc. | |
3446 | * atomic.h: Removed. Moved to glibc. | |
3447 | ||
560a784f UD |
3448 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add |
3449 | support for clock selection. | |
3450 | ||
95767b36 UD |
3451 | * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before |
3452 | signalling waiters. | |
3453 | ||
043ad426 RM |
3454 | 2003-03-18 Roland McGrath <roland@redhat.com> |
3455 | ||
94659495 RM |
3456 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set): |
3457 | Add __lll_rel_instr first. Add memory clobber. | |
3458 | (lll_mutex_unlock): Use __lll_test_and_set. | |
3459 | From Paul Mackerras <paulus@samba.org>. | |
3460 | ||
3461 | * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define | |
3462 | unconditionally. | |
3463 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h | |
3464 | (SINGLE_THREAD_P): Add `header.' prefix. | |
3465 | From Paul Mackerras <paulus@samba.org>. | |
3466 | ||
043ad426 RM |
3467 | * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and |
3468 | pthread_timedjoin_np to ... | |
3469 | (libpthread: GLIBC_2.3.3): ... here. | |
3470 | (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too. | |
3471 | ||
3472 | * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait): | |
3473 | Avoid shadowing VAL variable. | |
3474 | ||
3475 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set): | |
3476 | New macro. | |
3477 | ||
86a9ee5e UD |
3478 | 2003-03-18 Ulrich Drepper <drepper@redhat.com> |
3479 | ||
ac9e0aa1 UD |
3480 | * Makefile (tests): Add tst-cond11. |
3481 | * tst-cond11.c: New file. | |
3482 | ||
a14b373c UD |
3483 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder |
3484 | struct passed to cleanup handler to eliminate one more | |
3485 | instruction. | |
3486 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
3487 | ||
24a49f38 UD |
3488 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h |
3489 | (pthrad_cond_t): Replace __unused field with __clock. | |
3490 | ||
3491 | * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before | |
3492 | waken all waiters in cleanup handler. | |
3493 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. | |
3494 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. | |
3495 | ||
86a9ee5e UD |
3496 | * pthread_condattr_getclock.c: New file. |
3497 | * pthread_condattr_setclock.c: New file. | |
3498 | * sysdeps/pthread/pthread.h: Declare these new functions. | |
3499 | * Versions [GLIBC_2.3.3] (libpthread): Add the new functions. | |
3500 | * Makefile (libpthread-routines): Add the new functions. | |
3501 | * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr): | |
3502 | Renamed field to value. Document use of the bits. | |
3503 | * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr | |
3504 | change. | |
3505 | * pthread_condattr_setpshared.c: Likewise. | |
d5cb8389 | 3506 | * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field. |
86a9ee5e UD |
3507 | * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol. |
3508 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t): | |
3509 | Add __clock field. | |
3510 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. | |
3511 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. | |
3512 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. | |
3513 | * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise. | |
3514 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: | |
3515 | Implement clock selection. | |
3516 | * sysdeps/pthread/pthread_cond_timedwait.c: Likewise. | |
3517 | * pthread-errnos.sym: Add ENOSYS. | |
3518 | * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define | |
3519 | _POSIX_CLOCK_SELECTION. | |
3520 | * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise. | |
3521 | ||
3522 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove | |
3523 | invalid .size directive. | |
3524 | ||
98054a05 RM |
3525 | 2003-03-17 Roland McGrath <roland@redhat.com> |
3526 | ||
3527 | * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait): | |
3528 | Formatting tweaks. | |
3529 | ||
001bea71 UD |
3530 | 2003-03-17 Ulrich Drepper <drepper@redhat.com> |
3531 | ||
4773086e UD |
3532 | * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect. |
3533 | Use __lll_add instead of spelling it out. Use protected symbol names. | |
3534 | * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect. | |
3535 | Use __lll_add. | |
3536 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap): | |
3537 | Renamed from lll_compare_and_swap. Use new name where necessary. | |
3538 | (__lll_add): Defined. | |
3539 | (__lll_dec_if_positive): Defined. | |
3540 | (__lll_test_and_set): Defined. | |
3541 | * sysdeps/ia64/pthread_spin_init.c: Removed. | |
3542 | * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed. | |
3543 | * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed. | |
3544 | * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed. | |
3545 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed. | |
3546 | * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed. | |
3547 | * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed. | |
3548 | * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed. | |
001bea71 UD |
3549 | * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate. |
3550 | * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use | |
3551 | __sync_lock_release_si. | |
3552 | Patch by Jakub Jelinek. | |
3553 | ||
3554 | * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): | |
3555 | Fix timeout handling. | |
3556 | (__lll_timedwait_tid): Likewise. | |
3557 | (lll_unlock_wake_cb): Wake up other waiters if necessary. | |
3558 | Patch by Jakub Jelinek. | |
3559 | ||
3560 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing. | |
3561 | ||
de4471dd RM |
3562 | 2003-03-17 Roland McGrath <roland@redhat.com> |
3563 | ||
3564 | PowerPC port contributed by Paul Mackerras <paulus@samba.org>. | |
3565 | * sysdeps/pthread/pthread_spin_init.c: New file. | |
3566 | * sysdeps/pthread/pthread_spin_unlock.c: New file. | |
3567 | * sysdeps/powerpc/Makefile: New file. | |
3568 | * sysdeps/powerpc/pthread_spin_lock.c: New file. | |
3569 | * sysdeps/powerpc/pthread_spin_trylock.c: New file. | |
3570 | * sysdeps/powerpc/pthreaddef.h: New file. | |
3571 | * sysdeps/powerpc/tcb-offsets.sym: New file. | |
3572 | * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file. | |
3573 | * sysdeps/powerpc/tls.h: New file. | |
3574 | * sysdeps/powerpc/bits/atomic.h: New file. | |
3575 | * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file. | |
3576 | * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file. | |
3577 | * sysdeps/unix/sysv/linux/lowlevellock.c: New file. | |
98054a05 | 3578 | |
de4471dd RM |
3579 | * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file. |
3580 | * sysdeps/unix/sysv/linux/sem_post.c: New file. | |
3581 | * sysdeps/unix/sysv/linux/sem_timedwait.c: New file. | |
3582 | * sysdeps/unix/sysv/linux/sem_trywait.c: New file. | |
3583 | * sysdeps/unix/sysv/linux/sem_wait.c: New file. | |
3584 | * sysdeps/unix/sysv/linux/powerpc/Makefile: New file. | |
3585 | * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file. | |
3586 | * sysdeps/unix/sysv/linux/powerpc/fork.c: New file. | |
3587 | * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file. | |
3588 | * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file. | |
3589 | * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file. | |
3590 | * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file. | |
3591 | * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file. | |
3592 | * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file. | |
3593 | * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file. | |
3594 | ||
3595 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday, | |
3596 | not gettimeofday. | |
3597 | * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise. | |
3598 | * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise. | |
3599 | * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise. | |
3600 | * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise. | |
3601 | * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise. | |
3602 | ||
5778033f UD |
3603 | 2003-03-17 Ulrich Drepper <drepper@redhat.com> |
3604 | ||
3605 | * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria. | |
3606 | * sysdeps/pthread/pthread_cond_timedwait.c: Likewise. | |
3607 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
3608 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. | |
3609 | Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>. | |
3610 | ||
796038f8 RM |
3611 | 2003-03-16 Roland McGrath <roland@redhat.com> |
3612 | ||
3613 | * tst-fork4.c: Include <string.h>. | |
3614 | * tst-signal2.c: Likewise. | |
3615 | * tst-mutex5.c (do_test): exit -> return. | |
3616 | * tst-mutex2.c: Include <stdlib.h>. | |
3617 | ||
51d0678c UD |
3618 | 2003-03-16 Ulrich Drepper <drepper@redhat.com> |
3619 | ||
5778033f UD |
3620 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S |
3621 | (__lll_mutex_timedlock_wait): Correct expected value after | |
3622 | spurious wakeup. Otherwise we would never wait again. | |
3623 | ||
b6e2f87a UD |
3624 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red |
3625 | zone versus inline asm stupidity. Use correct instructions. | |
3626 | ||
51d0678c UD |
3627 | * tst-rwlock6.c: Add some more status output. |
3628 | ||
8112cc70 RM |
3629 | 2003-03-15 Roland McGrath <roland@redhat.com> |
3630 | ||
3631 | * sysdeps/pthread/configure.in: New file. | |
3632 | * sysdeps/pthread/configure: New file (generated). | |
3633 | ||
49773c19 UD |
3634 | 2003-03-15 Ulrich Drepper <drepper@redhat.com> |
3635 | ||
3636 | * allocatestack.c (allocate_stack): Store the exact stack size of | |
3637 | user allocated stacks. | |
3638 | ||
eec0ca9f JJ |
3639 | 2003-03-15 Jakub Jelinek <jakub@redhat.com> |
3640 | ||
3641 | * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h | |
3642 | (SINGLE_THREAD): Use `header' prefix instead of `header.data'. | |
3643 | * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise. | |
3644 | * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define. | |
3645 | * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P): | |
3646 | Use `header.' prefix. | |
3647 | * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise. | |
3648 | ||
a87731e2 UD |
3649 | 2003-03-15 Ulrich Drepper <drepper@redhat.com> |
3650 | ||
3651 | * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use | |
3652 | __builtin_frame_address, use stack pointer. | |
3653 | ||
3654 | * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME | |
3655 | instead of __builtin_frame_pointer. | |
3656 | ||
e22a221d UD |
3657 | 2003-03-14 Ulrich Drepper <drepper@redhat.com> |
3658 | ||
92ed3daf UD |
3659 | * tst-basic1.c (do_test): Add cast to avoid warning. |
3660 | * tst-basic2.c (do_test): Likewise. | |
3661 | ||
9b89567d UD |
3662 | * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct |
3663 | amount of stack correction. | |
3664 | ||
e22a221d UD |
3665 | * tst-fork4.c: Use test-skeleton.c. |
3666 | ||
2e49caba RM |
3667 | 2003-03-14 Roland McGrath <roland@redhat.com> |
3668 | ||
3669 | * init.c: Fix typo "#eli" for "#else". | |
3670 | ||
415ef7d8 RM |
3671 | 2003-03-14 Steven Munroe <sjmunroe@us.ibm.com> |
3672 | ||
3673 | * allocatestack.c (__stack_user): Use hidden_data_def. | |
3674 | * pthread_create.c (__pthread_keys): Likewise. | |
3675 | ||
3676 | * init.c [__powerpc__] (__NR_set_tid_address): Define it. | |
3677 | ||
52287505 RM |
3678 | 2003-03-14 Roland McGrath <roland@redhat.com> |
3679 | ||
415ef7d8 RM |
3680 | * tst-fork4.c: New file. |
3681 | * Makefile (tests): Add it. | |
3682 | ||
52287505 RM |
3683 | * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so |
3684 | we always define the padding space. | |
3685 | [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC | |
3686 | stopped supporting its own extensions fully. | |
3687 | [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper | |
3688 | struct also called `header', so `header.multiple_threads' is the field | |
3689 | name to use on all machines. | |
3690 | * allocatestack.c (allocate_stack): Use `header.' prefix. | |
3691 | * sysdeps/pthread/createthread.c (create_thread): Likewise. | |
3692 | * pthread_create.c (__pthread_create_2_1): Likewise. | |
3693 | * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise. | |
3694 | (THREAD_SELF): Likewise. | |
3695 | * sysdeps/x86_64/tls.h: Likewise. | |
3696 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h | |
3697 | (SINGLE_THREAD_P): Likewise. | |
3698 | * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h | |
3699 | (SINGLE_THREAD_P): Likewise. | |
3700 | * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h | |
3701 | (SINGLE_THREAD_P): Likewise. | |
3702 | ||
3703 | * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18] | |
3704 | value directly. | |
3705 | ||
c44bf9aa UD |
3706 | 2003-03-14 Ulrich Drepper <drepper@redhat.com> |
3707 | ||
e22a221d UD |
3708 | * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined. |
3709 | * sysdeps/i386/tls.h: Define CALL_THREAD_FCT. | |
3710 | ||
0eb18281 UD |
3711 | * pthread_create.c (start_thread): setjmp is expected to return 0. |
3712 | ||
c44bf9aa UD |
3713 | * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile. |
3714 | (THREAD_GETMEM_NC): Likewise. | |
3715 | ||
564cd8b6 UD |
3716 | 2003-03-13 Ulrich Drepper <drepper@redhat.com> |
3717 | ||
3718 | * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined | |
3719 | and the size of the stack which must be allocated is a multiple, | |
3720 | allocate one more page. | |
3721 | * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but | |
3722 | MULTI_PAGE_ALIASING. | |
3723 | ||
6461e577 RM |
3724 | 2003-03-13 Roland McGrath <roland@redhat.com> |
3725 | ||
3726 | * pthread_create.c (start_thread): Set EXITING_BIT after the | |
3727 | event-reporting (and destructors), not before. | |
3728 | ||
b5ec5617 UD |
3729 | 2003-03-13 Jakub Jelinek <jakub@redhat.com> |
3730 | ||
6461e577 RM |
3731 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait, |
3732 | lll_futex_wake): Declare register variables as long int instead of | |
3733 | unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>. | |
3734 | Make syscall arguments clobbered by the syscall. | |
3735 | (lll_futex_wait): Define using lll_futex_timed_wait. | |
3736 | ||
3737 | * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13] | |
3738 | to void *. | |
3739 | ||
3740 | * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set | |
3741 | PPID if [! NDEBUG]. | |
3742 | ||
3743 | * allocatestack.c (nptl_ncreated): Only declare if | |
3744 | COLORING_INCREMENT != 0. | |
3745 | ||
3746 | * pthreadP.h (__pthread_enable_asynccancel_2): New prototype. | |
3747 | (__libc_enable_asynccancel_2): Remove prototype. | |
3748 | ||
b5ec5617 UD |
3749 | * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and |
3750 | ctid to match kernel. | |
3751 | ||
d0369fb8 UD |
3752 | 2003-03-12 Ulrich Drepper <drepper@redhat.com> |
3753 | ||
7588880f UD |
3754 | * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add |
3755 | libc_multiple_threads. | |
3756 | * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of | |
3757 | __libc_multiple_threads to... | |
3758 | * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file. | |
3759 | ||
3760 | * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary | |
3761 | versioning. | |
3762 | * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise. | |
3763 | * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise. | |
3764 | ||
3765 | * sysdeps/unix/sysv/linux/x86_64/pthread_once.S | |
3766 | (__pthread_once_internal): Define. | |
3767 | ||
3768 | * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h | |
3769 | macros instead of .symver directly. | |
3770 | * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise. | |
3771 | * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise. | |
3772 | ||
d0369fb8 UD |
3773 | * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h. |
3774 | * sysdeps/x86_64/tcb-offsets.sym: New file. | |
3775 | * sysdeps/x86_64/Makefile: New file. | |
3776 | ||
3777 | * sysdeps/i386/tcb-offsets.sym: Add SELF. | |
3778 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF | |
3779 | to access own pthread_t in TCB. | |
3780 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: | |
3781 | Likewise. | |
3782 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: | |
3783 | Likewise. | |
3784 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise. | |
3785 | ||
0bb2ac85 RM |
3786 | 2003-03-12 Roland McGrath <roland@redhat.com> |
3787 | ||
3788 | * pthread-errnos.sym: New file. | |
3789 | * Makefile (gen-as-const-headers): New variable, list that file. | |
3790 | * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated | |
3791 | header <pthread-errnos.h> instead of defining errno values here. | |
3792 | * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise. | |
3793 | * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise. | |
3794 | * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise. | |
3795 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise. | |
3796 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: | |
3797 | Likewise. | |
3798 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: | |
3799 | Likewise. | |
3800 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise. | |
3801 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
3802 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise. | |
3803 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise. | |
3804 | * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise. | |
3805 | * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise. | |
3806 | * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise. | |
3807 | * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise. | |
3808 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. | |
3809 | * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise. | |
3810 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise. | |
3811 | * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise. | |
3812 | * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise. | |
3813 | * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise. | |
3814 | * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise. | |
3815 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise. | |
3816 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise. | |
3817 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise. | |
3818 | * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise. | |
3819 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise. | |
3820 | * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise. | |
3821 | * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise. | |
3822 | * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise. | |
3823 | * sysdeps/x86_64/pthread_spin_trylock.S: Likewise. | |
3824 | * sysdeps/sh/pthread_spin_trylock.S: Likewise. | |
3825 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise. | |
3826 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise. | |
3827 | ||
3828 | * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that | |
3829 | CLONE_CHILD_SETTID worked. | |
3830 | ||
35e148cb UD |
3831 | 2003-03-12 Ulrich Drepper <drepper@redhat.com> |
3832 | ||
d0369fb8 UD |
3833 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New |
3834 | file. | |
3835 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New | |
3836 | file. | |
3837 | ||
3838 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h | |
3839 | (pthread_cond_t): Add padding. | |
3840 | ||
da49194d UD |
3841 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file. |
3842 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file. | |
3843 | * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file. | |
3844 | ||
35e148cb UD |
3845 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S |
3846 | (__pthread_rwlock_timedwrlock): Add missing opcode suffix. | |
3847 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S | |
3848 | (__pthread_rwlock_timedrdlock): Likewise. | |
3849 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S | |
3850 | (__pthread_rwlock_wrlock): Likewise. | |
3851 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S | |
3852 | (__pthread_rwlock_rdlock): Likewise. | |
3853 | ||
3854 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file. | |
3855 | ||
3856 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return | |
3857 | result of lock re-get if it fails. | |
3858 | ||
3e976b96 UD |
3859 | 2003-03-11 Ulrich Drepper <drepper@redhat.com> |
3860 | ||
5a03acfe UD |
3861 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax. |
3862 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise. | |
3863 | * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise. | |
3864 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise. | |
3865 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. | |
3866 | * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise. | |
3867 | * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise. | |
3868 | * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise. | |
3869 | * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise. | |
3870 | * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise. | |
3871 | ||
3872 | * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC, | |
3873 | THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax. | |
3874 | ||
3875 | * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack): | |
3876 | Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads. | |
3877 | * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB] | |
3878 | (create_thread): Likewise. | |
3879 | Define __pthread_multiple_threads and __libc_multiple_threads_ptr. | |
3880 | * init.c (__pthread_initialize_minimal_internal): Initialize | |
3881 | __libc_multiple_threads_ptr if necessary. | |
3882 | * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare | |
3883 | __pthread_multiple_threads and __libc_multiple_threads_ptr. | |
3884 | * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define | |
3885 | __libc_multiple_threads. | |
3886 | (__libc_pthread_init): Return pointer to __libc_pthread_init if | |
3887 | necessary. | |
3888 | ||
3889 | * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant. | |
3890 | (THREAD_SETMEM_NC): Likewise. | |
3891 | ||
3892 | * sysdeps/x86_64/pthread_spin_trylock.c: Removed. | |
3893 | * sysdeps/x86_64/pthread_spin_trylock.S: New file. | |
3894 | * sysdeps/x86_64/pthread_spin_unlock.c: Removed. | |
3895 | * sysdeps/x86_64/pthread_spin_unlock.S: New file. | |
3896 | ||
3897 | * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock): | |
3898 | Eliminate one entire instruction. | |
3899 | ||
32a589b1 UD |
3900 | * cancellation.c (__pthread_enable_asynccancel_2): New function. |
3901 | * pthreadP.h: Declare __pthread_enable_asynccancel_2. | |
3902 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | |
3903 | (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2 | |
3904 | instead of __pthread_enable_asynccancel. | |
3905 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S | |
3906 | (__pthread_cond_wait): Likewise. | |
3907 | * sysdeps/pthread/pthread_cond_timedwait.c | |
3908 | (__pthread_cond_timedwait): Likewise. | |
3909 | * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise. | |
3910 | ||
3e976b96 UD |
3911 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S |
3912 | (__condvar_cleanup): Wake up all waiters in case we got signaled | |
3913 | after being woken up but before disabling asynchronous | |
3914 | cancellation. | |
3915 | * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise. | |
3916 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S | |
3917 | (__condvar_cleanup): Likewise. | |
3918 | ||
3919 | * init.c (__NR_set_tid_address): If already defined, don't redefine. | |
3920 | Make it an error if architecture has no #if case. Add x86-64. | |
3921 | ||
3922 | * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for | |
3923 | pt-initfini.s generation. | |
3924 | ||
3925 | * sysdeps/x86_64/tls.h: Include <asm/prctl.h>. | |
3926 | (TLS_INIT_TP): Fix typo. | |
3927 | ||
6c477888 UD |
3928 | 2003-03-11 Jakub Jelinek <jakub@redhat.com> |
3929 | ||
3930 | * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and | |
3931 | 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq. | |
3932 | ||
3933 | * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h. | |
3934 | * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise. | |
3935 | * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise. | |
3936 | * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise. | |
3937 | * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise. | |
3938 | * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise. | |
3939 | * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise. | |
3940 | * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise. | |
3941 | ||
ea694823 UD |
3942 | 2003-03-11 Ulrich Drepper <drepper@redhat.com> |
3943 | ||
6c477888 UD |
3944 | * sysdeps/pthread/pthread_cond_timedwait.c |
3945 | (__pthread_cond_timedwait): Return the result of the final | |
3946 | locking. If it succeeds, the regular function return value. | |
3947 | ||
3948 | * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): | |
3949 | Return result of the final locking. | |
3950 | * version.c (__nptl_main): Work around problems with the strange | |
3951 | INTERNAL_SYSCALL macro on ppc32. | |
3952 | * init.c (__pthread_initialize_minimal_internal): Unblock | |
3953 | SIGCANCEL in case the parent blocked it. | |
3954 | Reported by Paul Mackerras <paulus@samba.org>. | |
3955 | ||
ea694823 UD |
3956 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file. |
3957 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file. | |
3958 | * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file. | |
3959 | ||
b33e6163 RM |
3960 | 2003-03-11 Jakub Jelinek <jakub@redhat.com> |
3961 | ||
3962 | * sysdeps/pthread/pthread_cond_timedwait.c | |
3963 | (__pthread_cond_timedwait): Unlock and fail if | |
3964 | __pthread_mutex_unlock_internal failed. | |
3965 | ||
3966 | * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined. | |
3967 | (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP]. | |
3968 | Use ARCH_CLONE. | |
3969 | * allocatestack.c (ALLOCATE_STACK_PARMS): New macro. | |
3970 | [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES, | |
3971 | STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS, | |
3972 | ALLOCATE_STACK): New macros. | |
3973 | (TLS_TPADJ): New macro. | |
3974 | (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ. | |
3975 | (allocate_stack): Handle TLS_DTV_AT_TP and | |
3976 | NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ. | |
3977 | * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]: | |
3978 | Don't set PD->self. | |
3979 | * init.c [__ia64__] (__NR_set_tid_address): Define. | |
3980 | ||
3981 | * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file. | |
3982 | * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file. | |
3983 | * sysdeps/unix/sysv/linux/ia64/fork.c: New file. | |
3984 | * sysdeps/unix/sysv/linux/ia64/createthread.c: New file. | |
3985 | * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file. | |
3986 | * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file. | |
3987 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file. | |
3988 | * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file. | |
3989 | * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file. | |
3990 | * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file. | |
3991 | * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file. | |
3992 | * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file. | |
3993 | * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file. | |
3994 | * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file. | |
3995 | * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file. | |
3996 | * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file. | |
3997 | * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file. | |
3998 | * sysdeps/ia64/bits/atomic.h: New file. | |
3999 | * sysdeps/ia64/Makefile: New file. | |
4000 | * sysdeps/ia64/pthread_spin_init.c: New file. | |
4001 | * sysdeps/ia64/pthread_spin_lock.c: New file. | |
4002 | * sysdeps/ia64/pthread_spin_trylock.c: New file. | |
4003 | * sysdeps/ia64/pthread_spin_unlock.c: New file. | |
4004 | * sysdeps/ia64/pthreaddef.h: New file. | |
4005 | * sysdeps/ia64/tcb-offsets.sym: New file. | |
4006 | * sysdeps/ia64/td_ta_map_lwp2thr.c: New file. | |
4007 | * sysdeps/ia64/tls.h: New file. | |
4008 | ||
4009 | * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument | |
4010 | to syscall instead of no arguments. | |
4011 | ||
2b30b2e5 UD |
4012 | 2003-03-10 Ulrich Drepper <drepper@redhat.com> |
4013 | ||
db5f2fc9 UD |
4014 | * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file. |
4015 | * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file. | |
4016 | * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file. | |
4017 | * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file. | |
4018 | ||
4019 | * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in | |
4020 | unused code. | |
4021 | ||
6a4263e3 UD |
4022 | * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file |
4023 | ||
3de7c2a9 UD |
4024 | * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add |
4025 | lowlevelbarrier.sym. | |
4026 | * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file. | |
4027 | * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: | |
4028 | Include lowlevelbarrier.h and don't define offsets locally. | |
6a4263e3 | 4029 | * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise. |
3de7c2a9 | 4030 | |
2a544d82 UD |
4031 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h |
4032 | (__lll_mutex_lock_wait): Reverse order of first two parameters. | |
4033 | (__lll_mutex_timedlock_wait): Likewise. | |
4034 | (lll_mutex_lock): Adjust asm for that. | |
4035 | (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered. | |
4036 | (lll_lock): Adjust asm for operand order change. | |
4037 | * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file. | |
4038 | * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file. | |
4039 | ||
ec06436c UD |
4040 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait): |
4041 | Reverse order of parameters. | |
4042 | (__lll_timedwait_tid): Remove regparms attribute. | |
4043 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file. | |
4044 | * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file. | |
4045 | ||
3273832c UD |
4046 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S |
4047 | (__lll_timedwait_tid): Remove one unnecessary instruction. | |
4048 | ||
51f32ab8 UD |
4049 | * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define |
4050 | __lll_mutex_timedlock_wait only for NOT_IN_libc. | |
4051 | * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include | |
4052 | lowlevelmutex.S. | |
4053 | ||
4054 | * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define | |
4055 | lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only | |
4056 | for NOT_IN_libc. | |
4057 | * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include | |
4058 | lowlevellock.S. | |
4059 | ||
fad48d9e UD |
4060 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define |
4061 | LOCK is already defined. Don't define __lll_mutex_timedlock_wait | |
4062 | for libc.so. | |
4063 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only | |
4064 | define LOCK here (if UP is not defined). The actual code is in | |
4065 | lowlevelmutex.S. | |
4066 | ||
9356d063 UD |
4067 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define |
4068 | LOCK is already defined. Don't define lll_unlock_wake_cb and | |
4069 | __lll_timedwait_tid for libc.so. | |
4070 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only | |
4071 | define LOCK here (if UP is not defined). The actual code is in | |
4072 | lowlevellock.S. | |
4073 | ||
ebf0cbc5 | 4074 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore. |
106f6f9d UD |
4075 | * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise. |
4076 | * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h | |
4077 | instead of lowlevelsem.h. | |
4078 | * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise. | |
4079 | * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise. | |
4080 | * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise. | |
0be8ee21 | 4081 | |
c915e5ad UD |
4082 | * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add |
4083 | lowlevelrwlock.sym. | |
4084 | * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file. | |
4085 | * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed. | |
146fa1ee | 4086 | * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed. |
c915e5ad | 4087 | |
4c3c2e8a UD |
4088 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix |
4089 | register loading. | |
4090 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo | |
4091 | last changed. D'oh. | |
4092 | ||
2b30b2e5 UD |
4093 | * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file. |
4094 | ||
4095 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration | |
4096 | of __libc_locking_needed. | |
4097 | (lll_trylock): Initialize %eax to zero. | |
4098 | ||
2b30b2e5 UD |
4099 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update |
4100 | pthread_cond_t definition. | |
4101 | ||
e48f9638 RM |
4102 | 2003-03-10 Roland McGrath <roland@redhat.com> |
4103 | ||
4104 | * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file. | |
4105 | * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it. | |
4106 | * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed. | |
4107 | * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise. | |
4108 | * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise. | |
4109 | ||
4110 | * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]: | |
4111 | Instead of setting PD->multiple_threads, set globals | |
4112 | __pthread_multiple_threads and __libc_multiple_threads. | |
4113 | * sysdeps/pthread/createthread.c (create_thread): Likewise. | |
4114 | * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it. | |
4115 | * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise. | |
4116 | ||
4117 | * descr.h (struct pthread): Conditionalize first member on | |
4118 | [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union | |
4119 | containing an anonymous tcbhead_t. Move `list' member out. | |
4120 | [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member. | |
4121 | * allocatestack.c: Remove use of `header.data.' prefix. | |
4122 | * pthread_create.c: Likewise. | |
4123 | * init.c (__pthread_initialize_minimal_internal): Likewise. | |
4124 | * sysdeps/pthread/createthread.c (create_thread): Likewise. | |
4125 | * sysdeps/i386/tls.h (INSTALL_DTV): Add parens. | |
4126 | (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix. | |
4127 | * sysdeps/x86_64/tls.h: Likewise. | |
4128 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h | |
4129 | (SINGLE_THREAD_P): Likewise. | |
4130 | * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h | |
4131 | (SINGLE_THREAD_P): Likewise. | |
4132 | * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member. | |
4133 | * sysdeps/s390/tls.h (tcbhead_t): Likewise. | |
4134 | ||
c37cae9e UD |
4135 | 2003-03-09 Ulrich Drepper <drepper@redhat.com> |
4136 | ||
d38c777e RM |
4137 | * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file. |
4138 | ||
7b44a5e0 | 4139 | * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file. |
2b30b2e5 | 4140 | * sysdeps/unix/sysv/linux/x86_64/fork.c: New file. |
7b44a5e0 | 4141 | |
c2e5e085 UD |
4142 | * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many |
4143 | leftovers from the ia32 code. | |
4144 | ||
4145 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary | |
4146 | memory load. | |
4147 | (clear_once_control): Don't load %esi. | |
4148 | ||
4149 | * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor | |
4150 | handling. | |
4151 | ||
4152 | * sysdeps/unix/sysv/linux/x86_64/fork.c: New file. | |
4153 | ||
cd4b2a55 UD |
4154 | * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to... |
4155 | * sysdeps/unix/sysv/linux/createthread.c: ...here. | |
4156 | ||
c37cae9e UD |
4157 | * Makefile (tests): Add tst-cond10. |
4158 | * tst-cond10.c: New file. | |
4159 | ||
d130a341 UD |
4160 | 2003-03-08 Ulrich Drepper <drepper@redhat.com> |
4161 | ||
ccf1d573 UD |
4162 | * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call. |
4163 | * tst-signal3.c (do_test): Likewise. | |
4164 | * tst-sem5.c (do_test): Likewise. | |
4165 | * tst-kill6.c (do_test): Likewise. | |
4166 | * tst-tls3.c (do_test): Likewise. Include <errno.h>. | |
4167 | ||
4168 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead | |
4169 | of inc/dec. | |
4170 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise. | |
4171 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise | |
4172 | * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise. | |
4173 | * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise. | |
4174 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise. | |
4175 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise. | |
4176 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: | |
4177 | Likewise. | |
4178 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: | |
4179 | Likewise. | |
4180 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise. | |
4181 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. | |
4182 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
4183 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise. | |
4184 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise. | |
4185 | * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise. | |
4186 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise. | |
4187 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise. | |
4188 | ||
d130a341 UD |
4189 | * allocatestack.c (allocate_stack): If mprotect() fails free the |
4190 | TLS memory. | |
4191 | ||
bc6389ad UD |
4192 | 2003-03-07 Ulrich Drepper <drepper@redhat.com> |
4193 | ||
41d4d223 UD |
4194 | * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions. |
4195 | ||
4196 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of | |
4197 | lll_wake_tid. This was used only to work around kernel limits in | |
4198 | the early days. | |
4199 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise. | |
4200 | * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise. | |
4201 | * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise. | |
4202 | * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise. | |
4203 | ||
bc6389ad UD |
4204 | * init.c (__static_tls_align_m1): Renamed from __static_tls_align. |
4205 | (__pthread_initialize_minimal_internal): Change initialization of | |
4206 | __static_tls_align_m1 appropriately. | |
4207 | * pthreadP.h (__static_tls_align_m1): Renamed from | |
4208 | __static_tls_align. | |
4209 | * allocatestack.c (allocate_stack): Use __static_tls_align_m1 | |
4210 | instead of __static_tls_align-1. | |
4211 | ||
cc775edf UD |
4212 | 2003-03-04 Ulrich Drepper <drepper@redhat.com> |
4213 | ||
0de28d5c | 4214 | * sysdeps/unix/sysv/linux/x86_64/Makefile: New file. |
6245b6ae | 4215 | |
518b5308 UD |
4216 | * pthread_create.c: Define __pthread_keys using nocommon |
4217 | attribute, not by placing it explicitly in bss. | |
4218 | Remove DEFINE_DEALLOC definition. Not needed anymore. | |
4219 | ||
4220 | * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined. | |
4221 | Use it in mmap call to allocate stacks. | |
4222 | ||
4223 | * sysdeps/pthread/createthread.c (create_thread): Fix comment. | |
4224 | ||
cc775edf UD |
4225 | * pthread_create.c (start_thread): Use THREAD_SETMEM to store |
4226 | result of the thread function. | |
4227 | ||
4f6f0a8f UD |
4228 | 2003-03-03 Ulrich Drepper <drepper@redhat.com> |
4229 | ||
f04a2721 UD |
4230 | * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic |
4231 | version is just fine. | |
4232 | ||
4f6f0a8f UD |
4233 | * sysdeps/unix/sysv/linux/libc_pthread_init.c |
4234 | (__pthread_child_handler): Renamed from pthread_child_handler, | |
4235 | exported, and marked hidden. Change all users. | |
4236 | * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not | |
4237 | free __pthread_child_handler from child list. | |
4238 | ||
7ce5c164 UD |
4239 | 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com> |
4240 | ||
4241 | * atomic.h (atomic_exchange_and_add): Return newval, not oldval. | |
4242 | ||
4243 | * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait): | |
4244 | Fix handling of cancellation and failing pthread_mutex_unlock call. | |
4245 | * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise. | |
4246 | (__pthread_cond_wait): Likewise. | |
4247 | ||
4248 | * sysdeps/pthread/pthread_rwlock_timedrdlock.c | |
4249 | (pthread_rwlock_timedrdlock): Fix clobber of result variable by | |
4250 | lll_futex_timed_wait call. | |
4251 | * sysdeps/pthread/pthread_rwlock_timedwrlock.c | |
4252 | (pthread_rwlock_timedwrlock): Likewise. | |
4253 | ||
4254 | * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock): | |
4255 | Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so. | |
4256 | * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments. | |
4257 | ||
4258 | * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix | |
4259 | check of lll_futex_wake return value. | |
4260 | ||
ea6a015b RM |
4261 | 2003-03-03 Roland McGrath <roland@redhat.com> |
4262 | ||
4263 | * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl. | |
4264 | ||
4265 | * sysdeps/pthread/pthread-functions.h (struct pthread_functions): | |
4266 | Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf. | |
4267 | * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise. | |
4268 | ||
4adacf57 UD |
4269 | 2003-03-02 Ulrich Drepper <drepper@redhat.com> |
4270 | ||
1be3d664 UD |
4271 | * sysdeps/pthread/timer_create.c (timer_create): Return correct |
4272 | error for CPU clocks. | |
4273 | ||
885bafa1 UD |
4274 | * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define |
4275 | _POSIX_MONOTONIC_CLOCK. | |
4276 | * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise. | |
4277 | ||
4adacf57 UD |
4278 | * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset |
4279 | recent kernels. | |
4280 | ||
86bfff4d UD |
4281 | 2003-03-01 Ulrich Drepper <drepper@redhat.com> |
4282 | ||
4283 | * descr.h (struct pthread): Move cleanup field to the front. | |
4284 | ||
d1149385 RM |
4285 | 2003-03-01 Roland McGrath <roland@redhat.com> |
4286 | ||
4287 | * sem_open.c (sem_open): Braino fix. | |
4288 | ||
bd8bb78b UD |
4289 | 2003-03-01 Ulrich Drepper <drepper@redhat.com> |
4290 | ||
748bec08 UD |
4291 | * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV. |
4292 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline | |
4293 | __pthread_cleanup_pop functionality. | |
4294 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
4295 | ||
bd8bb78b UD |
4296 | * descr.h (struct pthread): Move tid field to the front now that |
4297 | it is often used. | |
4298 | ||
4299 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S | |
4300 | (__lll_mutex_timedlock_wait): Remove. | |
4301 | (__lll_mutex_unlock_wake): Don't save, load, and restore %esi. | |
4302 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S | |
4303 | (__lll_mutex_unlock_wake): Don't save, load, and restore %esi. | |
4304 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S | |
4305 | (lll_unlock_wake_cb): Don't save and restore %esi. | |
4306 | (__lll_unlock_wake): Add alignment. Don't save, load, and restore | |
4307 | %esi. | |
4308 | (__lll_timedwait_tid): Add alignment. | |
4309 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S | |
4310 | (__lll_unlock_wake): Add alignment. Don't save, load, and restore | |
4311 | %esi. | |
4312 | (__lll_timedwait_tid): Removed. | |
4313 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S | |
4314 | (__pthread_cond_broadcast): Don't save, load, and restore %esi. | |
4315 | * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S | |
4316 | (pthread_barrier_wait): Don't save, load, and restore %esi for | |
4317 | last thread. | |
4318 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S | |
4319 | (__pthread_cond_signal): Don't save, load, and restore %esi. | |
4320 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S | |
4321 | (__pthread_rwlock_unlock): Don't save, load, and restore %esi. | |
4322 | * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post): | |
4323 | Don't save, load, and restore %esi. | |
4324 | ||
d2637c70 UD |
4325 | 2003-02-27 Ulrich Drepper <drepper@redhat.com> |
4326 | ||
567fb22a UD |
4327 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: |
4328 | Release lock before waking up the waiters. | |
4329 | ||
427f5fa1 UD |
4330 | * tst-exit1.c (do_test): Don't start more than one thread in parallel. |
4331 | ||
a2d83cfb UD |
4332 | * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT. |
4333 | (reader_thread): Likewise. | |
4334 | ||
d2637c70 UD |
4335 | * sysdeps/pthread/pthread_rwlock_unlock.c |
4336 | (__pthread_rwlock_unlock): Release internal lock early. Don't try | |
4337 | to wake up readers if there are none. | |
4338 | ||
4339 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: | |
4340 | Release internal lock before wake threads. | |
4341 | ||
b1531183 UD |
4342 | 2003-02-26 Ulrich Drepper <drepper@redhat.com> |
4343 | ||
dbf6131c UD |
4344 | * Makefile (tests): Add tst-rwlock10 and tst-rwlock11. |
4345 | * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be | |
4346 | predefined. | |
4347 | * tst-rwlock9.c: Likewise. | |
4348 | * tst-rwlock10.c: New file. | |
4349 | * tst-rwlock11.c: New file. | |
4350 | ||
695799fe UD |
4351 | * Makefile (tests): Add tst-dlsym1. |
4352 | * tst-dlsym1.c: New file. | |
4353 | ||
b1531183 UD |
4354 | * init.c (__pthread_initialize_minimal_internal): Set |
4355 | GL(dl_error_catch_tsd) to __libc_dl_error_tsd. | |
4356 | * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd. | |
4357 | ||
3724f268 UD |
4358 | 2003-02-24 Ulrich Drepper <drepper@redhat.com> |
4359 | ||
3857ca78 UD |
4360 | * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL. |
4361 | ||
80d80779 UD |
4362 | * tst-cond2.c: Fix sychronization with child. |
4363 | ||
86371308 UD |
4364 | * tst-rwlock8.c (reader_thread): Remove unused variable. |
4365 | ||
ffeb4481 UD |
4366 | * Makefile: Add rules to build and run tst-tls3. |
4367 | * tst-tls3.c: New file. | |
4368 | * tst-tls3mod.c: New file. | |
4369 | ||
3724f268 UD |
4370 | * Makefile (tests): Add tst-rwlock8 and tst-rwlock9. |
4371 | * tst-rwlock8.c: New file. | |
4372 | * tst-rwlock9.c: New file. | |
4373 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix | |
4374 | complete broken rwlock implementation. | |
4375 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: | |
4376 | Likewise. | |
4377 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: | |
4378 | Likewise. | |
4379 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise. | |
4380 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise. | |
18a53579 UD |
4381 | * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise. |
4382 | * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise. | |
4383 | * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise. | |
4384 | * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise. | |
4385 | * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise. | |
3724f268 | 4386 | |
8915cc40 RM |
4387 | 2003-02-23 Roland McGrath <roland@redhat.com> |
4388 | ||
4389 | * Makefile (nptl-version): Change regexp so case sensitivity is ok. | |
4390 | ||
fd1a0d0c UD |
4391 | 2003-02-23 Ulrich Drepper <drepper@redhat.com> |
4392 | ||
ecf28959 UD |
4393 | * Makefile (tests): Add tst-context1. |
4394 | * tst-context1.c: New file. | |
4395 | ||
5e47b76b UD |
4396 | * Makefile (tests): Add tst-tls1 and tst-tls2. |
4397 | * tst-tls1.c: New file. | |
4398 | * tst-tls2.c: New file. | |
4399 | ||
5a6bbb41 UD |
4400 | * libc-cancellation.c (__libc_enable_asynccancel): Correct test |
4401 | for failed cmpxchg. | |
4402 | ||
fd1a0d0c UD |
4403 | * pthread_create.c (start_thread): Set EXITING_BIT early. |
4404 | ||
4405 | * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile. | |
4406 | (THREAD_GETMEM_NC): Likewise. | |
4407 | ||
757f9fcb UD |
4408 | 2003-02-22 Ulrich Drepper <drepper@redhat.com> |
4409 | ||
b1b8e747 UD |
4410 | * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave |
4411 | off 3 more bytes by using offset-less instructions when possible. | |
4412 | ||
c780aa21 | 4413 | * Makefile: Add dependency for $(objpfx)version.d. |
757f9fcb UD |
4414 | |
4415 | * eintr.c (eintr_source): Add unnecessary return but the compiler | |
4416 | insists. | |
4417 | ||
4418 | * tst-kill3.c: Include <unistd.h>. | |
4419 | ||
5148559c RM |
4420 | 2003-02-21 Roland McGrath <roland@redhat.com> |
4421 | ||
4422 | * pthread_create.c (start_thread): Call __libc_thread_freeres. | |
4423 | ||
ab2d98e3 UD |
4424 | 2003-02-21 Ulrich Drepper <drepper@redhat.com> |
4425 | ||
71028edd UD |
4426 | * Makefile (tests): Add tst-eintr1. |
4427 | (distribute): Add eintr.c. | |
4428 | * tst-eintr1.c: New file. | |
4429 | * eintr.c: New file. | |
4430 | ||
e814f748 UD |
4431 | * pthread_cancel.c (pthread_cancel): Use tkill directly. |
4432 | ||
4433 | * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): | |
4434 | Disallow sending SIGCANCEL. | |
4435 | ||
ab2d98e3 | 4436 | * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2, |
9c03686d | 4437 | tst-kill3, tst-kill4, tst-kill5, tst-kill6. |
e814f748 UD |
4438 | * tst-kill1.c: New file. |
4439 | * tst-kill2.c: New file. | |
4440 | * tst-kill3.c: New file. | |
4441 | * tst-kill5.c: New file. | |
9c03686d | 4442 | * tst-kill6.c: New file. |
e814f748 UD |
4443 | * tst-basic7.c: Renamed to... |
4444 | * tst-kill4.c: ...this. | |
ab2d98e3 | 4445 | |
59fed0e2 RM |
4446 | 2003-02-21 Roland McGrath <roland@redhat.com> |
4447 | ||
4448 | * Makefile (install-lib-ldscripts): New variable. | |
4449 | ||
49dc759f UD |
4450 | 2003-02-21 Ulrich Drepper <drepper@redhat.com> |
4451 | ||
8c2e9a29 UD |
4452 | * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P. |
4453 | * pthread_cancel.c: Use INVALID_TD_P. | |
4454 | * pthread_detach.c: Likewise. | |
4455 | * pthread_getschedparam.c: Likewise. | |
4456 | * pthread_setschedparam.c: Likewise. | |
4457 | * sysdeps/pthread/pthread_getcpuclockid.c: Likewise. | |
4458 | * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise. | |
4459 | * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P. | |
4460 | * pthread_timedjoin.c: Likewise. | |
4461 | ||
4462 | * tst-basic7.c: Include <signal.h>. | |
4463 | ||
49dc759f UD |
4464 | * pthread_join.c (pthread_join): Limited checking for invalid |
4465 | descriptors. | |
4466 | * pthread_timedjoin.c (pthread_timedjoin_np): Likewise. | |
4467 | ||
df5803bf UD |
4468 | 2003-02-20 Ulrich Drepper <drepper@redhat.com> |
4469 | ||
c5acd3d7 UD |
4470 | * pthread_create.c (deallocate_tsd): Reset found_nonzero at the |
4471 | beginning of the loop. Clear the entire first block of TSD. | |
df5803bf UD |
4472 | * Makefile (tests): Add tst-key4. |
4473 | * tst-key4.c: New file. | |
4474 | ||
729924a0 UD |
4475 | 2003-02-18 Ulrich Drepper <drepper@redhat.com> |
4476 | ||
2f7dc594 UD |
4477 | * Makefile (tests): Add tst-basic7. |
4478 | * tst-basic7.c: New file. | |
4479 | ||
ba25bb0f UD |
4480 | * pthread_create.c (deallocate_tsd): Mark as internal_function. |
4481 | Add some more __builtin_expect. | |
4482 | ||
12fd3c5f | 4483 | * pthreadP.h: Define dummy version of DEBUGGING_P. |
729924a0 | 4484 | |
5430d926 UD |
4485 | 2003-02-17 Ulrich Drepper <drepper@redhat.com> |
4486 | ||
b0db7fbe UD |
4487 | * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove |
4488 | _POSIX_THREAD_PRIORITY_SCHEDULING. | |
4489 | * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove | |
4490 | _XOPEN_REALTIME_THREADS. | |
4491 | * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise. | |
4492 | ||
4493 | * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The | |
4494 | kernel returns EINVAL for PID <= 0, work around it. | |
4495 | ||
ecfda9bd UD |
4496 | * Makefile (tests): Add tst-signal5. |
4497 | * tst-signal5.c: New file. | |
4498 | ||
7d78ab99 UD |
4499 | * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX |
4500 | and LOGIN_NAME_MAX. | |
4501 | ||
371a2972 UD |
4502 | * tst-cancel1.c (tf): Block all signals. |
4503 | ||
5430d926 UD |
4504 | * Makefile (tests): Add tst-basic6. |
4505 | * tst-basic6.c: New file. | |
4506 | ||
4507 | * tst-basic1.c: Add test for process ID. | |
4508 | ||
4509 | * Makefile (tests): Add tst-cancel10. | |
4510 | * tst-cancel10.c: New file. | |
4511 | ||
4512 | * Makefile (tests): Add tst-signal4. | |
4513 | * tst-signal4.c: New file. | |
4514 | ||
4515 | * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use | |
4516 | __sigismember instead of sigismember. Add __builtin_expect. | |
4517 | ||
1564916a UD |
4518 | 2003-02-16 Ulrich Drepper <drepper@redhat.com> |
4519 | ||
179ff175 UD |
4520 | * tst-attr1.c (do_test): Add tests for pthread_setcanceltype, |
4521 | pthread_setcancelstate, and pthread_rwlock_setpshared. | |
4522 | ||
e4335f9a UD |
4523 | * tst-cancel7.c (do_test): Make sure the pid file exists before |
4524 | canceling the thread. | |
4525 | ||
0a37669a UD |
4526 | * tst-rwlock6.c: More pthread_rwlock_timedwrlock and |
4527 | pthread_rwlock_timedrdlock tests. | |
4528 | * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests. | |
4529 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: | |
4530 | Check for invalid tv_nsec field. | |
4531 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: | |
4532 | Likewise. | |
4533 | ||
4534 | * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect | |
4535 | recursive mutex of overflow. | |
4536 | ||
4537 | * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared. | |
4538 | ||
e4335f9a | 4539 | * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid |
1564916a UD |
4540 | going into an endless loop. |
4541 | * Makefile (tests): Add tst-cancel9. | |
4542 | * tst-cancel9.c: New file. | |
4543 | ||
4544 | * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill. | |
4545 | ||
b270b548 UD |
4546 | 2003-02-15 Ulrich Drepper <drepper@redhat.com> |
4547 | ||
1c82b97f UD |
4548 | * tst-mutex5.c (do_test): Add more timedlock tests. |
4549 | ||
b2f05465 | 4550 | * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes. |
c3bb9ee1 UD |
4551 | * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes. |
4552 | ||
e798b60f UD |
4553 | * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't |
4554 | use INLINE_SYSCALL. Error number is returned, not -1. | |
4555 | ||
90491dc4 UD |
4556 | * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb, |
4557 | and __deallocate_stack with internal_function. | |
4558 | * pthread_create.c: Adjust definitions appropriately. | |
4559 | * allocatestack.c: Likewise. | |
4560 | ||
4561 | * pthread_join.c: Add one more __builtin_expect. | |
4562 | * pthread_timedjoin.c: Likewise. | |
4563 | ||
4564 | * pthread_getspecific.c (__pthread_getspecific): Clear data->data | |
4565 | not data of sequence number does not match. | |
4566 | Add one __builtin_expect. | |
4567 | ||
c6247c9d UD |
4568 | * Makefile (tests): Add tst-clock1. |
4569 | * tst-clock1.c: New file. | |
4570 | ||
b270b548 UD |
4571 | * pthread_setconcurrency.c (pthread_setconcurrency): Fail for |
4572 | negative arguments. | |
4573 | * Makefile (tests): Add tst-basic5. | |
4574 | * tst-basic5.c: New file. | |
4575 | ||
700bf7af UD |
4576 | 2003-02-14 Ulrich Drepper <drepper@redhat.com> |
4577 | ||
757de559 UD |
4578 | * Makefile (tests): Add tst-basic4. |
4579 | * tst-basic4.c: New file. | |
4580 | ||
47202270 UD |
4581 | * pthreadP.h: Add declaraction for __nptl_nthreads. |
4582 | * pthread_create.c: Define __nptl_nthreads | |
4583 | (start_thread): Increment __nptl_nthreads at beginning. Decrement | |
b270b548 | 4584 | after thread is done. If then zero, call exit(0). |
47202270 UD |
4585 | * sysdeps/pthread/pthread-functions.h (struct pthread_functions): |
4586 | Add ptr_nthreads. Define HAVE_PTR_NTHREADS. | |
4587 | * init.c (pthread_functions): Initialize ptr_nthreads. | |
4588 | * allocatestack.c (nptl_nthreads): Remove definition and all uses. | |
4589 | (__reclaim_stacks): Decrement __nptl_nthreads. | |
4590 | * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c): | |
4591 | Define. | |
4592 | * Makefile (tests): Add tst-basic3. | |
4593 | * tst-basic3.c: New file. | |
4594 | ||
e320ef46 UD |
4595 | * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce |
4596 | after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK. | |
4597 | * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval. | |
4598 | * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT | |
4599 | if asynchronous canceling is enabled. | |
4600 | * pthread_join.c (pthread_join): When recognizing circular joins, | |
4601 | take into account the other thread might be already canceled. | |
4602 | * Makefile (tests): Add tst-join5. | |
4603 | * tst-join5.c: New file. | |
4604 | ||
700bf7af UD |
4605 | * Makefile (tests): Add tst-join4. |
4606 | * tst-join4.c: New file. | |
4607 | ||
4608 | 2003-02-13 Ulrich Drepper <drepper@redhat.com> | |
4609 | ||
4610 | * tst-cond4.c (main): Add test of pthread_attr_getpshared. | |
4611 | ||
dac0f772 UD |
4612 | 2003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com> |
4613 | ||
4614 | * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, | |
4615 | THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF. | |
4616 | * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid | |
4617 | warning. | |
4618 | * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h> | |
4619 | to avoid warning. | |
4620 | * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return | |
4621 | error if lll_futex_wake failed. | |
4622 | ||
e8cda341 UD |
4623 | 2003-02-13 Ulrich Drepper <drepper@redhat.com> |
4624 | ||
a7720b5e UD |
4625 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix |
4626 | handling of cancellation and failung pthread_mutex_unlock call. | |
4627 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
4628 | * Makefile (tests): Add tst-cond8 and tst-cond9. | |
4629 | * tst-cond8.c: New file. | |
4630 | * tst-cond9.c: New file. | |
4631 | ||
a1ea4c06 UD |
4632 | * tst-cond7.c (do_test): Unlock the mutex before canceling the thread. |
4633 | ||
4634 | * sysdeps/pthread/pthread.h: Add missing initializers. Protect | |
4635 | non-standard initializers with __USE_GNU. | |
4636 | ||
e8cda341 UD |
4637 | * Makefile (tests): Add tst-cleanup3. |
4638 | * tst-cleanup3.c: New file. | |
4639 | ||
2067577c UD |
4640 | 2003-02-12 Ulrich Drepper <drepper@redhat.com> |
4641 | ||
89e78a95 UD |
4642 | * Makefile (tests): Add tst-attr1 and tst-attr2. |
4643 | * tst-attr1.c: New file. | |
4644 | * tst-attr2.c: New file. | |
4645 | ||
dfdd294a UD |
4646 | * Makefile: Add rules to build and run tst-atfork2 test. |
4647 | * tst-atfork2.c: New file. | |
4648 | * tst-atfork2mod.c: New file. | |
4649 | ||
4650 | * sysdeps/unix/sysv/linux/unregister-atfork.c | |
4651 | (__unregister_atfork): Free the memory allocated for the handlers | |
4652 | after removing them from the lists. | |
4653 | ||
4654 | * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory | |
4655 | cleanup function. | |
4656 | ||
4657 | * tst-atfork1.c (do_test): Wait for the child we forked. | |
4658 | Report error in child. | |
4659 | ||
4660 | * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment. | |
4661 | ||
2067577c UD |
4662 | * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c. |
4663 | ||
2a8a8a84 UD |
4664 | 2003-02-10 Ulrich Drepper <drepper@redhat.com> |
4665 | ||
d9dd121e UD |
4666 | * Makefile (tests): Add tst-cancel8. |
4667 | * tst-cancel8.c: New file. | |
4668 | ||
2a8a8a84 UD |
4669 | * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix |
4670 | clearing of control variable. | |
defd1870 | 4671 | * Makefile (tests): Add tst-once3 and tst-once4. |
2a8a8a84 | 4672 | * tst-once3.c: New file. |
defd1870 | 4673 | * tst-once4.c: New file. |
2a8a8a84 | 4674 | |
a54e8d33 UD |
4675 | 2003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp> |
4676 | ||
4677 | * sysdeps/sh/Makefile: New file. | |
4678 | * sysdeps/sh/bits/atomic.h: New file. | |
4679 | * sysdeps/sh/pthread_spin_init.c: New file. | |
4680 | * sysdeps/sh/pthread_spin_lock.c: New file. | |
4681 | * sysdeps/sh/pthread_spin_trylock.S: New file. | |
4682 | * sysdeps/sh/pthread_spin_unlock.S: New file. | |
4683 | * sysdeps/sh/pthreaddef.h: New file. | |
4684 | * sysdeps/sh/tcb-offsets.sym: New file. | |
4685 | * sysdeps/sh/td_ta_map_lwp2thr.c: New file. | |
4686 | * sysdeps/sh/tls.h: New file. | |
4687 | * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file. | |
4688 | * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file. | |
4689 | * sysdeps/unix/sysv/linux/sh/createthread.c: New file. | |
4690 | * sysdeps/unix/sysv/linux/sh/fork.c: New file. | |
4691 | * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file. | |
4692 | * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file. | |
4693 | * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file. | |
4694 | * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file. | |
4695 | * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file. | |
4696 | * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file. | |
4697 | * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file. | |
4698 | * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file. | |
4699 | * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file. | |
4700 | * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file. | |
4701 | * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file. | |
4702 | * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file. | |
4703 | * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file. | |
4704 | * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file. | |
4705 | * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file. | |
4706 | * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file. | |
4707 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file. | |
4708 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file. | |
4709 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file. | |
4710 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file. | |
4711 | * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file. | |
4712 | * sysdeps/unix/sysv/linux/sh/sem_post.S: New file. | |
4713 | * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file. | |
4714 | * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file. | |
4715 | * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file. | |
4716 | * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file. | |
4717 | ||
696e556e UD |
4718 | 2003-02-08 Ulrich Drepper <drepper@redhat.com> |
4719 | ||
4720 | * tst-cond2.c: Rearrange code to not rely on behavior undefined | |
4721 | according to POSIX. | |
4722 | ||
4723 | * tst-basic2.c (do_test): Lock mutex before creating the thread. | |
4724 | ||
fef710d6 UD |
4725 | 2003-02-07 Ulrich Drepper <drepper@redhat.com> |
4726 | ||
c6180643 UD |
4727 | * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86. |
4728 | (TLS_GET_FS): New #define. | |
4729 | (TLS_SET_FS): New #define. | |
4730 | Correct value of __NR_set_thread_area. | |
4731 | ||
fef710d6 UD |
4732 | * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file. |
4733 | ||
11090a99 UD |
4734 | 2003-02-06 Ulrich Drepper <drepper@redhat.com> |
4735 | ||
65c68990 UD |
4736 | * Makefile (tests): Add tst-popen1. |
4737 | * tst-popen1.c: New file. | |
4738 | ||
11090a99 UD |
4739 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong |
4740 | but inactive generalization. | |
4741 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. | |
4742 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise. | |
4743 | Minor optimization, remove one instruction. | |
4744 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise. | |
4745 | ||
a88c9263 UD |
4746 | 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com> |
4747 | ||
4748 | * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters. | |
4749 | ||
4750 | 2003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com> | |
4751 | ||
4752 | * init.c (__NR_set_tid_address): Add #ifdef for s390. | |
4753 | * sysdeps/pthread/pthread_barrier_wait.c: New file. | |
4754 | * sysdeps/pthread/pthread_cond_broadcast.c: New file. | |
4755 | * sysdeps/pthread/pthread_cond_signal.c: New file. | |
4756 | * sysdeps/pthread/pthread_cond_timedwait.c: New file. | |
4757 | * sysdeps/pthread/pthread_cond_wait.c: New file. | |
4758 | * sysdeps/pthread/pthread_rwlock_rdlock.c: New file. | |
4759 | * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file. | |
4760 | * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file. | |
4761 | * sysdeps/pthread/pthread_rwlock_unlock.c: New file. | |
4762 | * sysdeps/pthread/pthread_rwlock_wrlock.c: New file. | |
4763 | * sysdeps/s390/Makefile: New file. | |
4764 | * sysdeps/s390/bits/atomic.h: New file. | |
4765 | * sysdeps/s390/pthread_spin_init.c: New file. | |
4766 | * sysdeps/s390/pthread_spin_lock.c: New file. | |
4767 | * sysdeps/s390/pthread_spin_trylock.c: New file. | |
4768 | * sysdeps/s390/pthread_spin_unlock.c: New file. | |
4769 | * sysdeps/s390/pthreaddef.h: New file. | |
4770 | * sysdeps/s390/tcb-offsets.sym: New file. | |
4771 | * sysdeps/s390/td_ta_map_lwp2thr.c: New file. | |
4772 | * sysdeps/s390/tls.h: New file. | |
4773 | * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file. | |
4774 | * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file. | |
4775 | * sysdeps/unix/sysv/linux/s390/createthread.c: New file. | |
4776 | * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file. | |
4777 | * sysdeps/unix/sysv/linux/s390/fork.c: New file. | |
4778 | * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file. | |
4779 | * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file. | |
4780 | * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file. | |
4781 | * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file. | |
4782 | * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file. | |
4783 | * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file. | |
4784 | * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file. | |
4785 | * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file. | |
4786 | * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file. | |
4787 | * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file. | |
4788 | * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file. | |
4789 | * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file. | |
4790 | * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file. | |
4791 | * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file. | |
4792 | * sysdeps/unix/sysv/linux/s390/sem_post.c: New file. | |
4793 | * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file. | |
4794 | * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file. | |
4795 | * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file. | |
4796 | ||
6f1cff95 UD |
4797 | 2003-02-04 Ulrich Drepper <drepper@redhat.com> |
4798 | ||
ec609a8e UD |
4799 | * atomic.h: Add a couple more default implementations. |
4800 | (atomic_compare_and_exchange_acq): Use | |
d45e8740 UD |
4801 | __arch_compare_and_exchange_32_acq in return value definition. It |
4802 | always exists. | |
4803 | (atomic_bit_set): Renamed from atomic_set_bit. | |
0289bef9 | 4804 | Add missing atomic_ prefixes. |
e3ec8904 | 4805 | |
6f1cff95 UD |
4806 | * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no |
4807 | thread library is available, use correct value to mark initialized | |
4808 | once variable. | |
4809 | ||
4f088329 UD |
4810 | 2003-02-03 Ulrich Drepper <drepper@redhat.com> |
4811 | ||
6f1cff95 UD |
4812 | * allocatestack.c (allocate_stack): Use __getpagesize instead of |
4813 | __sysconf to determine pagesize. | |
4814 | ||
3e4fc359 | 4815 | * pthread_create.c: Include <atomic.h>. |
4f088329 UD |
4816 | * allocatestack.c (allocate_stack): Implement coloring of the |
4817 | allocated stack memory. Rename pagesize to pagesize_m1. It's the | |
4818 | size minus one. Adjust users. | |
3e4fc359 | 4819 | * sysdeps/i386/i686/Makefile: New file. |
4f088329 | 4820 | |
2f42e8be UD |
4821 | 2003-02-02 Ulrich Drepper <drepper@redhat.com> |
4822 | ||
4301f7e2 UD |
4823 | * allocatestack.c: Improve comment throughout the file. |
4824 | ||
2f42e8be | 4825 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S |
a37818b3 | 4826 | (__lll_lock_wait): Add branch prediction. |
2f42e8be UD |
4827 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S |
4828 | (__lll_lock_wait): Likewise. | |
4829 | (lll_unlock_wake_cb): Removed. | |
4830 | ||
4a7d6545 UD |
4831 | 2003-01-31 Ulrich Drepper <drepper@redhat.com> |
4832 | ||
4833 | * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove | |
4834 | _POSIX_THREAD_PRIORITY_SCHEDULING. | |
4835 | ||
886d5973 UD |
4836 | 2003-01-30 Jakub Jelinek <jakub@redhat.com> |
4837 | ||
4838 | * sysdeps/pthread/pthread-functions.h (struct pthread_functions): | |
4839 | Fix return type of ptr___pthread_getspecific. | |
4840 | ||
e474ca78 UD |
4841 | 2003-01-29 Ulrich Drepper <drepper@redhat.com> |
4842 | ||
4843 | * Makefile (tests): Add tst-umask1. | |
4844 | (tst-umask1-ARGS): Define. | |
4845 | * tst-umask1.c: New file. | |
4846 | ||
e6ebd2e4 UD |
4847 | 2003-01-28 Ulrich Drepper <drepper@redhat.com> |
4848 | ||
6cf26f41 UD |
4849 | * Makefile (libpthread-routines): Remove lowlevelrwlock. Add |
4850 | pthread_rwlock_rdlock, pthread_rwlock_timedrdlock, | |
4851 | pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and | |
4852 | pthread_rwlock_unlock. | |
4853 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed | |
4854 | * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed | |
4855 | * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed | |
4856 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file. | |
4857 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: | |
4858 | New file. | |
4859 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file. | |
4860 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: | |
4861 | New file. | |
4862 | * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file. | |
4863 | * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file. | |
4864 | * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: | |
4865 | New file. | |
4866 | * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file. | |
4867 | * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: | |
4868 | New file. | |
4869 | * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file. | |
4870 | * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file. | |
4871 | * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: | |
4872 | New file. | |
4873 | * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file. | |
4874 | * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: | |
4875 | New file. | |
4876 | * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file. | |
4877 | ||
1d087a7e UD |
4878 | * Makefile (libpthread-routines): Remove lowlevelcond and |
4879 | lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post, | |
4880 | pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal, | |
4881 | and pthread_cond_broadcast. | |
4a99d160 UD |
4882 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed |
4883 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed | |
4884 | * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed | |
4885 | * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed | |
4886 | * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed | |
4887 | * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed | |
4888 | * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file. | |
4889 | * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file. | |
4890 | * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file. | |
4891 | * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file. | |
4892 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file. | |
4893 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file. | |
4894 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file. | |
4895 | * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file. | |
4896 | * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file. | |
4897 | * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file. | |
4898 | * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file. | |
4899 | * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file. | |
4900 | * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file. | |
4901 | * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file. | |
4902 | * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file. | |
4903 | * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file. | |
4904 | * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file. | |
4905 | * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file. | |
4906 | * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file. | |
4907 | * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file. | |
4908 | * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file. | |
4909 | * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file. | |
4910 | * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file. | |
4911 | * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file. | |
4912 | * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file. | |
1d087a7e | 4913 | |
e6ebd2e4 UD |
4914 | * sysdeps/unix/sysv/linux/i386/createthread.c: Define |
4915 | PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest | |
4916 | of the code is moved to ... | |
4917 | * sysdeps/pthread/createthread.c: ...here. New file. | |
4918 | ||
a15698cb UD |
4919 | 2003-01-27 Ulrich Drepper <drepper@redhat.com> |
4920 | ||
0566b130 UD |
4921 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S |
4922 | (__new_sem_post): Clear %eax before returning. | |
4923 | Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>. | |
4924 | ||
e6fb8846 UD |
4925 | * Makefile (tests): Add tst-cleanup2. |
4926 | * tst-cleanup2.c: New file. | |
4927 | ||
a15698cb UD |
4928 | * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start): |
4929 | Interpret first parameter correctly. | |
4930 | ||
8824b0a1 UD |
4931 | 2003-01-17 Ulrich Drepper <drepper@redhat.com> |
4932 | ||
4933 | * Makefile (headers): Add bits/semaphore.h. | |
4934 | ||
850dcfca UD |
4935 | 2003-01-16 Jakub Jelinek <jakub@redhat.com> |
4936 | ||
4937 | * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even | |
4938 | if not SHARED. | |
4939 | ||
574b892e UD |
4940 | 2003-01-14 Ulrich Drepper <drepper@redhat.com> |
4941 | ||
a8d87c92 UD |
4942 | * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore |
4943 | must be used and mapping failed. | |
4944 | Reported by Luke Elliott <luke.elliott@activfinancial.com>. | |
4945 | ||
574b892e UD |
4946 | * Makefile (CFLAGS-pthread_self.os): Define this, not |
4947 | CFLAGS-pthread_self.c. | |
4948 | ||
fb48047a UD |
4949 | 2003-01-13 Ulrich Drepper <drepper@redhat.com> |
4950 | ||
47805511 UD |
4951 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export |
4952 | lll_unlock_wake_cb. | |
4953 | ||
fb48047a UD |
4954 | * Makefile (libpthread-routines): Add version. Add rules to build |
4955 | version.os and banner.h. | |
4956 | * version.c: New file. | |
4957 | ||
115bb61d UD |
4958 | 2003-01-13 Jakub Jelinek <jakub@redhat.com> |
4959 | ||
4960 | * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make | |
4961 | the alias unconditional. | |
4962 | * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise. | |
4963 | ||
4964 | 2003-01-13 Ulrich Drepper <drepper@redhat.com> | |
4965 | ||
4966 | * Makefile (CFLAGS-pthread_self.c): New definition. | |
4967 | ||
6aca81bb UD |
4968 | 2003-01-06 Jakub Jelinek <jakub@redhat.com> |
4969 | ||
4970 | * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add | |
4971 | INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros. | |
4972 | * sysdeps/unix/sysv/linux/raise.c (raise): Likewise. | |
4973 | * init.c (__pthread_initialize_minimal_internal): Likewise. | |
4974 | ||
e9c7764e UD |
4975 | 2003-01-07 Jakub Jelinek <jakub@redhat.com> |
4976 | ||
b5facfda UD |
4977 | * pthreadP.h (__pthread_cond_timedwait): Add prototype. |
4978 | ||
e9c7764e UD |
4979 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h |
4980 | (RTLD_CORRECT_DYNAMIC_WEAK): Remove. | |
4981 | (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back. | |
4982 | * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h | |
4983 | (RTLD_CORRECT_DYNAMIC_WEAK): Remove. | |
4984 | (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back. | |
4985 | ||
bef1e42f UD |
4986 | 2003-01-06 Jakub Jelinek <jakub@redhat.com> |
4987 | ||
4988 | * pthreadP.h (LIBC_CANCEL_HANDLED): Define. | |
4989 | * pt-system.c (LIBC_CANCEL_HANDLED): Add. | |
4990 | * tst-cancel-wrappers.sh: Remove all exceptions. | |
4991 | ||
bbd17455 UD |
4992 | 2003-01-05 Ulrich Drepper <drepper@redhat.com> |
4993 | ||
a73ab6df UD |
4994 | * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk |
4995 | features. Reported by Marijn Ros <marijn@mad.scientist.com>. | |
4996 | ||
bbd17455 UD |
4997 | * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>. |
4998 | Use __libc_pthread_functions array if SHARED. | |
4999 | ||
5000 | * pthreadP.h: Move pthread_cond_2_0_t definition to... | |
5001 | * sysdeps/unix/sysv/linux/internaltypes.h: ...here. | |
5002 | ||
5003 | * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define. | |
5004 | (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock, | |
5005 | __libc_key_create, __libc_getspecific, __libc_setspecific): Use | |
5006 | __libc_ptf_call instead of __libc_maybe_call. | |
5007 | (PTF): New #define. | |
5008 | (__libc_cleanup_region_start): Wrap function name with PTF call. | |
5009 | (__libc_cleanup_region_end): Likewise. | |
5010 | (__libc_cleanup_end): Likewise. | |
5011 | ||
5012 | * pthread_getspecific.c: Add __pthread_getspecific_internal alias. | |
5013 | * pthread_setspecific.c: Add __pthread_setspecific_internal alias. | |
5014 | * pthread_key_create.c: Add __pthread_key_create_internal alias. | |
5015 | * pthreadP.h: Add prototypes. | |
5016 | ||
5017 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add | |
5018 | __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and | |
5019 | __pthread_rwlock_unlock aliases. | |
5020 | * pthreadP.h: Add prototypes for new aliases. | |
5021 | ||
5022 | * pthreadP.h (struct pthead_functions): Moved to... | |
5023 | * sysdeps/pthread/pthread-functions.h: ...here. New file. | |
5024 | * init.c (pthread_functions): Add initializers for new elements. | |
5025 | ||
5026 | * cleanup_defer.c: Add __pthread_cleanup_push_defer and | |
5027 | __pthread_cleanup_pop_restore aliases. | |
5028 | * pthreadP.h: Add prototypes. | |
5029 | ||
5030 | * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push | |
5031 | and _GI_pthread_cleanup_pop to __pthread_cleanup_pop. | |
5032 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller. | |
5033 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise. | |
5034 | * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise. | |
5035 | * pthreadP.h: Adjust prototypes and callers. | |
5036 | ||
d27a78be UD |
5037 | 2003-01-04 Ulrich Drepper <drepper@redhat.com> |
5038 | ||
b74121ae UD |
5039 | * Makefile (tests): Add tst-cancel7. |
5040 | (tst-cancel7-ARGS): New variable. | |
bbd17455 | 5041 | * tst-cancel7.c: New file. |
b74121ae | 5042 | |
29bc410c UD |
5043 | * old_pthread_cond_broadcast.c: Optimize initialization a bit to work |
5044 | around gcc defficiencies. | |
5045 | * old_pthread_cond_signal.c: Likewise. | |
5046 | * old_pthread_cond_timedwait.c: Likewise. | |
5047 | * old_pthread_cond_wait.c: Likewise. | |
5048 | ||
d27a78be UD |
5049 | * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element. |
5050 | ||
733f25e6 UD |
5051 | 2003-01-03 Ulrich Drepper <drepper@redhat.com> |
5052 | ||
7edb2ae3 UD |
5053 | * Makefile (tests): Add tst-cond7. |
5054 | * tst-cond7.c: New file. | |
5055 | ||
b1151300 UD |
5056 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S |
5057 | (condvar_cleanup): Get condvar address from the right place. | |
5058 | ||
733f25e6 UD |
5059 | * atomic.h: Correct definitions of atomic_full_barrier, |
5060 | atomic_read_barrier, atomic_write_barrier. | |
5061 | ||
5062 | * old_pthread_cond_broadcast.c: Make memory allocate and initialization | |
5063 | race-free. | |
5064 | * old_pthread_cond_signal.c: Likewise. | |
5065 | * old_pthread_cond_timedwait.c: Likewise. | |
5066 | * old_pthread_cond_wait.c: Likewise. | |
5067 | ||
686b7223 UD |
5068 | 2003-01-03 Jakub Jelinek <jakub@redhat.com> |
5069 | ||
5070 | * Makefile ($(objpfx)libpthread.so): Depend on ld.so. | |
5071 | ||
0e07706e UD |
5072 | 2003-01-03 Ulrich Drepper <drepper@redhat.com> |
5073 | ||
997256dd UD |
5074 | * pthreadP.h (pthread_cond_2_0_t): New type. |
5075 | (struct pthread_functions): Use new type for 2.0 condvar callbacks. | |
5076 | Use new type for the 2.0 condvar function prototypes. | |
5077 | * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions. | |
5078 | * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar | |
5079 | parameter. | |
5080 | * old_pthread_cond_destroy.c: Likewise. | |
5081 | * old_pthread_cond_broadcast.c: Likewise. Lock appropriately. | |
5082 | * old_pthread_cond_signal.c: Likewise. | |
5083 | * old_pthread_cond_timedwait.c: Likewise. | |
5084 | * old_pthread_cond_wait.c: Likewise. | |
5085 | ||
842d2817 UD |
5086 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S |
5087 | (__pthread_cond_wait): Don't save cancellation mode and seq value | |
5088 | in same location. | |
5089 | ||
0e07706e UD |
5090 | * herrno.c (__h_errno_location): Don't define as weak. |
5091 | ||
bf293afe UD |
5092 | 2003-01-02 Jakub Jelinek <jakub@redhat.com> |
5093 | ||
5094 | * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast, | |
5095 | pthread_cond_destroy, pthread_cond_init, pthread_cond_signal | |
5096 | and pthread_cond_wait. | |
5097 | * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast): | |
5098 | Renamed to... | |
5099 | (__pthread_cond_broadcast_2_0): ... this. | |
5100 | * old_pthread_cond_destroy.c (__old_pthread_cond_destroy): | |
5101 | Renamed to... | |
5102 | (__pthread_cond_destroy_2_0): ... this. | |
5103 | * old_pthread_cond_init.c (__old_pthread_cond_init): | |
5104 | Renamed to... | |
5105 | (__pthread_cond_init_2_0): ... this. | |
5106 | * old_pthread_cond_signal.c (__old_pthread_cond_signal): | |
5107 | Renamed to... | |
5108 | (__pthread_cond_signal_2_0): ... this. | |
5109 | * old_pthread_cond_wait.c (__old_pthread_cond_wait): | |
5110 | Renamed to... | |
5111 | (__pthread_cond_wait_2_0): ... this. | |
5112 | * pthread_cond_destroy.c: Include shlib-compat.h. | |
5113 | (pthread_cond_destroy): Change strong_alias into versioned_symbol. | |
5114 | * pthread_cond_init.c: Include shlib-compat.h. | |
5115 | (pthread_cond_init): Change strong_alias into versioned_symbol. | |
5116 | * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_* | |
5117 | fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0 | |
5118 | fields. | |
5119 | (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0, | |
5120 | __pthread_cond_init_2_0, __pthread_cond_signal_2_0, | |
5121 | __pthread_cond_wait_2_0): New prototypes. | |
5122 | (__old_pthread_cond_broadcast, __old_pthread_cond_destroy, | |
5123 | __old_pthread_cond_init, __old_pthread_cond_signal, | |
5124 | __old_pthread_cond_wait): Removed. | |
5125 | * init.c: Include shlib-compat.h. | |
5126 | (pthread_functions): Guard ptr___pthread_attr_init_2_0 | |
5127 | initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1). | |
5128 | Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize | |
5129 | ptr___pthread_cond_*_2_0 fields. | |
5130 | * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and | |
5131 | pthread_cond_*@GLIBC_2.0 compatibility symbols. | |
5132 | ||
5133 | * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if | |
5134 | LIBC_SIGACTION was not yet defined. | |
5135 | [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self. | |
5136 | [!defined LIBC_SIGACTION] (__sigaction): New function and | |
5137 | libc_hidden_weak. | |
5138 | [!defined LIBC_SIGACTION] (sigaction): New weak_alias. | |
5139 | [defined LIBC_SIGACTION]: #include_next <sigaction.c>. | |
5140 | ||
5141 | 2003-01-02 Jakub Jelinek <jakub@redhat.com> | |
5142 | ||
5143 | * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc. | |
5144 | ||
05df18c3 UD |
5145 | 2003-01-02 Ulrich Drepper <drepper@redhat.com> |
5146 | ||
5147 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t): | |
5148 | New, larger type definition. | |
5149 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar | |
5150 | implementation. | |
5151 | * Versions [libpthread]: Add definitions for new pthread_cond_* | |
5152 | interfaces for version GLIBC_2.3.2. | |
5153 | * pthread_cond_init.c: Update initialization for new type definition. | |
5154 | * Makefile (libpthread-routines): Remove pthread_cond_wait, | |
5155 | pthread_cond_timedwait, pthread_cond_signal, and | |
5156 | pthread_cond_broadcast. Add old_pthread_cond_init, | |
5157 | old_pthread_cond_destroy, old_pthread_cond_wait, | |
5158 | old_pthread_cond_timedwait, old_pthread_cond_signal, and | |
5159 | old_pthread_cond_broadcast. | |
5160 | * old_pthread_cond_broadcast.c: New file. | |
5161 | * old_pthread_cond_destroy.c: New file. | |
5162 | * old_pthread_cond_init.c: New file. | |
5163 | * old_pthread_cond_signal.c: New file. | |
5164 | * old_pthread_cond_timedwait.c: New file. | |
5165 | * old_pthread_cond_wait.c: New file. | |
5166 | * pthreadP.h: Add prototypes for the compatibility interfaces. | |
5167 | ||
5168 | * pthread_cond_destroy.c: Don't include <errno.h>. | |
5169 | ||
fd8979e4 UD |
5170 | 2003-01-01 Ulrich Drepper <drepper@redhat.com> |
5171 | ||
5172 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid | |
5173 | unnecessary zero offset when addressing MUTEX. | |
5174 | ||
6d6ee629 UD |
5175 | 2002-12-31 Ulrich Drepper <drepper@redhat.com> |
5176 | ||
5177 | * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for | |
5178 | __register_atfork. | |
5179 | * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def | |
5180 | for __register_atfork. | |
5181 | ||
a4baf360 UD |
5182 | 2002-12-31 Jakub Jelinek <jakub@redhat.com> |
5183 | ||
5184 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__ | |
5185 | instead of ASSEMBLER test macro. | |
5186 | ||
5187 | * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin, | |
5188 | __libc_current_sigrtmax): Add libc_hidden_def. | |
5189 | ||
5190 | * sysdeps/pthread/list.h: Remove assert.h include. | |
5191 | ||
e9395a94 UD |
5192 | 2002-12-31 Ulrich Drepper <drepper@redhat.com> |
5193 | ||
5194 | * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use | |
5195 | __pthread_initialize_minimal_internal not | |
5196 | __pthread_initialize_minimal. | |
5197 | ||
89d6e444 UD |
5198 | 2002-12-30 Ulrich Drepper <drepper@redhat.com> |
5199 | ||
416d2de6 UD |
5200 | * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark |
5201 | __pthread_initialize_minimal as hidden. | |
5202 | ||
89d6e444 UD |
5203 | * init.c (__pthread_initialize_minimal_internal): Don't mark as |
5204 | constructor. | |
5205 | ||
5206 | 2002-12-31 Jakub Jelinek <jakub@redhat.com> | |
5207 | ||
5208 | * Makefile ($(inst_libdir)/libpthread.so): Depend on | |
5209 | $(common-objpfx)format.lds, include that into the output script. | |
5210 | Fix comment. | |
5211 | (extra-B-pthread.so): Change linuxthreads/ into nptl/. | |
5212 | ||
8cac677c UD |
5213 | 2002-12-28 Andreas Jaeger <aj@suse.de> |
5214 | ||
5215 | * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for | |
5216 | nsec resolution changes. | |
5217 | (xstat64_conv): Likewise. | |
5218 | (xstat32_conv): Likewise. | |
5219 | * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for | |
5220 | struct kernel_stat. | |
5221 | * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for | |
5222 | structs stat and stat64. | |
5223 | * time/time.h (__timespec_defined): Define for __USE_MISC. | |
89d6e444 | 5224 | * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat. |
8cac677c | 5225 | |
49e9f864 UD |
5226 | 2002-12-30 Jakub Jelinek <jakub@redhat.com> |
5227 | ||
5228 | * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export | |
5229 | argument. | |
5230 | (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro. | |
5231 | (pthread_exit): Use strong_alias to avoid warnings. | |
5232 | * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit | |
5233 | and ptr_pthread_attr_init_2_* to ptr___pthread_exit and | |
5234 | ptr___pthread_attr_init_2_*. | |
5235 | * init.c (pthread_functions): Adjust. | |
5236 | ||
bab09b26 UD |
5237 | 2002-12-29 Ulrich Drepper <drepper@redhat.com> |
5238 | ||
598d7a42 UD |
5239 | * forward.c: Make all functions available by default again. It |
5240 | caused too much trouble. | |
5241 | ||
bab09b26 UD |
5242 | * pt-siglongjmp.c: Removed. |
5243 | ||
3b7ed871 UD |
5244 | 2002-12-28 Jakub Jelinek <jakub@redhat.com> |
5245 | ||
5246 | * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler. | |
5247 | (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove. | |
5248 | * sysdeps/i386/Makefile: New file. | |
5249 | * sysdeps/i386/tcb-offsets.sym: New file. | |
5250 | * sysdeps/pthread/tcb-offsets.h: New file. | |
5251 | * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init): | |
5252 | Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks. | |
5253 | ||
5254 | * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move | |
5255 | __register_atfork... | |
5256 | (GLIBC_2.3.2): ...here. | |
5257 | ||
5258 | 2002-12-28 Ulrich Drepper <drepper@redhat.com> | |
5259 | ||
5260 | * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and | |
5261 | pthread_attr_setstackaddr with __attribute_deprecated__. | |
5262 | ||
270d9d47 UD |
5263 | 2002-12-27 Jakub Jelinek <jakub@redhat.com> |
5264 | ||
5265 | * pt-system.c (system): Remove cancellation handling. | |
5266 | * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the | |
5267 | cancellation routines. | |
5268 | ||
131fd126 UD |
5269 | 2002-12-28 Ulrich Drepper <drepper@redhat.com> |
5270 | ||
afb2e954 UD |
5271 | * descr.h: Include <dl-sysdep.h>. |
5272 | (struct pthread): Move header.data.list to the back of the struct. | |
131fd126 UD |
5273 | * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct. |
5274 | (MULTIPLE_THREADS_OFFSET): Adjust offset. | |
5275 | (SYSINFO_OFFSEET): Likewise. | |
5276 | ||
5277 | 2002-12-27 Jakub Jelinek <jakub@redhat.com> | |
5278 | ||
5279 | * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO): | |
5280 | Define. | |
5281 | (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings. | |
5282 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO, | |
5283 | DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define. | |
5284 | (USE_DL_SYSINFO): Undef. | |
5285 | ||
5286 | 2002-12-22 Jakub Jelinek <jakub@redhat.com> | |
5287 | ||
5288 | * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of | |
5289 | $(common-objpfx)libc.so. | |
5290 | * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that | |
5291 | it is bigger than pipe buffer size even on arches with bigger | |
5292 | page size. | |
5293 | (tf_usleep): Cast usleep argument to useconds_t to avoid warnings. | |
5294 | ||
a218c9cf UD |
5295 | 2002-12-25 Ulrich Drepper <drepper@redhat.com> |
5296 | ||
5297 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement | |
5298 | correct errno access for case that USE___THREAD is not defined. | |
5299 | ||
015a2dc9 UD |
5300 | 2002-12-24 Ulrich Drepper <drepper@redhat.com> |
5301 | ||
5302 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif. | |
5303 | Patch by Marijn Ros <marijn@mad.scientist.com>. | |
5304 | ||
5220f9ac RM |
5305 | 2002-12-22 Roland McGrath <roland@redhat.com> |
5306 | ||
5307 | * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%). | |
5308 | ||
1561bf63 UD |
5309 | 2002-12-20 Ulrich Drepper <drepper@redhat.com> |
5310 | ||
5311 | * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define. | |
5312 | ||
3325198e UD |
5313 | 2002-12-19 Ulrich Drepper <drepper@redhat.com> |
5314 | ||
057c823f UD |
5315 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define |
5316 | NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode. | |
5317 | * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file. | |
5318 | ||
097eca29 UD |
5319 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead |
5320 | of int $0x80. | |
5321 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise. | |
5322 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise. | |
5323 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise. | |
5324 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise. | |
5325 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise. | |
5326 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise. | |
5327 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise. | |
5328 | * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise. | |
5329 | ||
5330 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using | |
5331 | sysenter. | |
5332 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise. | |
5333 | ||
5334 | * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>. | |
5335 | ||
5f5843e3 UD |
5336 | * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo |
5337 | in new TCB. | |
5338 | * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check | |
5339 | that sysinfo is properly initialized. | |
5340 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO | |
5341 | to 1 only for ld.so. | |
5342 | ||
3325198e UD |
5343 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define |
5344 | RTLD_CORRECT_DYNAMIC_WEAK. | |
5345 | ||
74e8f2dc UD |
5346 | 2002-12-19 Jakub Jelinek <jakub@redhat.com> |
5347 | ||
5348 | * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1): | |
5349 | Use return 0 as 6th argument to FORWARD4. | |
5350 | * pthread_equal.c: Include pthreadP.h instead of pthread.h. | |
5351 | ||
df45b31e UD |
5352 | 2002-12-18 Ulrich Drepper <drepper@redhat.com> |
5353 | ||
5354 | * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member. | |
5355 | * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member. | |
5356 | Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined. | |
5357 | (INIT_SYSINFO): New #define. | |
5358 | (TLS_TP_INIT): Use INIT_SYSINFO. | |
5359 | * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init): | |
5360 | At test to make sure SYSINFO_OFFSET value is correct. | |
5361 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file. | |
5362 | ||
3d539579 UD |
5363 | 2002-12-18 Jakub Jelinek <jakub@redhat.com> |
5364 | ||
5365 | * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias. | |
5366 | * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise. | |
5367 | * Versions [libc: GLIBC_2.0]: Add pthread_attr_init. | |
5368 | [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init, | |
5369 | __pthread_rwlock_destroy, __pthread_rwlock_rdlock, | |
5370 | __pthread_rwlock_wrlock, __pthread_rwlock_unlock, | |
5371 | __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock. | |
5372 | ||
d7913e0e UD |
5373 | 2002-12-18 Ulrich Drepper <drepper@redhat.com> |
5374 | ||
f051627f UD |
5375 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL |
5376 | macro instead of using int $0x80 directly. | |
5377 | ||
d7913e0e UD |
5378 | * sysdeps/pthread/bits/stdio-lock.h: New file. |
5379 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file. | |
5380 | * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file. | |
5381 | * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file. | |
5382 | * Makefile (routines): Add libc-lowlevelmutex. | |
5383 | ||
5384 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove | |
5385 | __i686.get_pc_thunk.dx. | |
5386 | ||
f077a4a9 UD |
5387 | 2002-12-17 Jakub Jelinek <jakub@redhat.com> |
5388 | ||
5389 | * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig. | |
5390 | (tests): Depend on $(objpfx)tst-cancel-wrappers.out. | |
5391 | ($(objpfx)tst-cancel-wrappers.out): New rule. | |
5392 | * tst-cancel-wrappers.sh: New test. | |
5393 | * tst-locale1.c: Include signal.h. | |
5394 | (uselocale): Test static linking of __libc_current_sigrt*. | |
5395 | ||
5396 | 2002-12-17 Ulrich Drepper <drepper@redhat.com> | |
5397 | ||
5398 | * Makefile (tests): Add tst-cancel6. | |
5399 | * tst-cancel6.c: New file | |
5400 | ||
bd499a3b UD |
5401 | 2002-12-17 Jakub Jelinek <jakub@redhat.com> |
5402 | ||
5403 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P): | |
5404 | Define meaningfully for assembler as well. | |
5405 | * pthreadP.h (struct pthread_functions): Remove | |
5406 | ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0 | |
5407 | and ptr_pthread_attr_init_2_1 fields. | |
5408 | * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0 | |
5409 | and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init. | |
5410 | * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument. | |
5411 | (FORWARD3): Define using FORWARD4. | |
5412 | (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1 | |
5413 | versions. | |
5414 | * pt-system.c: Remove duplicate stdlib.h include. | |
5415 | ||
0a1063f4 UD |
5416 | 2002-12-16 Ulrich Drepper <drepper@redhat.com> |
5417 | ||
87d60668 UD |
5418 | * sem_init.c: Define sem_init@GLIBC_2.0. |
5419 | * sem_destroy.c: Define sem_destroy@GLIBC_2.0. | |
5420 | * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0. | |
5421 | ||
0a1063f4 UD |
5422 | * flockfile.c: Moved to... |
5423 | * sysdeps/pthread/flockfile.c: ...here. New file. | |
5424 | * funlockfile.c: Moved to... | |
5425 | * sysdeps/pthread/funlockfile.c: ...here. New file. | |
5426 | * ftrylockfile.c: Moved to... | |
5427 | * sysdeps/pthread/ftrylockfile.c: ...here. New file. | |
5428 | ||
9634cf9d UD |
5429 | 2002-12-16 Jakub Jelinek <jakub@redhat.com> |
5430 | ||
5431 | * libc-cancellation.c: Guard both function with | |
5432 | #if !defined NOT_IN_libc. | |
5433 | * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the | |
5434 | automatically provided pthread wrappers. | |
5435 | * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to | |
5436 | CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc | |
5437 | nor in libpthread. | |
5438 | * pt-open.c: Removed. | |
5439 | * pt-fcntl.c: Removed. | |
5440 | * pt-fsync.c: Removed. | |
5441 | * pt-lseek.c: Removed. | |
5442 | * pt-msgrcv.c: Removed. | |
5443 | * pt-msgsnd.c: Removed. | |
5444 | * pt-msync.c: Removed. | |
5445 | * pt-nanosleep.c: Removed. | |
5446 | * pt-open64.c: Removed. | |
5447 | * pt-pause.c: Removed. | |
5448 | * pt-pread.c: Removed. | |
5449 | * pt-pread64.c: Removed. | |
5450 | * pt-pwrite.c: Removed. | |
5451 | * pt-pwrite64.c: Removed. | |
5452 | * pt-read.c: Removed. | |
5453 | * pt-recv.c: Removed. | |
5454 | * pt-recvfrom.c: Removed. | |
5455 | * pt-recvmsg.c: Removed. | |
5456 | * pt-send.c: Removed. | |
5457 | * pt-sendto.c: Removed. | |
5458 | * pt-sigtimedwait.c: Removed. | |
5459 | * pt-sigwait.c: Removed. | |
5460 | * pt-wait.c: Removed. | |
5461 | * pt-waitpid.c: Removed. | |
5462 | * pt-write.c: Removed. | |
5463 | * pt-accept.c: Removed. | |
5464 | * pt-close.c: Removed. | |
5465 | * pt-connect.c: Removed. | |
5466 | * pt-lseek64.c: Removed. | |
5467 | * pt-sendmsg.c: Removed. | |
5468 | * pt-tcdrain.c: Removed. | |
5469 | ||
6ee8d334 UD |
5470 | 2002-12-15 Ulrich Drepper <drepper@redhat.com> |
5471 | ||
81fa9371 UD |
5472 | * init.c (__pthread_initialize_minimal_internal): Renamed from |
5473 | __pthread_initialize_minimal. Make old name an alias. This | |
5474 | converts a normal relocation into a relative relocation. | |
5475 | ||
f3015aa5 UD |
5476 | * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl. |
5477 | ||
4cbc1950 UD |
5478 | * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect, |
5479 | readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev. | |
5480 | * Makefile (libpthread-routines): Remove pt-creat, pt-poll, | |
5481 | pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend, | |
5482 | pt-sigwaitinfo, pt-waitid, and pt-writev. | |
5483 | * pt-creat.c: Removed. | |
5484 | * pt-poll.c: Removed. | |
5485 | * pt-pselect.c: Removed. | |
5486 | * pt-readv.c: Removed. | |
5487 | * pt-select.c: Removed. | |
5488 | * pt-sigpause.c: Removed. | |
5489 | * pt-sigsuspend.c: Removed. | |
5490 | * pt-sigwaitinfo.c: Removed. | |
5491 | * pt-waitid.c: Removed. | |
5492 | * pt-writev.c: Removed. | |
5493 | ||
8454830b UD |
5494 | * init.c (pthread_functions): New variable. |
5495 | (__pthread_initialize_minimal): Pass pointer to pthread_functions | |
5496 | (or NULL) to __libc_pthread_init. | |
5497 | * forward.c: Rewrite to use __libc:pthread_functions array to get | |
5498 | function addresses. | |
5499 | * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init | |
5500 | prototype. | |
5501 | * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init): | |
5502 | Take new parameter. Copy content of variable pointed to by it | |
5503 | to __libc_pthread_init. | |
5504 | ||
5505 | * pthreadP.h (struct pthread_functions): New type. | |
5506 | (__libc_pthread_init): Declare. | |
5507 | ||
5508 | * pthread_attr_destroy.c: Add namespace protected alias. | |
5509 | * pthread_attr_getdetachstate.c: Likewise. | |
5510 | * pthread_attr_getinheritsched.c: Likewise. | |
5511 | * pthread_attr_getschedparam.c: Likewise. | |
5512 | * pthread_attr_getschedpolicy.c: Likewise. | |
5513 | * pthread_attr_getscope.c: Likewise. | |
5514 | * pthread_attr_setdetachstate.c: Likewise. | |
5515 | * pthread_attr_setinheritsched.c: Likewise. | |
5516 | * pthread_attr_setschedparam.c: Likewise. | |
5517 | * pthread_attr_setschedpolicy.c: Likewise. | |
5518 | * pthread_attr_setscope.c: Likewise. | |
5519 | * pthread_cond_broadcast.c: Likewise. | |
5520 | * pthread_cond_destroy.c: Likewise. | |
5521 | * pthread_cond_init.c: Likewise. | |
5522 | * pthread_cond_signal.c: Likewise. | |
5523 | * pthread_cond_wait.c: Likewise. | |
5524 | * pthread_condattr_destroy.c: Likewise. | |
5525 | * pthread_condattr_init.c: Likewise. | |
5526 | * pthread_equal.c: Likewise. | |
5527 | * pthread_exit.c: Likewise. | |
5528 | * pthread_getschedparam.c: Likewise. | |
5529 | * pthread_self.c: Likewise. | |
5530 | * pthread_setcancelstate.c: Likewise. | |
5531 | * pthread_setschedparam.c: Likewise. | |
5532 | * pthread_mutex_destroy.c: Likewise. | |
5533 | * pthread_mutex_init.c: Likewise. | |
5534 | * pthreadP.h: Add prototypes for the aliases. | |
5535 | ||
0d5f4929 UD |
5536 | * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set |
5537 | multiple_threads member in correct TCB to 1. | |
5538 | ||
6ee8d334 UD |
5539 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define |
5540 | SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread | |
5541 | member of thread decriptor, otherwise return unconditionally 1. | |
5542 | ||
2fb6444d UD |
5543 | 2002-12-14 Ulrich Drepper <drepper@redhat.com> |
5544 | ||
5545 | * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the | |
5546 | regular Linux version. Remove file. | |
5547 | * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file. | |
5548 | * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file. | |
5549 | * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file. | |
5550 | * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file. | |
5551 | * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file. | |
5552 | * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file. | |
5553 | * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file. | |
5554 | * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file. | |
5555 | * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file. | |
5556 | * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file. | |
5557 | * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file. | |
5558 | * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file. | |
5559 | * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file. | |
5560 | * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file. | |
5561 | * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file. | |
5562 | * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file. | |
5563 | * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file. | |
5564 | * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file. | |
5565 | * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file. | |
5566 | * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file. | |
5567 | * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file. | |
5568 | * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file. | |
5569 | * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file. | |
5570 | * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file. | |
5571 | * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file. | |
5572 | * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file. | |
5573 | * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file. | |
5574 | * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file. | |
5575 | * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file. | |
5576 | * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file. | |
5577 | ||
86b2dc40 UD |
5578 | 2002-12-14 Jakub Jelinek <jakub@redhat.com> |
5579 | ||
5580 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file. | |
5581 | * sysdeps/unix/sysv/linux/open.c: Removed. | |
5582 | * sysdeps/unix/sysv/linux/fsync.c: Removed. | |
5583 | * sysdeps/unix/sysv/linux/lseek.c: Removed. | |
5584 | * sysdeps/unix/sysv/linux/msync.c: Removed. | |
5585 | * sysdeps/unix/sysv/linux/read.c: Removed. | |
5586 | * sysdeps/unix/sysv/linux/close.c: Removed. | |
5587 | * sysdeps/unix/sysv/linux/creat.c: Removed. | |
5588 | * sysdeps/unix/sysv/linux/nanosleep.c: Removed. | |
5589 | * sysdeps/unix/sysv/linux/pause.c: Removed. | |
5590 | * sysdeps/unix/sysv/linux/select.c: Removed. | |
5591 | * sysdeps/unix/sysv/linux/write.c: Removed. | |
5592 | ||
9d263d72 UD |
5593 | 2002-12-14 Ulrich Drepper <drepper@redhat.com> |
5594 | ||
5595 | * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads | |
5596 | element in TCB to see whether locking is needed. | |
5597 | ||
5598 | * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that | |
5599 | MULTIPLE_THREADS_OFFSET value is correct. | |
5600 | ||
5601 | * sysdeps/unix/sysv/linux/close.c: New file. | |
5602 | * sysdeps/unix/sysv/linux/connect.S: New file. | |
5603 | * sysdeps/unix/sysv/linux/creat.c: New file. | |
5604 | * sysdeps/unix/sysv/linux/fsync.c: New file. | |
5605 | * sysdeps/unix/sysv/linux/llseek.c: New file. | |
5606 | * sysdeps/unix/sysv/linux/lseek.c: New file. | |
5607 | * sysdeps/unix/sysv/linux/msgrcv.c: New file. | |
5608 | * sysdeps/unix/sysv/linux/msgsnd.c: New file. | |
5609 | * sysdeps/unix/sysv/linux/msync.c: New file. | |
5610 | * sysdeps/unix/sysv/linux/nanosleep.c: New file. | |
5611 | * sysdeps/unix/sysv/linux/open.c: New file. | |
5612 | * sysdeps/unix/sysv/linux/open64.c: New file. | |
5613 | * sysdeps/unix/sysv/linux/pause.c: New file. | |
5614 | * sysdeps/unix/sysv/linux/poll.c: New file. | |
5615 | * sysdeps/unix/sysv/linux/pread.c: New file. | |
5616 | * sysdeps/unix/sysv/linux/pread64.c: New file. | |
5617 | * sysdeps/unix/sysv/linux/pselect.c: New file. | |
5618 | * sysdeps/unix/sysv/linux/pwrite.c: New file. | |
5619 | * sysdeps/unix/sysv/linux/pwrite64.c: New file. | |
5620 | * sysdeps/unix/sysv/linux/readv.c: New file. | |
5621 | * sysdeps/unix/sysv/linux/recv.S: New file. | |
5622 | * sysdeps/unix/sysv/linux/recvfrom.S: New file. | |
5623 | * sysdeps/unix/sysv/linux/recvmsg.S: New file. | |
5624 | * sysdeps/unix/sysv/linux/select.c: New file. | |
5625 | * sysdeps/unix/sysv/linux/send.S: New file. | |
5626 | * sysdeps/unix/sysv/linux/sendmsg.S: New file. | |
5627 | * sysdeps/unix/sysv/linux/sendto.S: New file. | |
5628 | * sysdeps/unix/sysv/linux/sigpause.c: New file. | |
5629 | * sysdeps/unix/sysv/linux/sigsuspend.c: New file. | |
5630 | * sysdeps/unix/sysv/linux/sigtimedwait.c: New file. | |
5631 | * sysdeps/unix/sysv/linux/sigwait.c: New file. | |
5632 | * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file. | |
5633 | * sysdeps/unix/sysv/linux/system.c: New file. | |
5634 | * sysdeps/unix/sysv/linux/tcdrain.c: New file. | |
5635 | * sysdeps/unix/sysv/linux/wait.c: New file. | |
5636 | * sysdeps/unix/sysv/linux/waitid.c: New file. | |
5637 | * sysdeps/unix/sysv/linux/waitpid.c: New file. | |
5638 | * sysdeps/unix/sysv/linux/writev.c: New file. | |
5639 | * sysdeps/unix/sysv/linux/i386/fcntl.c: New file. | |
5640 | ||
5641 | * pt-readv.c: Fix comment. | |
5642 | ||
5643 | 2002-12-14 Jakub Jelinek <jakub@redhat.com> | |
5644 | ||
5645 | * tst-cleanup1.c: Include stdlib.h. | |
5646 | ||
5647 | * tst-cancel5.c: New test. | |
5648 | * Makefile (tests): Add tst-cancel5. | |
5649 | (tst-cancel5): Link against libc.so libpthread.so in that order. | |
5650 | ||
9ae0909b UD |
5651 | 2002-12-13 Ulrich Drepper <drepper@redhat.com> |
5652 | ||
b7bdd9c4 UD |
5653 | * forward.c (test_loaded): Prevent recursive calls. |
5654 | ||
9ae0909b UD |
5655 | * Makefile (routines): Add libc-cancellation. |
5656 | * libc-cancellation.c: New file. | |
5657 | * descr.h (struct pthread): Add multiple_threads field. | |
5658 | * allocatestack.c (allocate_stack): Initialize multiple_header field of | |
5659 | new thread descriptor to 1. | |
5660 | * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): | |
5661 | Initialize multiple_thread field after successful thread creation. | |
5662 | * cancellation.c (__do_cancel): Move to pthreadP.h. | |
5663 | (__pthread_enable_asynccancel): Remove parameter from __do_cancel call. | |
5664 | (__pthread_disable_asynccancel): Add internal_function attribute. | |
5665 | * init.c (sigcancel_handler): Remove parameter from __do_cancel call. | |
5666 | * pthread_setcancelstate.c: Likewise. | |
5667 | * pthread_setcanceltype.c: Likewise. | |
5668 | * pthread_exit.c: Likewise. | |
5669 | * pthreadP.h (CANCELLATION_P): Likewise. | |
5670 | (__do_cancel): Define as static inline. | |
5671 | (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines. | |
5672 | (__libc_enable_asynccancel, __libc_disable_asynccancel): New | |
5673 | declarations. | |
5674 | * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads | |
5675 | fields. Define MULTIPLE_THREADS_OFFSET. | |
5676 | * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed | |
5677 | declaration. | |
5678 | * sysdeps/unix/sysv/linux/accept.S: New file. | |
5679 | * sysdeps/unix/sysv/linux/read.c: New file. | |
5680 | * sysdeps/unix/sysv/linux/write.c: New file. | |
5681 | * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file. | |
5682 | * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and | |
5683 | initialization of __libc_locking_needed. | |
5684 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use | |
5685 | __libc_locking_needed, use multiple_threads field in TCB. | |
5686 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise. | |
5687 | ||
22f20674 UD |
5688 | 2002-12-12 Ulrich Drepper <drepper@redhat.com> |
5689 | ||
2ad2e1e7 UD |
5690 | * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486 |
5691 | version. | |
5692 | * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise. | |
5693 | ||
22f20674 UD |
5694 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct |
5695 | access to __libc_locking_needed for PIC. | |
5696 | ||
aa80bf86 UD |
5697 | 2002-12-12 Jakub Jelinek <jakub@redhat.com> |
5698 | ||
5699 | * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only | |
5700 | declare for libc.so. | |
5701 | (__libc_lock_init, __libc_lock_init_recursive): Change into comma | |
5702 | expression. | |
5703 | (__libc_lock_lock): Put into statement expression. | |
5704 | (__libc_lock_unlock): Remove trailing semicolon. | |
5705 | * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo. | |
5706 | ||
24021373 RM |
5707 | 2002-12-12 Roland McGrath <roland@redhat.com> |
5708 | ||
5709 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with | |
5710 | "m" constraint to refer to __libc_locking_needed. Declare it here. | |
5711 | ||
14e7aece UD |
5712 | 2002-12-12 Ulrich Drepper <drepper@redhat.com> |
5713 | ||
5714 | * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to... | |
5715 | * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this. | |
5716 | Initialize __libc_locking_needed. | |
5717 | * init.c (__pthread_initialize_minimal): Call __libc_pthread_init | |
5718 | instead of __register_pthread_fork_handler. | |
5719 | * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed. | |
5720 | * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace | |
5721 | fork-gen with libc_pthread_init. | |
5722 | * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead | |
5723 | of __register_pthread_fork_handler. | |
5724 | * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead | |
5725 | of __register_pthread_fork_handler. | |
5726 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use | |
5727 | __libc_locking_needed to determine whether lock prefix can be avoided. | |
5728 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise. | |
5729 | ||
85631c8e UD |
5730 | 2002-12-11 Ulrich Drepper <drepper@redhat.com> |
5731 | ||
da63009e UD |
5732 | * Makefile (tests): Add tst-cleanup1. |
5733 | * tst-cleanup1.c: New file. | |
5734 | * cancellation.c (__cleanup_thread): Removed. | |
5735 | (__do_cancel): Remove call to __cleanup_thread. | |
5736 | * pthreadP.h: Remove __cleanup_thread prorotype. | |
5737 | ||
000160a2 UD |
5738 | * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start): |
5739 | Remember function and argument even if cancellation handler | |
5740 | function is not available. | |
5741 | (__libc_cleanup_region_end): Execute registered function directly if | |
5742 | pthread functions are not available. | |
5743 | (__libc_cleanup_end): Likewise. | |
5744 | ||
85631c8e UD |
5745 | * init.c (__pthread_initialize_minimal): Fix initialization in |
5746 | static lib by preventing gcc from being too clever. | |
5747 | ||
dce8f2b6 UD |
5748 | 2002-12-10 Ulrich Drepper <drepper@redhat.com> |
5749 | ||
34a075be UD |
5750 | * init.c (__pthread_initialize_minimal): Remove unneccesary |
5751 | sigaddset call. | |
5752 | ||
dce8f2b6 UD |
5753 | * Makefile (tests): We can run tst-locale2 now. |
5754 | ||
e5e45b53 UD |
5755 | 2002-12-09 Ulrich Drepper <drepper@redhat.com> |
5756 | ||
5757 | * Versions: Remove duplicated sigwait entry. | |
5758 | ||
bdb04f92 UD |
5759 | 2002-12-08 Ulrich Drepper <drepper@redhat.com> |
5760 | ||
1e506629 UD |
5761 | * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only |
5762 | inside libpthread. | |
5763 | ||
a3957dd5 UD |
5764 | * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning. |
5765 | ||
bdb04f92 UD |
5766 | * pthreadP.h: Declare __pthread_enable_asynccancel and |
5767 | __pthread_disable_asynccancel. | |
5768 | (CANCEL_ASYNC): Use __pthread_enable_asynccancel. | |
5769 | (CANCEL_RESET): Use __pthread_disable_asynccancel. | |
5770 | * cancellation.c (__pthread_enable_asynccancel): New function. | |
5771 | (__pthread_disable_asynccancel): New function. | |
5772 | * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change. | |
5773 | * pt-close.c: Likewise. | |
5774 | * pt-connect.c: Likewise. | |
5775 | * pt-creat.c: Likewise. | |
5776 | * pt-fcntl.c: Likewise. | |
5777 | * pt-fsync.c: Likewise. | |
5778 | * pt-lseek.c: Likewise. | |
5779 | * pt-lseek64.c: Likewise. | |
5780 | * pt-msgrcv.c: Likewise. | |
5781 | * pt-msgsnd.c: Likewise. | |
5782 | * pt-msync.c: Likewise. | |
5783 | * pt-nanosleep.c: Likewise. | |
5784 | * pt-open.c: Likewise. | |
5785 | * pt-open64.c: Likewise. | |
5786 | * pt-pause.c: Likewise. | |
5787 | * pt-poll.c: Likewise. | |
5788 | * pt-pread.c: Likewise. | |
5789 | * pt-pread64.c: Likewise. | |
5790 | * pt-pselect.c: Likewise. | |
5791 | * pt-pwrite.c: Likewise. | |
5792 | * pt-pwrite64.c: Likewise. | |
5793 | * pt-read.c: Likewise. | |
5794 | * pt-readv.c: Likewise. | |
5795 | * pt-recv.c: Likewise. | |
5796 | * pt-recvfrom.c: Likewise. | |
5797 | * pt-recvmsg.c: Likewise. | |
5798 | * pt-select.c: Likewise. | |
5799 | * pt-send.c: Likewise. | |
5800 | * pt-sendmsg.c: Likewise. | |
5801 | * pt-sendto.c: Likewise. | |
5802 | * pt-sigpause.c: Likewise. | |
5803 | * pt-sigsuspend.c: Likewise. | |
5804 | * pt-sigtimedwait.c: Likewise. | |
5805 | * pt-sigwait.c: Likewise. | |
5806 | * pt-sigwaitinfo.c: Likewise. | |
5807 | * pt-system.c: Likewise. | |
5808 | * pt-tcdrain.c: Likewise. | |
5809 | * pt-wait.c: Likewise. | |
5810 | * pt-waitid.c: Likewise. | |
5811 | * pt-waitpid.c: Likewise. | |
5812 | * pt-write.c: Likewise. | |
5813 | * pt-writev.c: Likewise. | |
a3957dd5 UD |
5814 | * pthread_join.c: Likewise. |
5815 | * pthread_timedjoin.c: Likewise. | |
bdb04f92 UD |
5816 | |
5817 | * pt-sigpause.c (sigsuspend): Call __sigsuspend. | |
5818 | (__xpg_sigpause): New function. | |
5819 | * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause. | |
5820 | ||
6ccb3834 UD |
5821 | 2002-12-07 Ulrich Drepper <drepper@redhat.com> |
5822 | ||
09efc3ba UD |
5823 | * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO. |
5824 | ||
5825 | * cleanup.c: Move declarations of _GI_pthread_cleanup_push and | |
5826 | _GI_pthread_cleanup_pop to pthreadP.h. | |
5827 | ||
5828 | * ftrylockfile.c: Use _IO_lock_trylock instead of | |
5829 | pthread_mutex_trylock. | |
5830 | ||
5831 | * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype. | |
5832 | (CANCEL_RESET): Likewise. | |
5833 | (__pthread_setcanceltype_): Declare. | |
5834 | (__pthread_mutex_lock_internal): Declare. | |
5835 | (__pthread_mutex_unlock_internal): Declare. | |
5836 | (__pthread_once_internal): Declare. | |
5837 | (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push. | |
5838 | (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop. | |
5839 | ||
5840 | * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock | |
5841 | and pthread_mutex_unlock. | |
5842 | * pthread_cond_wait.c: Likewise. | |
5843 | * pthread_mutex_lock.c: Use INTDEF to define alias if needed. | |
5844 | * pthread_mutex_unlock.c: Likewise. | |
5845 | ||
5846 | * pthread_setcanceltype.c: Add additional alias | |
5847 | __pthread_setcanceltype. | |
5848 | ||
5849 | * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF. | |
5850 | * sem_open.c (sem_open): Likewise. | |
5851 | Use __libc_open, __libc_write, and __libc_close instead of | |
5852 | open, write, and close respectively. | |
5853 | ||
5854 | * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal): | |
5855 | Rewrite as statement expression since it must return a value. | |
5856 | ||
5857 | * pthread_cancel.c: Use __pthread_kill instead of pthread_kill. | |
5858 | * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias | |
5859 | __pthread_kill. | |
5860 | ||
5861 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional | |
5862 | alias __pthread_once_internal. | |
5863 | ||
6ccb3834 UD |
5864 | * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise. |
5865 | ||
d3c9f895 UD |
5866 | 2002-12-06 Ulrich Drepper <drepper@redhat.com> |
5867 | ||
4614167a UD |
5868 | * Makefile (tests): Add tst-stdio1 and tst-stdio2. |
5869 | * tst-stdio1.c: New file. | |
5870 | * tst-stdio2.c: New file. | |
5871 | ||
a4548cea UD |
5872 | * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use. |
5873 | ||
d3c9f895 UD |
5874 | * Makefile (tests): Comment out tst-locale2 for now. |
5875 | (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO. | |
5876 | ||
5877 | * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to | |
5878 | -D_IO_MTSAFE_IO. | |
5879 | * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>. | |
5880 | Use _IO_lock_init instead of explicit assignment. | |
5881 | ||
5882 | * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros. | |
5883 | Define __libc_lock_* and __libc_lock_recursive macros with | |
5884 | lowlevellock macros, not pthread mutexes. | |
5885 | ||
5886 | * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead | |
5887 | of pthread_mutex_lock. | |
5888 | * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock | |
5889 | instead of pthread_mutex_unlock. | |
5890 | ||
fde89ad0 RM |
5891 | 2002-12-06 Roland McGrath <roland@redhat.com> |
5892 | ||
5893 | * allocatestack.c (__stack_user): Use uninitialized defn. | |
5894 | * init.c (__pthread_initialize_minimal): Initialize it here. | |
5895 | ||
11767d47 RM |
5896 | 2002-12-05 Roland McGrath <roland@redhat.com> |
5897 | ||
fde89ad0 RM |
5898 | * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error |
5899 | string. | |
5900 | * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise. | |
5901 | ||
11767d47 RM |
5902 | * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add |
5903 | missing & here too. | |
5904 | ||
440d8bc2 UD |
5905 | 2002-12-05 Ulrich Drepper <drepper@redhat.com> |
5906 | ||
5907 | * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove | |
5908 | lowlevellock. | |
5909 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file. | |
5910 | * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file. | |
5911 | * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file. | |
5912 | * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation | |
5913 | for __libc_lock_* macros. | |
5914 | * Makefile (routines): Add libc-lowlevellock. | |
5915 | ||
5916 | 2002-10-09 Roland McGrath <roland@redhat.com> | |
5917 | ||
5918 | * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro. | |
5919 | Under [__PIC__], call the function via the pointer fetched for | |
5920 | comparison rather than a call by name that uses the PLT. | |
5921 | (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini) | |
5922 | (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock) | |
5923 | (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock) | |
5924 | (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock) | |
5925 | (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it. | |
5926 | ||
d5ed0118 RM |
5927 | 2002-12-04 Roland McGrath <roland@redhat.com> |
5928 | ||
5929 | * forward.c (pthread_self): Use FORWARD3 macro to correct return type. | |
5930 | ||
5931 | * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db. | |
5932 | * sysdeps/generic/td_ta_map_lwp2thr.c: New file. | |
5933 | ||
5934 | * pthread_create.c (start_thread): Add missing & on __nptl_last_event. | |
5935 | ||
eaa4099f UD |
5936 | 2002-12-04 Ulrich Drepper <drepper@redhat.com> |
5937 | ||
5938 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t | |
5939 | a completely opaque, non-integer type. | |
5940 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. | |
5941 | ||
33b5d0cc UD |
5942 | 2002-12-05 Jakub Jelinek <jakub@redhat.com> |
5943 | ||
5944 | * sysdeps/i386/tls.h: Include stdlib.h. | |
5945 | * sysdeps/x86_64/tls.h: Likewise. | |
5946 | ||
7a5cdb30 UD |
5947 | 2002-12-04 Ulrich Drepper <drepper@redhat.com> |
5948 | ||
c4a6d859 UD |
5949 | * Makefile (tests): Add tst-locale2. |
5950 | (tests-static): Likewise. | |
5951 | * tst-locale2.c: New file. | |
5952 | ||
7a5cdb30 UD |
5953 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as |
5954 | volatile and add memory clobbers to lock operations. | |
5955 | ||
d82d5d12 UD |
5956 | 2002-12-03 Ulrich Drepper <drepper@redhat.com> |
5957 | ||
69cae3cf UD |
5958 | * sysdeps/i386/i686/bits/atomic.h: Use i486 version. |
5959 | * sysdeps/i386/i486/bits/atomic.h: New file. | |
5960 | * sysdeps/i386/i586/bits/atomic.h: New file. | |
5961 | * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and | |
5962 | include i486 version. | |
5963 | * sysdeps/i386/i486/pthread_spin_trylock.S: New file. | |
5964 | * sysdeps/i386/i586/pthread_spin_trylock.S: New file. | |
c97c64de | 5965 | Patch by Marijn Ros <marijn@mad.scientist.com>. |
69cae3cf | 5966 | |
e4044c01 UD |
5967 | * allocatestack.c (get_cached_stack): Don't crash if we first |
5968 | found a stack with a larger size then needed. | |
5969 | Reported by Hui Huang <hui.huang@sun.com>. | |
5970 | ||
d82d5d12 UD |
5971 | * Makefile (tests): Add tst-sysconf. |
5972 | * tst-sysconf.c: New file. | |
5973 | ||
5974 | * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine | |
5975 | PTHREAD_THREADS_MAX. | |
5976 | ||
fa9a4ff0 RM |
5977 | 2002-12-02 Roland McGrath <roland@redhat.com> |
5978 | ||
5979 | * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event): | |
5980 | Declare using hidden_proto instead of attribute_hidden, so there are | |
5981 | non-.hidden static symbols for gdb to find. | |
5982 | (__pthread_keys): Likewise. | |
5983 | * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def. | |
5984 | * allocatestack.c (__stack_user): Likewise. | |
5985 | * pthread_create.c (__pthread_keys): Likewise. | |
5986 | (__nptl_threads_events, __nptl_last_event): Make these static instead | |
5987 | of hidden. | |
5988 | * pthread_key_create.c (__pthread_pthread_keys_max, | |
5989 | __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*. | |
5990 | ||
91949a33 UD |
5991 | 2002-12-02 Ulrich Drepper <drepper@redhat.com> |
5992 | ||
c22b52fa UD |
5993 | * Makefile (tests): Add tst-locale1. If buid-static is yes link |
5994 | statically. | |
5995 | * tst-locale1.c: New file. | |
5996 | ||
beb6aa41 UD |
5997 | * pthread_cond_timedwait.c: Include <stdlib.h>. |
5998 | ||
91949a33 UD |
5999 | * Makefile (tests): Add tst-fork2 and tst-fork3. |
6000 | * tst-fork2.c: New file. | |
6001 | * tst-fork3.c: New file. | |
6002 | ||
654dff90 UD |
6003 | 2002-11-28 Ulrich Drepper <drepper@redhat.com> |
6004 | ||
cb0e76b4 UD |
6005 | * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file. |
6006 | ||
6007 | * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which | |
6008 | require it to 200112L. | |
6009 | ||
6010 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov | |
6011 | instruction only if HAVE_CMOV is defined. | |
6012 | * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV. | |
6013 | ||
975aa229 UD |
6014 | * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file. |
6015 | ||
654dff90 UD |
6016 | * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file. |
6017 | ||
6018 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file. | |
6019 | ||
6020 | * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file. | |
6021 | ||
a3931336 UD |
6022 | 2002-11-27 Ulrich Drepper <drepper@redhat.com> |
6023 | ||
c10c099c UD |
6024 | * sysdeps/x86_64/bits/atomic.h: New file. |
6025 | ||
6026 | * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and | |
6027 | 16-bit operations. | |
6028 | ||
dca99d27 UD |
6029 | * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if |
6030 | possible since gettid cannot fail. | |
6031 | ||
f78deea6 UD |
6032 | * sysdeps/x86_64/pthreaddef.h: New file. |
6033 | ||
6034 | * sysdeps/i386/pthreaddef.h (gettid): Removed. | |
6035 | ||
6036 | * sysdeps/x86_64/pthread_spin_init.c: New file. | |
6037 | * sysdeps/x86_64/pthread_spin_lock.c: New file. | |
6038 | * sysdeps/x86_64/pthread_spin_trylock.c: New file. | |
6039 | * sysdeps/x86_64/pthread_spin_unlock.c: New file. | |
6040 | ||
6041 | * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock): | |
6042 | Add missing lock prefix. Minute optimization. | |
6043 | ||
6044 | * tst-spin2.c (main): Also check successful trylock call. | |
6045 | ||
6046 | * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct | |
6047 | syscall. Fix typo in case INTERNAL_SYSCALL is not used. | |
6048 | ||
6049 | * sysdeps/i386/pthread_spin_destroy.c: Moved to... | |
6050 | * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file. | |
6051 | ||
6052 | * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code. | |
6053 | * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct | |
6054 | value in case of an error. Add support for INTERNAL_SYSCALL. | |
b54e18eb UD |
6055 | |
6056 | * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct | |
6057 | value in case of an error. | |
6058 | ||
a3931336 UD |
6059 | * sysdeps/x86_64/tls.h: New file. |
6060 | ||
76a50749 UD |
6061 | 2002-11-26 Ulrich Drepper <drepper@redhat.com> |
6062 | ||
117c452c UD |
6063 | * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now |
6064 | takes the array member name and the index as parameters. | |
6065 | (THREAD_SETMEM_NC): Likewise. | |
6066 | * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface. | |
6067 | * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC | |
6068 | interfaces. | |
6069 | ||
6070 | * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element | |
6071 | to decide which code to use. | |
6072 | (THREAD_SETMEM_NC): Likewise. | |
6073 | ||
76a50749 UD |
6074 | * allocatestack.c (queue_stack): Don't remove stack from list here. |
6075 | Do it in the caller. Correct condition to prematurely terminate | |
6076 | loop to free stacks. | |
6077 | (__deallocate_stack): Remove stack from list here. | |
6078 | ||
6079 | 2002-11-26 Ulrich Drepper <drepper@redhat.com> | |
6080 | ||
6081 | * Makefile (tests): Add tst-stack1. | |
6082 | * tst-stack1.c: New file. | |
6083 | ||
6084 | * allocatestack.c (allocate_stack): Initialize the TCB on a user | |
6085 | provided stack. | |
6086 | ||
6087 | * pthread_attr_getstack.c: Return bottom of the thread area. | |
6088 | ||
6089 | 2002-11-25 Ulrich Drepper <drepper@redhat.com> | |
6090 | ||
6091 | * Makefile (libpthread-routines): Add pt-allocrtsig and | |
6092 | pthread_kill_other_threads. | |
6093 | * pt-allocrtsig.c: New file. | |
6094 | * pthread_kill_other_threads.c: New file. | |
6095 | * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for | |
6096 | all three functions. | |
6097 | * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove | |
6098 | allocrtsig. | |
6099 | * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export | |
6100 | __libc_current_sigrtmin_private, __libc_current_sigrtmax_private, | |
6101 | and __libc_allocate_rtsig_private. | |
6102 | * Versions (libpthread): Export pthread_kill_other_threads_np, | |
6103 | __libc_current_sigrtmin, and __libc_current_sigrtmax. | |
6104 | ||
6105 | 2002-11-24 Ulrich Drepper <drepper@redhat.com> | |
6106 | ||
6107 | * allocatestack.c (allocate_stack): stackaddr in attribute points to | |
6108 | the end of the stack. Adjust computations. | |
6109 | When mprotect call fails dequeue stack and free it. | |
6110 | * pthread_attr_setstack.c: Store top of the stack in stackaddr | |
6111 | attribute. | |
6112 | * pthread_getattr_np.c: Likewise. | |
6113 | ||
6114 | * descr.h (IS_DETACHED): Add some more parenthesis to prevent | |
6115 | surprises. | |
6116 | ||
6117 | 2002-11-23 Ulrich Drepper <drepper@redhat.com> | |
6118 | ||
6119 | * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before | |
6120 | attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
6121 | ||
6122 | 2002-11-22 Ulrich Drepper <drepper@redhat.com> | |
6123 | ||
6124 | * pthread_getspecific.c: Optimize access to first 2nd-level array. | |
6125 | * pthread_setspecific.c: Likewise. | |
6126 | ||
6127 | 2002-11-21 Ulrich Drepper <drepper@redhat.com> | |
6128 | ||
6129 | * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags | |
6130 | definitions. Get them from the official place. | |
6131 | * sysdeps/unix/sysv/linux/i386/fork.c: Likewise. | |
6132 | ||
6133 | * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags. | |
6134 | Use new CLONE_ flags in clone() calls. | |
6135 | ||
6136 | * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork. | |
6137 | * sysdeps/unix/sysv/linux/i386/fork.c: New file. | |
6138 | ||
6139 | * Versions: Add pthread_* functions for libc. | |
6140 | * forward.c: New file. | |
6141 | ||
6142 | * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add | |
6143 | errno-loc. | |
6144 | * herrno.c: New file. | |
6145 | * res.c: New file. | |
6146 | ||
6147 | * Makefile (libpthread-routines): Remove sem_post, sem_wait, | |
6148 | sem_trywait, and sem_timedwait. Add herrno and res. | |
6149 | * sem_init.c: Don't initialize lock and waiters members. | |
6150 | * sem_open.c: Likewise. | |
6151 | * sem_post.c: Removed. | |
6152 | * sem_wait.c: Removed. | |
6153 | * sem_trywait.c: Removed. | |
6154 | * sem_timedwait.c: Removed. | |
6155 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite. | |
6156 | Includes full implementations of sem_post, sem_wait, sem_trywait, | |
6157 | and sem_timedwait. | |
6158 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust | |
6159 | for new implementation. | |
6160 | * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock | |
6161 | and waiters fields. | |
6162 | ||
6163 | * tst-sem3.c: Improve error message. | |
6164 | * tst-signal3.c: Likewise. | |
6165 | ||
6166 | * init.c (__pthread_initialize_minimal): Use set_tid_address syscall | |
6167 | to tell the kernel about the termination futex and to initialize tid | |
6168 | member. Don't initialize main_thread. | |
6169 | * descr.h (struct pthread): Remove main_thread member. | |
6170 | * cancelllation.c (__do_cancel): Remove code handling main thread. | |
6171 | The main thread is not special anymore. | |
6172 | ||
6173 | * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add | |
6174 | size of the stacks to stack_cache_actsize. | |
6175 | ||
6176 | * pt-readv.c: Add missing "defined". | |
6177 | * pt-sigwait.c: Likewise. | |
6178 | * pt-writev.c: Likewise. | |
6179 | ||
6180 | 2002-11-09 Ulrich Drepper <drepper@redhat.com> | |
6181 | ||
6182 | * Versions: Export __connect from libpthread. | |
6183 | Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
6184 | ||
6185 | * Makefile (libpthread-routines): Add pt-raise. | |
6186 | * sysdeps/unix/sysv/linux/raise.c: New file. | |
6187 | * sysdeps/unix/sysv/linux/pt-raise.c: New file. | |
6188 | * sysdeps/generic/pt-raise.c: New file. | |
6189 | ||
6190 | * pthread_cond_init.c: Initialize all data elements of the condvar | |
6191 | structure. Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
6192 | ||
6193 | * pthread_attr_init.c: Actually implement 2.0 compatibility version. | |
6194 | * pthread_create.c: Likewise. | |
6195 | ||
6196 | * Makefile (tests): Add tst-key1, tst-key2, tst-key3. | |
6197 | * tst-key1.c: New file. | |
6198 | * tst-key2.c: New file. | |
6199 | * tst-key3.c: New file. | |
6200 | ||
6201 | * Versions: Export pthread_detach for version GLIBC_2.0. | |
6202 | Reported by Saurabh Desai <sdesai@austin.ibm.com>. | |
6203 | ||
6204 | 2002-11-08 Ulrich Drepper <drepper@redhat.com> | |
6205 | ||
6206 | * pthread_key_create.c: Terminate search after an unused key was found. | |
6207 | Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
6208 | ||
6209 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero. | |
6210 | Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
6211 | ||
6212 | 2002-10-10 Ulrich Drepper <drepper@redhat.com> | |
6213 | ||
6214 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic | |
6215 | dynamic lookup for errno in PIC. | |
6216 | ||
6217 | * allocatestack.c (get_cached_stack): Rearrange code slightly to | |
6218 | release the stack lock as soon as possible. | |
6219 | Call _dl_allocate_tls_init for TCB from the cache to re-initialize | |
6220 | the static TLS block. | |
6221 | (allocate_stack): Call _dl_allocate_tls_init for user-provided stack. | |
6222 | ||
6223 | * cancellation.c: Renamed from cancelation.c. | |
6224 | * Makefile: Adjust accordingly. | |
6225 | * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P. | |
6226 | * cleanup_defer.c: Use CANCELLATION_P. | |
6227 | * pthread_testcancel.c: Likewise. | |
6228 | * descr.h: Fix spelling in comments. | |
6229 | * init.c: Likewise. | |
6230 | * pthread_getattr_np.c: Likewise. | |
6231 | * pthread_getschedparam.c: Likewise. | |
6232 | * pthread_setschedparam.c: Likewise. | |
6233 | * Versions: Likewise. | |
6234 | ||
6235 | * pt-pselect.c: New file. | |
6236 | * Makefile (libpthread-routines): Add pt-pselect. | |
6237 | * Versions: Add pselect. | |
6238 | ||
6239 | * tst-cancel4.c: New file. | |
6240 | * Makefile (tests): Add tst-cancel4. | |
6241 | ||
6242 | 2002-10-09 Ulrich Drepper <drepper@redhat.com> | |
6243 | ||
6244 | * pthread_mutex_lock.c: Always record lock ownership. | |
6245 | * pthread_mutex_timedlock.c: Likewise. | |
6246 | * pthread_mutex_trylock.c: Likewise. | |
6247 | ||
6248 | * pt-readv.c: New file. | |
6249 | * pt-writev.c: New file. | |
6250 | * pt-creat.c: New file. | |
6251 | * pt-msgrcv.c: New file. | |
6252 | * pt-msgsnd.c: New file. | |
6253 | * pt-poll.c: New file. | |
6254 | * pt-select.c: New file. | |
6255 | * pt-sigpause.c: New file. | |
6256 | * pt-sigsuspend.c: New file. | |
6257 | * pt-sigwait.c: New file. | |
6258 | * pt-sigwaitinfo.c: New file. | |
6259 | * pt-waitid.c: New file. | |
6260 | * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat, | |
6261 | pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend, | |
6262 | pt-sigwait, pt-sigwaitinfo, and pt-waitid. | |
6263 | * Versions: Add all the new functions. | |
6264 | ||
6265 | * tst-exit1.c: New file. | |
6266 | * Makefile (tests): Add tst-exit1. | |
6267 | ||
6268 | * sem_timedwait.c: Minor optimization for more optimal fastpath. | |
6269 | ||
6270 | 2002-10-08 Ulrich Drepper <drepper@redhat.com> | |
6271 | ||
6272 | * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW. | |
6273 | ||
6274 | * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid | |
6275 | call. pthread_join is an official cancellation point. | |
6276 | * pthread_timedjoin.c: Likewise. | |
6277 | ||
6278 | * pthread_cond_wait.c: Revert order in which internal lock are dropped | |
6279 | and the condvar's mutex are retrieved. | |
6280 | * pthread_cond_timedwait.c: Likewise. | |
6281 | Reported by dice@saros.East.Sun.COM. | |
6282 | ||
6283 | 2002-10-07 Ulrich Drepper <drepper@redhat.com> | |
6284 | ||
6285 | * pthreadP.h: Cut out all type definitions and move them... | |
6286 | * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file. | |
6287 | * pthreadP.h: Include <internaltypes.h>. | |
6288 | ||
6289 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little | |
6290 | performance tweaks. | |
6291 | ||
6292 | * sem_trywait.c: Shuffle #includes around to get right order. | |
6293 | * sem_timedwait.c: Likewise. | |
6294 | * sem_post.c: Likewise. | |
6295 | * sem_wait.c: Likewise. | |
6296 | ||
6297 | * nptl 0.3 released. | |
6298 | ||
6299 | * Makefile (tests): Add tst-signal3. | |
6300 | * tst-signal3.c: New file. | |
6301 | ||
6302 | 2002-10-05 Ulrich Drepper <drepper@redhat.com> | |
6303 | ||
6304 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that | |
6305 | the asms modify the sem object. | |
6306 | (__lll_sem_timedwait): Now takes struct sem* as first parameter. | |
6307 | ||
6308 | * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose | |
6309 | the actual members. | |
6310 | * pthreadP.h (struct sem): New type. Actual semaphore type. | |
6311 | * semaphoreP.h: Include pthreadP.h. | |
6312 | * sem_getvalue.c: Adjust to sem_t change. | |
6313 | * sem_init.c: Likewise. | |
6314 | * sem_open.c: Likewise. | |
6315 | * sem_post.c: Likewise. | |
6316 | * sem_timedwait.c: Likewise. | |
6317 | * sem_trywait.c: Likewise. | |
6318 | * sem_wait.c: Likewise. | |
6319 | ||
6320 | 2002-10-04 Ulrich Drepper <drepper@redhat.com> | |
6321 | ||
6322 | * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3. | |
6323 | * tst-basic2.c: New file. | |
6324 | * tst-exec1.c: New file. | |
6325 | * tst-exec2.c: New file. | |
6326 | * tst-exec3.c: New file. | |
6327 | ||
6328 | * tst-fork1.c: Remove extra */. | |
6329 | ||
6330 | * nptl 0.2 released. The API for IA-32 is complete. |