rust-lang / libc

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

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

Closed jschwe closed 3 months ago

jschwe commented 3 months 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

rustbot commented 3 months ago

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

jschwe commented 3 months ago

CC @Amanieu