Home
last modified time | relevance | path

Searched refs:fanotify_fd (Results 1 - 5 of 5) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify15.c54 static int fanotify_fd; variable
88 SAFE_FANOTIFY_MARK(fanotify_fd, FAN_MARK_ADD | mark->flag, tc->mask | in do_test()
109 fanotify_mark(fanotify_fd, FAN_MARK_ADD | mark->flag, in do_test()
115 fanotify_fd, mark->name, FILE1); in do_test()
140 len = SAFE_READ(0, fanotify_fd, events_buf, EVENT_BUF_LEN); in do_test()
160 fanotify_mark(fanotify_fd, FAN_MARK_ADD | mark->flag, in do_test()
166 fanotify_fd, mark->name, DIR1); in do_test()
178 len += SAFE_READ(0, fanotify_fd, events_buf + len, EVENT_BUF_LEN - len); in do_test()
183 SAFE_FANOTIFY_MARK(fanotify_fd, FAN_MARK_FLUSH | mark->flag, 0, in do_test()
277 fanotify_fd in do_setup()
[all...]
H A Dfanotify14.c47 static int fanotify_fd; variable
267 fanotify_fd = TST_RET; in do_test()
269 if (fanotify_fd < 0) in do_test()
286 TST_EXP_FD_OR_FAIL(fanotify_mark(fanotify_fd, FAN_MARK_ADD | tc->mark.flags, in do_test()
297 SAFE_FANOTIFY_MARK(fanotify_fd, FAN_MARK_ADD | tc->mark.flags, in do_test()
304 SAFE_FANOTIFY_MARK(fanotify_fd, FAN_MARK_ADD | tc->mark.flags | in do_test()
314 if (fanotify_fd > 0) in do_test()
315 SAFE_CLOSE(fanotify_fd); in do_test()
335 if (fanotify_fd > 0) in do_cleanup()
336 SAFE_CLOSE(fanotify_fd); in do_cleanup()
[all...]
H A Dfanotify21.c61 static int fanotify_fd; variable
100 SAFE_CLOSE(fanotify_fd); in do_fork()
124 fanotify_fd = SAFE_FANOTIFY_INIT(FAN_REPORT_PIDFD, O_RDONLY); in do_setup()
125 SAFE_FANOTIFY_MARK(fanotify_fd, FAN_MARK_ADD, FAN_OPEN, AT_FDCWD, in do_setup()
159 len = SAFE_READ(0, fanotify_fd, event_buf, sizeof(event_buf)); in do_test()
285 if (fanotify_fd >= 0) in do_cleanup()
286 SAFE_CLOSE(fanotify_fd); in do_cleanup()
H A Dfanotify13.c95 static int fanotify_fd; variable
162 fanotify_fd = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF | FAN_REPORT_FID, O_RDONLY); in do_test()
168 if (setup_marks(fanotify_fd, tc) != 0) in do_test()
198 len = SAFE_READ(0, fanotify_fd, events_buf, BUF_SIZE); in do_test()
279 SAFE_CLOSE(fanotify_fd); in do_test()
333 if (fanotify_fd > 0) in do_cleanup()
334 SAFE_CLOSE(fanotify_fd); in do_cleanup()
/third_party/musl/src/linux/
H A Dfanotify.c9 int fanotify_mark(int fanotify_fd, unsigned flags, unsigned long long mask, in fanotify_mark() argument
12 return syscall(SYS_fanotify_mark, fanotify_fd, flags, __SYSCALL_LL_E(mask), dfd, pathname); in fanotify_mark()

Completed in 3 milliseconds