From 923d3a2dba12dee9a543af4757f1c37f83007a00 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 15 May 2020 11:48:25 +0200 Subject: [PATCH] syscall_numbers: add clone3() Signed-off-by: Christian Brauner --- src/lxc/syscall_numbers.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/lxc/syscall_numbers.h b/src/lxc/syscall_numbers.h index c4be407a4..bfd0e57ab 100644 --- a/src/lxc/syscall_numbers.h +++ b/src/lxc/syscall_numbers.h @@ -543,4 +543,24 @@ #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 */ -- 2.47.2