Home
last modified time | relevance | path

Searched refs:SAFE_READ (Results 1 – 25 of 57) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify01.c125 SAFE_READ(0, fd, buf, BUF_SIZE); in test_fanotify()
137 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in test_fanotify()
155 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
178 SAFE_READ(0, fd, buf, BUF_SIZE); in test_fanotify()
183 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
197 SAFE_READ(0, fd, buf, BUF_SIZE); in test_fanotify()
206 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
238 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
258 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
Dfanotify02.c79 ret = SAFE_READ(0, fd_notify, event_buf, in test01()
87 SAFE_READ(0, fd, buf, BUF_SIZE); in test01()
98 ret = SAFE_READ(0, fd_notify, event_buf + len, in test01()
131 ret = SAFE_READ(0, fd_notify, event_buf + len, in test01()
Dfanotify11.c86 SAFE_READ(0, fd_notify, &event, sizeof(struct fanotify_event_metadata)); in test01()
/external/ltp/lib/tests/
Dtst_safe_macros.c30 SAFE_READ(cleanup, 0, fd, buf, 9); in main()
32 SAFE_READ(cleanup, 1, fd, buf, 9); in main()
/external/ltp/testcases/kernel/syscalls/epoll_wait/
Depoll_wait01.c42 SAFE_READ(1, fds[0], read_buf, sizeof(read_buf)); in get_writesize()
166 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin()
213 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollio()
/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek01.c43 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()
Dlseek07.c63 SAFE_READ(1, *tc->fd, read_buf, tc->exp_size); in verify_lseek()
/external/ltp/testcases/kernel/syscalls/llseek/
Dllseek03.c83 SAFE_READ(1, fd, read_buf, 4); in verify_lseek64()
101 ret = SAFE_READ(0, fd, read_buf, tc->read); in verify_lseek64()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync04.c33 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()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev07.c76 SAFE_READ(1, fd, tmp, BUFSIZE); in test_partially_valid_iovec()
103 SAFE_READ(1, fd, tmp, TST_RET); in test_partially_valid_iovec()
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise08.c123 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
150 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl36.c171 SAFE_READ(1, fd, buf, pa->length); in fn_ofd_r()
231 SAFE_READ(1, fd, buf, pa->length); in fn_posix_r()
336 SAFE_READ(1, fd, buf, write_size/4); in test_fn()
/external/ltp/testcases/kernel/syscalls/pipe/
Dpipe01.c32 rd_size = SAFE_READ(0, fds[0], rdbuf, sizeof(rdbuf)); in verify_pipe()
Dpipe02.c66 SAFE_READ(1, fd[0], rdbuf, SIZE); in verify_pipe()
Dpipe11.c33 nread = SAFE_READ(0, fds[0], rbuf, sizeof(rbuf)); in do_child()
/external/ltp/testcases/kernel/syscalls/exit/
Dexit02.c34 len = SAFE_READ(0, fd, buf, sizeof(buf)); in check_file()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite03.c46 SAFE_READ(0, fd, rbuf, 100); in verify_write()
/external/ltp/testcases/kernel/pty/
Dpty02.c49 SAFE_READ(1, pts, &c, 1); in do_test()
/external/ltp/testcases/cve/
Dcve-2016-7042.c44 SAFE_READ(0, fd, buf, BUFSIZ); in do_test()
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c72 SAFE_READ(1, fildes[0], read_buf, sizeof(write_buf)); in verify_pollin()
/external/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate01.c49 SAFE_READ(0, fd, buf, sizeof(buf)); in check_and_report()
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice04.c64 SAFE_READ(1, pp2[0], arr_out + num_len_data - i, ret); in pipe_pipe()
Dsplice01.c38 SAFE_READ(1, fd_out, splicebuffer, TEST_BLOCK_SIZE); in check_file()
/external/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice01.c35 SAFE_READ(1, fd_out, vmsplicebuffer, TEST_BLOCK_SIZE); in check_file()
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap12.c73 SAFE_READ(1, pm, &pagemap, sizeof(uint64_t)); in page_check()

123