1 /* Generated by ./xlat/gen.sh from ./xlat/inotify_flags.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(IN_ACCESS) || (defined(HAVE_DECL_IN_ACCESS) && HAVE_DECL_IN_ACCESS) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((IN_ACCESS) == (0x00000001), "IN_ACCESS != 0x00000001"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define IN_ACCESS 0x00000001 12 #endif 13 #if defined(IN_MODIFY) || (defined(HAVE_DECL_IN_MODIFY) && HAVE_DECL_IN_MODIFY) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((IN_MODIFY) == (0x00000002), "IN_MODIFY != 0x00000002"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define IN_MODIFY 0x00000002 19 #endif 20 #if defined(IN_ATTRIB) || (defined(HAVE_DECL_IN_ATTRIB) && HAVE_DECL_IN_ATTRIB) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((IN_ATTRIB) == (0x00000004), "IN_ATTRIB != 0x00000004"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define IN_ATTRIB 0x00000004 26 #endif 27 #if defined(IN_CLOSE_WRITE) || (defined(HAVE_DECL_IN_CLOSE_WRITE) && HAVE_DECL_IN_CLOSE_WRITE) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((IN_CLOSE_WRITE) == (0x00000008), "IN_CLOSE_WRITE != 0x00000008"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define IN_CLOSE_WRITE 0x00000008 33 #endif 34 #if defined(IN_CLOSE_NOWRITE) || (defined(HAVE_DECL_IN_CLOSE_NOWRITE) && HAVE_DECL_IN_CLOSE_NOWRITE) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((IN_CLOSE_NOWRITE) == (0x00000010), "IN_CLOSE_NOWRITE != 0x00000010"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define IN_CLOSE_NOWRITE 0x00000010 40 #endif 41 #if defined(IN_OPEN) || (defined(HAVE_DECL_IN_OPEN) && HAVE_DECL_IN_OPEN) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((IN_OPEN) == (0x00000020), "IN_OPEN != 0x00000020"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define IN_OPEN 0x00000020 47 #endif 48 #if defined(IN_MOVED_FROM) || (defined(HAVE_DECL_IN_MOVED_FROM) && HAVE_DECL_IN_MOVED_FROM) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((IN_MOVED_FROM) == (0x00000040), "IN_MOVED_FROM != 0x00000040"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define IN_MOVED_FROM 0x00000040 54 #endif 55 #if defined(IN_MOVED_TO) || (defined(HAVE_DECL_IN_MOVED_TO) && HAVE_DECL_IN_MOVED_TO) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((IN_MOVED_TO) == (0x00000080), "IN_MOVED_TO != 0x00000080"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define IN_MOVED_TO 0x00000080 61 #endif 62 #if defined(IN_CREATE) || (defined(HAVE_DECL_IN_CREATE) && HAVE_DECL_IN_CREATE) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((IN_CREATE) == (0x00000100), "IN_CREATE != 0x00000100"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define IN_CREATE 0x00000100 68 #endif 69 #if defined(IN_DELETE) || (defined(HAVE_DECL_IN_DELETE) && HAVE_DECL_IN_DELETE) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((IN_DELETE) == (0x00000200), "IN_DELETE != 0x00000200"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define IN_DELETE 0x00000200 75 #endif 76 #if defined(IN_DELETE_SELF) || (defined(HAVE_DECL_IN_DELETE_SELF) && HAVE_DECL_IN_DELETE_SELF) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((IN_DELETE_SELF) == (0x00000400), "IN_DELETE_SELF != 0x00000400"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define IN_DELETE_SELF 0x00000400 82 #endif 83 #if defined(IN_MOVE_SELF) || (defined(HAVE_DECL_IN_MOVE_SELF) && HAVE_DECL_IN_MOVE_SELF) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((IN_MOVE_SELF) == (0x00000800), "IN_MOVE_SELF != 0x00000800"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define IN_MOVE_SELF 0x00000800 89 #endif 90 #if defined(IN_UNMOUNT) || (defined(HAVE_DECL_IN_UNMOUNT) && HAVE_DECL_IN_UNMOUNT) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((IN_UNMOUNT) == (0x00002000), "IN_UNMOUNT != 0x00002000"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define IN_UNMOUNT 0x00002000 96 #endif 97 #if defined(IN_Q_OVERFLOW) || (defined(HAVE_DECL_IN_Q_OVERFLOW) && HAVE_DECL_IN_Q_OVERFLOW) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((IN_Q_OVERFLOW) == (0x00004000), "IN_Q_OVERFLOW != 0x00004000"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define IN_Q_OVERFLOW 0x00004000 103 #endif 104 #if defined(IN_IGNORED) || (defined(HAVE_DECL_IN_IGNORED) && HAVE_DECL_IN_IGNORED) 105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 106 static_assert((IN_IGNORED) == (0x00008000), "IN_IGNORED != 0x00008000"); 107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 108 #else 109 # define IN_IGNORED 0x00008000 110 #endif 111 #if defined(IN_ONLYDIR) || (defined(HAVE_DECL_IN_ONLYDIR) && HAVE_DECL_IN_ONLYDIR) 112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 113 static_assert((IN_ONLYDIR) == (0x01000000), "IN_ONLYDIR != 0x01000000"); 114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 115 #else 116 # define IN_ONLYDIR 0x01000000 117 #endif 118 #if defined(IN_DONT_FOLLOW) || (defined(HAVE_DECL_IN_DONT_FOLLOW) && HAVE_DECL_IN_DONT_FOLLOW) 119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 120 static_assert((IN_DONT_FOLLOW) == (0x02000000), "IN_DONT_FOLLOW != 0x02000000"); 121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 122 #else 123 # define IN_DONT_FOLLOW 0x02000000 124 #endif 125 #if defined(IN_EXCL_UNLINK) || (defined(HAVE_DECL_IN_EXCL_UNLINK) && HAVE_DECL_IN_EXCL_UNLINK) 126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 127 static_assert((IN_EXCL_UNLINK) == (0x04000000), "IN_EXCL_UNLINK != 0x04000000"); 128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 129 #else 130 # define IN_EXCL_UNLINK 0x04000000 131 #endif 132 #if defined(IN_MASK_CREATE) || (defined(HAVE_DECL_IN_MASK_CREATE) && HAVE_DECL_IN_MASK_CREATE) 133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 134 static_assert((IN_MASK_CREATE) == (0x10000000), "IN_MASK_CREATE != 0x10000000"); 135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 136 #else 137 # define IN_MASK_CREATE 0x10000000 138 #endif 139 #if defined(IN_MASK_ADD) || (defined(HAVE_DECL_IN_MASK_ADD) && HAVE_DECL_IN_MASK_ADD) 140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 141 static_assert((IN_MASK_ADD) == (0x20000000), "IN_MASK_ADD != 0x20000000"); 142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 143 #else 144 # define IN_MASK_ADD 0x20000000 145 #endif 146 #if defined(IN_ISDIR) || (defined(HAVE_DECL_IN_ISDIR) && HAVE_DECL_IN_ISDIR) 147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 148 static_assert((IN_ISDIR) == (0x40000000), "IN_ISDIR != 0x40000000"); 149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 150 #else 151 # define IN_ISDIR 0x40000000 152 #endif 153 #if defined(IN_ONESHOT) || (defined(HAVE_DECL_IN_ONESHOT) && HAVE_DECL_IN_ONESHOT) 154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 155 static_assert((IN_ONESHOT) == (0x80000000), "IN_ONESHOT != 0x80000000"); 156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 157 #else 158 # define IN_ONESHOT 0x80000000 159 #endif 160 161 #ifndef XLAT_MACROS_ONLY 162 163 # ifdef IN_MPERS 164 165 # error static const struct xlat inotify_flags in mpers mode 166 167 # else 168 169 static 170 const struct xlat inotify_flags[] = { 171 XLAT(IN_ACCESS), 172 XLAT(IN_MODIFY), 173 XLAT(IN_ATTRIB), 174 XLAT(IN_CLOSE_WRITE), 175 XLAT(IN_CLOSE_NOWRITE), 176 XLAT(IN_OPEN), 177 XLAT(IN_MOVED_FROM), 178 XLAT(IN_MOVED_TO), 179 XLAT(IN_CREATE), 180 XLAT(IN_DELETE), 181 XLAT(IN_DELETE_SELF), 182 XLAT(IN_MOVE_SELF), 183 XLAT(IN_UNMOUNT), 184 XLAT(IN_Q_OVERFLOW), 185 XLAT(IN_IGNORED), 186 XLAT(IN_ONLYDIR), 187 XLAT(IN_DONT_FOLLOW), 188 XLAT(IN_EXCL_UNLINK), 189 XLAT(IN_MASK_CREATE), 190 XLAT(IN_MASK_ADD), 191 XLAT(IN_ISDIR), 192 XLAT(IN_ONESHOT), 193 XLAT_END 194 }; 195 196 # endif /* !IN_MPERS */ 197 198 #endif /* !XLAT_MACROS_ONLY */ 199