libc
libc copied to clipboard
Expose `open_how` on Android
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
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?