From c9629cefe942778a9c440e707e203b135de162ae Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 14 Sep 2005 21:26:15 +0000 Subject: * cygtls.h (san): New structure. (cygtls::andreas): New element. Replaces _myfault and _myfault_errno. (cygtls::fault_guarded): Use andreas. (cygtls::return_from_fault): Ditto. (cygtls::setup_fault): Add a parameter denoting where to store old fault handler, if any and use it to "stack" faults. (cygtls::reset_fault): Restore fault from parameter. (myfault::sebastian): New variable. (myfault::~myfault): Pass sebastian to reset_fault. (myfault::myfault): Store old fault values in sebastian. --- winsup/cygwin/tlsoffsets.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'winsup/cygwin/tlsoffsets.h') diff --git a/winsup/cygwin/tlsoffsets.h b/winsup/cygwin/tlsoffsets.h index fa79106..824e02c 100644 --- a/winsup/cygwin/tlsoffsets.h +++ b/winsup/cygwin/tlsoffsets.h @@ -37,10 +37,8 @@ //; $tls::plocals = 1264; //; $tls::_ctinfo = -1092; //; $tls::p_ctinfo = 2896; -//; $tls::_myfault = -1088; -//; $tls::p_myfault = 2900; -//; $tls::_myfault_errno = -1084; -//; $tls::p_myfault_errno = 2904; +//; $tls::andreas = -1088; +//; $tls::pandreas = 2900; //; $tls::wq = -1080; //; $tls::pwq = 2908; //; $tls::prev = -1052; @@ -99,10 +97,8 @@ #define tls_plocals (1264) #define tls__ctinfo (-1092) #define tls_p_ctinfo (2896) -#define tls__myfault (-1088) -#define tls_p_myfault (2900) -#define tls__myfault_errno (-1084) -#define tls_p_myfault_errno (2904) +#define tls_andreas (-1088) +#define tls_pandreas (2900) #define tls_wq (-1080) #define tls_pwq (2908) #define tls_prev (-1052) -- cgit v1.1