1 /* Generated by ./xlat/gen.sh from ./xlat/siginfo_codes.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(SI_USER) || (defined(HAVE_DECL_SI_USER) && HAVE_DECL_SI_USER) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((SI_USER) == (0), "SI_USER != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define SI_USER 0 12 #endif 13 #if defined(SI_KERNEL) || (defined(HAVE_DECL_SI_KERNEL) && HAVE_DECL_SI_KERNEL) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((SI_KERNEL) == (0x80), "SI_KERNEL != 0x80"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define SI_KERNEL 0x80 19 #endif 20 #if defined(SI_QUEUE) || (defined(HAVE_DECL_SI_QUEUE) && HAVE_DECL_SI_QUEUE) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((SI_QUEUE) == (-1), "SI_QUEUE != -1"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define SI_QUEUE -1 26 #endif 27 #ifdef __mips__ 28 #if defined(SI_ASYNCIO) || (defined(HAVE_DECL_SI_ASYNCIO) && HAVE_DECL_SI_ASYNCIO) 29 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 30 static_assert((SI_ASYNCIO) == (-2), "SI_ASYNCIO != -2"); 31 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 32 #else 33 # define SI_ASYNCIO -2 34 #endif 35 #if defined(SI_TIMER) || (defined(HAVE_DECL_SI_TIMER) && HAVE_DECL_SI_TIMER) 36 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 37 static_assert((SI_TIMER) == (-3), "SI_TIMER != -3"); 38 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 39 #else 40 # define SI_TIMER -3 41 #endif 42 #if defined(SI_MESGQ) || (defined(HAVE_DECL_SI_MESGQ) && HAVE_DECL_SI_MESGQ) 43 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 44 static_assert((SI_MESGQ) == (-4), "SI_MESGQ != -4"); 45 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 46 #else 47 # define SI_MESGQ -4 48 #endif 49 #else 50 #if defined(SI_TIMER) || (defined(HAVE_DECL_SI_TIMER) && HAVE_DECL_SI_TIMER) 51 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 52 static_assert((SI_TIMER) == (-2), "SI_TIMER != -2"); 53 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 54 #else 55 # define SI_TIMER -2 56 #endif 57 #if defined(SI_MESGQ) || (defined(HAVE_DECL_SI_MESGQ) && HAVE_DECL_SI_MESGQ) 58 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 59 static_assert((SI_MESGQ) == (-3), "SI_MESGQ != -3"); 60 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 61 #else 62 # define SI_MESGQ -3 63 #endif 64 #if defined(SI_ASYNCIO) || (defined(HAVE_DECL_SI_ASYNCIO) && HAVE_DECL_SI_ASYNCIO) 65 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 66 static_assert((SI_ASYNCIO) == (-4), "SI_ASYNCIO != -4"); 67 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 68 #else 69 # define SI_ASYNCIO -4 70 #endif 71 #endif 72 #if defined(SI_SIGIO) || (defined(HAVE_DECL_SI_SIGIO) && HAVE_DECL_SI_SIGIO) 73 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 74 static_assert((SI_SIGIO) == (-5), "SI_SIGIO != -5"); 75 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 76 #else 77 # define SI_SIGIO -5 78 #endif 79 #if defined(SI_TKILL) || (defined(HAVE_DECL_SI_TKILL) && HAVE_DECL_SI_TKILL) 80 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 81 static_assert((SI_TKILL) == (-6), "SI_TKILL != -6"); 82 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 83 #else 84 # define SI_TKILL -6 85 #endif 86 #if defined(SI_DETHREAD) || (defined(HAVE_DECL_SI_DETHREAD) && HAVE_DECL_SI_DETHREAD) 87 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 88 static_assert((SI_DETHREAD) == (-7), "SI_DETHREAD != -7"); 89 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 90 #else 91 # define SI_DETHREAD -7 92 #endif 93 #if defined(SI_ASYNCNL) || (defined(HAVE_DECL_SI_ASYNCNL) && HAVE_DECL_SI_ASYNCNL) 94 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 95 static_assert((SI_ASYNCNL) == (-60), "SI_ASYNCNL != -60"); 96 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 97 #else 98 # define SI_ASYNCNL -60 99 #endif 100 101 #ifndef XLAT_MACROS_ONLY 102 103 # ifdef IN_MPERS 104 105 extern const struct xlat siginfo_codes[]; 106 107 # else 108 109 # if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS) 110 static 111 # endif 112 const struct xlat siginfo_codes[] = { 113 XLAT(SI_USER), 114 XLAT(SI_KERNEL), 115 XLAT(SI_QUEUE), 116 117 #ifdef __mips__ 118 XLAT(SI_ASYNCIO), 119 XLAT(SI_TIMER), 120 XLAT(SI_MESGQ), 121 #else 122 XLAT(SI_TIMER), 123 XLAT(SI_MESGQ), 124 XLAT(SI_ASYNCIO), 125 #endif 126 127 XLAT(SI_SIGIO), 128 XLAT(SI_TKILL), 129 XLAT(SI_DETHREAD), 130 XLAT(SI_ASYNCNL), 131 #if defined(SI_NOINFO) || (defined(HAVE_DECL_SI_NOINFO) && HAVE_DECL_SI_NOINFO) 132 XLAT(SI_NOINFO), 133 #endif 134 #if defined(SI_LWP) || (defined(HAVE_DECL_SI_LWP) && HAVE_DECL_SI_LWP) 135 XLAT(SI_LWP), 136 #endif 137 XLAT_END 138 }; 139 140 # endif /* !IN_MPERS */ 141 142 #endif /* !XLAT_MACROS_ONLY */ 143