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