Searched refs:dst_fd (Results 1 – 3 of 3) sorted by relevance
/system/core/libdiskconfig/ |
D | diskutils.c | 36 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/ |
D | boot_control_copy.cpp | 98 static bool copy_data(int src_fd, int dst_fd, size_t num_bytes) in copy_data() argument 120 num_written = write(dst_fd, copy_buf + offset, num_to_write); in copy_data() 138 int src_fd, dst_fd; in module_setActiveBootSlot() local 174 dst_fd = boot_info_open_partition("boot", &dst_size, O_RDWR); in module_setActiveBootSlot() 175 if (dst_fd == -1) { in module_setActiveBootSlot() 187 close(dst_fd); in module_setActiveBootSlot() 191 if (!copy_data(src_fd, dst_fd, src_size)) { in module_setActiveBootSlot() 193 close(dst_fd); in module_setActiveBootSlot() 197 if (fsync(dst_fd) != 0) { in module_setActiveBootSlot() 204 close(dst_fd); in module_setActiveBootSlot()
|
/system/core/debuggerd/handler/ |
D | debuggerd_fallback.cpp | 137 static bool forward_output(int src_fd, int dst_fd, pid_t expected_tid) { in forward_output() argument 169 if (!android::base::WriteFully(dst_fd, buf, rc)) { in forward_output()
|