File tree 12 files changed +21
-4
lines changed
src/unix/linux_like/linux
12 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -526,6 +526,7 @@ pub const SYS_pwritev2: ::c_long = 4000 + 362;
526
526
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
+ pub const SYS_statx : :: c_long = 4000 + 366 ;
529
530
530
531
pub const O_DIRECT : :: c_int = 0x8000 ;
531
532
pub const O_DIRECTORY : :: c_int = 0x10000 ;
Original file line number Diff line number Diff line change @@ -924,6 +924,7 @@ pub const SYS_pwritev2: ::c_long = 287;
924
924
pub const SYS_pkey_mprotect : :: c_long = 288 ;
925
925
pub const SYS_pkey_alloc : :: c_long = 289 ;
926
926
pub const SYS_pkey_free : :: c_long = 290 ;
927
+ pub const SYS_statx : :: c_long = 291 ;
927
928
928
929
#[ link( name = "util" ) ]
929
930
extern "C" {
Original file line number Diff line number Diff line change @@ -568,6 +568,7 @@ pub const SYS_pwritev2: ::c_long = 5000 + 322;
568
568
pub const SYS_pkey_mprotect : :: c_long = 5000 + 323 ;
569
569
pub const SYS_pkey_alloc : :: c_long = 5000 + 324 ;
570
570
pub const SYS_pkey_free : :: c_long = 5000 + 325 ;
571
+ pub const SYS_statx : :: c_long = 5000 + 326 ;
571
572
572
573
pub const SFD_CLOEXEC : :: c_int = 0x080000 ;
573
574
Original file line number Diff line number Diff line change @@ -993,6 +993,7 @@ pub const SYS_chown: ::c_long = 212;
993
993
pub const SYS_setfsuid : :: c_long = 215 ;
994
994
pub const SYS_setfsgid : :: c_long = 216 ;
995
995
pub const SYS_newfstatat : :: c_long = 293 ;
996
+ pub const SYS_statx : :: c_long = 379 ;
996
997
997
998
#[ link( name = "util" ) ]
998
999
extern "C" {
Original file line number Diff line number Diff line change @@ -827,6 +827,7 @@ pub const SYS_pwritev2: ::c_long = 393;
827
827
pub const SYS_pkey_mprotect : :: c_long = 394 ;
828
828
pub const SYS_pkey_alloc : :: c_long = 395 ;
829
829
pub const SYS_pkey_free : :: c_long = 396 ;
830
+ pub const SYS_statx : :: c_long = 397 ;
830
831
831
832
extern "C" {
832
833
pub fn getrandom (
Original file line number Diff line number Diff line change @@ -710,6 +710,7 @@ pub const SYS_wait4: ::c_int = 260;
710
710
pub const SYS_waitid : :: c_int = 95 ;
711
711
pub const SYS_write : :: c_int = 64 ;
712
712
pub const SYS_writev : :: c_int = 66 ;
713
+ pub const SYS_statx : :: c_int = 291 ;
713
714
pub const TCFLSH : :: c_int = 21515 ;
714
715
pub const TCGETA : :: c_int = 21509 ;
715
716
pub const TCGETS : :: c_int = 21505 ;
Original file line number Diff line number Diff line change @@ -836,6 +836,10 @@ pub const SYS_mlock2: ::c_long = 4000 + 359;
836
836
pub const SYS_copy_file_range : :: c_long = 4000 + 360 ;
837
837
pub const SYS_preadv2 : :: c_long = 4000 + 361 ;
838
838
pub const SYS_pwritev2 : :: c_long = 4000 + 362 ;
839
+ pub const SYS_pkey_mprotect : :: c_long = 4000 + 363 ;
840
+ pub const SYS_pkey_alloc : :: c_long = 4000 + 364 ;
841
+ pub const SYS_pkey_free : :: c_long = 4000 + 365 ;
842
+ pub const SYS_statx : :: c_long = 4000 + 366 ;
839
843
840
844
cfg_if ! {
841
845
if #[ cfg( libc_align) ] {
Original file line number Diff line number Diff line change @@ -914,8 +914,10 @@ pub const SYS_mlock2: ::c_long = 376;
914
914
pub const SYS_copy_file_range : :: c_long = 377 ;
915
915
pub const SYS_preadv2 : :: c_long = 378 ;
916
916
pub const SYS_pwritev2 : :: c_long = 379 ;
917
- // FIXME syscalls 380-382 have been added in musl 1.16
918
- // See discussion https://github.com/rust-lang/libc/pull/699
917
+ pub const SYS_pkey_mprotect : :: c_long = 380 ;
918
+ pub const SYS_pkey_alloc : :: c_long = 381 ;
919
+ pub const SYS_pkey_free : :: c_long = 382 ;
920
+ pub const SYS_statx : :: c_long = 383 ;
919
921
920
922
// offsets in user_regs_structs, from sys/reg.h
921
923
pub const EBX : :: c_int = 0 ;
Original file line number Diff line number Diff line change @@ -506,6 +506,7 @@ pub const SYS_pwritev2: ::c_long = 287;
506
506
pub const SYS_pkey_mprotect : :: c_long = 288 ;
507
507
pub const SYS_pkey_alloc : :: c_long = 289 ;
508
508
pub const SYS_pkey_free : :: c_long = 290 ;
509
+ pub const SYS_statx : :: c_long = 291 ;
509
510
510
511
pub const RLIMIT_NLIMITS : :: c_int = 15 ;
511
512
pub const TIOCINQ : :: c_int = :: FIONREAD ;
Original file line number Diff line number Diff line change @@ -424,6 +424,7 @@ pub const SYS_pwritev2: ::c_long = 5000 + 322;
424
424
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
+ pub const SYS_statx : :: c_long = 5000 + 326 ;
427
428
428
429
pub const O_DIRECT : :: c_int = 0x8000 ;
429
430
pub const O_DIRECTORY : :: c_int = 0x10000 ;
Original file line number Diff line number Diff line change @@ -596,6 +596,7 @@ pub const SYS_copy_file_range: ::c_long = 379;
596
596
pub const SYS_preadv2 : :: c_long = 380 ;
597
597
pub const SYS_pwritev2 : :: c_long = 381 ;
598
598
pub const SYS_kexec_file_load : :: c_long = 382 ;
599
+ pub const SYS_statx : :: c_long = 383 ;
599
600
600
601
pub const FIOCLEX : :: c_int = 0x20006601 ;
601
602
pub const FIONCLEX : :: c_int = 0x20006602 ;
Original file line number Diff line number Diff line change @@ -576,8 +576,10 @@ pub const SYS_mlock2: ::c_long = 325;
576
576
pub const SYS_copy_file_range : :: c_long = 326 ;
577
577
pub const SYS_preadv2 : :: c_long = 327 ;
578
578
pub const SYS_pwritev2 : :: c_long = 328 ;
579
- // FIXME syscalls 329-331 have been added in musl 1.16
580
- // See discussion https://github.com/rust-lang/libc/pull/699
579
+ pub const SYS_pkey_mprotect : :: c_long = 329 ;
580
+ pub const SYS_pkey_alloc : :: c_long = 330 ;
581
+ pub const SYS_pkey_free : :: c_long = 331 ;
582
+ pub const SYS_statx : :: c_long = 332 ;
581
583
582
584
// offsets in user_regs_structs, from sys/reg.h
583
585
pub const R15 : :: c_int = 0 ;
You can’t perform that action at this time.
0 commit comments