Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-08 05:24:58 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-08 05:24:58 +0400
commit9cde3cf3b51759d98dea14d7b5ed0a0b303d72a6 (patch)
treed32f1d2f715b9771ca2f416c14f8c59762750a19 /winsup/cygwin/fhandler_socket.cc
parent0953fe640f177b565578ed7ecc77169ec1a914fa (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r--winsup/cygwin/fhandler_socket.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index bed274bab..3207aaf07 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -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