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:
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r--winsup/cygwin/fhandler_socket.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index 803ba44cb..a7e52936e 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -147,6 +147,15 @@ fhandler_socket::~fhandler_socket ()
cfree (sun_path);
}
+char *fhandler_socket::get_proc_fd_name (char *buf)
+{
+ if (get_sun_path ())
+ __small_sprintf (buf, "%s", get_sun_path ());
+ else
+ __small_sprintf (buf, "socket:[%d]", get_socket ());
+ return buf;
+}
+
void
fhandler_socket::set_connect_secret ()
{