#syscall #system #call

nightly scall

Friendlier raw system calls for Rust

6 releases

0.2.4 Jun 12, 2021
0.2.3 May 11, 2021
0.2.2 Mar 6, 2021
0.2.1 Feb 17, 2021
0.1.0 Dec 24, 2020

#4 in #call

29 downloads per month

MIT/Apache

400KB
12K SLoC

scall

crates.io Docs GitHub Actions Cirrus CI codecov

Friendlier raw system calls for Rust.

This is a fork of sc with a slightly reworked API. Advantages:

  1. It's easier to use -- the syscall! macro returns a Result<usize, i32> indicating either the syscall result (on success) or error number (on failure).

  2. It properly supports x86_64 FreeBSD and macOS. sc technically supports x86_64 FreeBSD and macOS; however, those OSes have different conventions for returning error values, which sc fails to acknowledge. This effectively renders sc useless for most purposes on those OSes.

See the list of supported platforms.

No runtime deps