1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/madvise_hppa_generic_cmds.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 madvise_hppa_generic_cmds in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data madvise_hppa_generic_cmds_xdata[] = {
18 /*
19 * These values are used on hppa since v6.2-rc1~39^2~7
20 * and on other architectures since their introduction;
21 * see madvise_hppa_old_cmds for the old values.
22 */
23 XLAT_PAIR(12, "MADV_MERGEABLE"),
24 #define XLAT_VAL_0 ((unsigned) (12))
25 #define XLAT_STR_0 "MADV_MERGEABLE"
26 XLAT_PAIR(13, "MADV_UNMERGEABLE"),
27 #define XLAT_VAL_1 ((unsigned) (13))
28 #define XLAT_STR_1 "MADV_UNMERGEABLE"
29 XLAT_PAIR(14, "MADV_HUGEPAGE"),
30 #define XLAT_VAL_2 ((unsigned) (14))
31 #define XLAT_STR_2 "MADV_HUGEPAGE"
32 XLAT_PAIR(15, "MADV_NOHUGEPAGE"),
33 #define XLAT_VAL_3 ((unsigned) (15))
34 #define XLAT_STR_3 "MADV_NOHUGEPAGE"
35 XLAT_PAIR(16, "MADV_DONTDUMP"),
36 #define XLAT_VAL_4 ((unsigned) (16))
37 #define XLAT_STR_4 "MADV_DONTDUMP"
38 XLAT_PAIR(17, "MADV_DODUMP"),
39 #define XLAT_VAL_5 ((unsigned) (17))
40 #define XLAT_STR_5 "MADV_DODUMP"
41 XLAT_PAIR(18, "MADV_WIPEONFORK"),
42 #define XLAT_VAL_6 ((unsigned) (18))
43 #define XLAT_STR_6 "MADV_WIPEONFORK"
44 XLAT_PAIR(19, "MADV_KEEPONFORK"),
45 #define XLAT_VAL_7 ((unsigned) (19))
46 #define XLAT_STR_7 "MADV_KEEPONFORK"
47 XLAT_PAIR(25, "MADV_COLLAPSE"),
48 #define XLAT_VAL_8 ((unsigned) (25))
49 #define XLAT_STR_8 "MADV_COLLAPSE"
50 };
51 static
52 const struct xlat madvise_hppa_generic_cmds[1] = { {
53 .data = madvise_hppa_generic_cmds_xdata,
54 .size = ARRAY_SIZE(madvise_hppa_generic_cmds_xdata),
55 .type = XT_NORMAL,
56 .flags_mask = 0
57 # ifdef XLAT_VAL_0
58 | XLAT_VAL_0
59 # endif
60 # ifdef XLAT_VAL_1
61 | XLAT_VAL_1
62 # endif
63 # ifdef XLAT_VAL_2
64 | XLAT_VAL_2
65 # endif
66 # ifdef XLAT_VAL_3
67 | XLAT_VAL_3
68 # endif
69 # ifdef XLAT_VAL_4
70 | XLAT_VAL_4
71 # endif
72 # ifdef XLAT_VAL_5
73 | XLAT_VAL_5
74 # endif
75 # ifdef XLAT_VAL_6
76 | XLAT_VAL_6
77 # endif
78 # ifdef XLAT_VAL_7
79 | XLAT_VAL_7
80 # endif
81 # ifdef XLAT_VAL_8
82 | XLAT_VAL_8
83 # endif
84 ,
85 .flags_strsz = 0
86 # ifdef XLAT_STR_0
87 + sizeof(XLAT_STR_0)
88 # endif
89 # ifdef XLAT_STR_1
90 + sizeof(XLAT_STR_1)
91 # endif
92 # ifdef XLAT_STR_2
93 + sizeof(XLAT_STR_2)
94 # endif
95 # ifdef XLAT_STR_3
96 + sizeof(XLAT_STR_3)
97 # endif
98 # ifdef XLAT_STR_4
99 + sizeof(XLAT_STR_4)
100 # endif
101 # ifdef XLAT_STR_5
102 + sizeof(XLAT_STR_5)
103 # endif
104 # ifdef XLAT_STR_6
105 + sizeof(XLAT_STR_6)
106 # endif
107 # ifdef XLAT_STR_7
108 + sizeof(XLAT_STR_7)
109 # endif
110 # ifdef XLAT_STR_8
111 + sizeof(XLAT_STR_8)
112 # endif
113 ,
114 } };
115 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
116
117 # undef XLAT_STR_0
118 # undef XLAT_VAL_0
119 # undef XLAT_STR_1
120 # undef XLAT_VAL_1
121 # undef XLAT_STR_2
122 # undef XLAT_VAL_2
123 # undef XLAT_STR_3
124 # undef XLAT_VAL_3
125 # undef XLAT_STR_4
126 # undef XLAT_VAL_4
127 # undef XLAT_STR_5
128 # undef XLAT_VAL_5
129 # undef XLAT_STR_6
130 # undef XLAT_VAL_6
131 # undef XLAT_STR_7
132 # undef XLAT_VAL_7
133 # undef XLAT_STR_8
134 # undef XLAT_VAL_8
135 # endif /* !IN_MPERS */
136
137 #endif /* !XLAT_MACROS_ONLY */