Lines Matching defs:inotify_fd
37 int inotify_fd; /* The inotify_fd */
298 len = read(snctx->wctx->inotify_fd, ev_buf, sizeof(ev_buf));
375 if (wctx->inotify_fd != -1) {
377 "Closing inotify fd %d\n", wctx->inotify_fd);
378 close(wctx->inotify_fd);
434 wctx->inotify_fd = -1;
440 wctx->inotify_fd = inotify_init1(IN_NONBLOCK | IN_CLOEXEC);
441 if (wctx->inotify_fd == -1) {
447 DEBUG(SSSDBG_TRACE_INTERNAL, "Opened inotify fd %d\n", wctx->inotify_fd);
449 wctx->tfd = tevent_add_fd(snctx->ev, wctx, wctx->inotify_fd,
459 wctx->file_wd = inotify_add_watch(wctx->inotify_fd, snctx->filename, mask);
476 wctx->dir_wd = inotify_add_watch(wctx->inotify_fd,