Home
last modified time | relevance | path

Searched refs:src_fd (Results 1 – 25 of 26) sorted by relevance

12

/external/vboot_reference/scripts/image_signing/
Dunpack_firmwarefd.sh26 src_fd=$1
59 dd if="${src_fd}" of="firmware.gbb" skip="${gbb_offset}" bs=1 \
62 dd if="${src_fd}" of="firmwareA.data" skip="${fwA_offset}" bs=1 \
64 dd if="${src_fd}" of="firmwareA.vblock" skip="${fwA_vblock_offset}" bs=1 \
66 dd if="${src_fd}" of="firmwareB.data" skip="${fwB_offset}" bs=1 \
68 dd if="${src_fd}" of="firmwareB.vblock" skip="${fwB_vblock_offset}" bs=1 \
/external/tensorflow/tensorflow/c/experimental/filesystem/plugins/posix/
Dposix_filesystem_helper.cc31 int src_fd = open(src, O_RDONLY); in TransferFileContents() local
32 if (src_fd < 0) return -1; in TransferFileContents()
42 close(src_fd); in TransferFileContents()
49 if (CopyFileContents(dst_fd, src_fd, size) < 0) error_code = errno; in TransferFileContents()
51 close(src_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
40 rc = read(src_fd, buffer.get(), chunk); in CopyFileContents()
Dcopy_file.h28 int CopyFileContents(int dst_fd, int src_fd, off_t size);
/external/arm-trusted-firmware/tools/stm32image/
Dstm32image.c126 int src_fd, dest_fd; in stm32image_create_header_file() local
137 src_fd = open(srcname, O_RDONLY); in stm32image_create_header_file()
138 if (src_fd == -1) { in stm32image_create_header_file()
144 if (fstat(src_fd, &sbuf) < 0) { in stm32image_create_header_file()
148 ptr = mmap(NULL, sbuf.st_size, PROT_READ, MAP_SHARED, src_fd, 0); in stm32image_create_header_file()
170 close(src_fd); in stm32image_create_header_file()
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/binder/binder_transaction_fd/
Dformat10 field:int src_fd; offset:12; size:4; signed:1;
13 print fmt: "transaction=%d src_fd=%d ==> dest_fd=%d", REC->debug_id, REC->src_fd, REC->dest_fd
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/binder/binder_transaction_fd/
Dformat10 field:int src_fd; offset:12; size:4; signed:1;
13 print fmt: "transaction=%d src_fd=%d ==> dest_fd=%d", REC->debug_id, REC->src_fd, REC->dest_fd
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/binder/binder_transaction_fd/
Dformat10 field:int src_fd; offset:12; size:4; signed:1;
13 print fmt: "transaction=%d src_fd=%d ==> dest_fd=%d", REC->debug_id, REC->src_fd, REC->dest_fd
/external/perfetto/src/traced/probes/ftrace/test/data/android_hammerhead_MRA59G_3.4.0/events/binder/binder_transaction_fd/
Dformat11 field:int src_fd; offset:16; size:4; signed:1;
14 print fmt: "transaction=%d src_fd=%d ==> dest_fd=%d", REC->debug_id, REC->src_fd, REC->dest_fd
/external/tensorflow/tensorflow/core/platform/default/
Dposix_file_system.cc396 int src_fd = open(translated_src.c_str(), O_RDONLY); in CopyFile() local
397 if (src_fd < 0) { in CopyFile()
409 close(src_fd); in CopyFile()
422 rc = sendfile(target_fd, src_fd, &offset, static_cast<size_t>(chunk)); in CopyFile()
427 rc = read(src_fd, buffer.get(), static_cast<size_t>(chunk)); in CopyFile()
449 rc = close(src_fd); in CopyFile()
/external/icing/icing/legacy/index/
Dicing-filesystem.cc542 int src_fd = -1; in CopyFile() local
547 if ((src_fd = OpenForRead(src)) < 0) { in CopyFile()
553 size = GetFileSize(src_fd); in CopyFile()
554 mapper.Remap(src_fd, 0, size); in CopyFile()
561 if (src_fd > 0) close(src_fd); in CopyFile()
/external/strace/
Dfile_ioctl.c46 int64_t src_fd; member
143 printfd(tcp, args.src_fd); in file_ioctl()
/external/f2fs-tools/tools/f2fs_io/
Df2fs_io.c860 int src_fd; in do_copy() local
893 src_fd = xopen(argv[0], O_RDONLY | open_flags, 0); in do_copy()
900 if (fstat(src_fd, &stbuf) != 0) in do_copy()
907 src_fd, 0); in do_copy()
915 while ((ret = sendfile(dst_fd, src_fd, NULL, INT_MAX)) > 0) in do_copy()
922 while ((ret = xread(src_fd, buf, 4096)) > 0) in do_copy()
926 close(src_fd); in do_copy()
/external/toybox/toys/other/
Dbzcat.c604 static int start_bunzip(struct bunzip_data **bdp, int src_fd, char *inbuf, in start_bunzip() argument
622 bd->in_fd = src_fd; in start_bunzip()
643 static char *bunzipStream(int src_fd, int dst_fd) in bunzipStream() argument
649 if (!(i = start_bunzip(&bd,src_fd, 0, 0))) { in bunzipStream()
/external/icing/icing/file/
Dfilesystem.cc468 ScopedFd src_fd(OpenForRead(src)); in CopyFile() local
476 if (!src_fd.is_valid() || !dst_fd.is_valid()) { in CopyFile()
479 uint64_t size = GetFileSize(*src_fd); in CopyFile()
481 if (!Read(*src_fd, buf.get(), size)) { in CopyFile()
/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/kernel-headers/original/uapi/linux/
Dfs.h55 __s64 src_fd; member
Dbtrfs.h566 __s64 src_fd; member
/external/libchrome/libchrome_tools/patches/
Dr680000-forward-compatibility-patch-part-2.patch33 // Remap file descriptors according to the mapping of src_fd->dest_fd to
/external/llvm-project/lldb/source/Target/
DPlatform.cpp1666 auto src_fd = OpenFile(src_file_spec, File::eOpenOptionRead, in DownloadModuleSlice() local
1682 ReadFile(src_fd, offset, &buffer[0], to_read, error); in DownloadModuleSlice()
1695 CloseFile(src_fd, close_error); // Ignoring close error. in DownloadModuleSlice()
/external/strace/tests/
Dbtrfs.c753 .src_fd = clone_fd, in btrfs_test_clone_ioctls()
775 (int) args.src_fd, args.src_offset, args.src_length, in btrfs_test_clone_ioctls()
/external/strace/tests-mx32/
Dbtrfs.c753 .src_fd = clone_fd, in btrfs_test_clone_ioctls()
775 (int) args.src_fd, args.src_offset, args.src_length, in btrfs_test_clone_ioctls()
/external/strace/tests-m32/
Dbtrfs.c753 .src_fd = clone_fd, in btrfs_test_clone_ioctls()
775 (int) args.src_fd, args.src_offset, args.src_length, in btrfs_test_clone_ioctls()
/external/crosvm/io_uring/src/
Dbindings.rs263 pub src_fd: i64, field

12