I was trying to call libc::ioctl but I got type errors with Android aarch64 target. It works fine with x86_64. The second argument request has different size in these targets: c_ulong for x86_64 and c_int for Android aarch64.
I believe it should be c_ulong for Android aarch64 too, because it works (I'm using FFI now, and I get correct data out), and my request 0xC020660B (FS_IOC_FIEMAP) doesn't fit into a c_int.
I was trying to call
libc::ioctlbut I got type errors with Android aarch64 target. It works fine with x86_64. The second argumentrequesthas different size in these targets:c_ulongfor x86_64 andc_intfor Android aarch64.I believe it should be
c_ulongfor Android aarch64 too, because it works (I'm using FFI now, and I get correct data out), and my request0xC020660B(FS_IOC_FIEMAP) doesn't fit into ac_int.