syscall-linux-raw 0.0.2

Defines syscallN methods for performing raw Linux syscalls
Documentation
  • Coverage
  • 30%
    3 out of 10 items documented1 out of 9 items with examples
  • Size
  • Source code size: 11.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 787.13 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • 197g/direct-asm
    5 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • HeroicKatora

syscall-linux-raw

Defines syscallN methods for performing raw Linux syscalls.

What

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.

How

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.

Wtf

Indeed. Don't use in prod.

Demo?

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.

License

The base software: Unlicense