newlib/winsup/cygwin/tlsoffsets.h
Christopher Faylor 893ac8e03c Replace valid memory checks with new myfault class "exception handling", almost
everywhere.  Leave some thread.cc stuff alone for now.
* cygtls.h: Kludge some definitions to avoid including a problematic windows
header.
(_cygtls::_myfault): New entry.
(_cygtls::_myfault_errno): Ditto.
(_cygtls::fault_guarded): New function.
(_cygtls::setup_fault): Ditto.
(_cygtls::return_from_fault): Ditto.
(_cygtls::clear_fault): Ditto.
(myfault): New class.
* exceptions.cc (handle_exceptions): Handle case of guarded fault in system
routine.
* gendef: Add another entry point for setjmp that the compiler doesn't know
about and won't complain about.
* gentls_offsets: Just include windows.h rather than kludging a HANDLE def.
* miscfuncs.cc (check_null_str): Delete.
(check_null_empty_str): Ditto.
(check_null_empty_str_errno): Ditto.
(check_null_str_errno): Ditto.
(__check_null_invalid_struct): Ditto.
(__check_null_invalid_struct_errno): Ditto.
(__check_invalid_read_ptr): Ditto.
(__check_invalid_read_ptr_errno): Ditto.
(dummytest): New function.
(check_iovec_for_read): Delete.
(chec_iovec): Rename from check_iovec_for_write.  Take a read/write parameter.
* tlsoffsets.h: Regenerate.
* winsup.h: Remove check_* declarations.
(check_iovec_for_read): Delete declaration.  Turn into a define instead.
(check_iovec_for_write): Ditto.
(check_iovec): New declaration.
* thread.h: Use ifdef guard name consistent with other header files.
2005-07-03 02:40:30 +00:00

126 lines
3.3 KiB
C

//;# autogenerated: Do not edit.
//; $tls::sizeof__cygtls = 3980;
//; $tls::func = -3980;
//; $tls::pfunc = 0;
//; $tls::saved_errno = -3976;
//; $tls::psaved_errno = 4;
//; $tls::sa_flags = -3972;
//; $tls::psa_flags = 8;
//; $tls::oldmask = -3968;
//; $tls::poldmask = 12;
//; $tls::deltamask = -3964;
//; $tls::pdeltamask = 16;
//; $tls::event = -3960;
//; $tls::pevent = 20;
//; $tls::errno_addr = -3956;
//; $tls::perrno_addr = 24;
//; $tls::initialized = -3952;
//; $tls::pinitialized = 28;
//; $tls::sigmask = -3948;
//; $tls::psigmask = 32;
//; $tls::sigwait_mask = -3944;
//; $tls::psigwait_mask = 36;
//; $tls::sigwait_info = -3940;
//; $tls::psigwait_info = 40;
//; $tls::threadkill = -3936;
//; $tls::pthreadkill = 44;
//; $tls::infodata = -3932;
//; $tls::pinfodata = 48;
//; $tls::tid = -3784;
//; $tls::ptid = 196;
//; $tls::local_clib = -3780;
//; $tls::plocal_clib = 200;
//; $tls::__dontuse = -3780;
//; $tls::p__dontuse = 200;
//; $tls::locals = -2716;
//; $tls::plocals = 1264;
//; $tls::_ctinfo = -1092;
//; $tls::p_ctinfo = 2888;
//; $tls::_myfault = -1088;
//; $tls::p_myfault = 2892;
//; $tls::_myfault_errno = -1084;
//; $tls::p_myfault_errno = 2896;
//; $tls::wq = -1080;
//; $tls::pwq = 2900;
//; $tls::prev = -1052;
//; $tls::pprev = 2928;
//; $tls::next = -1048;
//; $tls::pnext = 2932;
//; $tls::stackptr = -1044;
//; $tls::pstackptr = 2936;
//; $tls::sig = -1040;
//; $tls::psig = 2940;
//; $tls::incyg = -1036;
//; $tls::pincyg = 2944;
//; $tls::spinning = -1032;
//; $tls::pspinning = 2948;
//; $tls::stacklock = -1028;
//; $tls::pstacklock = 2952;
//; $tls::stack = -1024;
//; $tls::pstack = 2956;
//; $tls::padding = 0;
//; $tls::ppadding = 3980;
//; __DATA__
#define tls_func (-3980)
#define tls_pfunc (0)
#define tls_saved_errno (-3976)
#define tls_psaved_errno (4)
#define tls_sa_flags (-3972)
#define tls_psa_flags (8)
#define tls_oldmask (-3968)
#define tls_poldmask (12)
#define tls_deltamask (-3964)
#define tls_pdeltamask (16)
#define tls_event (-3960)
#define tls_pevent (20)
#define tls_errno_addr (-3956)
#define tls_perrno_addr (24)
#define tls_initialized (-3952)
#define tls_pinitialized (28)
#define tls_sigmask (-3948)
#define tls_psigmask (32)
#define tls_sigwait_mask (-3944)
#define tls_psigwait_mask (36)
#define tls_sigwait_info (-3940)
#define tls_psigwait_info (40)
#define tls_threadkill (-3936)
#define tls_pthreadkill (44)
#define tls_infodata (-3932)
#define tls_pinfodata (48)
#define tls_tid (-3784)
#define tls_ptid (196)
#define tls_local_clib (-3780)
#define tls_plocal_clib (200)
#define tls___dontuse (-3780)
#define tls_p__dontuse (200)
#define tls_locals (-2716)
#define tls_plocals (1264)
#define tls__ctinfo (-1092)
#define tls_p_ctinfo (2888)
#define tls__myfault (-1088)
#define tls_p_myfault (2892)
#define tls__myfault_errno (-1084)
#define tls_p_myfault_errno (2896)
#define tls_wq (-1080)
#define tls_pwq (2900)
#define tls_prev (-1052)
#define tls_pprev (2928)
#define tls_next (-1048)
#define tls_pnext (2932)
#define tls_stackptr (-1044)
#define tls_pstackptr (2936)
#define tls_sig (-1040)
#define tls_psig (2940)
#define tls_incyg (-1036)
#define tls_pincyg (2944)
#define tls_spinning (-1032)
#define tls_pspinning (2948)
#define tls_stacklock (-1028)
#define tls_pstacklock (2952)
#define tls_stack (-1024)
#define tls_pstack (2956)
#define tls_padding (0)
#define tls_ppadding (3980)