Add SYS_clone3 for musl targets

This commit is contained in:
Dominik Stolz 2021-03-14 20:58:21 +01:00
parent a91546f20f
commit efe0fe9499
8 changed files with 8 additions and 0 deletions

View File

@ -834,6 +834,7 @@ pub const SYS_pkey_mprotect: ::c_long = 394;
pub const SYS_pkey_alloc: ::c_long = 395;
pub const SYS_pkey_free: ::c_long = 396;
pub const SYS_statx: ::c_long = 397;
pub const SYS_clone3: ::c_long = 435;
extern "C" {
pub fn getrandom(

View File

@ -845,6 +845,7 @@ pub const SYS_pkey_mprotect: ::c_long = 4000 + 363;
pub const SYS_pkey_alloc: ::c_long = 4000 + 364;
pub const SYS_pkey_free: ::c_long = 4000 + 365;
pub const SYS_statx: ::c_long = 4000 + 366;
pub const SYS_clone3: ::c_long = 4000 + 435;
cfg_if! {
if #[cfg(libc_align)] {

View File

@ -858,6 +858,7 @@ pub const SYS_statx: ::c_long = 383;
pub const SYS_pkey_alloc: ::c_long = 384;
pub const SYS_pkey_free: ::c_long = 385;
pub const SYS_pkey_mprotect: ::c_long = 386;
pub const SYS_clone3: ::c_long = 435;
extern "C" {
pub fn getrandom(

View File

@ -924,6 +924,7 @@ pub const SYS_pkey_mprotect: ::c_long = 380;
pub const SYS_pkey_alloc: ::c_long = 381;
pub const SYS_pkey_free: ::c_long = 382;
pub const SYS_statx: ::c_long = 383;
pub const SYS_clone3: ::c_long = 435;
// offsets in user_regs_structs, from sys/reg.h
pub const EBX: ::c_int = 0;

View File

@ -515,6 +515,7 @@ pub const SYS_pkey_mprotect: ::c_long = 288;
pub const SYS_pkey_alloc: ::c_long = 289;
pub const SYS_pkey_free: ::c_long = 290;
pub const SYS_statx: ::c_long = 291;
pub const SYS_clone3: ::c_long = 435;
pub const RLIMIT_NLIMITS: ::c_int = 15;
pub const TIOCINQ: ::c_int = ::FIONREAD;

View File

@ -425,6 +425,7 @@ pub const SYS_pkey_mprotect: ::c_long = 5000 + 323;
pub const SYS_pkey_alloc: ::c_long = 5000 + 324;
pub const SYS_pkey_free: ::c_long = 5000 + 325;
pub const SYS_statx: ::c_long = 5000 + 326;
pub const SYS_clone3: ::c_long = 5000 + 435;
pub const O_DIRECT: ::c_int = 0x8000;
pub const O_DIRECTORY: ::c_int = 0x10000;

View File

@ -601,6 +601,7 @@ pub const SYS_preadv2: ::c_long = 380;
pub const SYS_pwritev2: ::c_long = 381;
pub const SYS_kexec_file_load: ::c_long = 382;
pub const SYS_statx: ::c_long = 383;
pub const SYS_clone3: ::c_long = 435;
pub const FIOCLEX: ::c_int = 0x20006601;
pub const FIONCLEX: ::c_int = 0x20006602;

View File

@ -580,6 +580,7 @@ pub const SYS_pkey_mprotect: ::c_long = 329;
pub const SYS_pkey_alloc: ::c_long = 330;
pub const SYS_pkey_free: ::c_long = 331;
pub const SYS_statx: ::c_long = 332;
pub const SYS_clone3: ::c_long = 435;
// offsets in user_regs_structs, from sys/reg.h
pub const R15: ::c_int = 0;