Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/mbindflags.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(MPOL_MF_STRICT) || (defined(HAVE_DECL_MPOL_MF_STRICT) && HAVE_DECL_MPOL_MF_STRICT)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((MPOL_MF_STRICT) == (1), "MPOL_MF_STRICT != 1");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define MPOL_MF_STRICT 1
     12 #endif
     13 #if defined(MPOL_MF_MOVE) || (defined(HAVE_DECL_MPOL_MF_MOVE) && HAVE_DECL_MPOL_MF_MOVE)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((MPOL_MF_MOVE) == (2), "MPOL_MF_MOVE != 2");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define MPOL_MF_MOVE 2
     19 #endif
     20 #if defined(MPOL_MF_MOVE_ALL) || (defined(HAVE_DECL_MPOL_MF_MOVE_ALL) && HAVE_DECL_MPOL_MF_MOVE_ALL)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((MPOL_MF_MOVE_ALL) == (4), "MPOL_MF_MOVE_ALL != 4");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define MPOL_MF_MOVE_ALL 4
     26 #endif
     27 
     28 #ifndef XLAT_MACROS_ONLY
     29 
     30 # ifdef IN_MPERS
     31 
     32 #  error static const struct xlat mbindflags in mpers mode
     33 
     34 # else
     35 
     36 static
     37 const struct xlat mbindflags[] = {
     38  XLAT(MPOL_MF_STRICT),
     39  XLAT(MPOL_MF_MOVE),
     40  XLAT(MPOL_MF_MOVE_ALL),
     41  XLAT_END
     42 };
     43 
     44 # endif /* !IN_MPERS */
     45 
     46 #endif /* !XLAT_MACROS_ONLY */
     47