libc icon indicating copy to clipboard operation
libc copied to clipboard

Expose `open_how` on Android

Open xtqqczze opened this issue 1 month ago • 1 comments

Android declares struct open_how in its linux/openat2.h header, but libc does not expose it.

The struct should also likely be marked #[non_exhaustive] to accommodate future kernel extensions, as described in openat2(2).

Related: https://github.com/rust-lang/libc/pull/2477

xtqqczze avatar Oct 27 '26 20:10 xtqqczze

Hey , I found open_how already defined in linux_like/linux/mod.rs, but that module is Linux-only. Should I move the definition into linux_like/mod.rs so it is shared by Linux and Android, or add an Android-specific copy?

rizzabhdwaj avatar Oct 29 '26 04:10 rizzabhdwaj