Home
last modified time | relevance | path

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

/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/server_configurable_flags/aconfigd/
Daconfigd_util.cpp71 android::base::unique_fd dst_fd(TEMP_FAILURE_RETRY( in CopyFile() local
73 if (dst_fd == -1) { in CopyFile()
83 if (sendfile(dst_fd, src_fd, nullptr, len) == -1) { in CopyFile()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp97 static bool forward_output(int src_fd, int dst_fd, pid_t expected_tid) { in forward_output() argument
129 if (!android::base::WriteFully(dst_fd, buf, rc)) { in forward_output()