Lines Matching refs:fp
1105 void ScreenRecoveryUI::ShowFile(FILE* fp) { in ShowFile() argument
1107 offsets.push_back(ftello(fp)); in ShowFile()
1111 fstat(fileno(fp), &sb); in ShowFile()
1117 static_cast<int>(100 * (double(ftello(fp)) / double(sb.st_size))), in ShowFile()
1131 fseek(fp, offsets.back(), SEEK_SET); in ShowFile()
1134 if (feof(fp)) { in ShowFile()
1137 offsets.push_back(ftello(fp)); in ShowFile()
1143 int ch = getc(fp); in ShowFile()
1157 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(filename.c_str(), "re"), fclose); in ShowFile() local
1158 if (!fp) { in ShowFile()
1171 ShowFile(fp.get()); in ShowFile()