Searched refs:src_fd (Results 1 – 3 of 3) sorted by relevance
/system/core/libdiskconfig/ |
D | diskutils.c | 37 int src_fd = -1; in write_raw_image() local 45 if ((src_fd = open(src, O_RDONLY)) < 0) { in write_raw_image() 63 if ((nr_bytes = read(src_fd, buffer, sizeof(buffer))) < 0) { in write_raw_image() 107 close(src_fd); in write_raw_image() 115 if (src_fd >= 0) in write_raw_image() 116 close(src_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 108 num_read = read(src_fd, copy_buf, num_to_read); in copy_data() 138 int src_fd, dst_fd; in module_setActiveBootSlot() local 168 src_fd = boot_info_open_partition(src_name, &src_size, O_RDONLY); in module_setActiveBootSlot() 169 if (src_fd == -1) { in module_setActiveBootSlot() 177 close(src_fd); in module_setActiveBootSlot() 186 close(src_fd); in module_setActiveBootSlot() 191 if (!copy_data(src_fd, dst_fd, src_size)) { in module_setActiveBootSlot() 192 close(src_fd); in module_setActiveBootSlot() 203 close(src_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 140 .fd = src_fd, .events = POLLIN, in forward_output() 149 if (TEMP_FAILURE_RETRY(read(src_fd, &tid, sizeof(tid))) != sizeof(tid)) { in forward_output() 162 ssize_t rc = TEMP_FAILURE_RETRY(read(src_fd, buf, sizeof(buf))); in forward_output()
|