summaryrefslogtreecommitdiffstats
path: root/src/stat.h
diff options
context:
space:
mode:
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);