(
inot: Fd,
path: P,
flags: inotify::WatchFlags,
)
| 72 | #[doc(alias = "inotify_add_watch")] |
| 73 | #[inline] |
| 74 | pub fn add_watch<P: crate::path::Arg, Fd: AsFd>( |
| 75 | inot: Fd, |
| 76 | path: P, |
| 77 | flags: inotify::WatchFlags, |
| 78 | ) -> io::Result<i32> { |
| 79 | path.into_with_c_str(|path| syscalls::inotify_add_watch(inot.as_fd(), path, flags)) |
| 80 | } |
| 81 | |
| 82 | /// `inotify_rm_watch(self, wd)`—Removes a watch from this inotify. |
| 83 | /// |