#[unsafe(link_section = ".text")]pub fn syscall3(n: usize, a1: usize, a2: usize, a3: usize) -> isizeExpand description
Performs a raw system call with 3 arguments.
This is commonly used for syscalls such as read or write.
§Safety
Same as syscall1.
§Examples
use azathoth_utils::platform::linux::syscalls::syscall3;
let buf = [0u8; 64];
let n = unsafe { syscall3(0, 0, buf.as_ptr() as usize, buf.len()) }; // read(stdin)
assert!(n >= 0);