From b2e69d3f76270fc4051801cac923307514184055 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 20 Dec 2018 17:06:27 -0500 Subject: stat: Unify bfs_stat_time() implementations --- stat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stat.h') 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 -- cgit v1.2.3