Home
last modified time | relevance | path

Searched refs:source_fp (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/
Drecovery-persist.cpp67 FILE* source_fp = fopen(source, "re"); in copy_file() local
68 if (source_fp != nullptr) { in copy_file()
71 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { in copy_file()
74 check_and_fclose(source_fp, source); in copy_file()
/bootable/recovery/recovery_utils/
Dlogging.cpp186 FILE* source_fp = fopen(source.c_str(), "re"); in copy_log_file() local
187 if (source_fp != nullptr) { in copy_log_file()
189 fseeko(source_fp, tmplog_offset, SEEK_SET); // Since last write in copy_log_file()
193 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { in copy_log_file()
197 tmplog_offset = ftello(source_fp); in copy_log_file()
199 check_and_fclose(source_fp, source); in copy_log_file()