Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-27 22:50:59 +0400
committerChristopher Faylor <me@cgf.cx>2001-04-27 22:50:59 +0400
commitcba63823f808a747ad762d3a8d5a4d8ef6890e54 (patch)
tree9f7136cef4a65dba47cb4e550daf300e8fbeda50 /winsup/cygwin/thread.cc
parent9572ecf9798a493965d173398d9db923c154a4c3 (diff)
* thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reent
structure of newlib. * sigproc.h (sig_send): Add exception parameter to sig_send. * sigproc.cc (sig_send): Ditto. Use it when setting frame info. * exceptions.cc (handle_exceptions): Use exception flag when calling sig_send.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r--winsup/cygwin/thread.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 861dac3e7..deedcae42 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -737,7 +737,7 @@ thread_init_wrapper (void *_arg)
pthread *thread = (pthread *) _arg;
struct __reent_t local_reent;
struct _winsup_t local_winsup;
- struct _reent local_clib;
+ struct _reent local_clib = _REENT_INIT(local_clib);
struct sigaction _sigs[NSIG];
sigset_t _sig_mask; /* one set for everything to ignore. */
@@ -748,14 +748,8 @@ thread_init_wrapper (void *_arg)
thread->sigmask = &_sig_mask;
thread->sigtodo = _sigtodo;
- memset (&local_clib, 0, sizeof (struct _reent));
memset (&local_winsup, 0, sizeof (struct _winsup_t));
- local_clib._errno = 0;
- local_clib._stdin = &local_clib.__sf[0];
- local_clib._stdout = &local_clib.__sf[1];
- local_clib._stderr = &local_clib.__sf[2];
-
local_reent._clib = &local_clib;
local_reent._winsup = &local_winsup;