Lines Matching refs:bufLen
1763 int LSAPI_ReqBodyGetLine_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen, int *getLF ) in LSAPI_ReqBodyGetLine_r() argument
1767 char * pBufEnd = pBuf + bufLen - 1; in LSAPI_ReqBodyGetLine_r()
1810 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen ) in LSAPI_ReadReqBody_r() argument
1815 if (!pReq || pReq->m_fd == -1 || !pBuf || (ssize_t)bufLen < 0) in LSAPI_ReadReqBody_r()
1822 if ( total < (ssize_t)bufLen ) in LSAPI_ReadReqBody_r()
1823 bufLen = total; in LSAPI_ReadReqBody_r()
1829 if ( len > (ssize_t)bufLen ) in LSAPI_ReadReqBody_r()
1830 len = bufLen; in LSAPI_ReadReqBody_r()
1835 bufLen -= len; in LSAPI_ReadReqBody_r()
1837 while( bufLen > 0 ) in LSAPI_ReadReqBody_r()
1839 len = lsapi_read( pReq->m_fd, pBuf, bufLen ); in LSAPI_ReadReqBody_r()
1844 bufLen -= len; in LSAPI_ReadReqBody_r()
1864 ssize_t bufLen; in LSAPI_Write_r() local
1902 bufLen = pReq->m_pRespBufPos - pReq->m_pRespBuf; in LSAPI_Write_r()
1906 packetLen = toWrite + bufLen; in LSAPI_Write_r()
1910 toWrite = packetLen - bufLen; in LSAPI_Write_r()
1921 if ( bufLen > 0 ) in LSAPI_Write_r()
1924 pReq->m_pIovecCur->iov_len = bufLen; in LSAPI_Write_r()
1927 bufLen = 0; in LSAPI_Write_r()
2047 int bufLen = pReq->m_pRespBufPos - pReq->m_pRespBuf; in Flush_RespBuf_r() local
2050 bufLen + LSAPI_PACKET_HEADER_LEN ); in Flush_RespBuf_r()
2051 pReq->m_totalLen += bufLen + LSAPI_PACKET_HEADER_LEN; in Flush_RespBuf_r()
2057 if ( bufLen > 0 ) in Flush_RespBuf_r()
2060 pReq->m_pIovecCur->iov_len = bufLen; in Flush_RespBuf_r()
2063 bufLen = 0; in Flush_RespBuf_r()