/external/ltp/testcases/kernel/syscalls/vmsplice/ |
D | vmsplice01.c | 26 static int fd_out; variable 34 fd_out = SAFE_OPEN(TESTFILE, O_RDONLY); in check_file() 35 SAFE_READ(1, fd_out, vmsplicebuffer, TEST_BLOCK_SIZE); in check_file() 47 SAFE_CLOSE(fd_out); in check_file() 55 int fd_out; in vmsplice_test() local 62 fd_out = SAFE_OPEN(TESTFILE, O_WRONLY | O_CREAT | O_TRUNC, 0644); in vmsplice_test() 89 ret = splice(pipes[0], NULL, fd_out, &offset, written, 0); in vmsplice_test() 97 SAFE_CLOSE(fd_out); in vmsplice_test() 117 if (fd_out > 0) in cleanup() 118 SAFE_CLOSE(fd_out); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice01.c | 30 static int fd_in, fd_out; variable 37 fd_out = SAFE_OPEN(TESTFILE2, O_RDONLY); in check_file() 38 SAFE_READ(1, fd_out, splicebuffer, TEST_BLOCK_SIZE); in check_file() 50 SAFE_CLOSE(fd_out); in check_file() 59 fd_out = SAFE_OPEN(TESTFILE2, O_WRONLY | O_CREAT | O_TRUNC, 0666); in splice_test() 66 ret = splice(pipes[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in splice_test() 71 SAFE_CLOSE(fd_out); in splice_test() 101 if (fd_out > 0) in cleanup() 102 SAFE_CLOSE(fd_out); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/tee/ |
D | tee01.c | 26 static int fd_in, fd_out; variable 34 fd_out = SAFE_OPEN(TESTFILE2, O_RDONLY); in check_file() 35 SAFE_READ(1, fd_out, teebuffer, TEST_BLOCK_SIZE); in check_file() 47 SAFE_CLOSE(fd_out); in check_file() 57 fd_out = SAFE_OPEN(TESTFILE2, O_WRONLY | O_CREAT | O_TRUNC, 0777); in tee_test() 70 ret = splice(pipe2[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in tee_test() 78 SAFE_CLOSE(fd_out); in tee_test() 107 if (fd_out > 0) in cleanup() 108 SAFE_CLOSE(fd_out); in cleanup()
|
/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/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/ltp/testcases/kernel/syscalls/copy_file_range/ |
D | copy_file_range01.c | 25 static int fd_in, fd_out, cross_sup; variable 130 TEST(sys_copy_file_range(fd_in, off_new_in, fd_out, in test_one() 150 ret |= check_file_offset("(out)", fd_out, len, off_out, off_new_out); in test_one() 162 fd_out = SAFE_OPEN(path, O_CREAT | O_WRONLY | O_TRUNC, 0644); in open_files() 167 if (fd_out > 0) in close_files() 168 SAFE_CLOSE(fd_out); in close_files()
|
D | copy_file_range.h | 44 int fd_out, loff_t *off_out, size_t len, unsigned int flags) in sys_copy_file_range() argument 51 fd_out, off_out, len, flags); in sys_copy_file_range() 57 return tst_syscall(__NR_copy_file_range, fd_in, off_in, fd_out, in sys_copy_file_range()
|
/external/u-boot/tools/ |
D | mksunxiboot.c | 68 int fd_in, fd_out; in main() local 125 fd_out = open(argv[2], O_WRONLY | O_CREAT, 0666); in main() 126 if (fd_out < 0) { in main() 167 count = write(fd_out, &img, le32_to_cpu(img.header.length)); in main() 174 close(fd_out); in main()
|
/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/libiio/src/iiod/ |
D | ops.h | 55 int fd_in, fd_out; member 77 void interpreter(struct iio_context *ctx, int fd_in, int fd_out, bool verbose,
|
D | ops.c | 150 io_prep_pwrite(&iocb, pdata->fd_out, buf, len, 0); in async_io() 276 pfd[0].fd = pdata->fd_out; in writefd_io() 296 ret = send(pdata->fd_out, src, len, MSG_NOSIGNAL); in writefd_io() 298 ret = write(pdata->fd_out, src, len); in writefd_io() 1351 void interpreter(struct iio_context *ctx, int fd_in, int fd_out, bool verbose, in interpreter() argument 1362 pdata.fd_out = fd_out; in interpreter()
|
/external/libbrillo/brillo/ |
D | file_utils.cc | 103 base::ScopedFD* fd_out) { in TouchFileInternal() argument 129 if (fd_out) { in TouchFileInternal() 130 fd_out->swap(scoped_fd); in TouchFileInternal()
|
/external/bcc/src/cc/ |
D | bcc_elf.c | 47 static int openelf(const char *path, Elf **elf_out, int *fd_out) { in openelf() argument 48 *fd_out = open(path, O_RDONLY); in openelf() 49 if (*fd_out < 0) in openelf() 52 if (openelf_fd(*fd_out, elf_out) == -1) { in openelf() 53 close(*fd_out); in openelf()
|
/external/libbrillo/brillo/dbus/ |
D | dbus_method_invoker_unittest.cc | 172 base::ScopedFD fd_out; in EchoFD() local 174 EXPECT_TRUE(ExtractMethodCallResults(response.get(), nullptr, &fd_out)); in EchoFD() 175 return fd_out; in EchoFD()
|
/external/openssh/ |
D | opacket.c | 231 packet_set_connection(int fd_in, int fd_out) in packet_set_connection() argument 233 active_state = ssh_packet_set_connection(active_state, fd_in, fd_out); in packet_set_connection()
|
D | sftp-client.c | 79 int fd_out; member 124 if (atomiciov6(writev, conn->fd_out, iov, 2, in send_msg() 180 debug3("Sent message fd %d T:%u I:%u", conn->fd_out, code, id); in send_string_request() 199 debug3("Sent message fd %d T:%u I:%u", conn->fd_out, code, id); in send_string_attrs_request() 383 do_init(int fd_in, int fd_out, u_int transfer_buflen, u_int num_requests, in do_init() argument 394 ret->fd_out = fd_out; in do_init()
|
/external/libchrome/base/files/ |
D | file_util_posix.cc | 415 ScopedFD fd_out(raw_fds[0]); in CreateLocalNonBlockingPipe() 417 if (!SetCloseOnExec(fd_out.get())) in CreateLocalNonBlockingPipe() 421 if (!SetNonBlocking(fd_out.get())) in CreateLocalNonBlockingPipe() 425 fds[0] = fd_out.release(); in CreateLocalNonBlockingPipe()
|