lin
2025-08-01 633231e833e21d5b8b1c00cb15aedb62b3b78e8f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* Generated by ./xlat/gen.sh from ./xlat/sigchld_codes.in; do not edit. */
 
#include "gcc_compat.h"
#include "static_assert.h"
 
#if defined(CLD_EXITED) || (defined(HAVE_DECL_CLD_EXITED) && HAVE_DECL_CLD_EXITED)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLD_EXITED) == (1), "CLD_EXITED != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLD_EXITED 1
#endif
#if defined(CLD_KILLED) || (defined(HAVE_DECL_CLD_KILLED) && HAVE_DECL_CLD_KILLED)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLD_KILLED) == (2), "CLD_KILLED != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLD_KILLED 2
#endif
#if defined(CLD_DUMPED) || (defined(HAVE_DECL_CLD_DUMPED) && HAVE_DECL_CLD_DUMPED)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLD_DUMPED) == (3), "CLD_DUMPED != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLD_DUMPED 3
#endif
#if defined(CLD_TRAPPED) || (defined(HAVE_DECL_CLD_TRAPPED) && HAVE_DECL_CLD_TRAPPED)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLD_TRAPPED) == (4), "CLD_TRAPPED != 4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLD_TRAPPED 4
#endif
#if defined(CLD_STOPPED) || (defined(HAVE_DECL_CLD_STOPPED) && HAVE_DECL_CLD_STOPPED)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLD_STOPPED) == (5), "CLD_STOPPED != 5");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLD_STOPPED 5
#endif
#if defined(CLD_CONTINUED) || (defined(HAVE_DECL_CLD_CONTINUED) && HAVE_DECL_CLD_CONTINUED)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLD_CONTINUED) == (6), "CLD_CONTINUED != 6");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLD_CONTINUED 6
#endif
 
#ifndef XLAT_MACROS_ONLY
 
# ifdef IN_MPERS
 
extern const struct xlat sigchld_codes[];
 
# else
 
#  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
static
#  endif
const struct xlat sigchld_codes[] = {
 XLAT(CLD_EXITED),
 XLAT(CLD_KILLED),
 XLAT(CLD_DUMPED),
 XLAT(CLD_TRAPPED),
 XLAT(CLD_STOPPED),
 XLAT(CLD_CONTINUED),
 XLAT_END
};
 
# endif /* !IN_MPERS */
 
#endif /* !XLAT_MACROS_ONLY */