(root)/
strace-6.5/
src/
xlat/
timerfdflags.h
       1  /* Generated by ./src/xlat/gen.sh from ./src/xlat/timerfdflags.in; do not edit. */
       2  
       3  #include "gcc_compat.h"
       4  #include "static_assert.h"
       5  
       6  #if defined(TFD_TIMER_ABSTIME) || (defined(HAVE_DECL_TFD_TIMER_ABSTIME) && HAVE_DECL_TFD_TIMER_ABSTIME)
       7  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
       8  static_assert((TFD_TIMER_ABSTIME) == ((1 << 0)), "TFD_TIMER_ABSTIME != (1 << 0)");
       9  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      10  #else
      11  # define TFD_TIMER_ABSTIME (1 << 0)
      12  #endif
      13  #if defined(TFD_TIMER_CANCEL_ON_SET) || (defined(HAVE_DECL_TFD_TIMER_CANCEL_ON_SET) && HAVE_DECL_TFD_TIMER_CANCEL_ON_SET)
      14  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      15  static_assert((TFD_TIMER_CANCEL_ON_SET) == ((1 << 1)), "TFD_TIMER_CANCEL_ON_SET != (1 << 1)");
      16  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      17  #else
      18  # define TFD_TIMER_CANCEL_ON_SET (1 << 1)
      19  #endif
      20  #if defined(TFD_CLOEXEC) || (defined(HAVE_DECL_TFD_CLOEXEC) && HAVE_DECL_TFD_CLOEXEC)
      21  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      22  static_assert((TFD_CLOEXEC) == (O_CLOEXEC), "TFD_CLOEXEC != O_CLOEXEC");
      23  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      24  #else
      25  # define TFD_CLOEXEC O_CLOEXEC
      26  #endif
      27  #if defined(TFD_NONBLOCK) || (defined(HAVE_DECL_TFD_NONBLOCK) && HAVE_DECL_TFD_NONBLOCK)
      28  DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      29  static_assert((TFD_NONBLOCK) == (O_NONBLOCK), "TFD_NONBLOCK != O_NONBLOCK");
      30  DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
      31  #else
      32  # define TFD_NONBLOCK O_NONBLOCK
      33  #endif
      34  #undef XLAT_PREV_VAL
      35  
      36  #ifndef XLAT_MACROS_ONLY
      37  
      38  # ifdef IN_MPERS
      39  
      40  #  error static const struct xlat timerfdflags in mpers mode
      41  
      42  # else
      43  
      44  DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      45  static const struct xlat_data timerfdflags_xdata[] = {
      46  
      47  
      48   XLAT(TFD_TIMER_ABSTIME),
      49   #define XLAT_VAL_0 ((unsigned) (TFD_TIMER_ABSTIME))
      50   #define XLAT_STR_0 STRINGIFY(TFD_TIMER_ABSTIME)
      51   XLAT(TFD_TIMER_CANCEL_ON_SET),
      52   #define XLAT_VAL_1 ((unsigned) (TFD_TIMER_CANCEL_ON_SET))
      53   #define XLAT_STR_1 STRINGIFY(TFD_TIMER_CANCEL_ON_SET)
      54   XLAT(TFD_CLOEXEC),
      55   #define XLAT_VAL_2 ((unsigned) (TFD_CLOEXEC))
      56   #define XLAT_STR_2 STRINGIFY(TFD_CLOEXEC)
      57   XLAT(TFD_NONBLOCK),
      58   #define XLAT_VAL_3 ((unsigned) (TFD_NONBLOCK))
      59   #define XLAT_STR_3 STRINGIFY(TFD_NONBLOCK)
      60  };
      61  static
      62  const struct xlat timerfdflags[1] = { {
      63   .data = timerfdflags_xdata,
      64   .size = ARRAY_SIZE(timerfdflags_xdata),
      65   .type = XT_NORMAL,
      66   .flags_mask = 0
      67  #  ifdef XLAT_VAL_0
      68    | XLAT_VAL_0
      69  #  endif
      70  #  ifdef XLAT_VAL_1
      71    | XLAT_VAL_1
      72  #  endif
      73  #  ifdef XLAT_VAL_2
      74    | XLAT_VAL_2
      75  #  endif
      76  #  ifdef XLAT_VAL_3
      77    | XLAT_VAL_3
      78  #  endif
      79    ,
      80   .flags_strsz = 0
      81  #  ifdef XLAT_STR_0
      82    + sizeof(XLAT_STR_0)
      83  #  endif
      84  #  ifdef XLAT_STR_1
      85    + sizeof(XLAT_STR_1)
      86  #  endif
      87  #  ifdef XLAT_STR_2
      88    + sizeof(XLAT_STR_2)
      89  #  endif
      90  #  ifdef XLAT_STR_3
      91    + sizeof(XLAT_STR_3)
      92  #  endif
      93    ,
      94  } };
      95  DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
      96  
      97  #  undef XLAT_STR_0
      98  #  undef XLAT_VAL_0
      99  #  undef XLAT_STR_1
     100  #  undef XLAT_VAL_1
     101  #  undef XLAT_STR_2
     102  #  undef XLAT_VAL_2
     103  #  undef XLAT_STR_3
     104  #  undef XLAT_VAL_3
     105  # endif /* !IN_MPERS */
     106  
     107  #endif /* !XLAT_MACROS_ONLY */