Home
last modified time | relevance | path

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

/bootable/recovery/
Drecovery-persist.cpp54 static void check_and_fclose(FILE *fp, const char *name) { in check_and_fclose() argument
55 fflush(fp); in check_and_fclose()
56 if (ferror(fp)) { in check_and_fclose()
59 fclose(fp); in check_and_fclose()
124 FILE* fp = fopen(mounts_file, "re"); in main() local
125 if (!fp) { in main()
131 while ((read = getline(&line, &len, fp)) != -1) { in main()
138 fclose(fp); in main()
/bootable/recovery/updater/
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()
/bootable/recovery/recovery_utils/
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/recovery_ui/
Dscreen_ui.cpp1105 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()
[all …]
/bootable/recovery/recovery_utils/include/recovery_utils/
Dlogging.h53 void check_and_fclose(FILE* fp, const std::string& name);
/bootable/recovery/tests/testdata/
Drecovery_body3032 …?�0�C6��qG>`a ��P��.��.P��C�y<�#Ř��7-0��UָY�ݫ̟]�+W���Fs��ܕ�>��-fpVS�ۊ�'M��-Ȃ|3�}�f�"…
4623 …@��Fʱ̘��?�7]���g�A{D� p��^1���{� �Q����'?���K: $ �k~΄Q�=EY3�9�fp����N9ћ�R� _����…