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