* 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.
This commit is contained in:
Christopher Faylor
2006-03-08 23:55:14 +00:00
parent 6ca5318940
commit 9aca6a48a5
4 changed files with 15 additions and 7 deletions

View File

@@ -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)));