Searched refs:source_fp (Results 1 – 2 of 2) sorted by relevance
/bootable/recovery/ |
D | recovery-persist.cpp | 69 FILE* source_fp = fopen(source, "r"); 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()
|
D | recovery.cpp | 434 FILE* source_fp = fopen(source, "r"); in copy_log_file() local 435 if (source_fp != nullptr) { in copy_log_file() 437 fseek(source_fp, tmplog_offset, SEEK_SET); // Since last write in copy_log_file() 441 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { in copy_log_file() 445 tmplog_offset = ftell(source_fp); in copy_log_file() 447 check_and_fclose(source_fp, source); in copy_log_file()
|