Lines Matching refs:m_fd

1112         if ( g_req.m_fd != -1 )  in lsapi_sigalarm()
1113 write_req_received_notification( g_req.m_fd ); in lsapi_sigalarm()
1185 len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf, pReq->m_reqBufSize ); in readReq()
1211 … len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf + pReq->m_bufRead, packetLen - pReq->m_bufRead ); in readReq()
1234 return notify_req_received( pReq->m_fd ); in readReq()
1304 pReq->m_fd = fd; in LSAPI_InitRequest()
1309 pReq->m_fd = -1; in LSAPI_InitRequest()
1340 if ( pReq->m_fd == -1 ) in LSAPI_Accept_r()
1345 pReq->m_fd = accept( pReq->m_fdListen, in LSAPI_Accept_r()
1347 if ( pReq->m_fd == -1 ) in LSAPI_Accept_r()
1356 lsapi_set_nblock( pReq->m_fd , 0 ); in LSAPI_Accept_r()
1359 setsockopt(pReq->m_fd, IPPROTO_TCP, TCP_NODELAY, in LSAPI_Accept_r()
1365 if ( notify_req_received( pReq->m_fd ) == -1 ) in LSAPI_Accept_r()
1375 lsapi_close( pReq->m_fd ); in LSAPI_Accept_r()
1376 pReq->m_fd = -1; in LSAPI_Accept_r()
1392 if ( pReq->m_fd != -1 ) in LSAPI_Finish_r()
1472 len = lsapi_read( pReq->m_fd, pReq->m_pReqBuf + pReq->m_bufRead, len ); in readBodyToReqBuf()
1481 if (!pReq || (pReq->m_fd ==-1) ) in LSAPI_ReqBodyGetChar_r()
1502 if (!pReq || (pReq->m_fd ==-1) ||( !pBuf )|| !getLF ) in LSAPI_ReqBodyGetLine_r()
1546 if (!pReq || (pReq->m_fd ==-1) || ( !pBuf )) in LSAPI_ReadReqBody_r()
1570 len = lsapi_read( pReq->m_fd, pBuf, bufLen ); in LSAPI_ReadReqBody_r()
1600 if ( !pReq || !pBuf || (pReq->m_fd == -1) ) in LSAPI_Write_r()
1743 if ( !pReq || (pReq->m_fd == -1) || fdIn == -1 ) in LSAPI_sendfile_r()
1757 …if (write(pReq->m_fd, (const char *) pHeader, LSAPI_PACKET_HEADER_LEN ) != LSAPI_PACKET_HEADER_LE… in LSAPI_sendfile_r()
1760 return gsendfile( pReq->m_fd, fdIn, off, size ); in LSAPI_sendfile_r()
1799 if ( pReq->m_fd == -1 ) in LSAPI_Flush_r()
1819 ret = lsapi_writev( pReq->m_fd, &pReq->m_pIovecToWrite, in LSAPI_Flush_r()
1823 lsapi_close( pReq->m_fd ); in LSAPI_Flush_r()
1824 pReq->m_fd = -1; in LSAPI_Flush_r()
1847 if (( pReq->m_fd == -1 )||(pReq->m_fd == pReq->m_fdListen )) in LSAPI_Write_Stderr_r()
1875 ret = lsapi_writev( pReq->m_fd, &pIov, in LSAPI_Write_Stderr_r()
1879 lsapi_close( pReq->m_fd ); in LSAPI_Write_Stderr_r()
1880 pReq->m_fd = -1; in LSAPI_Write_Stderr_r()
2475 int m_fd; member
2530 g_prefork_server->m_fd = fd; in LSAPI_Set_Server_fd()
2836 FD_SET( pServer->m_fd, &readfds ); in lsapi_prefork_server_accept()
2838 if ((ret = (*g_fnSelect)(pServer->m_fd+1, &readfds, NULL, NULL, &timeout)) == 1 ) in lsapi_prefork_server_accept()
2863 pReq->m_fd = lsapi_accept( pServer->m_fd ); in lsapi_prefork_server_accept()
2864 if ( pReq->m_fd != -1 ) in lsapi_prefork_server_accept()
2888 lsapi_set_nblock( pReq->m_fd, 0 ); in lsapi_prefork_server_accept()
2901 lsapi_notify_pid( pReq->m_fd ); in lsapi_prefork_server_accept()
2921 close( pReq->m_fd ); in lsapi_prefork_server_accept()
2922 pReq->m_fd = -1; in lsapi_prefork_server_accept()
2961 if ( g_prefork_server->m_fd != -1 ) in LSAPI_Prefork_Accept_r()
2976 if ( pReq->m_fd != -1 ) in LSAPI_Prefork_Accept_r()
2978 fd = pReq->m_fd; in LSAPI_Prefork_Accept_r()
3023 pReq->m_fd = lsapi_accept( pReq->m_fdListen ); in LSAPI_Prefork_Accept_r()
3024 if ( pReq->m_fd != -1 ) in LSAPI_Prefork_Accept_r()
3026 fd = pReq->m_fd; in LSAPI_Prefork_Accept_r()
3035 if ( notify_req_received( pReq->m_fd ) == -1 ) in LSAPI_Prefork_Accept_r()
3063 lsapi_close( pReq->m_fd ); in LSAPI_Prefork_Accept_r()
3064 pReq->m_fd = -1; in LSAPI_Prefork_Accept_r()