Lines Matching refs:gotnow
122 * | |- gotnow ->| | |
135 * In several of the functions, gotnow and needed are local variables
138 * gotnow is the number of bytes of the request that we're
140 * Typically, gotnow = (buffer + bufcnt) - bufptr
200 unsigned int gotnow, needed;
254 gotnow = oci->bufcnt + oci->buffer - oci->bufptr;
262 else if (gotnow < sizeof(xReq))
281 if (gotnow < sizeof(xBigReq))
293 if (gotnow < needed)
309 oci->ignoreBytes = needed - gotnow;
310 oci->lenLastReq = gotnow;
313 if ((gotnow == 0) ||
318 if ((gotnow > 0) && (oci->bufptr != oci->buffer))
320 memmove(oci->buffer, oci->bufptr, gotnow);
336 oci->bufcnt = gotnow;
369 gotnow += result;
381 oci->bufptr = ibuf + oci->bufcnt - gotnow;
384 if (need_header && gotnow >= needed)
392 if (gotnow < sizeof(xBigReq))
400 if (gotnow < needed)
423 if (gotnow < needed) {
424 oci->ignoreBytes -= gotnow;
425 oci->bufptr += gotnow;
426 gotnow = 0;
430 gotnow -= needed;
445 gotnow -= needed;
446 if (gotnow >= sizeof(xReq))
449 if (gotnow >= (result = (get_req_len(request, client) << 2))
452 (gotnow >= sizeof(xBigReq) &&
453 gotnow >= (get_big_req_len(request, client) << 2))))
466 if (!gotnow)
507 int gotnow, moveup;
538 gotnow = oci->bufcnt + oci->buffer - oci->bufptr;
539 if ((gotnow + count) > oci->size)
543 ibuf = (char *)realloc(oci->buffer, gotnow + count);
546 oci->size = gotnow + count;
548 oci->bufptr = ibuf + oci->bufcnt - gotnow;
553 if (gotnow > 0)
554 memmove(oci->bufptr + moveup, oci->bufptr, gotnow);
560 gotnow += count;
561 if ((gotnow >= sizeof(xReq)) &&
562 (gotnow >= (int)(get_req_len((xReq *)oci->bufptr, client) << 2)))
582 int gotnow, needed;
586 gotnow = oci->bufcnt + oci->buffer - oci->bufptr;
587 if (gotnow < sizeof(xReq))
606 if (gotnow >= (needed << 2))