Skip to content

ioctl request arg size for Android aarch64 is wrong? #1036

Open
@lilydjwg

Description

@lilydjwg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-mediumE-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate.O-androidO-arm

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions