From 36cb1762dd647a6c9cbb0ab36993c83798c854f1 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 25 Dec 2018 18:08:43 -0500 Subject: stat: Provide a helper for getting human-readable field names And fix -newerXY if the Y time doesn't exist. --- stat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stat.h') diff --git a/stat.h b/stat.h index 4bad74e..d9c9588 100644 --- a/stat.h +++ b/stat.h @@ -46,6 +46,11 @@ enum bfs_stat_field { BFS_STAT_MTIME = 1 << 13, }; +/** + * Get the human-readable name of a bfs_stat field. + */ +const char *bfs_stat_field_name(enum bfs_stat_field field); + /** * bfs_stat() flags. */ -- cgit v1.2.3