mirror of
https://github.com/openharmony/third_party_rust_rustix.git
synced 2026-07-01 20:54:01 -04:00
b832a562fdc79651f75f6758ed25dfcda7933692
posish provides safe wrappers to POSIX-ish libc APIs and syscalls.
posish is focused on functionality that isn't already provided by std
or other low-level crates such as getrandom and errno. It prioritizes
safe interfaces, including considering raw file descriptors to be equivalent
to pointers in terms of making APIs unsafe, in the spirit of
std::os::unix::io::FromRawFd::from_raw_fd being unsafe and
RawFd not implementing AsRawFd/IntoRawFd.
posish is relatively low-level and does not support Windows; for higher-level
and portable APIs to this functionality, see the system-interface,
cap-std, and fs-set-times crates.
Description
一个纯Rust实现的UNIX系统调用库。 | A Rust library that provides support for working with UTF-8 encoded strings.
Languages
Rust
97.4%
Assembly
2.5%