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>2011-10-10 22:59:56 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-10-10 22:59:56 +0400
commit4c34aaba558c4c46dc430b7e403d768da510d977 (patch)
tree9ef2a7f22a4e74f0df2745f0171449eb27c35d87 /winsup/cygwin/fhandler_process.cc
parent378eaba88b7a25a4368b323ba9b96d7adfdd92c6 (diff)
* fhandler.h (fhandler_process::closedir): Declare.
* fhandler_process.cc (fhandler_process::closedir): New function to avoid a SEGV in fhandler_proc::closedir.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 91e2286d0..128b35aa4 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -210,6 +210,12 @@ fhandler_process::opendir (int fd)
}
int
+fhandler_process::closedir (DIR *dir)
+{
+ return fhandler_virtual::closedir (dir);
+}
+
+int
fhandler_process::readdir (DIR *dir, dirent *de)
{
int res = ENMFILE;