diff options
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -12,9 +12,15 @@ #ifndef BFS_UTIL_H #define BFS_UTIL_H +#include <dirent.h> #include <stdbool.h> /** + * readdir() wrapper that makes error handling cleaner. + */ +int xreaddir(DIR *dir, struct dirent **de); + +/** * Check if a file descriptor is open. */ bool isopen(int fd); |