pub unsafe fn statfs64<P: AsRef<Path>>(
filename: P,
buf: &mut statfs64_t
) -> Result<(), Errno>
Expand description
Get filesystem statistics.
§Example
let path = "/usr";
let mut statfs = nc::statfs64_t::default();
let ret = unsafe { nc::statfs64(path, &mut statfs) };
assert!(ret.is_ok());
assert!(statfs.f_bfree > 0);
assert!(statfs.f_bavail > 0);