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

  /external/ltp/testcases/kernel/syscalls/fanotify/
fanotify08.c 26 static int fd_notify; variable
33 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF|fan_bit, O_RDONLY);
35 ret = SAFE_FCNTL(fd_notify, F_GETFD);
43 SAFE_CLOSE(fd_notify);
60 if (fd_notify > 0)
61 SAFE_CLOSE(fd_notify);
fanotify05.c 34 static int fd, fd_notify; variable
56 len = read(fd_notify, &event, sizeof(event));
104 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF | FAN_NONBLOCK,
107 if (fanotify_mark(fd_notify, FAN_MARK_MOUNT | FAN_MARK_ADD, FAN_OPEN,
112 fd_notify);
118 if (fd_notify > 0)
119 SAFE_CLOSE(fd_notify);
fanotify01.c 55 static int fd_notify; variable
70 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF, O_RDONLY);
72 if (fanotify_mark(fd_notify, FAN_MARK_ADD | mark->flag,
83 "failed", fd_notify, mark->name, fname);
105 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN);
123 ret = SAFE_READ(0, fd_notify, event_buf + len,
132 if (fanotify_mark(fd_notify,
138 "failed", fd_notify, mark->name, fname);
151 ret = SAFE_READ(0, fd_notify, event_buf + len,
174 ret = SAFE_READ(0, fd_notify, event_buf + len
    [all...]
fanotify11.c 61 int fd_notify; local
68 fd_notify = fanotify_init(tcases[i], 0);
69 if (fd_notify < 0) {
79 ret = fanotify_mark(fd_notify, FAN_MARK_ADD,
86 SAFE_READ(0, fd_notify, &event, sizeof(struct fanotify_event_metadata));
97 SAFE_CLOSE(fd_notify);
fanotify04.c 39 static int fd_notify; variable
61 if (fanotify_mark(fd_notify, FAN_MARK_ADD | flag, FAN_OPEN, AT_FDCWD,
65 "AT_FDCWD, '%s') %s", fd_notify, flagstr, file,
70 "AT_FDCWD, '%s') %s", fd_notify, flagstr, file,
80 if (fanotify_mark(fd_notify, FAN_MARK_REMOVE | flag,
85 fd_notify, flagstr, file);
117 ret = SAFE_READ(0, fd_notify, event_buf + len,
154 ret = read(fd_notify, event_buf + len, EVENT_BUF_LEN - len);
165 tst_res(TFAIL | TERRNO, "read(%d, buf, %zu) failed", fd_notify,
194 if (fanotify_mark(fd_notify, FAN_MARK_ADD
    [all...]
fanotify07.c 41 static volatile int fd_notify; variable
76 close(fd_notify);
135 SAFE_READ(1, fd_notify, &event, sizeof(event));
154 SAFE_WRITE(1, fd_notify, &resp, sizeof(resp));
167 fd_notify = setup_instance();
187 SAFE_CLOSE(fd_notify);
204 if (fd_notify > 0)
205 SAFE_CLOSE(fd_notify);
fanotify02.c 37 static int fd, fd_notify; variable
49 if (fanotify_mark(fd_notify, FAN_MARK_ADD, FAN_ACCESS |
57 "failed", fd_notify);
79 ret = SAFE_READ(0, fd_notify, event_buf,
98 ret = SAFE_READ(0, fd_notify, event_buf + len,
105 if (fanotify_mark(fd_notify, FAN_MARK_REMOVE,
110 fd_notify);
131 ret = SAFE_READ(0, fd_notify, event_buf + len,
194 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF, O_RDONLY);
199 if (fd_notify > 0
    [all...]
fanotify03.c 41 static volatile int fd_notify; variable
95 close(fd_notify);
96 fd_notify = -1;
115 close(fd_notify);
146 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_CONTENT, O_RDONLY);
148 if (fanotify_mark(fd_notify, FAN_MARK_ADD | mark->flag,
164 fd_notify, mark->name, fname);
199 while (test_num < TST_TOTAL && fd_notify != -1) {
204 ret = read(fd_notify, event_buf + len,
206 if (fd_notify == -1
    [all...]
fanotify06.c 53 static int fd_notify[FANOTIFY_PRIORITIES][GROUPS_PER_PRIO]; variable
67 fd_notify[p][i] = SAFE_FANOTIFY_INIT(fanotify_prio[p] |
72 ret = fanotify_mark(fd_notify[p][i],
80 " '.') failed", fd_notify[p][i]);
85 ret = fanotify_mark(fd_notify[p][i],
96 fd_notify[p][i], fname);
108 if (fd_notify[p][i] > 0)
109 SAFE_CLOSE(fd_notify[p][i]);
148 ret = read(fd_notify[0][i], event_buf, EVENT_BUF_LEN);
176 ret = read(fd_notify[p][i], event_buf, EVENT_BUF_LEN)
    [all...]
fanotify09.c 49 static int fd_notify[NUM_GROUPS]; variable
80 fd_notify[i] = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF |
86 ret = fanotify_mark(fd_notify[i],
94 " '.') failed", fd_notify[i],
104 ret = fanotify_mark(fd_notify[i], FAN_MARK_ADD,
111 fd_notify[i],
123 if (fd_notify[i] > 0)
124 SAFE_CLOSE(fd_notify[i]);
180 ret = read(fd_notify[0], event_buf, EVENT_BUF_LEN);
216 ret = read(fd_notify[i], event_buf, FAN_EVENT_METADATA_LEN)
    [all...]
fanotify10.c 51 static int fd_notify[FANOTIFY_PRIORITIES][GROUPS_PER_PRIO]; variable
149 fd_notify[p][i] = SAFE_FANOTIFY_INIT(fanotify_prio[p] |
154 ret = fanotify_mark(fd_notify[p][i],
168 fd_notify[p][i], mark->name,
174 ret = fanotify_mark(fd_notify[p][i],
186 fd_notify[p][i], ignore_mark->name,
200 if (fd_notify[p][i] > 0)
201 SAFE_CLOSE(fd_notify[p][i]);
253 ret = read(fd_notify[p][i], event_buf, EVENT_BUF_LEN);
285 ret = read(fd_notify[p][i], event_buf, EVENT_BUF_LEN)
    [all...]
  /external/ltp/testcases/kernel/syscalls/inotify/
inotify05.c 50 static int fd, fd_notify; variable
80 len = read(fd_notify, event_buf, EVENT_BUF_LEN);
84 fd_notify, EVENT_BUF_LEN);
146 fd_notify = myinotify_init1(O_NONBLOCK);
147 if (fd_notify < 0) {
157 wd = myinotify_add_watch(fd_notify, fname, IN_ALL_EVENTS);
161 fd_notify, fname);
170 if (fd_notify > 0 && myinotify_rm_watch(fd_notify, wd) == -1) {
172 fd_notify, wd)
    [all...]
inotify04.c 73 int fd_notify, reap_wd_file, reap_wd_dir, wd_dir, wd_file; variable
82 if (reap_wd_dir && myinotify_rm_watch(fd_notify, wd_dir) == -1)
84 "inotify_rm_watch(%d, %d) [1] failed", fd_notify,
87 if (reap_wd_file && myinotify_rm_watch(fd_notify, wd_file) == -1)
89 "inotify_rm_watch(%d, %d) [2] failed", fd_notify,
92 if (fd_notify > 0)
93 SAFE_CLOSE(fd_notify);
98 fd_notify = myinotify_init();
99 if (fd_notify == -1) {
118 wd_dir = myinotify_add_watch(fd_notify, TEST_DIR, IN_ALL_EVENTS)
    [all...]
inotify03.c 58 static int fd, fd_notify; variable
80 wd = myinotify_add_watch(fd_notify, fname, IN_ALL_EVENTS);
84 fd_notify, fname);
104 len = read(fd_notify, event_buf, EVENT_BUF_LEN);
107 "read(%d, buf, %zu) failed", fd_notify, EVENT_BUF_LEN);
143 ret = myinotify_rm_watch(fd_notify, wd);
147 fd_notify, wd);
150 fd_notify, wd);
174 fd_notify = myinotify_init();
175 if (fd_notify < 0)
    [all...]
inotify07.c 68 static int fd_notify, reap_wd; variable
111 int len = read(fd_notify, event_buf, EVENT_BUF_LEN);
115 fd_notify, EVENT_BUF_LEN);
186 fd_notify = myinotify_init1(O_NONBLOCK);
187 if (fd_notify < 0) {
198 if ((wd = myinotify_add_watch(fd_notify, DIR_PATH, IN_ALL_EVENTS)) < 0) {
201 fd_notify);
221 if (reap_wd && myinotify_rm_watch(fd_notify, wd) < 0) {
223 "inotify_rm_watch (%d, %d) failed,", fd_notify, wd);
227 if (fd_notify > 0
    [all...]
inotify08.c 70 static int fd_notify, reap_wd; variable
110 int len = read(fd_notify, event_buf, EVENT_BUF_LEN);
114 fd_notify, EVENT_BUF_LEN);
178 fd_notify = myinotify_init1(O_NONBLOCK);
179 if (fd_notify < 0) {
190 if ((wd = myinotify_add_watch(fd_notify, FILE_PATH,
195 fd_notify);
217 if (reap_wd && myinotify_rm_watch(fd_notify, wd) < 0) {
219 "inotify_rm_watch (%d, %d) failed,", fd_notify, wd);
223 if (fd_notify > 0
    [all...]
inotify01.c 56 static int fd, fd_notify; variable
114 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) < 0) {
117 fd_notify, EVENT_BUF_LEN);
170 if ((fd_notify = myinotify_init()) < 0) {
180 if ((wd = myinotify_add_watch(fd_notify, fname, IN_ALL_EVENTS)) < 0) {
183 fd_notify, fname);
191 if (reap_wd && myinotify_rm_watch(fd_notify, wd) < 0) {
193 fd_notify, wd);
196 if (fd_notify > 0)
197 SAFE_CLOSE(fd_notify);
    [all...]
inotify02.c 60 static int fd, fd_notify, reap_wd; variable
144 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) == -1) {
147 fd_notify, EVENT_BUF_LEN);
237 if ((fd_notify = myinotify_init()) < 0) {
247 if ((wd = myinotify_add_watch(fd_notify, ".", IN_ALL_EVENTS)) < 0) {
250 fd_notify);
257 if (reap_wd && myinotify_rm_watch(fd_notify, wd) < 0) {
259 "inotify_rm_watch (%d, %d) failed,", fd_notify, wd);
263 if (fd_notify > 0)
264 SAFE_CLOSE(fd_notify);
    [all...]

Completed in 433 milliseconds