Skip to content

File tree

9 files changed

+10
-1
lines changed

9 files changed

+10
-1
lines changed

libc-test/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2638,7 +2638,8 @@ fn test_linux(target: &str) {
26382638

26392639
// FIXME: Not currently available in headers on MIPS
26402640
// Not yet implemented on sparc64
2641-
"SYS_clone3" if mips | sparc64 => true,
2641+
// FIXME: available in musl headers since musl 1.2.0
2642+
"SYS_clone3" if mips | sparc64 | musl => true,
26422643

26432644
// Missing from musl's kernel headers
26442645
| "IFLA_GSO_MAX_SEGS"

src/unix/linux_like/linux/musl/b32/arm/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,7 @@ pub const SYS_pkey_mprotect: ::c_long = 394;
834834
pub const SYS_pkey_alloc: ::c_long = 395;
835835
pub const SYS_pkey_free: ::c_long = 396;
836836
pub const SYS_statx: ::c_long = 397;
837+
pub const SYS_clone3: ::c_long = 435;
837838

838839
extern "C" {
839840
pub fn getrandom(

src/unix/linux_like/linux/musl/b32/mips/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ pub const SYS_pkey_mprotect: ::c_long = 4000 + 363;
845845
pub const SYS_pkey_alloc: ::c_long = 4000 + 364;
846846
pub const SYS_pkey_free: ::c_long = 4000 + 365;
847847
pub const SYS_statx: ::c_long = 4000 + 366;
848+
pub const SYS_clone3: ::c_long = 4000 + 435;
848849

849850
cfg_if! {
850851
if #[cfg(libc_align)] {

src/unix/linux_like/linux/musl/b32/powerpc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,7 @@ pub const SYS_statx: ::c_long = 383;
858858
pub const SYS_pkey_alloc: ::c_long = 384;
859859
pub const SYS_pkey_free: ::c_long = 385;
860860
pub const SYS_pkey_mprotect: ::c_long = 386;
861+
pub const SYS_clone3: ::c_long = 435;
861862

862863
extern "C" {
863864
pub fn getrandom(

src/unix/linux_like/linux/musl/b32/x86/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ pub const SYS_pkey_mprotect: ::c_long = 380;
924924
pub const SYS_pkey_alloc: ::c_long = 381;
925925
pub const SYS_pkey_free: ::c_long = 382;
926926
pub const SYS_statx: ::c_long = 383;
927+
pub const SYS_clone3: ::c_long = 435;
927928

928929
// offsets in user_regs_structs, from sys/reg.h
929930
pub const EBX: ::c_int = 0;

src/unix/linux_like/linux/musl/b64/aarch64/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ pub const SYS_pkey_mprotect: ::c_long = 288;
515515
pub const SYS_pkey_alloc: ::c_long = 289;
516516
pub const SYS_pkey_free: ::c_long = 290;
517517
pub const SYS_statx: ::c_long = 291;
518+
pub const SYS_clone3: ::c_long = 435;
518519

519520
pub const RLIMIT_NLIMITS: ::c_int = 15;
520521
pub const TIOCINQ: ::c_int = ::FIONREAD;

src/unix/linux_like/linux/musl/b64/mips64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ pub const SYS_pkey_mprotect: ::c_long = 5000 + 323;
425425
pub const SYS_pkey_alloc: ::c_long = 5000 + 324;
426426
pub const SYS_pkey_free: ::c_long = 5000 + 325;
427427
pub const SYS_statx: ::c_long = 5000 + 326;
428+
pub const SYS_clone3: ::c_long = 5000 + 435;
428429

429430
pub const O_DIRECT: ::c_int = 0x8000;
430431
pub const O_DIRECTORY: ::c_int = 0x10000;

src/unix/linux_like/linux/musl/b64/powerpc64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ pub const SYS_preadv2: ::c_long = 380;
601601
pub const SYS_pwritev2: ::c_long = 381;
602602
pub const SYS_kexec_file_load: ::c_long = 382;
603603
pub const SYS_statx: ::c_long = 383;
604+
pub const SYS_clone3: ::c_long = 435;
604605

605606
pub const FIOCLEX: ::c_int = 0x20006601;
606607
pub const FIONCLEX: ::c_int = 0x20006602;

src/unix/linux_like/linux/musl/b64/x86_64/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ pub const SYS_pkey_mprotect: ::c_long = 329;
580580
pub const SYS_pkey_alloc: ::c_long = 330;
581581
pub const SYS_pkey_free: ::c_long = 331;
582582
pub const SYS_statx: ::c_long = 332;
583+
pub const SYS_clone3: ::c_long = 435;
583584

584585
// offsets in user_regs_structs, from sys/reg.h
585586
pub const R15: ::c_int = 0;

0 commit comments

Comments
 (0)