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