aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/cygtls.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-01-26 18:52:02 +0000
committerChristopher Faylor <me@cgf.cx>2004-01-26 18:52:02 +0000
commit5e0f482f2cac33d5ce758e4dc0f665a4e195f4e1 (patch)
tree37a5f26d11c983b3d4947a1adcd9046c1a50bac9 /winsup/cygwin/cygtls.cc
parentd7231d7224e004dc29640222f4d08da7b15aacce (diff)
downloadnewlib-5e0f482f2cac33d5ce758e4dc0f665a4e195f4e1.zip
newlib-5e0f482f2cac33d5ce758e4dc0f665a4e195f4e1.tar.gz
newlib-5e0f482f2cac33d5ce758e4dc0f665a4e195f4e1.tar.bz2
* cygtls.cc (_threadinfo::init_thread): Add more local reent stdio
initialization. * dcrt0.cc (initial_env): Can it really be true that XP doesn't allow attaching a debugger during DLL attach? Add temporary workaround. (dll_crt0_0): Ensure that _impure_ptr stdio is initialized before any threads. (dll_crt0_1): Move _impure_ptr initialization to dll_crt0_0. * exceptions.cc (try_to_debug): Reinstate old method for looping while debugging. * syscalls.cc (_cygwin_istext_for_stdio): Regularize debugging output. Remove hopefully extraneous check. (setmode_helper): Add debugging output for improbable case. Use "binary" rather "raw" for consistency.
Diffstat (limited to 'winsup/cygwin/cygtls.cc')
-rw-r--r--winsup/cygwin/cygtls.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc
index 4833b58..a744126 100644
--- a/winsup/cygwin/cygtls.cc
+++ b/winsup/cygwin/cygtls.cc
@@ -108,6 +108,8 @@ _threadinfo::init_thread (void *x, DWORD (*func) (void *, void *))
local_clib._stderr = _GLOBAL_REENT->_stderr;
local_clib.__sdidinit = _GLOBAL_REENT->__sdidinit;
local_clib.__cleanup = _GLOBAL_REENT->__cleanup;
+ local_clib.__sglue._niobs = 3;
+ local_clib.__sglue._iobs = &_GLOBAL_REENT->__sf[0];
}
local_clib._current_locale = "C";
locals.process_logmask = LOG_UPTO (LOG_DEBUG);