1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/umount_flags.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 #if defined(MNT_FORCE) || (defined(HAVE_DECL_MNT_FORCE) && HAVE_DECL_MNT_FORCE)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((MNT_FORCE) == (1), "MNT_FORCE != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define MNT_FORCE 1
12 #endif
13 #if defined(MNT_DETACH) || (defined(HAVE_DECL_MNT_DETACH) && HAVE_DECL_MNT_DETACH)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((MNT_DETACH) == (2), "MNT_DETACH != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define MNT_DETACH 2
19 #endif
20 #if defined(MNT_EXPIRE) || (defined(HAVE_DECL_MNT_EXPIRE) && HAVE_DECL_MNT_EXPIRE)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((MNT_EXPIRE) == (4), "MNT_EXPIRE != 4");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define MNT_EXPIRE 4
26 #endif
27 #if defined(UMOUNT_NOFOLLOW) || (defined(HAVE_DECL_UMOUNT_NOFOLLOW) && HAVE_DECL_UMOUNT_NOFOLLOW)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((UMOUNT_NOFOLLOW) == (8), "UMOUNT_NOFOLLOW != 8");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define UMOUNT_NOFOLLOW 8
33 #endif
34 #undef XLAT_PREV_VAL
35
36 #ifndef XLAT_MACROS_ONLY
37
38 # ifdef IN_MPERS
39
40 # error static const struct xlat umount_flags in mpers mode
41
42 # else
43
44 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
45 static const struct xlat_data umount_flags_xdata[] = {
46 XLAT(MNT_FORCE),
47 #define XLAT_VAL_0 ((unsigned) (MNT_FORCE))
48 #define XLAT_STR_0 STRINGIFY(MNT_FORCE)
49 XLAT(MNT_DETACH),
50 #define XLAT_VAL_1 ((unsigned) (MNT_DETACH))
51 #define XLAT_STR_1 STRINGIFY(MNT_DETACH)
52 XLAT(MNT_EXPIRE),
53 #define XLAT_VAL_2 ((unsigned) (MNT_EXPIRE))
54 #define XLAT_STR_2 STRINGIFY(MNT_EXPIRE)
55 XLAT(UMOUNT_NOFOLLOW),
56 #define XLAT_VAL_3 ((unsigned) (UMOUNT_NOFOLLOW))
57 #define XLAT_STR_3 STRINGIFY(UMOUNT_NOFOLLOW)
58 };
59 static
60 const struct xlat umount_flags[1] = { {
61 .data = umount_flags_xdata,
62 .size = ARRAY_SIZE(umount_flags_xdata),
63 .type = XT_NORMAL,
64 .flags_mask = 0
65 # ifdef XLAT_VAL_0
66 | XLAT_VAL_0
67 # endif
68 # ifdef XLAT_VAL_1
69 | XLAT_VAL_1
70 # endif
71 # ifdef XLAT_VAL_2
72 | XLAT_VAL_2
73 # endif
74 # ifdef XLAT_VAL_3
75 | XLAT_VAL_3
76 # endif
77 ,
78 .flags_strsz = 0
79 # ifdef XLAT_STR_0
80 + sizeof(XLAT_STR_0)
81 # endif
82 # ifdef XLAT_STR_1
83 + sizeof(XLAT_STR_1)
84 # endif
85 # ifdef XLAT_STR_2
86 + sizeof(XLAT_STR_2)
87 # endif
88 # ifdef XLAT_STR_3
89 + sizeof(XLAT_STR_3)
90 # endif
91 ,
92 } };
93 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
94
95 # undef XLAT_STR_0
96 # undef XLAT_VAL_0
97 # undef XLAT_STR_1
98 # undef XLAT_VAL_1
99 # undef XLAT_STR_2
100 # undef XLAT_VAL_2
101 # undef XLAT_STR_3
102 # undef XLAT_VAL_3
103 # endif /* !IN_MPERS */
104
105 #endif /* !XLAT_MACROS_ONLY */