]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix for linux builds
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 31 Oct 2006 06:45:53 +0000 (06:45 +0000)
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 31 Oct 2006 06:45:53 +0000 (06:45 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1873 6f19259b-4bc3-4df7-8a09-765794883524

Tools/CCode/Source/GenBsfImage/GenBsfImage.c
Tools/CCode/Source/GenBsfImage/GenBsfImage.h

index 59d20d08f0f2ee47debd88cbcf13bf882c18e2a5..494f3495c638e954e102269634ae4f75646a8620 100644 (file)
@@ -1160,7 +1160,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
 \r
     return EFI_ABORTED;\r
   }\r
 \r
-  FileSize = _filelength (_fileno (Fp));\r
+  FileSize = _filelength (fileno (Fp));\r
 \r
   if ((BsfInfo->CompType == COMP_TYPE_FIT_PAL_B) || (BsfInfo->CompType == COMP_TYPE_FIT_PAL_A_SPECIFIC)) {\r
 \r
 \r
   if ((BsfInfo->CompType == COMP_TYPE_FIT_PAL_B) || (BsfInfo->CompType == COMP_TYPE_FIT_PAL_A_SPECIFIC)) {\r
 \r
@@ -1334,7 +1334,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
 \r
     return EFI_ABORTED;\r
   }\r
 \r
-  FileSize = _filelength (_fileno (Fp));\r
+  FileSize = _filelength (fileno (Fp));\r
   FileSize -= SIZE_OF_PAL_HEADER;\r
 \r
   if (BsfInfo->PreferredSize) {\r
   FileSize -= SIZE_OF_PAL_HEADER;\r
 \r
   if (BsfInfo->PreferredSize) {\r
@@ -1752,7 +1752,7 @@ Returns:
     printf ("\nERROR: Unable to open the file %s", FileName);\r
   }\r
 \r
     printf ("\nERROR: Unable to open the file %s", FileName);\r
   }\r
 \r
-  FileSize = _filelength (_fileno (Fp));\r
+  FileSize = _filelength (fileno (Fp));\r
 \r
   if (FileSize > 16) {\r
     return EFI_ABORTED;\r
 \r
   if (FileSize > 16) {\r
     return EFI_ABORTED;\r
@@ -2145,7 +2145,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
 \r
     return EFI_ABORTED;\r
   }\r
 \r
-  FirstFwVSize = _filelength (_fileno (Fp));\r
+  FirstFwVSize = _filelength (fileno (Fp));\r
   fseek (Fp, (long) (FirstFwVSize - (UINTN) (SIZE_IA32_RESET_VECT + SIZE_SALE_ENTRY_POINT)), SEEK_SET);\r
   NumByte = fwrite ((VOID *) StartAddressPtr, sizeof (UINT64), 1, Fp);\r
 \r
   fseek (Fp, (long) (FirstFwVSize - (UINTN) (SIZE_IA32_RESET_VECT + SIZE_SALE_ENTRY_POINT)), SEEK_SET);\r
   NumByte = fwrite ((VOID *) StartAddressPtr, sizeof (UINT64), 1, Fp);\r
 \r
@@ -2862,7 +2862,7 @@ Returns:
           return EFI_ABORTED;\r
         }\r
         \r
           return EFI_ABORTED;\r
         }\r
         \r
-        *BsfSize += _filelength (_fileno (Fp));\r
+        *BsfSize += _filelength (fileno (Fp));\r
         \r
         if (Fp) {\r
           fclose (Fp);\r
         \r
         if (Fp) {\r
           fclose (Fp);\r
@@ -2985,7 +2985,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
 \r
     return EFI_ABORTED;\r
   }\r
 \r
-  FileSize = _filelength (_fileno (Fp));\r
+  FileSize = _filelength (fileno (Fp));\r
 \r
   if (BsfInfo->PreferredSize) {\r
     if (FileSize > BsfInfo->CompSize) {\r
 \r
   if (BsfInfo->PreferredSize) {\r
     if (FileSize > BsfInfo->CompSize) {\r
@@ -3082,7 +3082,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
 \r
     return EFI_ABORTED;\r
   }\r
 \r
-  FileSize = _filelength (_fileno (Fp));\r
+  FileSize = _filelength (fileno (Fp));\r
 \r
   if (BsfInfo->PreferredSize) {\r
     if (FileSize > BsfInfo->CompSize) {\r
 \r
   if (BsfInfo->PreferredSize) {\r
     if (FileSize > BsfInfo->CompSize) {\r
index 1efbebcb1820578738a3e713ae074b8b33c0f291..63db1218d56de86a7af5ab03682d9db62c12d59a 100644 (file)
@@ -33,7 +33,6 @@ Abstract:
 #include <stdio.h>\r
 #include <stdlib.h>\r
 #include <string.h>\r
 #include <stdio.h>\r
 #include <stdlib.h>\r
 #include <string.h>\r
-#include <io.h>\r
 #include "assert.h"\r
 // #include "TianoCommon.h"\r
 #include "Common/FirmwareFileSystem.h"\r
 #include "assert.h"\r
 // #include "TianoCommon.h"\r
 #include "Common/FirmwareFileSystem.h"\r