diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-08 01:28:49 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-08 01:28:49 +0300 |
commit | 6c9a5ebbfcb3de5c66e83aae630a6a44124ad372 (patch) | |
tree | c195b15a15c2df4ef5b6ecc64291053ac3735dc9 /winsup/cygwin/fhandler_proc.cc | |
parent | c09178b052512d51998d03b1a26991192d239ac5 (diff) |
* hires.h (hires_ms::initime_ms): Delete.
(hires_ms::initime_us): Just define as LONGLONG.
(hires_ms::uptime): New function.
* select.cc (select_stuff::wait): Use gtod for timing to attempt to avoid
windows 32 bit wraparound.
* times.cc (systime): New function.
(times): Replace GetTickCount with gtod.uptime.
(hires_us::prime): Use systime() to calculate system time rather than calling
GetSystemTimeAsFileTime directly.
(hires_ms::prime): Ditto. Eliminate initime_ms.
(hires_ms::usecs): Try harder to detect wraparound.
* fhandler_proc.cc (format_proc_partitions): Set drive_size to zero to avoid a
compiler warning.
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r-- | winsup/cygwin/fhandler_proc.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index af603ade2..0ecfc0d5d 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -997,6 +997,8 @@ format_proc_partitions (char *destbuf, size_t maxsize) * dg->SectorsPerTrack * dg->BytesPerSector; } + else + drive_size = 0; if (!pi && !pix && !dg) debug_printf ("DeviceIoControl %E"); else |