summaryrefslogtreecommitdiffstats
path: root/stat.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-12-25 18:08:43 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-12-25 18:13:15 -0500
commit36cb1762dd647a6c9cbb0ab36993c83798c854f1 (patch)
tree4bc2fc1cca1400774855e0b2618b967bb9466947 /stat.h
parentb2e69d3f76270fc4051801cac923307514184055 (diff)
downloadbfs-36cb1762dd647a6c9cbb0ab36993c83798c854f1.tar.xz
stat: Provide a helper for getting human-readable field names
And fix -newerXY if the Y time doesn't exist.
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 4bad74e..d9c9588 100644
--- a/stat.h
+++ b/stat.h
@@ -47,6 +47,11 @@ enum bfs_stat_field {
};
/**
+ * Get the human-readable name of a bfs_stat field.
+ */
+const char *bfs_stat_field_name(enum bfs_stat_field field);
+
+/**
* bfs_stat() flags.
*/
enum bfs_stat_flag {