Searched defs:dst_fd (Results 1 - 2 of 2) sorted by relevance
/system/core/libdiskconfig/ |
H A D | diskutils.c | 36 int dst_fd = -1; local 51 if ((dst_fd = open(dst, O_RDWR)) < 0) { 56 if (lseek64(dst_fd, offset, SEEK_SET) != offset) { 84 if ((tmp = write(dst_fd, buffer, nr_bytes)) < 0) { 102 if (dst_fd >= 0) 103 fsync(dst_fd); 108 if (dst_fd >= 0) 109 close(dst_fd); 113 if (dst_fd >= 0) 114 close(dst_fd); [all...] |
/system/extras/boot_control_copy/ |
H A D | boot_control_copy.c | 97 static bool copy_data(int src_fd, int dst_fd, size_t num_bytes) argument 119 num_written = write(dst_fd, copy_buf + offset, num_to_write); 137 int src_fd, dst_fd; local 173 dst_fd = boot_info_open_partition("boot", &dst_size, O_RDWR); 174 if (dst_fd == -1) { 186 close(dst_fd); 190 if (!copy_data(src_fd, dst_fd, src_size)) { 192 close(dst_fd); 196 if (fsync(dst_fd) != 0) { 203 close(dst_fd); [all...] |
Completed in 88 milliseconds