Skip to content

Commit 15f6c35

Browse files
lberrymagetgross35
authored andcommitted
Add SYS_lseek and SYS_mmap for aarch64 Android
Values are sourced from https://android.googlesource.com/platform/bionic/+/0339184/libc/kernel/uapi/asm-generic/unistd.h. (apply <#3632> to `main`) [ resolve conflicts - Trevor ] (cherry picked from commit 0b08bd5)
1 parent eff95d7 commit 15f6c35

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/android-aarch64.txt

+2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ HWCAP2_SVESM4
1212
PROT_BTI
1313
PROT_MTE
1414
SYS_arch_specific_syscall
15+
SYS_lseek
1516
SYS_memfd_secret
17+
SYS_mmap
1618
SYS_syscalls
1719
SYS_fcntl
1820
__system_property_wait

src/unix/linux_like/android/b64/aarch64/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ pub const SYS_vhangup: ::c_long = 58;
192192
pub const SYS_pipe2: ::c_long = 59;
193193
pub const SYS_quotactl: ::c_long = 60;
194194
pub const SYS_getdents64: ::c_long = 61;
195+
pub const SYS_lseek: ::c_long = 62;
195196
pub const SYS_read: ::c_long = 63;
196197
pub const SYS_write: ::c_long = 64;
197198
pub const SYS_readv: ::c_long = 65;
@@ -348,6 +349,7 @@ pub const SYS_request_key: ::c_long = 218;
348349
pub const SYS_keyctl: ::c_long = 219;
349350
pub const SYS_clone: ::c_long = 220;
350351
pub const SYS_execve: ::c_long = 221;
352+
pub const SYS_mmap: ::c_long = 222;
351353
pub const SYS_swapon: ::c_long = 224;
352354
pub const SYS_swapoff: ::c_long = 225;
353355
pub const SYS_mprotect: ::c_long = 226;

0 commit comments

Comments
 (0)