HomeSort by relevance Sort by last modified time
    Searched full:fd_notify (Results 1 - 13 of 13) sorted by null

  /external/ltp/testcases/kernel/syscalls/fanotify/
fanotify03.c 59 static volatile int fd_notify; variable
95 close(fd_notify);
96 fd_notify = -1;
115 close(fd_notify);
148 fd_notify_backup = SAFE_DUP(fd_notify);
169 while (test_num < TST_TOTAL && fd_notify != -1) {
174 ret = read(fd_notify, event_buf + len,
176 if (fd_notify == -1)
181 fd_notify, EVENT_BUF_LEN);
214 SAFE_WRITE(1, fd_notify, &resp
    [all...]
fanotify04.c 57 static int fd_notify; variable
79 if (fanotify_mark(fd_notify, FAN_MARK_ADD | flag, FAN_OPEN, AT_FDCWD,
83 "'%s') %s", fd_notify, flagstr, file, expect_str_fail(expect));
87 "'%s') %s", fd_notify, flagstr, file, expect_str_pass(expect));
96 if (fanotify_mark(fd_notify, FAN_MARK_REMOVE | flag,
101 fd_notify, flagstr, file);
133 ret = SAFE_READ(0, fd_notify, event_buf + len,
169 ret = read(fd_notify, event_buf + len, EVENT_BUF_LEN - len);
179 tst_res(TFAIL | TERRNO, "read(%d, buf, %zu) failed", fd_notify,
208 if (fanotify_mark(fd_notify, FAN_MARK_ADD
    [all...]
fanotify01.c 55 static int fd, fd_notify; variable
67 if (fanotify_mark(fd_notify, FAN_MARK_ADD, FAN_ACCESS | FAN_MODIFY |
72 "failed", fd_notify, fname);
94 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN);
112 ret = SAFE_READ(0, fd_notify, event_buf + len,
121 if (fanotify_mark(fd_notify,
127 "AT_FDCWD, %s) failed", fd_notify, fname);
140 ret = SAFE_READ(0, fd_notify, event_buf + len,
163 ret = SAFE_READ(0, fd_notify, event_buf + len,
171 if (fanotify_mark(fd_notify,
    [all...]
fanotify08.c 44 static int fd_notify; variable
51 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF|fan_bit, O_RDONLY);
53 ret = SAFE_FCNTL(fd_notify, F_GETFD);
61 SAFE_CLOSE(fd_notify);
78 if (fd_notify > 0)
79 SAFE_CLOSE(fd_notify);
fanotify06.c 75 static int fd_notify[FANOTIFY_PRIORITIES][GROUPS_PER_PRIO]; variable
89 fd_notify[p][i] = SAFE_FANOTIFY_INIT(fanotify_prio[p] |
94 ret = fanotify_mark(fd_notify[p][i],
102 " '.') failed", fd_notify[p][i]);
107 ret = fanotify_mark(fd_notify[p][i],
118 fd_notify[p][i], fname);
130 if (fd_notify[p][i] && fd_notify[p][i] != -1) {
131 if (close(fd_notify[p][i]) == -1)
133 fd_notify[p][i])
    [all...]
fanotify02.c 55 static int fd, fd_notify; variable
67 if (fanotify_mark(fd_notify, FAN_MARK_ADD, FAN_ACCESS |
75 "failed", fd_notify);
97 ret = SAFE_READ(0, fd_notify, event_buf,
116 ret = SAFE_READ(0, fd_notify, event_buf + len,
123 if (fanotify_mark(fd_notify, FAN_MARK_REMOVE,
128 fd_notify);
149 ret = SAFE_READ(0, fd_notify, event_buf + len,
211 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF, O_RDONLY);
216 if (fd_notify > 0
    [all...]
fanotify05.c 48 static int fd, fd_notify; variable
70 len = read(fd_notify, &event, sizeof(event));
118 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF | FAN_NONBLOCK,
121 if (fanotify_mark(fd_notify, FAN_MARK_MOUNT | FAN_MARK_ADD, FAN_OPEN,
126 fd_notify);
132 if (fd_notify > 0)
133 SAFE_CLOSE(fd_notify);
fanotify07.c 59 static volatile int fd_notify; variable
94 close(fd_notify);
153 SAFE_READ(1, fd_notify, &event, sizeof(event));
172 SAFE_WRITE(1, fd_notify, &resp, sizeof(resp));
185 fd_notify = setup_instance();
205 SAFE_CLOSE(fd_notify);
222 if (fd_notify > 0)
223 SAFE_CLOSE(fd_notify);
  /external/ltp/testcases/kernel/syscalls/inotify/
inotify03.c 66 static int fd, fd_notify; variable
114 len = read(fd_notify, event_buf, EVENT_BUF_LEN);
117 "read(%d, buf, %zu) failed", fd_notify, EVENT_BUF_LEN);
153 ret = myinotify_rm_watch(fd_notify, wd);
157 fd_notify, wd);
160 fd_notify, wd);
210 fd_notify = myinotify_init();
212 if (fd_notify < 0) {
221 wd = myinotify_add_watch(fd_notify, fname, IN_ALL_EVENTS);
225 fd_notify, fname)
    [all...]
inotify05.c 58 static int fd, fd_notify; variable
93 len = read(fd_notify, event_buf, EVENT_BUF_LEN);
97 fd_notify, EVENT_BUF_LEN);
169 fd_notify = syscall(__NR_inotify_init1, O_NONBLOCK);
170 if (fd_notify < 0) {
180 wd = myinotify_add_watch(fd_notify, fname, IN_ALL_EVENTS);
184 fd_notify, fname);
193 if (fd_notify > 0 && myinotify_rm_watch(fd_notify, wd) == -1) {
195 fd_notify, wd)
    [all...]
inotify04.c 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)
90 "inotify_rm_watch(%d, %d) [1] failed", fd_notify,
93 if (reap_wd_file && myinotify_rm_watch(fd_notify, wd_file) == -1)
95 "inotify_rm_watch(%d, %d) [2] failed", fd_notify,
98 if (fd_notify > 0 && close(fd_notify))
99 tst_resm(TWARN, "close(%d) [1] failed", fd_notify);
119 fd_notify = myinotify_init();
120 if (fd_notify == -1)
    [all...]
inotify01.c 63 static int fd, fd_notify; variable
134 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) < 0) {
137 fd_notify, EVENT_BUF_LEN);
210 if ((fd_notify = myinotify_init()) < 0) {
220 if ((wd = myinotify_add_watch(fd_notify, fname, IN_ALL_EVENTS)) < 0) {
223 fd_notify, fname);
231 if (reap_wd && myinotify_rm_watch(fd_notify, wd) < 0) {
233 fd_notify, wd);
237 if (fd_notify > 0 && close(fd_notify))
    [all...]
inotify02.c 68 static int fd, fd_notify, reap_wd; variable
166 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) == -1) {
169 fd_notify, EVENT_BUF_LEN);
270 if ((fd_notify = myinotify_init()) < 0) {
280 if ((wd = myinotify_add_watch(fd_notify, ".", IN_ALL_EVENTS)) < 0) {
283 fd_notify);
291 if (reap_wd && myinotify_rm_watch(fd_notify, wd) < 0) {
293 "inotify_rm_watch (%d, %d) failed,", fd_notify, wd);
297 if (fd_notify > 0 && close(fd_notify))
    [all...]

Completed in 537 milliseconds