]>
Commit | Line | Data |
---|---|---|
91949a33 UD |
1 | 2002-12-02 Ulrich Drepper <drepper@redhat.com> |
2 | ||
3 | * Makefile (tests): Add tst-fork2 and tst-fork3. | |
4 | * tst-fork2.c: New file. | |
5 | * tst-fork3.c: New file. | |
6 | ||
654dff90 UD |
7 | 2002-11-28 Ulrich Drepper <drepper@redhat.com> |
8 | ||
cb0e76b4 UD |
9 | * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file. |
10 | ||
11 | * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which | |
12 | require it to 200112L. | |
13 | ||
14 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov | |
15 | instruction only if HAVE_CMOV is defined. | |
16 | * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV. | |
17 | ||
975aa229 UD |
18 | * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file. |
19 | ||
654dff90 UD |
20 | * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file. |
21 | ||
22 | * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file. | |
23 | ||
24 | * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file. | |
25 | ||
a3931336 UD |
26 | 2002-11-27 Ulrich Drepper <drepper@redhat.com> |
27 | ||
c10c099c UD |
28 | * sysdeps/x86_64/bits/atomic.h: New file. |
29 | ||
30 | * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and | |
31 | 16-bit operations. | |
32 | ||
dca99d27 UD |
33 | * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if |
34 | possible since gettid cannot fail. | |
35 | ||
f78deea6 UD |
36 | * sysdeps/x86_64/pthreaddef.h: New file. |
37 | ||
38 | * sysdeps/i386/pthreaddef.h (gettid): Removed. | |
39 | ||
40 | * sysdeps/x86_64/pthread_spin_init.c: New file. | |
41 | * sysdeps/x86_64/pthread_spin_lock.c: New file. | |
42 | * sysdeps/x86_64/pthread_spin_trylock.c: New file. | |
43 | * sysdeps/x86_64/pthread_spin_unlock.c: New file. | |
44 | ||
45 | * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock): | |
46 | Add missing lock prefix. Minute optimization. | |
47 | ||
48 | * tst-spin2.c (main): Also check successful trylock call. | |
49 | ||
50 | * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct | |
51 | syscall. Fix typo in case INTERNAL_SYSCALL is not used. | |
52 | ||
53 | * sysdeps/i386/pthread_spin_destroy.c: Moved to... | |
54 | * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file. | |
55 | ||
56 | * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code. | |
57 | * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct | |
58 | value in case of an error. Add support for INTERNAL_SYSCALL. | |
b54e18eb UD |
59 | |
60 | * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct | |
61 | value in case of an error. | |
62 | ||
a3931336 UD |
63 | * sysdeps/x86_64/tls.h: New file. |
64 | ||
76a50749 UD |
65 | 2002-11-26 Ulrich Drepper <drepper@redhat.com> |
66 | ||
117c452c UD |
67 | * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now |
68 | takes the array member name and the index as parameters. | |
69 | (THREAD_SETMEM_NC): Likewise. | |
70 | * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface. | |
71 | * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC | |
72 | interfaces. | |
73 | ||
74 | * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element | |
75 | to decide which code to use. | |
76 | (THREAD_SETMEM_NC): Likewise. | |
77 | ||
76a50749 UD |
78 | * allocatestack.c (queue_stack): Don't remove stack from list here. |
79 | Do it in the caller. Correct condition to prematurely terminate | |
80 | loop to free stacks. | |
81 | (__deallocate_stack): Remove stack from list here. | |
82 | ||
83 | 2002-11-26 Ulrich Drepper <drepper@redhat.com> | |
84 | ||
85 | * Makefile (tests): Add tst-stack1. | |
86 | * tst-stack1.c: New file. | |
87 | ||
88 | * allocatestack.c (allocate_stack): Initialize the TCB on a user | |
89 | provided stack. | |
90 | ||
91 | * pthread_attr_getstack.c: Return bottom of the thread area. | |
92 | ||
93 | 2002-11-25 Ulrich Drepper <drepper@redhat.com> | |
94 | ||
95 | * Makefile (libpthread-routines): Add pt-allocrtsig and | |
96 | pthread_kill_other_threads. | |
97 | * pt-allocrtsig.c: New file. | |
98 | * pthread_kill_other_threads.c: New file. | |
99 | * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for | |
100 | all three functions. | |
101 | * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove | |
102 | allocrtsig. | |
103 | * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export | |
104 | __libc_current_sigrtmin_private, __libc_current_sigrtmax_private, | |
105 | and __libc_allocate_rtsig_private. | |
106 | * Versions (libpthread): Export pthread_kill_other_threads_np, | |
107 | __libc_current_sigrtmin, and __libc_current_sigrtmax. | |
108 | ||
109 | 2002-11-24 Ulrich Drepper <drepper@redhat.com> | |
110 | ||
111 | * allocatestack.c (allocate_stack): stackaddr in attribute points to | |
112 | the end of the stack. Adjust computations. | |
113 | When mprotect call fails dequeue stack and free it. | |
114 | * pthread_attr_setstack.c: Store top of the stack in stackaddr | |
115 | attribute. | |
116 | * pthread_getattr_np.c: Likewise. | |
117 | ||
118 | * descr.h (IS_DETACHED): Add some more parenthesis to prevent | |
119 | surprises. | |
120 | ||
121 | 2002-11-23 Ulrich Drepper <drepper@redhat.com> | |
122 | ||
123 | * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before | |
124 | attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
125 | ||
126 | 2002-11-22 Ulrich Drepper <drepper@redhat.com> | |
127 | ||
128 | * pthread_getspecific.c: Optimize access to first 2nd-level array. | |
129 | * pthread_setspecific.c: Likewise. | |
130 | ||
131 | 2002-11-21 Ulrich Drepper <drepper@redhat.com> | |
132 | ||
133 | * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags | |
134 | definitions. Get them from the official place. | |
135 | * sysdeps/unix/sysv/linux/i386/fork.c: Likewise. | |
136 | ||
137 | * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags. | |
138 | Use new CLONE_ flags in clone() calls. | |
139 | ||
140 | * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork. | |
141 | * sysdeps/unix/sysv/linux/i386/fork.c: New file. | |
142 | ||
143 | * Versions: Add pthread_* functions for libc. | |
144 | * forward.c: New file. | |
145 | ||
146 | * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add | |
147 | errno-loc. | |
148 | * herrno.c: New file. | |
149 | * res.c: New file. | |
150 | ||
151 | * Makefile (libpthread-routines): Remove sem_post, sem_wait, | |
152 | sem_trywait, and sem_timedwait. Add herrno and res. | |
153 | * sem_init.c: Don't initialize lock and waiters members. | |
154 | * sem_open.c: Likewise. | |
155 | * sem_post.c: Removed. | |
156 | * sem_wait.c: Removed. | |
157 | * sem_trywait.c: Removed. | |
158 | * sem_timedwait.c: Removed. | |
159 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite. | |
160 | Includes full implementations of sem_post, sem_wait, sem_trywait, | |
161 | and sem_timedwait. | |
162 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust | |
163 | for new implementation. | |
164 | * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock | |
165 | and waiters fields. | |
166 | ||
167 | * tst-sem3.c: Improve error message. | |
168 | * tst-signal3.c: Likewise. | |
169 | ||
170 | * init.c (__pthread_initialize_minimal): Use set_tid_address syscall | |
171 | to tell the kernel about the termination futex and to initialize tid | |
172 | member. Don't initialize main_thread. | |
173 | * descr.h (struct pthread): Remove main_thread member. | |
174 | * cancelllation.c (__do_cancel): Remove code handling main thread. | |
175 | The main thread is not special anymore. | |
176 | ||
177 | * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add | |
178 | size of the stacks to stack_cache_actsize. | |
179 | ||
180 | * pt-readv.c: Add missing "defined". | |
181 | * pt-sigwait.c: Likewise. | |
182 | * pt-writev.c: Likewise. | |
183 | ||
184 | 2002-11-09 Ulrich Drepper <drepper@redhat.com> | |
185 | ||
186 | * Versions: Export __connect from libpthread. | |
187 | Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
188 | ||
189 | * Makefile (libpthread-routines): Add pt-raise. | |
190 | * sysdeps/unix/sysv/linux/raise.c: New file. | |
191 | * sysdeps/unix/sysv/linux/pt-raise.c: New file. | |
192 | * sysdeps/generic/pt-raise.c: New file. | |
193 | ||
194 | * pthread_cond_init.c: Initialize all data elements of the condvar | |
195 | structure. Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
196 | ||
197 | * pthread_attr_init.c: Actually implement 2.0 compatibility version. | |
198 | * pthread_create.c: Likewise. | |
199 | ||
200 | * Makefile (tests): Add tst-key1, tst-key2, tst-key3. | |
201 | * tst-key1.c: New file. | |
202 | * tst-key2.c: New file. | |
203 | * tst-key3.c: New file. | |
204 | ||
205 | * Versions: Export pthread_detach for version GLIBC_2.0. | |
206 | Reported by Saurabh Desai <sdesai@austin.ibm.com>. | |
207 | ||
208 | 2002-11-08 Ulrich Drepper <drepper@redhat.com> | |
209 | ||
210 | * pthread_key_create.c: Terminate search after an unused key was found. | |
211 | Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
212 | ||
213 | * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero. | |
214 | Patch by Luca Barbieri <ldb@ldb.ods.org>. | |
215 | ||
216 | 2002-10-10 Ulrich Drepper <drepper@redhat.com> | |
217 | ||
218 | * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic | |
219 | dynamic lookup for errno in PIC. | |
220 | ||
221 | * allocatestack.c (get_cached_stack): Rearrange code slightly to | |
222 | release the stack lock as soon as possible. | |
223 | Call _dl_allocate_tls_init for TCB from the cache to re-initialize | |
224 | the static TLS block. | |
225 | (allocate_stack): Call _dl_allocate_tls_init for user-provided stack. | |
226 | ||
227 | * cancellation.c: Renamed from cancelation.c. | |
228 | * Makefile: Adjust accordingly. | |
229 | * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P. | |
230 | * cleanup_defer.c: Use CANCELLATION_P. | |
231 | * pthread_testcancel.c: Likewise. | |
232 | * descr.h: Fix spelling in comments. | |
233 | * init.c: Likewise. | |
234 | * pthread_getattr_np.c: Likewise. | |
235 | * pthread_getschedparam.c: Likewise. | |
236 | * pthread_setschedparam.c: Likewise. | |
237 | * Versions: Likewise. | |
238 | ||
239 | * pt-pselect.c: New file. | |
240 | * Makefile (libpthread-routines): Add pt-pselect. | |
241 | * Versions: Add pselect. | |
242 | ||
243 | * tst-cancel4.c: New file. | |
244 | * Makefile (tests): Add tst-cancel4. | |
245 | ||
246 | 2002-10-09 Ulrich Drepper <drepper@redhat.com> | |
247 | ||
248 | * pthread_mutex_lock.c: Always record lock ownership. | |
249 | * pthread_mutex_timedlock.c: Likewise. | |
250 | * pthread_mutex_trylock.c: Likewise. | |
251 | ||
252 | * pt-readv.c: New file. | |
253 | * pt-writev.c: New file. | |
254 | * pt-creat.c: New file. | |
255 | * pt-msgrcv.c: New file. | |
256 | * pt-msgsnd.c: New file. | |
257 | * pt-poll.c: New file. | |
258 | * pt-select.c: New file. | |
259 | * pt-sigpause.c: New file. | |
260 | * pt-sigsuspend.c: New file. | |
261 | * pt-sigwait.c: New file. | |
262 | * pt-sigwaitinfo.c: New file. | |
263 | * pt-waitid.c: New file. | |
264 | * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat, | |
265 | pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend, | |
266 | pt-sigwait, pt-sigwaitinfo, and pt-waitid. | |
267 | * Versions: Add all the new functions. | |
268 | ||
269 | * tst-exit1.c: New file. | |
270 | * Makefile (tests): Add tst-exit1. | |
271 | ||
272 | * sem_timedwait.c: Minor optimization for more optimal fastpath. | |
273 | ||
274 | 2002-10-08 Ulrich Drepper <drepper@redhat.com> | |
275 | ||
276 | * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW. | |
277 | ||
278 | * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid | |
279 | call. pthread_join is an official cancellation point. | |
280 | * pthread_timedjoin.c: Likewise. | |
281 | ||
282 | * pthread_cond_wait.c: Revert order in which internal lock are dropped | |
283 | and the condvar's mutex are retrieved. | |
284 | * pthread_cond_timedwait.c: Likewise. | |
285 | Reported by dice@saros.East.Sun.COM. | |
286 | ||
287 | 2002-10-07 Ulrich Drepper <drepper@redhat.com> | |
288 | ||
289 | * pthreadP.h: Cut out all type definitions and move them... | |
290 | * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file. | |
291 | * pthreadP.h: Include <internaltypes.h>. | |
292 | ||
293 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little | |
294 | performance tweaks. | |
295 | ||
296 | * sem_trywait.c: Shuffle #includes around to get right order. | |
297 | * sem_timedwait.c: Likewise. | |
298 | * sem_post.c: Likewise. | |
299 | * sem_wait.c: Likewise. | |
300 | ||
301 | * nptl 0.3 released. | |
302 | ||
303 | * Makefile (tests): Add tst-signal3. | |
304 | * tst-signal3.c: New file. | |
305 | ||
306 | 2002-10-05 Ulrich Drepper <drepper@redhat.com> | |
307 | ||
308 | * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that | |
309 | the asms modify the sem object. | |
310 | (__lll_sem_timedwait): Now takes struct sem* as first parameter. | |
311 | ||
312 | * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose | |
313 | the actual members. | |
314 | * pthreadP.h (struct sem): New type. Actual semaphore type. | |
315 | * semaphoreP.h: Include pthreadP.h. | |
316 | * sem_getvalue.c: Adjust to sem_t change. | |
317 | * sem_init.c: Likewise. | |
318 | * sem_open.c: Likewise. | |
319 | * sem_post.c: Likewise. | |
320 | * sem_timedwait.c: Likewise. | |
321 | * sem_trywait.c: Likewise. | |
322 | * sem_wait.c: Likewise. | |
323 | ||
324 | 2002-10-04 Ulrich Drepper <drepper@redhat.com> | |
325 | ||
326 | * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3. | |
327 | * tst-basic2.c: New file. | |
328 | * tst-exec1.c: New file. | |
329 | * tst-exec2.c: New file. | |
330 | * tst-exec3.c: New file. | |
331 | ||
332 | * tst-fork1.c: Remove extra */. | |
333 | ||
334 | * nptl 0.2 released. The API for IA-32 is complete. |