Home
last modified time | relevance | path

Searched refs:SAFE_WRITE (Results 1 – 25 of 130) sorted by relevance

123456

/third_party/ltp/testcases/cve/
Dcve-2014-0196.c73 SAFE_WRITE(0, slave_fd, buf, BUFLEN - 1); in overwrite_thread_fn()
74 SAFE_WRITE(0, slave_fd, buf, BUFLEN - 1); in overwrite_thread_fn()
75 SAFE_WRITE(0, slave_fd, buf, BUFLEN); in overwrite_thread_fn()
98 SAFE_WRITE(0, slave_fd, buf, 1); in run()
106 SAFE_WRITE(0, master_fd, "A", 1); in run()
/third_party/ltp/lib/tests/
Dtst_safe_macros.c34 SAFE_WRITE(cleanup, 0, -1, buf, 9); in main()
35 SAFE_WRITE(NULL, 0, fd, buf, 9); in main()
36 SAFE_WRITE(NULL, 1, fd, buf, 9); in main()
/third_party/ltp/testcases/kernel/syscalls/lseek/
Dlseek07.c57 SAFE_WRITE(1, *tc->fd, WR_STR2, sizeof(WR_STR2) - 1); in verify_lseek()
79 SAFE_WRITE(1, fd1, WR_STR1, sizeof(WR_STR1) - 1); in setup()
80 SAFE_WRITE(1, fd2, WR_STR1, sizeof(WR_STR1) - 1); in setup()
/third_party/ltp/testcases/kernel/containers/userns/
Duserns02.c95 SAFE_WRITE(cleanup, 1, fd, content, strlen(content)); in main()
101 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main()
108 SAFE_WRITE(cleanup, 1, fd, content, strlen(content)); in main()
Duserns06.c140 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main()
145 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main()
Duserns03.c193 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main()
218 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main()
/third_party/ltp/testcases/network/can/filter-tests/
Dcan_filter.c105 SAFE_WRITE(1, s, &frame, sizeof(frame)); in run()
108 SAFE_WRITE(1, s, &frame, sizeof(frame)); in run()
111 SAFE_WRITE(1, s, &frame, sizeof(frame)); in run()
114 SAFE_WRITE(1, s, &frame, sizeof(frame)); in run()
/third_party/ltp/testcases/network/nfs/nfs_stress/
Dnfs05_make_tree.c148 SAFE_WRITE(1, fd, make_buf_n, sizeof(make_buf_n) - 1); in thread_fn()
150 SAFE_WRITE(1, fd, make_buf, sizeof(make_buf) - 1); in thread_fn()
163 SAFE_WRITE(1, fd, prog_buf, sizeof(prog_buf) - 1); in thread_fn()
/third_party/ltp/testcases/kernel/syscalls/mmap/
Dmmap17.c64 SAFE_WRITE(1, fd_file1, str, str_len); in test_mmap()
68 SAFE_WRITE(1, fd_file2, str, str_len); in test_mmap()
Dmmap19.c75 SAFE_WRITE(1, f1, str1, strlen(str1)); in setup()
76 SAFE_WRITE(1, f2, str2, strlen(str2)); in setup()
/third_party/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile08.c55 SAFE_WRITE(1, in_fd, TEST_MSG_IN, strlen(TEST_MSG_IN)); in setup()
60 SAFE_WRITE(1, out_fd, TEST_MSG_OUT, strlen(TEST_MSG_OUT)); in setup()
/third_party/ltp/testcases/kernel/syscalls/pipe/
Dpipe02.c28 SAFE_WRITE(1, fd[1], wrbuf, SIZE); in do_child()
32 SAFE_WRITE(1, fd[1], wrbuf, SIZE); in do_child()
Dpipe12.c47 SAFE_WRITE(1, fds[1], wrbuf, max_size); in verify_pipe()
58 SAFE_WRITE(1, fds[1], "x", tc->offset); in verify_pipe()
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/
Depoll_wait01.c36 write_size += SAFE_WRITE(0, fds[1], buf, sizeof(buf)); in get_writesize()
139 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollin()
179 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollio()
/third_party/ltp/testcases/kernel/syscalls/pipe2/
Dpipe2_04.c46 SAFE_WRITE(1, fds[1], "x", 1); in test_pipe2()
87 SAFE_WRITE(1, fds[1], write_buffer, pipe_size); in setup()
/third_party/ltp/testcases/kernel/syscalls/write/
Dwrite06.c41 SAFE_WRITE(1, fd, write_buf[0], K2); in verify_write()
53 SAFE_WRITE(1, fd, write_buf[1], K1); in verify_write()
/third_party/ltp/testcases/kernel/syscalls/preadv/
Dpreadv01.c91 SAFE_WRITE(1, fd, buf, sizeof(buf)); in setup()
94 SAFE_WRITE(1, fd, buf, sizeof(buf)); in setup()
Dpreadv03.c111 SAFE_WRITE(1, fd, pop_buf, blksz); in setup()
114 SAFE_WRITE(1, fd, pop_buf, blksz); in setup()
/third_party/ltp/testcases/kernel/syscalls/dup2/
Ddup203.c43 SAFE_WRITE(1, fd0, filename0, strlen(filename0)); in run()
47 SAFE_WRITE(1, fd1, filename1, strlen(filename1)); in run()
/third_party/ltp/testcases/kernel/syscalls/fsync/
Dfsync02.c51 SAFE_WRITE(1, fd, pbuf, BUF_SIZE); in setup()
72 SAFE_WRITE(1, fd, pbuf, BUF_SIZE); in run()
/third_party/ltp/testcases/kernel/syscalls/preadv2/
Dpreadv201.c101 SAFE_WRITE(1, fd, buf, sizeof(buf)); in setup()
104 SAFE_WRITE(1, fd, buf, sizeof(buf)); in setup()
/third_party/ltp/testcases/kernel/io/direct_io/
Ddiotest1.c140 SAFE_WRITE(cleanup, 1, fd1, buf, bufsize); in main()
150 SAFE_WRITE(cleanup, 1, fd2, buf, n); in main()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl08.c58 SAFE_WRITE(1, fd_src, tc->src_fcontents, strlen(tc->src_fcontents)); in verify_ioctl()
59 SAFE_WRITE(1, fd_dest, tc->dest_fcontents, strlen(tc->dest_fcontents)); in verify_ioctl()
/third_party/ltp/testcases/kernel/syscalls/inotify/
Dinotify05.c55 SAFE_WRITE(1, fd, buf, BUF_SIZE); in verify_inotify()
128 SAFE_WRITE(1, fd, buf, BUF_SIZE); in setup()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify01.c135 SAFE_WRITE(1, fd, fname, strlen(fname)); in test_fanotify()
175 SAFE_WRITE(1, fd, fname, 1); in test_fanotify()
207 SAFE_WRITE(1, fd, fname, 1); in test_fanotify()

123456