* 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:
Christopher Faylor
2002-06-08 01:24:58 +00:00
parent 0953fe640f
commit 9cde3cf3b5
3 changed files with 23 additions and 4 deletions

View File

@ -256,9 +256,10 @@ fhandler_socket::dup (fhandler_base *child)
int __stdcall
fhandler_socket::fstat (struct __stat64 *buf, path_conv *pc)
{
fhandler_disk_file fh;
fh.set_name (cstrdup (get_name ()), get_win32_name ());
return fh.fstat (buf, pc);
int res = fhandler_base::fstat (buf, pc);
if (!res)
buf->st_ino = get_handle ();
return res;
}
int