File tree Expand file tree Collapse file tree 9 files changed +10
-1
lines changed
src/unix/linux_like/linux/musl Expand file tree Collapse file tree 9 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2638,7 +2638,8 @@ fn test_linux(target: &str) {
2638
2638
2639
2639
// FIXME: Not currently available in headers on MIPS
2640
2640
// 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 ,
2642
2643
2643
2644
// Missing from musl's kernel headers
2644
2645
| "IFLA_GSO_MAX_SEGS"
Original file line number Diff line number Diff line change @@ -834,6 +834,7 @@ pub const SYS_pkey_mprotect: ::c_long = 394;
834
834
pub const SYS_pkey_alloc : :: c_long = 395 ;
835
835
pub const SYS_pkey_free : :: c_long = 396 ;
836
836
pub const SYS_statx : :: c_long = 397 ;
837
+ pub const SYS_clone3 : :: c_long = 435 ;
837
838
838
839
extern "C" {
839
840
pub fn getrandom (
Original file line number Diff line number Diff line change @@ -845,6 +845,7 @@ pub const SYS_pkey_mprotect: ::c_long = 4000 + 363;
845
845
pub const SYS_pkey_alloc : :: c_long = 4000 + 364 ;
846
846
pub const SYS_pkey_free : :: c_long = 4000 + 365 ;
847
847
pub const SYS_statx : :: c_long = 4000 + 366 ;
848
+ pub const SYS_clone3 : :: c_long = 4000 + 435 ;
848
849
849
850
cfg_if ! {
850
851
if #[ cfg( libc_align) ] {
Original file line number Diff line number Diff line change @@ -858,6 +858,7 @@ pub const SYS_statx: ::c_long = 383;
858
858
pub const SYS_pkey_alloc : :: c_long = 384 ;
859
859
pub const SYS_pkey_free : :: c_long = 385 ;
860
860
pub const SYS_pkey_mprotect : :: c_long = 386 ;
861
+ pub const SYS_clone3 : :: c_long = 435 ;
861
862
862
863
extern "C" {
863
864
pub fn getrandom (
Original file line number Diff line number Diff line change @@ -924,6 +924,7 @@ pub const SYS_pkey_mprotect: ::c_long = 380;
924
924
pub const SYS_pkey_alloc : :: c_long = 381 ;
925
925
pub const SYS_pkey_free : :: c_long = 382 ;
926
926
pub const SYS_statx : :: c_long = 383 ;
927
+ pub const SYS_clone3 : :: c_long = 435 ;
927
928
928
929
// offsets in user_regs_structs, from sys/reg.h
929
930
pub const EBX : :: c_int = 0 ;
Original file line number Diff line number Diff line change @@ -515,6 +515,7 @@ pub const SYS_pkey_mprotect: ::c_long = 288;
515
515
pub const SYS_pkey_alloc : :: c_long = 289 ;
516
516
pub const SYS_pkey_free : :: c_long = 290 ;
517
517
pub const SYS_statx : :: c_long = 291 ;
518
+ pub const SYS_clone3 : :: c_long = 435 ;
518
519
519
520
pub const RLIMIT_NLIMITS : :: c_int = 15 ;
520
521
pub const TIOCINQ : :: c_int = :: FIONREAD ;
Original file line number Diff line number Diff line change @@ -425,6 +425,7 @@ pub const SYS_pkey_mprotect: ::c_long = 5000 + 323;
425
425
pub const SYS_pkey_alloc : :: c_long = 5000 + 324 ;
426
426
pub const SYS_pkey_free : :: c_long = 5000 + 325 ;
427
427
pub const SYS_statx : :: c_long = 5000 + 326 ;
428
+ pub const SYS_clone3 : :: c_long = 5000 + 435 ;
428
429
429
430
pub const O_DIRECT : :: c_int = 0x8000 ;
430
431
pub const O_DIRECTORY : :: c_int = 0x10000 ;
Original file line number Diff line number Diff line change @@ -601,6 +601,7 @@ pub const SYS_preadv2: ::c_long = 380;
601
601
pub const SYS_pwritev2 : :: c_long = 381 ;
602
602
pub const SYS_kexec_file_load : :: c_long = 382 ;
603
603
pub const SYS_statx : :: c_long = 383 ;
604
+ pub const SYS_clone3 : :: c_long = 435 ;
604
605
605
606
pub const FIOCLEX : :: c_int = 0x20006601 ;
606
607
pub const FIONCLEX : :: c_int = 0x20006602 ;
Original file line number Diff line number Diff line change @@ -580,6 +580,7 @@ pub const SYS_pkey_mprotect: ::c_long = 329;
580
580
pub const SYS_pkey_alloc : :: c_long = 330 ;
581
581
pub const SYS_pkey_free : :: c_long = 331 ;
582
582
pub const SYS_statx : :: c_long = 332 ;
583
+ pub const SYS_clone3 : :: c_long = 435 ;
583
584
584
585
// offsets in user_regs_structs, from sys/reg.h
585
586
pub const R15 : :: c_int = 0 ;
You can’t perform that action at this time.
0 commit comments