diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2021-03-06 13:40:24 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2021-03-06 13:40:24 -0500 |
commit | 863b70d198f62f28581162473a521208dd67879e (patch) | |
tree | 9506283742eef1951ecaa897f4584b3941499a51 /stat.h | |
parent | 8f201b2380aef3a566316343e7e71c6fc995cf41 (diff) | |
download | bfs-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.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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. */ |