Lines Matching refs:fp
558 void ScreenRecoveryUI::ShowFile(FILE* fp) { in ShowFile() argument
560 offsets.push_back(ftell(fp)); in ShowFile()
564 fstat(fileno(fp), &sb); in ShowFile()
570 static_cast<int>(100 * (double(ftell(fp)) / double(sb.st_size))), in ShowFile()
583 fseek(fp, offsets.back(), SEEK_SET); in ShowFile()
586 if (feof(fp)) { in ShowFile()
589 offsets.push_back(ftell(fp)); in ShowFile()
595 int ch = getc(fp); in ShowFile()
609 FILE* fp = fopen_path(filename, "re"); in ShowFile() local
610 if (fp == nullptr) { in ShowFile()
624 ShowFile(fp); in ShowFile()
625 fclose(fp); in ShowFile()