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

Backport #3735: ohos: Add `shm_open` and `shm_unlink` #3753

Closed jschwe closed 2 weeks ago

jschwe commented 2 weeks ago

OpenHarmony 4.1 adds support for shm_open and shm_unlink so we can expose them unconditionally. Users developing for older OpenHarmony versions will only encounter a linker error if they attempt to use the functions. See OpenHarmony release notes for 4.1: https://gitee.com/openharmony/docs/blob/master/en/release-notes/OpenHarmony-v4.1-release.md#arkcompiler

Signed-off-by: Jonathan Schwender jonathan.schwender@huawei.com

rustbot commented 2 weeks 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