diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-12-20 17:06:27 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-12-20 17:06:27 -0500 |
commit | b2e69d3f76270fc4051801cac923307514184055 (patch) | |
tree | 6dbfd40393a437ede929ab1748520a050e593b02 /stat.h | |
parent | 5bec8030c77b735147cdf73359bc8f91b19e28fb (diff) | |
download | bfs-b2e69d3f76270fc4051801cac923307514184055.tar.xz |
stat: Unify bfs_stat_time() implementations
Diffstat (limited to 'stat.h')
-rw-r--r-- | stat.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |