From 863b70d198f62f28581162473a521208dd67879e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 6 Mar 2021 13:40:24 -0500 Subject: Implement -flags, from FreeBSD find This is the last BSD-specific primary I'm aware of. Fixes #14. --- stat.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'stat.h') 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. */ -- cgit v1.2.3