1 /* Generated by ./xlat/gen.sh from ./xlat/statx_masks.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(STATX_ALL) || (defined(HAVE_DECL_STATX_ALL) && HAVE_DECL_STATX_ALL)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((STATX_ALL) == (0x00000fffU), "STATX_ALL != 0x00000fffU");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define STATX_ALL 0x00000fffU
12 #endif
13 #if defined(STATX_BASIC_STATS) || (defined(HAVE_DECL_STATX_BASIC_STATS) && HAVE_DECL_STATX_BASIC_STATS)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((STATX_BASIC_STATS) == (0x000007ffU), "STATX_BASIC_STATS != 0x000007ffU");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define STATX_BASIC_STATS 0x000007ffU
19 #endif
20 #if defined(STATX_TYPE) || (defined(HAVE_DECL_STATX_TYPE) && HAVE_DECL_STATX_TYPE)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((STATX_TYPE) == (0x00000001U), "STATX_TYPE != 0x00000001U");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define STATX_TYPE 0x00000001U
26 #endif
27 #if defined(STATX_MODE) || (defined(HAVE_DECL_STATX_MODE) && HAVE_DECL_STATX_MODE)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((STATX_MODE) == (0x00000002U), "STATX_MODE != 0x00000002U");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define STATX_MODE 0x00000002U
33 #endif
34 #if defined(STATX_NLINK) || (defined(HAVE_DECL_STATX_NLINK) && HAVE_DECL_STATX_NLINK)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((STATX_NLINK) == (0x00000004U), "STATX_NLINK != 0x00000004U");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define STATX_NLINK 0x00000004U
40 #endif
41 #if defined(STATX_UID) || (defined(HAVE_DECL_STATX_UID) && HAVE_DECL_STATX_UID)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((STATX_UID) == (0x00000008U), "STATX_UID != 0x00000008U");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define STATX_UID 0x00000008U
47 #endif
48 #if defined(STATX_GID) || (defined(HAVE_DECL_STATX_GID) && HAVE_DECL_STATX_GID)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((STATX_GID) == (0x00000010U), "STATX_GID != 0x00000010U");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define STATX_GID 0x00000010U
54 #endif
55 #if defined(STATX_ATIME) || (defined(HAVE_DECL_STATX_ATIME) && HAVE_DECL_STATX_ATIME)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((STATX_ATIME) == (0x00000020U), "STATX_ATIME != 0x00000020U");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define STATX_ATIME 0x00000020U
61 #endif
62 #if defined(STATX_MTIME) || (defined(HAVE_DECL_STATX_MTIME) && HAVE_DECL_STATX_MTIME)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((STATX_MTIME) == (0x00000040U), "STATX_MTIME != 0x00000040U");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define STATX_MTIME 0x00000040U
68 #endif
69 #if defined(STATX_CTIME) || (defined(HAVE_DECL_STATX_CTIME) && HAVE_DECL_STATX_CTIME)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((STATX_CTIME) == (0x00000080U), "STATX_CTIME != 0x00000080U");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define STATX_CTIME 0x00000080U
75 #endif
76 #if defined(STATX_INO) || (defined(HAVE_DECL_STATX_INO) && HAVE_DECL_STATX_INO)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((STATX_INO) == (0x00000100U), "STATX_INO != 0x00000100U");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define STATX_INO 0x00000100U
82 #endif
83 #if defined(STATX_SIZE) || (defined(HAVE_DECL_STATX_SIZE) && HAVE_DECL_STATX_SIZE)
84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
85 static_assert((STATX_SIZE) == (0x00000200U), "STATX_SIZE != 0x00000200U");
86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
87 #else
88 # define STATX_SIZE 0x00000200U
89 #endif
90 #if defined(STATX_BLOCKS) || (defined(HAVE_DECL_STATX_BLOCKS) && HAVE_DECL_STATX_BLOCKS)
91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
92 static_assert((STATX_BLOCKS) == (0x00000400U), "STATX_BLOCKS != 0x00000400U");
93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
94 #else
95 # define STATX_BLOCKS 0x00000400U
96 #endif
97 #if defined(STATX_BTIME) || (defined(HAVE_DECL_STATX_BTIME) && HAVE_DECL_STATX_BTIME)
98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
99 static_assert((STATX_BTIME) == (0x00000800U), "STATX_BTIME != 0x00000800U");
100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
101 #else
102 # define STATX_BTIME 0x00000800U
103 #endif
104 
105 #ifndef XLAT_MACROS_ONLY
106 
107 # ifdef IN_MPERS
108 
109 #  error static const struct xlat statx_masks in mpers mode
110 
111 # else
112 
113 static
114 const struct xlat statx_masks[] = {
115  XLAT(STATX_ALL),
116  XLAT(STATX_BASIC_STATS),
117 
118  XLAT(STATX_TYPE),
119  XLAT(STATX_MODE),
120  XLAT(STATX_NLINK),
121  XLAT(STATX_UID),
122  XLAT(STATX_GID),
123  XLAT(STATX_ATIME),
124  XLAT(STATX_MTIME),
125  XLAT(STATX_CTIME),
126  XLAT(STATX_INO),
127  XLAT(STATX_SIZE),
128  XLAT(STATX_BLOCKS),
129  XLAT(STATX_BTIME),
130  XLAT_END
131 };
132 
133 # endif /* !IN_MPERS */
134 
135 #endif /* !XLAT_MACROS_ONLY */
136