]>
Commit | Line | Data |
---|---|---|
e9c7764e UD |
1 | 2003-01-07 Jakub Jelinek <jakub@redhat.com> |
2 | ||
b5facfda UD |
3 | * pthreadP.h (__pthread_cond_timedwait): Add prototype. |
4 | ||
e9c7764e UD |
5 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h |
6 | (RTLD_CORRECT_DYNAMIC_WEAK): Remove. | |
7 | (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back. | |
8 | * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h | |
9 | (RTLD_CORRECT_DYNAMIC_WEAK): Remove. | |
10 | (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back. | |
11 | ||
bef1e42f UD |
12 | 2003-01-06 Jakub Jelinek <jakub@redhat.com> |
13 | ||
14 | * pthreadP.h (LIBC_CANCEL_HANDLED): Define. | |
15 | * pt-system.c (LIBC_CANCEL_HANDLED): Add. | |
16 | * tst-cancel-wrappers.sh: Remove all exceptions. | |
17 | ||
bbd17455 UD |
18 | 2003-01-05 Ulrich Drepper <drepper@redhat.com> |
19 | ||
a73ab6df UD |
20 | * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk |
21 | features. Reported by Marijn Ros <marijn@mad.scientist.com>. | |
22 | ||
bbd17455 UD |
23 | * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>. |
24 | Use __libc_pthread_functions array if SHARED. | |
25 | ||
26 | * pthreadP.h: Move pthread_cond_2_0_t definition to... | |
27 | * sysdeps/unix/sysv/linux/internaltypes.h: ...here. | |
28 | ||
29 | * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define. | |
30 | (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock, | |
31 | __libc_key_create, __libc_getspecific, __libc_setspecific): Use | |
32 | __libc_ptf_call instead of __libc_maybe_call. | |
33 | (PTF): New #define. | |
34 | (__libc_cleanup_region_start): Wrap function name with PTF call. | |
35 | (__libc_cleanup_region_end): Likewise. | |
36 | (__libc_cleanup_end): Likewise. | |
37 | ||
38 | * pthread_getspecific.c: Add __pthread_getspecific_internal alias. | |
39 | * pthread_setspecific.c: Add __pthread_setspecific_internal alias. | |
40 | * pthread_key_create.c: Add __pthread_key_create_internal alias. | |
41 | * pthreadP.h: Add prototypes. | |
42 | ||
43 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add | |
44 | __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and | |
45 | __pthread_rwlock_unlock aliases. | |
46 | * pthreadP.h: Add prototypes for new aliases. | |
47 | ||
48 | * pthreadP.h (struct pthead_functions): Moved to... | |
49 | * sysdeps/pthread/pthread-functions.h: ...here. New file. | |
50 | * init.c (pthread_functions): Add initializers for new elements. | |
51 | ||
52 | * cleanup_defer.c: Add __pthread_cleanup_push_defer and | |
53 | __pthread_cleanup_pop_restore aliases. | |
54 | * pthreadP.h: Add prototypes. | |
55 | ||
56 | * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push | |
57 | and _GI_pthread_cleanup_pop to __pthread_cleanup_pop. | |
58 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller. | |
59 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise. | |
60 | * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise. | |
61 | * pthreadP.h: Adjust prototypes and callers. | |
62 | ||
d27a78be UD |
63 | 2003-01-04 Ulrich Drepper <drepper@redhat.com> |
64 | ||
b74121ae UD |
65 | * Makefile (tests): Add tst-cancel7. |
66 | (tst-cancel7-ARGS): New variable. | |
bbd17455 | 67 | * tst-cancel7.c: New file. |
b74121ae | 68 | |
29bc410c UD |
69 | * old_pthread_cond_broadcast.c: Optimize initialization a bit to work |
70 | around gcc defficiencies. | |
71 | * old_pthread_cond_signal.c: Likewise. | |
72 | * old_pthread_cond_timedwait.c: Likewise. | |
73 | * old_pthread_cond_wait.c: Likewise. | |
74 | ||
d27a78be UD |
75 | * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element. |
76 | ||
733f25e6 UD |
77 | 2003-01-03 Ulrich Drepper <drepper@redhat.com> |
78 | ||
7edb2ae3 UD |
79 | * Makefile (tests): Add tst-cond7. |
80 | * tst-cond7.c: New file. | |
81 | ||
b1151300 UD |
82 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S |
83 | (condvar_cleanup): Get condvar address from the right place. | |
84 | ||
733f25e6 UD |
85 | * atomic.h: Correct definitions of atomic_full_barrier, |
86 | atomic_read_barrier, atomic_write_barrier. | |
87 | ||
88 | * old_pthread_cond_broadcast.c: Make memory allocate and initialization | |
89 | race-free. | |
90 | * old_pthread_cond_signal.c: Likewise. | |
91 | * old_pthread_cond_timedwait.c: Likewise. | |
92 | * old_pthread_cond_wait.c: Likewise. | |
93 | ||
686b7223 UD |
94 | 2003-01-03 Jakub Jelinek <jakub@redhat.com> |
95 | ||
96 | * Makefile ($(objpfx)libpthread.so): Depend on ld.so. | |
97 | ||
0e07706e UD |
98 | 2003-01-03 Ulrich Drepper <drepper@redhat.com> |
99 | ||
997256dd UD |
100 | * pthreadP.h (pthread_cond_2_0_t): New type. |
101 | (struct pthread_functions): Use new type for 2.0 condvar callbacks. | |
102 | Use new type for the 2.0 condvar function prototypes. | |
103 | * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions. | |
104 | * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar | |
105 | parameter. | |
106 | * old_pthread_cond_destroy.c: Likewise. | |
107 | * old_pthread_cond_broadcast.c: Likewise. Lock appropriately. | |
108 | * old_pthread_cond_signal.c: Likewise. | |
109 | * old_pthread_cond_timedwait.c: Likewise. | |
110 | * old_pthread_cond_wait.c: Likewise. | |
111 | ||
842d2817 UD |
112 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S |
113 | (__pthread_cond_wait): Don't save cancellation mode and seq value | |
114 | in same location. | |
115 | ||
0e07706e UD |
116 | * herrno.c (__h_errno_location): Don't define as weak. |
117 | ||
bf293afe UD |
118 | 2003-01-02 Jakub Jelinek <jakub@redhat.com> |
119 | ||
120 | * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast, | |
121 | pthread_cond_destroy, pthread_cond_init, pthread_cond_signal | |
122 | and pthread_cond_wait. | |
123 | * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast): | |
124 | Renamed to... | |
125 | (__pthread_cond_broadcast_2_0): ... this. | |
126 | * old_pthread_cond_destroy.c (__old_pthread_cond_destroy): | |
127 | Renamed to... | |
128 | (__pthread_cond_destroy_2_0): ... this. | |
129 | * old_pthread_cond_init.c (__old_pthread_cond_init): | |
130 | Renamed to... | |
131 | (__pthread_cond_init_2_0): ... this. | |
132 | * old_pthread_cond_signal.c (__old_pthread_cond_signal): | |
133 | Renamed to... | |
134 | (__pthread_cond_signal_2_0): ... this. | |
135 | * old_pthread_cond_wait.c (__old_pthread_cond_wait): | |
136 | Renamed to... | |
137 | (__pthread_cond_wait_2_0): ... this. | |
138 | * pthread_cond_destroy.c: Include shlib-compat.h. | |
139 | (pthread_cond_destroy): Change strong_alias into versioned_symbol. | |
140 | * pthread_cond_init.c: Include shlib-compat.h. | |
141 | (pthread_cond_init): Change strong_alias into versioned_symbol. | |
142 | * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_* | |
143 | fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0 | |
144 | fields. | |
145 | (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0, | |
146 | __pthread_cond_init_2_0, __pthread_cond_signal_2_0, | |
147 | __pthread_cond_wait_2_0): New prototypes. | |
148 | (__old_pthread_cond_broadcast, __old_pthread_cond_destroy, | |
149 | __old_pthread_cond_init, __old_pthread_cond_signal, | |
150 | __old_pthread_cond_wait): Removed. | |
151 | * init.c: Include shlib-compat.h. | |
152 | (pthread_functions): Guard ptr___pthread_attr_init_2_0 | |
153 | initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1). | |
154 | Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize | |
155 | ptr___pthread_cond_*_2_0 fields. | |
156 | * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and | |
157 | pthread_cond_*@GLIBC_2.0 compatibility symbols. | |
158 | ||
159 | * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if | |
160 | LIBC_SIGACTION was not yet defined. | |
161 | [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self. | |
162 | [!defined LIBC_SIGACTION] (__sigaction): New function and | |
163 | libc_hidden_weak. | |
164 | [!defined LIBC_SIGACTION] (sigaction): New weak_alias. | |
165 | [defined LIBC_SIGACTION]: #include_next <sigaction.c>. | |
166 | ||
167 | 2003-01-02 Jakub Jelinek <jakub@redhat.com> | |
168 | ||
169 | * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc. | |
170 | ||
05df18c3 UD |
171 | 2003-01-02 Ulrich Drepper <drepper@redhat.com> |
172 | ||
173 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t): | |
174 | New, larger type definition. | |
175 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar | |
176 | implementation. | |
177 | * Versions [libpthread]: Add definitions for new pthread_cond_* | |
178 | interfaces for version GLIBC_2.3.2. | |
179 | * pthread_cond_init.c: Update initialization for new type definition. | |
180 | * Makefile (libpthread-routines): Remove pthread_cond_wait, | |
181 | pthread_cond_timedwait, pthread_cond_signal, and | |
182 | pthread_cond_broadcast. Add old_pthread_cond_init, | |
183 | old_pthread_cond_destroy, old_pthread_cond_wait, | |
184 | old_pthread_cond_timedwait, old_pthread_cond_signal, and | |
185 | old_pthread_cond_broadcast. | |
186 | * old_pthread_cond_broadcast.c: New file. | |
187 | * old_pthread_cond_destroy.c: New file. | |
188 | * old_pthread_cond_init.c: New file. | |
189 | * old_pthread_cond_signal.c: New file. | |
190 | * old_pthread_cond_timedwait.c: New file. | |
191 | * old_pthread_cond_wait.c: New file. | |
192 | * pthreadP.h: Add prototypes for the compatibility interfaces. | |
193 | ||
194 | * pthread_cond_destroy.c: Don't include <errno.h>. | |
195 | ||
fd8979e4 UD |
196 | 2003-01-01 Ulrich Drepper <drepper@redhat.com> |
197 | ||
198 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid | |
199 | unnecessary zero offset when addressing MUTEX. | |
200 | ||
6d6ee629 UD |
201 | 2002-12-31 Ulrich Drepper <drepper@redhat.com> |
202 | ||
203 | * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for | |
204 | __register_atfork. | |
205 | * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def | |
206 | for __register_atfork. | |
207 | ||
a4baf360 UD |
208 | 2002-12-31 Jakub Jelinek <jakub@redhat.com> |
209 | ||
210 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__ | |
211 | instead of ASSEMBLER test macro. | |
212 | ||
213 | * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin, | |
214 | __libc_current_sigrtmax): Add libc_hidden_def. | |
215 | ||
216 | * sysdeps/pthread/list.h: Remove assert.h include. | |
217 | ||
e9395a94 UD |
218 | 2002-12-31 Ulrich Drepper <drepper@redhat.com> |
219 | ||
220 | * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use | |
221 | __pthread_initialize_minimal_internal not | |
222 | __pthread_initialize_minimal. | |
223 | ||
89d6e444 UD |
224 | 2002-12-30 Ulrich Drepper <drepper@redhat.com> |
225 | ||
416d2de6 UD |
226 | * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark |
227 | __pthread_initialize_minimal as hidden. | |
228 | ||
89d6e444 UD |
229 | * init.c (__pthread_initialize_minimal_internal): Don't mark as |
230 | constructor. | |
231 | ||
232 | 2002-12-31 Jakub Jelinek <jakub@redhat.com> | |
233 | ||
234 | * Makefile ($(inst_libdir)/libpthread.so): Depend on | |
235 | $(common-objpfx)format.lds, include that into the output script. | |
236 | Fix comment. | |
237 | (extra-B-pthread.so): Change linuxthreads/ into nptl/. | |
238 | ||
8cac677c UD |
239 | 2002-12-28 Andreas Jaeger <aj@suse.de> |
240 | ||
241 | * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for | |
242 | nsec resolution changes. | |
243 | (xstat64_conv): Likewise. | |
244 | (xstat32_conv): Likewise. | |
245 | * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for | |
246 | struct kernel_stat. | |
247 | * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for | |
248 | structs stat and stat64. | |
249 | * time/time.h (__timespec_defined): Define for __USE_MISC. | |
89d6e444 | 250 | * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat. |
8cac677c | 251 | |
49e9f864 UD |
252 | 2002-12-30 Jakub Jelinek <jakub@redhat.com> |
253 | ||
254 | * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export | |
255 | argument. | |
256 | (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro. | |
257 | (pthread_exit): Use strong_alias to avoid warnings. | |
258 | * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit | |
259 | and ptr_pthread_attr_init_2_* to ptr___pthread_exit and | |
260 | ptr___pthread_attr_init_2_*. | |
261 | * init.c (pthread_functions): Adjust. | |
262 | ||
bab09b26 UD |
263 | 2002-12-29 Ulrich Drepper <drepper@redhat.com> |
264 | ||
598d7a42 UD |
265 | * forward.c: Make all functions available by default again. It |
266 | caused too much trouble. | |
267 | ||
bab09b26 UD |
268 | * pt-siglongjmp.c: Removed. |
269 | ||
3b7ed871 UD |
270 | 2002-12-28 Jakub Jelinek <jakub@redhat.com> |
271 | ||
272 | * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler. | |
273 | (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove. | |
274 | * sysdeps/i386/Makefile: New file. | |
275 | * sysdeps/i386/tcb-offsets.sym: New file. | |
276 | * sysdeps/pthread/tcb-offsets.h: New file. | |
277 | * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init): | |
278 | Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks. | |
279 | ||
280 | * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move | |
281 | __register_atfork... | |
282 | (GLIBC_2.3.2): ...here. | |
283 | ||
284 | 2002-12-28 Ulrich Drepper <drepper@redhat.com> | |
285 | ||
286 | * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and | |
287 | pthread_attr_setstackaddr with __attribute_deprecated__. | |
288 | ||
270d9d47 UD |
289 | 2002-12-27 Jakub Jelinek <jakub@redhat.com> |
290 | ||
291 | * pt-system.c (system): Remove cancellation handling. | |
292 | * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the | |
293 | cancellation routines. | |
294 | ||
131fd126 UD |
295 | 2002-12-28 Ulrich Drepper <drepper@redhat.com> |
296 | ||
afb2e954 UD |
297 | * descr.h: Include <dl-sysdep.h>. |
298 | (struct pthread): Move header.data.list to the back of the struct. | |
131fd126 UD |
299 | * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct. |
300 | (MULTIPLE_THREADS_OFFSET): Adjust offset. | |
301 | (SYSINFO_OFFSEET): Likewise. | |
302 | ||
303 | 2002-12-27 Jakub Jelinek <jakub@redhat.com> | |
304 | ||
305 | * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO): | |
306 | Define. | |
307 | (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings. | |
308 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO, | |
309 | DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define. | |
310 | (USE_DL_SYSINFO): Undef. | |
311 | ||
312 | 2002-12-22 Jakub Jelinek <jakub@redhat.com> | |
313 | ||
314 | * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of | |
315 | $(common-objpfx)libc.so. | |
316 | * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that | |
317 | it is bigger than pipe buffer size even on arches with bigger | |
318 | page size. | |
319 | (tf_usleep): Cast usleep argument to useconds_t to avoid warnings. | |
320 | ||
a218c9cf UD |
321 | 2002-12-25 Ulrich Drepper <drepper@redhat.com> |
322 | ||
323 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement | |
324 | correct errno access for case that USE___THREAD is not defined. | |
325 | ||
015a2dc9 UD |
326 | 2002-12-24 Ulrich Drepper <drepper@redhat.com> |
327 | ||
328 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif. | |
329 | Patch by Marijn Ros <marijn@mad.scientist.com>. | |
330 | ||
5220f9ac RM |
331 | 2002-12-22 Roland McGrath <roland@redhat.com> |
332 | ||
333 | * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%). | |
334 | ||
1561bf63 UD |
335 | 2002-12-20 Ulrich Drepper <drepper@redhat.com> |
336 | ||
337 | * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define. | |
338 | ||
3325198e UD |
339 | 2002-12-19 Ulrich Drepper <drepper@redhat.com> |
340 | ||
057c823f UD |
341 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define |
342 | NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode. | |
343 | * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file. | |
344 | ||
097eca29 UD |
345 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead |
346 | of int $0x80. | |
347 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise. | |
348 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise. | |
349 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise. | |
350 | * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise. | |
351 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise. | |
352 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise. | |
353 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise. | |
354 | * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise. | |
355 | ||
356 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using | |
357 | sysenter. | |
358 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise. | |
359 | ||
360 | * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>. | |
361 | ||
5f5843e3 UD |
362 | * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo |
363 | in new TCB. | |
364 | * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check | |
365 | that sysinfo is properly initialized. | |
366 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO | |
367 | to 1 only for ld.so. | |
368 | ||
3325198e UD |
369 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define |
370 | RTLD_CORRECT_DYNAMIC_WEAK. | |
371 | ||
74e8f2dc UD |
372 | 2002-12-19 Jakub Jelinek <jakub@redhat.com> |
373 | ||
374 | * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1): | |
375 | Use return 0 as 6th argument to FORWARD4. | |
376 | * pthread_equal.c: Include pthreadP.h instead of pthread.h. | |
377 | ||
df45b31e UD |
378 | 2002-12-18 Ulrich Drepper <drepper@redhat.com> |
379 | ||
380 | * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member. | |
381 | * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member. | |
382 | Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined. | |
383 | (INIT_SYSINFO): New #define. | |
384 | (TLS_TP_INIT): Use INIT_SYSINFO. | |
385 | * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init): | |
386 | At test to make sure SYSINFO_OFFSET value is correct. | |
387 | * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file. | |
388 | ||
3d539579 UD |
389 | 2002-12-18 Jakub Jelinek <jakub@redhat.com> |
390 | ||
391 | * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias. | |
392 | * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise. | |
393 | * Versions [libc: GLIBC_2.0]: Add pthread_attr_init. | |
394 | [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init, | |
395 | __pthread_rwlock_destroy, __pthread_rwlock_rdlock, | |
396 | __pthread_rwlock_wrlock, __pthread_rwlock_unlock, | |
397 | __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock. | |
398 | ||
d7913e0e UD |
399 | 2002-12-18 Ulrich Drepper <drepper@redhat.com> |
400 | ||
f051627f UD |
401 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL |
402 | macro instead of using int $0x80 directly. | |
403 | ||
d7913e0e UD |
404 | * sysdeps/pthread/bits/stdio-lock.h: New file. |
405 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file. | |
406 | * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file. | |
407 | * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file. | |
408 | * Makefile (routines): Add libc-lowlevelmutex. | |
409 | ||
410 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove | |
411 | __i686.get_pc_thunk.dx. | |
412 | ||
f077a4a9 UD |
413 | 2002-12-17 Jakub Jelinek <jakub@redhat.com> |
414 | ||
415 | * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig. | |
416 | (tests): Depend on $(objpfx)tst-cancel-wrappers.out. | |
417 | ($(objpfx)tst-cancel-wrappers.out): New rule. | |
418 | * tst-cancel-wrappers.sh: New test. | |
419 | * tst-locale1.c: Include signal.h. | |
420 | (uselocale): Test static linking of __libc_current_sigrt*. | |
421 | ||
422 | 2002-12-17 Ulrich Drepper <drepper@redhat.com> | |
423 | ||
424 | * Makefile (tests): Add tst-cancel6. | |
425 | * tst-cancel6.c: New file | |
426 | ||
bd499a3b UD |
427 | 2002-12-17 Jakub Jelinek <jakub@redhat.com> |
428 | ||
429 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P): | |
430 | Define meaningfully for assembler as well. | |
431 | * pthreadP.h (struct pthread_functions): Remove | |
432 | ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0 | |
433 | and ptr_pthread_attr_init_2_1 fields. | |
434 | * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0 | |
435 | and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init. | |
436 | * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument. | |
437 | (FORWARD3): Define using FORWARD4. | |
438 | (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1 | |
439 | versions. | |
440 | * pt-system.c: Remove duplicate stdlib.h include. | |
441 | ||
0a1063f4 UD |
442 | 2002-12-16 Ulrich Drepper <drepper@redhat.com> |
443 | ||
87d60668 UD |
444 | * sem_init.c: Define sem_init@GLIBC_2.0. |
445 | * sem_destroy.c: Define sem_destroy@GLIBC_2.0. | |
446 | * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0. | |
447 | ||
0a1063f4 UD |
448 | * flockfile.c: Moved to... |
449 | * sysdeps/pthread/flockfile.c: ...here. New file. | |
450 | * funlockfile.c: Moved to... | |
451 | * sysdeps/pthread/funlockfile.c: ...here. New file. | |
452 | * ftrylockfile.c: Moved to... | |
453 | * sysdeps/pthread/ftrylockfile.c: ...here. New file. | |
454 | ||
9634cf9d UD |
455 | 2002-12-16 Jakub Jelinek <jakub@redhat.com> |
456 | ||
457 | * libc-cancellation.c: Guard both function with | |
458 | #if !defined NOT_IN_libc. | |
459 | * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the | |
460 | automatically provided pthread wrappers. | |
461 | * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to | |
462 | CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc | |
463 | nor in libpthread. | |
464 | * pt-open.c: Removed. | |
465 | * pt-fcntl.c: Removed. | |
466 | * pt-fsync.c: Removed. | |
467 | * pt-lseek.c: Removed. | |
468 | * pt-msgrcv.c: Removed. | |
469 | * pt-msgsnd.c: Removed. | |
470 | * pt-msync.c: Removed. | |
471 | * pt-nanosleep.c: Removed. | |
472 | * pt-open64.c: Removed. | |
473 | * pt-pause.c: Removed. | |
474 | * pt-pread.c: Removed. | |
475 | * pt-pread64.c: Removed. | |
476 | * pt-pwrite.c: Removed. | |
477 | * pt-pwrite64.c: Removed. | |
478 | * pt-read.c: Removed. | |
479 | * pt-recv.c: Removed. | |
480 | * pt-recvfrom.c: Removed. | |
481 | * pt-recvmsg.c: Removed. | |
482 | * pt-send.c: Removed. | |
483 | * pt-sendto.c: Removed. | |
484 | * pt-sigtimedwait.c: Removed. | |
485 | * pt-sigwait.c: Removed. | |
486 | * pt-wait.c: Removed. | |
487 | * pt-waitpid.c: Removed. | |
488 | * pt-write.c: Removed. | |
489 | * pt-accept.c: Removed. | |
490 | * pt-close.c: Removed. | |
491 | * pt-connect.c: Removed. | |
492 | * pt-lseek64.c: Removed. | |
493 | * pt-sendmsg.c: Removed. | |
494 | * pt-tcdrain.c: Removed. | |
495 | ||
6ee8d334 UD |
496 | 2002-12-15 Ulrich Drepper <drepper@redhat.com> |
497 | ||
81fa9371 UD |
498 | * init.c (__pthread_initialize_minimal_internal): Renamed from |
499 | __pthread_initialize_minimal. Make old name an alias. This | |
500 | converts a normal relocation into a relative relocation. | |
501 | ||
f3015aa5 UD |
502 | * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl. |
503 | ||
4cbc1950 UD |
504 | * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect, |
505 | readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev. | |
506 | * Makefile (libpthread-routines): Remove pt-creat, pt-poll, | |
507 | pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend, | |
508 | pt-sigwaitinfo, pt-waitid, and pt-writev. | |
509 | * pt-creat.c: Removed. | |
510 | * pt-poll.c: Removed. | |
511 | * pt-pselect.c: Removed. | |
512 | * pt-readv.c: Removed. | |
513 | * pt-select.c: Removed. | |
514 | * pt-sigpause.c: Removed. | |
515 | * pt-sigsuspend.c: Removed. | |
516 | * pt-sigwaitinfo.c: Removed. | |
517 | * pt-waitid.c: Removed. | |
518 | * pt-writev.c: Removed. | |
519 | ||
8454830b UD |
520 | * init.c (pthread_functions): New variable. |
521 | (__pthread_initialize_minimal): Pass pointer to pthread_functions | |
522 | (or NULL) to __libc_pthread_init. | |
523 | * forward.c: Rewrite to use __libc:pthread_functions array to get | |
524 | function addresses. | |
525 | * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init | |
526 | prototype. | |
527 | * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init): | |
528 | Take new parameter. Copy content of variable pointed to by it | |
529 | to __libc_pthread_init. | |
530 | ||
531 | * pthreadP.h (struct pthread_functions): New type. | |
532 | (__libc_pthread_init): Declare. | |
533 | ||
534 | * pthread_attr_destroy.c: Add namespace protected alias. | |
535 | * pthread_attr_getdetachstate.c: Likewise. | |
536 | * pthread_attr_getinheritsched.c: Likewise. | |
537 | * pthread_attr_getschedparam.c: Likewise. | |
538 | * pthread_attr_getschedpolicy.c: Likewise. | |
539 | * pthread_attr_getscope.c: Likewise. | |
540 | * pthread_attr_setdetachstate.c: Likewise. | |
541 | * pthread_attr_setinheritsched.c: Likewise. | |
542 | * pthread_attr_setschedparam.c: Likewise. | |
543 | * pthread_attr_setschedpolicy.c: Likewise. | |
544 | * pthread_attr_setscope.c: Likewise. | |
545 | * pthread_cond_broadcast.c: Likewise. | |
546 | * pthread_cond_destroy.c: Likewise. | |
547 | * pthread_cond_init.c: Likewise. | |
548 | * pthread_cond_signal.c: Likewise. | |
549 | * pthread_cond_wait.c: Likewise. | |
550 | * pthread_condattr_destroy.c: Likewise. | |
551 | * pthread_condattr_init.c: Likewise. | |
552 | * pthread_equal.c: Likewise. | |
553 | * pthread_exit.c: Likewise. | |
554 | * pthread_getschedparam.c: Likewise. | |
555 | * pthread_self.c: Likewise. | |
556 | * pthread_setcancelstate.c: Likewise. | |
557 | * pthread_setschedparam.c: Likewise. | |
558 | * pthread_mutex_destroy.c: Likewise. | |
559 | * pthread_mutex_init.c: Likewise. | |
560 | * pthreadP.h: Add prototypes for the aliases. | |
561 | ||
0d5f4929 UD |
562 | * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set |
563 | multiple_threads member in correct TCB to 1. | |
564 | ||
6ee8d334 UD |
565 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define |
566 | SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread | |
567 | member of thread decriptor, otherwise return unconditionally 1. | |
568 | ||
2fb6444d UD |
569 | 2002-12-14 Ulrich Drepper <drepper@redhat.com> |
570 | ||
571 | * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the | |
572 | regular Linux version. Remove file. | |
573 | * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file. | |
574 | * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file. | |
575 | * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file. | |
576 | * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file. | |
577 | * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file. | |
578 | * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file. | |
579 | * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file. | |
580 | * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file. | |
581 | * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file. | |
582 | * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file. | |
583 | * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file. | |
584 | * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file. | |
585 | * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file. | |
586 | * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file. | |
587 | * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file. | |
588 | * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file. | |
589 | * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file. | |
590 | * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file. | |
591 | * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file. | |
592 | * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file. | |
593 | * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file. | |
594 | * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file. | |
595 | * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file. | |
596 | * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file. | |
597 | * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file. | |
598 | * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file. | |
599 | * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file. | |
600 | * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file. | |
601 | * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file. | |
602 | * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file. | |
603 | ||
86b2dc40 UD |
604 | 2002-12-14 Jakub Jelinek <jakub@redhat.com> |
605 | ||
606 | * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file. | |
607 | * sysdeps/unix/sysv/linux/open.c: Removed. | |
608 | * sysdeps/unix/sysv/linux/fsync.c: Removed. | |
609 | * sysdeps/unix/sysv/linux/lseek.c: Removed. | |
610 | * sysdeps/unix/sysv/linux/msync.c: Removed. | |
611 | * sysdeps/unix/sysv/linux/read.c: Removed. | |
612 | * sysdeps/unix/sysv/linux/close.c: Removed. | |
613 | * sysdeps/unix/sysv/linux/creat.c: Removed. | |
614 | * sysdeps/unix/sysv/linux/nanosleep.c: Removed. | |
615 | * sysdeps/unix/sysv/linux/pause.c: Removed. | |
616 | * sysdeps/unix/sysv/linux/select.c: Removed. | |
617 | * sysdeps/unix/sysv/linux/write.c: Removed. | |
618 | ||
9d263d72 UD |
619 | 2002-12-14 Ulrich Drepper <drepper@redhat.com> |
620 | ||
621 | * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads | |
622 | element in TCB to see whether locking is needed. | |
623 | ||
624 | * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that | |
625 | MULTIPLE_THREADS_OFFSET value is correct. | |
626 | ||
627 | * sysdeps/unix/sysv/linux/close.c: New file. | |
628 | * sysdeps/unix/sysv/linux/connect.S: New file. | |
629 | * sysdeps/unix/sysv/linux/creat.c: New file. | |
630 | * sysdeps/unix/sysv/linux/fsync.c: New file. | |
631 | * sysdeps/unix/sysv/linux/llseek.c: New file. | |
632 | * sysdeps/unix/sysv/linux/lseek.c: New file. | |
633 | * sysdeps/unix/sysv/linux/msgrcv.c: New file. | |
634 | * sysdeps/unix/sysv/linux/msgsnd.c: New file. | |
635 | * sysdeps/unix/sysv/linux/msync.c: New file. | |
636 | * sysdeps/unix/sysv/linux/nanosleep.c: New file. | |
637 | * sysdeps/unix/sysv/linux/open.c: New file. | |
638 | * sysdeps/unix/sysv/linux/open64.c: New file. | |
639 | * sysdeps/unix/sysv/linux/pause.c: New file. | |
640 | * sysdeps/unix/sysv/linux/poll.c: New file. | |
641 | * sysdeps/unix/sysv/linux/pread.c: New file. | |
642 | * sysdeps/unix/sysv/linux/pread64.c: New file. | |
643 | * sysdeps/unix/sysv/linux/pselect.c: New file. | |
644 | * sysdeps/unix/sysv/linux/pwrite.c: New file. | |
645 | * sysdeps/unix/sysv/linux/pwrite64.c: New file. | |
646 | * sysdeps/unix/sysv/linux/readv.c: New file. | |
647 | * sysdeps/unix/sysv/linux/recv.S: New file. | |
648 | * sysdeps/unix/sysv/linux/recvfrom.S: New file. | |
649 | * sysdeps/unix/sysv/linux/recvmsg.S: New file. | |
650 | * sysdeps/unix/sysv/linux/select.c: New file. | |
651 | * sysdeps/unix/sysv/linux/send.S: New file. | |
652 | * sysdeps/unix/sysv/linux/sendmsg.S: New file. | |
653 | * sysdeps/unix/sysv/linux/sendto.S: New file. | |
654 | * sysdeps/unix/sysv/linux/sigpause.c: New file. | |
655 | * sysdeps/unix/sysv/linux/sigsuspend.c: New file. | |
656 | * sysdeps/unix/sysv/linux/sigtimedwait.c: New file. | |
657 | * sysdeps/unix/sysv/linux/sigwait.c: New file. | |
658 | * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file. | |
659 | * sysdeps/unix/sysv/linux/system.c: New file. | |
660 | * sysdeps/unix/sysv/linux/tcdrain.c: New file. | |
661 | * sysdeps/unix/sysv/linux/wait.c: New file. | |
662 | * sysdeps/unix/sysv/linux/waitid.c: New file. | |
663 | * sysdeps/unix/sysv/linux/waitpid.c: New file. | |
664 | * sysdeps/unix/sysv/linux/writev.c: New file. | |
665 | * sysdeps/unix/sysv/linux/i386/fcntl.c: New file. | |
666 | ||
667 | * pt-readv.c: Fix comment. | |
668 | ||
669 | 2002-12-14 Jakub Jelinek <jakub@redhat.com> | |
670 | ||
671 | * tst-cleanup1.c: Include stdlib.h. | |
672 | ||
673 | * tst-cancel5.c: New test. | |
674 | * Makefile (tests): Add tst-cancel5. | |
675 | (tst-cancel5): Link against libc.so libpthread.so in that order. | |
676 | ||
9ae0909b UD |
677 | 2002-12-13 Ulrich Drepper <drepper@redhat.com> |
678 | ||
b7bdd9c4 UD |
679 | * forward.c (test_loaded): Prevent recursive calls. |
680 | ||
9ae0909b UD |
681 | * Makefile (routines): Add libc-cancellation. |
682 | * libc-cancellation.c: New file. | |
683 | * descr.h (struct pthread): Add multiple_threads field. | |
684 | * allocatestack.c (allocate_stack): Initialize multiple_header field of | |
685 | new thread descriptor to 1. | |
686 | * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): | |
687 | Initialize multiple_thread field after successful thread creation. | |
688 | * cancellation.c (__do_cancel): Move to pthreadP.h. | |
689 | (__pthread_enable_asynccancel): Remove parameter from __do_cancel call. | |
690 | (__pthread_disable_asynccancel): Add internal_function attribute. | |
691 | * init.c (sigcancel_handler): Remove parameter from __do_cancel call. | |
692 | * pthread_setcancelstate.c: Likewise. | |
693 | * pthread_setcanceltype.c: Likewise. | |
694 | * pthread_exit.c: Likewise. | |
695 | * pthreadP.h (CANCELLATION_P): Likewise. | |
696 | (__do_cancel): Define as static inline. | |
697 | (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines. | |
698 | (__libc_enable_asynccancel, __libc_disable_asynccancel): New | |
699 | declarations. | |
700 | * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads | |
701 | fields. Define MULTIPLE_THREADS_OFFSET. | |
702 | * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed | |
703 | declaration. | |
704 | * sysdeps/unix/sysv/linux/accept.S: New file. | |
705 | * sysdeps/unix/sysv/linux/read.c: New file. | |
706 | * sysdeps/unix/sysv/linux/write.c: New file. | |
707 | * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file. | |
708 | * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and | |
709 | initialization of __libc_locking_needed. | |
710 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use | |
711 | __libc_locking_needed, use multiple_threads field in TCB. | |
712 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise. | |
713 | ||
22f20674 UD |
714 | 2002-12-12 Ulrich Drepper <drepper@redhat.com> |
715 | ||
2ad2e1e7 UD |
716 | * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486 |
717 | version. | |
718 | * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise. | |
719 | ||
22f20674 UD |
720 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct |
721 | access to __libc_locking_needed for PIC. | |
722 | ||
aa80bf86 UD |
723 | 2002-12-12 Jakub Jelinek <jakub@redhat.com> |
724 | ||
725 | * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only | |
726 | declare for libc.so. | |
727 | (__libc_lock_init, __libc_lock_init_recursive): Change into comma | |
728 | expression. | |
729 | (__libc_lock_lock): Put into statement expression. | |
730 | (__libc_lock_unlock): Remove trailing semicolon. | |
731 | * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo. | |
732 | ||
24021373 RM |
733 | 2002-12-12 Roland McGrath <roland@redhat.com> |
734 | ||
735 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with | |
736 | "m" constraint to refer to __libc_locking_needed. Declare it here. | |
737 | ||
14e7aece UD |
738 | 2002-12-12 Ulrich Drepper <drepper@redhat.com> |
739 | ||
740 | * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to... | |
741 | * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this. | |
742 | Initialize __libc_locking_needed. | |
743 | * init.c (__pthread_initialize_minimal): Call __libc_pthread_init | |
744 | instead of __register_pthread_fork_handler. | |
745 | * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed. | |
746 | * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace | |
747 | fork-gen with libc_pthread_init. | |
748 | * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead | |
749 | of __register_pthread_fork_handler. | |
750 | * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead | |
751 | of __register_pthread_fork_handler. | |
752 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use | |
753 | __libc_locking_needed to determine whether lock prefix can be avoided. | |
754 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise. | |
755 | ||
85631c8e UD |
756 | 2002-12-11 Ulrich Drepper <drepper@redhat.com> |
757 | ||
da63009e UD |
758 | * Makefile (tests): Add tst-cleanup1. |
759 | * tst-cleanup1.c: New file. | |
760 | * cancellation.c (__cleanup_thread): Removed. | |
761 | (__do_cancel): Remove call to __cleanup_thread. | |
762 | * pthreadP.h: Remove __cleanup_thread prorotype. | |
763 | ||
000160a2 UD |
764 | * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start): |
765 | Remember function and argument even if cancellation handler | |
766 | function is not available. | |
767 | (__libc_cleanup_region_end): Execute registered function directly if | |
768 | pthread functions are not available. | |
769 | (__libc_cleanup_end): Likewise. | |
770 | ||
85631c8e UD |
771 | * init.c (__pthread_initialize_minimal): Fix initialization in |
772 | static lib by preventing gcc from being too clever. | |
773 | ||
dce8f2b6 UD |
774 | 2002-12-10 Ulrich Drepper <drepper@redhat.com> |
775 | ||
34a075be UD |
776 | * init.c (__pthread_initialize_minimal): Remove unneccesary |
777 | sigaddset call. | |
778 | ||
dce8f2b6 UD |
779 | * Makefile (tests): We can run tst-locale2 now. |
780 | ||
e5e45b53 UD |
781 | 2002-12-09 Ulrich Drepper <drepper@redhat.com> |
782 | ||
783 | * Versions: Remove duplicated sigwait entry. | |
784 | ||
bdb04f92 UD |
785 | 2002-12-08 Ulrich Drepper <drepper@redhat.com> |
786 | ||
1e506629 UD |
787 | * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only |
788 | inside libpthread. | |
789 | ||
a3957dd5 UD |
790 | * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning. |
791 | ||
bdb04f92 UD |
792 | * pthreadP.h: Declare __pthread_enable_asynccancel and |
793 | __pthread_disable_asynccancel. | |
794 | (CANCEL_ASYNC): Use __pthread_enable_asynccancel. | |
795 | (CANCEL_RESET): Use __pthread_disable_asynccancel. | |
796 | * cancellation.c (__pthread_enable_asynccancel): New function. | |
797 | (__pthread_disable_asynccancel): New function. | |
798 | * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change. | |
799 | * pt-close.c: Likewise. | |
800 | * pt-connect.c: Likewise. | |
801 | * pt-creat.c: Likewise. | |
802 | * pt-fcntl.c: Likewise. | |
803 | * pt-fsync.c: Likewise. | |
804 | * pt-lseek.c: Likewise. | |
805 | * pt-lseek64.c: Likewise. | |
806 | * pt-msgrcv.c: Likewise. | |
807 | * pt-msgsnd.c: Likewise. | |
808 | * pt-msync.c: Likewise. | |
809 | * pt-nanosleep.c: Likewise. | |
810 | * pt-open.c: Likewise. | |
811 | * pt-open64.c: Likewise. | |
812 | * pt-pause.c: Likewise. | |
813 | * pt-poll.c: Likewise. | |
814 | * pt-pread.c: Likewise. | |
815 | * pt-pread64.c: Likewise. | |
816 | * pt-pselect.c: Likewise. | |
817 | * pt-pwrite.c: Likewise. | |
818 | * pt-pwrite64.c: Likewise. | |
819 | * pt-read.c: Likewise. | |
820 | * pt-readv.c: Likewise. | |
821 | * pt-recv.c: Likewise. | |
822 | * pt-recvfrom.c: Likewise. | |
823 | * pt-recvmsg.c: Likewise. | |
824 | * pt-select.c: Likewise. | |
825 | * pt-send.c: Likewise. | |
826 | * pt-sendmsg.c: Likewise. | |
827 | * pt-sendto.c: Likewise. | |
828 | * pt-sigpause.c: Likewise. | |
829 | * pt-sigsuspend.c: Likewise. | |
830 | * pt-sigtimedwait.c: Likewise. | |
831 | * pt-sigwait.c: Likewise. | |
832 | * pt-sigwaitinfo.c: Likewise. | |
833 | * pt-system.c: Likewise. | |
834 | * pt-tcdrain.c: Likewise. | |
835 | * pt-wait.c: Likewise. | |
836 | * pt-waitid.c: Likewise. | |
837 | * pt-waitpid.c: Likewise. | |
838 | * pt-write.c: Likewise. | |
839 | * pt-writev.c: Likewise. | |
a3957dd5 UD |
840 | * pthread_join.c: Likewise. |
841 | * pthread_timedjoin.c: Likewise. | |
bdb04f92 UD |
842 | |
843 | * pt-sigpause.c (sigsuspend): Call __sigsuspend. | |
844 | (__xpg_sigpause): New function. | |
845 | * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause. | |
846 | ||
6ccb3834 UD |
847 | 2002-12-07 Ulrich Drepper <drepper@redhat.com> |
848 | ||
09efc3ba UD |
849 | * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO. |
850 | ||
851 | * cleanup.c: Move declarations of _GI_pthread_cleanup_push and | |
852 | _GI_pthread_cleanup_pop to pthreadP.h. | |
853 | ||
854 | * ftrylockfile.c: Use _IO_lock_trylock instead of | |
855 | pthread_mutex_trylock. | |
856 | ||
857 | * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype. | |
858 | (CANCEL_RESET): Likewise. | |
859 | (__pthread_setcanceltype_): Declare. | |
860 | (__pthread_mutex_lock_internal): Declare. | |
861 | (__pthread_mutex_unlock_internal): Declare. | |
862 | (__pthread_once_internal): Declare. | |
863 | (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push. | |
864 | (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop. | |
865 | ||
866 | * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock | |
867 | and pthread_mutex_unlock. | |
868 | * pthread_cond_wait.c: Likewise. | |
869 | * pthread_mutex_lock.c: Use INTDEF to define alias if needed. | |
870 | * pthread_mutex_unlock.c: Likewise. | |
871 | ||
872 | * pthread_setcanceltype.c: Add additional alias | |
873 | __pthread_setcanceltype. | |
874 | ||
875 | * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF. | |
876 | * sem_open.c (sem_open): Likewise. | |
877 | Use __libc_open, __libc_write, and __libc_close instead of | |
878 | open, write, and close respectively. | |
879 | ||
880 | * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal): | |
881 | Rewrite as statement expression since it must return a value. | |
882 | ||
883 | * pthread_cancel.c: Use __pthread_kill instead of pthread_kill. | |
884 | * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias | |
885 | __pthread_kill. | |
886 | ||
887 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional | |
888 | alias __pthread_once_internal. | |
889 | ||
6ccb3834 UD |
890 | * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise. |
891 | ||
d3c9f895 UD |
892 | 2002-12-06 Ulrich Drepper <drepper@redhat.com> |
893 | ||
4614167a UD |
894 | * Makefile (tests): Add tst-stdio1 and tst-stdio2. |
895 | * tst-stdio1.c: New file. | |
896 | * tst-stdio2.c: New file. | |
897 | ||
a4548cea UD |
898 | * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use. |
899 | ||
d3c9f895 UD |
900 | * Makefile (tests): Comment out tst-locale2 for now. |
901 | (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO. | |
902 | ||
903 | * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to | |
904 | -D_IO_MTSAFE_IO. | |
905 | * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>. | |
906 | Use _IO_lock_init instead of explicit assignment. | |
907 | ||
908 | * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros. | |
909 | Define __libc_lock_* and __libc_lock_recursive macros with | |
910 | lowlevellock macros, not pthread mutexes. | |
911 | ||
912 | * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead | |
913 | of pthread_mutex_lock. | |
914 | * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock | |
915 | instead of pthread_mutex_unlock. | |
916 | ||
fde89ad0 RM |
917 | 2002-12-06 Roland McGrath <roland@redhat.com> |
918 | ||
919 | * allocatestack.c (__stack_user): Use uninitialized defn. | |
920 | * init.c (__pthread_initialize_minimal): Initialize it here. | |
921 | ||
11767d47 RM |
922 | 2002-12-05 Roland McGrath <roland@redhat.com> |
923 | ||
fde89ad0 RM |
924 | * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error |
925 | string. | |
926 | * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise. | |
927 | ||
11767d47 RM |
928 | * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add |
929 | missing & here too. | |
930 | ||
440d8bc2 UD |
931 | 2002-12-05 Ulrich Drepper <drepper@redhat.com> |
932 | ||
933 | * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove | |
934 | lowlevellock. | |
935 | * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file. | |
936 | * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file. | |
937 | * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file. | |
938 | * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation | |
939 | for __libc_lock_* macros. | |
940 | * Makefile (routines): Add libc-lowlevellock. | |
941 | ||
942 | 2002-10-09 Roland McGrath <roland@redhat.com> | |
943 | ||
944 | * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro. | |
945 | Under [__PIC__], call the function via the pointer fetched for | |
946 | comparison rather than a call by name that uses the PLT. | |
947 | (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini) | |
948 | (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock) | |
949 | (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock) | |
950 | (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock) | |
951 | (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it. | |
952 | ||
d5ed0118 RM |
953 | 2002-12-04 Roland McGrath <roland@redhat.com> |
954 | ||
955 | * forward.c (pthread_self): Use FORWARD3 macro to correct return type. | |
956 | ||
957 | * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db. | |
958 | * sysdeps/generic/td_ta_map_lwp2thr.c: New file. | |
959 | ||
960 | * pthread_create.c (start_thread): Add missing & on __nptl_last_event. | |
961 | ||
eaa4099f UD |
962 | 2002-12-04 Ulrich Drepper <drepper@redhat.com> |
963 | ||
964 | * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t | |
965 | a completely opaque, non-integer type. | |
966 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. | |
967 | ||
33b5d0cc UD |
968 | 2002-12-05 Jakub Jelinek <jakub@redhat.com> |
969 | ||
970 | * sysdeps/i386/tls.h: Include stdlib.h. | |
971 | * sysdeps/x86_64/tls.h: Likewise. | |
972 | ||
7a5cdb30 UD |
973 | 2002-12-04 Ulrich Drepper <drepper@redhat.com> |
974 | ||
c4a6d859 UD |
975 | * Makefile (tests): Add tst-locale2. |
976 | (tests-static): Likewise. | |
977 | * tst-locale2.c: New file. | |
978 | ||
7a5cdb30 UD |
979 | * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as |
980 | volatile and add memory clobbers to lock operations. | |
981 | ||
d82d5d12 UD |
982 | 2002-12-03 Ulrich Drepper <drepper@redhat.com> |
983 | ||
69cae3cf UD |
984 | * sysdeps/i386/i686/bits/atomic.h: Use i486 version. |
985 | * sysdeps/i386/i486/bits/atomic.h: New file. | |
986 | * sysdeps/i386/i586/bits/atomic.h: New file. | |
987 | * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and | |
988 | include i486 version. | |
989 | * sysdeps/i386/i486/pthread_spin_trylock.S: New file. | |
990 | * sysdeps/i386/i586/pthread_spin_trylock.S: New file. | |
c97c64de | 991 | Patch by Marijn Ros <marijn@mad.scientist.com>. |
69cae3cf | 992 | |
e4044c01 UD |
993 | * allocatestack.c (get_cached_stack): Don't crash if we first |
994 | found a stack with a larger size then needed. | |
995 | Reported by Hui Huang <hui.huang@sun.com>. | |
996 | ||
d82d5d12 UD |
997 | * Makefile (tests): Add tst-sysconf. |
998 | * tst-sysconf.c: New file. | |
999 | ||
1000 | * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine | |
1001 | PTHREAD_THREADS_MAX. | |
1002 | ||
fa9a4ff0 RM |
1003 | 2002-12-02 Roland McGrath <roland@redhat.com> |
1004 | ||
1005 | * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event): | |
1006 | Declare using hidden_proto instead of attribute_hidden, so there are | |
1007 | non-.hidden static symbols for gdb to find. | |
1008 | (__pthread_keys): Likewise. | |
1009 | * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def. | |
1010 | * allocatestack.c (__stack_user): Likewise. | |
1011 | * pthread_create.c (__pthread_keys): Likewise. | |
1012 | (__nptl_threads_events, __nptl_last_event): Make these static instead | |
1013 | of hidden. | |
1014 | * pthread_key_create.c (__pthread_pthread_keys_max, | |
1015 | __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*. | |
1016 | ||
91949a33 UD |
1017 | 2002-12-02 Ulrich Drepper <drepper@redhat.com> |
1018 | ||
c22b52fa UD |
1019 | * Makefile (tests): Add tst-locale1. If buid-static is yes link |
1020 | statically. | |
1021 | * tst-locale1.c: New file. | |
1022 | ||
beb6aa41 UD |
1023 | * pthread_cond_timedwait.c: Include <stdlib.h>. |
1024 | ||
91949a33 UD |
1025 | * Makefile (tests): Add tst-fork2 and tst-fork3. |
1026 | * tst-fork2.c: New file. | |
1027 | * tst-fork3.c: New file. | |
1028 | ||
654dff90 UD |
1029 | 2002-11-28 Ulrich Drepper <drepper@redhat.com> |
1030 | ||
cb0e76b4 UD |
1031 | * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file. |
1032 | ||
1033 | * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which | |
1034 | require it to 200112L. | |
1035 | ||
1036 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov | |
1037 | instruction only if HAVE_CMOV is defined. | |
1038 | * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV. | |
1039 | ||
975aa229 UD |
1040 | * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file. |
1041 | ||
654dff90 UD |
1042 | * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file. |
1043 | ||
1044 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file. | |
1045 | ||
1046 | * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file. | |
1047 | ||
a3931336 UD |
1048 | 2002-11-27 Ulrich Drepper <drepper@redhat.com> |
1049 | ||
c10c099c UD |
1050 | * sysdeps/x86_64/bits/atomic.h: New file. |
1051 | ||
1052 | * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and | |
1053 | 16-bit operations. | |
1054 | ||
dca99d27 UD |
1055 | * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if |
1056 | possible since gettid cannot fail. | |
1057 | ||
f78deea6 UD |
1058 | * sysdeps/x86_64/pthreaddef.h: New file. |
1059 | ||
1060 | * sysdeps/i386/pthreaddef.h (gettid): Removed. | |
1061 | ||
1062 | * sysdeps/x86_64/pthread_spin_init.c: New file. | |
1063 | * sysdeps/x86_64/pthread_spin_lock.c: New file. | |
1064 | * sysdeps/x86_64/pthread_spin_trylock.c: New file. | |
1065 | * sysdeps/x86_64/pthread_spin_unlock.c: New file. | |
1066 | ||
1067 | * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock): | |
1068 | Add missing lock prefix. Minute optimization. | |
1069 | ||
1070 | * tst-spin2.c (main): Also check successful trylock call. | |
1071 | ||
1072 | * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct | |
1073 | syscall. Fix typo in case INTERNAL_SYSCALL is not used. | |
1074 | ||
1075 | * sysdeps/i386/pthread_spin_destroy.c: Moved to... | |
1076 | * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file. | |
1077 | ||
1078 | * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code. | |
1079 | * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct | |
1080 | value in case of an error. Add support for INTERNAL_SYSCALL. | |
b54e18eb UD |
1081 | |
1082 | * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct | |
1083 | value in case of an error. | |
1084 | ||
a3931336 UD |
1085 | * sysdeps/x86_64/tls.h: New file. |
1086 | ||
76a50749 UD |
1087 | 2002-11-26 Ulrich Drepper <drepper@redhat.com> |
1088 | ||
117c452c UD |
1089 | * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now |
1090 | takes the array member name and the index as parameters. | |
1091 | (THREAD_SETMEM_NC): Likewise. | |
1092 | * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface. | |
1093 | * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC | |
1094 | interfaces. | |
1095 | ||
1096 | * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element | |
1097 | to decide which code to use. | |
1098 | (THREAD_SETMEM_NC): Likewise. | |
1099 | ||
76a50749 UD |
1100 | * allocatestack.c (queue_stack): Don't remove stack from list here. |
1101 | Do it in the caller. Correct condition to prematurely terminate | |
1102 | loop to free stacks. | |
1103 | (__deallocate_stack): Remove stack from list here. | |
1104 | ||
1105 | 2002-11-26 Ulrich Drepper <drepper@redhat.com> | |
1106 | ||
1107 | * Makefile (tests): Add tst-stack1. | |
1108 | * tst-stack1.c: New file. | |
1109 | ||
1110 | * allocatestack.c (allocate_stack): Initialize the TCB on a user | |
1111 | provided stack. | |
1112 | ||
1113 | * pthread_attr_getstack.c: Return bottom of the thread area. | |
1114 | ||
1115 | 2002-11-25 Ulrich Drepper <drepper@redhat.com> | |
1116 | ||
1117 | * Makefile (libpthread-routines): Add pt-allocrtsig and | |
1118 | pthread_kill_other_threads. | |
1119 | * pt-allocrtsig.c: New file. | |
1120 | * pthread_kill_other_threads.c: New file. | |
1121 | * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for | |
1122 | all three functions. | |
1123 | * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove | |
1124 | allocrtsig. | |
1125 | * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export | |
1126 | __libc_current_sigrtmin_private, __libc_current_sigrtmax_private, | |
1127 | and __libc_allocate_rtsig_private. | |
1128 | * Versions (libpthread): Export pthread_kill_other_threads_np, | |
1129 | __libc_current_sigrtmin, and __libc_current_sigrtmax. | |
1130 | ||
1131 | 2002-11-24 Ulrich Drepper <drepper@redhat.com> | |
1132 | ||
1133 | * allocatestack.c (allocate_stack): stackaddr in attribute points to | |
1134 | the end of the stack. Adjust computations. | |
1135 | When mprotect call fails dequeue stack and free it. | |
1136 | * pthread_attr_setstack.c: Store top of the stack in stackaddr | |
1137 | attribute. | |
1138 | * pthread_getattr_np.c: Likewise. | |
1139 | ||
1140 | * descr.h (IS_DETACHED): Add some more parenthesis to prevent | |
1141 | surprises. | |
1142 | ||
1143 | 2002-11-23 Ulrich Drepper <drepper@redhat.com> | |
1144 | ||
1145 | * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before | |
1146 | attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
1147 | ||
1148 | 2002-11-22 Ulrich Drepper <drepper@redhat.com> | |
1149 | ||
1150 | * pthread_getspecific.c: Optimize access to first 2nd-level array. | |
1151 | * pthread_setspecific.c: Likewise. | |
1152 | ||
1153 | 2002-11-21 Ulrich Drepper <drepper@redhat.com> | |
1154 | ||
1155 | * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags | |
1156 | definitions. Get them from the official place. | |
1157 | * sysdeps/unix/sysv/linux/i386/fork.c: Likewise. | |
1158 | ||
1159 | * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags. | |
1160 | Use new CLONE_ flags in clone() calls. | |
1161 | ||
1162 | * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork. | |
1163 | * sysdeps/unix/sysv/linux/i386/fork.c: New file. | |
1164 | ||
1165 | * Versions: Add pthread_* functions for libc. | |
1166 | * forward.c: New file. | |
1167 | ||
1168 | * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add | |
1169 | errno-loc. | |
1170 | * herrno.c: New file. | |
1171 | * res.c: New file. | |
1172 | ||
1173 | * Makefile (libpthread-routines): Remove sem_post, sem_wait, | |
1174 | sem_trywait, and sem_timedwait. Add herrno and res. | |
1175 | * sem_init.c: Don't initialize lock and waiters members. | |
1176 | * sem_open.c: Likewise. | |
1177 | * sem_post.c: Removed. | |
1178 | * sem_wait.c: Removed. | |
1179 | * sem_trywait.c: Removed. | |
1180 | * sem_timedwait.c: Removed. | |
1181 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite. | |
1182 | Includes full implementations of sem_post, sem_wait, sem_trywait, | |
1183 | and sem_timedwait. | |
1184 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust | |
1185 | for new implementation. | |
1186 | * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock | |
1187 | and waiters fields. | |
1188 | ||
1189 | * tst-sem3.c: Improve error message. | |
1190 | * tst-signal3.c: Likewise. | |
1191 | ||
1192 | * init.c (__pthread_initialize_minimal): Use set_tid_address syscall | |
1193 | to tell the kernel about the termination futex and to initialize tid | |
1194 | member. Don't initialize main_thread. | |
1195 | * descr.h (struct pthread): Remove main_thread member. | |
1196 | * cancelllation.c (__do_cancel): Remove code handling main thread. | |
1197 | The main thread is not special anymore. | |
1198 | ||
1199 | * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add | |
1200 | size of the stacks to stack_cache_actsize. | |
1201 | ||
1202 | * pt-readv.c: Add missing "defined". | |
1203 | * pt-sigwait.c: Likewise. | |
1204 | * pt-writev.c: Likewise. | |
1205 | ||
1206 | 2002-11-09 Ulrich Drepper <drepper@redhat.com> | |
1207 | ||
1208 | * Versions: Export __connect from libpthread. | |
1209 | Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
1210 | ||
1211 | * Makefile (libpthread-routines): Add pt-raise. | |
1212 | * sysdeps/unix/sysv/linux/raise.c: New file. | |
1213 | * sysdeps/unix/sysv/linux/pt-raise.c: New file. | |
1214 | * sysdeps/generic/pt-raise.c: New file. | |
1215 | ||
1216 | * pthread_cond_init.c: Initialize all data elements of the condvar | |
1217 | structure. Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
1218 | ||
1219 | * pthread_attr_init.c: Actually implement 2.0 compatibility version. | |
1220 | * pthread_create.c: Likewise. | |
1221 | ||
1222 | * Makefile (tests): Add tst-key1, tst-key2, tst-key3. | |
1223 | * tst-key1.c: New file. | |
1224 | * tst-key2.c: New file. | |
1225 | * tst-key3.c: New file. | |
1226 | ||
1227 | * Versions: Export pthread_detach for version GLIBC_2.0. | |
1228 | Reported by Saurabh Desai <sdesai@austin.ibm.com>. | |
1229 | ||
1230 | 2002-11-08 Ulrich Drepper <drepper@redhat.com> | |
1231 | ||
1232 | * pthread_key_create.c: Terminate search after an unused key was found. | |
1233 | Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
1234 | ||
1235 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero. | |
1236 | Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
1237 | ||
1238 | 2002-10-10 Ulrich Drepper <drepper@redhat.com> | |
1239 | ||
1240 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic | |
1241 | dynamic lookup for errno in PIC. | |
1242 | ||
1243 | * allocatestack.c (get_cached_stack): Rearrange code slightly to | |
1244 | release the stack lock as soon as possible. | |
1245 | Call _dl_allocate_tls_init for TCB from the cache to re-initialize | |
1246 | the static TLS block. | |
1247 | (allocate_stack): Call _dl_allocate_tls_init for user-provided stack. | |
1248 | ||
1249 | * cancellation.c: Renamed from cancelation.c. | |
1250 | * Makefile: Adjust accordingly. | |
1251 | * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P. | |
1252 | * cleanup_defer.c: Use CANCELLATION_P. | |
1253 | * pthread_testcancel.c: Likewise. | |
1254 | * descr.h: Fix spelling in comments. | |
1255 | * init.c: Likewise. | |
1256 | * pthread_getattr_np.c: Likewise. | |
1257 | * pthread_getschedparam.c: Likewise. | |
1258 | * pthread_setschedparam.c: Likewise. | |
1259 | * Versions: Likewise. | |
1260 | ||
1261 | * pt-pselect.c: New file. | |
1262 | * Makefile (libpthread-routines): Add pt-pselect. | |
1263 | * Versions: Add pselect. | |
1264 | ||
1265 | * tst-cancel4.c: New file. | |
1266 | * Makefile (tests): Add tst-cancel4. | |
1267 | ||
1268 | 2002-10-09 Ulrich Drepper <drepper@redhat.com> | |
1269 | ||
1270 | * pthread_mutex_lock.c: Always record lock ownership. | |
1271 | * pthread_mutex_timedlock.c: Likewise. | |
1272 | * pthread_mutex_trylock.c: Likewise. | |
1273 | ||
1274 | * pt-readv.c: New file. | |
1275 | * pt-writev.c: New file. | |
1276 | * pt-creat.c: New file. | |
1277 | * pt-msgrcv.c: New file. | |
1278 | * pt-msgsnd.c: New file. | |
1279 | * pt-poll.c: New file. | |
1280 | * pt-select.c: New file. | |
1281 | * pt-sigpause.c: New file. | |
1282 | * pt-sigsuspend.c: New file. | |
1283 | * pt-sigwait.c: New file. | |
1284 | * pt-sigwaitinfo.c: New file. | |
1285 | * pt-waitid.c: New file. | |
1286 | * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat, | |
1287 | pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend, | |
1288 | pt-sigwait, pt-sigwaitinfo, and pt-waitid. | |
1289 | * Versions: Add all the new functions. | |
1290 | ||
1291 | * tst-exit1.c: New file. | |
1292 | * Makefile (tests): Add tst-exit1. | |
1293 | ||
1294 | * sem_timedwait.c: Minor optimization for more optimal fastpath. | |
1295 | ||
1296 | 2002-10-08 Ulrich Drepper <drepper@redhat.com> | |
1297 | ||
1298 | * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW. | |
1299 | ||
1300 | * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid | |
1301 | call. pthread_join is an official cancellation point. | |
1302 | * pthread_timedjoin.c: Likewise. | |
1303 | ||
1304 | * pthread_cond_wait.c: Revert order in which internal lock are dropped | |
1305 | and the condvar's mutex are retrieved. | |
1306 | * pthread_cond_timedwait.c: Likewise. | |
1307 | Reported by dice@saros.East.Sun.COM. | |
1308 | ||
1309 | 2002-10-07 Ulrich Drepper <drepper@redhat.com> | |
1310 | ||
1311 | * pthreadP.h: Cut out all type definitions and move them... | |
1312 | * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file. | |
1313 | * pthreadP.h: Include <internaltypes.h>. | |
1314 | ||
1315 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little | |
1316 | performance tweaks. | |
1317 | ||
1318 | * sem_trywait.c: Shuffle #includes around to get right order. | |
1319 | * sem_timedwait.c: Likewise. | |
1320 | * sem_post.c: Likewise. | |
1321 | * sem_wait.c: Likewise. | |
1322 | ||
1323 | * nptl 0.3 released. | |
1324 | ||
1325 | * Makefile (tests): Add tst-signal3. | |
1326 | * tst-signal3.c: New file. | |
1327 | ||
1328 | 2002-10-05 Ulrich Drepper <drepper@redhat.com> | |
1329 | ||
1330 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that | |
1331 | the asms modify the sem object. | |
1332 | (__lll_sem_timedwait): Now takes struct sem* as first parameter. | |
1333 | ||
1334 | * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose | |
1335 | the actual members. | |
1336 | * pthreadP.h (struct sem): New type. Actual semaphore type. | |
1337 | * semaphoreP.h: Include pthreadP.h. | |
1338 | * sem_getvalue.c: Adjust to sem_t change. | |
1339 | * sem_init.c: Likewise. | |
1340 | * sem_open.c: Likewise. | |
1341 | * sem_post.c: Likewise. | |
1342 | * sem_timedwait.c: Likewise. | |
1343 | * sem_trywait.c: Likewise. | |
1344 | * sem_wait.c: Likewise. | |
1345 | ||
1346 | 2002-10-04 Ulrich Drepper <drepper@redhat.com> | |
1347 | ||
1348 | * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3. | |
1349 | * tst-basic2.c: New file. | |
1350 | * tst-exec1.c: New file. | |
1351 | * tst-exec2.c: New file. | |
1352 | * tst-exec3.c: New file. | |
1353 | ||
1354 | * tst-fork1.c: Remove extra */. | |
1355 | ||
1356 | * nptl 0.2 released. The API for IA-32 is complete. |