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;
1541 int limit, rest; local
1552 rest = len;
1553 while (rest > 0) {
1565 if (rest < limit) {
1566 memcpy(req->out_pos, str, rest);
1567 req->out_pos += rest;
1572 rest -= limit;
1629 rest = pad ? 8 - pad : 0;
1632 fcgi_make_header(req->out_hdr, type, req->id, (len - pos) - rest);
1637 if (safe_write(req, str + pos, (len - pos) - rest) != (len - pos) - rest) {
1643 memcpy(req->out_pos, str + len - rest, rest);
1644 req->out_pos += rest;