/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | copy_file_range.c | 30 int fd_in, fd_out, wlen, result; in copy_file_range_0100() local 38 fd_in = open(path_in, O_RDWR | O_CREAT, TEST_MODE); in copy_file_range_0100() 39 if (fd_in == -1) { in copy_file_range_0100() 44 wlen = write(fd_in, str, strlen(str)); in copy_file_range_0100() 50 close(fd_in); in copy_file_range_0100() 51 fd_in = open(path_in, O_RDONLY); in copy_file_range_0100() 60 result = copy_file_range(fd_in, NULL, fd_out, NULL, wlen, 0); in copy_file_range_0100() 79 close(fd_in); in copy_file_range_0100() 109 int fd_in, fd_out, wlen, result; in copy_file_range_0300() local 117 fd_in = open(path_in, O_WRONLY | O_CREAT, TEST_MODE); in copy_file_range_0300() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/splice/ |
D | splice01.c | 30 static int fd_in, fd_out; variable 58 fd_in = SAFE_OPEN(TESTFILE1, O_RDONLY); in splice_test() 62 ret = splice(fd_in, NULL, pipes[1], NULL, TEST_BLOCK_SIZE, 0); in splice_test() 70 SAFE_CLOSE(fd_in); in splice_test() 91 fd_in = SAFE_OPEN(TESTFILE1, O_WRONLY | O_CREAT | O_TRUNC, 0777); in setup() 92 SAFE_WRITE(1, fd_in, buffer, TEST_BLOCK_SIZE); in setup() 93 SAFE_CLOSE(fd_in); in setup() 98 if (fd_in > 0) in cleanup() 99 SAFE_CLOSE(fd_in); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/tee/ |
D | tee01.c | 25 static int fd_in, fd_out; variable 55 fd_in = SAFE_OPEN(TESTFILE1, O_RDONLY); in tee_test() 61 ret = splice(fd_in, NULL, pipe1[1], NULL, TEST_BLOCK_SIZE, 0); in tee_test() 78 SAFE_CLOSE(fd_in); in tee_test() 96 fd_in = SAFE_OPEN(TESTFILE1, O_WRONLY | O_CREAT | O_TRUNC, 0777); in setup() 97 SAFE_WRITE(1, fd_in, buffer, TEST_BLOCK_SIZE); in setup() 98 SAFE_CLOSE(fd_in); in setup() 103 if (fd_in > 0) in cleanup() 104 SAFE_CLOSE(fd_in); in cleanup()
|
/third_party/alsa-lib/test/ |
D | rawmidi.c | 43 int fd_in = -1,fd_out = -1; in main() local 114 fd_in = open(node_in,O_RDONLY); in main() 115 if (fd_in<0) { in main() 136 fd_in = fd_out = open(node_out,O_RDWR); in main() 143 if (handle_in || fd_in!=-1) { in main() 206 if (fd_in!=-1) { in main() 209 read(fd_in,&ch,1); in main() 243 if ((handle_in || fd_in!=-1) && (handle_out || fd_out!=-1)) { in main() 253 if (fd_in!=-1) { in main() 254 read(fd_in,&ch,1); in main() [all …]
|
/third_party/ffmpeg/tools/ |
D | cws2fws.c | 30 int fd_in, fd_out, comp_len, uncomp_len, i, last_out; in main() local 41 fd_in = open(argv[1], O_RDONLY); in main() 42 if (fd_in < 0) { in main() 50 close(fd_in); in main() 54 if (read(fd_in, &buf_in, 8) != 8) { in main() 64 if (fstat(fd_in, &statbuf) < 0) { in main() 90 int ret, len = read(fd_in, &buf_in, 1024); in main() 151 close(fd_in); 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() 149 ret |= check_file_offset("(in)", fd_in, len, off_in, off_new_in); in test_one() 161 fd_in = SAFE_OPEN(FILE_SRC_PATH, O_RDONLY); in open_files() 169 if (fd_in > 0) in close_files() 170 SAFE_CLOSE(fd_in); in close_files()
|
D | copy_file_range.h | 43 static int sys_copy_file_range(int fd_in, loff_t *off_in, in sys_copy_file_range() argument 50 return copy_file_range(fd_in, off_in, 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/libfuse/example/ |
D | passthrough.c | 452 int fd_in, fd_out; in xmp_copy_file_range() local 456 fd_in = open(path_in, O_RDONLY); in xmp_copy_file_range() 458 fd_in = fi_in->fh; in xmp_copy_file_range() 460 if (fd_in == -1) in xmp_copy_file_range() 469 close(fd_in); in xmp_copy_file_range() 473 res = copy_file_range(fd_in, &offset_in, fd_out, &offset_out, len, in xmp_copy_file_range() 481 close(fd_in); in xmp_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 17 return tst_syscall(__NR_splice, fd_in, off_in, in splice()
|
/third_party/musl/src/linux/ |
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()
|
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()
|
/third_party/rust/crates/rustix/src/fs/ |
D | copy_file_range.rs | 13 fd_in: InFd, 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/rust/crates/rustix/src/io/ |
D | pipe.rs | 90 fd_in: FdIn, 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/libfuse/test/ |
D | test_syscalls.c | 835 int fd_in, fd_out; in test_copy_file_range() local 840 fd_in = open(testfile, O_CREAT | O_RDWR, 0644); in test_copy_file_range() 841 if (fd_in == -1) { in test_copy_file_range() 845 res = write(fd_in, data, datalen); in test_copy_file_range() 848 close(fd_in); in test_copy_file_range() 853 close(fd_in); in test_copy_file_range() 861 close(fd_in); in test_copy_file_range() 864 res = copy_file_range(fd_in, &pos_in, fd_out, &pos_out, datalen, 0); in test_copy_file_range() 867 close(fd_in); in test_copy_file_range() 873 close(fd_in); in test_copy_file_range() [all …]
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsclone.c | 204 static int fd_in; variable 764 void *fd = (void *)&fd_in; 1039 if (read_all(&fd_in, &cmd, sizeof(cmd)) == -1) { 1054 if (read_all(&fd_in, &lecount, 1060 if (read_all(&fd_in, &count, 1066 (long long)tellin(fd_in) - 9); 1080 (long long)tellin(fd_in) - 9); 1095 cmd, (long long)tellin(fd_in) - 1); 2382 if ((fd_in = fileno(stdin)) == -1) 2385 if (setmode(fd_in,O_BINARY) == -1) [all …]
|
/third_party/libuv/src/unix/ |
D | linux-syscalls.c | 224 uv__fs_copy_file_range(int fd_in, in uv__fs_copy_file_range() argument 233 fd_in, in uv__fs_copy_file_range()
|
D | freebsd.c | 292 uv__fs_copy_file_range(int fd_in, 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 | 65 uv__fs_copy_file_range(int fd_in,
|
/third_party/rust/crates/nix/src/ |
D | fcntl.rs | 569 fd_in: RawFd, 585 fd_in, 598 fd_in: 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/ |
D | file_util_posix.cc | 225 ScopedFD fd_in(raw_fds[1]); in CreateLocalNonBlockingPipe() 228 if (!SetCloseOnExec(fd_in.get())) in CreateLocalNonBlockingPipe() 232 if (!SetNonBlocking(fd_in.get())) in CreateLocalNonBlockingPipe() 235 fds[1] = fd_in.release(); in CreateLocalNonBlockingPipe()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | Mips32r6InstrInfo.td | 599 dag InOperandList = (ins FGRCCOpnd:$fd_in, FGROpnd:$fs, FGROpnd:$ft); 601 list<dag> Pattern = [(set FGROpnd:$fd, (select FGRCCOpnd:$fd_in, 604 string Constraints = "$fd_in = $fd"; 611 dag InOperandList = (ins FGROpnd:$fd_in, FGROpnd:$fs, FGROpnd:$ft); 613 list<dag> Pattern = [(set FGROpnd:$fd, (MipsFSelect FGROpnd:$fd_in, 616 string Constraints = "$fd_in = $fd"; 640 dag InOperandList = (ins FGROpnd:$fd_in, FGROpnd:$fs, FGROpnd:$ft); 643 string Constraints = "$fd_in = $fd";
|
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/ |
D | syscalls.rs | 1330 fd_in: BorrowedFd<'_>, in copy_file_range() 1337 _copy_file_range(fd_in, off_in, fd_out, off_out, len, 0).map(|result| result as u64) in copy_file_range() 1342 fd_in: BorrowedFd<'_>, in _copy_file_range() 1352 fd_in, in _copy_file_range()
|
/third_party/rust/crates/rustix/src/backend/libc/io/ |
D | syscalls.rs | 513 fd_in: BorrowedFd, in splice() 530 borrowed_fd(fd_in), in splice()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
D | syscalls.rs | 641 fd_in: BorrowedFd, in splice() 651 fd_in, in splice()
|