Skip to content

Commit dca3dae

Browse files
committed
Auto merge of #2664 - rschulman:master, r=joshtriplett
Add 400-series syscalls to musl riscv64 definitions This PR adds 19 missing syscalls to the riscv64 musl definitions. The missing calls were copied directly from the riscv64 GNU definitions. The missing definitions (in particular `SYS_clone3`) are preventing compiling `std` for `riscv64gc-unknown-linux-musl`.
2 parents f2592e7 + 7b3bc1d commit dca3dae

File tree

1 file changed

+19
-0
lines changed
  • src/unix/linux_like/linux/musl/b64/riscv64

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,25 @@ pub const SYS_pkey_mprotect: ::c_long = 288;
465465
pub const SYS_pkey_alloc: ::c_long = 289;
466466
pub const SYS_pkey_free: ::c_long = 290;
467467
pub const SYS_statx: ::c_long = 291;
468+
pub const SYS_pidfd_send_signal: ::c_long = 424;
469+
pub const SYS_io_uring_setup: ::c_long = 425;
470+
pub const SYS_io_uring_enter: ::c_long = 426;
471+
pub const SYS_io_uring_register: ::c_long = 427;
472+
pub const SYS_open_tree: ::c_long = 428;
473+
pub const SYS_move_mount: ::c_long = 429;
474+
pub const SYS_fsopen: ::c_long = 430;
475+
pub const SYS_fsconfig: ::c_long = 431;
476+
pub const SYS_fsmount: ::c_long = 432;
477+
pub const SYS_fspick: ::c_long = 433;
478+
pub const SYS_pidfd_open: ::c_long = 434;
479+
pub const SYS_clone3: ::c_long = 435;
480+
pub const SYS_close_range: ::c_long = 436;
481+
pub const SYS_openat2: ::c_long = 437;
482+
pub const SYS_pidfd_getfd: ::c_long = 438;
483+
pub const SYS_faccessat2: ::c_long = 439;
484+
pub const SYS_process_madvise: ::c_long = 440;
485+
pub const SYS_epoll_pwait2: ::c_long = 441;
486+
pub const SYS_mount_setattr: ::c_long = 442;
468487

469488
pub const O_APPEND: ::c_int = 1024;
470489
pub const O_DIRECT: ::c_int = 0x4000;

0 commit comments

Comments
 (0)