1 /* Generated by ./xlat/gen.sh from ./xlat/prctl_options.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(PR_SET_PDEATHSIG) || (defined(HAVE_DECL_PR_SET_PDEATHSIG) && HAVE_DECL_PR_SET_PDEATHSIG)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((PR_SET_PDEATHSIG) == (1), "PR_SET_PDEATHSIG != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define PR_SET_PDEATHSIG 1
12 #endif
13 #if defined(PR_GET_PDEATHSIG) || (defined(HAVE_DECL_PR_GET_PDEATHSIG) && HAVE_DECL_PR_GET_PDEATHSIG)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((PR_GET_PDEATHSIG) == (2), "PR_GET_PDEATHSIG != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define PR_GET_PDEATHSIG 2
19 #endif
20 #if defined(PR_GET_DUMPABLE) || (defined(HAVE_DECL_PR_GET_DUMPABLE) && HAVE_DECL_PR_GET_DUMPABLE)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((PR_GET_DUMPABLE) == (3), "PR_GET_DUMPABLE != 3");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define PR_GET_DUMPABLE 3
26 #endif
27 #if defined(PR_SET_DUMPABLE) || (defined(HAVE_DECL_PR_SET_DUMPABLE) && HAVE_DECL_PR_SET_DUMPABLE)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((PR_SET_DUMPABLE) == (4), "PR_SET_DUMPABLE != 4");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define PR_SET_DUMPABLE 4
33 #endif
34 #if defined(PR_GET_UNALIGN) || (defined(HAVE_DECL_PR_GET_UNALIGN) && HAVE_DECL_PR_GET_UNALIGN)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((PR_GET_UNALIGN) == (5), "PR_GET_UNALIGN != 5");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define PR_GET_UNALIGN 5
40 #endif
41 #if defined(PR_SET_UNALIGN) || (defined(HAVE_DECL_PR_SET_UNALIGN) && HAVE_DECL_PR_SET_UNALIGN)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((PR_SET_UNALIGN) == (6), "PR_SET_UNALIGN != 6");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define PR_SET_UNALIGN 6
47 #endif
48 #if defined(PR_GET_KEEPCAPS) || (defined(HAVE_DECL_PR_GET_KEEPCAPS) && HAVE_DECL_PR_GET_KEEPCAPS)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((PR_GET_KEEPCAPS) == (7), "PR_GET_KEEPCAPS != 7");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define PR_GET_KEEPCAPS 7
54 #endif
55 #if defined(PR_SET_KEEPCAPS) || (defined(HAVE_DECL_PR_SET_KEEPCAPS) && HAVE_DECL_PR_SET_KEEPCAPS)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((PR_SET_KEEPCAPS) == (8), "PR_SET_KEEPCAPS != 8");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define PR_SET_KEEPCAPS 8
61 #endif
62 #if defined(PR_GET_FPEMU) || (defined(HAVE_DECL_PR_GET_FPEMU) && HAVE_DECL_PR_GET_FPEMU)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((PR_GET_FPEMU) == (9), "PR_GET_FPEMU != 9");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define PR_GET_FPEMU 9
68 #endif
69 #if defined(PR_SET_FPEMU) || (defined(HAVE_DECL_PR_SET_FPEMU) && HAVE_DECL_PR_SET_FPEMU)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((PR_SET_FPEMU) == (10), "PR_SET_FPEMU != 10");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define PR_SET_FPEMU 10
75 #endif
76 #if defined(PR_GET_FPEXC) || (defined(HAVE_DECL_PR_GET_FPEXC) && HAVE_DECL_PR_GET_FPEXC)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((PR_GET_FPEXC) == (11), "PR_GET_FPEXC != 11");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define PR_GET_FPEXC 11
82 #endif
83 #if defined(PR_SET_FPEXC) || (defined(HAVE_DECL_PR_SET_FPEXC) && HAVE_DECL_PR_SET_FPEXC)
84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
85 static_assert((PR_SET_FPEXC) == (12), "PR_SET_FPEXC != 12");
86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
87 #else
88 # define PR_SET_FPEXC 12
89 #endif
90 #if defined(PR_GET_TIMING) || (defined(HAVE_DECL_PR_GET_TIMING) && HAVE_DECL_PR_GET_TIMING)
91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
92 static_assert((PR_GET_TIMING) == (13), "PR_GET_TIMING != 13");
93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
94 #else
95 # define PR_GET_TIMING 13
96 #endif
97 #if defined(PR_SET_TIMING) || (defined(HAVE_DECL_PR_SET_TIMING) && HAVE_DECL_PR_SET_TIMING)
98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
99 static_assert((PR_SET_TIMING) == (14), "PR_SET_TIMING != 14");
100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
101 #else
102 # define PR_SET_TIMING 14
103 #endif
104 #if defined(PR_SET_NAME) || (defined(HAVE_DECL_PR_SET_NAME) && HAVE_DECL_PR_SET_NAME)
105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
106 static_assert((PR_SET_NAME) == (15), "PR_SET_NAME != 15");
107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
108 #else
109 # define PR_SET_NAME 15
110 #endif
111 #if defined(PR_GET_NAME) || (defined(HAVE_DECL_PR_GET_NAME) && HAVE_DECL_PR_GET_NAME)
112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
113 static_assert((PR_GET_NAME) == (16), "PR_GET_NAME != 16");
114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
115 #else
116 # define PR_GET_NAME 16
117 #endif
118 #if defined(PR_GET_ENDIAN) || (defined(HAVE_DECL_PR_GET_ENDIAN) && HAVE_DECL_PR_GET_ENDIAN)
119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
120 static_assert((PR_GET_ENDIAN) == (19), "PR_GET_ENDIAN != 19");
121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
122 #else
123 # define PR_GET_ENDIAN 19
124 #endif
125 #if defined(PR_SET_ENDIAN) || (defined(HAVE_DECL_PR_SET_ENDIAN) && HAVE_DECL_PR_SET_ENDIAN)
126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
127 static_assert((PR_SET_ENDIAN) == (20), "PR_SET_ENDIAN != 20");
128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
129 #else
130 # define PR_SET_ENDIAN 20
131 #endif
132 #if defined(PR_GET_SECCOMP) || (defined(HAVE_DECL_PR_GET_SECCOMP) && HAVE_DECL_PR_GET_SECCOMP)
133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
134 static_assert((PR_GET_SECCOMP) == (21), "PR_GET_SECCOMP != 21");
135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
136 #else
137 # define PR_GET_SECCOMP 21
138 #endif
139 #if defined(PR_SET_SECCOMP) || (defined(HAVE_DECL_PR_SET_SECCOMP) && HAVE_DECL_PR_SET_SECCOMP)
140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
141 static_assert((PR_SET_SECCOMP) == (22), "PR_SET_SECCOMP != 22");
142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
143 #else
144 # define PR_SET_SECCOMP 22
145 #endif
146 #if defined(PR_CAPBSET_READ) || (defined(HAVE_DECL_PR_CAPBSET_READ) && HAVE_DECL_PR_CAPBSET_READ)
147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
148 static_assert((PR_CAPBSET_READ) == (23), "PR_CAPBSET_READ != 23");
149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
150 #else
151 # define PR_CAPBSET_READ 23
152 #endif
153 #if defined(PR_CAPBSET_DROP) || (defined(HAVE_DECL_PR_CAPBSET_DROP) && HAVE_DECL_PR_CAPBSET_DROP)
154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
155 static_assert((PR_CAPBSET_DROP) == (24), "PR_CAPBSET_DROP != 24");
156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
157 #else
158 # define PR_CAPBSET_DROP 24
159 #endif
160 #if defined(PR_GET_TSC) || (defined(HAVE_DECL_PR_GET_TSC) && HAVE_DECL_PR_GET_TSC)
161 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
162 static_assert((PR_GET_TSC) == (25), "PR_GET_TSC != 25");
163 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
164 #else
165 # define PR_GET_TSC 25
166 #endif
167 #if defined(PR_SET_TSC) || (defined(HAVE_DECL_PR_SET_TSC) && HAVE_DECL_PR_SET_TSC)
168 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
169 static_assert((PR_SET_TSC) == (26), "PR_SET_TSC != 26");
170 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
171 #else
172 # define PR_SET_TSC 26
173 #endif
174 #if defined(PR_GET_SECUREBITS) || (defined(HAVE_DECL_PR_GET_SECUREBITS) && HAVE_DECL_PR_GET_SECUREBITS)
175 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
176 static_assert((PR_GET_SECUREBITS) == (27), "PR_GET_SECUREBITS != 27");
177 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
178 #else
179 # define PR_GET_SECUREBITS 27
180 #endif
181 #if defined(PR_SET_SECUREBITS) || (defined(HAVE_DECL_PR_SET_SECUREBITS) && HAVE_DECL_PR_SET_SECUREBITS)
182 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
183 static_assert((PR_SET_SECUREBITS) == (28), "PR_SET_SECUREBITS != 28");
184 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
185 #else
186 # define PR_SET_SECUREBITS 28
187 #endif
188 #if defined(PR_SET_TIMERSLACK) || (defined(HAVE_DECL_PR_SET_TIMERSLACK) && HAVE_DECL_PR_SET_TIMERSLACK)
189 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
190 static_assert((PR_SET_TIMERSLACK) == (29), "PR_SET_TIMERSLACK != 29");
191 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
192 #else
193 # define PR_SET_TIMERSLACK 29
194 #endif
195 #if defined(PR_GET_TIMERSLACK) || (defined(HAVE_DECL_PR_GET_TIMERSLACK) && HAVE_DECL_PR_GET_TIMERSLACK)
196 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
197 static_assert((PR_GET_TIMERSLACK) == (30), "PR_GET_TIMERSLACK != 30");
198 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
199 #else
200 # define PR_GET_TIMERSLACK 30
201 #endif
202 #if defined(PR_TASK_PERF_EVENTS_DISABLE) || (defined(HAVE_DECL_PR_TASK_PERF_EVENTS_DISABLE) && HAVE_DECL_PR_TASK_PERF_EVENTS_DISABLE)
203 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
204 static_assert((PR_TASK_PERF_EVENTS_DISABLE) == (31), "PR_TASK_PERF_EVENTS_DISABLE != 31");
205 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
206 #else
207 # define PR_TASK_PERF_EVENTS_DISABLE 31
208 #endif
209 #if defined(PR_TASK_PERF_EVENTS_ENABLE) || (defined(HAVE_DECL_PR_TASK_PERF_EVENTS_ENABLE) && HAVE_DECL_PR_TASK_PERF_EVENTS_ENABLE)
210 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
211 static_assert((PR_TASK_PERF_EVENTS_ENABLE) == (32), "PR_TASK_PERF_EVENTS_ENABLE != 32");
212 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
213 #else
214 # define PR_TASK_PERF_EVENTS_ENABLE 32
215 #endif
216 #if defined(PR_MCE_KILL) || (defined(HAVE_DECL_PR_MCE_KILL) && HAVE_DECL_PR_MCE_KILL)
217 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
218 static_assert((PR_MCE_KILL) == (33), "PR_MCE_KILL != 33");
219 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
220 #else
221 # define PR_MCE_KILL 33
222 #endif
223 #if defined(PR_MCE_KILL_GET) || (defined(HAVE_DECL_PR_MCE_KILL_GET) && HAVE_DECL_PR_MCE_KILL_GET)
224 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
225 static_assert((PR_MCE_KILL_GET) == (34), "PR_MCE_KILL_GET != 34");
226 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
227 #else
228 # define PR_MCE_KILL_GET 34
229 #endif
230 #if defined(PR_SET_MM) || (defined(HAVE_DECL_PR_SET_MM) && HAVE_DECL_PR_SET_MM)
231 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
232 static_assert((PR_SET_MM) == (35), "PR_SET_MM != 35");
233 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
234 #else
235 # define PR_SET_MM 35
236 #endif
237 #if defined(PR_SET_PTRACER) || (defined(HAVE_DECL_PR_SET_PTRACER) && HAVE_DECL_PR_SET_PTRACER)
238 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
239 static_assert((PR_SET_PTRACER) == (0x59616d61), "PR_SET_PTRACER != 0x59616d61");
240 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
241 #else
242 # define PR_SET_PTRACER 0x59616d61
243 #endif
244 #if defined(PR_SET_CHILD_SUBREAPER) || (defined(HAVE_DECL_PR_SET_CHILD_SUBREAPER) && HAVE_DECL_PR_SET_CHILD_SUBREAPER)
245 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
246 static_assert((PR_SET_CHILD_SUBREAPER) == (36), "PR_SET_CHILD_SUBREAPER != 36");
247 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
248 #else
249 # define PR_SET_CHILD_SUBREAPER 36
250 #endif
251 #if defined(PR_GET_CHILD_SUBREAPER) || (defined(HAVE_DECL_PR_GET_CHILD_SUBREAPER) && HAVE_DECL_PR_GET_CHILD_SUBREAPER)
252 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
253 static_assert((PR_GET_CHILD_SUBREAPER) == (37), "PR_GET_CHILD_SUBREAPER != 37");
254 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
255 #else
256 # define PR_GET_CHILD_SUBREAPER 37
257 #endif
258 #if defined(PR_SET_NO_NEW_PRIVS) || (defined(HAVE_DECL_PR_SET_NO_NEW_PRIVS) && HAVE_DECL_PR_SET_NO_NEW_PRIVS)
259 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
260 static_assert((PR_SET_NO_NEW_PRIVS) == (38), "PR_SET_NO_NEW_PRIVS != 38");
261 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
262 #else
263 # define PR_SET_NO_NEW_PRIVS 38
264 #endif
265 #if defined(PR_GET_NO_NEW_PRIVS) || (defined(HAVE_DECL_PR_GET_NO_NEW_PRIVS) && HAVE_DECL_PR_GET_NO_NEW_PRIVS)
266 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
267 static_assert((PR_GET_NO_NEW_PRIVS) == (39), "PR_GET_NO_NEW_PRIVS != 39");
268 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
269 #else
270 # define PR_GET_NO_NEW_PRIVS 39
271 #endif
272 #if defined(PR_GET_TID_ADDRESS) || (defined(HAVE_DECL_PR_GET_TID_ADDRESS) && HAVE_DECL_PR_GET_TID_ADDRESS)
273 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
274 static_assert((PR_GET_TID_ADDRESS) == (40), "PR_GET_TID_ADDRESS != 40");
275 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
276 #else
277 # define PR_GET_TID_ADDRESS 40
278 #endif
279 #if defined(PR_SET_THP_DISABLE) || (defined(HAVE_DECL_PR_SET_THP_DISABLE) && HAVE_DECL_PR_SET_THP_DISABLE)
280 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
281 static_assert((PR_SET_THP_DISABLE) == (41), "PR_SET_THP_DISABLE != 41");
282 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
283 #else
284 # define PR_SET_THP_DISABLE 41
285 #endif
286 #if defined(PR_GET_THP_DISABLE) || (defined(HAVE_DECL_PR_GET_THP_DISABLE) && HAVE_DECL_PR_GET_THP_DISABLE)
287 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
288 static_assert((PR_GET_THP_DISABLE) == (42), "PR_GET_THP_DISABLE != 42");
289 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
290 #else
291 # define PR_GET_THP_DISABLE 42
292 #endif
293 #if defined(PR_MPX_ENABLE_MANAGEMENT) || (defined(HAVE_DECL_PR_MPX_ENABLE_MANAGEMENT) && HAVE_DECL_PR_MPX_ENABLE_MANAGEMENT)
294 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
295 static_assert((PR_MPX_ENABLE_MANAGEMENT) == (43), "PR_MPX_ENABLE_MANAGEMENT != 43");
296 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
297 #else
298 # define PR_MPX_ENABLE_MANAGEMENT 43
299 #endif
300 #if defined(PR_MPX_DISABLE_MANAGEMENT) || (defined(HAVE_DECL_PR_MPX_DISABLE_MANAGEMENT) && HAVE_DECL_PR_MPX_DISABLE_MANAGEMENT)
301 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
302 static_assert((PR_MPX_DISABLE_MANAGEMENT) == (44), "PR_MPX_DISABLE_MANAGEMENT != 44");
303 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
304 #else
305 # define PR_MPX_DISABLE_MANAGEMENT 44
306 #endif
307 #if defined(PR_SET_FP_MODE) || (defined(HAVE_DECL_PR_SET_FP_MODE) && HAVE_DECL_PR_SET_FP_MODE)
308 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
309 static_assert((PR_SET_FP_MODE) == (45), "PR_SET_FP_MODE != 45");
310 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
311 #else
312 # define PR_SET_FP_MODE 45
313 #endif
314 #if defined(PR_GET_FP_MODE) || (defined(HAVE_DECL_PR_GET_FP_MODE) && HAVE_DECL_PR_GET_FP_MODE)
315 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
316 static_assert((PR_GET_FP_MODE) == (46), "PR_GET_FP_MODE != 46");
317 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
318 #else
319 # define PR_GET_FP_MODE 46
320 #endif
321 #if defined(PR_CAP_AMBIENT) || (defined(HAVE_DECL_PR_CAP_AMBIENT) && HAVE_DECL_PR_CAP_AMBIENT)
322 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
323 static_assert((PR_CAP_AMBIENT) == (47), "PR_CAP_AMBIENT != 47");
324 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
325 #else
326 # define PR_CAP_AMBIENT 47
327 #endif
328 #if defined(PR_SVE_SET_VL) || (defined(HAVE_DECL_PR_SVE_SET_VL) && HAVE_DECL_PR_SVE_SET_VL)
329 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
330 static_assert((PR_SVE_SET_VL) == (50), "PR_SVE_SET_VL != 50");
331 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
332 #else
333 # define PR_SVE_SET_VL 50
334 #endif
335 #if defined(PR_SVE_GET_VL) || (defined(HAVE_DECL_PR_SVE_GET_VL) && HAVE_DECL_PR_SVE_GET_VL)
336 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
337 static_assert((PR_SVE_GET_VL) == (51), "PR_SVE_GET_VL != 51");
338 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
339 #else
340 # define PR_SVE_GET_VL 51
341 #endif
342 #if defined(PR_GET_SPECULATION_CTRL) || (defined(HAVE_DECL_PR_GET_SPECULATION_CTRL) && HAVE_DECL_PR_GET_SPECULATION_CTRL)
343 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
344 static_assert((PR_GET_SPECULATION_CTRL) == (52), "PR_GET_SPECULATION_CTRL != 52");
345 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
346 #else
347 # define PR_GET_SPECULATION_CTRL 52
348 #endif
349 #if defined(PR_SET_SPECULATION_CTRL) || (defined(HAVE_DECL_PR_SET_SPECULATION_CTRL) && HAVE_DECL_PR_SET_SPECULATION_CTRL)
350 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
351 static_assert((PR_SET_SPECULATION_CTRL) == (53), "PR_SET_SPECULATION_CTRL != 53");
352 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
353 #else
354 # define PR_SET_SPECULATION_CTRL 53
355 #endif
356 #if defined(PR_SET_VMA) || (defined(HAVE_DECL_PR_SET_VMA) && HAVE_DECL_PR_SET_VMA)
357 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
358 static_assert((PR_SET_VMA) == (0x53564d41), "PR_SET_VMA != 0x53564d41");
359 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
360 #else
361 # define PR_SET_VMA 0x53564d41
362 #endif
363 
364 #ifndef XLAT_MACROS_ONLY
365 
366 # ifdef IN_MPERS
367 
368 #  error static const struct xlat prctl_options in mpers mode
369 
370 # else
371 
372 static
373 const struct xlat prctl_options[] = {
374  XLAT(PR_SET_PDEATHSIG),
375  XLAT(PR_GET_PDEATHSIG),
376  XLAT(PR_GET_DUMPABLE),
377  XLAT(PR_SET_DUMPABLE),
378  XLAT(PR_GET_UNALIGN),
379  XLAT(PR_SET_UNALIGN),
380  XLAT(PR_GET_KEEPCAPS),
381  XLAT(PR_SET_KEEPCAPS),
382  XLAT(PR_GET_FPEMU),
383  XLAT(PR_SET_FPEMU),
384  XLAT(PR_GET_FPEXC),
385  XLAT(PR_SET_FPEXC),
386  XLAT(PR_GET_TIMING),
387  XLAT(PR_SET_TIMING),
388  XLAT(PR_SET_NAME),
389  XLAT(PR_GET_NAME),
390  XLAT(PR_GET_ENDIAN),
391  XLAT(PR_SET_ENDIAN),
392  XLAT(PR_GET_SECCOMP),
393  XLAT(PR_SET_SECCOMP),
394  XLAT(PR_CAPBSET_READ),
395  XLAT(PR_CAPBSET_DROP),
396  XLAT(PR_GET_TSC),
397  XLAT(PR_SET_TSC),
398  XLAT(PR_GET_SECUREBITS),
399  XLAT(PR_SET_SECUREBITS),
400  XLAT(PR_SET_TIMERSLACK),
401  XLAT(PR_GET_TIMERSLACK),
402  XLAT(PR_TASK_PERF_EVENTS_DISABLE),
403  XLAT(PR_TASK_PERF_EVENTS_ENABLE),
404  XLAT(PR_MCE_KILL),
405  XLAT(PR_MCE_KILL_GET),
406  XLAT(PR_SET_MM),
407  XLAT(PR_SET_PTRACER),
408  XLAT(PR_SET_CHILD_SUBREAPER),
409  XLAT(PR_GET_CHILD_SUBREAPER),
410  XLAT(PR_SET_NO_NEW_PRIVS),
411  XLAT(PR_GET_NO_NEW_PRIVS),
412  XLAT(PR_GET_TID_ADDRESS),
413  XLAT(PR_SET_THP_DISABLE),
414  XLAT(PR_GET_THP_DISABLE),
415  XLAT(PR_MPX_ENABLE_MANAGEMENT),
416  XLAT(PR_MPX_DISABLE_MANAGEMENT),
417  XLAT(PR_SET_FP_MODE),
418  XLAT(PR_GET_FP_MODE),
419  XLAT(PR_CAP_AMBIENT),
420  XLAT(PR_SVE_SET_VL),
421  XLAT(PR_SVE_GET_VL),
422  XLAT(PR_GET_SPECULATION_CTRL),
423  XLAT(PR_SET_SPECULATION_CTRL),
424  XLAT(PR_SET_VMA),
425  XLAT_END
426 };
427 
428 # endif /* !IN_MPERS */
429 
430 #endif /* !XLAT_MACROS_ONLY */
431