(root)/
strace-6.5/
src/
xlat/
sigpoll_codes.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/sigpoll_codes.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #if defined(POLL_IN) || (defined(HAVE_DECL_POLL_IN) && HAVE_DECL_POLL_IN)
       7  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
       8  static_assert((POLL_IN) == (1), "POLL_IN != 1");
       9  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      10  #else
      11  # define POLL_IN 1
      12  #endif
      13  #if defined(POLL_OUT) || (defined(HAVE_DECL_POLL_OUT) && HAVE_DECL_POLL_OUT)
      14  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      15  static_assert((POLL_OUT) == (2), "POLL_OUT != 2");
      16  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      17  #else
      18  # define POLL_OUT 2
      19  #endif
      20  #if defined(POLL_MSG) || (defined(HAVE_DECL_POLL_MSG) && HAVE_DECL_POLL_MSG)
      21  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      22  static_assert((POLL_MSG) == (3), "POLL_MSG != 3");
      23  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      24  #else
      25  # define POLL_MSG 3
      26  #endif
      27  #if defined(POLL_ERR) || (defined(HAVE_DECL_POLL_ERR) && HAVE_DECL_POLL_ERR)
      28  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      29  static_assert((POLL_ERR) == (4), "POLL_ERR != 4");
      30  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      31  #else
      32  # define POLL_ERR 4
      33  #endif
      34  #if defined(POLL_PRI) || (defined(HAVE_DECL_POLL_PRI) && HAVE_DECL_POLL_PRI)
      35  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      36  static_assert((POLL_PRI) == (5), "POLL_PRI != 5");
      37  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      38  #else
      39  # define POLL_PRI 5
      40  #endif
      41  #if defined(POLL_HUP) || (defined(HAVE_DECL_POLL_HUP) && HAVE_DECL_POLL_HUP)
      42  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      43  static_assert((POLL_HUP) == (6), "POLL_HUP != 6");
      44  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      45  #else
      46  # define POLL_HUP 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 sigpoll_codes[];
      55  
      56  # else
      57  
      58  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      59  static const struct xlat_data sigpoll_codes_xdata[] = {
      60   [POLL_IN] = XLAT(POLL_IN),
      61   #define XLAT_VAL_0 ((unsigned) (POLL_IN))
      62   #define XLAT_STR_0 STRINGIFY(POLL_IN)
      63   [POLL_OUT] = XLAT(POLL_OUT),
      64   #define XLAT_VAL_1 ((unsigned) (POLL_OUT))
      65   #define XLAT_STR_1 STRINGIFY(POLL_OUT)
      66   [POLL_MSG] = XLAT(POLL_MSG),
      67   #define XLAT_VAL_2 ((unsigned) (POLL_MSG))
      68   #define XLAT_STR_2 STRINGIFY(POLL_MSG)
      69   [POLL_ERR] = XLAT(POLL_ERR),
      70   #define XLAT_VAL_3 ((unsigned) (POLL_ERR))
      71   #define XLAT_STR_3 STRINGIFY(POLL_ERR)
      72   [POLL_PRI] = XLAT(POLL_PRI),
      73   #define XLAT_VAL_4 ((unsigned) (POLL_PRI))
      74   #define XLAT_STR_4 STRINGIFY(POLL_PRI)
      75   [POLL_HUP] = XLAT(POLL_HUP),
      76   #define XLAT_VAL_5 ((unsigned) (POLL_HUP))
      77   #define XLAT_STR_5 STRINGIFY(POLL_HUP)
      78  };
      79  #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
      80  static
      81  #  endif
      82  const struct xlat sigpoll_codes[1] = { {
      83   .data = sigpoll_codes_xdata,
      84   .size = ARRAY_SIZE(sigpoll_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 */