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