1 /* Generated by ./xlat/gen.sh from ./xlat/clone_flags.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(CLONE_VM) || (defined(HAVE_DECL_CLONE_VM) && HAVE_DECL_CLONE_VM) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((CLONE_VM) == (0x00000100), "CLONE_VM != 0x00000100"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define CLONE_VM 0x00000100 12 #endif 13 #if defined(CLONE_FS) || (defined(HAVE_DECL_CLONE_FS) && HAVE_DECL_CLONE_FS) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((CLONE_FS) == (0x00000200), "CLONE_FS != 0x00000200"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define CLONE_FS 0x00000200 19 #endif 20 #if defined(CLONE_FILES) || (defined(HAVE_DECL_CLONE_FILES) && HAVE_DECL_CLONE_FILES) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((CLONE_FILES) == (0x00000400), "CLONE_FILES != 0x00000400"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define CLONE_FILES 0x00000400 26 #endif 27 #if defined(CLONE_SIGHAND) || (defined(HAVE_DECL_CLONE_SIGHAND) && HAVE_DECL_CLONE_SIGHAND) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((CLONE_SIGHAND) == (0x00000800), "CLONE_SIGHAND != 0x00000800"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define CLONE_SIGHAND 0x00000800 33 #endif 34 #if defined(CLONE_IDLETASK) || (defined(HAVE_DECL_CLONE_IDLETASK) && HAVE_DECL_CLONE_IDLETASK) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((CLONE_IDLETASK) == (0x00001000), "CLONE_IDLETASK != 0x00001000"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define CLONE_IDLETASK 0x00001000 40 #endif 41 #if defined(CLONE_PTRACE) || (defined(HAVE_DECL_CLONE_PTRACE) && HAVE_DECL_CLONE_PTRACE) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((CLONE_PTRACE) == (0x00002000), "CLONE_PTRACE != 0x00002000"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define CLONE_PTRACE 0x00002000 47 #endif 48 #if defined(CLONE_VFORK) || (defined(HAVE_DECL_CLONE_VFORK) && HAVE_DECL_CLONE_VFORK) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((CLONE_VFORK) == (0x00004000), "CLONE_VFORK != 0x00004000"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define CLONE_VFORK 0x00004000 54 #endif 55 #if defined(CLONE_PARENT) || (defined(HAVE_DECL_CLONE_PARENT) && HAVE_DECL_CLONE_PARENT) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((CLONE_PARENT) == (0x00008000), "CLONE_PARENT != 0x00008000"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define CLONE_PARENT 0x00008000 61 #endif 62 #if defined(CLONE_THREAD) || (defined(HAVE_DECL_CLONE_THREAD) && HAVE_DECL_CLONE_THREAD) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((CLONE_THREAD) == (0x00010000), "CLONE_THREAD != 0x00010000"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define CLONE_THREAD 0x00010000 68 #endif 69 #if defined(CLONE_NEWNS) || (defined(HAVE_DECL_CLONE_NEWNS) && HAVE_DECL_CLONE_NEWNS) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((CLONE_NEWNS) == (0x00020000), "CLONE_NEWNS != 0x00020000"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define CLONE_NEWNS 0x00020000 75 #endif 76 #if defined(CLONE_SYSVSEM) || (defined(HAVE_DECL_CLONE_SYSVSEM) && HAVE_DECL_CLONE_SYSVSEM) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((CLONE_SYSVSEM) == (0x00040000), "CLONE_SYSVSEM != 0x00040000"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define CLONE_SYSVSEM 0x00040000 82 #endif 83 #if defined(CLONE_SETTLS) || (defined(HAVE_DECL_CLONE_SETTLS) && HAVE_DECL_CLONE_SETTLS) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((CLONE_SETTLS) == (0x00080000), "CLONE_SETTLS != 0x00080000"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define CLONE_SETTLS 0x00080000 89 #endif 90 #if defined(CLONE_PARENT_SETTID) || (defined(HAVE_DECL_CLONE_PARENT_SETTID) && HAVE_DECL_CLONE_PARENT_SETTID) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((CLONE_PARENT_SETTID) == (0x00100000), "CLONE_PARENT_SETTID != 0x00100000"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define CLONE_PARENT_SETTID 0x00100000 96 #endif 97 #if defined(CLONE_CHILD_CLEARTID) || (defined(HAVE_DECL_CLONE_CHILD_CLEARTID) && HAVE_DECL_CLONE_CHILD_CLEARTID) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((CLONE_CHILD_CLEARTID) == (0x00200000), "CLONE_CHILD_CLEARTID != 0x00200000"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define CLONE_CHILD_CLEARTID 0x00200000 103 #endif 104 #if defined(CLONE_UNTRACED) || (defined(HAVE_DECL_CLONE_UNTRACED) && HAVE_DECL_CLONE_UNTRACED) 105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 106 static_assert((CLONE_UNTRACED) == (0x00800000), "CLONE_UNTRACED != 0x00800000"); 107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 108 #else 109 # define CLONE_UNTRACED 0x00800000 110 #endif 111 #if defined(CLONE_CHILD_SETTID) || (defined(HAVE_DECL_CLONE_CHILD_SETTID) && HAVE_DECL_CLONE_CHILD_SETTID) 112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 113 static_assert((CLONE_CHILD_SETTID) == (0x01000000), "CLONE_CHILD_SETTID != 0x01000000"); 114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 115 #else 116 # define CLONE_CHILD_SETTID 0x01000000 117 #endif 118 #if defined(CLONE_NEWCGROUP) || (defined(HAVE_DECL_CLONE_NEWCGROUP) && HAVE_DECL_CLONE_NEWCGROUP) 119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 120 static_assert((CLONE_NEWCGROUP) == (0x02000000), "CLONE_NEWCGROUP != 0x02000000"); 121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 122 #else 123 # define CLONE_NEWCGROUP 0x02000000 124 #endif 125 #if defined(CLONE_NEWUTS) || (defined(HAVE_DECL_CLONE_NEWUTS) && HAVE_DECL_CLONE_NEWUTS) 126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 127 static_assert((CLONE_NEWUTS) == (0x04000000), "CLONE_NEWUTS != 0x04000000"); 128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 129 #else 130 # define CLONE_NEWUTS 0x04000000 131 #endif 132 #if defined(CLONE_NEWIPC) || (defined(HAVE_DECL_CLONE_NEWIPC) && HAVE_DECL_CLONE_NEWIPC) 133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 134 static_assert((CLONE_NEWIPC) == (0x08000000), "CLONE_NEWIPC != 0x08000000"); 135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 136 #else 137 # define CLONE_NEWIPC 0x08000000 138 #endif 139 #if defined(CLONE_NEWUSER) || (defined(HAVE_DECL_CLONE_NEWUSER) && HAVE_DECL_CLONE_NEWUSER) 140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 141 static_assert((CLONE_NEWUSER) == (0x10000000), "CLONE_NEWUSER != 0x10000000"); 142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 143 #else 144 # define CLONE_NEWUSER 0x10000000 145 #endif 146 #if defined(CLONE_NEWPID) || (defined(HAVE_DECL_CLONE_NEWPID) && HAVE_DECL_CLONE_NEWPID) 147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 148 static_assert((CLONE_NEWPID) == (0x20000000), "CLONE_NEWPID != 0x20000000"); 149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 150 #else 151 # define CLONE_NEWPID 0x20000000 152 #endif 153 #if defined(CLONE_NEWNET) || (defined(HAVE_DECL_CLONE_NEWNET) && HAVE_DECL_CLONE_NEWNET) 154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 155 static_assert((CLONE_NEWNET) == (0x40000000), "CLONE_NEWNET != 0x40000000"); 156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 157 #else 158 # define CLONE_NEWNET 0x40000000 159 #endif 160 #if defined(CLONE_IO) || (defined(HAVE_DECL_CLONE_IO) && HAVE_DECL_CLONE_IO) 161 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 162 static_assert((CLONE_IO) == (0x80000000), "CLONE_IO != 0x80000000"); 163 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 164 #else 165 # define CLONE_IO 0x80000000 166 #endif 167 168 #ifndef XLAT_MACROS_ONLY 169 170 # ifdef IN_MPERS 171 172 # error static const struct xlat clone_flags in mpers mode 173 174 # else 175 176 static 177 const struct xlat clone_flags[] = { 178 XLAT(CLONE_VM), 179 XLAT(CLONE_FS), 180 XLAT(CLONE_FILES), 181 XLAT(CLONE_SIGHAND), 182 XLAT(CLONE_IDLETASK), 183 XLAT(CLONE_PTRACE), 184 XLAT(CLONE_VFORK), 185 XLAT(CLONE_PARENT), 186 XLAT(CLONE_THREAD), 187 XLAT(CLONE_NEWNS), 188 XLAT(CLONE_SYSVSEM), 189 XLAT(CLONE_SETTLS), 190 XLAT(CLONE_PARENT_SETTID), 191 XLAT(CLONE_CHILD_CLEARTID), 192 XLAT(CLONE_UNTRACED), 193 XLAT(CLONE_CHILD_SETTID), 194 XLAT(CLONE_NEWCGROUP), 195 XLAT(CLONE_NEWUTS), 196 XLAT(CLONE_NEWIPC), 197 XLAT(CLONE_NEWUSER), 198 XLAT(CLONE_NEWPID), 199 XLAT(CLONE_NEWNET), 200 XLAT(CLONE_IO), 201 XLAT_END 202 }; 203 204 # endif /* !IN_MPERS */ 205 206 #endif /* !XLAT_MACROS_ONLY */ 207