/* Generated by ./src/xlat/gen.sh from ./src/xlat/rwf_flags.in; do not edit. */

#include "gcc_compat.h"
#include "static_assert.h"

#if defined(RWF_HIPRI) || (defined(HAVE_DECL_RWF_HIPRI) && HAVE_DECL_RWF_HIPRI)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RWF_HIPRI) == (0x01), "RWF_HIPRI != 0x01");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RWF_HIPRI 0x01
#endif
#if defined(RWF_DSYNC) || (defined(HAVE_DECL_RWF_DSYNC) && HAVE_DECL_RWF_DSYNC)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RWF_DSYNC) == (0x02), "RWF_DSYNC != 0x02");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RWF_DSYNC 0x02
#endif
#if defined(RWF_SYNC) || (defined(HAVE_DECL_RWF_SYNC) && HAVE_DECL_RWF_SYNC)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RWF_SYNC) == (0x04), "RWF_SYNC != 0x04");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RWF_SYNC 0x04
#endif
#if defined(RWF_NOWAIT) || (defined(HAVE_DECL_RWF_NOWAIT) && HAVE_DECL_RWF_NOWAIT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RWF_NOWAIT) == (0x08), "RWF_NOWAIT != 0x08");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RWF_NOWAIT 0x08
#endif
#if defined(RWF_APPEND) || (defined(HAVE_DECL_RWF_APPEND) && HAVE_DECL_RWF_APPEND)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RWF_APPEND) == (0x10), "RWF_APPEND != 0x10");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RWF_APPEND 0x10
#endif
#if defined(RWF_NOAPPEND) || (defined(HAVE_DECL_RWF_NOAPPEND) && HAVE_DECL_RWF_NOAPPEND)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RWF_NOAPPEND) == (0x20), "RWF_NOAPPEND != 0x20");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RWF_NOAPPEND 0x20
#endif
#if defined(RWF_ATOMIC) || (defined(HAVE_DECL_RWF_ATOMIC) && HAVE_DECL_RWF_ATOMIC)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RWF_ATOMIC) == (0x40), "RWF_ATOMIC != 0x40");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RWF_ATOMIC 0x40
#endif
#if defined(RWF_DONTCACHE) || (defined(HAVE_DECL_RWF_DONTCACHE) && HAVE_DECL_RWF_DONTCACHE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RWF_DONTCACHE) == (0x80), "RWF_DONTCACHE != 0x80");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RWF_DONTCACHE 0x80
#endif
#if defined(RWF_NOSIGNAL) || (defined(HAVE_DECL_RWF_NOSIGNAL) && HAVE_DECL_RWF_NOSIGNAL)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RWF_NOSIGNAL) == (0x100), "RWF_NOSIGNAL != 0x100");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RWF_NOSIGNAL 0x100
#endif
#undef XLAT_PREV_VAL

#ifndef XLAT_MACROS_ONLY

# ifndef IN_MPERS

DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
static const struct xlat_data rwf_flags_xdata[] = {
 XLAT(RWF_HIPRI),
 #define XLAT_VAL_0 ((unsigned) (RWF_HIPRI))
 #define XLAT_STR_0 STRINGIFY(RWF_HIPRI)
 XLAT(RWF_DSYNC),
 #define XLAT_VAL_1 ((unsigned) (RWF_DSYNC))
 #define XLAT_STR_1 STRINGIFY(RWF_DSYNC)
 XLAT(RWF_SYNC),
 #define XLAT_VAL_2 ((unsigned) (RWF_SYNC))
 #define XLAT_STR_2 STRINGIFY(RWF_SYNC)
 XLAT(RWF_NOWAIT),
 #define XLAT_VAL_3 ((unsigned) (RWF_NOWAIT))
 #define XLAT_STR_3 STRINGIFY(RWF_NOWAIT)
 XLAT(RWF_APPEND),
 #define XLAT_VAL_4 ((unsigned) (RWF_APPEND))
 #define XLAT_STR_4 STRINGIFY(RWF_APPEND)
 XLAT(RWF_NOAPPEND),
 #define XLAT_VAL_5 ((unsigned) (RWF_NOAPPEND))
 #define XLAT_STR_5 STRINGIFY(RWF_NOAPPEND)
 XLAT(RWF_ATOMIC),
 #define XLAT_VAL_6 ((unsigned) (RWF_ATOMIC))
 #define XLAT_STR_6 STRINGIFY(RWF_ATOMIC)
 XLAT(RWF_DONTCACHE),
 #define XLAT_VAL_7 ((unsigned) (RWF_DONTCACHE))
 #define XLAT_STR_7 STRINGIFY(RWF_DONTCACHE)
 XLAT(RWF_NOSIGNAL),
 #define XLAT_VAL_8 ((unsigned) (RWF_NOSIGNAL))
 #define XLAT_STR_8 STRINGIFY(RWF_NOSIGNAL)
};
const struct xlat rwf_flags[1] = { {
 .data = rwf_flags_xdata,
 .size = ARRAY_SIZE(rwf_flags_xdata),
 .type = XT_NORMAL,
 .flags_mask = 0
#  ifdef XLAT_VAL_0
  | XLAT_VAL_0
#  endif
#  ifdef XLAT_VAL_1
  | XLAT_VAL_1
#  endif
#  ifdef XLAT_VAL_2
  | XLAT_VAL_2
#  endif
#  ifdef XLAT_VAL_3
  | XLAT_VAL_3
#  endif
#  ifdef XLAT_VAL_4
  | XLAT_VAL_4
#  endif
#  ifdef XLAT_VAL_5
  | XLAT_VAL_5
#  endif
#  ifdef XLAT_VAL_6
  | XLAT_VAL_6
#  endif
#  ifdef XLAT_VAL_7
  | XLAT_VAL_7
#  endif
#  ifdef XLAT_VAL_8
  | XLAT_VAL_8
#  endif
  ,
 .flags_strsz = 0
#  ifdef XLAT_STR_0
  + sizeof(XLAT_STR_0)
#  endif
#  ifdef XLAT_STR_1
  + sizeof(XLAT_STR_1)
#  endif
#  ifdef XLAT_STR_2
  + sizeof(XLAT_STR_2)
#  endif
#  ifdef XLAT_STR_3
  + sizeof(XLAT_STR_3)
#  endif
#  ifdef XLAT_STR_4
  + sizeof(XLAT_STR_4)
#  endif
#  ifdef XLAT_STR_5
  + sizeof(XLAT_STR_5)
#  endif
#  ifdef XLAT_STR_6
  + sizeof(XLAT_STR_6)
#  endif
#  ifdef XLAT_STR_7
  + sizeof(XLAT_STR_7)
#  endif
#  ifdef XLAT_STR_8
  + sizeof(XLAT_STR_8)
#  endif
  ,
} };
DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE

#  undef XLAT_STR_0
#  undef XLAT_VAL_0
#  undef XLAT_STR_1
#  undef XLAT_VAL_1
#  undef XLAT_STR_2
#  undef XLAT_VAL_2
#  undef XLAT_STR_3
#  undef XLAT_VAL_3
#  undef XLAT_STR_4
#  undef XLAT_VAL_4
#  undef XLAT_STR_5
#  undef XLAT_VAL_5
#  undef XLAT_STR_6
#  undef XLAT_VAL_6
#  undef XLAT_STR_7
#  undef XLAT_VAL_7
#  undef XLAT_STR_8
#  undef XLAT_VAL_8
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
