Home
last modified time | relevance | path

Searched refs:fd_out (Results 1 – 25 of 44) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice01.c26 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/
Dsplice01.c30 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/
Dtee01.c26 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/
Dtee.c42 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()
Dsplice.c43 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()
Dcopy_file_range.c44 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/
Dtee.c42 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()
Dsplice.c43 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()
Dcopy_file_range.c44 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/
Dtee.c42 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()
Dsplice.c43 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()
Dcopy_file_range.c44 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/
Dcopy_file_range01.c25 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()
Dcopy_file_range.h44 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/ltp/include/lapi/
Dtee.h27 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()
Dsplice.h28 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/
Dops.h55 int fd_in, fd_out; member
77 void interpreter(struct iio_context *ctx, int fd_in, int fd_out, bool verbose,
Dops.c150 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/rust/crates/nix/src/
Dfcntl.rs473 fd_out: RawFd, in copy_file_range()
489 fd_out, in copy_file_range()
502 fd_out: RawFd, in splice()
514 let ret = unsafe { libc::splice(fd_in, off_in, fd_out, off_out, len, flags.bits()) }; in splice()
519 pub fn tee(fd_in: RawFd, fd_out: RawFd, len: usize, flags: SpliceFFlags) -> Result<usize> { in tee()
520 let ret = unsafe { libc::tee(fd_in, fd_out, len, flags.bits()) }; in tee()
/external/bcc/src/cc/
Dbcc_elf.c47 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/
Ddbus_method_invoker_test.cc171 base::ScopedFD fd_out; in EchoFD() local
173 EXPECT_TRUE(ExtractMethodCallResults(response.get(), nullptr, &fd_out)); in EchoFD()
174 return fd_out; in EchoFD()
/external/libbrillo/brillo/
Dfile_utils.cc110 base::ScopedFD* fd_out) { in TouchFileInternal() argument
136 if (fd_out) { in TouchFileInternal()
137 fd_out->swap(scoped_fd); in TouchFileInternal()
/external/libchrome/base/files/
Dfile_util_posix.cc415 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()
/external/openssh/
Dsftp-client.c79 int fd_out; member
127 if (atomiciov6(writev, conn->fd_out, iov, 2, sftpio, in send_msg()
193 debug3("Sent message fd %d T:%u I:%u", conn->fd_out, code, id); in send_string_request()
212 debug3("Sent message fd %d T:%u I:%u", conn->fd_out, code, id); in send_string_attrs_request()
396 do_init(int fd_in, int fd_out, u_int transfer_buflen, u_int num_requests, in do_init() argument
407 ret->fd_out = fd_out; in do_init()
/external/igt-gpu-tools/tests/
Dprime_mmap.c294 static int prime_handle_to_fd_no_assert(uint32_t handle, int flags, int *fd_out) in prime_handle_to_fd_no_assert() argument
306 *fd_out = args.fd; in prime_handle_to_fd_no_assert()

12