Home
last modified time | relevance | path

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

/bootable/recovery/
Drecovery-persist.cpp56 static void check_and_fclose(FILE *fp, const char *name) { in check_and_fclose() argument
57 fflush(fp); in check_and_fclose()
58 if (ferror(fp)) { in check_and_fclose()
61 fclose(fp); in check_and_fclose()
140 FILE* fp = fopen(mounts_file, "re"); in main() local
141 if (!fp) { in main()
147 while ((read = getline(&line, &len, fp)) != -1) { in main()
154 fclose(fp); in main()
/bootable/recovery/otautil/
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()
Dlogging.cpp75 void check_and_fclose(FILE* fp, const std::string& name) { in check_and_fclose() argument
76 fflush(fp); in check_and_fclose()
77 if (fsync(fileno(fp)) == -1) { in check_and_fclose()
80 if (ferror(fp)) { in check_and_fclose()
83 fclose(fp); in check_and_fclose()
/bootable/recovery/otautil/include/otautil/
Dlogging.h53 void check_and_fclose(FILE* fp, const std::string& name);
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp1070 void ScreenRecoveryUI::ShowFile(FILE* fp) { in ShowFile() argument
1072 offsets.push_back(ftello(fp)); in ShowFile()
1076 fstat(fileno(fp), &sb); in ShowFile()
1082 static_cast<int>(100 * (double(ftello(fp)) / double(sb.st_size))), in ShowFile()
1096 fseek(fp, offsets.back(), SEEK_SET); in ShowFile()
1099 if (feof(fp)) { in ShowFile()
1102 offsets.push_back(ftello(fp)); in ShowFile()
1108 int ch = getc(fp); in ShowFile()
1122 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(filename.c_str(), "re"), fclose); in ShowFile() local
1123 if (!fp) { in ShowFile()
[all …]