pub unsafe fn stat64<P: AsRef<Path>>(
filename: P,
statbuf: &mut stat64_t
) -> Result<(), Errno>
Expand description
Get file status about a file.
§Example
let path = "/etc/passwd";
let mut stat = nc::stat64_t::default();
let ret = unsafe { nc::stat64(path, &mut stat) };
assert!(ret.is_ok());
// Check fd is a regular file.
assert_eq!((stat.st_mode & nc::S_IFMT), nc::S_IFREG);