Crates.io | syscall-linux-raw |
lib.rs | syscall-linux-raw |
version | 0.0.2 |
source | src |
created_at | 2020-07-02 22:59:12.728877 |
updated_at | 2021-03-02 23:25:49.697173 |
description | Defines syscallN methods for performing raw Linux syscalls |
homepage | |
repository | https://github.com/HeroicKatora/direct-asm |
max_upload_size | |
id | 260805 |
size | 11,705 |
Defines syscallN methods for performing raw Linux syscalls.
Defines the small set of methods abstracting raw syscalls with different
numbers of arguments, only available on target_os = "linux"
. That's it. But
it works on stable and may be instructive for other syscall binary interfaces.
By pure magic. Jk, it defines fully assembled binary function with a proper
C-abi and aliases them as callable functions with #[no_mangle]
, then defines
a bunch of wrappers with Rust abi that should at some point be available
independent of the ISA chosen in the backend.
Indeed. Don't use in prod.
See the example: cargo run --example simple
.
Only works on x86_64-unknown-linux-*
and should fail to compile on other
architectures and OS's.
The base software: Unlicense