nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
/// Cancel an outstanding asynchronous I/O operation (REALTIME)
pub unsafe fn aio_cancel(fd: i32, job: &mut aiocb_t) -> Result<i32, Errno> {
    let fd = fd as usize;
    let job_ptr = core::ptr::from_mut(job) as usize;
    unsafe { syscall2(SYS_AIO_CANCEL, fd, job_ptr).map(|val| val as i32) }
}