Home
last modified time | relevance | path

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

12

/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify01.c93 SAFE_READ(0, fd, buf, BUF_SIZE); in test_fanotify()
105 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in test_fanotify()
123 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
146 SAFE_READ(0, fd, buf, BUF_SIZE); in test_fanotify()
151 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
165 SAFE_READ(0, fd, buf, BUF_SIZE); in test_fanotify()
174 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
206 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
226 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/testcases/kernel/syscalls/llseek/
Dllseek03.c113 SAFE_READ(cleanup, 1, fd, read_buf, 4); in testfunc_seekcur()
130 SAFE_READ(cleanup, 1, fd, read_buf, 3); in testfunc_seekcur()
165 nread = SAFE_READ(cleanup, 0, fd, read_buf, file_size); in testfunc_seekend()
/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.c54 SAFE_READ(1, fds[0], read_buf, sizeof(read_buf)); in get_writesize()
178 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin()
225 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollio()
/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek01.c55 SAFE_READ(0, fd, read_buf, sizeof(read_buf)); in verify_lseek()
72 SAFE_READ(1, fd, read_buf, tc->exp_size); in verify_lseek()
Dlseek07.c75 SAFE_READ(1, *tc->fd, read_buf, tc->exp_size); in verify_lseek()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync04.c45 SAFE_READ(1, pagemap_fd, &pagemap_entry, sizeof(pagemap_entry)); in get_dirty_bit()
53 SAFE_READ(1, pageflags_fd, &pageflag_entry, sizeof(pageflag_entry)); in get_dirty_bit()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev07.c85 SAFE_READ(1, fd, tmp, BUFSIZE); in test_partially_valid_iovec()
112 SAFE_READ(1, fd, tmp, TST_RET); in test_partially_valid_iovec()
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise08.c139 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
166 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl36.c186 SAFE_READ(1, fd, buf, pa->length); in fn_ofd_r()
246 SAFE_READ(1, fd, buf, pa->length); in fn_posix_r()
351 SAFE_READ(1, fd, buf, write_size/4); in test_fn()
/external/ltp/testcases/kernel/syscalls/pipe/
Dpipe01.c44 rd_size = SAFE_READ(0, fds[0], rdbuf, sizeof(rdbuf)); in verify_pipe()
Dpipe02.c78 SAFE_READ(1, fd[0], rdbuf, SIZE); in verify_pipe()
Dpipe11.c46 nread = SAFE_READ(0, fds[0], rbuf, sizeof(rbuf)); in do_child()
/external/ltp/testcases/kernel/syscalls/exit/
Dexit02.c47 len = SAFE_READ(0, fd, buf, sizeof(buf)); in check_file()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite03.c59 SAFE_READ(0, fd, rbuf, 100); in verify_write()
/external/ltp/testcases/cve/
Dcve-2016-7042.c56 SAFE_READ(0, fd, buf, BUFSIZ); in do_test()
/external/ltp/testcases/kernel/pty/
Dpty02.c61 SAFE_READ(1, pts, &c, 1); in do_test()
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c85 SAFE_READ(1, fildes[0], read_buf, sizeof(write_buf)); in verify_pollin()
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice01.c51 SAFE_READ(1, fd_out, splicebuffer, TEST_BLOCK_SIZE); in check_file()
Dsplice04.c81 SAFE_READ(1, pp2[0], arr_out + num_len_data - i, ret); in pipe_pipe()
/external/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice01.c54 SAFE_READ(1, fd_out, vmsplicebuffer, TEST_BLOCK_SIZE); in check_file()
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap12.c86 SAFE_READ(1, pm, &pagemap, sizeof(uint64_t)); in page_check()
/external/ltp/testcases/kernel/syscalls/tee/
Dtee01.c54 SAFE_READ(1, fd_out, teebuffer, TEST_BLOCK_SIZE); in check_file()

12