• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/rwf_flags.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(RWF_HIPRI) || (defined(HAVE_DECL_RWF_HIPRI) && HAVE_DECL_RWF_HIPRI)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((RWF_HIPRI) == (0x01), "RWF_HIPRI != 0x01");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define RWF_HIPRI 0x01
12 #endif
13 #if defined(RWF_DSYNC) || (defined(HAVE_DECL_RWF_DSYNC) && HAVE_DECL_RWF_DSYNC)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((RWF_DSYNC) == (0x02), "RWF_DSYNC != 0x02");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define RWF_DSYNC 0x02
19 #endif
20 #if defined(RWF_SYNC) || (defined(HAVE_DECL_RWF_SYNC) && HAVE_DECL_RWF_SYNC)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((RWF_SYNC) == (0x04), "RWF_SYNC != 0x04");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define RWF_SYNC 0x04
26 #endif
27 #if defined(RWF_NOWAIT) || (defined(HAVE_DECL_RWF_NOWAIT) && HAVE_DECL_RWF_NOWAIT)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((RWF_NOWAIT) == (0x08), "RWF_NOWAIT != 0x08");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define RWF_NOWAIT 0x08
33 #endif
34 #if defined(RWF_APPEND) || (defined(HAVE_DECL_RWF_APPEND) && HAVE_DECL_RWF_APPEND)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((RWF_APPEND) == (0x10), "RWF_APPEND != 0x10");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define RWF_APPEND 0x10
40 #endif
41 
42 #ifndef XLAT_MACROS_ONLY
43 
44 # ifdef IN_MPERS
45 
46 #  error static const struct xlat rwf_flags in mpers mode
47 
48 # else
49 
50 static
51 const struct xlat rwf_flags[] = {
52  XLAT(RWF_HIPRI),
53  XLAT(RWF_DSYNC),
54  XLAT(RWF_SYNC),
55  XLAT(RWF_NOWAIT),
56  XLAT(RWF_APPEND),
57  XLAT_END
58 };
59 
60 # endif /* !IN_MPERS */
61 
62 #endif /* !XLAT_MACROS_ONLY */
63