nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Reposition read/write file offset.
pub unsafe fn _llseek(
    fd: i32,
    offset_high: usize,
    offset_low: usize,
    result: &mut loff_t,
    whence: i32,
) -> Result<(), Errno> {
    let fd = fd as usize;
    let result_ptr = core::ptr::from_mut(result) as usize;
    let whence = whence as usize;
    unsafe { syscall5(SYS__LLSEEK, fd, offset_high, offset_low, result_ptr, whence).map(drop) }
}