* fhandler.h (fhandler_registry::opendir): Declare.

* fhandler_registry.cc (fhandler_registry::opendir): New function.
This commit is contained in:
Corinna Vinschen 2012-01-20 12:53:26 +00:00
parent c3a549f687
commit 5259273091
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-01-20 Corinna Vinschen <corinna@vinschen.de>
* fhandler.h (fhandler_registry::opendir): Declare.
* fhandler_registry.cc (fhandler_registry::opendir): New function.
2012-01-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* include/cygwin/config.h (_GLIBC_EXTENSION): Define.

View File

@ -1979,6 +1979,7 @@ class fhandler_registry: public fhandler_proc
fhandler_registry ();
void set_name (path_conv &pc);
virtual_ftype_t exists();
DIR *opendir (int fd) __attribute__ ((regparm (2)));
int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
long telldir (DIR *);
void seekdir (DIR *, long);

View File

@ -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)
{