]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/BsdSocketLib/close.c
Choose a better subnet mask value for the IPv4 address.
[mirror_edk2.git] / StdLib / BsdSocketLib / close.c
index 7d70e4f12647b75b1e2b471fcf3635fafa715eb8..f3f7e98cbace304c08678cfa70293799f5eb2df2 100644 (file)
@@ -18,9 +18,9 @@
 /**\r
   Worker routine to close the socket.\r
 \r
-  @param [in] pSocketProtocol   Socket protocol structure address\r
+  @param[in] pSocketProtocol   Socket protocol structure address\r
 \r
-  @param [in] pErrno            Address of the errno variable\r
+  @param[in] pErrno            Address of the ::errno variable\r
 \r
   @retval EFI_SUCCESS   Successfully closed the socket\r
 \r
@@ -83,13 +83,18 @@ BslSocketCloseWork (
 /**\r
   Close the socket\r
 \r
-  @param [in] pDescriptor Descriptor address for the file\r
+  The BslSocketClose routine is called indirectly from the close file\r
+  system routine.  This routine closes the socket and returns the\r
+  status to the caller.\r
 \r
-  @returns  This routine returns 0 upon success and -1 upon failure.\r
-            In the case of failure, errno contains more information.\r
+  @param[in] pDescriptor Descriptor address for the file\r
+\r
+  @return   This routine returns 0 upon success and -1 upon failure.\r
+            In the case of failure, ::errno contains more information.\r
 \r
 **/\r
 int\r
+EFIAPI\r
 BslSocketClose (\r
   struct __filedes * pDescriptor\r
   )\r