Home
last modified time | relevance | path

Searched refs:EVENT_BUF_LEN (Results 1 - 21 of 21) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify02.c31 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE) macro
42 static char event_buf[EVENT_BUF_LEN];
74 EVENT_BUF_LEN); in test01()
93 EVENT_BUF_LEN - len); in test01()
121 EVENT_BUF_LEN - len); in test01()
H A Dfanotify01.c31 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE) macro
83 static char event_buf[EVENT_BUF_LEN];
128 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in test_fanotify()
147 EVENT_BUF_LEN - len); in test_fanotify()
170 EVENT_BUF_LEN - len); in test_fanotify()
193 EVENT_BUF_LEN - len); in test_fanotify()
219 EVENT_BUF_LEN - len); in test_fanotify()
233 EVENT_BUF_LEN - len); in test_fanotify()
H A Dfanotify23.c31 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE) macro
44 static char event_buf[EVENT_BUF_LEN];
138 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in test_fanotify()
154 ret = read(fd_notify, event_buf + len, EVENT_BUF_LEN - len); in test_fanotify()
181 ret = SAFE_READ(0, fd_notify, event_buf + len, EVENT_BUF_LEN - len); in test_fanotify()
H A Dfanotify06.c50 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE) macro
65 static char event_buf[EVENT_BUF_LEN];
177 ret = read(fd_notify[0][i], event_buf, EVENT_BUF_LEN); in test_fanotify()
190 (int)EVENT_BUF_LEN); in test_fanotify()
205 ret = read(fd_notify[p][i], event_buf, EVENT_BUF_LEN); in test_fanotify()
H A Dfanotify15.c39 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE * 2) macro
55 static char events_buf[EVENT_BUF_LEN];
140 len = SAFE_READ(0, fanotify_fd, events_buf, EVENT_BUF_LEN); in do_test()
178 len += SAFE_READ(0, fanotify_fd, events_buf + len, EVENT_BUF_LEN - len); in do_test()
H A Dfanotify03.c35 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE) macro
51 static char event_buf[EVENT_BUF_LEN];
254 EVENT_BUF_LEN - len); in test_fanotify()
260 fd_notify, EVENT_BUF_LEN); in test_fanotify()
H A Dfanotify19.c33 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE) macro
44 static struct fanotify_event_metadata event_buf[EVENT_BUF_LEN];
195 len = SAFE_READ(0, fd_notify, event_buf + len, EVENT_BUF_LEN - len); in test_fanotify()
H A Dfanotify12.c32 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE) macro
42 static char event_buf[EVENT_BUF_LEN];
181 len = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in do_test()
H A Dfanotify09.c57 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE) macro
67 static char event_buf[EVENT_BUF_LEN];
410 ret = read(fd_notify[0], event_buf, EVENT_BUF_LEN); in test_fanotify()
453 ret = read(fd_notify[i], event_buf, EVENT_BUF_LEN); in test_fanotify()
H A Dfanotify16.c42 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE * 3) macro
63 static char event_buf[EVENT_BUF_LEN];
348 len += SAFE_READ(0, fd_notify, event_buf + len, EVENT_BUF_LEN - len); in do_test()
476 len += SAFE_READ(0, fd_notify, event_buf + len, EVENT_BUF_LEN - len); in do_test()
H A Dfanotify10.c55 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE) macro
72 static char event_buf[EVENT_BUF_LEN];
741 ret = read(fd, event_buf, EVENT_BUF_LEN); in fetch_event()
/third_party/ltp/testcases/kernel/syscalls/inotify/
H A Dinotify12.c34 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16)) macro
38 static char event_buf[EVENT_BUF_LEN];
97 len = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
121 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
H A Dinotify08.c47 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16)) macro
62 static char event_buf[EVENT_BUF_LEN];
87 int len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
91 fd_notify, EVENT_BUF_LEN); in verify_inotify()
H A Dinotify03.c35 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16)) macro
44 static char event_buf[EVENT_BUF_LEN];
80 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
83 "read(%d, buf, %zu) failed", fd_notify, EVENT_BUF_LEN); in verify_inotify()
H A Dinotify01.c31 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16)) macro
42 static char event_buf[EVENT_BUF_LEN];
89 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) < 0) { in verify_inotify()
92 fd_notify, EVENT_BUF_LEN); in verify_inotify()
H A Dinotify05.c30 #define EVENT_BUF_LEN (EVENT_SIZE * 16) macro
39 static char event_buf[EVENT_BUF_LEN];
65 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
69 fd_notify, EVENT_BUF_LEN); in verify_inotify()
H A Dinotify11.c40 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16)) macro
44 static char event_buf[EVENT_BUF_LEN];
77 len = SAFE_READ(0, inotify_fd, event_buf, EVENT_BUF_LEN); in verify_inotify()
H A Dinotify07.c46 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16)) macro
64 static char event_buf[EVENT_BUF_LEN];
89 int len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
93 fd_notify, EVENT_BUF_LEN); in verify_inotify()
H A Dinotify04.c34 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16)) macro
49 char event_buf[EVENT_BUF_LEN];
119 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
H A Dinotify02.c37 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16)) macro
53 static char event_buf[EVENT_BUF_LEN];
125 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) == -1) { in verify_inotify()
128 fd_notify, EVENT_BUF_LEN); in verify_inotify()
H A Dinotify10.c32 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16)) macro
79 char event_buf[EVENT_BUF_LEN];
145 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()

Completed in 9 milliseconds