scall

Crates.ioscall
lib.rsscall
version0.2.5
sourcesrc
created_at2020-12-24 22:21:55.190573
updated_at2022-03-26 15:23:29.162578
descriptionFriendlier raw system calls for Rust.
homepage
repositoryhttps://github.com/cptpcrd/scall
max_upload_size
id326988
size444,397
(cptpcrd)

documentation

README

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.

Commit count: 220

cargo fmt