* 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

@@ -1850,14 +1850,14 @@ statvfs (const char *fname, struct statvfs *sfs)
OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS, NULL);
if (hdl == INVALID_HANDLE_VALUE)
debug_printf ("CreateFile (%s) failed, %E", full_path);
debug_printf ("CreateFile (%s) failed, %E", (char *) full_path);
else
{
NTFS_VOLUME_DATA_BUFFER nvdb;
DWORD bytes;
if (!DeviceIoControl (hdl, FSCTL_GET_NTFS_VOLUME_DATA, NULL,
0, &nvdb, sizeof nvdb, &bytes, NULL))
debug_printf ("DeviceIoControl (%s) failed, %E", full_path);
debug_printf ("DeviceIoControl (%s) failed, %E", (char *) full_path);
else
totalc = nvdb.TotalClusters.QuadPart;
CloseHandle (hdl);