/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Strip/ |
D | strip.c | 94 FILE *InFile; in main() local 106 InFile = fopen (argv[1], "rb"); in main() 109 if (!InFile) { in main() 119 fseek (InFile, 0, SEEK_END); in main() 120 FileSize = ftell (InFile); in main() 127 fseek (InFile, 0, SEEK_SET); in main() 135 fread (Buffer, 1, FileSize, InFile); in main() 143 fclose (InFile); in main()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenCrc32/ |
D | GenCrc32.c | 136 FILE *InFile; in main() local 147 InFile = NULL; in main() 279 InFile = fopen (LongFilePath (InputFileName), "rb"); in main() 280 if (InFile == NULL) { in main() 285 fseek (InFile, 0, SEEK_END); in main() 286 FileSize = ftell (InFile); in main() 287 fseek (InFile, 0, SEEK_SET); in main() 295 fread (FileBuffer, 1, FileSize, InFile); in main() 296 fclose (InFile); in main()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenSection/ |
D | GenSection.c | 200 FILE *InFile; in GenSectionCommonLeafSection() local 216 InFile = fopen (InputFileName[0], "rb"); in GenSectionCommonLeafSection() 217 if (InFile == NULL) { in GenSectionCommonLeafSection() 227 fseek (InFile, 0, SEEK_END); in GenSectionCommonLeafSection() 228 fgetpos (InFile, &InputFileLength); in GenSectionCommonLeafSection() 229 fseek (InFile, 0, SEEK_SET); in GenSectionCommonLeafSection() 258 if (fread (Buffer, (size_t) InputFileLength, 1, InFile) != 1) { in GenSectionCommonLeafSection() 271 fclose (InFile); in GenSectionCommonLeafSection() 315 FILE *InFile; in GetSectionContents() local 333 InFile = fopen (InputFileName[Index], "rb"); in GetSectionContents() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenDepex/ |
D | GenDepex.c | 232 IN FILE *InFile, in GenerateDependencyExpression() argument 359 Results = (UINTN) fseek (InFile, 0, SEEK_END); in GenerateDependencyExpression() 366 FileSize = ftell (InFile); in GenerateDependencyExpression() 379 Results = (UINTN) fclose (InFile); in GenerateDependencyExpression() 392 Results = (UINTN) fseek (InFile, 0, SEEK_SET); in GenerateDependencyExpression() 399 fread (Buffer, FileSize, 1, InFile); in GenerateDependencyExpression() 418 Results = (UINTN) fclose (InFile); in GenerateDependencyExpression() 453 Results = (UINTN) fclose (InFile); in GenerateDependencyExpression() 474 Results = (UINTN) fclose (InFile); in GenerateDependencyExpression() 805 Results = (UINTN) fclose (InFile); in GenerateDependencyExpression() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/EfiRom/ |
D | EfiRom.c | 201 FILE_LIST *InFile, in ProcessBinFile() argument 241 if ((InFptr = fopen (LongFilePath (InFile->FileName), "rb")) == NULL) { in ProcessBinFile() 242 Error (NULL, 0, 0001, "Error opening file", InFile->FileName); in ProcessBinFile() 278 …001, "Invalid", "Option ROM image %s size exceeds limit of 0x%X bytes.", InFile->FileName, MAX_OPT… in ProcessBinFile() 343 if ((InFile->Next == NULL) && (mOptions.NoLast == 0)) { in ProcessBinFile() 399 Error (NULL, 0, 0003, "Error", "Error parsing file: %s", InFile->FileName); in ProcessBinFile() 409 FILE_LIST *InFile, in ProcessEfiFile() argument 455 if ((InFptr = fopen (LongFilePath (InFile->FileName), "rb")) == NULL) { in ProcessEfiFile() 456 Error (NULL, 0, 0001, "Open file error", "Error opening file: %s", InFile->FileName); in ProcessEfiFile() 513 Error (NULL, 0, 0004, "Error reading file", "File %s", InFile->FileName); in ProcessEfiFile() [all …]
|
D | EfiRom.h | 240 FILE_LIST *InFile, 270 FILE_LIST *InFile, 295 FILE_LIST *InFile
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/EfiRom/ |
D | EfiRom.c | 179 FILE_LIST *InFile, 189 FILE_LIST *InFile, 196 FILE_LIST *InFile 410 FILE_LIST *InFile, in ProcessBinFile() argument 447 if ((InFptr = fopen (InFile->FileName, "rb")) == NULL) { in ProcessBinFile() 448 fprintf (stdout, "ERROR: Failed to open input file %s\n", InFile->FileName); in ProcessBinFile() 533 InFile->FileName, in ProcessBinFile() 549 if ((InFile->Next == NULL) && (mOptions.NoLast == 0)) { in ProcessBinFile() 580 fprintf (stdout, "Error processing binary file %s\n", InFile->FileName); in ProcessBinFile() 590 FILE_LIST *InFile, in ProcessEfiFile() argument [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFfs/ |
D | GenFfs.c | 281 FILE *InFile; in GetSectionContents() local 311 InFile = fopen (LongFilePath (InputFileName[Index]), "rb"); in GetSectionContents() 312 if (InFile == NULL) { in GetSectionContents() 317 fseek (InFile, 0, SEEK_END); in GetSectionContents() 318 FileSize = ftell (InFile); in GetSectionContents() 319 fseek (InFile, 0, SEEK_SET); in GetSectionContents() 332 fread (&TempSectHeader, 1, HeaderSize, InFile); in GetSectionContents() 335 fread (&TeHeader, 1, sizeof (TeHeader), InFile); in GetSectionContents() 342 fseek (InFile, 0, SEEK_SET); in GetSectionContents() 344 fread (&GuidSectHeader2, 1, sizeof (GuidSectHeader2), InFile); in GetSectionContents() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenSec/ |
D | GenSec.c | 262 FILE *InFile; in GenSectionCommonLeafSection() local 279 InFile = fopen (LongFilePath (InputFileName[0]), "rb"); in GenSectionCommonLeafSection() 280 if (InFile == NULL) { in GenSectionCommonLeafSection() 290 fseek (InFile, 0, SEEK_END); in GenSectionCommonLeafSection() 291 InputFileLength = ftell (InFile); in GenSectionCommonLeafSection() 292 fseek (InFile, 0, SEEK_SET); in GenSectionCommonLeafSection() 331 if (fread (Buffer + HeaderLength, (size_t) InputFileLength, 1, InFile) != 1) { in GenSectionCommonLeafSection() 344 fclose (InFile); in GenSectionCommonLeafSection() 429 FILE *InFile; in GetSectionContents() local 469 InFile = fopen (LongFilePath (InputFileName[Index]), "rb"); in GetSectionContents() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFfsFile/ |
D | GenFfsFile.c | 1127 FILE *InFile; in ProcessScript() local 1371 InFile = fopen (FileName, "rb"); in ProcessScript() 1372 if (InFile == NULL) { in ProcessScript() 1379 fread (&ByteBuffer, sizeof (UINT8), 1, InFile); in ProcessScript() 1380 while (!feof (InFile)) { in ProcessScript() 1382 fread (&ByteBuffer, sizeof (UINT8), 1, InFile); in ProcessScript() 1385 fclose (InFile); in ProcessScript() 1386 InFile = NULL; in ProcessScript()
|