Skip to content

Commit

Permalink
Add SYS_lseek and SYS_mmap for aarch64 Android
Browse files Browse the repository at this point in the history
Values are sourced from
https://android.googlesource.com/platform/bionic/+/0339184/libc/kernel/uapi/asm-generic/unistd.h.

(apply <rust-lang#3632> to `main`)
[ resolve conflicts - Trevor ]
(cherry picked from commit 0b08bd5)
  • Loading branch information
lberrymage authored and tgross35 committed Aug 28, 2024
1 parent bfe4174 commit 7ce9ffa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/android-aarch64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ HWCAP2_SVESM4
PROT_BTI
PROT_MTE
SYS_arch_specific_syscall
SYS_lseek
SYS_memfd_secret
SYS_mmap
SYS_syscalls
SYS_fcntl
__system_property_wait
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/android/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ pub const SYS_vhangup: ::c_long = 58;
pub const SYS_pipe2: ::c_long = 59;
pub const SYS_quotactl: ::c_long = 60;
pub const SYS_getdents64: ::c_long = 61;
pub const SYS_lseek: ::c_long = 62;
pub const SYS_read: ::c_long = 63;
pub const SYS_write: ::c_long = 64;
pub const SYS_readv: ::c_long = 65;
Expand Down Expand Up @@ -348,6 +349,7 @@ pub const SYS_request_key: ::c_long = 218;
pub const SYS_keyctl: ::c_long = 219;
pub const SYS_clone: ::c_long = 220;
pub const SYS_execve: ::c_long = 221;
pub const SYS_mmap: ::c_long = 222;
pub const SYS_swapon: ::c_long = 224;
pub const SYS_swapoff: ::c_long = 225;
pub const SYS_mprotect: ::c_long = 226;
Expand Down

0 comments on commit 7ce9ffa

Please sign in to comment.