1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/mq_attr_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 extern const struct xlat mq_attr_flags[];
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data mq_attr_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 };
24 # if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
25 static
26 # endif
27 const struct xlat mq_attr_flags[1] = { {
28 .data = mq_attr_flags_xdata,
29 .size = ARRAY_SIZE(mq_attr_flags_xdata),
30 .type = XT_NORMAL,
31 .flags_mask = 0
32 # ifdef XLAT_VAL_0
33 | XLAT_VAL_0
34 # endif
35 ,
36 .flags_strsz = 0
37 # ifdef XLAT_STR_0
38 + sizeof(XLAT_STR_0)
39 # endif
40 ,
41 } };
42 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
43
44 # undef XLAT_STR_0
45 # undef XLAT_VAL_0
46 # endif /* !IN_MPERS */
47
48 #endif /* !XLAT_MACROS_ONLY */