/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify01.c | 116 SAFE_READ(0, fd, buf, BUF_SIZE); in test_fanotify() 128 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in test_fanotify() 146 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify() 164 SAFE_READ(0, fd, buf, BUF_SIZE); in test_fanotify() 169 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify() 183 SAFE_READ(0, fd, buf, BUF_SIZE); in test_fanotify() 192 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify() 218 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify() 232 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
|
D | fanotify02.c | 73 ret = SAFE_READ(0, fd_notify, event_buf, in test01() 81 SAFE_READ(0, fd, buf, BUF_SIZE); in test01() 92 ret = SAFE_READ(0, fd_notify, event_buf + len, in test01() 120 ret = SAFE_READ(0, fd_notify, event_buf + len, in test01()
|
D | fanotify07.c | 64 SAFE_READ(0, fd, buf, BUF_SIZE); in generate_events() 132 SAFE_READ(1, fd_notify, &event, sizeof(event)); in loose_fanotify_events()
|
D | fanotify19.c | 111 SAFE_READ(0, fd, buf, BUF_SIZE); in generate_events() 194 len = SAFE_READ(0, fd_notify, event_buf + len, EVENT_BUF_LEN - len); in test_fanotify()
|
D | fanotify15.c | 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()
|
/third_party/ltp/lib/tests/ |
D | tst_safe_macros.c | 30 SAFE_READ(cleanup, 0, fd, buf, 9); in main() 32 SAFE_READ(cleanup, 1, fd, buf, 9); in main()
|
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/ |
D | epoll_wait01.c | 44 SAFE_READ(1, fds[0], read_buf, sizeof(read_buf)); in get_writesize() 169 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin() 216 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollio()
|
/third_party/ltp/testcases/kernel/syscalls/lseek/ |
D | lseek01.c | 43 SAFE_READ(0, fd, read_buf, sizeof(read_buf)); in verify_lseek() 60 SAFE_READ(1, fd, read_buf, tc->exp_size); in verify_lseek()
|
/third_party/ltp/testcases/kernel/syscalls/llseek/ |
D | llseek03.c | 83 SAFE_READ(1, fd, read_buf, 4); in verify_lseek64() 101 ret = SAFE_READ(0, fd, read_buf, tc->read); in verify_lseek64()
|
/third_party/ltp/testcases/kernel/syscalls/msync/ |
D | msync04.c | 33 SAFE_READ(1, pagemap_fd, &pagemap_entry, sizeof(pagemap_entry)); in get_dirty_bit() 41 SAFE_READ(1, pageflags_fd, &pageflag_entry, sizeof(pageflag_entry)); in get_dirty_bit()
|
/third_party/ltp/testcases/kernel/syscalls/writev/ |
D | writev07.c | 76 SAFE_READ(1, fd, tmp, BUFSIZE); in test_partially_valid_iovec() 103 SAFE_READ(1, fd, tmp, TST_RET); in test_partially_valid_iovec()
|
/third_party/ltp/testcases/network/can/filter-tests/ |
D | can_rcv_own_msgs.c | 45 SAFE_READ(1, s, &frame, sizeof(struct can_frame)); in test_sockets() 56 SAFE_READ(1, t, &frame, sizeof(struct can_frame)); in test_sockets()
|
/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
D | common.h | 73 r = SAFE_READ(0, fd, buff, sizeof(buff)); in io_read() 106 r = SAFE_READ(0, fd, buff, sizeof(buff)); in io_read_eof()
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise08.c | 118 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence() 145 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl36.c | 170 SAFE_READ(1, fd, buf, pa->length); in fn_ofd_r() 230 SAFE_READ(1, fd, buf, pa->length); in fn_posix_r() 335 SAFE_READ(1, fd, buf, write_size/4); in test_fn()
|
/third_party/ltp/testcases/kernel/syscalls/bind/ |
D | bind04.c | 93 SAFE_READ(1, sock, &request, sizeof(request)); in peer_thread() 144 size = SAFE_READ(0, sock, buffer, BUFFER_SIZE - 1); in test_bind()
|
D | bind05.c | 103 SAFE_READ(1, sock, &request, sizeof(request)); in peer_thread() 162 size = SAFE_READ(0, sock, buffer, BUFFER_SIZE - 1); in test_bind()
|
/third_party/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe01.c | 32 rd_size = SAFE_READ(0, fds[0], rdbuf, sizeof(rdbuf)); in verify_pipe()
|
/third_party/ltp/testcases/kernel/syscalls/exit/ |
D | exit02.c | 34 len = SAFE_READ(0, fd, buf, sizeof(buf)); in check_file()
|
/third_party/ltp/testcases/kernel/syscalls/fork/ |
D | fork08.c | 35 SAFE_READ(1, fd, &buf, 1); in run()
|
D | fork07.c | 37 SAFE_READ(1, fd, &buf, 1); in run()
|
/third_party/ltp/testcases/kernel/syscalls/write/ |
D | write03.c | 46 SAFE_READ(0, fd, rbuf, 100); in verify_write()
|
/third_party/ltp/testcases/cve/ |
D | cve-2016-7042.c | 44 SAFE_READ(0, fd, buf, BUFSIZ); in do_test()
|
/third_party/ltp/testcases/kernel/pty/ |
D | pty02.c | 51 SAFE_READ(1, pts, &c, 1); in do_test()
|
/third_party/ltp/lib/ |
D | tst_lockdown.c | 40 SAFE_READ(1, fd, data, 5); in tst_secureboot_enabled()
|