Home
last modified time | relevance | path

Searched refs:fanotify_fd (Results 1 – 6 of 6) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify14.c33 static int fanotify_fd; variable
72 fanotify_fd = fanotify_init(tc->init_flags, O_RDONLY); in do_test()
73 if (fanotify_fd < 0) { in do_test()
83 fanotify_fd, in do_test()
89 fanotify_fd, in do_test()
103 fanotify_fd, in do_test()
108 ret = fanotify_mark(fanotify_fd, FAN_MARK_ADD | tc->mark_flags, in do_test()
123 fanotify_fd, in do_test()
133 fanotify_fd, in do_test()
143 fanotify_fd, in do_test()
[all …]
Dfanotify20.c29 static int fanotify_fd; variable
66 fanotify_fd = fanotify_init(tc->init_flags, O_RDONLY); in do_test()
67 if (fanotify_fd < 0) { in do_test()
72 fanotify_fd, tc->init_flags, errno); in do_test()
81 fanotify_fd, tc->init_flags, in do_test()
89 fanotify_fd, tc->init_flags, errno); in do_test()
101 fanotify_fd, tc->init_flags, tc->want_errno); in do_test()
108 fanotify_fd, tc->init_flags); in do_test()
110 SAFE_CLOSE(fanotify_fd); in do_test()
115 if (fanotify_fd >= 0) in do_cleanup()
[all …]
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()
276 fanotify_fd = SAFE_FANOTIFY_INIT(FAN_REPORT_FID, O_RDONLY); in do_setup()
[all …]
Dfanotify21.c60 static int fanotify_fd; variable
99 SAFE_CLOSE(fanotify_fd); in do_fork()
123 fanotify_fd = SAFE_FANOTIFY_INIT(FAN_REPORT_PIDFD, O_RDONLY); in do_setup()
124 SAFE_FANOTIFY_MARK(fanotify_fd, FAN_MARK_ADD, FAN_OPEN, AT_FDCWD, in do_setup()
163 len = SAFE_READ(0, fanotify_fd, event_buf, sizeof(event_buf)); in do_test()
289 if (fanotify_fd >= 0) in do_cleanup()
290 SAFE_CLOSE(fanotify_fd); in do_cleanup()
Dfanotify13.c92 static int fanotify_fd; variable
153 fanotify_fd = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF | FAN_REPORT_FID, O_RDONLY); in do_test()
159 if (setup_marks(fanotify_fd, tc) != 0) in do_test()
177 len = SAFE_READ(0, fanotify_fd, events_buf, BUF_SIZE); in do_test()
257 SAFE_CLOSE(fanotify_fd); in do_test()
286 if (fanotify_fd > 0) in do_cleanup()
287 SAFE_CLOSE(fanotify_fd); in do_cleanup()
/third_party/musl/src/linux/
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()