(root)/
strace-6.5/
src/
xlat/
epollctls.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/epollctls.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #if defined(EPOLL_CTL_ADD) || (defined(HAVE_DECL_EPOLL_CTL_ADD) && HAVE_DECL_EPOLL_CTL_ADD)
       7  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
       8  static_assert((EPOLL_CTL_ADD) == (1), "EPOLL_CTL_ADD != 1");
       9  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      10  #else
      11  # define EPOLL_CTL_ADD 1
      12  #endif
      13  #if defined(EPOLL_CTL_DEL) || (defined(HAVE_DECL_EPOLL_CTL_DEL) && HAVE_DECL_EPOLL_CTL_DEL)
      14  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      15  static_assert((EPOLL_CTL_DEL) == (2), "EPOLL_CTL_DEL != 2");
      16  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      17  #else
      18  # define EPOLL_CTL_DEL 2
      19  #endif
      20  #if defined(EPOLL_CTL_MOD) || (defined(HAVE_DECL_EPOLL_CTL_MOD) && HAVE_DECL_EPOLL_CTL_MOD)
      21  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      22  static_assert((EPOLL_CTL_MOD) == (3), "EPOLL_CTL_MOD != 3");
      23  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      24  #else
      25  # define EPOLL_CTL_MOD 3
      26  #endif
      27  #undef XLAT_PREV_VAL
      28  
      29  #ifndef XLAT_MACROS_ONLY
      30  
      31  # ifdef IN_MPERS
      32  
      33  #  error static const struct xlat epollctls in mpers mode
      34  
      35  # else
      36  
      37  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      38  static const struct xlat_data epollctls_xdata[] = {
      39   [EPOLL_CTL_ADD] = XLAT(EPOLL_CTL_ADD),
      40   #define XLAT_VAL_0 ((unsigned) (EPOLL_CTL_ADD))
      41   #define XLAT_STR_0 STRINGIFY(EPOLL_CTL_ADD)
      42   [EPOLL_CTL_DEL] = XLAT(EPOLL_CTL_DEL),
      43   #define XLAT_VAL_1 ((unsigned) (EPOLL_CTL_DEL))
      44   #define XLAT_STR_1 STRINGIFY(EPOLL_CTL_DEL)
      45   [EPOLL_CTL_MOD] = XLAT(EPOLL_CTL_MOD),
      46   #define XLAT_VAL_2 ((unsigned) (EPOLL_CTL_MOD))
      47   #define XLAT_STR_2 STRINGIFY(EPOLL_CTL_MOD)
      48  };
      49  static
      50  const struct xlat epollctls[1] = { {
      51   .data = epollctls_xdata,
      52   .size = ARRAY_SIZE(epollctls_xdata),
      53   .type = XT_INDEXED,
      54   .flags_mask = 0
      55  #  ifdef XLAT_VAL_0
      56    | XLAT_VAL_0
      57  #  endif
      58  #  ifdef XLAT_VAL_1
      59    | XLAT_VAL_1
      60  #  endif
      61  #  ifdef XLAT_VAL_2
      62    | XLAT_VAL_2
      63  #  endif
      64    ,
      65   .flags_strsz = 0
      66  #  ifdef XLAT_STR_0
      67    + sizeof(XLAT_STR_0)
      68  #  endif
      69  #  ifdef XLAT_STR_1
      70    + sizeof(XLAT_STR_1)
      71  #  endif
      72  #  ifdef XLAT_STR_2
      73    + sizeof(XLAT_STR_2)
      74  #  endif
      75    ,
      76  } };
      77  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      78  
      79  #  undef XLAT_STR_0
      80  #  undef XLAT_VAL_0
      81  #  undef XLAT_STR_1
      82  #  undef XLAT_VAL_1
      83  #  undef XLAT_STR_2
      84  #  undef XLAT_VAL_2
      85  # endif /* !IN_MPERS */
      86  
      87  #endif /* !XLAT_MACROS_ONLY */