Lines Matching refs:rest
1218 int ret, n, rest; in fcgi_read() local
1223 rest = len; in fcgi_read()
1224 while (rest > 0) { in fcgi_read()
1239 if (req->in_len >= rest) { in fcgi_read()
1240 ret = (int)safe_read(req, str, rest); in fcgi_read()
1249 rest -= ret; in fcgi_read()
1543 int limit, rest; local
1554 rest = len;
1555 while (rest > 0) {
1567 if (rest < limit) {
1568 memcpy(req->out_pos, str, rest);
1569 req->out_pos += rest;
1574 rest -= limit;
1631 rest = pad ? 8 - pad : 0;
1634 fcgi_make_header(req->out_hdr, type, req->id, (len - pos) - rest);
1639 if (safe_write(req, str + pos, (len - pos) - rest) != (len - pos) - rest) {
1645 memcpy(req->out_pos, str + len - rest, rest);
1646 req->out_pos += rest;