* dir.cc: Rename opendir_* to dirent_* throughout.

(opendir_states): Move and rename.
* fhandler.h (dirent_states): to here.
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Use raw readdir when
skipping through entries since it is keeping track of "." and "..".
(fhandler_cygdrive::seekdir): Use fhandler_disk_file::readdir to do everything.
* fhandler_virtual.cc (fhandler_virtual::opendir): Set flag indicating that we
provide .  and ..
(fhandler_virtual::seekdir): Ditto.
(fhandler_virtual::rewinddir): Ditto.
* fhandler_registry.cc (fhandler_registry::rewinddir): Ditto.
This commit is contained in:
Christopher Faylor
2005-03-16 21:20:56 +00:00
parent 80e4c577b6
commit 2693c1ac56
5 changed files with 34 additions and 15 deletions

View File

@@ -378,6 +378,7 @@ fhandler_registry::rewinddir (DIR * dir)
dir->__handle = INVALID_HANDLE_VALUE;
}
dir->__d_position = 0;
dir->__flags = dirent_saw_dot | dirent_saw_dot_dot;
return;
}