ChangeLog 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257
  1. 2000-02-22 Ulrich Drepper <drepper@redhat.com>
  2. * semaphore.h (SEM_FAILED): Use 0 not NULL.
  3. 2000-02-14 Ulrich Drepper <drepper@redhat.com>
  4. * condvar.c (pthread_cond_timedwait_relative_old): Tight loop with
  5. nanosleep does not work either. Get absolute time inside the
  6. loop.
  7. (pthread_cond_timedwait_relative_new): Likewise.
  8. Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
  9. 2000-02-13 Ulrich Drepper <drepper@redhat.com>
  10. * condvar.c (pthread_cond_timedwait_relative_old): Undo last patch
  11. but keep the code around. A bug in the kernel prevent us from
  12. using the code.
  13. (pthread_cond_timedwait_relative_new): Likewise.
  14. (PR libc/1597 and libc/1598).
  15. 2000-02-01 Kaz Kylheku <kaz@ashi.footprints.net>
  16. * condvar.c (pthread_cond_timedwait_relative_old): Do tight
  17. loop around nanosleep calls instead of around most of the function
  18. (pthread_cond_timedwait_relative_new): Likewise.
  19. body. Got rid of backwards goto and one local.
  20. 2000-01-31 Ulrich Drepper <drepper@redhat.com>
  21. * condvar.c (pthread_cond_timedwait_relative_old): Recompute time
  22. before every nanosleep call to account for time spent in the rest
  23. of the function.
  24. (pthread_cond_timedwait_relative_new): Likewise.
  25. Patch by khendricks@ivey.uwo.ca (PR libc/1564).
  26. 2000-01-29 Ulrich Drepper <drepper@redhat.com>
  27. * condvar.c (pthread_cond_timedwait_relative_old): Get remaining time
  28. from nanosleep call so that in case we restart we only wait for the
  29. remaining time.
  30. (pthread_cond_timedwait_relative_new): Likewise.
  31. Patch by khendricks@ivey.uwo.ca (PR libc/1561).
  32. 2000-01-18 Ulrich Drepper <drepper@cygnus.com>
  33. * manager.c (pthread_allocate_stack): Compute guard page address
  34. correctly. Patch by HJ Lu.
  35. 2000-01-12 Ulrich Drepper <drepper@cygnus.com>
  36. * internals.h (pthread_readlock_info): New structure.
  37. (_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
  38. p_untracked_readlock_count.
  39. * pthread.c (__pthread_initial_thread, pthread_manager_thread):
  40. Add initializers for new fields.
  41. * manager.c (pthread_free): Free read/write lock lists.
  42. * queue.h (queue_is_empty): New function.
  43. * rwlock.c: Implement requirements about when readers should get
  44. locks assigned.
  45. * sysdeps/pthread/pthread.h
  46. (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
  47. * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_rwlock_t):
  48. Define this name as well.
  49. Patches by Kaz Kylheku <kaz@ashi.footprints.net>.
  50. 2000-01-06 Andreas Jaeger <aj@suse.de>
  51. * pthread.c: Remove extra initializer.
  52. 2000-01-05 Ulrich Drepper <drepper@cygnus.com>
  53. * pthread.c (__pthread_initial_thread, pthread_manager_thread):
  54. Adjust initializers for struct _pthread_descr_struct change.
  55. * internals.h (struct _pthread_descr_struct): Move new elements to
  56. the end.
  57. 2000-01-03 Kaz Kylheku <kaz@ashi.footprints.net>
  58. Redesigned how cancellation unblocks a thread from internal
  59. cancellation points (sem_wait, pthread_join,
  60. pthread_cond_{wait,timedwait}).
  61. Cancellation won't eat a signal in any of these functions
  62. (*required* by POSIX and Single Unix Spec!).
  63. * condvar.c: Spontaneous wakeup on pthread_cond_timedwait won't eat a
  64. simultaneous condition variable signal (not required by POSIX
  65. or Single Unix Spec, but nice).
  66. * spinlock.c: __pthread_lock queues back any received restarts
  67. that don't belong to it instead of assuming ownership of lock
  68. upon any restart; fastlock can no longer be acquired by two threads
  69. simultaneously.
  70. * restart.h: Restarts queue even on kernels that don't have
  71. queued real time signals (2.0, early 2.1), thanks to atomic counter,
  72. avoiding a rare race condition in pthread_cond_timedwait.
  73. 1999-12-28 Ulrich Drepper <drepper@cygnus.com>
  74. * sysdeps/alpha/pt-machine.h: Move stack_pointer definition to the
  75. beginning.
  76. * manager.c (__pthread_start): Add one more cast to assignment of
  77. arg to prevent warning on 64bit machines.
  78. 1999-12-21 Ulrich Drepper <drepper@cygnus.com>
  79. * manager.c (pthread_handle_create): Set p_pid of new thread
  80. before calling the callback function to report a new thread.
  81. 1999-12-20 Andreas Jaeger <aj@suse.de>
  82. * pthread.c (pthread_initialize): Move getrlimit call after
  83. setting of errno.
  84. 1999-12-01 Ulrich Drepper <drepper@cygnus.com>
  85. * sysdeps/i386/pt-machine.h: Move stack_pointer definition to the
  86. beginning.
  87. * sysdeps/i386/i686/pt-machine.h: Likewise.
  88. Patches by Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>.
  89. 1999-11-23 Ulrich Drepper <drepper@cygnus.com>
  90. * manager.c (pthread_start_thread_event): Initialize p_pid already
  91. here.
  92. 1999-11-22 Ulrich Drepper <drepper@cygnus.com>
  93. * internals.h: Add prototype for __pthread_manager_event.
  94. * manager.c (__pthread_manager_event): New function.
  95. (pthread_start_thread_event): Correct computation of self.
  96. Use INIT_THREAD_SELF.
  97. * pthread.c (__pthread_manager_thread): Initialize p_lock.
  98. (__pthread_initialize_manager): Respect event flags also for creation
  99. of the manager thread.
  100. 1999-11-08 Ulrich Drepper <drepper@cygnus.com>
  101. * pthread.c (__pthread_initialize_manager): Initialize
  102. __pthread_manager_thread.p_tid.
  103. 1999-11-02 Ulrich Drepper <drepper@cygnus.com>
  104. * internals.h: Declare __pthread_last_event.
  105. * manager.c: Define __pthread_last_event.
  106. (pthread_handle_create): Set __pthread_last_event.
  107. (pthread_exited): Likewise.
  108. * join.c (pthread_exit): Likewise.
  109. * Makefile (libpthread-routines): Add events.
  110. * events.c: New file.
  111. * internals.h: Protect against multiple inclusion.
  112. Include thread_dbP.h header.
  113. (struct _pthread_descr_struct): Add new fields p_report_events and
  114. p_eventbuf.
  115. Declare event reporting functions.
  116. * join.c (pthread_exit): Signal event if this is wanted.
  117. * manager.c (__pthread_threads_events): New variable.
  118. (pthread_handle_create): Take new parameters with event information.
  119. Signal TD_CREATE event if wanted.
  120. (__pthread_manager): Adjust pthread_handle_create call.
  121. (pthread_start_thread_event): New function. Block until manager is
  122. finished and then call pthread_start_thread.
  123. (pthread_exited): Signal TD_REAP event if wanted.
  124. 1999-10-26 Ulrich Drepper <drepper@cygnus.com>
  125. * restart.h (suspend_with_cancellation): Rewrite as a macro.
  126. * condvar.c (pthread_cond_timedwait_relative): Don't mark as inline.
  127. 1999-10-21 Xavier Leroy <Xavier.Leroy@inria.fr>
  128. * linuxthreads/pthread.c: For i386, wrap pthread_handle_sigrestart
  129. and pthread_handle_sigcancel with functions that restore
  130. %gs from the signal context. For each signal handling function,
  131. two wrappers are required, one for a non-RT signal and one for
  132. a RT signal.
  133. * linuxthreads/signal.c: For i386, add code to restore %gs
  134. from the signal context in pthread_sighandler and
  135. pthread_sighandler_rt.
  136. 1999-10-09 Andreas Jaeger <aj@suse.de>
  137. * internals.h: Add __new_sem_post to get prototype in
  138. manager.c; include semaphore.h for needed types.
  139. 1999-10-08 Ulrich Drepper <drepper@cygnus.com>
  140. * manager.c (__pthread_manager) [REQ_POST]: Use __new_sem_post
  141. directly instead of calling sem_post which should not be necessary
  142. but is faster and might help in some case to work around problems.
  143. 1999-09-25 Ulrich Drepper <drepper@cygnus.com>
  144. * condvar.c (pthread_cond_timedwait_relative): Never return with
  145. EINTR. Patch by Andreas Schwab.
  146. 1999-09-19 Ulrich Drepper <drepper@cygnus.com>
  147. * signals.c (sigaction): Correct last patch. Don't select
  148. pthread_sighandler_rt based on the signal number but instead of
  149. the SA_SIGINFO flag.
  150. 1999-09-23 Ulrich Drepper <drepper@cygnus.com>
  151. * specific.c: Move definitions of struct pthread_key_struct and
  152. destr_function to ...
  153. * internals.h: ...here.
  154. 1999-09-03 Andreas Schwab <schwab@suse.de>
  155. * ptfork.c (__fork): Renamed from fork and use __libc_fork. Add
  156. fork as weak alias.
  157. (__vfork): New function, alias vfork.
  158. * Versions: Export __fork, vfork, and __vfork in libpthread.
  159. 1999-08-23 Andreas Schwab <schwab@suse.de>
  160. * signals.c (pthread_sighandler): Add SIGCONTEXT_EXTRA_ARGS to
  161. call to signal handler.
  162. 1999-08-20 Ulrich Drepper <drepper@cygnus.com>
  163. * pthread.c (__pthread_reset_main_thread): Undo last change.
  164. (__pthread_kill_other_threads_np): Reset signal handlers for the
  165. signals we used in the thread implementation here.
  166. 1999-08-19 Ulrich Drepper <drepper@cygnus.com>
  167. * pthread.c (__pthread_reset_main_thread): Reset signal handlers
  168. for the signals we used in the thread implementation [PR libc/1234].
  169. * Versions: Export __pthread_kill_other_threads_np from libpthread
  170. for GLIBC_2.1.2.
  171. * signals.c: Pass sigcontext through wrapper to the user function.
  172. 1999-08-01 Ulrich Drepper <drepper@cygnus.com>
  173. * Versions [ld.so] (GLIBC_2.0): Export __libc_internal_tsd_get and
  174. __libc_internal_tsd_set.
  175. 1999-07-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
  176. * manager.c: Remove inclusion of <linux/tasks.h> since it's not
  177. needed anymore.
  178. 1999-07-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
  179. * internals.h: Align _pthread_descr_struct to 32 bytes.
  180. Reported by Tim Hockin <thockin@cobaltnet.com>, close PR libc/1206.
  181. 1999-07-09 Ulrich Drepper <drepper@cygnus.com>
  182. * manager.c (pthread_handle_create): Free mmap region after stack
  183. if clone failed. Patch by Kaz Kylheku <kaz@ashi.FootPrints.net>.
  184. 1999-07-09 Cristian Gafton <gafton@redhat.com>
  185. * Makefile (libpthread-routines): Add oldsemaphore routine.
  186. * Versions: Add sem_destroy, sem_getvalue, sem_init, sem_post,
  187. sem_trywait, and sem_wait to GLIBC_2.1.
  188. * oldsemaphore.c: New file.
  189. * semaphore.c: Add default_symbol_versions for the changed functions.
  190. (__new_sem_init): Rename from sem_init.
  191. (__new_sem_post): Rename from sem_post.
  192. (__new_sem_wait): Rename from sem_wait.
  193. (__new_sem_trywait): Rename from sem_trywait.
  194. (__new_sem_getvalue): Rename from sem_getvalue.
  195. (__new_sem_destroy): Rename from sem_destroy.
  196. 1999-06-23 Robey Pointer <robey@netscape.com>
  197. * internals.h: Added p_nextlock entry to separate queueing for a
  198. lock from queueing for a CV (sometimes a thread queues on a lock
  199. to serialize removing itself from a CV queue).
  200. * pthread.c: Added p_nextlock to initializers.
  201. * spinlock.c: Changed to use p_nextlock instead of p_nextwaiting.
  202. 1999-05-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
  203. * man/pthread_cond_init.man: Correct example.
  204. Reported by Tomas Berndtsson <tomas@nocrew.org>.
  205. * linuxthreads.texi (Condition Variables): Likewise.
  206. 1999-05-18 Jakub Jelinek <jj@ultra.linux.cz>
  207. * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): Use
  208. casx not cas, also successful casx returns the old value in rd
  209. and not the new value.
  210. 1999-05-16 Xavier Leroy <Xavier.Leroy@inria.fr>
  211. * manager.c: If pthread_create() is given a NULL attribute
  212. and the thread manager runs with a realtime policy, set the
  213. scheduling policy of the newly created thread back to SCHED_OTHER.
  214. * manager.c: If the PTHREAD_INHERIT_SCHED attribute is given,
  215. initialize the schedpolicy field of new_thread->p_start_args
  216. to that of the calling thread.
  217. 1999-04-29 Ulrich Drepper <drepper@cygnus.com>
  218. * sysdeps/sparc/sparc64/pt-machine.h (__compare_and_swap): cas
  219. instruction does not allow memory element to use offset.
  220. 1999-04-28 Ulrich Drepper <drepper@cygnus.com>
  221. * manager.c (pthread_allocate_stack): Optimize initialization of new
  222. thread descriptor.
  223. * sysdeps/pthread/bits/libc-lock.h (__libc_lock_define_initialized):
  224. Don't use initializer since it is all zeroes.
  225. (__libc_once_define): Likewise.
  226. 1999-04-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
  227. * sysdeps/arm/Implies: Removed since cmpxchg/no-cmpxchg
  228. doesn't exist anymore.
  229. * sysdeps/i386/Implies: Likewise.
  230. * sysdeps/m68k/Implies: Likewise.
  231. * sysdeps/mips/Implies: Likewise.
  232. * sysdeps/powerpc/Implies: Likewise.
  233. * sysdeps/sparc/sparc32/Implies: Likewise.
  234. * sysdeps/sparc/sparc64/Implies: Likewise.
  235. 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
  236. * sysdeps/alpha/bits/semaphore.h: Removed.
  237. * sysdeps/powerpc/bits/semaphore.h: Removed.
  238. * sysdeps/pthread/cmpxchg/bits/semaphore.h: Removed.
  239. * sysdeps/pthread/no-cmpxchg/bits/semaphore.h: Removed.
  240. * Makefile (headers): Remove bits/semaphore.h.
  241. * semaphore.h: Define _pthread_descr if necessary.
  242. Don't include limits.h. Define SEM_VALUE_MAX directly.
  243. Define SEM_FAILED.
  244. (sem_t): Protect element names with leading __.
  245. Add declarations for sem_close, sem_open, and sem_unlink.
  246. * semaphore.c: Adjust all functions for new element names.
  247. Define sem_close, sem_open, and sem_unlink.
  248. * Versions (libthread): Add sem_close, sem_open, and sem_unlink for
  249. GLIBC_2.1.1.
  250. * sysdeps/pthread/bits/pthreadtypes.h: Define _pthread_descr only if
  251. necessary.
  252. 1999-03-16 H.J. Lu <hjl@gnu.org>
  253. * specific.c (pthread_key_delete): Check th->p_terminated to see
  254. if the thread is running.
  255. * Versions (__libc_internal_tsd_get, __libc_internal_tsd_set):
  256. Added to GLIBC_2.0 for libc.so.
  257. 1999-02-12 H.J. Lu <hjl@gnu.org>
  258. * Versions (__libc_current_sigrtmin, __libc_current_sigrtmax,
  259. __libc_allocate_rtsig): Added to GLIBC_2.1.
  260. * internals.h (DEFAULT_SIG_RESTART): Removed.
  261. (DEFAULT_SIG_CANCEL): Removed.
  262. * pthread.c (init_rtsigs, __libc_current_sigrtmin,
  263. __libc_current_sigrtmax, __libc_allocate_rtsig): New functions.
  264. (__pthread_sig_restart, __pthread_sig_cancel,
  265. __pthread_sig_debug): Initialized.
  266. (pthread_initialize): Call init_rtsigs () to initialize
  267. real-time signals.
  268. 1999-02-03 H.J. Lu <hjl@gnu.org>
  269. * manager.c (__pthread_manager): Do block __pthread_sig_debug.
  270. Don't restart the thread which sent REQ_DEBUG.
  271. (pthread_start_thread): Check if __pthread_sig_debug > 0
  272. before debugging.
  273. * pthread.c (__pthread_initialize_manager): Suspend ourself
  274. after sending __pthread_sig_debug to gdb instead of
  275. __pthread_sig_cancel.
  276. 1999-01-24 H.J. Lu <hjl@gnu.org>
  277. * manager.c (__pthread_manager): Delete __pthread_sig_debug
  278. from mask if __pthread_sig_debug > 0.
  279. (pthread_handle_create): Increment __pthread_handles_num.
  280. * manager.c (pthread_handle_create): Don't pass CLONE_PTRACE to clone.
  281. * pthread.c (__pthread_initialize_manager): Likewise.
  282. * pthread.c (pthread_initialize): Use __libc_allocate_rtsig (1)
  283. instead of __libc_allocate_rtsig (2).
  284. (__pthread_initialize_manager): Send __pthread_sig_debug to gdb
  285. instead of __pthread_sig_cancel.
  286. (pthread_handle_sigdebug): Fix comments.
  287. 1999-01-21 Ulrich Drepper <drepper@cygnus.com>
  288. * manager.c (pthread_allocate_stack): Set
  289. __pthread_nonstandard_stacks if user-specified stack is used.
  290. 1999-01-16 Ulrich Drepper <drepper@cygnus.com>
  291. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add _LFS_ASYNCHRONOUS_IO,
  292. _LFS_LARGEFILE, _LFS64_LARGEFILE, and _LFS64_STDIO from Unix98.
  293. 1999-01-07 Xavier Leroy <Xavier.Leroy@inria.fr>
  294. * pthread.c: Use a third signal __pthread_sig_debug distinct
  295. from __pthread_sig_cancel to notify gdb when a thread is
  296. created
  297. * manager.c: Likewise.
  298. * internals.h: Likewise.
  299. * signals.c: The implementation of sigwait(s) assumed that
  300. all signals in s have signal handlers already attached.
  301. This is not required by the standard, so make it work
  302. also if some of the signals have no handlers.
  303. 1999-01-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
  304. * linuxthreads.texi: Remove pointers from first @node. Move old
  305. @node spec inside comment.
  306. 1998-12-31 Ulrich Drepper <drepper@cygnus.com>
  307. * sysdeps/pthread/bits/stdio-lock.h: Define _IO_lock_lock and
  308. _IO_lock_unlock.
  309. 1998-12-29 Ulrich Drepper <drepper@cygnus.com>
  310. * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
  311. lock. Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
  312. 1998-12-21 Ulrich Drepper <drepper@cygnus.com>
  313. * manager.c: Threads now send __pthread_sig_cancel on termination.
  314. Change clone call and signal masks.
  315. * thread.c (pthread_handle_sigrestart): Remove special code for
  316. manager.
  317. (pthread_handle_sigcancel): In manager thread call
  318. __pthread_manager_sighandler.
  319. * sysdeps/i386/pt-machine.h (__compare_and_swap): Add memory clobber.
  320. * sysdeps/i386/i686/pt-machine.h: Likewise.
  321. Patches by Xavier Leroy.
  322. 1998-12-14 Ulrich Drepper <drepper@cygnus.com>
  323. * spinlock.c (__pthread_unlock): Don't crash if called for an
  324. untaken mutex. Reported by Ruslan V. Brushkoff <rus@Snif.Te.Net.UA>.
  325. * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce
  326. overall runtime.
  327. 1998-12-13 Ulrich Drepper <drepper@cygnus.com>
  328. * Examples/ex3.c: Wait until all threads are started before
  329. searching for the number to avoid race condition on very fast
  330. systems.
  331. 1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
  332. * sysdeps/pthread/pthread.h: Remove __pthread_setcanceltype
  333. declaration since it's not needed.
  334. * sysdeps/pthread/pthread.h: Move internal functions to ...
  335. * internals.h: ...here.
  336. 1998-12-02 H.J. Lu <hjl@gnu.org>
  337. * pthread.c (__pthread_sig_restart): Initiliaze to 0 if
  338. SIGRTMIN is defined.
  339. (__pthread_sig_cancel): Likewise.
  340. 1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
  341. * wrapsyscall.c: Include <sys/mman.h> for msync,
  342. <stdlib.h> for system and <termios.h> for tcdrain prototype.
  343. Correct msync declaration.
  344. 1998-11-29 Roland McGrath <roland@baalperazim.frob.com>
  345. * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get,
  346. __libc_tsd_set): New macros for new interface.
  347. * no-tsd.c: New file, provide uninitialized defns of
  348. __libc_internal_tsd_get and __libc_internal_tsd_set.
  349. * Makefile (routines): Add no-tsd.
  350. 1998-10-12 Roland McGrath <roland@baalperazim.frob.com>
  351. * internals.h: Include <bits/libc-tsd.h>, not <bits/libc-lock.h>.
  352. * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
  353. __libc_internal_tsd_set): Move decls to ...
  354. * sysdeps/pthread/bits/libc-tsd.h: New file for __libc_internal_tsd_*
  355. declarations.
  356. * sysdeps/pthread/bits/libc-lock.h (__libc_internal_tsd_get,
  357. __libc_internal_tsd_set): Make these pointers to functions, not
  358. functions; remove #pragma weak decls for them.
  359. * specific.c (__libc_internal_tsd_get, __libc_internal_tsd_set):
  360. Define static functions and initialized pointers to them.
  361. 1998-11-18 Ulrich Drepper <drepper@cygnus.com>
  362. * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES.
  363. (CFLAGS-specific.c): Likewise.
  364. (CFLAGS-pthread.c): Likewise.
  365. (CFLAGS-ptfork.c): Likewise.
  366. (CFLAGS-cancel.c): Likewise.
  367. * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions
  368. as weak references if __NO_WEAK_PTHREAD_ALIASES is defined.
  369. * mutex.c (pthread_mutex_init): Define as strong symbol.
  370. (pthread_mutex_destroy): Likewise.
  371. (pthread_mutex_trylock): Likewise.
  372. (pthread_mutex_lock): Likewise.
  373. (pthread_mutex_unlock): Likewise.
  374. (pthread_mutexattr_init): Likewise.
  375. (pthread_mutexattr_destroy): Likewise.
  376. (pthread_once): Likewise.
  377. * ptfork.c (pthread_atfork): Likewise.
  378. * specific.c (pthread_key_create): Likewise.
  379. (pthread_setspecific): Likewise.
  380. (pthread_getspecific): Likewise.
  381. 1998-11-15 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
  382. * linuxthreads.texi: Fix punctuation after xref.
  383. 1998-11-10 H.J. Lu <hjl@gnu.org>
  384. * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
  385. if it is defined in <linux/limits.h>.
  386. 1998-10-29 14:28 Ulrich Drepper <drepper@cygnus.com>
  387. * spinlock.h (__pthread_trylock): Define inline.
  388. (__pthread_lock): Add extra parameter to declaration. Declare
  389. using internal_function.
  390. (__pthread_unlock): Declare using internal_function.
  391. * spinlock.c (__pthread_lock): Add new parameter. Use it instead
  392. of local variable self. Avoid recomputing self. Define using
  393. internal_function.
  394. (__pthread_trylock): Remove.
  395. (__pthread_unlock): Define using internal_function.
  396. * cancel.c: Adjust for __pthread_lock interface change. Use already
  397. computed self value is possible.
  398. * condvar.c: Likewise.
  399. * join.c: Likewise.
  400. * manager.c: Likewise.
  401. * mutex.c: Likewise.
  402. * pthread.c: Likewise.
  403. * rwlock.c: Likewise.
  404. * semaphore.c: Likewise.
  405. * signals.c: Likewise.
  406. 1998-10-27 13:46 Ulrich Drepper <drepper@cygnus.com>
  407. * sysdeps/pthread/pthread.h (struct _pthread_cleanup_buffer): Prepend
  408. __ to field names of the struct.
  409. * sysdeps/pthread/bits/pthreadtypes.h (struct _pthread_fastlock):
  410. Likewise.
  411. (pthread_attr_t): Likewise.
  412. (pthread_cond_t): Likewise.
  413. (pthread_condattr_t): Likewise.
  414. (pthread_mutex_t): Likewise.
  415. (pthread_mutexattr_t): Likewise.
  416. (pthread_rwlock_t): Likewise.
  417. (pthread_rwlockattr_t): Likewise.
  418. * attr.c: Adjust for pthread.h and pthreadtypes.h change.
  419. * cancel.c: Likewise.
  420. * condvar.c: Likewise.
  421. * manager.c: Likewise.
  422. * mutex.c: Likewise.
  423. * pthread.c: Likewise.
  424. * ptlongjmp.c: Likewise.
  425. * rwlock.c: Likewise.
  426. * spinlock.c: Likewise.
  427. 1998-10-09 Ulrich Drepper <drepper@cygnus.com>
  428. * sysdeps/i386/pt-machine.h (get_eflags, set_eflags): Mark these
  429. also with PT_EI.
  430. * sysdeps/i386/i686/pt-machine.h: Remove unused inline
  431. definitions.
  432. * Makefile (libpthread-routines): Add pt-machine.
  433. * pt-machine.c: New file.
  434. * sysdeps/alpha/pt-machine.h: Define PT_EI as extern inline is not
  435. yet defined. Use PT_EI in extern inline definitions.
  436. * sysdeps/arm/pt-machine.h: Likewise.
  437. * sysdeps/i386/pt-machine.h: Likewise.
  438. * sysdeps/i386/i686/pt-machine.h: Likewise.
  439. * sysdeps/m68k/pt-machine.h: Likewise.
  440. * sysdeps/mips/pt-machine.h: Likewise.
  441. * sysdeps/powerpc/pt-machine.h: Likewise.
  442. * sysdeps/sparc/sparc32/pt-machine.h: Likewise.
  443. * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
  444. 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
  445. * semaphore.h: Include <sys/types.h> so that _pthread_descr
  446. is declared.
  447. 1998-09-15 David S. Miller <davem@pierdol.cobaltmicro.com>
  448. * sysdeps/sparc/sparc32/pt-machine.h (INIT_THREAD_SELF): Add nr
  449. argument.
  450. * sysdeps/sparc/sparc64/pt-machine.h (INIT_THREAD_SELF): Likewise.
  451. 1998-09-12 14:24 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
  452. * linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h: Add
  453. multiple inclusion guard.
  454. 1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  455. * signals.c (sigaction): Check that sig is less than NSIG to avoid
  456. array index overflow.
  457. 1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
  458. * sysdeps/pthread/semaphore.h: New file.
  459. 1998-09-06 09:08 Ulrich Drepper <drepper@cygnus.com>
  460. * sysdeps/pthread/bits/libc-lock.h (enum __libc_tsd_key_t): Add
  461. _LIBC_TSD_KEY_DL_ERROR.
  462. 1998-08-31 Ulrich Drepper <drepper@cygnus.com>
  463. * sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
  464. * sysdeps/i386/pt-machine.h: Likewise.
  465. Suggested by Roland McGrath.
  466. 1998-08-28 13:58 Ulrich Drepper <drepper@cygnus.com>
  467. * internals.h: Also define THREAD_GETMEM_NC and THREAD_SETMEM_NC to
  468. access thread data with non-constant offsets.
  469. * specific.c: Use THREAD_GETMEM_NC and THREAD_SETMEM_NC where
  470. necessary.
  471. * sysdeps/i386/useldt.h: Fix typo. Add THREAD_GETMEM_NC and
  472. THREAD_SETMEM_NC definitions.
  473. * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM_NC and
  474. THREAD_SETMEM_NC.
  475. * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
  476. 1998-08-26 15:46 Ulrich Drepper <drepper@cygnus.com>
  477. * internals.h: Define THREAD_GETMEM and THREAD_SETMEM to default if
  478. not already defined.
  479. (struct _pthread_descr_struct): Add p_self and p_nr field.
  480. * manager.c (__pthread_handles): Define second element to point
  481. to manager thread.
  482. (__pthread_handles_num): Initialize to 2.
  483. (__pthread_manager): Use INIT_THREAD_SELF with two arguments.
  484. (pthread_start_thread): Likewise.
  485. (pthread_handle_create): Start search for free slot at entry 2.
  486. Initialize new fields p_self and p_nr.
  487. Call __clone with CLONE_PTRACE if available.
  488. (pthread_free): Call FREE_THREAD_SELF if available.
  489. * pthread.c (__pthread_initial_thread): Initialize new fields.
  490. (__pthread_manager_thread): Likewise.
  491. (__pthread_initialize_manager): Call __clone with CLONE_PTRACE.
  492. * cancel.c: Use THREAD_GETMEM and THREAD_SETMEM to access the
  493. elements of the thread descriptor.
  494. * condvar.c: Likewise.
  495. * errno.c: Likewise.
  496. * join.c: Likewise.
  497. * manager.c: Likewise.
  498. * pthread.c: Likewise.
  499. * ptlongjmp.c: Likewise.
  500. * semaphore.c: Likewise.
  501. * signals.c: Likewise.
  502. * specific.c: Likewise.
  503. * spinlock.c: Likewise.
  504. * sysdeps/alpha/pt-machine.h (INIT_THREAD_SELF): Add extra parameter.
  505. * sysdeps/i386/useldt.h: New file.
  506. * sysdeps/i386/i686/pt-machine.h: Show how to use this file.
  507. * sysdeps/sparc/sparc32/pt-machine.h: Define THREAD_GETMEM and
  508. THREAD_SETMEM using __thread_self.
  509. * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
  510. 1998-08-24 Geoff Keating <geoffk@ozemail.com.au>
  511. * spinlock.c (__pthread_lock): Reset p_nextwaiting to NULL if it
  512. turned out that we didn't need to queue after all.
  513. 1998-08-22 Geoff Keating <geoffk@ozemail.com.au>
  514. * sysdeps/powerpc/pt-machine.h: Remove testandset, it's not used
  515. and wastes space; correct types.
  516. 1998-08-08 11:18 H.J. Lu <hjl@gnu.org>
  517. * signals.c (sigaction): Handle NULL argument.
  518. 1998-08-04 Ulrich Drepper <drepper@cygnus.com>
  519. * sysdeps/unix/sysv/linux/bits/sigthread.h: Use __sigset_t instead
  520. of sigset_t.
  521. 1998-08-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  522. * Makefile (linuxthreads-version): Extract correct number from
  523. Banner.
  524. 1998-07-29 Xavier Leroy <Xavier.Leroy@inria.fr>
  525. * Banner: Bump version number to 0.8
  526. * FAQ.html: Many updates, in particular w.r.t. debugging.
  527. * manager.c: Support for non-default stacksize for
  528. LinuxThreads-allocated stacks;
  529. don't use guard pages for stacks with default size, rely on
  530. rlimit(RLIMIT_STACK) instead (it's cheaper).
  531. * attr.c: Likewise.
  532. * cancel.c: Use __pthread_sig_cancel and __pthread_sig_restart
  533. everywhere instead of PTHREAD_SIG_CANCEL and PTHREAD_SIG_RESTART.
  534. * condvar.c: Likewise.
  535. * internals.h: Likewise.
  536. * restart.h: Likewise.
  537. * signals.c: Likewise.
  538. * pthread.c: Likewise; set rlimit(RLIMIT_STACK) as we need it.
  539. 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  540. * weaks.c: Define pthread_mutexattr_[sg]ettype instead of
  541. __pthread_mutexattr_[sg]ettype. Add more weak aliases.
  542. * Versions: Put __pthread_mutexattr_settype under version
  543. GLIBC_2.0. Don't export __pthread_mutexattr_setkind_np and
  544. __pthread_mutexattr_gettype.
  545. 1998-07-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  546. * sysdeps/pthread/bits/libc-lock.h: Make
  547. __pthread_mutexattr_settype weak. Don't make
  548. __pthread_mutexattr_setkind_np weak.
  549. 1998-07-16 10:52 Ulrich Drepper <drepper@cygnus.com>
  550. * manager.c (pthread_handle_create): Check whether sched_setscheduler
  551. call can succeed here.
  552. * mutex.c: Define __pthread_mutexattr_settype and make
  553. __pthread_mutexattr_setkind_np an alias.
  554. Likewise for __pthread_mutexattr_gettype.
  555. 1998-07-15 11:00 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
  556. * attr.c (pthread_attr_setschedpolicy): Don't check whether caller
  557. is root.
  558. 1998-07-14 19:38 Ulrich Drepper <drepper@cygnus.com>
  559. * sysdeps/pthread/bits/libc-lock.h: Define __libc_cleanup_end.
  560. 1998-07-11 Andreas Jaeger <aj@arthur.rhein-neckar.de>
  561. * Examples/ex6.c: Include <unistd.h> for usleep.
  562. 1998-06-13 11:04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  563. * Examples/ex4.c (main): Use exit, not pthread_exit.
  564. 1998-07-09 13:39 Ulrich Drepper <drepper@cygnus.com>
  565. * Versions: Add __pthread_mutexattr_gettype and
  566. __pthread_mutexattr_settype.
  567. * lockfile.c: Use __pthread_mutexattr_settype instead of
  568. __pthread_mutexattr_setkind_np.
  569. * mutex.c: Define __pthread_mutexattr_gettype and
  570. __pthread_mutexattr_settype.
  571. * weak.c: Likewise.
  572. * sysdeps/pthread/pthread.h: Declare __pthread_mutexattr_gettype and
  573. __pthread_mutexattr_settype.
  574. * sysdeps/pthread/bits/libc-lock.h (__libc_lock_init_recursive):
  575. Use __pthread_mutexattr_settype.
  576. 1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
  577. * Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
  578. * mutex.c: Define weak alias pthread_mutexattr_gettype and
  579. pthread_mutexattr_settype.
  580. * sysdeps/pthread/pthread.h: Declare these functions.
  581. Move pthread_sigmask and pthread_kill declaration in separate header.
  582. * sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
  583. 1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
  584. * Makefile: Add rules to compile and run tests.
  585. * Examples/ex1.c: Little changes to fix warnings.
  586. * Examples/ex2.c: Likewise.
  587. * Examples/ex3.c: Likewise.
  588. * Examples/ex4.c: Likewise.
  589. * Examples/ex5.c: Likewise.
  590. * Examples/ex6.c: New file.
  591. 1998-07-05 11:54 Ulrich Drepper <drepper@cygnus.com>
  592. * Versions: Add pthread_attr_init to GLIBC_2.1 version in libc.
  593. 1998-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
  594. * attr.c: Include <string.h>.
  595. 1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
  596. * attr.c: Include errno.h. Use memcpy to copy sched_param.
  597. * internals.h: Include limits.h.
  598. * manager.c: Use memcpy to copy sched_param.
  599. * ptfork.c: Include errno.h.
  600. * pthread.c: Likewise.
  601. * semaphore.c: Likewise.
  602. * specific.c: Likewise.
  603. * spinlock.h: Likewise.
  604. * sysdeps/pthread/pthread.h: Include only allowed headers. Move
  605. type definition to ...
  606. * sysdeps/pthread/bits/pthreadtypes.h: ...here. New file.
  607. 1998-06-29 12:34 Ulrich Drepper <drepper@cygnus.com>
  608. * sysdeps/pthread/pthread.h: Use __PMT not __P for function pointers.
  609. * sysdeps/pthread/pthread.h: Define various PTHREAD_* symbols also
  610. as macros as demanded in POSIX.1, Annex C.
  611. 1998-06-29 12:29 Ulrich Drepper <drepper@cygnus.com>
  612. * internals.h (struct pthread_request): For free use pthread_t
  613. instead of pthread_descr.
  614. * join.c (pthread_join): Pass thread_id, not th to manager.
  615. (pthread_detach): Likewise.
  616. * manager.c (__pthread_manager): Except thread ID in FREE_REQ case.
  617. (pthread_exited): Remove detached queue code.
  618. (pthread_handle_free): Expect thread ID parameter and use it to
  619. validate the thread decsriptor. Don't use detached queue.
  620. Patches by Xavier Leroy.
  621. 1998-06-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  622. * libpthread.map: Export accept, longjmp, sigaction, siglongjmp,
  623. _IO_flockfile, _IO_ftrylockfile, _IO_funlockfile,
  624. __pthread_atfork, __pthread_key_create, __pthread_once.
  625. * internals.h: Doc fix.
  626. * pthread.c (__pthread_initialize): Define again.
  627. 1998-06-26 Ulrich Drepper <drepper@cygnus.com>
  628. * manager.c (pthread_exited): If thread is not detached put it on
  629. special list.
  630. (pthread_handle_free): If thread is not on list with living threads
  631. search on list with detached threads.
  632. * sysdeps/pthread/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Correct
  633. for new definition of pthread_rwlock_t.
  634. * spinlock.c: Correct test whether to compile
  635. __pthread_compare_and_swap or not.
  636. 1998-06-25 19:27 Ulrich Drepper <drepper@cygnus.com>
  637. * attr.c: Finish user stack support. Change locking code to be safe
  638. in situations with different priorities.
  639. * cancel.c: Likewise.
  640. * condvar.c: Likewise.
  641. * internals.h: Likewise.
  642. * join.c: Likewise.
  643. * manager.c: Likewise.
  644. * mutex.c: Likewise.
  645. * pthread.c: Likewise.
  646. * ptlongjmp.c: Likewise.
  647. * queue.h: Likewise.
  648. * rwlock.c: Likewise.
  649. * semaphore.c: Likewise.
  650. * semaphore.h: Likewise.
  651. * signals.c: Likewise.
  652. * spinlock.c: Likewise.
  653. * spinlock.h: Likewise.
  654. * sysdeps/pthread/pthread.h: Likewise.
  655. Patches by Xavier Leroy.
  656. * sysdeps/i386/i686/pt-machine.h: New file.
  657. 1998-06-25 Ulrich Drepper <drepper@cygnus.com>
  658. * sysdeps/pthread/pthread.h: Make [sg]et_stacksize and
  659. [sg]et_stackaddr prototypes always available.
  660. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  661. _POSIX_THREAD_ATTR_STACKSIZE and _POSIX_THREAD_ATTR_STACKADDR.
  662. 1998-06-24 Ulrich Drepper <drepper@cygnus.com>
  663. * manager.c (pthread_free): Undo patch from 980430.
  664. Reported by David Wragg <dpw@doc.ic.ac.uk>.
  665. 1998-06-09 15:07 Ulrich Drepper <drepper@cygnus.com>
  666. * manager.c: Define __pthread_manager_adjust_prio and use it to
  667. increase priority when needed.
  668. * internals.h: Add prototype for __pthread_manager_adjust_prio.
  669. * mutex.c: Optimize mutexes to wake up only one thread.
  670. * pthread.c: Move PID of manager for global variable in structure
  671. element.
  672. Patches by Xavier Leroy.
  673. 1998-06-07 13:47 Ulrich Drepper <drepper@cygnus.com>
  674. * sysdeps/pthread/bits/libc-lock.h: Optimize cleanup handlers a bit.
  675. 1998-06-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
  676. * attr.c: Correct typo.
  677. 1998-05-01 Ulrich Drepper <drepper@cygnus.com>
  678. * manager.c (pthread_free): Unmap guard before the stack.
  679. Patch by Matthias Urlichs.
  680. 1998-04-30 Ulrich Drepper <drepper@cygnus.com>
  681. * manager.c (pthread_free): Detect already free child.
  682. Patch by Xavier Leroy, reported by Matthias Urlichs.
  683. 1998-04-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  684. * Makefile (linuxthreads-version): Renamed back from
  685. libpthread-version.
  686. 1998-04-21 Ulrich Drepper <drepper@cygnus.com>
  687. * ptlongjmp.c: Add prototypes for __libc_siglongjmp and
  688. __libc_longjmp.
  689. 1998-04-20 14:55 Ulrich Drepper <drepper@cygnus.com>
  690. * Makefile (libpthread-routines): Add ptlongjmp and spinlock.
  691. * internals.h: Add definitions for new spinlock implementation.
  692. * ptlongjmp.c: New file.
  693. * spinlock.c: New file.
  694. * spinlock.h (acquire): Don't reschedule using __sched_yield, use
  695. new function __pthread_acquire to prevent deadlocks with thread
  696. with different priorities.
  697. Patches by Xavier Leroy <Xavier.Leroy@inria.fr>.
  698. 1998-03-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  699. * manager.c (__pthread_manager): Reduce first argument to select
  700. to include just the needed file descriptor.
  701. 1998-03-17 00:06 Ulrich Drepper <drepper@cygnus.com>
  702. * manager.c: Fix last patch which caused core dumps.
  703. * pthread.c: Correctly handle missing SIGRTMIN.
  704. 1998-03-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  705. * libpthread.map: Add __libc_internal_tsd_get and
  706. __libc_internal_tsd_set. Add missing cancelable functions. Export
  707. libc internal versions of the cancelable functions.
  708. 1998-03-13 16:51 Ulrich Drepper <drepper@cygnus.com>
  709. * weaks.c: Define pthread_attr_init as GLIBC_2.0 and GLIBC_2.1.
  710. 1998-03-13 00:46 Ulrich Drepper <drepper@cygnus.com>
  711. * attr.c: Implement pthread_attr_[gs]etguardsize,
  712. pthread_attr_[gs]setstackaddr, pthread_attr_[gs]etstacksize.
  713. Change pthread_attr_init to have two interfaces.
  714. * internals.h (struct _pthread_descr_struct): Add new fields for
  715. above functions.
  716. * libpthread.map: Add names in GLIBC_2.1 section.
  717. * manager.c (pthread_handle_create): Implement guardsize and
  718. user stack.
  719. (pthread_free): Likewise.
  720. * pthread.c (pthread_create): Add new interface for changed
  721. pthread_attr_t.
  722. * sysdeps/pthread/pthread.h: Add prototypes for new functions.
  723. * sysdeps/unix/sysv/linux/bits/local_lim.h: Add definition of
  724. PTHREAD_STACK_MIN.
  725. 1998-03-11 00:42 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
  726. * manager.c: Enable resetting of the thread scheduling policy
  727. to SCHED_OTHER when the parent thread has a different one.
  728. 1998-02-01 13:51 Ulrich Drepper <drepper@cygnus.com>
  729. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  730. _POSIX_ASYNCHRONOUS_IO.
  731. * sysdeps/pthread/pthread.h: Define bits for Unix98 variants of
  732. mutexes.
  733. * mutex.c: Implement new mutex types.
  734. * internals.h: Include <signal.h>.
  735. * libpthread.map: Add __erno_location and __h_errno_location.
  736. * errno.c: Return pointer to variable actually in use. This might
  737. not be the one in the thread structure.
  738. * internals.h (struct _pthread_descr_struct): Add new fields p_errnop
  739. and p_h_errnop.
  740. * manager.c (__pthread_manager): Set p_errnop and p_h_errnop member
  741. of manager thread structure.
  742. (pthread_handle_create): Set p_errnop and p_h_errnop members for new
  743. thread.
  744. * pthread.c: Adapt initializer for thread structures.
  745. (__pthread_initial_thread): Set p_errnop and p_h_errnop member.
  746. (__pthread_reset_main_thread): Reset p_errnop and p_h_errnop of
  747. current thread to global variables.
  748. 1998-01-31 17:27 Ulrich Drepper <drepper@cygnus.com>
  749. * rwlock.c: New file.
  750. * Makefile (libpthread-routines): Add rwlock.
  751. * sysdeps/pthread/pthread.h: Define data structures and declare
  752. functions.
  753. * libpthread.map: Add new functions.
  754. 1997-12-18 13:50 Philip Blundell <pb@nexus.co.uk>
  755. * sysdeps/arm/pt-machine.h: New file; add ARM support.
  756. * sysdeps/arm/Implies: likewise.
  757. * README: Document it.
  758. 1997-12-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  759. * signals.c: Remove unneeded initializer for sigwaited, saving a
  760. warning.
  761. 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  762. * semaphore.c (sem_init): Set sem_spinlock only if available.
  763. 1997-12-04 01:48 Ulrich Drepper <drepper@cygnus.com>
  764. * mutex.c: Implement PTHREAD_MUTEX_CHECKERROR.
  765. * sysdeps/pthread/pthread.h: Define PTHREAD_MUTEX_CHECKERROR.
  766. * Makefile: Update from LinuxThreads 0.7.
  767. * internals.h. Likewise.
  768. * manager.c: Likewise.
  769. * mutex.c: Likewise.
  770. * pthread.c: Likewise.
  771. * signals.c: Likewise.
  772. * specific.c: Likewise.
  773. * Examples/ex3.c: Likewise.
  774. 1997-11-20 18:13 Ulrich Drepper <drepper@cygnus.com>
  775. * pthread.c (__pthread_reset_main_thread): Close pipe only if still
  776. open.
  777. 1997-10-29 05:38 Ulrich Drepper <drepper@cygnus.com>
  778. * wrapsyscall.c: Add socket functions which are also cancelation
  779. points.
  780. 1997-10-19 21:40 Wolfram Gloger <wg@wolfram.dent.med.uni-muenchen.de>
  781. * specific.c (__libc_internal_tsd_set, __libc_internal_tsd_get):
  782. New functions for fast thread specific data within libc.
  783. * internals.h: Add new array p_libc_specific to struct
  784. _pthread_descr_struct.
  785. * sysdeps/pthread/bits/libc-lock.h: Declare new functions.
  786. 1997-10-13 05:39 Ulrich Drepper <drepper@cygnus.com>
  787. * semaphore.h: Add __BEGIN_DECLS/__END_DECLS.
  788. Reported by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
  789. 1997-08-29 03:05 Ulrich Drepper <drepper@cygnus.com>
  790. * internals.h (struct _pthread_descr_struct): Add definitions for
  791. two-level specific key handling.
  792. * manager.c (pthread_handle_create): Initialize specific memory array.
  793. * specific.c: Implement two-level key handling.
  794. * weaks.c: Don't provide dummy key handling.
  795. * sysdeps/pthread/bits/libc-lock.h: Typedef __libc_lock_t (no #define).
  796. Add definition of __libc_key_t.
  797. * sysdeps/unix/sysv/linux/bits/local_lim.h: Define PTHREAD_KEYS_MAX
  798. as 1024.
  799. Add definition of _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
  800. PTHREAD_DESTRUCTOR_ITERATIONS.
  801. * manager.c (pthread_handle_create): Compare mmap result with
  802. MAP_FAILED.
  803. * ptfork.c: Rename to __pthread_atfork and make old name a weak alias.
  804. * sysdeps/pthread/bits/pthread.h: Add prototype for __pthread_atfork.
  805. 1997-08-22 19:04 Richard Henderson <rth@cygnus.com>
  806. sysdeps/sparc -> sysdeps/sparc/sparc32
  807. sysdeps/sparc64 -> sysdeps/sparc/sparc64
  808. * internals.h: Change definition of THREAD_SELF to be an expression,
  809. not a statement that did a return.
  810. * sysdeps/alpha/pt-machine.h (THREAD_SELF): Update accordingly.
  811. * sysdeps/sparc/sparc32/pt-machine.h (THREAD_SELF, INIT_THREAD_SELF):
  812. Follow Solaris and use a "system reserved" register (%g6) to hold
  813. the thread descriptor.
  814. * sysdeps/sparc/sparc64/pt-machine.h: Likewise.
  815. 1997-08-03 00:09 Ulrich Drepper <drepper@cygnus.com>
  816. * mutex.c: Correct pthread_once. Patch by Xavier Leroy.
  817. * sysdeps/pthread/pthread.h: Add prototype for __pthread_once.
  818. * sysdeps/pthread/bits/pthread.h: Add macros for __libc_once.
  819. * semaphore.c: Include spinlock.h only when needed.
  820. * specific.c (__pthread_setsepcific, __pthread_getspecific): Reject
  821. keys for entries not in use.
  822. * weaks.c: Implement key handling functions for real.
  823. 1997-06-29 01:04 Richard Henderson <richard@gnu.ai.mit.edu>
  824. Initial sparc64-linux support:
  825. * linuxthreads/sysdeps/sparc64/Implies: New file.
  826. * linuxthreads/sysdeps/sparc64/pt-machine.h: Likewise.
  827. 1997-06-29 00:48 Ulrich Drepper <drepper@cygnus.com>
  828. * semaphore.c: Include spinlock.h at correct place.
  829. Patch by HJ Lu.
  830. 1997-06-13 10:06 Richard Henderson <rth@tamu.edu>
  831. The Great Bit File Move:
  832. * sysdeps/alpha/semaphorebits.h: -> .../bits/semaphore.h.
  833. * sysdeps/powerpc/semaphorebits.h: Likewise.
  834. * sysdeps/pthread/cmpxchg/semaphorebits.h: Likewise.
  835. * sysdeps/pthread/no-cmpxchg/semaphorebits.h: Likewise.
  836. * sysdeps/pthread/libc-lock.h: -> bits/
  837. * sysdeps/pthread/stdio-lock.h: Likewise.
  838. * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
  839. * sysdeps/unix/sysv/linux/posix_opt.h: Likewise.
  840. * semaphore.h: Likewise.
  841. * sysdeps/pthread/pthread.h: Likewise.
  842. * lockfile.c: <foo.h> -> <bits/foo.h>.
  843. * semaphore.h: Likewise.
  844. * Makefile: (headers): foo.h -> bits/foo.h.
  845. * sysdeps/pthread/Makefile: Likewise.
  846. 1997-04-11 01:18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  847. * semaphore.c (sem_init): Set sem_spinlock only if available.
  848. * sysdeps/m68k/pt-machine.h (testandset, __compare_and_swap): Fix
  849. asm constraints.
  850. 1997-04-09 03:00 Ulrich Drepper <drepper@cygnus.com>
  851. Update from LinuxThreads 0.6.
  852. * attr.c (pthread_attr_getdetachstate): Use __sched_get_priority_max
  853. and __sched_get_priority_min instead of names without `__'.
  854. * manager.c: Rewrite large parts to implement opaque pthread_t.
  855. * cancel.c: Adapt for opaque pthread_t type.
  856. * condvar.c: Likewise.
  857. * errno.c: Likewise.
  858. * join.c: Likewise.
  859. * mutex.c: Likewise.
  860. * pthread.c: Likewise.
  861. * signals.c: Likewise.
  862. * specific.c: Likewise.
  863. * restart.h: Likewise.
  864. * queue.h: Likewise.
  865. * Examples/ex3.c: Likewise.
  866. * Examples/ex4.c: Likewise.
  867. * sysdeps/pthread/pthread.h: Likewise.
  868. * pthread.c: Accumulate time for all threads in thread manager.
  869. * semaphore.c: Implement fallback implementation for architectures
  870. sometimes missing compare-exchange operations.
  871. * cancel.c (pthread_cancel): Validate handle argument.
  872. * join.c (pthread_join): Likewise.
  873. (pthread_detach): Likewise.
  874. * signals.c (pthread_kill): Likewise.
  875. * spinlock.h (acquire): Use __sched_yield not sched_yield.
  876. * queue.h (enqueue): Enqueue thread according to priority.
  877. * internals.c (struct pthread_start_args): New struct for passing
  878. args to cloning function.
  879. (struct _pthread): Rename to _pthread_descr_struct and adapt for
  880. opaque pthread_t.
  881. * Examples/Makefile (clean): Pass -f option to rm.
  882. * sysdeps/i386/pt-machine.h: Add check for compare-exchange instruction
  883. and define TEST_FOR_COMPARE_AND_SWAP.
  884. * sysdeps/i386/i486/pt-machine.h: Removed.
  885. * sysdeps/unix/sysv/linux/local_lim.h (PTHREAD_THREADS_MAX): Increase
  886. to 1024.
  887. 1997-04-04 16:38 Ulrich Drepper <drepper@cygnus.com>
  888. * restart.h (suspend): Clear p_signal before suspending.
  889. (suspend_with_cancellation): Likewise.
  890. Patch by Xavier Leroy <Xavier.Leroy@inria.fr>.
  891. * weaks.c: Make __pthread_key_create return 1.
  892. * sysdeps/pthread/libc-lock.h: Define __libc_key_create,
  893. __libc_getspecific, __libc_setspecific, and __libc_key_t.
  894. * sysdeps/pthread/stdio-lock.h: Don't care for implementation not
  895. using libio.
  896. 1997-03-19 15:13 Miguel de Icaza <miguel@nuclecu.unam.mx>
  897. * sysdeps/sparc/pt-machine (RELEASE): Fix.
  898. 1997-03-01 07:55 Geoff Keating <geoffk@ozemail.com.au>
  899. * sysdeps/powerpc/Implies: Added.
  900. * sysdeps/powerpc/pt-machine.h: Added.
  901. * sysdeps/powerpc/semaphorebits.h: Added.
  902. 1997-01-22 01:22 Ulrich Drepper <drepper@cygnus.com>
  903. * linuxtheads/pthread.c (__pthread_initial_thread): Correct
  904. initializer.
  905. (__pthread_manager_thread): Likewise.
  906. Reported by Andreas Jaeger.
  907. 1997-01-18 22:15 Richard Henderson <rth@tamu.edu>
  908. Since sigset_t no longer fits in a register, we can't pass in the
  909. thread's initial mask so easily. Take this opportunity to simplify
  910. the clone implementation by only accepting a single void* argument.
  911. * linuxthreads/manager.c (__pthread_manager): Put thread vitals
  912. in the thread struct instead of as arguments through clone.
  913. (pthread_start_thread): Look for them there.
  914. * linuxthreads/internals.h (struct _pthread): Add p_initial_fn,
  915. p_initial_fn_arg, p_initial_mask. Fix __pthread_manager proto.
  916. * linuxthreads/pthread.c (pthread_initialize_manager): Revise
  917. clone invocation.