Lines Matching refs:fd_notify
64 static volatile int fd_notify; variable
99 close(fd_notify); in child_handler()
100 fd_notify = -1; in child_handler()
119 close(fd_notify); in run_child()
172 fd_notify_backup = dup(fd_notify); in main()
175 "dup(%d) failed", fd_notify); in main()
196 while (test_num < TST_TOTAL && fd_notify != -1) { in main()
201 ret = read(fd_notify, event_buf + len, in main()
203 if (fd_notify == -1) in main()
208 fd_notify, EVENT_BUF_LEN); in main()
241 SAFE_WRITE(cleanup, 1, fd_notify, &resp, in main()
259 if (fd_notify == -1) { in main()
260 fd_notify = fd_notify_backup; in main()
283 if ((fd_notify = fanotify_init(FAN_CLASS_CONTENT, O_RDONLY)) < 0) { in setup()
293 if (fanotify_mark(fd_notify, FAN_MARK_ADD, FAN_ACCESS_PERM | in setup()
302 "FAN_OPEN_PERM, AT_FDCWD, %s) failed.", fd_notify, fname); in setup()
310 if (fd_notify > 0 && close(fd_notify)) in cleanup()
311 tst_resm(TWARN | TERRNO, "close(%d) failed", fd_notify); in cleanup()