rustix::fs::inotify

Function init

Source
pub fn init(flags: CreateFlags) -> Result<OwnedFd>
Expand description

inotify_init1(flags)—Creates a new inotify object.

Use the CreateFlags::CLOEXEC flag to prevent the resulting file descriptor from being implicitly passed across exec boundaries.