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