]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/Sec/Gasket.c
Port UnixPkg to also support X64. Currently only supports Unix x86_64 ABI. In the...
[mirror_edk2.git] / UnixPkg / Sec / Gasket.c
index 6c7b92fb5cc510447ab558ef144aaedb90474445..3d5db3b795e0545b800f7b5f7e555f9a937e78b1 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
 \r
-  Copyright (c) 2008-2009, Apple Inc. All rights reserved.\r
+  Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
   \r
-  All rights reserved. This program and the accompanying materials\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   http://opensource.org/licenses/bsd-license.php\r
@@ -74,20 +74,20 @@ GasketGetDayLight (void)
 \r
 \r
 int \r
-Gasketpoll (struct pollfd *pfd, int nfds, int timeout)\r
+Gasketpoll (struct pollfd *pfd, unsigned int nfds, int timeout)\r
 {\r
   return GasketUintnUintnUintn (poll, (UINTN)pfd, nfds, timeout);\r
 }\r
 \r
 \r
-int \r
+long\r
 Gasketread (int fd, void *buf, int count)\r
 {\r
   return  GasketUintnUintnUintn (read, fd, (UINTN)buf, count);\r
 }\r
 \r
 \r
-int \r
+long\r
 Gasketwrite (int fd, const void *buf, int count)\r
 {\r
   return  GasketUintnUintnUintn (write, fd, (UINTN)buf, count);\r
@@ -168,10 +168,11 @@ Gasketopendir (const char *pathname)
 }\r
 \r
 \r
-void *\r
+void \r
 Gasketrewinddir (DIR *dir)\r
 {\r
-  return (void *)(UINTN)GasketUintn (rewinddir, (UINTN)dir);\r
+  GasketUintn (rewinddir, (UINTN)dir);\r
+  return;\r
 }\r
 \r
 \r
@@ -372,7 +373,7 @@ GasketUnixPeCoffRelocateImageExtraAction (
 \r
 \r
 VOID\r
-GasketPeCoffLoaderUnloadImageExtraAction (\r
+GasketUnixPeCoffUnloadImageExtraAction (\r
   IN OUT PE_COFF_LOADER_IMAGE_CONTEXT  *ImageContext\r
   )\r
 {\r