Lines Matching refs:fcgi_header
142 } fcgi_header; typedef
152 fcgi_header hdr;
166 fcgi_header hdr;
221 fcgi_header *out_hdr;
993 static inline int fcgi_make_header(fcgi_header *hdr, fcgi_request_type type, int req_id, int len)
1006 memset(((unsigned char*)hdr) + sizeof(fcgi_header) + len, 0, pad);
1045 fcgi_header hdr;
1061 if (safe_read(req, &hdr, sizeof(fcgi_header)) != sizeof(fcgi_header) ||
1070 if (safe_read(req, &hdr, sizeof(fcgi_header)) != sizeof(fcgi_header) ||
1120 if (safe_read(req, &hdr, sizeof(fcgi_header)) != sizeof(fcgi_header) ||
1143 if (safe_read(req, &hdr, sizeof(fcgi_header)) != sizeof(fcgi_header) ||
1152 unsigned char *p = buf + sizeof(fcgi_header);
1199 len = (int)(p - buf - sizeof(fcgi_header));
1200 len += fcgi_make_header((fcgi_header*)buf, FCGI_GET_VALUES_RESULT, 0, len);
1201 if (safe_write(req, buf, sizeof(fcgi_header) + len) != (ssize_t)sizeof(fcgi_header)+len) {
1216 fcgi_header hdr;
1223 if (safe_read(req, &hdr, sizeof(fcgi_header)) != sizeof(fcgi_header) ||
1501 static inline fcgi_header* open_packet(fcgi_request *req, fcgi_request_type type)
1503 req->out_hdr = (fcgi_header*) req->out_pos;
1505 req->out_pos += sizeof(fcgi_header);
1512 int len = (int)(req->out_pos - ((unsigned char*)req->out_hdr + sizeof(fcgi_header)));
1567 if (limit < sizeof(fcgi_header)) {
1593 limit -= sizeof(fcgi_header);
1603 } else if (len - limit < (int)(sizeof(req->out_buf) - sizeof(fcgi_header))) {