nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Get filesystem statistics referenced by `fh`.
pub unsafe fn __fhstatvfs140(
    fhp: uintptr_t,
    fh_size: size_t,
    buf: &mut statvfs_t,
    flags: i32,
) -> Result<(), Errno> {
    let buf_ptr = core::ptr::from_mut(buf) as usize;
    let flags = flags as usize;
    unsafe { syscall4(SYS___FHSTATVFS140, fhp, fh_size, buf_ptr, flags).map(drop) }
}