Crates.io | scall |
lib.rs | scall |
version | 0.2.5 |
source | src |
created_at | 2020-12-24 22:21:55.190573 |
updated_at | 2022-03-26 15:23:29.162578 |
description | Friendlier raw system calls for Rust. |
homepage | |
repository | https://github.com/cptpcrd/scall |
max_upload_size | |
id | 326988 |
size | 444,397 |
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 a Result<usize, i32>
indicating either the syscall result (on success) or error number (on failure).
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.