about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2024-04-24 13:26:03 -0400
committerRich Felker <dalias@aerifal.cx>2024-04-24 13:26:03 -0400
commitcbf1c7b605d979bb7fdde8b8e6a66acdba18c6b0 (patch)
treeff38ff9d4c08ed0ad4c46d49437b8bb520180d9a
parent3f49203c55ccd5d4217abf13addb18844136455f (diff)
downloadmusl-cbf1c7b605d979bb7fdde8b8e6a66acdba18c6b0.tar.gz
musl-cbf1c7b605d979bb7fdde8b8e6a66acdba18c6b0.tar.xz
musl-cbf1c7b605d979bb7fdde8b8e6a66acdba18c6b0.zip
add missing STATX_ATTR_* macros omitted when statx was added
commit b817541f1cfd38e4b81257b3215e276ea9d0fc61 added statx and the
mask constant macros, but not the stx_attributes[_mask] ones.
-rw-r--r--include/sys/stat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sys/stat.h b/include/sys/stat.h
index 6690192d..57d640d7 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -121,6 +121,16 @@ int lchmod(const char *, mode_t);
 #define STATX_BTIME 0x800U
 #define STATX_ALL 0xfffU
 
+#define STATX_ATTR_COMPRESSED 0x4
+#define STATX_ATTR_IMMUTABLE 0x10
+#define STATX_ATTR_APPEND 0x20
+#define STATX_ATTR_NODUMP 0x40
+#define STATX_ATTR_ENCRYPTED 0x800
+#define STATX_ATTR_AUTOMOUNT 0x1000
+#define STATX_ATTR_MOUNT_ROOT 0x2000
+#define STATX_ATTR_VERITY 0x100000
+#define STATX_ATTR_DAX 0x200000
+
 struct statx_timestamp {
 	int64_t tv_sec;
 	uint32_t tv_nsec, __pad;