Lines Matching refs:pBuf
441 static inline ssize_t lsapi_read( int fd, void * pBuf, size_t len ) in lsapi_read() argument
446 ret = read( fd, (char *)pBuf, len ); in lsapi_read()
543 char * pBuf = (char *)realloc( pReq->m_pReqBuf, size ); in allocateBuf() local
544 if ( pBuf ) in allocateBuf()
546 pReq->m_pReqBuf = pBuf; in allocateBuf()
604 struct LSAPI_key_value_pair * pBuf; in allocateEnvList() local
609 pBuf = (struct LSAPI_key_value_pair *)realloc( *pEnvList, newSize * in allocateEnvList()
611 if ( pBuf ) in allocateEnvList()
613 *pEnvList = pBuf; in allocateEnvList()
1762 int LSAPI_ReqBodyGetLine_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen, int *getLF ) in LSAPI_ReqBodyGetLine_r() argument
1766 char * pBufEnd = pBuf + bufLen - 1; in LSAPI_ReqBodyGetLine_r()
1767 char * pBufCur = pBuf; in LSAPI_ReqBodyGetLine_r()
1770 if (!pReq || pReq->m_fd == -1 || !pBuf || !getLF) in LSAPI_ReqBodyGetLine_r()
1805 return pBufCur - pBuf; in LSAPI_ReqBodyGetLine_r()
1809 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen ) in LSAPI_ReadReqBody_r() argument
1814 if (!pReq || pReq->m_fd == -1 || !pBuf || (ssize_t)bufLen < 0) in LSAPI_ReadReqBody_r()
1830 memmove( pBuf, pReq->m_pReqBuf + pReq->m_bufProcessed, len ); in LSAPI_ReadReqBody_r()
1833 pBuf += len; in LSAPI_ReadReqBody_r()
1838 len = lsapi_read( pReq->m_fd, pBuf, bufLen ); in LSAPI_ReadReqBody_r()
1842 pBuf += len; in LSAPI_ReadReqBody_r()
1858 ssize_t LSAPI_Write_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_r() argument
1868 if (!pReq || !pBuf) in LSAPI_Write_r()
1892 memmove( pReq->m_pRespBufPos, pBuf + skip, len - skip ); in LSAPI_Write_r()
1899 p = pBuf + skip; in LSAPI_Write_r()
1900 pEnd = pBuf + len; in LSAPI_Write_r()
1944 return p - pBuf; in LSAPI_Write_r()
2110 ssize_t LSAPI_Write_Stderr_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_Stderr_r() argument
2124 return write( 2, pBuf, len ); in LSAPI_Write_Stderr_r()
2130 p = pBuf; in LSAPI_Write_Stderr_r()
2131 pEnd = pBuf + len; in LSAPI_Write_Stderr_r()
2159 return p - pBuf; in LSAPI_Write_Stderr_r()
2535 int LSAPI_AppendRespHeader_r( LSAPI_Request * pReq, const char * pBuf, int len ) in LSAPI_AppendRespHeader_r() argument
2537 if ( !pReq || !pBuf || len <= 0 || len > LSAPI_RESP_HTTP_HEADER_MAX ) in LSAPI_AppendRespHeader_r()
2545 char ch = *(pBuf + len - 1 ); in LSAPI_AppendRespHeader_r()
2560 memmove( pReq->m_pRespHeaderBufPos, pBuf, len ); in LSAPI_AppendRespHeader_r()
2953 char * pBuf; in lsapi_init_children_status() local
2963 pBuf =( char*) mmap( NULL, size, PROT_READ | PROT_WRITE, in lsapi_init_children_status()
2965 if ( pBuf == MAP_FAILED ) in lsapi_init_children_status()
2970 memset( pBuf, 0, size ); in lsapi_init_children_status()
2971 g_prefork_server->m_pChildrenStatus = (lsapi_child_status *)pBuf; in lsapi_init_children_status()
2972 g_prefork_server->m_pChildrenStatusCur = (lsapi_child_status *)pBuf; in lsapi_init_children_status()
2973 g_prefork_server->m_pChildrenStatusEnd = (lsapi_child_status *)pBuf + max_children; in lsapi_init_children_status()