diff options
author | Christopher Faylor <me@cgf.cx> | 2005-03-16 21:20:56 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-03-16 21:20:56 +0000 |
commit | 2693c1ac5651248b79c3a7805615b043a901ae6f (patch) | |
tree | 9baedb56d5c51dd988be04ed51023e74ccbc1679 /winsup/cygwin/fhandler.h | |
parent | 80e4c577b6ada0d6b64bf139075c2f9983608bc8 (diff) | |
download | cygnal-2693c1ac5651248b79c3a7805615b043a901ae6f.tar.gz cygnal-2693c1ac5651248b79c3a7805615b043a901ae6f.tar.bz2 cygnal-2693c1ac5651248b79c3a7805615b043a901ae6f.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r-- | winsup/cygwin/fhandler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index bdc8d3b8a..2d5998b3b 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -38,6 +38,14 @@ struct dirent; struct iovec; struct __acl32; +enum dirent_states +{ + dirent_ok = 0, + dirent_saw_dot = 1, + dirent_saw_dot_dot = 2, + dirent_saw_eof = 4 +}; + enum conn_state { unconnected = 0, |