aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-10-10 18:59:56 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-10-10 18:59:56 +0000
commit4c34aaba558c4c46dc430b7e403d768da510d977 (patch)
tree9ef2a7f22a4e74f0df2745f0171449eb27c35d87 /winsup/cygwin/fhandler.h
parent378eaba88b7a25a4368b323ba9b96d7adfdd92c6 (diff)
downloadnewlib-4c34aaba558c4c46dc430b7e403d768da510d977.zip
newlib-4c34aaba558c4c46dc430b7e403d768da510d977.tar.gz
newlib-4c34aaba558c4c46dc430b7e403d768da510d977.tar.bz2
* 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.h')
-rw-r--r--winsup/cygwin/fhandler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index be6e012..cc391ae 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -1531,6 +1531,7 @@ class fhandler_process: public fhandler_proc
fhandler_process ();
virtual_ftype_t exists();
DIR *opendir (int fd) __attribute__ ((regparm (2)));
+ int closedir (DIR *);
int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
int open (int flags, mode_t mode = 0);
int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2)));