Home
last modified time | relevance | path

Searched refs:dst_fd (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/c/experimental/filesystem/plugins/posix/
Dposix_filesystem_helper.cc40 int dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, open_mode); in TransferFileContents() local
41 if (dst_fd < 0) { in TransferFileContents()
49 if (CopyFileContents(dst_fd, src_fd, size) < 0) error_code = errno; in TransferFileContents()
52 close(dst_fd); in TransferFileContents()
Dcopy_file_linux.cc26 int CopyFileContents(int dst_fd, int src_fd, off_t size) { in CopyFileContents() argument
36 rc = sendfile(dst_fd, src_fd, &offset, static_cast<size_t>(chunk)); in CopyFileContents()
Dcopy_file_portable.cc27 int CopyFileContents(int dst_fd, int src_fd, off_t size) { in CopyFileContents() argument
46 rc = write(dst_fd, buffer.get() + total_write, chunk - total_write); in CopyFileContents()
Dcopy_file.h28 int CopyFileContents(int dst_fd, int src_fd, off_t size);
/external/icing/icing/legacy/index/
Dicing-filesystem.cc543 int dst_fd = -1; in CopyFile() local
550 if ((dst_fd = OpenForWrite(dst)) < 0) { in CopyFile()
558 success = Write(dst_fd, mapper.address(), mapper.len()); in CopyFile()
562 if (dst_fd > 0) close(dst_fd); in CopyFile()
/external/f2fs-tools/tools/f2fs_io/
Df2fs_io.c861 int dst_fd; in do_copy() local
894 dst_fd = xopen(argv[1], O_WRONLY | O_CREAT | O_TRUNC | open_flags, 0644); in do_copy()
911 full_write(dst_fd, src_addr, stbuf.st_size); in do_copy()
915 while ((ret = sendfile(dst_fd, src_fd, NULL, INT_MAX)) > 0) in do_copy()
923 full_write(dst_fd, buf, ret); in do_copy()
927 close(dst_fd); in do_copy()
Df2fs_io.h203 u32 dst_fd; /* destination fd */ member
/external/kernel-headers/original/uapi/linux/
Df2fs.h76 __u32 dst_fd; /* destination fd */ member
/external/toybox/toys/other/
Dbzcat.c643 static char *bunzipStream(int src_fd, int dst_fd) in bunzipStream() argument
650 i = write_bunzip_data(bd,bd->bwdata, dst_fd, 0, 0); in bunzipStream()
656 flush_bunzip_outbuf(bd, dst_fd); in bunzipStream()
/external/minijail/rust/minijail/src/
Dlib.rs701 for (src_fd, dst_fd) in inheritable_fds { in run_remap()
702 let ret = unsafe { minijail_preserve_fd(self.jail, *src_fd, *dst_fd) }; in run_remap()
782 for (src_fd, dst_fd) in inheritable_fds { in fork_remap()
783 let ret = minijail_preserve_fd(self.jail, *src_fd, *dst_fd); in fork_remap()
/external/icing/icing/file/
Dfilesystem.cc474 ScopedFd dst_fd(OpenForWrite(dst)); in CopyFile() local
476 if (!src_fd.is_valid() || !dst_fd.is_valid()) { in CopyFile()
484 return Write(*dst_fd, buf.get(), size); in CopyFile()