rust-lang / libc

Raw bindings to platform APIs for Rust
https://docs.rs/libc
Apache License 2.0
2.02k stars 1.01k forks source link

preadv2 is not supported on musl libc #3760

Closed NobodyXu closed 1 day ago

NobodyXu commented 1 week ago

The preadv2 function is present on -gnu target, however when compiling on -musl target, which is surprising.

The jobserver-rs would like to use it to optimize it's performance rust-lang/jobserver-rs#90 (the try_acquire optimization has shipped once but reverted, so I opened another PR to use raw syscall directly).

FYI, my motivation is to that this API is used in cc-rs to improve performance.

faptc commented 1 day ago

closed by #3762

NobodyXu commented 1 day ago

Thank you!