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()
563 static int validateHeaders( LSAPI_Request * pReq ) in validateHeaders()
725 static int LSAPI_perror_r( LSAPI_Request * pReq, const char * pErr1, const char *pErr2 ) in LSAPI_perror_r()
736 static int lsapi_lve_error( LSAPI_Request * pReq ) in lsapi_lve_error()
759 static int lsapi_enterLVE( LSAPI_Request * pReq, uid_t uid ) in lsapi_enterLVE()
780 static int lsapi_jailLVE( LSAPI_Request * pReq, uid_t uid, struct passwd * pw ) in lsapi_jailLVE()
826 static int setUID_LVE(LSAPI_Request * pReq, uid_t uid, gid_t gid, const char * pChroot) in setUID_LVE()
906 static int lsapi_suexec_auth( LSAPI_Request *pReq, in lsapi_suexec_auth()
925 static int lsapi_changeUGid( LSAPI_Request * pReq ) in lsapi_changeUGid()
999 static int parseContentLenFromHeader(LSAPI_Request * pReq) in parseContentLenFromHeader()
1008 static int parseRequest( LSAPI_Request * pReq, int totalLen ) in parseRequest()
1171 static int readReq( LSAPI_Request * pReq ) in readReq()
1277 int LSAPI_InitRequest( LSAPI_Request * pReq, int fd ) in LSAPI_InitRequest()
1282 memset( pReq, 0, sizeof( LSAPI_Request ) ); in LSAPI_InitRequest()
1320 int LSAPI_Is_Listen_r( LSAPI_Request * pReq) in LSAPI_Is_Listen_r()
1327 int LSAPI_Accept_r( LSAPI_Request * pReq ) in LSAPI_Accept_r()
1385 int LSAPI_Finish_r( LSAPI_Request * pReq ) in LSAPI_Finish_r()
1415 void LSAPI_Reset_r( LSAPI_Request * pReq ) in LSAPI_Reset_r()
1426 int LSAPI_Release_r( LSAPI_Request * pReq ) in LSAPI_Release_r()
1440 char * LSAPI_GetHeader_r( LSAPI_Request * pReq, int headerIndex ) in LSAPI_GetHeader_r()
1457 static int readBodyToReqBuf( LSAPI_Request * pReq ) in readBodyToReqBuf()
1479 int LSAPI_ReqBodyGetChar_r( LSAPI_Request * pReq ) in LSAPI_ReqBodyGetChar_r()
1494 int LSAPI_ReqBodyGetLine_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen, int *getLF ) in LSAPI_ReqBodyGetLine_r()
1541 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen ) in LSAPI_ReadReqBody_r()
1590 ssize_t LSAPI_Write_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_r()
1740 ssize_t LSAPI_sendfile_r( LSAPI_Request * pReq, int fdIn, off_t* off, size_t size ) in LSAPI_sendfile_r()
1764 void Flush_RespBuf_r( LSAPI_Request * pReq ) in Flush_RespBuf_r()
1790 int LSAPI_Flush_r( LSAPI_Request * pReq ) in LSAPI_Flush_r()
1834 ssize_t LSAPI_Write_Stderr_r( LSAPI_Request * pReq, const char * pBuf, size_t len ) in LSAPI_Write_Stderr_r()
1887 static char * GetHeaderVar( LSAPI_Request * pReq, const char * name ) in GetHeaderVar()
1947 char * LSAPI_GetEnv_r( LSAPI_Request * pReq, const char * name ) in LSAPI_GetEnv_r()
1980 int LSAPI_ForeachOrgHeader_r( LSAPI_Request * pReq, in LSAPI_ForeachOrgHeader_r()
2057 int LSAPI_ForeachHeader_r( LSAPI_Request * pReq, in LSAPI_ForeachHeader_r()
2145 int LSAPI_ForeachEnv_r( LSAPI_Request * pReq, in LSAPI_ForeachEnv_r()
2160 int LSAPI_ForeachSpecialEnv_r( LSAPI_Request * pReq, in LSAPI_ForeachSpecialEnv_r()
2177 int LSAPI_FinalizeRespHeaders_r( LSAPI_Request * pReq ) in LSAPI_FinalizeRespHeaders_r()
2204 int LSAPI_AppendRespHeader2_r( LSAPI_Request * pReq, const char * pHeaderName, in LSAPI_AppendRespHeader2_r()
2261 int LSAPI_AppendRespHeader_r( LSAPI_Request * pReq, const char * pBuf, int len ) in LSAPI_AppendRespHeader_r()
2765 static int lsapi_prefork_server_accept( lsapi_prefork_server * pServer, LSAPI_Request * pReq ) in lsapi_prefork_server_accept()
2948 int LSAPI_Prefork_Accept_r( LSAPI_Request * pReq ) in LSAPI_Prefork_Accept_r()
3320 int LSAPI_ErrResponse_r( LSAPI_Request * pReq, int code, const char ** pRespHeaders, in LSAPI_ErrResponse_r()