X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=StdLib%2FBsdSocketLib%2Fread.c;h=f4348a51dc34562fe971fc9b78be82358142d623;hb=3e37da2f9df1e3fcd45f5fc38036a9afe942ec4f;hp=6f8d42974bc033c8faa86073b9c7bec9eaf79044;hpb=7dc1329100c370992cdd430359512443bd1ee9f2;p=mirror_edk2.git diff --git a/StdLib/BsdSocketLib/read.c b/StdLib/BsdSocketLib/read.c index 6f8d42974b..f4348a51dc 100644 --- a/StdLib/BsdSocketLib/read.c +++ b/StdLib/BsdSocketLib/read.c @@ -18,15 +18,22 @@ /** Read support routine for sockets + The BslSocketRead routine is called indirectly by the read file + system routine. This routine is typically used for SOCK_STREAM + because it waits for receive data from the target system specified + in the ::connect call. + @param [in] pDescriptor Descriptor address for the file @param [in] pOffset File offset @param [in] LengthInBytes Number of bytes to read @param [in] pBuffer Address of the buffer to receive the data @return The number of bytes read or -1 if an error occurs. + In the case of an error, ::errno contains more details. **/ ssize_t +EFIAPI BslSocketRead ( struct __filedes *pDescriptor, off_t * pOffset,