summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 4438a5d2c..ba539a33e 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -154,6 +154,16 @@ fhandler_base::set_name (path_conv &in_pc)
pc.set_normalized_path (in_pc.normalized_path, false);
}
+char *fhandler_base::get_proc_fd_name (char *buf)
+{
+ if (get_name ())
+ return strcpy (buf, get_name ());
+ if (dev ().name)
+ return strcpy (buf, dev ().name);
+ __small_sprintf (buf, "device:[%d:%d]", get_major (), get_minor ());
+ return buf;
+}
+
/* Detect if we are sitting at EOF for conditions where Windows
returns an error but UNIX doesn't. */
static int __stdcall