Lines Matching refs:fd_notify
47 static volatile int fd_notify;
155 SAFE_CLOSE(fd_notify);
156 fd_notify = -1;
176 SAFE_CLOSE(fd_notify);
221 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_CONTENT, O_RDONLY);
224 SAFE_FANOTIFY_MARK(fd_notify, FAN_MARK_ADD | mark->flag,
248 while (test_num < tc->event_count + 1 && fd_notify != -1) {
253 ret = read(fd_notify, event_buf + len,
255 if (fd_notify == -1)
260 fd_notify, EVENT_BUF_LEN);
298 SAFE_WRITE(SAFE_WRITE_ALL, fd_notify, &resp, sizeof(resp));
317 if (fd_notify > 0)
318 SAFE_CLOSE(fd_notify);
336 if (fd_notify > 0)
337 SAFE_CLOSE(fd_notify);