/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify02.c | 31 #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 D | fanotify01.c | 31 #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 D | fanotify23.c | 31 #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 D | fanotify06.c | 50 #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 D | fanotify15.c | 39 #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 D | fanotify03.c | 35 #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 D | fanotify19.c | 33 #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 D | fanotify12.c | 32 #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 D | fanotify09.c | 57 #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 D | fanotify16.c | 42 #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 D | fanotify10.c | 55 #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 D | inotify12.c | 34 #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 D | inotify08.c | 47 #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 D | inotify03.c | 35 #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 D | inotify01.c | 31 #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 D | inotify05.c | 30 #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 D | inotify11.c | 40 #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 D | inotify07.c | 46 #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 D | inotify04.c | 34 #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 D | inotify02.c | 37 #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 D | inotify10.c | 32 #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()
|