Home
last modified time | relevance | path

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

123

/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dcopy_file_range.c30 int fd_in, fd_out, wlen, result; in copy_file_range_0100() local
53 fd_out = open(path_out, O_RDWR | O_CREAT, TEST_MODE); in copy_file_range_0100()
54 if (fd_out == -1) { in copy_file_range_0100()
60 result = copy_file_range(fd_in, NULL, fd_out, NULL, wlen, 0); in copy_file_range_0100()
68 close(fd_out); in copy_file_range_0100()
69 fd_out = open(path_out, O_RDONLY); in copy_file_range_0100()
71 result = read(fd_out, buffer, sizeof(buffer)); in copy_file_range_0100()
80 close(fd_out); in copy_file_range_0100()
109 int fd_in, fd_out, wlen, result; in copy_file_range_0300() local
132 fd_out = open(path_out, O_RDONLY | O_CREAT, TEST_MODE); in copy_file_range_0300()
[all …]
/third_party/alsa-lib/test/
Drawmidi.c43 int fd_in = -1,fd_out = -1; in main() local
129 fd_out = open(node_out,O_WRONLY); in main()
130 if (fd_out<0) { in main()
136 fd_in = fd_out = open(node_out,O_RDWR); in main()
137 if (fd_out<0) { in main()
216 if (handle_out || fd_out!=-1) { in main()
232 if (fd_out!=-1) { in main()
234 ch=0x90; write(fd_out,&ch,1); in main()
235 ch=60; write(fd_out,&ch,1); in main()
236 ch=100; write(fd_out,&ch,1); in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice01.c25 static int fd_out; variable
33 fd_out = SAFE_OPEN(TESTFILE, O_RDONLY); in check_file()
34 SAFE_READ(1, fd_out, vmsplicebuffer, TEST_BLOCK_SIZE); in check_file()
46 SAFE_CLOSE(fd_out); in check_file()
54 int fd_out; in vmsplice_test() local
61 fd_out = SAFE_OPEN(TESTFILE, O_WRONLY | O_CREAT | O_TRUNC, 0644); in vmsplice_test()
88 ret = splice(pipes[0], NULL, fd_out, &offset, written, 0); in vmsplice_test()
96 SAFE_CLOSE(fd_out); in vmsplice_test()
111 if (fd_out > 0) in cleanup()
112 SAFE_CLOSE(fd_out); in cleanup()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/tee/
Dtee01.c25 static int fd_in, fd_out; variable
33 fd_out = SAFE_OPEN(TESTFILE2, O_RDONLY); in check_file()
34 SAFE_READ(1, fd_out, teebuffer, TEST_BLOCK_SIZE); in check_file()
46 SAFE_CLOSE(fd_out); in check_file()
56 fd_out = SAFE_OPEN(TESTFILE2, O_WRONLY | O_CREAT | O_TRUNC, 0777); in tee_test()
69 ret = splice(pipe2[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in tee_test()
77 SAFE_CLOSE(fd_out); in tee_test()
106 if (fd_out > 0) in cleanup()
107 SAFE_CLOSE(fd_out); in cleanup()
/third_party/ffmpeg/tools/
Dcws2fws.c30 int fd_in, fd_out, comp_len, uncomp_len, i, last_out; in main() local
47 fd_out = open(argv[2], O_WRONLY | O_CREAT, 00644); in main()
48 if (fd_out < 0) { in main()
76 if (write(fd_out, &buf_in, 8) < 8) { in main()
118 if (write(fd_out, &buf_out, zstream.total_out - last_out) < in main()
140 if ( lseek(fd_out, 4, SEEK_SET) < 0 in main()
141 || write(fd_out, &buf_in, 4) < 4) { in main()
152 close(fd_out); in main()
/third_party/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()
/third_party/ntfs-3g/ntfsprogs/
Dntfsclone.c205 static int fd_out; variable
846 if (write_all(&fd_out, &cmd, sizeof(cmd)) == -1)
851 && (write_all(&fd_out, buff, csize) == -1)) {
891 if (lseek_out(fd_out, pos, SEEK_SET) == (off_t)-1)
904 if (write_all(&fd_out, buf, sizeof(buf)) == -1)
919 if (write_all(&fd_out, buff, sizeof(buff)) == -1)
933 || write_all(&fd_out, &image_hdr, sizeof(image_hdr))
934 || write_all(&fd_out, alignment, alignsize))
967 || write_all(&fd_out, &image_hdr, sizeof(image_hdr))
968 || write_all(&fd_out, alignment, alignsize))
[all …]
/third_party/node/deps/uv/src/win/
Dcore.c664 uv_os_fd_t fd_out; in uv_fileno() local
668 fd_out = (uv_os_fd_t)((uv_tcp_t*) handle)->socket; in uv_fileno()
672 fd_out = ((uv_pipe_t*) handle)->handle; in uv_fileno()
676 fd_out = ((uv_tty_t*) handle)->handle; in uv_fileno()
680 fd_out = (uv_os_fd_t)((uv_udp_t*) handle)->socket; in uv_fileno()
684 fd_out = (uv_os_fd_t)((uv_poll_t*) handle)->socket; in uv_fileno()
691 if (uv_is_closing(handle) || fd_out == INVALID_HANDLE_VALUE) in uv_fileno()
694 *fd = fd_out; in uv_fileno()
/third_party/libuv/src/win/
Dcore.c666 uv_os_fd_t fd_out; in uv_fileno() local
670 fd_out = (uv_os_fd_t)((uv_tcp_t*) handle)->socket; in uv_fileno()
674 fd_out = ((uv_pipe_t*) handle)->handle; in uv_fileno()
678 fd_out = ((uv_tty_t*) handle)->handle; in uv_fileno()
682 fd_out = (uv_os_fd_t)((uv_udp_t*) handle)->socket; in uv_fileno()
686 fd_out = (uv_os_fd_t)((uv_poll_t*) handle)->socket; in uv_fileno()
693 if (uv_is_closing(handle) || fd_out == INVALID_HANDLE_VALUE) in uv_fileno()
696 *fd = fd_out; in uv_fileno()
/third_party/node/deps/v8/tools/
Dandroid-run.py53 (fd_out, outname) = tempfile.mkstemp()
58 stdout=fd_out,
62 os.close(fd_out)
/third_party/ltp/include/lapi/
Dtee.h14 static inline ssize_t tee(int fd_in, int fd_out, in tee() argument
17 return tst_syscall(__NR_tee, fd_in, fd_out, len, flags); in tee()
Dsplice.h14 static inline ssize_t splice(int fd_in, loff_t *off_in, int fd_out, in splice() argument
18 fd_out, off_out, len, flags); in splice()
/third_party/musl/src/linux/
Dsplice.c5 ssize_t splice(int fd_in, off_t *off_in, int fd_out, off_t *off_out, size_t len, unsigned flags) in splice() argument
7 return syscall(SYS_splice, fd_in, off_in, fd_out, off_out, len, flags); in splice()
Dcopy_file_range.c5 ssize_t copy_file_range(int fd_in, off_t *off_in, int fd_out, off_t *off_out, size_t len, unsigned … in copy_file_range() argument
7 return syscall(SYS_copy_file_range, fd_in, off_in, fd_out, off_out, len, flags); in copy_file_range()
/third_party/rust/crates/rustix/src/fs/
Dcopy_file_range.rs15 fd_out: OutFd, in copy_file_range()
19 backend::fs::syscalls::copy_file_range(fd_in.as_fd(), off_in, fd_out.as_fd(), off_out, len) in copy_file_range()
/third_party/libfuse/example/
Dpassthrough.c452 int fd_in, fd_out; in xmp_copy_file_range() local
464 fd_out = open(path_out, O_WRONLY); in xmp_copy_file_range()
466 fd_out = fi_out->fh; in xmp_copy_file_range()
468 if (fd_out == -1) { in xmp_copy_file_range()
473 res = copy_file_range(fd_in, &offset_in, fd_out, &offset_out, len, in xmp_copy_file_range()
479 close(fd_out); in xmp_copy_file_range()
/third_party/mesa3d/src/imagination/vulkan/winsys/pvrsrvkm/
Dpvr_srv_job_common.c36 VkResult pvr_srv_create_timeline(int render_fd, int *const fd_out) in pvr_srv_create_timeline() argument
64 *fd_out = fd; in pvr_srv_create_timeline()
Dpvr_srv_job_common.h50 VkResult pvr_srv_create_timeline(int render_fd, int *const fd_out);
/third_party/rust/crates/rustix/src/io/
Dpipe.rs92 fd_out: FdOut, in splice()
97 backend::io::syscalls::splice(fd_in.as_fd(), off_in, fd_out.as_fd(), off_out, len, flags) in splice()
/third_party/node/deps/uv/src/unix/
Dlinux-syscalls.c226 int fd_out, in uv__fs_copy_file_range() argument
235 fd_out, in uv__fs_copy_file_range()
/third_party/libuv/src/unix/
Dlinux-syscalls.c226 int fd_out, in uv__fs_copy_file_range() argument
235 fd_out, in uv__fs_copy_file_range()
/third_party/rust/crates/nix/src/
Dfcntl.rs571 fd_out: RawFd,
587 fd_out,
600 fd_out: RawFd,
612 let ret = unsafe { libc::splice(fd_in, off_in, fd_out, off_out, len, flags.bits()) };
617 pub fn tee(fd_in: RawFd, fd_out: RawFd, len: usize, flags: SpliceFFlags) -> Result<usize> {
618 let ret = unsafe { libc::tee(fd_in, fd_out, len, flags.bits()) };
/third_party/gn/src/base/files/
Dfile_util_posix.cc224 ScopedFD fd_out(raw_fds[0]); in CreateLocalNonBlockingPipe()
226 if (!SetCloseOnExec(fd_out.get())) in CreateLocalNonBlockingPipe()
230 if (!SetNonBlocking(fd_out.get())) in CreateLocalNonBlockingPipe()
234 fds[0] = fd_out.release(); in CreateLocalNonBlockingPipe()

123