Function inotify_init1
pub unsafe fn inotify_init1(flags: i32) -> Result<i32, i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Initialize an inotify instance.
§Examples
let ret = unsafe { nc::inotify_init1(nc::IN_NONBLOCK | nc::IN_CLOEXEC) };
assert!(ret.is_ok());
let fd = ret.unwrap();
let ret = unsafe { nc::close(fd) };
assert!(ret.is_ok());