1 /* Generated by ./xlat/gen.sh from ./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 
28 #ifndef XLAT_MACROS_ONLY
29 
30 # ifdef IN_MPERS
31 
32 extern const struct xlat sigaltstack_flags[];
33 
34 # else
35 
36 #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
37 static
38 #  endif
39 const struct xlat sigaltstack_flags[] = {
40  XLAT(SS_ONSTACK),
41  XLAT(SS_DISABLE),
42  XLAT(SS_AUTODISARM),
43  XLAT_END
44 };
45 
46 # endif /* !IN_MPERS */
47 
48 #endif /* !XLAT_MACROS_ONLY */
49