Lines Matching refs:fp
791 void ScreenRecoveryUI::ShowFile(FILE* fp) { in ShowFile() argument
793 offsets.push_back(ftello(fp)); in ShowFile()
797 fstat(fileno(fp), &sb); in ShowFile()
803 static_cast<int>(100 * (double(ftello(fp)) / double(sb.st_size))), in ShowFile()
816 fseek(fp, offsets.back(), SEEK_SET); in ShowFile()
819 if (feof(fp)) { in ShowFile()
822 offsets.push_back(ftello(fp)); in ShowFile()
828 int ch = getc(fp); in ShowFile()
842 FILE* fp = fopen_path(filename, "re"); in ShowFile() local
843 if (fp == nullptr) { in ShowFile()
856 ShowFile(fp); in ShowFile()
857 fclose(fp); in ShowFile()