Lines Matching refs:LSAPI_Request
172 LSAPI_Request g_req =
179 void Flush_RespBuf_r( LSAPI_Request * pReq );
421 static void lsapi_close_connection(LSAPI_Request *pReq) in lsapi_close_connection()
534 static inline int allocateBuf( LSAPI_Request * pReq, int size ) in allocateBuf()
548 static int allocateIovec( LSAPI_Request * pReq, int n ) in allocateIovec()
562 static int allocateRespHeaderBuf( LSAPI_Request * pReq, int size ) in allocateRespHeaderBuf()
679 static inline void fixEndian( LSAPI_Request * pReq ) in fixEndian()
694 static void fixHeaderIndexEndian( LSAPI_Request * pReq ) in fixHeaderIndexEndian()
726 static int validateHeaders( LSAPI_Request * pReq ) in validateHeaders()
891 static int LSAPI_perror_r( LSAPI_Request * pReq, const char * pErr1, const char *pErr2 ) in LSAPI_perror_r()
906 static int lsapi_lve_error( LSAPI_Request * pReq ) in lsapi_lve_error()
930 static int lsapi_enterLVE( LSAPI_Request * pReq, uid_t uid ) in lsapi_enterLVE()
952 static int lsapi_jailLVE( LSAPI_Request * pReq, uid_t uid, struct passwd * pw ) in lsapi_jailLVE()
998 static int setUID_LVE(LSAPI_Request * pReq, uid_t uid, gid_t gid, const char * pChroot) in setUID_LVE()
1078 static int lsapi_suexec_auth( LSAPI_Request *pReq, in lsapi_suexec_auth()
1097 static int lsapi_changeUGid( LSAPI_Request * pReq ) in lsapi_changeUGid()
1183 static int parseContentLenFromHeader(LSAPI_Request * pReq) in parseContentLenFromHeader()
1192 static int parseRequest( LSAPI_Request * pReq, int totalLen ) in parseRequest()
1374 static int readReq( LSAPI_Request * pReq ) in readReq()
1492 int LSAPI_InitRequest( LSAPI_Request * pReq, int fd ) in LSAPI_InitRequest()
1497 memset( pReq, 0, sizeof( LSAPI_Request ) ); in LSAPI_InitRequest()
1537 int LSAPI_Is_Listen_r( LSAPI_Request * pReq) in LSAPI_Is_Listen_r()
1543 int LSAPI_Accept_r( LSAPI_Request * pReq ) in LSAPI_Accept_r()
1610 int LSAPI_Finish_r( LSAPI_Request * pReq ) in LSAPI_Finish_r()
1640 int LSAPI_End_Response_r(LSAPI_Request * pReq) in LSAPI_End_Response_r()
1675 void LSAPI_Reset_r( LSAPI_Request * pReq ) in LSAPI_Reset_r()
1686 int LSAPI_Release_r( LSAPI_Request * pReq ) in LSAPI_Release_r()
1700 char * LSAPI_GetHeader_r( LSAPI_Request * pReq, int headerIndex ) in LSAPI_GetHeader_r()
1718 static int readBodyToReqBuf( LSAPI_Request * pReq ) in readBodyToReqBuf()
1740 int LSAPI_ReqBodyGetChar_r( LSAPI_Request * pReq ) in LSAPI_ReqBodyGetChar_r()
1754 int LSAPI_ReqBodyGetLine_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen, int *getLF ) in LSAPI_ReqBodyGetLine_r()
1801 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen ) in LSAPI_ReadReqBody_r()
1850 ssize_t LSAPI_Write_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_r()
2011 ssize_t LSAPI_sendfile_r( LSAPI_Request * pReq, int fdIn, off_t* off, size_t size ) in LSAPI_sendfile_r()
2035 void Flush_RespBuf_r( LSAPI_Request * pReq ) in Flush_RespBuf_r()
2059 int LSAPI_Flush_r( LSAPI_Request * pReq ) in LSAPI_Flush_r()
2102 ssize_t LSAPI_Write_Stderr_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_Stderr_r()
2155 static char * GetHeaderVar( LSAPI_Request * pReq, const char * name ) in GetHeaderVar()
2215 char * LSAPI_GetEnv_r( LSAPI_Request * pReq, const char * name ) in LSAPI_GetEnv_r()
2251 int LSAPI_ForeachOrgHeader_r( LSAPI_Request * pReq, in LSAPI_ForeachOrgHeader_r()
2327 int LSAPI_ForeachHeader_r( LSAPI_Request * pReq, in LSAPI_ForeachHeader_r()
2414 int LSAPI_ForeachEnv_r( LSAPI_Request * pReq, in LSAPI_ForeachEnv_r()
2428 int LSAPI_ForeachSpecialEnv_r( LSAPI_Request * pReq, in LSAPI_ForeachSpecialEnv_r()
2444 int LSAPI_FinalizeRespHeaders_r( LSAPI_Request * pReq ) in LSAPI_FinalizeRespHeaders_r()
2471 int LSAPI_AppendRespHeader2_r( LSAPI_Request * pReq, const char * pHeaderName, in LSAPI_AppendRespHeader2_r()
2527 int LSAPI_AppendRespHeader_r( LSAPI_Request * pReq, const char * pBuf, int len ) in LSAPI_AppendRespHeader_r()
3117 LSAPI_Request * pReq ) in lsapi_prefork_server_accept()
3329 int LSAPI_Postfork_Child(LSAPI_Request * pReq) in LSAPI_Postfork_Child()
3370 int LSAPI_Postfork_Parent(LSAPI_Request * pReq) in LSAPI_Postfork_Parent()
3385 int LSAPI_Accept_Before_Fork(LSAPI_Request * pReq) in LSAPI_Accept_Before_Fork()
3536 int LSAPI_Prefork_Accept_r( LSAPI_Request * pReq ) in LSAPI_Prefork_Accept_r()
4064 int LSAPI_ErrResponse_r( LSAPI_Request * pReq, int code, const char ** pRespHeaders, in LSAPI_ErrResponse_r()