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

Make VxWorks shims `unsafe` #3727

Closed jdygert-spok closed 2 weeks ago

jdygert-spok commented 1 month ago

pread and pwrite don't technically need to be unsafe, but it is consistent and more convenient for avoiding the unused_unsafe warning across targets.

posix_memalign must be unsafe since it writes to the ptr arg memptr.

This is a breaking change.

rustbot commented 1 month ago

r? @JohnTitor

rustbot has assigned @JohnTitor. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer