From: Christian Brauner Date: Fri, 15 May 2020 09:48:25 +0000 (+0200) Subject: syscall_numbers: add clone3() X-Git-Tag: lxc-5.0.0~433^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=923d3a2dba12dee9a543af4757f1c37f83007a00;p=thirdparty%2Flxc.git syscall_numbers: add clone3() Signed-off-by: Christian Brauner --- 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 */