Skip to content

Commit f397625

Browse files
committed
Auto merge of #1435 - dianpopa:master, r=gnzlbg
Add missing syscalls for aarch64-unknown-linux-musl The list of syscalls from [rust-lang-aarch64-musl-syscalls](../blob/master/src/unix/notbsd/linux/musl/b64/aarch64.rs) misses some of the syscalls that are defined in [musl-libc-aarch64-syscalls](https://git.musl-libc.org/cgit/musl/tree/arch/aarch64/bits/syscall.h.in). We need this so that we get rid of hardcoding them inside [our project](https://github.com/firecracker-microvm/firecracker/blob/master/vmm/src/default_syscalls/filters.rs#L16). Signed-off-by: Diana Popa <dpopa@amazon.com>
2 parents 6307a0b + 5b959a1 commit f397625

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/unix/linux_like/linux/musl/b64/aarch64.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ pub const SYS_epoll_ctl: ::c_long = 21;
9696
pub const SYS_epoll_pwait: ::c_long = 22;
9797
pub const SYS_dup: ::c_long = 23;
9898
pub const SYS_dup3: ::c_long = 24;
99+
pub const SYS_fcntl: ::c_long = 25;
99100
pub const SYS_inotify_init1: ::c_long = 26;
100101
pub const SYS_inotify_add_watch: ::c_long = 27;
101102
pub const SYS_inotify_rm_watch: ::c_long = 28;
@@ -128,6 +129,7 @@ pub const SYS_vhangup: ::c_long = 58;
128129
pub const SYS_pipe2: ::c_long = 59;
129130
pub const SYS_quotactl: ::c_long = 60;
130131
pub const SYS_getdents64: ::c_long = 61;
132+
pub const SYS_lseek: ::c_long = 62;
131133
pub const SYS_read: ::c_long = 63;
132134
pub const SYS_write: ::c_long = 64;
133135
pub const SYS_readv: ::c_long = 65;
@@ -143,6 +145,8 @@ pub const SYS_vmsplice: ::c_long = 75;
143145
pub const SYS_splice: ::c_long = 76;
144146
pub const SYS_tee: ::c_long = 77;
145147
pub const SYS_readlinkat: ::c_long = 78;
148+
pub const SYS_newfstatat: ::c_long = 79;
149+
pub const SYS_fstat: ::c_long = 80;
146150
pub const SYS_sync: ::c_long = 81;
147151
pub const SYS_fsync: ::c_long = 82;
148152
pub const SYS_fdatasync: ::c_long = 83;
@@ -284,6 +288,7 @@ pub const SYS_request_key: ::c_long = 218;
284288
pub const SYS_keyctl: ::c_long = 219;
285289
pub const SYS_clone: ::c_long = 220;
286290
pub const SYS_execve: ::c_long = 221;
291+
pub const SYS_mmap: ::c_long = 222;
287292
pub const SYS_swapon: ::c_long = 224;
288293
pub const SYS_swapoff: ::c_long = 225;
289294
pub const SYS_mprotect: ::c_long = 226;

0 commit comments

Comments
 (0)