Home
last modified time | relevance | path

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

1234

/external/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()
/external/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()
/external/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()
/external/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()
/external/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()
/external/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()
Dpipe01.c31 wr_size = SAFE_WRITE(1, fds[1], wrbuf, sizeof(wrbuf)); in verify_pipe()
/external/ltp/testcases/kernel/syscalls/epoll_wait/
Depoll_wait01.c34 write_size += SAFE_WRITE(0, fds[1], buf, sizeof(buf)); in get_writesize()
136 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollin()
176 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollio()
/external/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()
/external/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()
/external/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()
/external/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()
/external/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()
/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify01.c144 SAFE_WRITE(1, fd, fname, strlen(fname)); in test_fanotify()
189 SAFE_WRITE(1, fd, fname, 1); in test_fanotify()
227 SAFE_WRITE(1, fd, fname, 1); in test_fanotify()
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat02.c130 SAFE_WRITE(cleanup, 1, TEST_RETURN, STR, sizeof(STR) - 1); in testfunc_append()
206 SAFE_WRITE(cleanup, 1, fd, STR, sizeof(STR) - 1); in testfunc_largefile()
/external/ltp/testcases/kernel/mem/mtest06/
Dmmap1.c185 SAFE_WRITE(1, fd, "a", 1); in mkfile()
186 SAFE_WRITE(1, fd, "\0", 1); in mkfile()
/external/ltp/testcases/kernel/syscalls/open/
Dopen12.c132 SAFE_WRITE(cleanup, 1, TEST_RETURN, TEST_FILE, sizeof(TEST_FILE)); in test_append()
246 SAFE_WRITE(cleanup, 1, fd, LARGE_FILE, sizeof(LARGE_FILE)); in test_largefile()
/external/ltp/testcases/kernel/crypto/
Daf_alg05.c33 SAFE_WRITE(1, reqfd, buffer, 15); in run()
/external/ltp/testcases/kernel/input/
Dinput_helper.c178 SAFE_WRITE(NULL, 1, fd, &ev, sizeof(ev)); in send_event()
201 SAFE_WRITE(NULL, 1, fd, &uidev, sizeof(uidev)); in create_device()
/external/ltp/testcases/kernel/syscalls/read/
Dread01.c31 SAFE_WRITE(1, fd, buf, SIZE); in setup()
/external/ltp/testcases/kernel/syscalls/fsync/
Dfsync01.c23 SAFE_WRITE(1, fd, BUF, sizeof(BUF)); in verify_fsync()
/external/ltp/testcases/kernel/syscalls/exit/
Dexit02.c24 SAFE_WRITE(1, fd, FNAME, sizeof(FNAME)); in child_write()

1234