Home
last modified time | relevance | path

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

1234

/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify01.c116 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()
Dfanotify02.c73 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()
Dfanotify07.c64 SAFE_READ(0, fd, buf, BUF_SIZE); in generate_events()
132 SAFE_READ(1, fd_notify, &event, sizeof(event)); in loose_fanotify_events()
Dfanotify19.c111 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()
Dfanotify15.c140 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/
Dtst_safe_macros.c30 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/
Depoll_wait01.c44 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/
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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/ltp/testcases/network/can/filter-tests/
Dcan_rcv_own_msgs.c45 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/
Dcommon.h73 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/
Dmadvise08.c118 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/
Dfcntl36.c170 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/
Dbind04.c93 SAFE_READ(1, sock, &request, sizeof(request)); in peer_thread()
144 size = SAFE_READ(0, sock, buffer, BUFFER_SIZE - 1); in test_bind()
Dbind05.c103 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/
Dpipe01.c32 rd_size = SAFE_READ(0, fds[0], rdbuf, sizeof(rdbuf)); in verify_pipe()
/third_party/ltp/testcases/kernel/syscalls/exit/
Dexit02.c34 len = SAFE_READ(0, fd, buf, sizeof(buf)); in check_file()
/third_party/ltp/testcases/kernel/syscalls/fork/
Dfork08.c35 SAFE_READ(1, fd, &buf, 1); in run()
Dfork07.c37 SAFE_READ(1, fd, &buf, 1); in run()
/third_party/ltp/testcases/kernel/syscalls/write/
Dwrite03.c46 SAFE_READ(0, fd, rbuf, 100); in verify_write()
/third_party/ltp/testcases/cve/
Dcve-2016-7042.c44 SAFE_READ(0, fd, buf, BUFSIZ); in do_test()
/third_party/ltp/testcases/kernel/pty/
Dpty02.c51 SAFE_READ(1, pts, &c, 1); in do_test()
/third_party/ltp/lib/
Dtst_lockdown.c40 SAFE_READ(1, fd, data, 5); in tst_secureboot_enabled()

1234