Home
last modified time | relevance | path

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

/bootable/recovery/mtdutils/
Dmounts.c63 FILE* fp; in scan_mounted_volumes() local
87 fp = setmntent(PROC_MOUNTS_FILENAME, "r"); in scan_mounted_volumes()
88 if (fp == NULL) { in scan_mounted_volumes()
91 while ((mentry = getmntent(fp)) != NULL) { in scan_mounted_volumes()
98 endmntent(fp); in scan_mounted_volumes()
/bootable/recovery/
Drecovery.cpp165 FILE *fp = fopen(path, mode); in fopen_path() local
166 return fp; in fopen_path()
182 check_and_fclose(FILE *fp, const char *name) { in check_and_fclose() argument
183 fflush(fp); in check_and_fclose()
184 if (ferror(fp)) LOGE("Error in %s\n(%s)\n", name, strerror(errno)); in check_and_fclose()
185 fclose(fp); in check_and_fclose()
226 FILE *fp = fopen_path(COMMAND_FILE, "r"); in get_args() local
227 if (fp != NULL) { in get_args()
235 if (!fgets(buf, sizeof(buf), fp)) break; in get_args()
244 check_and_fclose(fp, COMMAND_FILE); in get_args()
[all …]
Dscreen_ui.cpp558 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()
[all …]
/bootable/recovery/minui/
Dresources.cpp59 FILE* fp = fopen(resPath, "rb"); in open_png() local
60 if (fp == NULL) { in open_png()
65 bytesRead = fread(header, 1, sizeof(header), fp); in open_png()
93 png_init_io(*png_ptr, fp); in open_png()
127 if (fp != NULL) { in open_png()
128 fclose(fp); in open_png()