]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
syscall_numbers: add clone3()
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 May 2020 09:48:25 +0000 (11:48 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 May 2020 09:48:25 +0000 (11:48 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/syscall_numbers.h

index c4be407a470425e85b3836c42de2b61c44b67554..bfd0e57ab96e0d9f14312e461467f8723e004a99 100644 (file)
        #endif
 #endif
 
+#ifndef __NR_clone3
+       #if defined __alpha__
+               #define __NR_clone3 545
+       #elif defined _MIPS_SIM
+               #if _MIPS_SIM == _MIPS_SIM_ABI32        /* o32 */
+                       #define __NR_clone3 4435
+               #endif
+               #if _MIPS_SIM == _MIPS_SIM_NABI32       /* n32 */
+                       #define __NR_clone3 6435
+               #endif
+               #if _MIPS_SIM == _MIPS_SIM_ABI64        /* n64 */
+                       #define __NR_clone3 5435
+               #endif
+       #elif defined __ia64__
+               #define __NR_clone3 (435 + 1024)
+       #else
+               #define __NR_clone3 435
+       #endif
+#endif
+
 #endif /* __LXC_SYSCALL_NUMBERS_H */