Function nc::inotify_init1 [−][src]
Expand description
Initialize an inotify instance.
let ret = nc::inotify_init1(nc::IN_NONBLOCK | nc::IN_CLOEXEC);
assert!(ret.is_ok());
let fd = ret.unwrap();
assert!(nc::close(fd).is_ok());