Lines Matching refs:pBuf

415 static inline ssize_t lsapi_read( int fd, void * pBuf, size_t len )  in lsapi_read()  argument
420 ret = read( fd, (char *)pBuf, len ); in lsapi_read()
513 char * pBuf = (char *)realloc( pReq->m_pReqBuf, size ); in allocateBuf() local
514 if ( pBuf ) in allocateBuf()
516 pReq->m_pReqBuf = pBuf; in allocateBuf()
574 struct LSAPI_key_value_pair * pBuf; in allocateEnvList() local
579 pBuf = (struct LSAPI_key_value_pair *)realloc( *pEnvList, newSize * in allocateEnvList()
581 if ( pBuf ) in allocateEnvList()
583 *pEnvList = pBuf; in allocateEnvList()
1688 int LSAPI_ReqBodyGetLine_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen, int *getLF ) in LSAPI_ReqBodyGetLine_r() argument
1692 char * pBufEnd = pBuf + bufLen - 1; in LSAPI_ReqBodyGetLine_r()
1693 char * pBufCur = pBuf; in LSAPI_ReqBodyGetLine_r()
1696 if (!pReq || pReq->m_fd == -1 || !pBuf || !getLF) in LSAPI_ReqBodyGetLine_r()
1731 return pBufCur - pBuf; in LSAPI_ReqBodyGetLine_r()
1735 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen ) in LSAPI_ReadReqBody_r() argument
1740 if (!pReq || pReq->m_fd == -1 || !pBuf || (ssize_t)bufLen < 0) in LSAPI_ReadReqBody_r()
1756 memmove( pBuf, pReq->m_pReqBuf + pReq->m_bufProcessed, len ); in LSAPI_ReadReqBody_r()
1759 pBuf += len; in LSAPI_ReadReqBody_r()
1764 len = lsapi_read( pReq->m_fd, pBuf, bufLen ); in LSAPI_ReadReqBody_r()
1768 pBuf += len; in LSAPI_ReadReqBody_r()
1784 ssize_t LSAPI_Write_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_r() argument
1794 if ( !pReq || !pBuf || (pReq->m_fd == -1) ) in LSAPI_Write_r()
1814 memmove( pReq->m_pRespBufPos, pBuf + skip, len - skip ); in LSAPI_Write_r()
1821 p = pBuf + skip; in LSAPI_Write_r()
1822 pEnd = pBuf + len; in LSAPI_Write_r()
1866 return p - pBuf; in LSAPI_Write_r()
2032 ssize_t LSAPI_Write_Stderr_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_Stderr_r() argument
2046 return write( 2, pBuf, len ); in LSAPI_Write_Stderr_r()
2052 p = pBuf; in LSAPI_Write_Stderr_r()
2053 pEnd = pBuf + len; in LSAPI_Write_Stderr_r()
2081 return p - pBuf; in LSAPI_Write_Stderr_r()
2457 int LSAPI_AppendRespHeader_r( LSAPI_Request * pReq, const char * pBuf, int len ) in LSAPI_AppendRespHeader_r() argument
2459 if ( !pReq || !pBuf || len <= 0 || len > LSAPI_RESP_HTTP_HEADER_MAX ) in LSAPI_AppendRespHeader_r()
2467 char ch = *(pBuf + len - 1 ); in LSAPI_AppendRespHeader_r()
2482 memmove( pReq->m_pRespHeaderBufPos, pBuf, len ); in LSAPI_AppendRespHeader_r()
2848 char * pBuf; in lsapi_init_children_status() local
2851 pBuf =( char*) mmap( NULL, size, PROT_READ | PROT_WRITE, in lsapi_init_children_status()
2853 if ( pBuf == MAP_FAILED ) in lsapi_init_children_status()
2858 memset( pBuf, 0, size ); in lsapi_init_children_status()
2859 g_prefork_server->m_pChildrenStatus = (lsapi_child_status *)pBuf; in lsapi_init_children_status()
2860 g_prefork_server->m_pChildrenStatusCur = (lsapi_child_status *)pBuf; in lsapi_init_children_status()
2861 g_prefork_server->m_pChildrenStatusEnd = (lsapi_child_status *)pBuf + max_children; in lsapi_init_children_status()