Lines Matching refs:rest
1206 int ret, n, rest; in fcgi_read() local
1211 rest = len; in fcgi_read()
1212 while (rest > 0) { in fcgi_read()
1227 if (req->in_len >= rest) { in fcgi_read()
1228 ret = (int)safe_read(req, str, rest); in fcgi_read()
1237 rest -= ret; in fcgi_read()
1542 int limit, rest; local
1553 rest = len;
1554 while (rest > 0) {
1566 if (rest < limit) {
1567 memcpy(req->out_pos, str, rest);
1568 req->out_pos += rest;
1573 rest -= limit;
1627 rest = pad ? 8 - pad : 0;
1630 fcgi_make_header(req->out_hdr, type, req->id, (len - pos) - rest);
1635 if (safe_write(req, str + pos, (len - pos) - rest) != (len - pos) - rest) {
1641 req->out_pos = zend_mempcpy(req->out_pos, str + len - rest, rest);