Skip to content

Commit 4702102

Browse files
committed
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.
1 parent 381a445 commit 4702102

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/unix/notbsd/android/b32/x86.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,22 @@ pub const SYS_personality: ::c_long = 136;
149149
pub const SYS_afs_syscall: ::c_long = 137;
150150
pub const SYS_setfsuid: ::c_long = 138;
151151
pub const SYS_setfsgid: ::c_long = 139;
152-
pub const SYS__llseek: ::c_long = 140;
152+
// FIXME: SYS__llseek is in the NDK sources but for some reason is
153+
// not available in the tests
154+
// pub const SYS__llseek: ::c_long = 140;
153155
pub const SYS_getdents: ::c_long = 141;
154-
pub const SYS__newselect: ::c_long = 142;
156+
// FIXME: SYS__newselect is in the NDK sources but for some reason is
157+
// not available in the tests
158+
// pub const SYS__newselect: ::c_long = 142;
155159
pub const SYS_flock: ::c_long = 143;
156160
pub const SYS_msync: ::c_long = 144;
157161
pub const SYS_readv: ::c_long = 145;
158162
pub const SYS_writev: ::c_long = 146;
159163
pub const SYS_getsid: ::c_long = 147;
160164
pub const SYS_fdatasync: ::c_long = 148;
161-
pub const SYS__sysctl: ::c_long = 149;
165+
// FIXME: SYS__llseek is in the NDK sources but for some reason is
166+
// not available in the tests
167+
// pub const SYS__sysctl: ::c_long = 149;
162168
pub const SYS_mlock: ::c_long = 150;
163169
pub const SYS_munlock: ::c_long = 151;
164170
pub const SYS_mlockall: ::c_long = 152;

src/unix/notbsd/android/b64/x86_64.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ pub const SYS_munlockall: ::c_long = 152;
211211
pub const SYS_vhangup: ::c_long = 153;
212212
pub const SYS_modify_ldt: ::c_long = 154;
213213
pub const SYS_pivot_root: ::c_long = 155;
214-
pub const SYS__sysctl: ::c_long = 156;
214+
// FIXME: SYS__sysctl is in the NDK sources but for some reason is
215+
// not available in the tests
216+
// pub const SYS__sysctl: ::c_long = 156;
215217
pub const SYS_prctl: ::c_long = 157;
216218
pub const SYS_arch_prctl: ::c_long = 158;
217219
pub const SYS_adjtimex: ::c_long = 159;

0 commit comments

Comments
 (0)