* fhandler_socket.cc (fhandler_socket::fstat): Don't assume that socket is
unix-domain socket. * times.cc (hires_ms::prime): Set init flag. * times.cc (hires_ms::prime): Adjust epoch of initime_us from 1601 to 1970.
This commit is contained in:
parent
0953fe640f
commit
9cde3cf3b5
winsup/cygwin
|
@ -1,3 +1,17 @@
|
||||||
|
2002-06-07 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* fhandler_socket.cc (fhandler_socket::fstat): Don't assume that socket
|
||||||
|
is unix-domain socket.
|
||||||
|
|
||||||
|
2002-06-07 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* times.cc (hires_ms::prime): Set init flag.
|
||||||
|
|
||||||
|
2002-06-07 Conrad Scott <conrad.scott@dsl.pipex.com>
|
||||||
|
|
||||||
|
* times.cc (hires_ms::prime): Adjust epoch of initime_us from 1601 to
|
||||||
|
1970.
|
||||||
|
|
||||||
2002-06-06 Christopher Faylor <cgf@redhat.com>
|
2002-06-06 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* autoload.cc (timeGetDevCaps): Define new autoload function.
|
* autoload.cc (timeGetDevCaps): Define new autoload function.
|
||||||
|
|
|
@ -256,9 +256,10 @@ fhandler_socket::dup (fhandler_base *child)
|
||||||
int __stdcall
|
int __stdcall
|
||||||
fhandler_socket::fstat (struct __stat64 *buf, path_conv *pc)
|
fhandler_socket::fstat (struct __stat64 *buf, path_conv *pc)
|
||||||
{
|
{
|
||||||
fhandler_disk_file fh;
|
int res = fhandler_base::fstat (buf, pc);
|
||||||
fh.set_name (cstrdup (get_name ()), get_win32_name ());
|
if (!res)
|
||||||
return fh.fstat (buf, pc);
|
buf->st_ino = get_handle ();
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -646,14 +646,18 @@ hires_ms::prime ()
|
||||||
minperiod = 0;
|
minperiod = 0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
minperiod = min (max(tc.wPeriodMin, 1), tc.wPeriodMax);
|
minperiod = min (max (tc.wPeriodMin, 1), tc.wPeriodMax);
|
||||||
timeBeginPeriod (minperiod);
|
timeBeginPeriod (minperiod);
|
||||||
}
|
}
|
||||||
|
|
||||||
initime_ms = timeGetTime ();
|
initime_ms = timeGetTime ();
|
||||||
GetSystemTimeAsFileTime (&f);
|
GetSystemTimeAsFileTime (&f);
|
||||||
SetThreadPriority (GetCurrentThread (), priority);
|
SetThreadPriority (GetCurrentThread (), priority);
|
||||||
|
|
||||||
|
inited = 1;
|
||||||
initime_us.HighPart = f.dwHighDateTime;
|
initime_us.HighPart = f.dwHighDateTime;
|
||||||
initime_us.LowPart = f.dwLowDateTime;
|
initime_us.LowPart = f.dwLowDateTime;
|
||||||
|
initime_us.QuadPart -= FACTOR;
|
||||||
initime_us.QuadPart /= 10;
|
initime_us.QuadPart /= 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue