(root)/
strace-6.5/
src/
xlat/
sigaltstack_flags.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/sigaltstack_flags.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #if defined(SS_ONSTACK) || (defined(HAVE_DECL_SS_ONSTACK) && HAVE_DECL_SS_ONSTACK)
       7  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
       8  static_assert((SS_ONSTACK) == (1), "SS_ONSTACK != 1");
       9  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      10  #else
      11  # define SS_ONSTACK 1
      12  #endif
      13  #if defined(SS_DISABLE) || (defined(HAVE_DECL_SS_DISABLE) && HAVE_DECL_SS_DISABLE)
      14  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      15  static_assert((SS_DISABLE) == (2), "SS_DISABLE != 2");
      16  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      17  #else
      18  # define SS_DISABLE 2
      19  #endif
      20  #if defined(SS_AUTODISARM) || (defined(HAVE_DECL_SS_AUTODISARM) && HAVE_DECL_SS_AUTODISARM)
      21  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      22  static_assert((SS_AUTODISARM) == ((1U << 31)), "SS_AUTODISARM != (1U << 31)");
      23  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      24  #else
      25  # define SS_AUTODISARM (1U << 31)
      26  #endif
      27  #undef XLAT_PREV_VAL
      28  
      29  #ifndef XLAT_MACROS_ONLY
      30  
      31  # ifdef IN_MPERS
      32  
      33  extern const struct xlat sigaltstack_flags[];
      34  
      35  # else
      36  
      37  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      38  static const struct xlat_data sigaltstack_flags_xdata[] = {
      39   XLAT(SS_ONSTACK),
      40   #define XLAT_VAL_0 ((unsigned) (SS_ONSTACK))
      41   #define XLAT_STR_0 STRINGIFY(SS_ONSTACK)
      42   XLAT(SS_DISABLE),
      43   #define XLAT_VAL_1 ((unsigned) (SS_DISABLE))
      44   #define XLAT_STR_1 STRINGIFY(SS_DISABLE)
      45   XLAT(SS_AUTODISARM),
      46   #define XLAT_VAL_2 ((unsigned) (SS_AUTODISARM))
      47   #define XLAT_STR_2 STRINGIFY(SS_AUTODISARM)
      48  };
      49  #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
      50  static
      51  #  endif
      52  const struct xlat sigaltstack_flags[1] = { {
      53   .data = sigaltstack_flags_xdata,
      54   .size = ARRAY_SIZE(sigaltstack_flags_xdata),
      55   .type = XT_NORMAL,
      56   .flags_mask = 0
      57  #  ifdef XLAT_VAL_0
      58    | XLAT_VAL_0
      59  #  endif
      60  #  ifdef XLAT_VAL_1
      61    | XLAT_VAL_1
      62  #  endif
      63  #  ifdef XLAT_VAL_2
      64    | XLAT_VAL_2
      65  #  endif
      66    ,
      67   .flags_strsz = 0
      68  #  ifdef XLAT_STR_0
      69    + sizeof(XLAT_STR_0)
      70  #  endif
      71  #  ifdef XLAT_STR_1
      72    + sizeof(XLAT_STR_1)
      73  #  endif
      74  #  ifdef XLAT_STR_2
      75    + sizeof(XLAT_STR_2)
      76  #  endif
      77    ,
      78  } };
      79  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      80  
      81  #  undef XLAT_STR_0
      82  #  undef XLAT_VAL_0
      83  #  undef XLAT_STR_1
      84  #  undef XLAT_VAL_1
      85  #  undef XLAT_STR_2
      86  #  undef XLAT_VAL_2
      87  # endif /* !IN_MPERS */
      88  
      89  #endif /* !XLAT_MACROS_ONLY */