/external/ltp/testcases/cve/ |
D | cve-2014-0196.c | 85 SAFE_WRITE(0, slave_fd, buf, BUFLEN - 1); in overwrite_thread_fn() 86 SAFE_WRITE(0, slave_fd, buf, BUFLEN - 1); in overwrite_thread_fn() 87 SAFE_WRITE(0, slave_fd, buf, BUFLEN); in overwrite_thread_fn() 110 SAFE_WRITE(0, slave_fd, buf, 1); in run() 118 SAFE_WRITE(0, master_fd, "A", 1); in run()
|
/external/ltp/lib/tests/ |
D | tst_safe_macros.c | 34 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/ |
D | lseek07.c | 69 SAFE_WRITE(1, *tc->fd, WR_STR2, sizeof(WR_STR2) - 1); in verify_lseek() 91 SAFE_WRITE(1, fd1, WR_STR1, sizeof(WR_STR1) - 1); in setup() 92 SAFE_WRITE(1, fd2, WR_STR1, sizeof(WR_STR1) - 1); in setup()
|
/external/ltp/testcases/kernel/containers/userns/ |
D | userns02.c | 95 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()
|
D | userns06.c | 140 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main() 145 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main()
|
D | userns03.c | 193 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/ |
D | nfs05_make_tree.c | 162 SAFE_WRITE(1, fd, make_buf_n, sizeof(make_buf_n) - 1); in thread_fn() 164 SAFE_WRITE(1, fd, make_buf, sizeof(make_buf) - 1); in thread_fn() 177 SAFE_WRITE(1, fd, prog_buf, sizeof(prog_buf) - 1); in thread_fn()
|
/external/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe02.c | 40 SAFE_WRITE(1, fd[1], wrbuf, SIZE); in do_child() 44 SAFE_WRITE(1, fd[1], wrbuf, SIZE); in do_child()
|
D | pipe01.c | 43 wr_size = SAFE_WRITE(1, fds[1], wrbuf, sizeof(wrbuf)); in verify_pipe()
|
/external/ltp/testcases/kernel/syscalls/epoll_wait/ |
D | epoll_wait01.c | 46 write_size += SAFE_WRITE(0, fds[1], buf, sizeof(buf)); in get_writesize() 148 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollin() 188 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollio()
|
/external/ltp/testcases/kernel/syscalls/preadv/ |
D | preadv01.c | 103 SAFE_WRITE(1, fd, buf, sizeof(buf)); in setup() 106 SAFE_WRITE(1, fd, buf, sizeof(buf)); in setup()
|
D | preadv03.c | 123 SAFE_WRITE(1, fd, pop_buf, blksz); in setup() 126 SAFE_WRITE(1, fd, pop_buf, blksz); in setup()
|
/external/ltp/testcases/kernel/syscalls/preadv2/ |
D | preadv201.c | 101 SAFE_WRITE(1, fd, buf, sizeof(buf)); in setup() 104 SAFE_WRITE(1, fd, buf, sizeof(buf)); in setup()
|
/external/ltp/testcases/kernel/io/direct_io/ |
D | diotest1.c | 140 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/ |
D | inotify05.c | 70 SAFE_WRITE(1, fd, buf, BUF_SIZE); in verify_inotify() 143 SAFE_WRITE(1, fd, buf, BUF_SIZE); in setup()
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify01.c | 112 SAFE_WRITE(1, fd, fname, strlen(fname)); in test_fanotify() 157 SAFE_WRITE(1, fd, fname, 1); in test_fanotify() 195 SAFE_WRITE(1, fd, fname, 1); in test_fanotify()
|
/external/ltp/testcases/kernel/mem/mtest06/ |
D | mmap1.c | 171 SAFE_WRITE(1, fd, "a", 1); in mkfile() 172 SAFE_WRITE(1, fd, "\0", 1); in mkfile()
|
/external/ltp/testcases/kernel/syscalls/openat/ |
D | openat02.c | 130 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/syscalls/open/ |
D | open12.c | 132 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/input/ |
D | input_helper.c | 178 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/fcntl/ |
D | fcntl11.c | 103 SAFE_WRITE(cleanup, 0, fd, buf, STRINGSIZE); in setup() 206 SAFE_WRITE(cleanup, 1, parent_pipe[1], l, sizeof(*l)); in parent_put() 216 SAFE_WRITE(NULL, 1, child_pipe[1], l, sizeof(*l)); in child_put()
|
/external/ltp/testcases/kernel/syscalls/read/ |
D | read01.c | 58 SAFE_WRITE(1, fd, buf, SIZE); in setup()
|
/external/ltp/testcases/kernel/syscalls/fsync/ |
D | fsync01.c | 51 SAFE_WRITE(1, fd, BUF, sizeof(BUF)); in verify_fsync()
|
/external/ltp/testcases/kernel/syscalls/exit/ |
D | exit02.c | 37 SAFE_WRITE(1, fd, FNAME, sizeof(FNAME)); in child_write()
|
/external/ltp/testcases/kernel/syscalls/write/ |
D | write03.c | 45 SAFE_WRITE(1, fd, wbuf, 100); in verify_write()
|