blob: 70ed99619754c68874fb58cbf92f3001811e5836 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "rgw_fcgi.h"
#include "acconfig.h"
#ifdef FASTCGI_INCLUDE_DIR
# include "fastcgi/fcgiapp.h"
#else
# include "fcgiapp.h"
#endif
int RGWFCGX::write_data(const char *buf, int len)
{
return FCGX_PutStr(buf, len, fcgx->out);
}
int RGWFCGX::read_data(char *buf, int len)
{
return FCGX_GetStr(buf, len, fcgx->in);
}
void RGWFCGX::flush()
{
FCGX_FFlush(fcgx->out);
}
const char **RGWFCGX::envp()
{
return (const char **)fcgx->envp;
}
|