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