Operations on open directories. More...
#include <vfs.h>
Data Fields | |
int(* | opendir )(vfs_DIR *dirp, const char *dirname) |
Open a directory for reading with readdir. | |
int(* | readdir )(vfs_DIR *dirp, vfs_dirent_t *entry) |
Read a single entry from the open directory dirp and advance the read position by one. | |
int(* | closedir )(vfs_DIR *dirp) |
Close an open directory. | |
int(* vfs_dir_ops::closedir) (vfs_DIR *dirp) |
int(* vfs_dir_ops::opendir) (vfs_DIR *dirp, const char *dirname) |
int(* vfs_dir_ops::readdir) (vfs_DIR *dirp, vfs_dirent_t *entry) |
Read a single entry from the open directory dirp and advance the read position by one.
entry
will be populated with information about the next entry in the directory stream dirp
If entry
was updated successfully, readdir
shall return 1.
If the end of stream was reached, readdir
shall return 0 and entry
shall remain untouched.
[in] | dirp | pointer to open directory |
[out] | entry | directory entry information |
entry
was updated dirp
has reached the end of the directory index