/external/ltp/testcases/kernel/syscalls/vmsplice/ |
D | vmsplice01.c | 45 static int fd_out; variable 53 fd_out = SAFE_OPEN(TESTFILE, O_RDONLY); in check_file() 54 SAFE_READ(1, fd_out, vmsplicebuffer, TEST_BLOCK_SIZE); in check_file() 66 SAFE_CLOSE(fd_out); in check_file() 74 int fd_out; in vmsplice_test() local 81 fd_out = SAFE_OPEN(TESTFILE, O_WRONLY | O_CREAT | O_TRUNC, 0644); in vmsplice_test() 108 ret = splice(pipes[0], NULL, fd_out, &offset, written, 0); in vmsplice_test() 116 SAFE_CLOSE(fd_out); in vmsplice_test() 136 if (fd_out > 0) in cleanup() 137 SAFE_CLOSE(fd_out); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice01.c | 43 static int fd_in, fd_out; variable 50 fd_out = SAFE_OPEN(TESTFILE2, O_RDONLY); in check_file() 51 SAFE_READ(1, fd_out, splicebuffer, TEST_BLOCK_SIZE); in check_file() 63 SAFE_CLOSE(fd_out); in check_file() 72 fd_out = SAFE_OPEN(TESTFILE2, O_WRONLY | O_CREAT | O_TRUNC, 0666); in splice_test() 79 ret = splice(pipes[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in splice_test() 84 SAFE_CLOSE(fd_out); in splice_test() 114 if (fd_out > 0) in cleanup() 115 SAFE_CLOSE(fd_out); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/tee/ |
D | tee01.c | 45 static int fd_in, fd_out; variable 53 fd_out = SAFE_OPEN(TESTFILE2, O_RDONLY); in check_file() 54 SAFE_READ(1, fd_out, teebuffer, TEST_BLOCK_SIZE); in check_file() 66 SAFE_CLOSE(fd_out); in check_file() 76 fd_out = SAFE_OPEN(TESTFILE2, O_WRONLY | O_CREAT | O_TRUNC, 0777); in tee_test() 89 ret = splice(pipe2[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in tee_test() 97 SAFE_CLOSE(fd_out); in tee_test() 126 if (fd_out > 0) in cleanup() 127 SAFE_CLOSE(fd_out); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/copy_file_range/ |
D | copy_file_range01.c | 146 int fd_in, fd_out, ret; in test_one() local 170 fd_out = SAFE_OPEN(TEST_FILE_2, O_CREAT | O_WRONLY | O_TRUNC, 0644); in test_one() 177 TEST(tst_syscall(__NR_copy_file_range, fd_in, off_in, fd_out, in test_one() 182 SAFE_CLOSE(fd_out); in test_one() 195 ret |= check_file_offset("(out)", fd_out, len, off_out_ori, off_out); in test_one() 201 SAFE_CLOSE(fd_out); in test_one()
|
/external/strace/tests-m32/ |
D | tee.c | 42 const long int fd_out = (long int) 0xdeadbeeffffffffeULL; in main() local 46 long rc = syscall(__NR_tee, fd_in, fd_out, len, flags); in main() 48 (int) fd_in, (int) fd_out, len, in main()
|
D | splice.c | 43 const long int fd_out = (long int) 0xdeadbeeffffffffeULL; in main() local 52 fd_in, off_in, fd_out, off_out, len, flags); in main() 54 (int) fd_in, *off_in, (int) fd_out, *off_out, len, in main()
|
D | copy_file_range.c | 44 const long int fd_out = (long int) 0xdeadbeeffffffffe; in main() local 53 fd_in, off_in, fd_out, off_out, len, flags); in main() 56 (int) fd_in, *off_in, (int) fd_out, *off_out, len, flags, in main()
|
/external/strace/tests-mx32/ |
D | tee.c | 42 const long int fd_out = (long int) 0xdeadbeeffffffffeULL; in main() local 46 long rc = syscall(__NR_tee, fd_in, fd_out, len, flags); in main() 48 (int) fd_in, (int) fd_out, len, in main()
|
D | splice.c | 43 const long int fd_out = (long int) 0xdeadbeeffffffffeULL; in main() local 52 fd_in, off_in, fd_out, off_out, len, flags); in main() 54 (int) fd_in, *off_in, (int) fd_out, *off_out, len, in main()
|
D | copy_file_range.c | 44 const long int fd_out = (long int) 0xdeadbeeffffffffe; in main() local 53 fd_in, off_in, fd_out, off_out, len, flags); in main() 56 (int) fd_in, *off_in, (int) fd_out, *off_out, len, flags, in main()
|
/external/strace/tests/ |
D | tee.c | 42 const long int fd_out = (long int) 0xdeadbeeffffffffeULL; in main() local 46 long rc = syscall(__NR_tee, fd_in, fd_out, len, flags); in main() 48 (int) fd_in, (int) fd_out, len, in main()
|
D | splice.c | 43 const long int fd_out = (long int) 0xdeadbeeffffffffeULL; in main() local 52 fd_in, off_in, fd_out, off_out, len, flags); in main() 54 (int) fd_in, *off_in, (int) fd_out, *off_out, len, in main()
|
D | copy_file_range.c | 44 const long int fd_out = (long int) 0xdeadbeeffffffffe; in main() local 53 fd_in, off_in, fd_out, off_out, len, flags); in main() 56 (int) fd_in, *off_in, (int) fd_out, *off_out, len, flags, in main()
|
/external/v8/tools/ |
D | android-run.py | 50 (fd_out, outname) = tempfile.mkstemp() 55 stdout=fd_out, 59 os.close(fd_out)
|
/external/ltp/include/lapi/ |
D | tee.h | 27 ssize_t tee(int fd_in, int fd_out, size_t len, unsigned int flags) in tee() argument 29 return tst_syscall(__NR_tee, fd_in, fd_out, len, flags); in tee()
|
D | splice.h | 28 ssize_t splice(int fd_in, loff_t *off_in, int fd_out, in splice() argument 32 fd_out, off_out, len, flags); in splice()
|
/external/libbrillo/brillo/ |
D | file_utils.cc | 97 base::ScopedFD* fd_out) { in TouchFileInternal() argument 125 if (fd_out) { in TouchFileInternal() 126 fd_out->swap(scoped_fd); in TouchFileInternal()
|
/external/libbrillo/brillo/dbus/ |
D | dbus_method_invoker_unittest.cc | 141 base::ScopedFD fd_out; in EchoFD() local 143 EXPECT_TRUE(ExtractMethodCallResults(response.get(), nullptr, &fd_out)); in EchoFD() 144 return fd_out; in EchoFD()
|
/external/libchrome/base/files/ |
D | file_util_posix.cc | 371 ScopedFD fd_out(raw_fds[0]); in CreateLocalNonBlockingPipe() 373 if (!SetCloseOnExec(fd_out.get())) in CreateLocalNonBlockingPipe() 377 if (!SetNonBlocking(fd_out.get())) in CreateLocalNonBlockingPipe() 381 fds[0] = fd_out.release(); in CreateLocalNonBlockingPipe()
|
/external/libevent/include/event2/ |
D | event.h | 1391 struct event_base **base_out, evutil_socket_t *fd_out, short *events_out,
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 1668 #define __sanitizer_syscall_pre_splice(fd_in, off_in, fd_out, off_out, len, \ argument 1671 (long)(fd_out), (long)(off_out), \ 1673 #define __sanitizer_syscall_post_splice(res, fd_in, off_in, fd_out, off_out, \ argument 1676 (long)(fd_out), (long)(off_out), \ 2960 void __sanitizer_syscall_pre_impl_splice(long fd_in, long off_in, long fd_out, 2963 long fd_out, long off_out, long len,
|
/external/valgrind/drd/tests/ |
D | tsan_unittest.cpp | 4769 int fd_out = -1; variable 4776 IGNORE_RETURN_VALUE(write(fd_out, str, strlen(str) + 1)); in Writer() 4794 fd_out = creat(out_name, O_WRONLY | S_IRWXU); in Run() 4803 CHECK(fd_out >= 0); in Run() 4811 close(fd_out); in Run()
|
/external/libevent/ |
D | event.c | 2369 …onst struct event *event, struct event_base **base_out, evutil_socket_t *fd_out, short *events_out… in event_get_assignment() argument 2375 if (fd_out) in event_get_assignment() 2376 *fd_out = event->ev_fd; in event_get_assignment()
|
/external/iproute2/lib/ |
D | bpf.c | 585 int fd_in, fd_out = STDERR_FILENO; in bpf_trace_pipe() local 608 if (ret > 0 && write(fd_out, buff, ret) == ret) in bpf_trace_pipe()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 2637 PRE_SYSCALL(splice)(long fd_in, void *off_in, long fd_out, void *off_out, 2640 POST_SYSCALL(splice)(long res, long fd_in, void *off_in, long fd_out,
|