* 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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user