(root)/
strace-6.5/
src/
xlat/
pr_spec_get_store_bypass_flags.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/pr_spec_get_store_bypass_flags.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #if defined(PR_SPEC_NOT_AFFECTED) || (defined(HAVE_DECL_PR_SPEC_NOT_AFFECTED) && HAVE_DECL_PR_SPEC_NOT_AFFECTED)
       7  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
       8  static_assert((PR_SPEC_NOT_AFFECTED) == (0), "PR_SPEC_NOT_AFFECTED != 0");
       9  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      10  #else
      11  # define PR_SPEC_NOT_AFFECTED 0
      12  #endif
      13  #if defined(PR_SPEC_PRCTL) || (defined(HAVE_DECL_PR_SPEC_PRCTL) && HAVE_DECL_PR_SPEC_PRCTL)
      14  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      15  static_assert((PR_SPEC_PRCTL) == ((1 << 0)), "PR_SPEC_PRCTL != (1 << 0)");
      16  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      17  #else
      18  # define PR_SPEC_PRCTL (1 << 0)
      19  #endif
      20  #if defined(PR_SPEC_ENABLE) || (defined(HAVE_DECL_PR_SPEC_ENABLE) && HAVE_DECL_PR_SPEC_ENABLE)
      21  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      22  static_assert((PR_SPEC_ENABLE) == ((1 << 1)), "PR_SPEC_ENABLE != (1 << 1)");
      23  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      24  #else
      25  # define PR_SPEC_ENABLE (1 << 1)
      26  #endif
      27  #if defined(PR_SPEC_DISABLE) || (defined(HAVE_DECL_PR_SPEC_DISABLE) && HAVE_DECL_PR_SPEC_DISABLE)
      28  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      29  static_assert((PR_SPEC_DISABLE) == ((1 << 2)), "PR_SPEC_DISABLE != (1 << 2)");
      30  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      31  #else
      32  # define PR_SPEC_DISABLE (1 << 2)
      33  #endif
      34  #if defined(PR_SPEC_FORCE_DISABLE) || (defined(HAVE_DECL_PR_SPEC_FORCE_DISABLE) && HAVE_DECL_PR_SPEC_FORCE_DISABLE)
      35  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      36  static_assert((PR_SPEC_FORCE_DISABLE) == ((1 << 3)), "PR_SPEC_FORCE_DISABLE != (1 << 3)");
      37  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      38  #else
      39  # define PR_SPEC_FORCE_DISABLE (1 << 3)
      40  #endif
      41  #if defined(PR_SPEC_DISABLE_NOEXEC) || (defined(HAVE_DECL_PR_SPEC_DISABLE_NOEXEC) && HAVE_DECL_PR_SPEC_DISABLE_NOEXEC)
      42  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      43  static_assert((PR_SPEC_DISABLE_NOEXEC) == ((1 << 4)), "PR_SPEC_DISABLE_NOEXEC != (1 << 4)");
      44  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      45  #else
      46  # define PR_SPEC_DISABLE_NOEXEC (1 << 4)
      47  #endif
      48  #undef XLAT_PREV_VAL
      49  
      50  #ifndef XLAT_MACROS_ONLY
      51  
      52  # ifdef IN_MPERS
      53  
      54  #  error static const struct xlat pr_spec_get_store_bypass_flags in mpers mode
      55  
      56  # else
      57  
      58  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      59  static const struct xlat_data pr_spec_get_store_bypass_flags_xdata[] = {
      60   XLAT(PR_SPEC_NOT_AFFECTED),
      61   #define XLAT_VAL_0 ((unsigned) (PR_SPEC_NOT_AFFECTED))
      62   #define XLAT_STR_0 STRINGIFY(PR_SPEC_NOT_AFFECTED)
      63   XLAT(PR_SPEC_PRCTL),
      64   #define XLAT_VAL_1 ((unsigned) (PR_SPEC_PRCTL))
      65   #define XLAT_STR_1 STRINGIFY(PR_SPEC_PRCTL)
      66   XLAT(PR_SPEC_ENABLE),
      67   #define XLAT_VAL_2 ((unsigned) (PR_SPEC_ENABLE))
      68   #define XLAT_STR_2 STRINGIFY(PR_SPEC_ENABLE)
      69   XLAT(PR_SPEC_DISABLE),
      70   #define XLAT_VAL_3 ((unsigned) (PR_SPEC_DISABLE))
      71   #define XLAT_STR_3 STRINGIFY(PR_SPEC_DISABLE)
      72   XLAT(PR_SPEC_FORCE_DISABLE),
      73   #define XLAT_VAL_4 ((unsigned) (PR_SPEC_FORCE_DISABLE))
      74   #define XLAT_STR_4 STRINGIFY(PR_SPEC_FORCE_DISABLE)
      75   XLAT(PR_SPEC_DISABLE_NOEXEC),
      76   #define XLAT_VAL_5 ((unsigned) (PR_SPEC_DISABLE_NOEXEC))
      77   #define XLAT_STR_5 STRINGIFY(PR_SPEC_DISABLE_NOEXEC)
      78  };
      79  static
      80  const struct xlat pr_spec_get_store_bypass_flags[1] = { {
      81   .data = pr_spec_get_store_bypass_flags_xdata,
      82   .size = ARRAY_SIZE(pr_spec_get_store_bypass_flags_xdata),
      83   .type = XT_NORMAL,
      84   .flags_mask = 0
      85  #  ifdef XLAT_VAL_0
      86    | XLAT_VAL_0
      87  #  endif
      88  #  ifdef XLAT_VAL_1
      89    | XLAT_VAL_1
      90  #  endif
      91  #  ifdef XLAT_VAL_2
      92    | XLAT_VAL_2
      93  #  endif
      94  #  ifdef XLAT_VAL_3
      95    | XLAT_VAL_3
      96  #  endif
      97  #  ifdef XLAT_VAL_4
      98    | XLAT_VAL_4
      99  #  endif
     100  #  ifdef XLAT_VAL_5
     101    | XLAT_VAL_5
     102  #  endif
     103    ,
     104   .flags_strsz = 0
     105  #  ifdef XLAT_STR_0
     106    + sizeof(XLAT_STR_0)
     107  #  endif
     108  #  ifdef XLAT_STR_1
     109    + sizeof(XLAT_STR_1)
     110  #  endif
     111  #  ifdef XLAT_STR_2
     112    + sizeof(XLAT_STR_2)
     113  #  endif
     114  #  ifdef XLAT_STR_3
     115    + sizeof(XLAT_STR_3)
     116  #  endif
     117  #  ifdef XLAT_STR_4
     118    + sizeof(XLAT_STR_4)
     119  #  endif
     120  #  ifdef XLAT_STR_5
     121    + sizeof(XLAT_STR_5)
     122  #  endif
     123    ,
     124  } };
     125  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
     126  
     127  #  undef XLAT_STR_0
     128  #  undef XLAT_VAL_0
     129  #  undef XLAT_STR_1
     130  #  undef XLAT_VAL_1
     131  #  undef XLAT_STR_2
     132  #  undef XLAT_VAL_2
     133  #  undef XLAT_STR_3
     134  #  undef XLAT_VAL_3
     135  #  undef XLAT_STR_4
     136  #  undef XLAT_VAL_4
     137  #  undef XLAT_STR_5
     138  #  undef XLAT_VAL_5
     139  # endif /* !IN_MPERS */
     140  
     141  #endif /* !XLAT_MACROS_ONLY */