* thread.h (__reent_t::init_clib): Declare new function.

* thread.cc (__reent_t::init_clib): Define new function.
(pthread::thread_init_wrapper): Use __reent_t::init_clib to init local clib
storage and set std{in,out,err} appropriately.
This commit is contained in:
Christopher Faylor
2003-09-20 02:43:18 +00:00
parent bc54734d15
commit 370b1173b0
3 changed files with 20 additions and 2 deletions

View File

@@ -108,6 +108,7 @@ struct __reent_t
{
struct _reent *_clib;
struct _winsup_t *_winsup;
void init_clib (_reent&);
};
_winsup_t *_reent_winsup ();