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