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