Lines Matching refs:LSAPI_Request
156 LSAPI_Request g_req =
163 void Flush_RespBuf_r( LSAPI_Request * pReq );
402 static void lsapi_close_connection(LSAPI_Request *pReq) in lsapi_close_connection()
511 static inline int allocateBuf( LSAPI_Request * pReq, int size ) in allocateBuf()
525 static int allocateIovec( LSAPI_Request * pReq, int n ) in allocateIovec()
539 static int allocateRespHeaderBuf( LSAPI_Request * pReq, int size ) in allocateRespHeaderBuf()
656 static inline void fixEndian( LSAPI_Request * pReq ) in fixEndian()
671 static void fixHeaderIndexEndian( LSAPI_Request * pReq ) in fixHeaderIndexEndian()
703 static int validateHeaders( LSAPI_Request * pReq ) in validateHeaders()
868 static int LSAPI_perror_r( LSAPI_Request * pReq, const char * pErr1, const char *pErr2 ) in LSAPI_perror_r()
883 static int lsapi_lve_error( LSAPI_Request * pReq ) in lsapi_lve_error()
907 static int lsapi_enterLVE( LSAPI_Request * pReq, uid_t uid ) in lsapi_enterLVE()
929 static int lsapi_jailLVE( LSAPI_Request * pReq, uid_t uid, struct passwd * pw ) in lsapi_jailLVE()
975 static int setUID_LVE(LSAPI_Request * pReq, uid_t uid, gid_t gid, const char * pChroot) in setUID_LVE()
1055 static int lsapi_suexec_auth( LSAPI_Request *pReq, in lsapi_suexec_auth()
1074 static int lsapi_changeUGid( LSAPI_Request * pReq ) in lsapi_changeUGid()
1160 static int parseContentLenFromHeader(LSAPI_Request * pReq) in parseContentLenFromHeader()
1169 static int parseRequest( LSAPI_Request * pReq, int totalLen ) in parseRequest()
1351 static int readReq( LSAPI_Request * pReq ) in readReq()
1465 int LSAPI_InitRequest( LSAPI_Request * pReq, int fd ) in LSAPI_InitRequest()
1470 memset( pReq, 0, sizeof( LSAPI_Request ) ); in LSAPI_InitRequest()
1510 int LSAPI_Is_Listen_r( LSAPI_Request * pReq) in LSAPI_Is_Listen_r()
1516 int LSAPI_Accept_r( LSAPI_Request * pReq ) in LSAPI_Accept_r()
1579 int LSAPI_Finish_r( LSAPI_Request * pReq ) in LSAPI_Finish_r()
1609 void LSAPI_Reset_r( LSAPI_Request * pReq ) in LSAPI_Reset_r()
1620 int LSAPI_Release_r( LSAPI_Request * pReq ) in LSAPI_Release_r()
1634 char * LSAPI_GetHeader_r( LSAPI_Request * pReq, int headerIndex ) in LSAPI_GetHeader_r()
1652 static int readBodyToReqBuf( LSAPI_Request * pReq ) in readBodyToReqBuf()
1674 int LSAPI_ReqBodyGetChar_r( LSAPI_Request * pReq ) in LSAPI_ReqBodyGetChar_r()
1688 int LSAPI_ReqBodyGetLine_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen, int *getLF ) in LSAPI_ReqBodyGetLine_r()
1735 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen ) in LSAPI_ReadReqBody_r()
1784 ssize_t LSAPI_Write_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_r()
1941 ssize_t LSAPI_sendfile_r( LSAPI_Request * pReq, int fdIn, off_t* off, size_t size ) in LSAPI_sendfile_r()
1965 void Flush_RespBuf_r( LSAPI_Request * pReq ) in Flush_RespBuf_r()
1989 int LSAPI_Flush_r( LSAPI_Request * pReq ) in LSAPI_Flush_r()
2032 ssize_t LSAPI_Write_Stderr_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_Stderr_r()
2085 static char * GetHeaderVar( LSAPI_Request * pReq, const char * name ) in GetHeaderVar()
2145 char * LSAPI_GetEnv_r( LSAPI_Request * pReq, const char * name ) in LSAPI_GetEnv_r()
2181 int LSAPI_ForeachOrgHeader_r( LSAPI_Request * pReq, in LSAPI_ForeachOrgHeader_r()
2257 int LSAPI_ForeachHeader_r( LSAPI_Request * pReq, in LSAPI_ForeachHeader_r()
2344 int LSAPI_ForeachEnv_r( LSAPI_Request * pReq, in LSAPI_ForeachEnv_r()
2358 int LSAPI_ForeachSpecialEnv_r( LSAPI_Request * pReq, in LSAPI_ForeachSpecialEnv_r()
2374 int LSAPI_FinalizeRespHeaders_r( LSAPI_Request * pReq ) in LSAPI_FinalizeRespHeaders_r()
2401 int LSAPI_AppendRespHeader2_r( LSAPI_Request * pReq, const char * pHeaderName, in LSAPI_AppendRespHeader2_r()
2457 int LSAPI_AppendRespHeader_r( LSAPI_Request * pReq, const char * pBuf, int len ) in LSAPI_AppendRespHeader_r()
2997 LSAPI_Request * pReq ) in lsapi_prefork_server_accept()
3200 int LSAPI_Prefork_Accept_r( LSAPI_Request * pReq ) in LSAPI_Prefork_Accept_r()
3704 int LSAPI_ErrResponse_r( LSAPI_Request * pReq, int code, const char ** pRespHeaders, in LSAPI_ErrResponse_r()