Lines Matching refs:LSAPI_Request
172 LSAPI_Request g_req =
179 void Flush_RespBuf_r( LSAPI_Request * pReq );
437 static void lsapi_close_connection(LSAPI_Request *pReq) in lsapi_close_connection()
551 static inline int allocateBuf( LSAPI_Request * pReq, int size ) in allocateBuf()
565 static int allocateIovec( LSAPI_Request * pReq, int n ) in allocateIovec()
579 static int allocateRespHeaderBuf( LSAPI_Request * pReq, int size ) in allocateRespHeaderBuf()
696 static inline void fixEndian( LSAPI_Request * pReq ) in fixEndian()
711 static void fixHeaderIndexEndian( LSAPI_Request * pReq ) in fixHeaderIndexEndian()
743 static int validateHeaders( LSAPI_Request * pReq ) in validateHeaders()
908 static int LSAPI_perror_r( LSAPI_Request * pReq, const char * pErr1, const char *pErr2 ) in LSAPI_perror_r()
925 static int lsapi_lve_error( LSAPI_Request * pReq ) in lsapi_lve_error()
948 static int lsapi_enterLVE( LSAPI_Request * pReq, uid_t uid ) in lsapi_enterLVE()
967 static int lsapi_jailLVE( LSAPI_Request * pReq, uid_t uid, struct passwd * pw ) in lsapi_jailLVE()
1010 static int setUID_LVE(LSAPI_Request * pReq, uid_t uid, gid_t gid, const char * pChroot) in setUID_LVE()
1090 static int lsapi_suexec_auth( LSAPI_Request *pReq, in lsapi_suexec_auth()
1109 static int lsapi_changeUGid( LSAPI_Request * pReq ) in lsapi_changeUGid()
1195 static int parseContentLenFromHeader(LSAPI_Request * pReq) in parseContentLenFromHeader()
1204 static int parseRequest( LSAPI_Request * pReq, int totalLen ) in parseRequest()
1362 static int readReq( LSAPI_Request * pReq ) in readReq()
1480 int LSAPI_InitRequest( LSAPI_Request * pReq, int fd ) in LSAPI_InitRequest()
1485 memset( pReq, 0, sizeof( LSAPI_Request ) ); in LSAPI_InitRequest()
1525 int LSAPI_Is_Listen_r( LSAPI_Request * pReq) in LSAPI_Is_Listen_r()
1531 int LSAPI_Accept_r( LSAPI_Request * pReq ) in LSAPI_Accept_r()
1598 int LSAPI_Finish_r( LSAPI_Request * pReq ) in LSAPI_Finish_r()
1628 int LSAPI_End_Response_r(LSAPI_Request * pReq) in LSAPI_End_Response_r()
1663 void LSAPI_Reset_r( LSAPI_Request * pReq ) in LSAPI_Reset_r()
1674 int LSAPI_Release_r( LSAPI_Request * pReq ) in LSAPI_Release_r()
1688 char * LSAPI_GetHeader_r( LSAPI_Request * pReq, int headerIndex ) in LSAPI_GetHeader_r()
1706 static int readBodyToReqBuf( LSAPI_Request * pReq ) in readBodyToReqBuf()
1728 int LSAPI_ReqBodyGetChar_r( LSAPI_Request * pReq ) in LSAPI_ReqBodyGetChar_r()
1742 int LSAPI_ReqBodyGetLine_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen, int *getLF ) in LSAPI_ReqBodyGetLine_r()
1789 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen ) in LSAPI_ReadReqBody_r()
1838 ssize_t LSAPI_Write_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_r()
2033 ssize_t LSAPI_sendfile_r( LSAPI_Request * pReq, int fdIn, off_t* off, size_t size ) in LSAPI_sendfile_r()
2057 void Flush_RespBuf_r( LSAPI_Request * pReq ) in Flush_RespBuf_r()
2081 int LSAPI_Flush_r( LSAPI_Request * pReq ) in LSAPI_Flush_r()
2124 ssize_t LSAPI_Write_Stderr_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_Stderr_r()
2177 static char * GetHeaderVar( LSAPI_Request * pReq, const char * name ) in GetHeaderVar()
2237 char * LSAPI_GetEnv_r( LSAPI_Request * pReq, const char * name ) in LSAPI_GetEnv_r()
2273 int LSAPI_ForeachOrgHeader_r( LSAPI_Request * pReq, in LSAPI_ForeachOrgHeader_r()
2349 int LSAPI_ForeachHeader_r( LSAPI_Request * pReq, in LSAPI_ForeachHeader_r()
2436 int LSAPI_ForeachEnv_r( LSAPI_Request * pReq, in LSAPI_ForeachEnv_r()
2450 int LSAPI_ForeachSpecialEnv_r( LSAPI_Request * pReq, in LSAPI_ForeachSpecialEnv_r()
2466 int LSAPI_FinalizeRespHeaders_r( LSAPI_Request * pReq ) in LSAPI_FinalizeRespHeaders_r()
2493 int LSAPI_AppendRespHeader2_r( LSAPI_Request * pReq, const char * pHeaderName, in LSAPI_AppendRespHeader2_r()
2549 int LSAPI_AppendRespHeader_r( LSAPI_Request * pReq, const char * pBuf, int len ) in LSAPI_AppendRespHeader_r()
3148 LSAPI_Request * pReq ) in lsapi_prefork_server_accept()
3366 int LSAPI_Postfork_Child(LSAPI_Request * pReq) in LSAPI_Postfork_Child()
3407 int LSAPI_Postfork_Parent(LSAPI_Request * pReq) in LSAPI_Postfork_Parent()
3422 int LSAPI_Accept_Before_Fork(LSAPI_Request * pReq) in LSAPI_Accept_Before_Fork()
3566 int LSAPI_Prefork_Accept_r( LSAPI_Request * pReq ) in LSAPI_Prefork_Accept_r()
4107 int LSAPI_ErrResponse_r( LSAPI_Request * pReq, int code, const char ** pRespHeaders, in LSAPI_ErrResponse_r()