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