diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-01-16 12:32:38 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-01-18 20:07:40 -0500 |
commit | cb45babbeff337df9e0d96a251db2b9b325f9d18 (patch) | |
tree | 519bffc379afd423c1f5e70c9d584f797ff8bb36 /src/stat.h | |
parent | 3fa8f1a22ad120322bbc68823ca9759d8939b131 (diff) | |
download | bfs-cb45babbeff337df9e0d96a251db2b9b325f9d18.tar.xz |
stat: Expose bfs_{fstatat,statx}_flags()
Diffstat (limited to 'src/stat.h')
-rw-r--r-- | src/stat.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -138,12 +138,22 @@ struct bfs_stat { int bfs_stat(int at_fd, const char *at_path, enum bfs_stat_flags flags, struct bfs_stat *buf); /** + * Convert bfs_stat_flags to fstatat() flags. + */ +int bfs_fstatat_flags(enum bfs_stat_flags flags); + +/** * Convert struct stat to struct bfs_stat. */ void bfs_stat_convert(struct bfs_stat *dest, const struct stat *src); #if BFS_USE_STATX /** + * Convert bfs_stat_flags to statx() flags. + */ +int bfs_statx_flags(enum bfs_stat_flags flags); + +/** * Convert struct statx to struct bfs_stat. */ int bfs_statx_convert(struct bfs_stat *dest, const struct statx *src); |