1 /* Generated by ./xlat/gen.sh from ./xlat/setns_types.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(CLONE_NEWNS) || (defined(HAVE_DECL_CLONE_NEWNS) && HAVE_DECL_CLONE_NEWNS)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((CLONE_NEWNS) == (0x00020000), "CLONE_NEWNS != 0x00020000");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define CLONE_NEWNS 0x00020000
12 #endif
13 #if defined(CLONE_NEWCGROUP) || (defined(HAVE_DECL_CLONE_NEWCGROUP) && HAVE_DECL_CLONE_NEWCGROUP)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((CLONE_NEWCGROUP) == (0x02000000), "CLONE_NEWCGROUP != 0x02000000");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define CLONE_NEWCGROUP 0x02000000
19 #endif
20 #if defined(CLONE_NEWUTS) || (defined(HAVE_DECL_CLONE_NEWUTS) && HAVE_DECL_CLONE_NEWUTS)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((CLONE_NEWUTS) == (0x04000000), "CLONE_NEWUTS != 0x04000000");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define CLONE_NEWUTS 0x04000000
26 #endif
27 #if defined(CLONE_NEWIPC) || (defined(HAVE_DECL_CLONE_NEWIPC) && HAVE_DECL_CLONE_NEWIPC)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((CLONE_NEWIPC) == (0x08000000), "CLONE_NEWIPC != 0x08000000");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define CLONE_NEWIPC 0x08000000
33 #endif
34 #if defined(CLONE_NEWUSER) || (defined(HAVE_DECL_CLONE_NEWUSER) && HAVE_DECL_CLONE_NEWUSER)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((CLONE_NEWUSER) == (0x10000000), "CLONE_NEWUSER != 0x10000000");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define CLONE_NEWUSER 0x10000000
40 #endif
41 #if defined(CLONE_NEWPID) || (defined(HAVE_DECL_CLONE_NEWPID) && HAVE_DECL_CLONE_NEWPID)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((CLONE_NEWPID) == (0x20000000), "CLONE_NEWPID != 0x20000000");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define CLONE_NEWPID 0x20000000
47 #endif
48 #if defined(CLONE_NEWNET) || (defined(HAVE_DECL_CLONE_NEWNET) && HAVE_DECL_CLONE_NEWNET)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((CLONE_NEWNET) == (0x40000000), "CLONE_NEWNET != 0x40000000");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define CLONE_NEWNET 0x40000000
54 #endif
55 
56 #ifndef XLAT_MACROS_ONLY
57 
58 # ifndef IN_MPERS
59 
60 const struct xlat setns_types[] = {
61  XLAT(0),
62  XLAT(CLONE_NEWNS),
63  XLAT(CLONE_NEWCGROUP),
64  XLAT(CLONE_NEWUTS),
65  XLAT(CLONE_NEWIPC),
66  XLAT(CLONE_NEWUSER),
67  XLAT(CLONE_NEWPID),
68  XLAT(CLONE_NEWNET),
69  XLAT_END
70 };
71 
72 # endif /* !IN_MPERS */
73 
74 #endif /* !XLAT_MACROS_ONLY */
75