Lines Matching refs:rest
1215 int ret, n, rest; local
1220 rest = len;
1221 while (rest > 0) {
1236 if (req->in_len >= rest) {
1237 ret = (int)safe_read(req, str, rest);
1246 rest -= ret;
1540 int limit, rest; local
1551 rest = len;
1552 while (rest > 0) {
1564 if (rest < limit) {
1565 memcpy(req->out_pos, str, rest);
1566 req->out_pos += rest;
1571 rest -= limit;
1628 rest = pad ? 8 - pad : 0;
1631 fcgi_make_header(req->out_hdr, type, req->id, (len - pos) - rest);
1636 if (safe_write(req, str + pos, (len - pos) - rest) != (len - pos) - rest) {
1642 memcpy(req->out_pos, str + len - rest, rest);
1643 req->out_pos += rest;