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:
authorCorinna Vinschen <corinna@vinschen.de>2012-01-20 16:53:26 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-01-20 16:53:26 +0400
commit5259273091c45c6338e3452f8571f32884f385e4 (patch)
treef7b795e4e6a88e11ede1b7b1f28f13a3c1941875 /winsup/cygwin/fhandler_registry.cc
parentc3a549f6878359c9f5b950b58e16a1a2beed3290 (diff)
* fhandler.h (fhandler_registry::opendir): Declare.
* fhandler_registry.cc (fhandler_registry::opendir): New function.
Diffstat (limited to 'winsup/cygwin/fhandler_registry.cc')
-rw-r--r--winsup/cygwin/fhandler_registry.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc
index 50233a886..5f6246439 100644
--- a/winsup/cygwin/fhandler_registry.cc
+++ b/winsup/cygwin/fhandler_registry.cc
@@ -537,6 +537,14 @@ fhandler_registry::fstat (struct __stat64 *buf)
return 0;
}
+DIR *
+fhandler_registry::opendir (int fd)
+{
+ /* Skip fhandler_proc::opendir, which allocates dir->_d_handle for its
+ own devilish purposes... */
+ return fhandler_virtual::opendir (fd);
+}
+
int
fhandler_registry::readdir (DIR *dir, dirent *de)
{