1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/priorities.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 priorities in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data priorities_xdata[] = {
18 #if defined(PRIO_PROCESS) || (defined(HAVE_DECL_PRIO_PROCESS) && HAVE_DECL_PRIO_PROCESS)
19 XLAT(PRIO_PROCESS),
20 #define XLAT_VAL_0 ((unsigned) (PRIO_PROCESS))
21 #define XLAT_STR_0 STRINGIFY(PRIO_PROCESS)
22 #endif
23 #if defined(PRIO_PGRP) || (defined(HAVE_DECL_PRIO_PGRP) && HAVE_DECL_PRIO_PGRP)
24 XLAT(PRIO_PGRP),
25 #define XLAT_VAL_1 ((unsigned) (PRIO_PGRP))
26 #define XLAT_STR_1 STRINGIFY(PRIO_PGRP)
27 #endif
28 #if defined(PRIO_USER) || (defined(HAVE_DECL_PRIO_USER) && HAVE_DECL_PRIO_USER)
29 XLAT(PRIO_USER),
30 #define XLAT_VAL_2 ((unsigned) (PRIO_USER))
31 #define XLAT_STR_2 STRINGIFY(PRIO_USER)
32 #endif
33 };
34 static
35 const struct xlat priorities[1] = { {
36 .data = priorities_xdata,
37 .size = ARRAY_SIZE(priorities_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 ,
50 .flags_strsz = 0
51 # ifdef XLAT_STR_0
52 + sizeof(XLAT_STR_0)
53 # endif
54 # ifdef XLAT_STR_1
55 + sizeof(XLAT_STR_1)
56 # endif
57 # ifdef XLAT_STR_2
58 + sizeof(XLAT_STR_2)
59 # endif
60 ,
61 } };
62 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
63
64 # undef XLAT_STR_0
65 # undef XLAT_VAL_0
66 # undef XLAT_STR_1
67 # undef XLAT_VAL_1
68 # undef XLAT_STR_2
69 # undef XLAT_VAL_2
70 # endif /* !IN_MPERS */
71
72 #endif /* !XLAT_MACROS_ONLY */