/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | copy_file_range.c | 33 int fd_in, fd_out, wlen, result; in copy_file_range_0100() local 51 fd_out = open(path_out, O_RDWR | O_CREAT); in copy_file_range_0100() 52 if (fd_out == -1) { in copy_file_range_0100() 58 result = copy_file_range(fd_in, NULL, fd_out, NULL, wlen, 0); in copy_file_range_0100() 66 close(fd_out); in copy_file_range_0100() 67 fd_out = open(path_out, O_RDONLY); in copy_file_range_0100() 69 result = read(fd_out, buffer, sizeof(buffer)); in copy_file_range_0100() 78 close(fd_out); in copy_file_range_0100() 107 int fd_in, fd_out, wlen, result; in copy_file_range_0300() local 125 fd_out = open(path_out, O_RDONLY | O_CREAT); in copy_file_range_0300() [all …]
|
/third_party/alsa-lib/test/ |
D | rawmidi.c | 43 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/ |
D | vmsplice01.c | 25 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/ |
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()
|
/third_party/ltp/testcases/kernel/syscalls/tee/ |
D | tee01.c | 25 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/ |
D | cws2fws.c | 30 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/ |
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()
|
/third_party/ltp/include/lapi/ |
D | tee.h | 14 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()
|
D | splice.h | 14 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/ |
D | copy_file_range.c | 5 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()
|
D | splice.c | 5 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()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsclone.c | 205 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/libuv/src/win/ |
D | core.c | 657 uv_os_fd_t fd_out; in uv_fileno() local 661 fd_out = (uv_os_fd_t)((uv_tcp_t*) handle)->socket; in uv_fileno() 665 fd_out = ((uv_pipe_t*) handle)->handle; in uv_fileno() 669 fd_out = ((uv_tty_t*) handle)->handle; in uv_fileno() 673 fd_out = (uv_os_fd_t)((uv_udp_t*) handle)->socket; in uv_fileno() 677 fd_out = (uv_os_fd_t)((uv_poll_t*) handle)->socket; in uv_fileno() 684 if (uv_is_closing(handle) || fd_out == INVALID_HANDLE_VALUE) in uv_fileno() 687 *fd = fd_out; in uv_fileno()
|
D | fs.c | 2102 int fd_in = req->file.fd, fd_out = req->fs.info.fd_out; in fs__sendfile() local 2132 n = _write(fd_out, buf, n); in fs__sendfile() 3323 int uv_fs_sendfile(uv_loop_t* loop, uv_fs_t* req, uv_file fd_out, in uv_fs_sendfile() argument 3327 req->fs.info.fd_out = fd_out; in uv_fs_sendfile()
|
/third_party/libuv/src/unix/ |
D | linux-syscalls.c | 226 int fd_out, in uv__fs_copy_file_range() argument 235 fd_out, in uv__fs_copy_file_range()
|
D | freebsd.c | 294 int fd_out, in uv__fs_copy_file_range() argument 300 return copy_file_range(fd_in, off_in, fd_out, off_out, len, flags); in uv__fs_copy_file_range()
|
D | linux-syscalls.h | 67 int fd_out,
|
D | core.c | 753 int fd_out; in uv_fileno() local 759 fd_out = uv__stream_fd((uv_stream_t*) handle); in uv_fileno() 763 fd_out = ((uv_udp_t *) handle)->io_watcher.fd; in uv_fileno() 767 fd_out = ((uv_poll_t *) handle)->io_watcher.fd; in uv_fileno() 774 if (uv__is_closing(handle) || fd_out == -1) in uv_fileno() 777 *fd = fd_out; in uv_fileno()
|
D | internal.h | 363 int fd_out,
|
/third_party/gn/src/base/files/ |
D | file_util_posix.cc | 224 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()
|
/third_party/libsoup/libsoup/ |
D | soup-auth-ntlm.c | 87 int fd_out; member 118 priv->fd_out = -1; in G_DEFINE_TYPE_WITH_PRIVATE() 162 if (priv->fd_out != -1) { in sso_ntlm_close() 163 close (priv->fd_out); in sso_ntlm_close() 164 priv->fd_out = -1; in sso_ntlm_close() 183 if (priv->fd_in != -1 && priv->fd_out != -1) in sso_ntlm_initiate() 210 NULL, &priv->fd_in, &priv->fd_out, in sso_ntlm_initiate() 238 size = read (priv->fd_out, tmpbuf, len_out); in sso_ntlm_response()
|
/third_party/glib/gio/tests/ |
D | gdbus-close-pending.c | 237 my_io_stream_new_for_fds (gint fd_in, gint fd_out) in my_io_stream_new_for_fds() argument 245 real_output_stream = g_unix_output_stream_new (fd_out, TRUE); in my_io_stream_new_for_fds()
|
/third_party/libuv/include/uv/ |
D | win.h | 622 int fd_out; \
|
/third_party/glib/gio/ |
D | gfile.c | 2977 int fd_out, in do_splice() argument 2986 result = splice (fd_in, off_in, fd_out, off_out, len, SPLICE_F_MORE); in do_splice() 3024 int fd_in, fd_out; in splice_stream_with_progress() local 3027 fd_out = g_file_descriptor_based_get_fd (G_FILE_DESCRIPTOR_BASED (out)); in splice_stream_with_progress() 3088 if (!do_splice (buffer[0], NULL, fd_out, &offset_out, n_read, &n_written, error)) in splice_stream_with_progress() 3129 int fd_in, fd_out; in btrfs_reflink_with_progress() local 3133 fd_out = g_file_descriptor_based_get_fd (G_FILE_DESCRIPTOR_BASED (out)); in btrfs_reflink_with_progress() 3144 ret = ioctl (fd_out, BTRFS_IOC_CLONE, fd_in); in btrfs_reflink_with_progress()
|