Lines Matching refs:fd_notify
78 int fd_notify, reap_wd_file, reap_wd_dir, wd_dir, wd_file; variable
88 if (reap_wd_dir && myinotify_rm_watch(fd_notify, wd_dir) == -1) in cleanup()
90 "inotify_rm_watch(%d, %d) [1] failed", fd_notify, in cleanup()
93 if (reap_wd_file && myinotify_rm_watch(fd_notify, wd_file) == -1) in cleanup()
95 "inotify_rm_watch(%d, %d) [2] failed", fd_notify, in cleanup()
98 if (fd_notify > 0 && close(fd_notify)) in cleanup()
99 tst_resm(TWARN, "close(%d) [1] failed", fd_notify); in cleanup()
119 fd_notify = myinotify_init(); in setup()
120 if (fd_notify == -1) { in setup()
134 wd_dir = myinotify_add_watch(fd_notify, TEST_DIR, IN_ALL_EVENTS); in setup()
138 fd_notify, TEST_DIR); in setup()
142 wd_file = myinotify_add_watch(fd_notify, TEST_FILE, IN_ALL_EVENTS); in setup()
146 fd_notify, TEST_FILE); in setup()
198 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in main()