1 /* Generated by ./xlat/gen.sh from ./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 49 #ifndef XLAT_MACROS_ONLY 50 51 # ifdef IN_MPERS 52 53 extern const struct xlat sigchld_codes[]; 54 55 # else 56 57 # if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS) 58 static 59 # endif 60 const struct xlat sigchld_codes[] = { 61 XLAT(CLD_EXITED), 62 XLAT(CLD_KILLED), 63 XLAT(CLD_DUMPED), 64 XLAT(CLD_TRAPPED), 65 XLAT(CLD_STOPPED), 66 XLAT(CLD_CONTINUED), 67 XLAT_END 68 }; 69 70 # endif /* !IN_MPERS */ 71 72 #endif /* !XLAT_MACROS_ONLY */ 73