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