1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/memfd_create_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 memfd_create_flags in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data memfd_create_flags_xdata[] = {
18 XLAT(MFD_CLOEXEC),
19 #define XLAT_VAL_0 ((unsigned) (MFD_CLOEXEC))
20 #define XLAT_STR_0 STRINGIFY(MFD_CLOEXEC)
21 XLAT(MFD_ALLOW_SEALING),
22 #define XLAT_VAL_1 ((unsigned) (MFD_ALLOW_SEALING))
23 #define XLAT_STR_1 STRINGIFY(MFD_ALLOW_SEALING)
24 XLAT(MFD_HUGETLB),
25 #define XLAT_VAL_2 ((unsigned) (MFD_HUGETLB))
26 #define XLAT_STR_2 STRINGIFY(MFD_HUGETLB)
27 XLAT(MFD_NOEXEC_SEAL),
28 #define XLAT_VAL_3 ((unsigned) (MFD_NOEXEC_SEAL))
29 #define XLAT_STR_3 STRINGIFY(MFD_NOEXEC_SEAL)
30 XLAT(MFD_EXEC),
31 #define XLAT_VAL_4 ((unsigned) (MFD_EXEC))
32 #define XLAT_STR_4 STRINGIFY(MFD_EXEC)
33 };
34 static
35 const struct xlat memfd_create_flags[1] = { {
36 .data = memfd_create_flags_xdata,
37 .size = ARRAY_SIZE(memfd_create_flags_xdata),
38 .type = XT_NORMAL,
39 .flags_mask = 0
40 # ifdef XLAT_VAL_0
41 | XLAT_VAL_0
42 # endif
43 # ifdef XLAT_VAL_1
44 | XLAT_VAL_1
45 # endif
46 # ifdef XLAT_VAL_2
47 | XLAT_VAL_2
48 # endif
49 # ifdef XLAT_VAL_3
50 | XLAT_VAL_3
51 # endif
52 # ifdef XLAT_VAL_4
53 | XLAT_VAL_4
54 # endif
55 ,
56 .flags_strsz = 0
57 # ifdef XLAT_STR_0
58 + sizeof(XLAT_STR_0)
59 # endif
60 # ifdef XLAT_STR_1
61 + sizeof(XLAT_STR_1)
62 # endif
63 # ifdef XLAT_STR_2
64 + sizeof(XLAT_STR_2)
65 # endif
66 # ifdef XLAT_STR_3
67 + sizeof(XLAT_STR_3)
68 # endif
69 # ifdef XLAT_STR_4
70 + sizeof(XLAT_STR_4)
71 # endif
72 ,
73 } };
74 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
75
76 # undef XLAT_STR_0
77 # undef XLAT_VAL_0
78 # undef XLAT_STR_1
79 # undef XLAT_VAL_1
80 # undef XLAT_STR_2
81 # undef XLAT_VAL_2
82 # undef XLAT_STR_3
83 # undef XLAT_VAL_3
84 # undef XLAT_STR_4
85 # undef XLAT_VAL_4
86 # endif /* !IN_MPERS */
87
88 #endif /* !XLAT_MACROS_ONLY */