* fhandler.h (fhandler_registry::opendir): Declare.
* fhandler_registry.cc (fhandler_registry::opendir): New function.
This commit is contained in:
parent
c3a549f687
commit
5259273091
@ -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>
|
2012-01-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
||||||
|
|
||||||
* include/cygwin/config.h (_GLIBC_EXTENSION): Define.
|
* include/cygwin/config.h (_GLIBC_EXTENSION): Define.
|
||||||
|
@ -1979,6 +1979,7 @@ class fhandler_registry: public fhandler_proc
|
|||||||
fhandler_registry ();
|
fhandler_registry ();
|
||||||
void set_name (path_conv &pc);
|
void set_name (path_conv &pc);
|
||||||
virtual_ftype_t exists();
|
virtual_ftype_t exists();
|
||||||
|
DIR *opendir (int fd) __attribute__ ((regparm (2)));
|
||||||
int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
|
int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
|
||||||
long telldir (DIR *);
|
long telldir (DIR *);
|
||||||
void seekdir (DIR *, long);
|
void seekdir (DIR *, long);
|
||||||
|
@ -537,6 +537,14 @@ fhandler_registry::fstat (struct __stat64 *buf)
|
|||||||
return 0;
|
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
|
int
|
||||||
fhandler_registry::readdir (DIR *dir, dirent *de)
|
fhandler_registry::readdir (DIR *dir, dirent *de)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user