A Bytecode Alliance project
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
memory safety and I/O safety.
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.
Linux raw syscall support
On Linux, posish
can optionally be configured to target the raw
Linux syscall ABI directly instead of calling through libc
. To enable this,
add --cfg linux_raw
to the RUSTFLAGS
environment variable, or otherwise
pass --cfg linux_raw
to rustc.