Searched refs:source_fp (Results 1 – 2 of 2) sorted by relevance
/bootable/recovery/ |
D | recovery-persist.cpp | 69 FILE* source_fp = fopen(source, "re"); in copy_file() local 70 if (source_fp != nullptr) { in copy_file() 73 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { in copy_file() 76 check_and_fclose(source_fp, source); in copy_file()
|
/bootable/recovery/otautil/ |
D | logging.cpp | 187 FILE* source_fp = fopen(source.c_str(), "re"); in copy_log_file() local 188 if (source_fp != nullptr) { in copy_log_file() 190 fseeko(source_fp, tmplog_offset, SEEK_SET); // Since last write in copy_log_file() 194 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { in copy_log_file() 198 tmplog_offset = ftello(source_fp); in copy_log_file() 200 check_and_fclose(source_fp, source); in copy_log_file()
|