From e8309efda5499f88eb950ff652acdd3a6b07d678 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 1 Feb 2005 15:11:47 +0000 Subject: * fhandler.cc (fhandler_base::get_proc_fd_name): Don't generate "device:" entry. * fhandler.h (fhandler_socket::open): New method. (fhandler_pipe::open): New method. * fhandler_proc.cc (fhandler_proc::exists): Return -2 in case of /proc/self. * fhandler_process.cc (fhandler_process::exists): Return -2 in case of symlinks, -3 for pipes and -4 for sockets. (fhandler_process::fstat): Handle pipes and sockets. (fhandler_process::open): Handle opening /proc//fd. (fhandler_process::fill_filebuf): Generate empty names for non exisiting file descriptors. * fhandler_socket.cc (fhandler_socket::get_proc_fd_name): Always generate "socket:[number]" strings as on Linux. (fhandler_socket::open): New method. (fhandler_socket::fstat): Always return socket type. * path.cc (symlink_info::set): Remove unused second parameter. (path_conv::check): Handle pipes and sockets in /proc. Set correct device type for AF_LOCAL sockets. * pinfo.cc (_pinfo::commune_recv): Generate empty names for non exisiting file descriptors. (_pinfo::fd): Ditto. * pipe.cc (fhandler_pipe::open): New method. --- winsup/cygwin/fhandler.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'winsup/cygwin/fhandler.cc') diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index a58472b8c..5f60d0eb2 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -160,8 +160,7 @@ char *fhandler_base::get_proc_fd_name (char *buf) 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; + return strcpy (buf, ""); } /* Detect if we are sitting at EOF for conditions where Windows -- cgit v1.2.3