address for the file\r
@param [in] pErrno Address of the errno variable\r
\r
- @return A pointer to the socket protocol structure or NULL if\r
+ @return A pointer to the EFI_SOCKET_PROTOCOL structure or NULL if\r
an invalid file descriptor was passed in.\r
\r
**/\r
/**\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
+ @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
+ In the case of failure, ::errno contains more information.\r
\r
**/\r
-INT32\r
+int\r
+EFIAPI\r
BslSocketClose (\r
struct __filedes * pDescriptor\r
);\r
/**\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
\r
**/\r
short\r
+EFIAPI\r
BslSocketPoll (\r
IN struct __filedes * pDescriptor,\r
IN short Events\r
/**\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
@param [in] pBuffer Address of the data\r
\r
@return The number of bytes written 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
BslSocketWrite (\r
struct __filedes *pDescriptor,\r
off_t * pOffset,\r
\r
@param [in] pErrno Address of the errno variable\r
\r
- @return A pointer to the socket protocol structure or NULL if\r
+ @return A pointer to the EFI_SOCKET_PROTOCOL structure or NULL if\r
an invalid file descriptor was passed in.\r
\r
**/\r