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>2006-03-09 02:55:14 +0300
committerChristopher Faylor <me@cgf.cx>2006-03-09 02:55:14 +0300
commit9aca6a48a57bca1a59a236cf6dd20c4da5f78fb2 (patch)
tree01d21a27df25f46260042121d190a6c38ab07e85 /winsup/cygwin/cygtls.h
parent6ca53189400aa2d4b12ccea4378f5b2ff759cf50 (diff)
* cygtls.h (_cygtls::retaddr): New method.
* dll_init.cc (cygwin_detach_dll): Use new tls function to find return address since this function is now signal guarded. (update_envptrs): Remove unneeded braces. * syscalls.cc (statvfs): Coerce full_path to avoid a gcc warning.
Diffstat (limited to 'winsup/cygwin/cygtls.h')
-rw-r--r--winsup/cygwin/cygtls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h
index 609eb9697..5e3155a76 100644
--- a/winsup/cygwin/cygtls.h
+++ b/winsup/cygwin/cygtls.h
@@ -183,6 +183,7 @@ struct _cygtls
void remove (DWORD);
void push (__stack_t) __attribute__ ((regparm (2)));
__stack_t pop () __attribute__ ((regparm (1)));
+ __stack_t retaddr () {return stackptr[-1];}
bool isinitialized () const {return initialized == CYGTLS_INITIALIZED;}
bool interrupt_now (CONTEXT *, int, void *, struct sigaction&)
__attribute__((regparm(3)));