Lines Matching refs:LSAPI_Request
129 LSAPI_Request g_req = { -1, -1 };
134 void Flush_RespBuf_r( LSAPI_Request * pReq );
378 static inline int allocateBuf( LSAPI_Request * pReq, int size ) in allocateBuf()
392 static int allocateIovec( LSAPI_Request * pReq, int n ) in allocateIovec()
405 static int allocateRespHeaderBuf( LSAPI_Request * pReq, int size ) in allocateRespHeaderBuf()
517 static inline void fixEndian( LSAPI_Request * pReq ) in fixEndian()
531 static void fixHeaderIndexEndian( LSAPI_Request * pReq ) in fixHeaderIndexEndian()
691 static int LSAPI_perror_r( LSAPI_Request * pReq, const char * pErr1, const char *pErr2 ) in LSAPI_perror_r()
702 static int lsapi_lve_error( LSAPI_Request * pReq ) in lsapi_lve_error()
725 static int lsapi_enterLVE( LSAPI_Request * pReq, uid_t uid ) in lsapi_enterLVE()
746 static int lsapi_jailLVE( LSAPI_Request * pReq, uid_t uid, struct passwd * pw ) in lsapi_jailLVE()
792 static int setUID_LVE(LSAPI_Request * pReq, uid_t uid, gid_t gid, const char * pChroot) in setUID_LVE()
872 static int lsapi_suexec_auth( LSAPI_Request *pReq, in lsapi_suexec_auth()
891 static int lsapi_changeUGid( LSAPI_Request * pReq ) in lsapi_changeUGid()
965 static int parseContentLenFromHeader(LSAPI_Request * pReq) in parseContentLenFromHeader()
974 static int parseRequest( LSAPI_Request * pReq, int totalLen ) in parseRequest()
1119 static int readReq( LSAPI_Request * pReq ) in readReq()
1222 int LSAPI_InitRequest( LSAPI_Request * pReq, int fd ) in LSAPI_InitRequest()
1227 memset( pReq, 0, sizeof( LSAPI_Request ) ); in LSAPI_InitRequest()
1265 int LSAPI_Is_Listen_r( LSAPI_Request * pReq) in LSAPI_Is_Listen_r()
1272 int LSAPI_Accept_r( LSAPI_Request * pReq ) in LSAPI_Accept_r()
1330 int LSAPI_Finish_r( LSAPI_Request * pReq ) in LSAPI_Finish_r()
1360 void LSAPI_Reset_r( LSAPI_Request * pReq ) in LSAPI_Reset_r()
1371 int LSAPI_Release_r( LSAPI_Request * pReq ) in LSAPI_Release_r()
1385 char * LSAPI_GetHeader_r( LSAPI_Request * pReq, int headerIndex ) in LSAPI_GetHeader_r()
1402 static int readBodyToReqBuf( LSAPI_Request * pReq ) in readBodyToReqBuf()
1424 int LSAPI_ReqBodyGetChar_r( LSAPI_Request * pReq ) in LSAPI_ReqBodyGetChar_r()
1439 int LSAPI_ReqBodyGetLine_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen, int *getLF ) in LSAPI_ReqBodyGetLine_r()
1486 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen ) in LSAPI_ReadReqBody_r()
1535 ssize_t LSAPI_Write_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_r()
1685 ssize_t LSAPI_sendfile_r( LSAPI_Request * pReq, int fdIn, off_t* off, size_t size ) in LSAPI_sendfile_r()
1709 void Flush_RespBuf_r( LSAPI_Request * pReq ) in Flush_RespBuf_r()
1735 int LSAPI_Flush_r( LSAPI_Request * pReq ) in LSAPI_Flush_r()
1779 ssize_t LSAPI_Write_Stderr_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_Stderr_r()
1832 static char * GetHeaderVar( LSAPI_Request * pReq, const char * name ) in GetHeaderVar()
1892 char * LSAPI_GetEnv_r( LSAPI_Request * pReq, const char * name ) in LSAPI_GetEnv_r()
1925 int LSAPI_ForeachOrgHeader_r( LSAPI_Request * pReq, in LSAPI_ForeachOrgHeader_r()
2002 int LSAPI_ForeachHeader_r( LSAPI_Request * pReq, in LSAPI_ForeachHeader_r()
2090 int LSAPI_ForeachEnv_r( LSAPI_Request * pReq, in LSAPI_ForeachEnv_r()
2105 int LSAPI_ForeachSpecialEnv_r( LSAPI_Request * pReq, in LSAPI_ForeachSpecialEnv_r()
2122 int LSAPI_FinalizeRespHeaders_r( LSAPI_Request * pReq ) in LSAPI_FinalizeRespHeaders_r()
2149 int LSAPI_AppendRespHeader2_r( LSAPI_Request * pReq, const char * pHeaderName, in LSAPI_AppendRespHeader2_r()
2206 int LSAPI_AppendRespHeader_r( LSAPI_Request * pReq, const char * pBuf, int len ) in LSAPI_AppendRespHeader_r()
2711 static int lsapi_prefork_server_accept( lsapi_prefork_server * pServer, LSAPI_Request * pReq ) in lsapi_prefork_server_accept()
2894 int LSAPI_Prefork_Accept_r( LSAPI_Request * pReq ) in LSAPI_Prefork_Accept_r()
3266 int LSAPI_ErrResponse_r( LSAPI_Request * pReq, int code, const char ** pRespHeaders, in LSAPI_ErrResponse_r()