From 47021028c64c8aa913e28329e74861fff3f84782 Mon Sep 17 00:00:00 2001 From: Marcin Mielniczuk <marmistrz.dev@zoho.eu> Date: Thu, 3 Aug 2017 14:04:54 +0200 Subject: [PATCH] Comment out some of the syscalls for Android. For some reason, they are in the NDK sources but they are not available in the tests. I don't know what Android does here, but nothing that makes sense. --- src/unix/notbsd/android/b32/x86.rs | 12 +++++++++--- src/unix/notbsd/android/b64/x86_64.rs | 4 +++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/unix/notbsd/android/b32/x86.rs b/src/unix/notbsd/android/b32/x86.rs index 9b566811..a56fa004 100644 --- a/src/unix/notbsd/android/b32/x86.rs +++ b/src/unix/notbsd/android/b32/x86.rs @@ -149,16 +149,22 @@ pub const SYS_personality: ::c_long = 136; pub const SYS_afs_syscall: ::c_long = 137; pub const SYS_setfsuid: ::c_long = 138; pub const SYS_setfsgid: ::c_long = 139; -pub const SYS__llseek: ::c_long = 140; +// FIXME: SYS__llseek is in the NDK sources but for some reason is +// not available in the tests +// pub const SYS__llseek: ::c_long = 140; pub const SYS_getdents: ::c_long = 141; -pub const SYS__newselect: ::c_long = 142; +// FIXME: SYS__newselect is in the NDK sources but for some reason is +// not available in the tests +// pub const SYS__newselect: ::c_long = 142; pub const SYS_flock: ::c_long = 143; pub const SYS_msync: ::c_long = 144; pub const SYS_readv: ::c_long = 145; pub const SYS_writev: ::c_long = 146; pub const SYS_getsid: ::c_long = 147; pub const SYS_fdatasync: ::c_long = 148; -pub const SYS__sysctl: ::c_long = 149; +// FIXME: SYS__llseek is in the NDK sources but for some reason is +// not available in the tests +// pub const SYS__sysctl: ::c_long = 149; pub const SYS_mlock: ::c_long = 150; pub const SYS_munlock: ::c_long = 151; pub const SYS_mlockall: ::c_long = 152; diff --git a/src/unix/notbsd/android/b64/x86_64.rs b/src/unix/notbsd/android/b64/x86_64.rs index a49e5c58..c813e7da 100644 --- a/src/unix/notbsd/android/b64/x86_64.rs +++ b/src/unix/notbsd/android/b64/x86_64.rs @@ -211,7 +211,9 @@ pub const SYS_munlockall: ::c_long = 152; pub const SYS_vhangup: ::c_long = 153; pub const SYS_modify_ldt: ::c_long = 154; pub const SYS_pivot_root: ::c_long = 155; -pub const SYS__sysctl: ::c_long = 156; +// FIXME: SYS__sysctl is in the NDK sources but for some reason is +// not available in the tests +// pub const SYS__sysctl: ::c_long = 156; pub const SYS_prctl: ::c_long = 157; pub const SYS_arch_prctl: ::c_long = 158; pub const SYS_adjtimex: ::c_long = 159; -- GitLab