]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/BsdSocketLib/read.c
Fix a bug about the iSCSI DHCP dependency issue.
[mirror_edk2.git] / StdLib / BsdSocketLib / read.c
index 6f8d42974bc033c8faa86073b9c7bec9eaf79044..f4348a51dc34562fe971fc9b78be82358142d623 100644 (file)
 /**\r
   Read support routine for sockets\r
 \r
+  The BslSocketRead routine is called indirectly by the read file\r
+  system routine.  This routine is typically used for SOCK_STREAM\r
+  because it waits for receive data from the target system specified\r
+  in the ::connect call.\r
+\r
   @param [in] pDescriptor   Descriptor address for the file\r
   @param [in] pOffset       File offset\r
   @param [in] LengthInBytes Number of bytes to read\r
   @param [in] pBuffer       Address of the buffer to receive the data\r
 \r
   @return   The number of bytes read or -1 if an error occurs.\r
+            In the case of an error, ::errno contains more details.\r
 \r
 **/\r
 ssize_t\r
+EFIAPI\r
 BslSocketRead (\r
   struct __filedes *pDescriptor,\r
   off_t * pOffset,\r