Searched refs:src_fd (Results 1 – 4 of 4) sorted by relevance
/system/extras/boot_control_copy/ |
D | boot_control_copy.cpp | 90 static bool copy_data(int src_fd, int dst_fd, size_t num_bytes) { in copy_data() argument 99 num_read = read(src_fd, copy_buf, num_to_read); in copy_data() 127 int src_fd, dst_fd; in module_setActiveBootSlot() local 154 src_fd = boot_info_open_partition(src_name, &src_size, O_RDONLY); in module_setActiveBootSlot() 155 if (src_fd == -1) { in module_setActiveBootSlot() 163 close(src_fd); in module_setActiveBootSlot() 173 close(src_fd); in module_setActiveBootSlot() 178 if (!copy_data(src_fd, dst_fd, src_size)) { in module_setActiveBootSlot() 179 close(src_fd); in module_setActiveBootSlot() 189 close(src_fd); in module_setActiveBootSlot()
|
/system/server_configurable_flags/aconfigd/ |
D | aconfigd_util.cpp | 59 android::base::unique_fd src_fd( in CopyFile() local 61 if (src_fd == -1) { in CopyFile() 78 if (fstat(src_fd.get(), &st) == -1) { in CopyFile() 83 if (sendfile(dst_fd, src_fd, nullptr, len) == -1) { in CopyFile()
|
/system/core/debuggerd/handler/ |
D | debuggerd_fallback.cpp | 97 static bool forward_output(int src_fd, int dst_fd, pid_t expected_tid) { in forward_output() argument 100 .fd = src_fd, .events = POLLIN, in forward_output() 109 if (TEMP_FAILURE_RETRY(read(src_fd, &tid, sizeof(tid))) != sizeof(tid)) { in forward_output() 122 ssize_t rc = TEMP_FAILURE_RETRY(read(src_fd, buf, sizeof(buf))); in forward_output()
|
/system/apex/apexd/ |
D | apex_file.cpp | 407 unique_fd src_fd(open(src_path.c_str(), O_RDONLY | O_CLOEXEC)); in Decompress() local 408 if (src_fd.get() == -1) { in Decompress() 414 int ret = OpenArchiveFd(src_fd.get(), src_path.c_str(), &handle, false); in Decompress()
|