File tree Expand file tree Collapse file tree 12 files changed +21
-4
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 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;
526526pub const SYS_pkey_mprotect : :: c_long = 4000 + 363 ;
527527pub const SYS_pkey_alloc : :: c_long = 4000 + 364 ;
528528pub const SYS_pkey_free : :: c_long = 4000 + 365 ;
529+ pub const SYS_statx : :: c_long = 4000 + 366 ;
529530
530531pub const O_DIRECT : :: c_int = 0x8000 ;
531532pub 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;
924924pub const SYS_pkey_mprotect : :: c_long = 288 ;
925925pub const SYS_pkey_alloc : :: c_long = 289 ;
926926pub const SYS_pkey_free : :: c_long = 290 ;
927+ pub const SYS_statx : :: c_long = 291 ;
927928
928929#[ link( name = "util" ) ]
929930extern "C" {
Original file line number Diff line number Diff line change @@ -568,6 +568,7 @@ pub const SYS_pwritev2: ::c_long = 5000 + 322;
568568pub const SYS_pkey_mprotect : :: c_long = 5000 + 323 ;
569569pub const SYS_pkey_alloc : :: c_long = 5000 + 324 ;
570570pub const SYS_pkey_free : :: c_long = 5000 + 325 ;
571+ pub const SYS_statx : :: c_long = 5000 + 326 ;
571572
572573pub const SFD_CLOEXEC : :: c_int = 0x080000 ;
573574
Original file line number Diff line number Diff line change @@ -993,6 +993,7 @@ pub const SYS_chown: ::c_long = 212;
993993pub const SYS_setfsuid : :: c_long = 215 ;
994994pub const SYS_setfsgid : :: c_long = 216 ;
995995pub const SYS_newfstatat : :: c_long = 293 ;
996+ pub const SYS_statx : :: c_long = 379 ;
996997
997998#[ link( name = "util" ) ]
998999extern "C" {
Original file line number Diff line number Diff line change @@ -827,6 +827,7 @@ pub const SYS_pwritev2: ::c_long = 393;
827827pub const SYS_pkey_mprotect : :: c_long = 394 ;
828828pub const SYS_pkey_alloc : :: c_long = 395 ;
829829pub const SYS_pkey_free : :: c_long = 396 ;
830+ pub const SYS_statx : :: c_long = 397 ;
830831
831832extern "C" {
832833 pub fn getrandom (
Original file line number Diff line number Diff line change @@ -710,6 +710,7 @@ pub const SYS_wait4: ::c_int = 260;
710710pub const SYS_waitid : :: c_int = 95 ;
711711pub const SYS_write : :: c_int = 64 ;
712712pub const SYS_writev : :: c_int = 66 ;
713+ pub const SYS_statx : :: c_int = 291 ;
713714pub const TCFLSH : :: c_int = 21515 ;
714715pub const TCGETA : :: c_int = 21509 ;
715716pub 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;
836836pub const SYS_copy_file_range : :: c_long = 4000 + 360 ;
837837pub const SYS_preadv2 : :: c_long = 4000 + 361 ;
838838pub 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 ;
839843
840844cfg_if ! {
841845 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;
914914pub const SYS_copy_file_range : :: c_long = 377 ;
915915pub const SYS_preadv2 : :: c_long = 378 ;
916916pub 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 ;
919921
920922// offsets in user_regs_structs, from sys/reg.h
921923pub 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;
506506pub const SYS_pkey_mprotect : :: c_long = 288 ;
507507pub const SYS_pkey_alloc : :: c_long = 289 ;
508508pub const SYS_pkey_free : :: c_long = 290 ;
509+ pub const SYS_statx : :: c_long = 291 ;
509510
510511pub const RLIMIT_NLIMITS : :: c_int = 15 ;
511512pub 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;
424424pub const SYS_pkey_mprotect : :: c_long = 5000 + 323 ;
425425pub const SYS_pkey_alloc : :: c_long = 5000 + 324 ;
426426pub const SYS_pkey_free : :: c_long = 5000 + 325 ;
427+ pub const SYS_statx : :: c_long = 5000 + 326 ;
427428
428429pub const O_DIRECT : :: c_int = 0x8000 ;
429430pub const O_DIRECTORY : :: c_int = 0x10000 ;
You can’t perform that action at this time.
0 commit comments