File tree 14 files changed +35
-0
lines changed
src/unix/linux_like/linux/gnu
14 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -2650,6 +2650,13 @@ fn test_linux(target: &str) {
2650
2650
// headers.
2651
2651
"P_PIDFD" => true ,
2652
2652
2653
+ // FIXME: Not currently available in headers
2654
+ "SYS_pidfd_open" if mips => true ,
2655
+
2656
+ // FIXME: Not currently available in headers on MIPS
2657
+ // Not yet implemented on sparc64
2658
+ "SYS_clone3" if mips | sparc64 => true ,
2659
+
2653
2660
_ => false ,
2654
2661
}
2655
2662
} ) ;
Original file line number Diff line number Diff line change @@ -868,6 +868,8 @@ pub const SYS_pkey_mprotect: ::c_long = 394;
868
868
pub const SYS_pkey_alloc : :: c_long = 395 ;
869
869
pub const SYS_pkey_free : :: c_long = 396 ;
870
870
pub const SYS_statx : :: c_long = 397 ;
871
+ pub const SYS_pidfd_open : :: c_long = 434 ;
872
+ pub const SYS_clone3 : :: c_long = 435 ;
871
873
872
874
cfg_if ! {
873
875
if #[ cfg( libc_align) ] {
Original file line number Diff line number Diff line change @@ -527,6 +527,8 @@ pub const SYS_pkey_mprotect: ::c_long = 4000 + 363;
527
527
pub const SYS_pkey_alloc : :: c_long = 4000 + 364 ;
528
528
pub const SYS_pkey_free : :: c_long = 4000 + 365 ;
529
529
pub const SYS_statx : :: c_long = 4000 + 366 ;
530
+ pub const SYS_pidfd_open : :: c_long = 4000 + 434 ;
531
+ pub const SYS_clone3 : :: c_long = 4000 + 435 ;
530
532
531
533
pub const O_DIRECT : :: c_int = 0x8000 ;
532
534
pub const O_DIRECTORY : :: c_int = 0x10000 ;
Original file line number Diff line number Diff line change @@ -872,3 +872,5 @@ pub const SYS_preadv2: ::c_long = 380;
872
872
pub const SYS_pwritev2 : :: c_long = 381 ;
873
873
pub const SYS_kexec_file_load : :: c_long = 382 ;
874
874
pub const SYS_statx : :: c_long = 383 ;
875
+ pub const SYS_pidfd_open : :: c_long = 434 ;
876
+ pub const SYS_clone3 : :: c_long = 435 ;
Original file line number Diff line number Diff line change @@ -961,6 +961,9 @@ pub const SYS_copy_file_range: ::c_long = 357;
961
961
pub const SYS_preadv2 : :: c_long = 358 ;
962
962
pub const SYS_pwritev2 : :: c_long = 359 ;
963
963
pub const SYS_statx : :: c_long = 360 ;
964
+ pub const SYS_pidfd_open : :: c_long = 434 ;
965
+ // Reserved in the kernel, but not actually implemented yet
966
+ pub const SYS_clone3 : :: c_long = 435 ;
964
967
965
968
#[ link( name = "util" ) ]
966
969
extern "C" {
Original file line number Diff line number Diff line change @@ -1103,6 +1103,8 @@ pub const SYS_pkey_mprotect: ::c_long = 380;
1103
1103
pub const SYS_pkey_alloc : :: c_long = 381 ;
1104
1104
pub const SYS_pkey_free : :: c_long = 382 ;
1105
1105
pub const SYS_statx : :: c_long = 383 ;
1106
+ pub const SYS_pidfd_open : :: c_long = 434 ;
1107
+ pub const SYS_clone3 : :: c_long = 435 ;
1106
1108
1107
1109
// offsets in user_regs_structs, from sys/reg.h
1108
1110
pub const EBX : :: c_int = 0 ;
Original file line number Diff line number Diff line change @@ -993,6 +993,8 @@ pub const SYS_pkey_mprotect: ::c_long = 288;
993
993
pub const SYS_pkey_alloc : :: c_long = 289 ;
994
994
pub const SYS_pkey_free : :: c_long = 290 ;
995
995
pub const SYS_statx : :: c_long = 291 ;
996
+ pub const SYS_pidfd_open : :: c_long = 434 ;
997
+ pub const SYS_clone3 : :: c_long = 435 ;
996
998
997
999
#[ link( name = "util" ) ]
998
1000
extern "C" {
Original file line number Diff line number Diff line change @@ -577,6 +577,8 @@ pub const SYS_pkey_mprotect: ::c_long = 5000 + 323;
577
577
pub const SYS_pkey_alloc : :: c_long = 5000 + 324 ;
578
578
pub const SYS_pkey_free : :: c_long = 5000 + 325 ;
579
579
pub const SYS_statx : :: c_long = 5000 + 326 ;
580
+ pub const SYS_pidfd_open : :: c_long = 5000 + 434 ;
581
+ pub const SYS_clone3 : :: c_long = 5000 + 435 ;
580
582
581
583
pub const SFD_CLOEXEC : :: c_int = 0x080000 ;
582
584
Original file line number Diff line number Diff line change @@ -1043,6 +1043,8 @@ pub const SYS_preadv2: ::c_long = 380;
1043
1043
pub const SYS_pwritev2 : :: c_long = 381 ;
1044
1044
pub const SYS_kexec_file_load : :: c_long = 382 ;
1045
1045
pub const SYS_statx : :: c_long = 383 ;
1046
+ pub const SYS_pidfd_open : :: c_long = 434 ;
1047
+ pub const SYS_clone3 : :: c_long = 435 ;
1046
1048
1047
1049
#[ link( name = "util" ) ]
1048
1050
extern "C" {
Original file line number Diff line number Diff line change @@ -863,3 +863,5 @@ pub const SYS_pkey_mprotect: ::c_long = 288;
863
863
pub const SYS_pkey_alloc : :: c_long = 289 ;
864
864
pub const SYS_pkey_free : :: c_long = 290 ;
865
865
pub const SYS_statx : :: c_long = 291 ;
866
+ pub const SYS_pidfd_open : :: c_long = 434 ;
867
+ pub const SYS_clone3 : :: c_long = 435 ;
Original file line number Diff line number Diff line change @@ -1007,6 +1007,8 @@ pub const SYS_setfsuid: ::c_long = 215;
1007
1007
pub const SYS_setfsgid : :: c_long = 216 ;
1008
1008
pub const SYS_newfstatat : :: c_long = 293 ;
1009
1009
pub const SYS_statx : :: c_long = 379 ;
1010
+ pub const SYS_pidfd_open : :: c_long = 434 ;
1011
+ pub const SYS_clone3 : :: c_long = 435 ;
1010
1012
1011
1013
#[ link( name = "util" ) ]
1012
1014
extern "C" {
Original file line number Diff line number Diff line change @@ -973,6 +973,9 @@ pub const SYS_copy_file_range: ::c_long = 357;
973
973
pub const SYS_preadv2 : :: c_long = 358 ;
974
974
pub const SYS_pwritev2 : :: c_long = 359 ;
975
975
pub const SYS_statx : :: c_long = 360 ;
976
+ pub const SYS_pidfd_open : :: c_long = 434 ;
977
+ // Reserved in the kernel, but not actually implemented yet
978
+ pub const SYS_clone3 : :: c_long = 435 ;
976
979
977
980
#[ link( name = "util" ) ]
978
981
extern "C" {
Original file line number Diff line number Diff line change @@ -409,6 +409,8 @@ pub const SYS_pkey_mprotect: ::c_long = 329;
409
409
pub const SYS_pkey_alloc : :: c_long = 330 ;
410
410
pub const SYS_pkey_free : :: c_long = 331 ;
411
411
pub const SYS_statx : :: c_long = 332 ;
412
+ pub const SYS_pidfd_open : :: c_long = 434 ;
413
+ pub const SYS_clone3 : :: c_long = 435 ;
412
414
413
415
extern "C" {
414
416
pub fn sysctl (
Original file line number Diff line number Diff line change @@ -337,6 +337,8 @@ pub const SYS_pkey_mprotect: ::c_long = __X32_SYSCALL_BIT + 329;
337
337
pub const SYS_pkey_alloc : :: c_long = __X32_SYSCALL_BIT + 330 ;
338
338
pub const SYS_pkey_free : :: c_long = __X32_SYSCALL_BIT + 331 ;
339
339
pub const SYS_statx : :: c_long = __X32_SYSCALL_BIT + 332 ;
340
+ pub const SYS_pidfd_open : :: c_long = __X32_SYSCALL_BIT + 434 ;
341
+ pub const SYS_clone3 : :: c_long = __X32_SYSCALL_BIT + 435 ;
340
342
pub const SYS_rt_sigaction : :: c_long = __X32_SYSCALL_BIT + 512 ;
341
343
pub const SYS_rt_sigreturn : :: c_long = __X32_SYSCALL_BIT + 513 ;
342
344
pub const SYS_ioctl : :: c_long = __X32_SYSCALL_BIT + 514 ;
You can’t perform that action at this time.
0 commit comments