diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-03-23 13:59:48 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-06-13 11:06:47 -0400 |
commit | 6719107e95a41b9ef241bdaa272eed505865710c (patch) | |
tree | 0d44c4640ef123ee8f74e051b6fe5c628d62de95 /src/dir.h | |
parent | 9dca9f2bcd06f921312762e0b07254f5f8f51fc2 (diff) | |
download | bfs-6719107e95a41b9ef241bdaa272eed505865710c.tar.xz |
dir: New bfs_polldir() function for directory readahead
Diffstat (limited to 'src/dir.h')
-rw-r--r-- | src/dir.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -80,6 +80,16 @@ struct bfs_dir *bfs_opendir(int at_fd, const char *at_path); int bfs_dirfd(const struct bfs_dir *dir); /** + * Performs any I/O necessary for the next bfs_readdir() call. + * + * @param dir + * The directory to poll. + * @return + * 1 on success, 0 on EOF, or -1 on failure. + */ +int bfs_polldir(struct bfs_dir *dir); + +/** * Read a directory entry. * * @param dir |