Crate raw_syscall_base[][src]

#raw-syscall-base

This crate is limited to providing basic functionality necessary to perform system calls on the target platform.

All functions are marked unsafe, and no validation is done on arguments or return values.

All arguments and return values use the most basic possible types, for example everything is usize on x86_64-linux. All arguments must be converted to this type, and it's up to the caller to determine whether the result represents a pointer or error code or whatever.

The intention is to provide a minimal stable base with no unnecessary overhead on which to build a higher-level library.

Functions

syscall

Performs a system call and returns the result.

syscall_0

Performs a system call with no arguments and returns the result.

syscall_1

Performs a system call with one argument and returns the result.

syscall_2

Performs a system call with two arguments and returns the result.

syscall_3

Performs a system call with three arguments and returns the result.

syscall_4

Performs a system call with four arguments and returns the result.

syscall_5

Performs a system call with five arguments and returns the result.

syscall_6

Performs a system call with six arguments and returns the result.

syscall_0_nr

Performs a system call with no arguments which never returns.

syscall_1_nr

Performs a system call with one argument and never returns.

syscall_2_nr

Performs a system call with two arguments which never returns.

syscall_3_nr

Performs a system call with three arguments which never returns.

syscall_4_nr

Performs a system call with four arguments which never returns.

syscall_5_nr

Performs a system call with five arguments which never returns.

syscall_6_nr

Performs a system call with six arguments which never returns.

syscall_nr

Performs a system call which never returns.