Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/
Drecovery-persist.cpp53 static void check_and_fclose(FILE *fp, const char *name) { in check_and_fclose() argument
54 fflush(fp); in check_and_fclose()
55 if (ferror(fp)) { in check_and_fclose()
58 fclose(fp); in check_and_fclose()
123 FILE* fp = fopen(mounts_file, "re"); in main() local
124 if (!fp) { in main()
130 while ((read = getline(&line, &len, fp)) != -1) { in main()
137 fclose(fp); in main()
Dmounts.cpp48 FILE* fp = setmntent("/proc/mounts", "re"); in scan_mounted_volumes() local
49 if (fp == NULL) { in scan_mounted_volumes()
53 while ((e = getmntent(fp)) != NULL) { in scan_mounted_volumes()
61 endmntent(fp); in scan_mounted_volumes()
Dscreen_ui.cpp791 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()
[all …]
/bootable/recovery/tests/manual/
Drecovery_test.cpp144 fp = fopen(file_path.c_str(), "rbe"); in SetUp()
145 ASSERT_NE(nullptr, fp); in SetUp()
148 size_t bytesRead = fread(header, 1, sizeof(header), fp); in SetUp()
158 png_init_io(png_ptr, fp); in SetUp()
182 if (fp != nullptr) { in TearDown()
183 fclose(fp); in TearDown()
192 FILE* fp; member in ResourceTest