1 /* Generated by ./xlat/gen.sh from ./xlat/getrandom_flags.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(GRND_NONBLOCK) || (defined(HAVE_DECL_GRND_NONBLOCK) && HAVE_DECL_GRND_NONBLOCK) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((GRND_NONBLOCK) == (1), "GRND_NONBLOCK != 1"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define GRND_NONBLOCK 1 12 #endif 13 #if defined(GRND_RANDOM) || (defined(HAVE_DECL_GRND_RANDOM) && HAVE_DECL_GRND_RANDOM) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((GRND_RANDOM) == (2), "GRND_RANDOM != 2"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define GRND_RANDOM 2 19 #endif 20 21 #ifndef XLAT_MACROS_ONLY 22 23 # ifdef IN_MPERS 24 25 # error static const struct xlat getrandom_flags in mpers mode 26 27 # else 28 29 static 30 const struct xlat getrandom_flags[] = { 31 XLAT(GRND_NONBLOCK), 32 XLAT(GRND_RANDOM), 33 XLAT_END 34 }; 35 36 # endif /* !IN_MPERS */ 37 38 #endif /* !XLAT_MACROS_ONLY */ 39