summaryrefslogtreecommitdiffstats
path: root/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/stat.h b/stat.h
index dc24cb4..4bad74e 100644
--- a/stat.h
+++ b/stat.h
@@ -108,4 +108,9 @@ int bfs_stat(int at_fd, const char *at_path, int at_flags, enum bfs_stat_flag fl
*/
int bfs_fstat(int fd, struct bfs_stat *buf);
+/**
+ * Get a particular time field from a bfs_stat() buffer.
+ */
+const struct timespec *bfs_stat_time(const struct bfs_stat *buf, enum bfs_stat_field field);
+
#endif // BFS_STAT_H