summaryrefslogtreecommitdiffstats
path: root/src/stat.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-16 12:32:38 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-18 20:07:40 -0500
commitcb45babbeff337df9e0d96a251db2b9b325f9d18 (patch)
tree519bffc379afd423c1f5e70c9d584f797ff8bb36 /src/stat.h
parent3fa8f1a22ad120322bbc68823ca9759d8939b131 (diff)
downloadbfs-cb45babbeff337df9e0d96a251db2b9b325f9d18.tar.xz
stat: Expose bfs_{fstatat,statx}_flags()
Diffstat (limited to 'src/stat.h')
-rw-r--r--src/stat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stat.h b/src/stat.h
index 68a5c13..17b7fe1 100644
--- a/src/stat.h
+++ b/src/stat.h
@@ -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);