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