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