Home
last modified time | relevance | path

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

/system/core/libdiskconfig/
Ddiskutils.c36 int dst_fd = -1; in write_raw_image() local
51 if ((dst_fd = open(dst, O_RDWR)) < 0) { in write_raw_image()
56 if (lseek64(dst_fd, offset, SEEK_SET) != offset) { in write_raw_image()
84 if ((tmp = write(dst_fd, buffer, nr_bytes)) < 0) { in write_raw_image()
102 if (dst_fd >= 0) in write_raw_image()
103 fsync(dst_fd); in write_raw_image()
108 if (dst_fd >= 0) in write_raw_image()
109 close(dst_fd); in write_raw_image()
113 if (dst_fd >= 0) in write_raw_image()
114 close(dst_fd); in write_raw_image()
/system/extras/boot_control_copy/
Dboot_control_copy.cpp90 static bool copy_data(int src_fd, int dst_fd, size_t num_bytes) { in copy_data() argument
110 num_written = write(dst_fd, copy_buf + offset, num_to_write); in copy_data()
127 int src_fd, dst_fd; in module_setActiveBootSlot() local
160 dst_fd = boot_info_open_partition("boot", &dst_size, O_RDWR); in module_setActiveBootSlot()
161 if (dst_fd == -1) { in module_setActiveBootSlot()
174 close(dst_fd); in module_setActiveBootSlot()
178 if (!copy_data(src_fd, dst_fd, src_size)) { in module_setActiveBootSlot()
180 close(dst_fd); in module_setActiveBootSlot()
184 if (fsync(dst_fd) != 0) { in module_setActiveBootSlot()
190 close(dst_fd); in module_setActiveBootSlot()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp139 static bool forward_output(int src_fd, int dst_fd, pid_t expected_tid) { in forward_output() argument
171 if (!android::base::WriteFully(dst_fd, buf, rc)) { in forward_output()