Lines Matching refs:f
537 FILE* f = fopen(dest_path, "wb"); in PackageExtractFileFn() local
538 if (f == NULL) { in PackageExtractFileFn()
543 success = mzExtractZipEntryToFile(za, entry, fileno(f)); in PackageExtractFileFn()
544 fclose(f); in PackageExtractFileFn()
970 FILE* f = fopen(filename, "rb"); in FileGetPropFn() local
971 if (f == NULL) { in FileGetPropFn()
977 if (fread(buffer, 1, st.st_size, f) != st.st_size) { in FileGetPropFn()
980 fclose(f); in FileGetPropFn()
985 fclose(f); in FileGetPropFn()
1086 FILE* f = fopen(filename, "rb"); in WriteRawImageFn() local
1087 if (f == NULL) { in WriteRawImageFn()
1097 while (success && (read = fread(buffer, 1, BUFSIZ, f)) > 0) { in WriteRawImageFn()
1102 fclose(f); in WriteRawImageFn()
1436 FILE* f = fopen(filename, "r+b"); in RebootNowFn() local
1437 fseek(f, offsetof(struct bootloader_message, command), SEEK_SET); in RebootNowFn()
1438 fwrite(buffer, sizeof(((struct bootloader_message*)0)->command), 1, f); in RebootNowFn()
1439 fclose(f); in RebootNowFn()
1478 FILE* f = fopen(filename, "r+b"); in SetStageFn() local
1479 fseek(f, offsetof(struct bootloader_message, stage), SEEK_SET); in SetStageFn()
1486 fwrite(stagestr, to_write, 1, f); in SetStageFn()
1487 fclose(f); in SetStageFn()
1504 FILE* f = fopen(filename, "rb"); in GetStageFn() local
1505 fseek(f, offsetof(struct bootloader_message, stage), SEEK_SET); in GetStageFn()
1506 fread(buffer, sizeof(buffer), 1, f); in GetStageFn()
1507 fclose(f); in GetStageFn()