scall
Friendlier raw system calls for Rust.
This is a fork of sc with a slightly reworked API. Advantages:
-
It's easier to use -- the
syscall!macro returns aResult<usize, i32>indicating either the syscall result (on success) or error number (on failure). -
It properly supports x86_64 FreeBSD and macOS.
sctechnically supports x86_64 FreeBSD and macOS; however, those OSes have different conventions for returning error values, whichscfails to acknowledge. This effectively rendersscuseless for most purposes on those OSes.
See the list of supported platforms.