summaryrefslogtreecommitdiffstats
path: root/stat.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-03-06 13:40:24 -0500
committerTavian Barnes <tavianator@tavianator.com>2021-03-06 13:40:24 -0500
commit863b70d198f62f28581162473a521208dd67879e (patch)
tree9506283742eef1951ecaa897f4584b3941499a51 /stat.h
parent8f201b2380aef3a566316343e7e71c6fc995cf41 (diff)
downloadbfs-863b70d198f62f28581162473a521208dd67879e.tar.xz
Implement -flags, from FreeBSD find
This is the last BSD-specific primary I'm aware of. Fixes #14.
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/stat.h b/stat.h
index cb68190..55c75e9 100644
--- a/stat.h
+++ b/stat.h
@@ -47,10 +47,11 @@ enum bfs_stat_field {
BFS_STAT_SIZE = 1 << 7,
BFS_STAT_BLOCKS = 1 << 8,
BFS_STAT_RDEV = 1 << 9,
- BFS_STAT_ATIME = 1 << 10,
- BFS_STAT_BTIME = 1 << 11,
- BFS_STAT_CTIME = 1 << 12,
- BFS_STAT_MTIME = 1 << 13,
+ BFS_STAT_ATTRS = 1 << 10,
+ BFS_STAT_ATIME = 1 << 11,
+ BFS_STAT_BTIME = 1 << 12,
+ BFS_STAT_CTIME = 1 << 13,
+ BFS_STAT_MTIME = 1 << 14,
};
/**
@@ -106,6 +107,9 @@ struct bfs_stat {
/** The device ID represented by this file. */
dev_t rdev;
+ /** Attributes/flags set on the file. */
+ unsigned long long attrs;
+
/** Access time. */
struct timespec atime;
/** Birth/creation time. */