#[unsafe(link_section = ".text")]pub fn syscall2(n: usize, a1: usize, a2: usize) -> isizeExpand description
Performs a raw system call with 2 arguments.
Similar to syscall1, but accepts
two arguments (a1, a2). Returns the raw result of the syscall.
§Safety
Same as syscall1.
§Examples
use azathoth_utils::platform::linux::{syscalls::syscall2, consts::SYS_OPEN};
let fd = unsafe { syscall2(SYS_OPEN, b"/etc/passwd\0".as_ptr() as usize, 0) };
assert!(fd >= 0);