1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/delete_module_flags.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 # ifdef IN_MPERS
11
12 # error static const struct xlat delete_module_flags in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data delete_module_flags_xdata[] = {
18 #if defined(O_NONBLOCK) || (defined(HAVE_DECL_O_NONBLOCK) && HAVE_DECL_O_NONBLOCK)
19 XLAT(O_NONBLOCK),
20 #define XLAT_VAL_0 ((unsigned) (O_NONBLOCK))
21 #define XLAT_STR_0 STRINGIFY(O_NONBLOCK)
22 #endif
23 #if defined(O_TRUNC) || (defined(HAVE_DECL_O_TRUNC) && HAVE_DECL_O_TRUNC)
24 XLAT(O_TRUNC),
25 #define XLAT_VAL_1 ((unsigned) (O_TRUNC))
26 #define XLAT_STR_1 STRINGIFY(O_TRUNC)
27 #endif
28 };
29 static
30 const struct xlat delete_module_flags[1] = { {
31 .data = delete_module_flags_xdata,
32 .size = ARRAY_SIZE(delete_module_flags_xdata),
33 .type = XT_NORMAL,
34 .flags_mask = 0
35 # ifdef XLAT_VAL_0
36 | XLAT_VAL_0
37 # endif
38 # ifdef XLAT_VAL_1
39 | XLAT_VAL_1
40 # endif
41 ,
42 .flags_strsz = 0
43 # ifdef XLAT_STR_0
44 + sizeof(XLAT_STR_0)
45 # endif
46 # ifdef XLAT_STR_1
47 + sizeof(XLAT_STR_1)
48 # endif
49 ,
50 } };
51 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
52
53 # undef XLAT_STR_0
54 # undef XLAT_VAL_0
55 # undef XLAT_STR_1
56 # undef XLAT_VAL_1
57 # endif /* !IN_MPERS */
58
59 #endif /* !XLAT_MACROS_ONLY */