nc 0.9.7

Access system calls directly
Documentation
1
2
3
4
5
6
7
8
/// Make a hard link.
pub unsafe fn fhlinkat<P: AsRef<Path>>(fh: &mut fhandle_t, tofd: i32, to: P) -> Result<(), Errno> {
    let fh_ptr = fh as *mut fhandle_t as usize;
    let tofd = tofd as usize;
    let to = CString::new(to.as_ref());
    let to_ptr = to.as_ptr() as usize;
    syscall3(SYS_FHLINKAT, fh_ptr, tofd, to_ptr).map(drop)
}