Lines Matching refs:fd_notify
51 int fd_notify, reap_wd_file, reap_wd_dir, wd_dir, wd_file; variable
60 if (reap_wd_dir && myinotify_rm_watch(fd_notify, wd_dir) == -1) in cleanup()
62 "inotify_rm_watch(%d, %d) [1] failed", fd_notify, in cleanup()
65 if (reap_wd_file && myinotify_rm_watch(fd_notify, wd_file) == -1) in cleanup()
67 "inotify_rm_watch(%d, %d) [2] failed", fd_notify, in cleanup()
70 if (fd_notify > 0) in cleanup()
71 SAFE_CLOSE(fd_notify); in cleanup()
76 fd_notify = SAFE_MYINOTIFY_INIT(); in setup()
87 wd_dir = SAFE_MYINOTIFY_ADD_WATCH(fd_notify, TEST_DIR, IN_ALL_EVENTS); in verify_inotify()
90 wd_file = SAFE_MYINOTIFY_ADD_WATCH(fd_notify, TEST_FILE, IN_ALL_EVENTS); in verify_inotify()
126 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()