]> sourceware.org Git - glibc.git/blob - linuxthreads/ChangeLog
304b2fd18c2b7a9ebc6c1e28cfa957d88e6de9ef
[glibc.git] / linuxthreads / ChangeLog
1 2000-04-24 Mark Kettenis <kettenis@gnu.org>
2
3 * join.c (pthread_exit): Set p_terminated after reporting the
4 termination event instead of before.
5
6 2000-04-20 Jakub Jelinek <jakub@redhat.com>
7
8 * sysdeps/pthread/bits/libc-lock.h: Only declare __pthread_rwlock_*
9 if __USE_UNIX98.
10
11 2000-04-18 Andreas Jaeger <aj@suse.de>
12
13 * Versions: Use ld instead of ld.so.
14
15 2000-04-18 Jakub Jelinek <jakub@redhat.com>
16
17 * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h (struct sigcontext):
18 Remove the typedef keyword.
19
20 2000-04-18 Jakub Jelinek <jakub@redhat.com>
21
22 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Use membar,
23 not stbar.
24 (READ_MEMORY_BARRIER): Define.
25 * spinlock.c (__pthread_spin_unlock): Use READ_MEMORY_BARRIER, not
26 MEMORY_BARRIER.
27 * internals.h (READ_MEMORY_BARRIER): Define if not defined in sysdep
28 headers.
29
30 2000-04-17 Ulrich Drepper <drepper@redhat.com>
31
32 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
33 (pthread_getcpuclockid): Don't compare thread_id with thread_self,
34 use thread_handle().
35
36 2000-04-16 Ulrich Drepper <drepper@redhat.com>
37
38 * condvar.c (pthread_cond_timedwait_relative): Don't test for owner
39 if fast mutex is used. Don't initialize `already_canceled' twice.
40 Correctly test for return value of timedsuspend.
41
42 * pthread.c: Correct long-time braino. We never set SA_SIGINFO and
43 therefore don't need the _rt versions of the signal handlers.
44
45 2000-04-15 Ulrich Drepper <drepper@redhat.com>
46
47 * pthread.c (pthread_yield): New function.
48 * sysdeps/pthread/pthread.h (pthread_yield): Add prototype.
49 * Versions [libpthread] (GLIBC_2.2): Add pthread_yield.
50 * internals.h: Declare __pthread_yield.
51
52 * pthread.c (pthread_initialize): Avoid a bit more code if
53 realtime signals are known to exist.
54
55 * pthread.c: Is __ASSUME_REALTIME_SIGNALS then avoid generating code
56 to dynamically detect RT signals and avoid generating compatibility
57 functions with old kernel.
58 * restart.h (restart) [__ASSUME_REALTIME_SIGNALS]: Use
59 __pthread_restart_new directly.
60 (suspend) [__ASSUME_REALTIME_SIGNALS]: Use
61 __pthread_wait_for_restart_signal directly.
62 (timedsuspend) [__ASSUME_REALTIME_SIGNALS]: Use
63 __pthread_timedsuspend_new directly.
64
65 2000-04-15 Ulrich Drepper <drepper@redhat.com>
66
67 * condvar.c: Remove all the special code to handle cond_timedwait.
68 Use timedsuspend instead.
69 * internals.h: Declare __pthread_timedsuspend_old,
70 __pthread_timedsuspend_new, and __pthread_timedsuspend.
71 Remove declaration of __pthread_init_condvar.
72 * pthread.c: Define __pthread_timedsuspend variable.
73 (__pthread_timedsuspend_old): New function. Timed suspension
74 implementation for old Linux kernels.
75 (__pthread_timedsuspend_new): New function. Timed suspension
76 implementation for new Linux kernels.
77 * restart.h (timedsuspend): New function. Call appropriate
78 suspension function through __pthread_timedsuspend.
79 * semaphore.c (sem_timedwait): Use timedsuspend, don't duplicate
80 the code.
81 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
82
83 * internals.h (WRITE_MEMORY_BARRIER): Define as MEMORY_BARRIER if
84 undefined.
85 * spinlock.c: Use WRITE_MEMORY_BARRIER instead of MEMORY_BARRIER
86 where possible.
87 * sysdeps/alpha/pt-machine.h: Define WRITE_MEMORY_BARRIER.
88 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
89
90 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _POSIX_SPAWN.
91 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
92
93 2000-04-14 Andreas Jaeger <aj@suse.de>
94
95 * weaks.c: Fix typo.
96
97 * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
98 2.2 for linuxthreads.
99
100 2000-04-13 Ulrich Drepper <drepper@redhat.com>
101
102 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c
103 (pthread_getcpuclockid): Fix typo.
104
105 2000-04-12 Ulrich Drepper <drepper@redhat.com>
106
107 * Makefile (libpthread-routines): Add getcpuclockid.
108 * Versions [libpthread] (GLIBC_2.2): Add pthread_getcpuclockid.
109 * sysdeps/pthread/getcpuclockid.c: New file.
110 * sysdeps/unix/sysv/linux/i386/getcpuclockid.c: New file.
111 * sysdeps/pthread/pthread.h: Add prototype for pthread_getcpuclockid.
112
113 * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_SPIN_LOCKS):
114 Defined.
115 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
116
117 * sysdeps/pthread/pthread.h: Add prototypes for pthread_spin_init,
118 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
119 and pthread_spin_unlock.
120 * sysdeps/pthread/bits/pthreadtypes.h: Change struct _pthread_fastlock
121 into pthread_spinlock_t. Change all uses.
122 * spinlock.c: Implement pthread_spin_lock.
123 Rename __pthread_unlock to __pthread_spin_unlock and define weak
124 alias for real name.
125 Define pthread_spin_trylock, pthread_spin_init, and
126 pthread_spin_destroy.
127 Change all uses of _pthread_fastlock to pthread_spinlock_t.
128 * spinlock.h: Rename __pthread_unlock to __pthread_spin_unlock.
129 Change all uses of _pthread_fastlock to pthread_spinlock_t.
130 * Versions [libpthread] (GLIBC_2.2): Add pthread_spin_init,
131 pthread_spin_destroy, pthread_spin_lock, pthread_spin_trylock,
132 and pthread_spin_unlock.
133 * cancel.c: Use __pthread_spin_unlock instead of __pthread_unlock.
134 Change all uses of _pthread_fastlock to pthread_spinlock_t.
135 * condvar.c: Likewise.
136 * internals.h: Likewise.
137 * join.c: Likewise.
138 * manager.c: Likewise.
139 * mutex.c: Likewise.
140 * pthread.c: Likewise.
141 * rwlock.c: Likewise.
142 * semaphore.c: Likewise.
143 * signals.c: Likewise.
144
145 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add various new POSIX
146 macros.
147 * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
148
149 2000-04-11 Ulrich Drepper <drepper@redhat.com>
150
151 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
152 _POSIX_SHARED_MEMORY_OBJECTS.
153
154 2000-04-11 Andreas Jaeger <aj@suse.de>
155
156 * sysdeps/mips/pt-machine.h (MEMORY_BARRIER): Define.
157 (__compare_and_swap): Mark as modifying memory.
158
159 2000-04-11 Geoff Keating <geoffk@cygnus.com>
160
161 * sysdeps/powerpc/pt-machine.h (MEMORY_BARRIER): Don't be
162 __volatile__.
163 (__compare_and_swap): Replace other 'sync' with MEMORY_BARRIER.
164 Don't have the 'asm' __volatile__.
165
166 2000-04-11 Ulrich Drepper <drepper@redhat.com>
167
168 * internals.h: Define MEMORY_BARRIER as empty if not defined already.
169 * spinlock.c (__pthread_lock): Add memory barriers.
170 (__pthread_unlock): Likewise.
171 * sysdeps/alpha/pt-machine.h (MEMORY_BARRIER): Define using mb
172 instruction.
173 (RELEASE): Not needed anymore.
174 (__compare_and_swap): Mark asm as modifying memory.
175 * sysdeps/powerpc/pt-machine.h (sync): Remove. Replace with definition
176 of MEMORY_BARRIER.
177 (__compare_and_swap): Use MEMORY_BARRIER instead of sync.
178 * sysdeps/sparc/sparc32/pt-machine.h (RELEASE): Not needed anymore.
179 (MEMORY_BARRIER): Define using stbar.
180 * sysdeps/sparc/sparc64/pt-machine.h (MEMORY_BARRIER): Define using
181 stbar.
182 (__compare_and_swap): Use MEMORY_BARRIER to ensure ordering.
183 Patch by Xavier Leroy <Xavier.Leroy@inria.fr> based on comments by
184 Mike Burrows <m3b@pa.dec.com>.
185
186 2000-04-09 Ulrich Drepper <drepper@redhat.com>
187
188 * signals.c (sigaction): Fix return value for the case SIG is one
189 of the signals the implementation uses.
190 Patch by Xavier.Leroy@inria.fr.
191
192 2000-04-01 Andreas Jaeger <aj@suse.de>
193
194 * attr.c: Use shlib-compat macros.
195 * oldsemaphore.c: Likewise.
196 * pthread.c: Likewise.
197 * weaks.c: Likewise.
198
199 2000-03-26 Ulrich Drepper <drepper@redhat.com>
200
201 * semaphore.c (sem_timedwait): New function.
202 Patch by Carl Mailloux <carlm@oricom.ca>.
203 * semaphore.h: Declare sem_timedwait.
204 * Versions [libpthread] (GLIBC_2.2): Add sem_timedwait.
205
206 2000-03-26 Roland McGrath <roland@baalperazim.frob.com>
207
208 * sysdeps/pthread/Makefile: File removed.
209
210 2000-03-23 Ulrich Drepper <drepper@redhat.com>
211
212 * mutex.c (__pthread_reset_pthread_once): Reset once_masterlock.
213 * internals.h (__pthread_reset_pthread_once): Add prototype.
214 * ptfork.c (__fork): Call __pthread_reset_pthread_once.
215
216 * manager.c (pthread_handle_create): Store ID of new thread before
217 clone call.
218
219 2000-03-21 Ulrich Drepper <drepper@redhat.com>
220
221 * attr.c: Use new macros from shlib-compat.h to define versions.
222 * oldsemaphore.c: Likewise.
223 * semaphore.c: Likewise.
224 * weaks.c: Likewise.
225
226 * pthread.c: Update for new SHLIB_COMPAT definition.
227
228 * manager.c (__pthread_manager): Unmask debug signal.
229
230 * pthread.c (pthread_initialize): Test for address of __dso_handle
231 being NULL, not value. Use __on_exit, not on_exit.
232 Patch by Andreas Jaeger <aj@suse.de>.
233
234 * pthread.c: Use new macros from shlib-compat.h to define versions.
235
236 2000-03-19 Ulrich Drepper <drepper@redhat.com>
237
238 * pthread.c (pthread_initialize): Instead of on_exit use
239 __cxa_atexit if __dso_label is available to allow unloading the
240 libpthread shared library.
241
242 2000-03-16 Ulrich Drepper <drepper@redhat.com>
243
244 * condvar.c: Make tests for ownership of mutex less strict.
245
246 2000-03-14 Ulrich Drepper <drepper@redhat.com>
247
248 * condvar.c (pthread_cond_wait): Check whether mutex is owned by
249 current thread and return error if not.
250 (pthread_cond_timedwait_relative_old): Likewise.
251 (pthread_cond_timedwait_relative_new): Likewise.
252
253 * mutex.c (__pthread_once): Handle cancelled init function correctly.
254 (pthread_once_cancelhandler): New function.
255 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
256
257 2000-03-14 Andreas Jaeger <aj@suse.de>
258
259 * pthread.c (pthread_handle_sigcancel_rt): GS has been renamed to
260 REG_GS.
261 (pthread_handle_sigrestart_rt): Likewise.
262 * signals.c (pthread_sighandler_rt): Likewise.
263
264 2000-03-02 Andreas Jaeger <aj@suse.de>
265
266 * sysdeps/pthread/bits/libc-lock.h: Fix typo.
267 Reported by Sean Chen <sean.chen@turbolinux.com>.
268
269 2000-02-28 Andreas Jaeger <aj@suse.de>
270
271 * rwlock.c: Fix typo.
272
273 2000-02-27 Ulrich Drepper <drepper@redhat.com>
274
275 * rwlock.c: Define __* variants of the functions and make old names
276 aliases.
277 * Versions [GLIBC_2.2]: Export the __pthread_rwlock_* functions.
278 * sysdeps/pthread/bits/libc-lock.h: Define __libc_rwlock_* macros.
279
280 2000-02-25 Andreas Jaeger <aj@suse.de>
281
282 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
283 pwrite64, lseek64, open64, and __open64 with version 2.2.
284
285 2000-02-22 Ulrich Drepper <drepper@redhat.com>
286
287 * semaphore.h (SEM_FAILED): Use 0 not NULL.
288
289 2000-02-14 Ulrich Drepper <drepper@redhat.com>
290
291 * condvar.c (pthread_cond_timedwait_relative_old): Tight loop with
292 nanosleep does not work either. Get absolute time inside the
293 loop.
294 (pthread_cond_timedwait_relative_new): Likewise.
295 Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
296
297 2000-02-13 Andreas Jaeger <aj@suse.de>
298
299 * condvar.c (pthread_cond_timedwait_relative_new): Fix last patch.
300 (pthread_cond_timedwait_relative_old): Likewise.
301
302 2000-02-13 Ulrich Drepper <drepper@redhat.com>
303
304 * condvar.c (pthread_cond_timedwait_relative_old): Undo last patch
305 but keep the code around. A bug in the kernel prevent us from
306 using the code.
307 (pthread_cond_timedwait_relative_new): Likewise.
308 (PR libc/1597 and libc/1598).
309
310 2000-02-01 Kaz Kylheku <kaz@ashi.footprints.net>
311
312 * condvar.c (pthread_cond_timedwait_relative_old): Do tight
313 loop around nanosleep calls instead of around most of the function
314 (pthread_cond_timedwait_relative_new): Likewise.
315 body. Got rid of backwards goto and one local.
316
317 2000-01-31 Ulrich Drepper <drepper@redhat.com>
318
319 * condvar.c (pthread_cond_timedwait_relative_old): Recompute time
320 before every nanosleep call to account for time spent in the rest
321 of the function.
322 (pthread_cond_timedwait_relative_new): Likewise.
323 Patch by khendricks@ivey.uwo.ca (PR libc/1564).
324
325 2000-01-29 Ulrich Drepper <drepper@redhat.com>
326
327 * condvar.c (pthread_cond_timedwait_relative_old): Get remaining time
328 from nanosleep call so that in case we restart we only wait for the
329 remaining time.
330 (pthread_cond_timedwait_relative_new): Likewise.
331 Patch by khendricks@ivey.uwo.ca (PR libc/1561).
332
333 2000-01-18 Ulrich Drepper <drepper@cygnus.com>
334
335 * manager.c (pthread_allocate_stack): Compute guard page address
336 correctly. Patch by HJ Lu.
337
338 * sysdeps/pthread/pthread.h: Define
339 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP.
340
341 2000-01-16 Ulrich Drepper <drepper@cygnus.com>
342
343 * rwlock.c (pthread_rwlock_unlock): Correct one more problem with
344 preference handling.
345 (pthread_rwlockattr_setkind_np): Allow
346 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP.
347 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
348
349 2000-01-12 Ulrich Drepper <drepper@cygnus.com>
350
351 * internals.h (pthread_readlock_info): New structure.
352 (_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
353 p_untracked_readlock_count.
354 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
355 Add initializers for new fields.
356 * manager.c (pthread_free): Free read/write lock lists.
357 * queue.h (queue_is_empty): New function.
358 * rwlock.c: Implement requirements about when readers should get
359 locks assigned.
360 * sysdeps/pthread/pthread.h
361 (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
362 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_rwlock_t):
363 Define this name as well.
364 Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
365
366 2000-01-05 Ulrich Drepper <drepper@cygnus.com>
367
368 * pthread.c (__pthread_initial_thread, pthread_manager_thread):
369 Adjust initializers for struct _pthread_descr_struct change.
370 * internals.h (struct _pthread_descr_struct): Move new elements to
371 the end.
372
373 2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
374
375 Redesigned how cancellation unblocks a thread from internal
376 cancellation points (sem_wait, pthread_join,
377 pthread_cond_{wait,timedwait}).
378 Cancellation won't eat a signal in any of these functions
379 (*required* by POSIX and Single Unix Spec!).
380 * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
381 simultaneous condition variable signal (not required by POSIX
382 or Single Unix Spec, but nice).
383 * spinlock.c: __pthread_lock queues back any received restarts
384 that don't belong to it instead of assuming ownership of lock
385 upon any restart; fastlock can no longer be acquired by two threads
386 simultaneously.
387 * restart.h: Restarts queue even on kernels that don't have
388 queued real time signals (2.0, early 2.1), thanks to atomic counter,
389 avoiding a rare race condition in pthread_cond_timedwait.
390
391 1999-12-31 Andreas Jaeger <aj@suse.de>
392
393 * internals.h: Remove duplicate prototype declarations.
394
395 * weaks.c: Remove __THROW from prototypes since the file is not
396 compiled by a C++ compiler.
397 * internals.h: Likewise.
398
399 1999-12-30 Andreas Jaeger <aj@suse.de>
400
401 * sysdeps/pthread/pthread.h: Move internal functions to...
402 * sysdeps/pthread/bits/libc-lock.h: ...here.
403
404 1999-12-29 Andreas Jaeger <aj@suse.de>
405
406 * sysdeps/pthread/pthread.h: Fix typos, reformat comments.
407
408 1999-12-28 Ulrich Drepper <drepper@cygnus.com>
409
410 * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
411 beginning.
412
413 * manager.c (__pthread_start): Add one more cast to prevent
414 warning on 64bit machines.
415
416 1999-12-21 Ulrich Drepper <drepper@cygnus.com>
417
418 * manager.c (pthread_handle_create): Set p_pid of new thread
419 before calling the callback function to report a new thread.
420
421 1999-12-20 Andreas Jaeger <aj@suse.de>
422
423 * pthread.c (pthread_initialize): Move getrlimit call after
424 setting of errno.
425
426 1999-12-18 Ulrich Drepper <drepper@cygnus.com>
427
428 * Versions: Export pread, __pread64, pread64, pwrite, __pwrite64,
429 pwrite64, lseek64, open64, and __open64.
430 * wrapsyscall.c: Define pread, __pread64, pread64, pwrite, __pwrite64,
431 pwrite64, lseek64, open64, and __open64.
432
433 * manager.c (pthread_allocate_stack): Correct computation of
434 new_thread_bottom. Correct handling of stack size and when the
435 rlimit method to guard for stack growth is used.
436 * pthread.c (pthread_initialize): Stack limit must be STACK_SIZE
437 minus one pagesize (not two).
438
439 1999-12-03 Andreas Jaeger <aj@suse.de>
440
441 * Versions: Add __res_state with version GLIBC_2.2.
442
443 * errno.c (__res_state): New function to return thread specific
444 resolver state.
445
446 * pthread.c (pthread_initialize): Initialize p_resp.
447 (__pthread_reset_main_thread): Also set p_resp.
448
449 * manager.c (pthread_handle_create): Initialize p_resp.
450
451 * internals.h: Add thread specific resolver state.
452 Based on patches by Adam D. Bradley <artdodge@cs.bu.edu>.
453
454 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
455
456 * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
457 beginning.
458 * sysdeps/i386/i686/pt-machine.h: Likewise.
459 Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
460
461 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
462
463 * manager.c (pthread_start_thread_event): Initialize p_pid already
464 here.
465
466 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
467
468 * internals.h: Add prototype for __pthread_manager_event.
469 * manager.c (__pthread_manager_event): New function.
470 (pthread_start_thread_event): Correct computation of self.
471 Use INIT_THREAD_SELF.
472 * pthread.c (__pthread_manager_thread): Initialize p_lock.
473 (__pthread_initialize_manager): Respect event flags also for creation
474 of the manager thread.
475
476 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
477
478 * pthread.c (__pthread_initialize_manager): Initialize
479 __pthread_manager_thread.p_tid.
480
481 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
482
483 * internals.h: Declare __pthread_last_event.
484 * manager.c: Define __pthread_last_event.
485 (pthread_handle_create): Set __pthread_last_event.
486 (pthread_exited): Likewise.
487 * join.c (pthread_exit): Likewise.
488
489 * Makefile (libpthread-routines): Add events.
490 * events.c: New file.
491 * internals.h: Protect against multiple inclusion.
492 Include thread_dbP.h header.
493 (struct _pthread_descr_struct): Add new fields p_report_events and
494 p_eventbuf.
495 Declare event reporting functions.
496 * join.c (pthread_exit): Signal event if this is wanted.
497 * manager.c (__pthread_threads_events): New variable.
498 (pthread_handle_create): Take new parameters with event information.
499 Signal TD_CREATE event if wanted.
500 (__pthread_manager): Adjust pthread_handle_create call.
501 (pthread_start_thread_event): New function. Block until manager is
502 finished and then call pthread_start_thread.
503 (pthread_exited): Signal TD_REAP event if wanted.
504
505 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
506
507 * restart.h (suspend_with_cancellation): Rewrite as a macro.
508
509 * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
510
511 1999-10-25 Andreas Jaeger <aj@suse.de>
512
513 * internals.h: Remove K&R compatibility.
514 * no-tsd.c: Likewise.
515 * semaphore.h: Likewise.
516 * signals.c: Likewise.
517 * sysdeps/pthread/bits/libc-tsd.h: Likewise.
518 * sysdeps/unix/sysv/linux/bits/sigthread.h: Likewise.
519 * weaks.c: Likewise.
520
521 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
522
523 * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
524 and pthread_handle_sigcancel with functions that restore
525 %gs from the signal context. For each signal handling function,
526 two wrappers are required, one for a non-RT signal and one for
527 a RT signal.
528 * linuxthreads/signal.c: For i386, add code to restore %gs
529 from the signal context in pthread_sighandler and
530 pthread_sighandler_rt.
531
532 1999-10-17 Ulrich Drepper <drepper@cygnus.com>
533
534 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add cast.
535
536 1999-10-14 Ulrich Drepper <drepper@cygnus.com>
537
538 * pthread.c (__pthread_initial_thread): Pass argument to
539 PTHREAD_START_ARGS_INITIALIZER.
540 (__pthread_manager_thread): Likewise.
541
542 * internals.h (PTHREAD_START_ARGS_INITIALIZER): Add parameter to
543 initialize function.
544
545 * manager.c (pthread_handle_create): Remove p_startfct initialization.
546
547 * internals.h (_pthread_descr_struct): We don't need p_startfct field.
548
549 1999-10-12 Ulrich Drepper <drepper@cygnus.com>
550
551 * internals.h: Correct return types for __libc_read and __libc_write.
552
553 1999-10-09 Andreas Jaeger <aj@suse.de>
554
555 * internals.h: Add __new_sem_post to get prototype in
556 manager.c; include semaphore.h for needed types.
557
558 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
559
560 * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
561 directly instead of calling sem_post which should not be necessary
562 but is faster and might help in some case to work around problems.
563 Patch by khendricks@ivey.uwo.ca [libc/1382].
564
565 1999-10-08 Andreas Schwab <schwab@suse.de>
566
567 * sysdeps/pthread/Subdirs: New file.
568 * Implies: Removed.
569
570 1999-10-07 Ulrich Drepper <drepper@cygnus.com>
571
572 * Implies: New file.
573 * internals.h (struct _pthread_descr_struct): Add p_startfct.
574 * manager.c (pthread_handle_create): Initialize p_startfct.
575 * pthread.c: Define __linuxthread_pthread_sizeof_descr variable.
576
577 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
578
579 * manager.c (__linuxthreads_pthread_threads_max): New variable.
580 * specific.c (__linuxthreads_pthread_keys_max): New variable.
581 (__linuxthreads_pthread_key_2ndlevel_size): New variable.
582
583 * condvar.c (pthread_cond_timedwait_relative): Never return with
584 EINTR. Patch by Andreas Schwab.
585
586 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
587
588 * signals.c (sigaction): Correct last patch. Don't select
589 pthread_sighandler_rt based on the signal number but instead of
590 the SA_SIGINFO flag.
591
592 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
593
594 * specific.c: Move definitions of struct pthread_key_struct and
595 destr_function to ...
596 * internals.h: ...here.
597
598 1999-09-18 Ulrich Drepper <drepper@cygnus.com>
599
600 * pthread.c (pthread_handle_sigrestart_rt): New function. Use
601 this instead of pthread_handle_sigrestart if the signal is an RT
602 signal.
603
604 * signals.c: Handle passing through of sighandler arguments also
605 for real-time signals.
606
607 1999-09-03 Andreas Schwab <schwab@suse.de>
608
609 * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
610 fork as weak alias.
611 (__vfork): New function, alias vfork.
612 * Versions: Export __fork, vfork, and __vfork in libpthread.
613
614 1999-08-23 Andreas Schwab <schwab@suse.de>
615
616 * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
617 call to signal handler.
618
619 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
620
621 * pthread.c (__pthread_reset_main_thread): Undo last change.
622 (__pthread_kill_other_threads_np): Reset signal handlers for the
623 signals we used in the thread implementation here.
624
625 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
626
627 * pthread.c (__pthread_reset_main_thread): Reset signal handlers
628 for the signals we used in the thread implementation [PR libc/1234].
629
630 * Versions: Export __pthread_kill_other_threads_np from libpthread
631 for GLIBC_2.1.2.
632
633 * signals.c: Pass sigcontext through wrapper to the user function.
634
635 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
636
637 * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
638 __libc_internal_tsd_set.
639
640 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
641
642 * manager.c: Remove inclusion of <linux/tasks.h> since it's not
643 needed anymore.
644
645 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
646
647 * internals.h: Align _pthread_descr_struct to 32 bytes.
648 Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
649 libc/1206.
650
651 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
652
653 * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
654 swap function.
655
656 1999-07-09 Cristian Gafton <gafton@redhat.com>
657
658 * Makefile (libpthread-routines): Add oldsemaphore routine.
659 * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
660 sem_trywait, and sem_wait to GLIBC_2.1.
661 * oldsemaphore.c: New file.
662 * semaphore.c: Add default_symbol_versions for the changed functions.
663 (__new_sem_init): Rename from sem_init.
664 (__new_sem_post): Rename from sem_post.
665 (__new_sem_wait): Rename from sem_wait.
666 (__new_sem_trywait): Rename from sem_trywait.
667 (__new_sem_getvalue): Rename from sem_getvalue.
668 (__new_sem_destroy): Rename from sem_destroy.
669
670 1999-06-23 Robey Pointer <robey@netscape.com>
671
672 * internals.h: Added p_nextlock entry to separate queueing for a
673 lock from queueing for a CV (sometimes a thread queues on a lock
674 to serialize removing itself from a CV queue).
675 * pthread.c: Added p_nextlock to initializers.
676 * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
677
678 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
679
680 * manager.c (pthread_handle_create): Free mmap region after stack
681 if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
682
683 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
684
685 * man/pthread_cond_init.man: Correct example.
686 Reported by Tomas Berndtsson <tomas@nocrew.org>.
687
688 * linuxthreads.texi (Condition Variables): Likewise.
689
690 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
691
692 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
693 casx not cas, also successful casx returns the old value in rd
694 and not the new value.
695
696 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
697
698 * manager.c: If pthread_create() is given a NULL attribute
699 and the thread manager runs with a realtime policy, set the
700 scheduling policy of the newly created thread back to SCHED_OTHER.
701 * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
702 initialize the schedpolicy field of new_thread->p_start_args
703 to that of the calling thread.
704
705 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
706
707 * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
708 instruction does not allow memory element to use offset.
709
710 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
711
712 * manager.c (pthread_allocate_stack): Optimize initialization of new
713 thread descriptor.
714
715 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
716 Don't use initializer since it is all zeroes.
717 (__libc_once_define): Likewise.
718
719 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
720
721 * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
722 doesn't exist anymore.
723 * sysdeps/i386/Implies: Likewise.
724 * sysdeps/m68k/Implies: Likewise.
725 * sysdeps/mips/Implies: Likewise.
726 * sysdeps/powerpc/Implies: Likewise.
727 * sysdeps/sparc/sparc32/Implies: Likewise.
728 * sysdeps/sparc/sparc64/Implies: Likewise.
729
730 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
731
732 * sysdeps/alpha/bits/semaphore.h: Removed.
733 * sysdeps/powerpc/bits/semaphore.h: Removed.
734 * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
735 * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
736 * Makefile (headers): Remove bits/semaphore.h.
737
738 * semaphore.h: Define _pthread_descr if necessary.
739 Don't include limits.h. Define SEM_VALUE_MAX directly.
740 Define SEM_FAILED.
741 (sem_t): Protect element names with leading __.
742 Add declarations for sem_close, sem_open, and sem_unlink.
743 * semaphore.c: Adjust all functions for new element names.
744 Define sem_close, sem_open, and sem_unlink.
745 * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
746 GLIBC_2.1.1.
747 * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
748 necessary.
749
750 1999-03-16 H.J. Lu <hjl@gnu.org>
751
752 * specific.c (pthread_key_delete): Check th->p_terminated to see
753 if the thread is running.
754
755 * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
756 Added to GLIBC_2.0 for libc.so.
757
758 1999-02-12 H.J. Lu <hjl@gnu.org>
759
760 * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
761 __libc_allocate_rtsig): Added to GLIBC_2.1.
762
763 * internals.h (DEFAULT_SIG_RESTART): Removed.
764 (DEFAULT_SIG_CANCEL): Removed.
765
766 * pthread.c (init_rtsigs, __libc_current_sigrtmin,
767 __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
768 (__pthread_sig_restart, __pthread_sig_cancel,
769 __pthread_sig_debug): Initialized.
770 (pthread_initialize): Call init_rtsigs () to initialize
771 real-time signals.
772
773 1999-02-03 H.J. Lu <hjl@gnu.org>
774
775 * manager.c (__pthread_manager): Do block __pthread_sig_debug.
776 Don't restart the thread which sent REQ_DEBUG.
777 (pthread_start_thread): Check if __pthread_sig_debug > 0
778 before debugging.
779
780 * pthread.c (__pthread_initialize_manager): Suspend ourself
781 after sending __pthread_sig_debug to gdb instead of
782 __pthread_sig_cancel.
783
784 1999-01-24 H.J. Lu <hjl@gnu.org>
785
786 * manager.c (__pthread_manager): Delete __pthread_sig_debug
787 from mask if __pthread_sig_debug > 0.
788 (pthread_handle_create): Increment __pthread_handles_num.
789
790 * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
791 * pthread.c (__pthread_initialize_manager): Likewise.
792
793 * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
794 instead of __libc_allocate_rtsig (2).
795 (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
796 instead of __pthread_sig_cancel.
797 (pthread_handle_sigdebug): Fix comments.
798
799 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
800
801 * manager.c (pthread_allocate_stack): Set
802 __pthread_nonstandard_stacks if user-specified stack is used.
803
804 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
805
806 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
807 _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
808
809 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
810
811 * pthread.c: Use a third signal __pthread_sig_debug distinct
812 from __pthread_sig_cancel to notify gdb when a thread is
813 created
814 * manager.c: Likewise.
815 * internals.h: Likewise.
816 * signals.c: The implementation of sigwait(s) assumed that
817 all signals in s have signal handlers already attached.
818 This is not required by the standard, so make it work
819 also if some of the signals have no handlers.
820
821 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
822
823 * linuxthreads.texi: Remove pointers from first @node. Move old
824 @node spec inside comment.
825
826 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
827
828 * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
829 _IO_lock_unlock.
830
831 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
832
833 * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
834 lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
835
836 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
837
838 * manager.c: Threads now send __pthread_sig_cancel on termination.
839 Change clone call and signal masks.
840 * thread.c (pthread_handle_sigrestart): Remove special code for
841 manager.
842 (pthread_handle_sigcancel): In manager thread call
843 __pthread_manager_sighandler.
844 * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
845 * sysdeps/i386/i686/pt-machine.h: Likewise.
846 Patches by Xavier Leroy.
847
848 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
849
850 * spinlock.c (__pthread_unlock): Don't crash if called for an
851 untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
852
853 * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
854 overall runtime.
855
856 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
857
858 * Examples/ex3.c: Wait until all threads are started before
859 searching for the number to avoid race condition on very fast
860 systems.
861
862 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
863
864 * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
865 declaration since it's not needed.
866
867 * sysdeps/pthread/pthread.h: Move internal functions to ...
868 * internals.h: ...here.
869
870 1998-12-02 H.J. Lu <hjl@gnu.org>
871
872 * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
873 SIGRTMIN is defined.
874 (__pthread_sig_cancel): Likewise.
875
876 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
877
878 * wrapsyscall.c: Include <sys/mman.h> for msync,
879 <stdlib.h> for system and <termios.h> for tcdrain prototype.
880 Correct msync declaration.
881
882 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
883
884 * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
885 __libc_tsd_set): New macros for new interface.
886 * no-tsd.c: New file, provide uninitialized defns of
887 __libc_internal_tsd_get and __libc_internal_tsd_set.
888 * Makefile (routines): Add no-tsd.
889
890 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
891
892 * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
893 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
894 __libc_internal_tsd_set): Move decls to ...
895 * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
896 declarations.
897
898 * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
899 __libc_internal_tsd_set): Make these pointers to functions, not
900 functions; remove #pragma weak decls for them.
901 * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
902 Define static functions and initialized pointers to them.
903
904 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
905
906 * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
907 (CFLAGS-specific.c): Likewise.
908 (CFLAGS-pthread.c): Likewise.
909 (CFLAGS-ptfork.c): Likewise.
910 (CFLAGS-cancel.c): Likewise.
911 * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
912 as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
913
914 * mutex.c (pthread_mutex_init): Define as strong symbol.
915 (pthread_mutex_destroy): Likewise.
916 (pthread_mutex_trylock): Likewise.
917 (pthread_mutex_lock): Likewise.
918 (pthread_mutex_unlock): Likewise.
919 (pthread_mutexattr_init): Likewise.
920 (pthread_mutexattr_destroy): Likewise.
921 (pthread_once): Likewise.
922 * ptfork.c (pthread_atfork): Likewise.
923 * specific.c (pthread_key_create): Likewise.
924 (pthread_setspecific): Likewise.
925 (pthread_getspecific): Likewise.
926
927 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
928
929 * linuxthreads.texi: Fix punctuation after xref.
930
931 1998-11-10 H.J. Lu <hjl@gnu.org>
932
933 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
934 if it is defined in <linux/limits.h>.
935
936 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
937
938 * spinlock.h (__pthread_trylock): Define inline.
939 (__pthread_lock): Add extra parameter to declaration. Declare
940 using internal_function.
941 (__pthread_unlock): Declare using internal_function.
942 * spinlock.c (__pthread_lock): Add new parameter. Use it instead
943 of local variable self. Avoid recomputing self. Define using
944 internal_function.
945 (__pthread_trylock): Remove.
946 (__pthread_unlock): Define using internal_function.
947 * cancel.c: Adjust for __pthread_lock interface change. Use already
948 computed self value is possible.
949 * condvar.c: Likewise.
950 * join.c: Likewise.
951 * manager.c: Likewise.
952 * mutex.c: Likewise.
953 * pthread.c: Likewise.
954 * rwlock.c: Likewise.
955 * semaphore.c: Likewise.
956 * signals.c: Likewise.
957
958 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
959
960 * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
961 __ to field names of the struct.
962 * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
963 Likewise.
964 (pthread_attr_t): Likewise.
965 (pthread_cond_t): Likewise.
966 (pthread_condattr_t): Likewise.
967 (pthread_mutex_t): Likewise.
968 (pthread_mutexattr_t): Likewise.
969 (pthread_rwlock_t): Likewise.
970 (pthread_rwlockattr_t): Likewise.
971 * attr.c: Adjust for pthread.h and pthreadtypes.h change.
972 * cancel.c: Likewise.
973 * condvar.c: Likewise.
974 * manager.c: Likewise.
975 * mutex.c: Likewise.
976 * pthread.c: Likewise.
977 * ptlongjmp.c: Likewise.
978 * rwlock.c: Likewise.
979 * spinlock.c: Likewise.
980
981 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
982
983 * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
984 also with PT_EI.
985
986 * sysdeps/i386/i686/pt-machine.h: Remove unused inline
987 definitions.
988
989 * Makefile (libpthread-routines): Add pt-machine.
990 * pt-machine.c: New file.
991 * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
992 yet defined. Use PT_EI in extern inline definitions.
993 * sysdeps/arm/pt-machine.h: Likewise.
994 * sysdeps/i386/pt-machine.h: Likewise.
995 * sysdeps/i386/i686/pt-machine.h: Likewise.
996 * sysdeps/m68k/pt-machine.h: Likewise.
997 * sysdeps/mips/pt-machine.h: Likewise.
998 * sysdeps/powerpc/pt-machine.h: Likewise.
999 * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
1000 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1001
1002 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1003
1004 * semaphore.h: Include <sys/types.h> so that _pthread_descr
1005 is declared.
1006
1007 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
1008
1009 * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
1010 argument.
1011 * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
1012
1013 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1014
1015 * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
1016 multiple inclusion guard.
1017
1018 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1019
1020 * signals.c (sigaction): Check that sig is less than NSIG to avoid
1021 array index overflow.
1022
1023 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
1024
1025 * sysdeps/pthread/semaphore.h: New file.
1026
1027 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
1028
1029 * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
1030 _LIBC_TSD_KEY_DL_ERROR.
1031
1032 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
1033
1034 * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
1035 * sysdeps/i386/pt-machine.h: Likewise.
1036 Suggested by Roland McGrath.
1037
1038 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
1039
1040 * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
1041 access thread data with non-constant offsets.
1042 * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
1043 necessary.
1044
1045 * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
1046 THREAD_SETMEM_NC definitions.
1047
1048 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
1049 THREAD_SETMEM_NC.
1050 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1051
1052 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
1053
1054 * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
1055 not already defined.
1056 (struct _pthread_descr_struct): Add p_self and p_nr field.
1057 * manager.c (__pthread_handles): Define second element to point
1058 to manager thread.
1059 (__pthread_handles_num): Initialize to 2.
1060 (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
1061 (pthread_start_thread): Likewise.
1062 (pthread_handle_create): Start search for free slot at entry 2.
1063 Initialize new fields p_self and p_nr.
1064 Call __clone with CLONE_PTRACE if available.
1065 (pthread_free): Call FREE_THREAD_SELF if available.
1066 * pthread.c (__pthread_initial_thread): Initialize new fields.
1067 (__pthread_manager_thread): Likewise.
1068 (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
1069
1070 * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
1071 elements of the thread descriptor.
1072 * condvar.c: Likewise.
1073 * errno.c: Likewise.
1074 * join.c: Likewise.
1075 * manager.c: Likewise.
1076 * pthread.c: Likewise.
1077 * ptlongjmp.c: Likewise.
1078 * semaphore.c: Likewise.
1079 * signals.c: Likewise.
1080 * specific.c: Likewise.
1081 * spinlock.c: Likewise.
1082
1083 * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
1084
1085 * sysdeps/i386/useldt.h: New file.
1086 * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
1087
1088 * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
1089 THREAD_SETMEM using __thread_self.
1090 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1091
1092 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
1093
1094 * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
1095 turned out that we didn't need to queue after all.
1096
1097 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
1098
1099 * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
1100 and wastes space; correct types.
1101
1102 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
1103
1104 * signals.c (sigaction): Handle NULL argument.
1105
1106 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
1107
1108 * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
1109 of sigset_t.
1110
1111 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1112
1113 * Makefile (linuxthreads-version): Extract correct number from
1114 Banner.
1115
1116 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
1117
1118 * Banner: Bump version number to 0.8
1119 * FAQ.html: Many updates, in particular w.r.t. debugging.
1120 * manager.c: Support for non-default stacksize for
1121 LinuxThreads-allocated stacks;
1122 don't use guard pages for stacks with default size, rely on
1123 rlimit(RLIMIT_STACK) instead (it's cheaper).
1124 * attr.c: Likewise.
1125 * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
1126 everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
1127 * condvar.c: Likewise.
1128 * internals.h: Likewise.
1129 * restart.h: Likewise.
1130 * signals.c: Likewise.
1131 * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
1132
1133 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1134
1135 * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
1136 __pthread_mutexattr_[sg]ettype. Add more weak aliases.
1137 * Versions: Put __pthread_mutexattr_settype under version
1138 GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
1139 __pthread_mutexattr_gettype.
1140
1141 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1142
1143 * sysdeps/pthread/bits/libc-lock.h: Make
1144 __pthread_mutexattr_settype weak. Don't make
1145 __pthread_mutexattr_setkind_np weak.
1146
1147 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
1148
1149 * manager.c (pthread_handle_create): Check whether sched_setscheduler
1150 call can succeed here.
1151
1152 * mutex.c: Define __pthread_mutexattr_settype and make
1153 __pthread_mutexattr_setkind_np an alias.
1154 Likewise for __pthread_mutexattr_gettype.
1155
1156 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
1157
1158 * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
1159 is root.
1160
1161 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
1162
1163 * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
1164
1165 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1166
1167 * Examples/ex6.c: Include <unistd.h> for usleep.
1168
1169 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1170
1171 * Examples/ex4.c (main): Use exit, not pthread_exit.
1172
1173 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
1174
1175 * Versions: Add __pthread_mutexattr_gettype and
1176 __pthread_mutexattr_settype.
1177 * lockfile.c: Use __pthread_mutexattr_settype instead of
1178 __pthread_mutexattr_setkind_np.
1179 * mutex.c: Define __pthread_mutexattr_gettype and
1180 __pthread_mutexattr_settype.
1181 * weak.c: Likewise.
1182 * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
1183 __pthread_mutexattr_settype.
1184 * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
1185 Use __pthread_mutexattr_settype.
1186
1187 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
1188
1189 * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
1190 * mutex.c: Define weak alias pthread_mutexattr_gettype and
1191 pthread_mutexattr_settype.
1192 * sysdeps/pthread/pthread.h: Declare these functions.
1193 Move pthread_sigmask and pthread_kill declaration in separate header.
1194 * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
1195
1196 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
1197
1198 * Makefile: Add rules to compile and run tests.
1199 * Examples/ex1.c: Little changes to fix warnings.
1200 * Examples/ex2.c: Likewise.
1201 * Examples/ex3.c: Likewise.
1202 * Examples/ex4.c: Likewise.
1203 * Examples/ex5.c: Likewise.
1204 * Examples/ex6.c: New file.
1205
1206 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
1207
1208 * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
1209
1210 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1211
1212 * attr.c: Include <string.h>.
1213
1214 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
1215
1216 * attr.c: Include errno.h. Use memcpy to copy sched_param.
1217 * internals.h: Include limits.h.
1218 * manager.c: Use memcpy to copy sched_param.
1219 * ptfork.c: Include errno.h.
1220 * pthread.c: Likewise.
1221 * semaphore.c: Likewise.
1222 * specific.c: Likewise.
1223 * spinlock.h: Likewise.
1224 * sysdeps/pthread/pthread.h: Include only allowed headers. Move
1225 type definition to ...
1226 * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
1227
1228 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
1229
1230 * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
1231
1232 * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
1233 as macros as demanded in POSIX.1, Annex C.
1234
1235 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
1236
1237 * internals.h (struct pthread_request): For free use pthread_t
1238 instead of pthread_descr.
1239 * join.c (pthread_join): Pass thread_id, not th to manager.
1240 (pthread_detach): Likewise.
1241 * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
1242 (pthread_exited): Remove detached queue code.
1243 (pthread_handle_free): Expect thread ID parameter and use it to
1244 validate the thread decsriptor. Don't use detached queue.
1245 Patches by Xavier Leroy.
1246
1247 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1248
1249 * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
1250 _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
1251 __pthread_atfork, __pthread_key_create, __pthread_once.
1252 * internals.h: Doc fix.
1253 * pthread.c (__pthread_initialize): Define again.
1254
1255 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
1256
1257 * manager.c (pthread_exited): If thread is not detached put it on
1258 special list.
1259 (pthread_handle_free): If thread is not on list with living threads
1260 search on list with detached threads.
1261
1262 * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
1263 for new definition of pthread_rwlock_t.
1264
1265 * spinlock.c: Correct test whether to compile
1266 __pthread_compare_and_swap or not.
1267
1268 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
1269
1270 * attr.c: Finish user stack support. Change locking code to be safe
1271 in situations with different priorities.
1272 * cancel.c: Likewise.
1273 * condvar.c: Likewise.
1274 * internals.h: Likewise.
1275 * join.c: Likewise.
1276 * manager.c: Likewise.
1277 * mutex.c: Likewise.
1278 * pthread.c: Likewise.
1279 * ptlongjmp.c: Likewise.
1280 * queue.h: Likewise.
1281 * rwlock.c: Likewise.
1282 * semaphore.c: Likewise.
1283 * semaphore.h: Likewise.
1284 * signals.c: Likewise.
1285 * spinlock.c: Likewise.
1286 * spinlock.h: Likewise.
1287 * sysdeps/pthread/pthread.h: Likewise.
1288 Patches by Xavier Leroy.
1289
1290 * sysdeps/i386/i686/pt-machine.h: New file.
1291
1292 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
1293
1294 * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
1295 [sg]et_stackaddr prototypes always available.
1296
1297 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1298 _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
1299
1300 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
1301
1302 * manager.c (pthread_free): Undo patch from 980430.
1303 Reported by David Wragg <dpw@doc.ic.ac.uk>.
1304
1305 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
1306
1307 * manager.c: Define __pthread_manager_adjust_prio and use it to
1308 increase priority when needed.
1309 * internals.h: Add prototype for __pthread_manager_adjust_prio.
1310 * mutex.c: Optimize mutexes to wake up only one thread.
1311 * pthread.c: Move PID of manager for global variable in structure
1312 element.
1313 Patches by Xavier Leroy.
1314
1315 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
1316
1317 * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
1318
1319 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
1320
1321 * attr.c: Correct typo.
1322
1323 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
1324
1325 * manager.c (pthread_free): Unmap guard before the stack.
1326 Patch by Matthias Urlichs.
1327
1328 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
1329
1330 * manager.c (pthread_free): Detect already free child.
1331 Patch by Xavier Leroy, reported by Matthias Urlichs.
1332
1333 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1334
1335 * Makefile (linuxthreads-version): Renamed back from
1336 libpthread-version.
1337
1338 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
1339
1340 * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
1341 __libc_longjmp.
1342
1343 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
1344
1345 * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
1346 * internals.h: Add definitions for new spinlock implementation.
1347 * ptlongjmp.c: New file.
1348 * spinlock.c: New file.
1349 * spinlock.h (acquire): Don't reschedule using __sched_yield, use
1350 new function __pthread_acquire to prevent deadlocks with thread
1351 with different priorities.
1352 Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
1353
1354 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1355
1356 * manager.c (__pthread_manager): Reduce first argument to select
1357 to include just the needed file descriptor.
1358
1359 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
1360
1361 * manager.c: Fix last patch which caused core dumps.
1362
1363 * pthread.c: Correctly handle missing SIGRTMIN.
1364
1365 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1366
1367 * libpthread.map: Add __libc_internal_tsd_get and
1368 __libc_internal_tsd_set. Add missing cancelable functions. Export
1369 libc internal versions of the cancelable functions.
1370
1371 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
1372
1373 * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
1374
1375 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
1376
1377 * attr.c: Implement pthread_attr_[gs]etguardsize,
1378 pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
1379 Change pthread_attr_init to have two interfaces.
1380 * internals.h (struct _pthread_descr_struct): Add new fields for
1381 above functions.
1382 * libpthread.map: Add names in GLIBC_2.1 section.
1383 * manager.c (pthread_handle_create): Implement guardsize and
1384 user stack.
1385 (pthread_free): Likewise.
1386 * pthread.c (pthread_create): Add new interface for changed
1387 pthread_attr_t.
1388 * sysdeps/pthread/pthread.h: Add prototypes for new functions.
1389 * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
1390 PTHREAD_STACK_MIN.
1391
1392 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
1393
1394 * manager.c: Enable resetting of the thread scheduling policy
1395 to SCHED_OTHER when the parent thread has a different one.
1396
1397 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
1398
1399 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
1400 _POSIX_ASYNCHRONOUS_IO.
1401
1402 * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
1403 mutexes.
1404 * mutex.c: Implement new mutex types.
1405
1406 * internals.h: Include <signal.h>.
1407
1408 * libpthread.map: Add __erno_location and __h_errno_location.
1409
1410 * errno.c: Return pointer to variable actually in use. This might
1411 not be the one in the thread structure.
1412 * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
1413 and p_h_errnop.
1414 * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
1415 of manager thread structure.
1416 (pthread_handle_create): Set p_errnop and p_h_errnop members for new
1417 thread.
1418 * pthread.c: Adapt initializer for thread structures.
1419 (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
1420 (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
1421 current thread to global variables.
1422
1423 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
1424
1425 * rwlock.c: New file.
1426 * Makefile (libpthread-routines): Add rwlock.
1427 * sysdeps/pthread/pthread.h: Define data structures and declare
1428 functions.
1429 * libpthread.map: Add new functions.
1430
1431 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
1432
1433 * sysdeps/arm/pt-machine.h: New file; add ARM support.
1434 * sysdeps/arm/Implies: likewise.
1435 * README: Document it.
1436
1437 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1438
1439 * signals.c: Remove unneeded initializer for sigwaited, saving a
1440 warning.
1441
1442 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1443
1444 * semaphore.c (sem_init): Set sem_spinlock only if available.
1445
1446 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
1447
1448 * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
1449 * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
1450
1451 * Makefile: Update from LinuxThreads 0.7.
1452 * internals.h. Likewise.
1453 * manager.c: Likewise.
1454 * mutex.c: Likewise.
1455 * pthread.c: Likewise.
1456 * signals.c: Likewise.
1457 * specific.c: Likewise.
1458 * Examples/ex3.c: Likewise.
1459
1460 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
1461
1462 * pthread.c (__pthread_reset_main_thread): Close pipe only if still
1463 open.
1464
1465 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
1466
1467 * wrapsyscall.c: Add socket functions which are also cancelation
1468 points.
1469
1470 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
1471
1472 * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
1473 New functions for fast thread specific data within libc.
1474
1475 * internals.h: Add new array p_libc_specific to struct
1476 _pthread_descr_struct.
1477
1478 * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
1479
1480 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
1481
1482 * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
1483 Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1484
1485 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
1486
1487 * internals.h (struct _pthread_descr_struct): Add definitions for
1488 two-level specific key handling.
1489 * manager.c (pthread_handle_create): Initialize specific memory array.
1490 * specific.c: Implement two-level key handling.
1491 * weaks.c: Don't provide dummy key handling.
1492 * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
1493 Add definition of __libc_key_t.
1494 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
1495 as 1024.
1496 Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
1497 PTHREAD_DESTRUCTOR_ITERATIONS.
1498
1499 * manager.c (pthread_handle_create): Compare mmap result with
1500 MAP_FAILED.
1501
1502 * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
1503 * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
1504
1505 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
1506
1507 sysdeps/sparc -> sysdeps/sparc/sparc32
1508 sysdeps/sparc64 -> sysdeps/sparc/sparc64
1509
1510 * internals.h: Change definition of THREAD_SELF to be an expression,
1511 not a statement that did a return.
1512 * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
1513 * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
1514 Follow Solaris and use a "system reserved" register (%g6) to hold
1515 the thread descriptor.
1516 * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
1517
1518 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
1519
1520 * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
1521 * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
1522 * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
1523
1524 * semaphore.c: Include spinlock.h only when needed.
1525
1526 * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
1527 keys for entries not in use.
1528
1529 * weaks.c: Implement key handling functions for real.
1530
1531 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
1532
1533 Initial sparc64-linux support:
1534 * linuxthreads/sysdeps/sparc64/Implies: New file.
1535 * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
1536
1537 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
1538
1539 * semaphore.c: Include spinlock.h at correct place.
1540 Patch by HJ Lu.
1541
1542 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
1543
1544 The Great Bit File Move:
1545 * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
1546 * sysdeps/powerpc/semaphorebits.h: Likewise.
1547 * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
1548 * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
1549 * sysdeps/pthread/libc-lock.h: -> bits/
1550 * sysdeps/pthread/stdio-lock.h: Likewise.
1551 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
1552 * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
1553 * semaphore.h: Likewise.
1554 * sysdeps/pthread/pthread.h: Likewise.
1555
1556 * lockfile.c: <foo.h> -> <bits/foo.h>.
1557 * semaphore.h: Likewise.
1558
1559 * Makefile: (headers): foo.h -> bits/foo.h.
1560 * sysdeps/pthread/Makefile: Likewise.
1561
1562 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1563
1564 * semaphore.c (sem_init): Set sem_spinlock only if available.
1565
1566 * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
1567 asm constraints.
1568
1569 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
1570
1571 Update from LinuxThreads 0.6.
1572
1573 * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
1574 and __sched_get_priority_min instead of names without `__'.
1575
1576 * manager.c: Rewrite large parts to implement opaque pthread_t.
1577
1578 * cancel.c: Adapt for opaque pthread_t type.
1579 * condvar.c: Likewise.
1580 * errno.c: Likewise.
1581 * join.c: Likewise.
1582 * mutex.c: Likewise.
1583 * pthread.c: Likewise.
1584 * signals.c: Likewise.
1585 * specific.c: Likewise.
1586 * restart.h: Likewise.
1587 * queue.h: Likewise.
1588 * Examples/ex3.c: Likewise.
1589 * Examples/ex4.c: Likewise.
1590 * sysdeps/pthread/pthread.h: Likewise.
1591
1592 * pthread.c: Accumulate time for all threads in thread manager.
1593
1594 * semaphore.c: Implement fallback implementation for architectures
1595 sometimes missing compare-exchange operations.
1596
1597 * cancel.c (pthread_cancel): Validate handle argument.
1598 * join.c (pthread_join): Likewise.
1599 (pthread_detach): Likewise.
1600 * signals.c (pthread_kill): Likewise.
1601
1602 * spinlock.h (acquire): Use __sched_yield not sched_yield.
1603
1604 * queue.h (enqueue): Enqueue thread according to priority.
1605
1606 * internals.c (struct pthread_start_args): New struct for passing
1607 args to cloning function.
1608 (struct _pthread): Rename to _pthread_descr_struct and adapt for
1609 opaque pthread_t.
1610
1611 * Examples/Makefile (clean): Pass -f option to rm.
1612
1613 * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
1614 and define TEST_FOR_COMPARE_AND_SWAP.
1615 * sysdeps/i386/i486/pt-machine.h: Removed.
1616
1617 * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
1618 to 1024.
1619
1620 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
1621
1622 * restart.h (suspend): Clear p_signal before suspending.
1623 (suspend_with_cancellation): Likewise.
1624 Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
1625
1626 * weaks.c: Make __pthread_key_create return 1.
1627 * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
1628 __libc_getspecific, __libc_setspecific, and __libc_key_t.
1629 * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
1630 using libio.
1631
1632 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
1633
1634 * sysdeps/sparc/pt-machine (RELEASE): Fix.
1635
1636 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
1637
1638 * sysdeps/powerpc/Implies: Added.
1639 * sysdeps/powerpc/pt-machine.h: Added.
1640 * sysdeps/powerpc/semaphorebits.h: Added.
1641
1642 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
1643
1644 * linuxtheads/pthread.c (__pthread_initial_thread): Correct
1645 initializer.
1646 (__pthread_manager_thread): Likewise.
1647 Reported by Andreas Jaeger.
1648
1649 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
1650
1651 Since sigset_t no longer fits in a register, we can't pass in the
1652 thread's initial mask so easily. Take this opportunity to simplify
1653 the clone implementation by only accepting a single void* argument.
1654
1655 * linuxthreads/manager.c (__pthread_manager): Put thread vitals
1656 in the thread struct instead of as arguments through clone.
1657 (pthread_start_thread): Look for them there.
1658 * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
1659 p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
1660 * linuxthreads/pthread.c (pthread_initialize_manager): Revise
1661 clone invocation.
This page took 0.100855 seconds and 5 git commands to generate.