diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-14 21:26:15 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-14 21:26:15 +0000 |
commit | c9629cefe942778a9c440e707e203b135de162ae (patch) | |
tree | e0927d50ab8b8c1266633af33876269c8c847203 /winsup/cygwin/tlsoffsets.h | |
parent | 1f48d233ebee49407b8900a2214e5d582be86555 (diff) | |
download | newlib-c9629cefe942778a9c440e707e203b135de162ae.zip newlib-c9629cefe942778a9c440e707e203b135de162ae.tar.gz newlib-c9629cefe942778a9c440e707e203b135de162ae.tar.bz2 |
* 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.
Diffstat (limited to 'winsup/cygwin/tlsoffsets.h')
-rw-r--r-- | winsup/cygwin/tlsoffsets.h | 12 |
1 files changed, 4 insertions, 8 deletions
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) |