[][src]Crate scall

Friendlier raw system calls for Rust.

Example usage:


unsafe {
    let pid = syscall!(GETPID).unwrap();
    syscall!(KILL, pid, 0).unwrap();
}

Note: This crate has several functions/macros, and looking through the documentation may seem a little confusing. However, for most purposes, you'll just want to use the syscall! macro. The other functions/macros are mostly present to support more advanced use cases.

Modules

nr

Macros

syscall

Make a syscall, and return the result as a Result<usize, i32>.

syscall_raw

Make a syscall, and return the direct result (platform-specific).

Functions

decode_raw_result

"Decode" a result from syscall_raw!.

syscall0
syscall1
syscall2
syscall3
syscall4
syscall5
syscall6

Type Definitions

RawResult

The type returned by syscall_raw! on this platform.