summaryrefslogtreecommitdiffstats
path: root/stat.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-12-20 17:06:27 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-12-20 17:06:27 -0500
commitb2e69d3f76270fc4051801cac923307514184055 (patch)
tree6dbfd40393a437ede929ab1748520a050e593b02 /stat.h
parent5bec8030c77b735147cdf73359bc8f91b19e28fb (diff)
downloadbfs-b2e69d3f76270fc4051801cac923307514184055.tar.xz
stat: Unify bfs_stat_time() implementations
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