1 /* Generated by ./xlat/gen.sh from ./xlat/madvise_cmds.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(MADV_NORMAL) || (defined(HAVE_DECL_MADV_NORMAL) && HAVE_DECL_MADV_NORMAL) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((MADV_NORMAL) == (0), "MADV_NORMAL != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define MADV_NORMAL 0 12 #endif 13 #if defined(MADV_RANDOM) || (defined(HAVE_DECL_MADV_RANDOM) && HAVE_DECL_MADV_RANDOM) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((MADV_RANDOM) == (1), "MADV_RANDOM != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define MADV_RANDOM 1 19 #endif 20 #if defined(MADV_SEQUENTIAL) || (defined(HAVE_DECL_MADV_SEQUENTIAL) && HAVE_DECL_MADV_SEQUENTIAL) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((MADV_SEQUENTIAL) == (2), "MADV_SEQUENTIAL != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define MADV_SEQUENTIAL 2 26 #endif 27 #if defined(MADV_WILLNEED) || (defined(HAVE_DECL_MADV_WILLNEED) && HAVE_DECL_MADV_WILLNEED) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((MADV_WILLNEED) == (3), "MADV_WILLNEED != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define MADV_WILLNEED 3 33 #endif 34 #if defined __alpha__ 35 #if defined(MADV_DONTNEED) || (defined(HAVE_DECL_MADV_DONTNEED) && HAVE_DECL_MADV_DONTNEED) 36 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 37 static_assert((MADV_DONTNEED) == (6), "MADV_DONTNEED != 6"); 38 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 39 #else 40 # define MADV_DONTNEED 6 41 #endif 42 #else 43 #if defined(MADV_DONTNEED) || (defined(HAVE_DECL_MADV_DONTNEED) && HAVE_DECL_MADV_DONTNEED) 44 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 45 static_assert((MADV_DONTNEED) == (4), "MADV_DONTNEED != 4"); 46 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 47 #else 48 # define MADV_DONTNEED 4 49 #endif 50 #endif 51 #if defined(MADV_FREE) || (defined(HAVE_DECL_MADV_FREE) && HAVE_DECL_MADV_FREE) 52 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 53 static_assert((MADV_FREE) == (8), "MADV_FREE != 8"); 54 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 55 #else 56 # define MADV_FREE 8 57 #endif 58 #if defined(MADV_REMOVE) || (defined(HAVE_DECL_MADV_REMOVE) && HAVE_DECL_MADV_REMOVE) 59 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 60 static_assert((MADV_REMOVE) == (9), "MADV_REMOVE != 9"); 61 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 62 #else 63 # define MADV_REMOVE 9 64 #endif 65 #if defined(MADV_DONTFORK) || (defined(HAVE_DECL_MADV_DONTFORK) && HAVE_DECL_MADV_DONTFORK) 66 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 67 static_assert((MADV_DONTFORK) == (10), "MADV_DONTFORK != 10"); 68 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 69 #else 70 # define MADV_DONTFORK 10 71 #endif 72 #if defined(MADV_DOFORK) || (defined(HAVE_DECL_MADV_DOFORK) && HAVE_DECL_MADV_DOFORK) 73 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 74 static_assert((MADV_DOFORK) == (11), "MADV_DOFORK != 11"); 75 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 76 #else 77 # define MADV_DOFORK 11 78 #endif 79 #if defined __hppa__ 80 #if defined(MADV_MERGEABLE) || (defined(HAVE_DECL_MADV_MERGEABLE) && HAVE_DECL_MADV_MERGEABLE) 81 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 82 static_assert((MADV_MERGEABLE) == (65), "MADV_MERGEABLE != 65"); 83 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 84 #else 85 # define MADV_MERGEABLE 65 86 #endif 87 #else 88 #if defined(MADV_MERGEABLE) || (defined(HAVE_DECL_MADV_MERGEABLE) && HAVE_DECL_MADV_MERGEABLE) 89 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 90 static_assert((MADV_MERGEABLE) == (12), "MADV_MERGEABLE != 12"); 91 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 92 #else 93 # define MADV_MERGEABLE 12 94 #endif 95 #endif 96 #if defined __hppa__ 97 #if defined(MADV_UNMERGEABLE) || (defined(HAVE_DECL_MADV_UNMERGEABLE) && HAVE_DECL_MADV_UNMERGEABLE) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((MADV_UNMERGEABLE) == (66), "MADV_UNMERGEABLE != 66"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define MADV_UNMERGEABLE 66 103 #endif 104 #else 105 #if defined(MADV_UNMERGEABLE) || (defined(HAVE_DECL_MADV_UNMERGEABLE) && HAVE_DECL_MADV_UNMERGEABLE) 106 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 107 static_assert((MADV_UNMERGEABLE) == (13), "MADV_UNMERGEABLE != 13"); 108 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 109 #else 110 # define MADV_UNMERGEABLE 13 111 #endif 112 #endif 113 #if defined __hppa__ 114 #if defined(MADV_HUGEPAGE) || (defined(HAVE_DECL_MADV_HUGEPAGE) && HAVE_DECL_MADV_HUGEPAGE) 115 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 116 static_assert((MADV_HUGEPAGE) == (67), "MADV_HUGEPAGE != 67"); 117 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 118 #else 119 # define MADV_HUGEPAGE 67 120 #endif 121 #else 122 #if defined(MADV_HUGEPAGE) || (defined(HAVE_DECL_MADV_HUGEPAGE) && HAVE_DECL_MADV_HUGEPAGE) 123 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 124 static_assert((MADV_HUGEPAGE) == (14), "MADV_HUGEPAGE != 14"); 125 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 126 #else 127 # define MADV_HUGEPAGE 14 128 #endif 129 #endif 130 #if defined __hppa__ 131 #if defined(MADV_NOHUGEPAGE) || (defined(HAVE_DECL_MADV_NOHUGEPAGE) && HAVE_DECL_MADV_NOHUGEPAGE) 132 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 133 static_assert((MADV_NOHUGEPAGE) == (68), "MADV_NOHUGEPAGE != 68"); 134 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 135 #else 136 # define MADV_NOHUGEPAGE 68 137 #endif 138 #else 139 #if defined(MADV_NOHUGEPAGE) || (defined(HAVE_DECL_MADV_NOHUGEPAGE) && HAVE_DECL_MADV_NOHUGEPAGE) 140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 141 static_assert((MADV_NOHUGEPAGE) == (15), "MADV_NOHUGEPAGE != 15"); 142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 143 #else 144 # define MADV_NOHUGEPAGE 15 145 #endif 146 #endif 147 #if defined __hppa__ 148 #if defined(MADV_DONTDUMP) || (defined(HAVE_DECL_MADV_DONTDUMP) && HAVE_DECL_MADV_DONTDUMP) 149 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 150 static_assert((MADV_DONTDUMP) == (69), "MADV_DONTDUMP != 69"); 151 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 152 #else 153 # define MADV_DONTDUMP 69 154 #endif 155 #else 156 #if defined(MADV_DONTDUMP) || (defined(HAVE_DECL_MADV_DONTDUMP) && HAVE_DECL_MADV_DONTDUMP) 157 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 158 static_assert((MADV_DONTDUMP) == (16), "MADV_DONTDUMP != 16"); 159 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 160 #else 161 # define MADV_DONTDUMP 16 162 #endif 163 #endif 164 #if defined __hppa__ 165 #if defined(MADV_DODUMP) || (defined(HAVE_DECL_MADV_DODUMP) && HAVE_DECL_MADV_DODUMP) 166 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 167 static_assert((MADV_DODUMP) == (70), "MADV_DODUMP != 70"); 168 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 169 #else 170 # define MADV_DODUMP 70 171 #endif 172 #else 173 #if defined(MADV_DODUMP) || (defined(HAVE_DECL_MADV_DODUMP) && HAVE_DECL_MADV_DODUMP) 174 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 175 static_assert((MADV_DODUMP) == (17), "MADV_DODUMP != 17"); 176 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 177 #else 178 # define MADV_DODUMP 17 179 #endif 180 #endif 181 #if defined __hppa__ 182 #if defined(MADV_WIPEONFORK) || (defined(HAVE_DECL_MADV_WIPEONFORK) && HAVE_DECL_MADV_WIPEONFORK) 183 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 184 static_assert((MADV_WIPEONFORK) == (71), "MADV_WIPEONFORK != 71"); 185 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 186 #else 187 # define MADV_WIPEONFORK 71 188 #endif 189 #else 190 #if defined(MADV_WIPEONFORK) || (defined(HAVE_DECL_MADV_WIPEONFORK) && HAVE_DECL_MADV_WIPEONFORK) 191 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 192 static_assert((MADV_WIPEONFORK) == (18), "MADV_WIPEONFORK != 18"); 193 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 194 #else 195 # define MADV_WIPEONFORK 18 196 #endif 197 #endif 198 #if defined __hppa__ 199 #if defined(MADV_KEEPONFORK) || (defined(HAVE_DECL_MADV_KEEPONFORK) && HAVE_DECL_MADV_KEEPONFORK) 200 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 201 static_assert((MADV_KEEPONFORK) == (72), "MADV_KEEPONFORK != 72"); 202 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 203 #else 204 # define MADV_KEEPONFORK 72 205 #endif 206 #else 207 #if defined(MADV_KEEPONFORK) || (defined(HAVE_DECL_MADV_KEEPONFORK) && HAVE_DECL_MADV_KEEPONFORK) 208 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 209 static_assert((MADV_KEEPONFORK) == (19), "MADV_KEEPONFORK != 19"); 210 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 211 #else 212 # define MADV_KEEPONFORK 19 213 #endif 214 #endif 215 #if defined(MADV_HWPOISON) || (defined(HAVE_DECL_MADV_HWPOISON) && HAVE_DECL_MADV_HWPOISON) 216 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 217 static_assert((MADV_HWPOISON) == (100), "MADV_HWPOISON != 100"); 218 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 219 #else 220 # define MADV_HWPOISON 100 221 #endif 222 #if defined(MADV_SOFT_OFFLINE) || (defined(HAVE_DECL_MADV_SOFT_OFFLINE) && HAVE_DECL_MADV_SOFT_OFFLINE) 223 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 224 static_assert((MADV_SOFT_OFFLINE) == (101), "MADV_SOFT_OFFLINE != 101"); 225 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 226 #else 227 # define MADV_SOFT_OFFLINE 101 228 #endif 229 230 #ifndef XLAT_MACROS_ONLY 231 232 # ifdef IN_MPERS 233 234 # error static const struct xlat madvise_cmds in mpers mode 235 236 # else 237 238 static 239 const struct xlat madvise_cmds[] = { 240 241 242 XLAT(MADV_NORMAL), 243 244 XLAT(MADV_RANDOM), 245 246 XLAT(MADV_SEQUENTIAL), 247 248 XLAT(MADV_WILLNEED), 249 250 #if defined __alpha__ 251 XLAT(MADV_DONTNEED), 252 #else 253 XLAT(MADV_DONTNEED), 254 #endif 255 256 XLAT(MADV_FREE), 257 258 XLAT(MADV_REMOVE), 259 260 XLAT(MADV_DONTFORK), 261 262 XLAT(MADV_DOFORK), 263 264 #if defined __hppa__ 265 XLAT(MADV_MERGEABLE), 266 #else 267 XLAT(MADV_MERGEABLE), 268 #endif 269 270 #if defined __hppa__ 271 XLAT(MADV_UNMERGEABLE), 272 #else 273 XLAT(MADV_UNMERGEABLE), 274 #endif 275 276 #if defined __hppa__ 277 XLAT(MADV_HUGEPAGE), 278 #else 279 XLAT(MADV_HUGEPAGE), 280 #endif 281 282 #if defined __hppa__ 283 XLAT(MADV_NOHUGEPAGE), 284 #else 285 XLAT(MADV_NOHUGEPAGE), 286 #endif 287 288 #if defined __hppa__ 289 XLAT(MADV_DONTDUMP), 290 #else 291 XLAT(MADV_DONTDUMP), 292 #endif 293 294 #if defined __hppa__ 295 XLAT(MADV_DODUMP), 296 #else 297 XLAT(MADV_DODUMP), 298 #endif 299 300 #if defined __hppa__ 301 XLAT(MADV_WIPEONFORK), 302 #else 303 XLAT(MADV_WIPEONFORK), 304 #endif 305 306 #if defined __hppa__ 307 XLAT(MADV_KEEPONFORK), 308 #else 309 XLAT(MADV_KEEPONFORK), 310 #endif 311 312 XLAT(MADV_HWPOISON), 313 314 XLAT(MADV_SOFT_OFFLINE), 315 XLAT_END 316 }; 317 318 # endif /* !IN_MPERS */ 319 320 #endif /* !XLAT_MACROS_ONLY */ 321