syscall.rs fork for squiid.
Find a file
niluxv 7e86d199a1 Port several platforms from llvm_asm to asm where the change is trivial
The reason for this change is that `llvm_asm` is removed from nightly, so it
doesn't compile anymore on any current compiler, while `asm` is being stabilised
(currently stable on beta).

The major omission in this commit is the linux x86 (32 bit) platform. The new `asm`
macro doesn't allow the esi and ebp registers to be used as inputs or outputs or
clobbers, which makes the port non-trivial for this platform. Similarly on armeabi
the r6 register is not allowed as input, output or clobber.
2022-01-30 19:38:14 +01:00
.github/workflows ci: add RISC-V 2021-05-15 21:36:07 +02:00
examples fix test and example 2017-01-13 00:09:10 -05:00
src Port several platforms from llvm_asm to asm where the change is trivial 2022-01-30 19:38:14 +01: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.4 2021-05-15 21:42:04 +02:00
CHANGELOG.md v0.2.4 2021-05-15 21:42:04 +02: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 Fix link in README.md 2017-01-24 00:03:48 +09:00

Raw system calls for Rust

This library allows Rust code to invoke system calls directly.

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.