newlib/winsup/cygwin/tlsoffsets.h

130 lines
3.4 KiB
C
Raw Normal View History

//;# autogenerated: Do not edit.
* Makefile.in (DLL_OFILES): Add tls_pbuf.o. * autoload.cc (CreateDesktopW): Replace CreateDesktopA. (CreateWindowStationW): Replace CreateWindowStationA. (GetUserObjectInformationW): Replace GetUserObjectInformationA. * cygheap.h (cwdstuff::get): Assume default buffer size NT_MAX_PATH. * cygtls.cc (_cygtls::remove): Free temporary TLS path buffers. * cygtls.h (TP_NUM_C_BUFS): Define. (TP_NUM_W_BUFS): Define. (class tls_pathbuf): New class to store pointers to thread local temporary path buffers. (_local_storage::pathbufs): New member. * environ.cc (win_env::add_cache): Use temporary TLS path buffer instead of stack based buffer. (posify): Get temporary outenv buffer from calling function. (environ_init): Create temporary TLS path buffer for posify. (build_env): Create Windows environment block as WCHAR buffer. * environ.h (build_env): Change declaration accordingly. * external.cc (sync_winenv): Accommodate build_env change. * fhandler_console.cc (fhandler_console::need_invisible): Use GetUserObjectInformationW and CreateWindowStationW. * fhandler_process.cc (format_process_maps): Use temporary TLS path buffer instead of stack based buffer. * fork.cc (frok::parent): Convert to use CreateProcessW. * path.cc: Throughout use temporary TLS path buffers instead of stack based buffer. Replace checks for CYG_MAX_PATH by checks for NT_MAX_PATH. (getfileattr): New function to replace GetFileAttributesA. (normalize_win32_path): Remove Win32 and NT long path prefixes. (getwd): Assume PATH_MAX + 1 buffer per SUSv3. * path.h (class path_conv): Set path buffer to size NT_MAX_PATH. (iswdrive): Define. * pinfo.cc (commune_process): Use temporary TLS path buffer instead of stack based buffer. * registry.cc (get_registry_hive_path): Ditto. (load_registry_hive): Ditto. * spawn.cc (spawn_guts): Convert to use CreateProcessW and CreateProcessAsUserW. (av::fixup): Open/close file using NtOpenFile/NtClose. * syscalls.cc (mknod_worker): Allow PATH_MAX file name. (mknod32): Ditto. (getusershell): Ditto. * tls_pbuf.cc: New file implementing tls_pathbuf and tmp_pathbuf methods. * tls_pbuf.h: New header for files using tmp_pathbuf. * tlsoffsets.h: Regenerate. * winsup.h (NT_MAX_PATH): Define as 32767 to avoid USHORT overflow.
2008-03-07 12:24:51 +01:00
//; $tls::sizeof__cygtls = 4284;
//; $tls::func = -12700;
//; $tls::pfunc = 0;
//; $tls::el = -12696;
//; $tls::pel = 4;
//; $tls::saved_errno = -12688;
//; $tls::psaved_errno = 12;
//; $tls::sa_flags = -12684;
//; $tls::psa_flags = 16;
//; $tls::oldmask = -12680;
//; $tls::poldmask = 20;
//; $tls::deltamask = -12676;
//; $tls::pdeltamask = 24;
//; $tls::event = -12672;
//; $tls::pevent = 28;
//; $tls::errno_addr = -12668;
//; $tls::perrno_addr = 32;
//; $tls::sigmask = -12664;
//; $tls::psigmask = 36;
//; $tls::sigwait_mask = -12660;
//; $tls::psigwait_mask = 40;
//; $tls::sigwait_info = -12656;
//; $tls::psigwait_info = 44;
//; $tls::thread_context = -12652;
//; $tls::pthread_context = 48;
//; $tls::thread_id = -12440;
//; $tls::pthread_id = 260;
//; $tls::threadkill = -12436;
//; $tls::pthreadkill = 264;
//; $tls::infodata = -12432;
//; $tls::pinfodata = 268;
//; $tls::tid = -12284;
//; $tls::ptid = 416;
//; $tls::local_clib = -12280;
//; $tls::plocal_clib = 420;
//; $tls::__dontuse = -12280;
//; $tls::p__dontuse = 420;
//; $tls::locals = -11216;
//; $tls::plocals = 1484;
* Makefile.in (DLL_OFILES): Add tls_pbuf.o. * autoload.cc (CreateDesktopW): Replace CreateDesktopA. (CreateWindowStationW): Replace CreateWindowStationA. (GetUserObjectInformationW): Replace GetUserObjectInformationA. * cygheap.h (cwdstuff::get): Assume default buffer size NT_MAX_PATH. * cygtls.cc (_cygtls::remove): Free temporary TLS path buffers. * cygtls.h (TP_NUM_C_BUFS): Define. (TP_NUM_W_BUFS): Define. (class tls_pathbuf): New class to store pointers to thread local temporary path buffers. (_local_storage::pathbufs): New member. * environ.cc (win_env::add_cache): Use temporary TLS path buffer instead of stack based buffer. (posify): Get temporary outenv buffer from calling function. (environ_init): Create temporary TLS path buffer for posify. (build_env): Create Windows environment block as WCHAR buffer. * environ.h (build_env): Change declaration accordingly. * external.cc (sync_winenv): Accommodate build_env change. * fhandler_console.cc (fhandler_console::need_invisible): Use GetUserObjectInformationW and CreateWindowStationW. * fhandler_process.cc (format_process_maps): Use temporary TLS path buffer instead of stack based buffer. * fork.cc (frok::parent): Convert to use CreateProcessW. * path.cc: Throughout use temporary TLS path buffers instead of stack based buffer. Replace checks for CYG_MAX_PATH by checks for NT_MAX_PATH. (getfileattr): New function to replace GetFileAttributesA. (normalize_win32_path): Remove Win32 and NT long path prefixes. (getwd): Assume PATH_MAX + 1 buffer per SUSv3. * path.h (class path_conv): Set path buffer to size NT_MAX_PATH. (iswdrive): Define. * pinfo.cc (commune_process): Use temporary TLS path buffer instead of stack based buffer. * registry.cc (get_registry_hive_path): Ditto. (load_registry_hive): Ditto. * spawn.cc (spawn_guts): Convert to use CreateProcessW and CreateProcessAsUserW. (av::fixup): Open/close file using NtOpenFile/NtClose. * syscalls.cc (mknod_worker): Allow PATH_MAX file name. (mknod32): Ditto. (getusershell): Ditto. * tls_pbuf.cc: New file implementing tls_pathbuf and tmp_pathbuf methods. * tls_pbuf.h: New header for files using tmp_pathbuf. * tlsoffsets.h: Regenerate. * winsup.h (NT_MAX_PATH): Define as 32767 to avoid USHORT overflow.
2008-03-07 12:24:51 +01:00
//; $tls::_ctinfo = -9512;
//; $tls::p_ctinfo = 3188;
//; $tls::andreas = -9508;
//; $tls::pandreas = 3192;
//; $tls::wq = -9500;
//; $tls::pwq = 3200;
//; $tls::prev = -9472;
//; $tls::pprev = 3228;
//; $tls::next = -9468;
//; $tls::pnext = 3232;
//; $tls::sig = -9464;
//; $tls::psig = 3236;
//; $tls::incyg = -9460;
//; $tls::pincyg = 3240;
//; $tls::spinning = -9456;
//; $tls::pspinning = 3244;
//; $tls::stacklock = -9452;
//; $tls::pstacklock = 3248;
//; $tls::stackptr = -9448;
//; $tls::pstackptr = 3252;
//; $tls::stack = -9444;
//; $tls::pstack = 3256;
//; $tls::initialized = -8420;
//; $tls::pinitialized = 4280;
//; __DATA__
#define tls_func (-12700)
#define tls_pfunc (0)
#define tls_el (-12696)
#define tls_pel (4)
#define tls_saved_errno (-12688)
#define tls_psaved_errno (12)
#define tls_sa_flags (-12684)
#define tls_psa_flags (16)
#define tls_oldmask (-12680)
#define tls_poldmask (20)
#define tls_deltamask (-12676)
#define tls_pdeltamask (24)
#define tls_event (-12672)
#define tls_pevent (28)
#define tls_errno_addr (-12668)
#define tls_perrno_addr (32)
#define tls_sigmask (-12664)
#define tls_psigmask (36)
#define tls_sigwait_mask (-12660)
#define tls_psigwait_mask (40)
#define tls_sigwait_info (-12656)
#define tls_psigwait_info (44)
#define tls_thread_context (-12652)
#define tls_pthread_context (48)
#define tls_thread_id (-12440)
#define tls_pthread_id (260)
#define tls_threadkill (-12436)
#define tls_pthreadkill (264)
#define tls_infodata (-12432)
#define tls_pinfodata (268)
#define tls_tid (-12284)
#define tls_ptid (416)
#define tls_local_clib (-12280)
#define tls_plocal_clib (420)
#define tls___dontuse (-12280)
#define tls_p__dontuse (420)
#define tls_locals (-11216)
#define tls_plocals (1484)
* Makefile.in (DLL_OFILES): Add tls_pbuf.o. * autoload.cc (CreateDesktopW): Replace CreateDesktopA. (CreateWindowStationW): Replace CreateWindowStationA. (GetUserObjectInformationW): Replace GetUserObjectInformationA. * cygheap.h (cwdstuff::get): Assume default buffer size NT_MAX_PATH. * cygtls.cc (_cygtls::remove): Free temporary TLS path buffers. * cygtls.h (TP_NUM_C_BUFS): Define. (TP_NUM_W_BUFS): Define. (class tls_pathbuf): New class to store pointers to thread local temporary path buffers. (_local_storage::pathbufs): New member. * environ.cc (win_env::add_cache): Use temporary TLS path buffer instead of stack based buffer. (posify): Get temporary outenv buffer from calling function. (environ_init): Create temporary TLS path buffer for posify. (build_env): Create Windows environment block as WCHAR buffer. * environ.h (build_env): Change declaration accordingly. * external.cc (sync_winenv): Accommodate build_env change. * fhandler_console.cc (fhandler_console::need_invisible): Use GetUserObjectInformationW and CreateWindowStationW. * fhandler_process.cc (format_process_maps): Use temporary TLS path buffer instead of stack based buffer. * fork.cc (frok::parent): Convert to use CreateProcessW. * path.cc: Throughout use temporary TLS path buffers instead of stack based buffer. Replace checks for CYG_MAX_PATH by checks for NT_MAX_PATH. (getfileattr): New function to replace GetFileAttributesA. (normalize_win32_path): Remove Win32 and NT long path prefixes. (getwd): Assume PATH_MAX + 1 buffer per SUSv3. * path.h (class path_conv): Set path buffer to size NT_MAX_PATH. (iswdrive): Define. * pinfo.cc (commune_process): Use temporary TLS path buffer instead of stack based buffer. * registry.cc (get_registry_hive_path): Ditto. (load_registry_hive): Ditto. * spawn.cc (spawn_guts): Convert to use CreateProcessW and CreateProcessAsUserW. (av::fixup): Open/close file using NtOpenFile/NtClose. * syscalls.cc (mknod_worker): Allow PATH_MAX file name. (mknod32): Ditto. (getusershell): Ditto. * tls_pbuf.cc: New file implementing tls_pathbuf and tmp_pathbuf methods. * tls_pbuf.h: New header for files using tmp_pathbuf. * tlsoffsets.h: Regenerate. * winsup.h (NT_MAX_PATH): Define as 32767 to avoid USHORT overflow.
2008-03-07 12:24:51 +01:00
#define tls__ctinfo (-9512)
#define tls_p_ctinfo (3188)
#define tls_andreas (-9508)
#define tls_pandreas (3192)
#define tls_wq (-9500)
#define tls_pwq (3200)
#define tls_prev (-9472)
#define tls_pprev (3228)
#define tls_next (-9468)
#define tls_pnext (3232)
#define tls_sig (-9464)
#define tls_psig (3236)
#define tls_incyg (-9460)
#define tls_pincyg (3240)
#define tls_spinning (-9456)
#define tls_pspinning (3244)
#define tls_stacklock (-9452)
#define tls_pstacklock (3248)
#define tls_stackptr (-9448)
#define tls_pstackptr (3252)
#define tls_stack (-9444)
#define tls_pstack (3256)
#define tls_initialized (-8420)
#define tls_pinitialized (4280)