Function nc::lstat [−][src]
Expand description
Get file status about a file, without following symbolic.
let path = "/etc/passwd";
let mut stat = nc::stat_t::default();
let ret = nc::lstat(path, &mut stat);
assert!(ret.is_ok());
// Check fd is a regular file.
assert_eq!((stat.st_mode & nc::S_IFMT), nc::S_IFREG);