syscall.rs fork for squiid.
Find a file
Christoph Heiss a9a90850b3
Add squiid x86_64 as platform
Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
2022-07-11 19:12:19 +02:00
.github/workflows fix CI 2022-02-04 12:35:52 +01:00
examples fix test and example 2017-01-13 00:09:10 -05:00
src Add squiid x86_64 as platform 2022-07-11 19:12:19 +02:00
tests linux: test that the return code, in the error case, has the right sign 2017-01-13 09:29:31 -05:00
tools Update for Linux 5.12 and add linux-riscv64 platform 2021-05-15 21:35:07 +02:00
.gitignore Initial commit 2014-09-06 14:14:12 -07:00
Cargo.toml v0.2.7 2022-03-24 15:24:16 +01:00
CHANGELOG.md v0.2.7 2022-03-24 15:24:16 +01:00
COPYRIGHT Prepare for crates.io upload 2015-01-10 12:43:48 -08:00
Cross.toml fix typo in Cross.toml 2021-05-15 21:12:31 +02:00
LICENSE-APACHE Initial commit 2014-09-06 14:14:12 -07:00
LICENSE-MIT Initial commit 2014-09-06 14:14:12 -07:00
README.md v0.2.6 2022-02-04 12:57:19 +01:00

Raw system calls for Rust

This library allows Rust code to invoke system calls directly.

⚠️ NOTE: Only these architectures have been ported to the stable (as of 1.59) asm! macro

  • aarch64
  • riscv64
  • x86_64

All the other architectures use the deprecated llvm_asm! macro which has already been removed. To use this crate with those architectures you'll need to use an older nightly like nightly-2022-01-14

See the list of supported platforms. Additions are very welcome!

We do not intend to provide wrapper functions like read(2) etc. because there are many subtly different ways to define them in Rust.