Lines Matching refs:gotnow
129 * | |- gotnow ->| | |
142 * In several of the functions, gotnow and needed are local variables
145 * gotnow is the number of bytes of the request that we're
147 * Typically, gotnow = (buffer + bufcnt) - bufptr
233 unsigned int gotnow, needed;
268 gotnow = oci->bufcnt + oci->buffer - oci->bufptr;
276 else if (gotnow < sizeof(xReq)) {
292 if (gotnow < sizeof(xBigReq)) {
307 if (gotnow < needed) {
321 oci->ignoreBytes = needed - gotnow;
322 oci->lenLastReq = gotnow;
325 if ((gotnow == 0) || ((oci->bufptr - oci->buffer + needed) > oci->size)) {
328 if ((gotnow > 0) && (oci->bufptr != oci->buffer))
330 memmove(oci->buffer, oci->bufptr, gotnow);
344 oci->bufcnt = gotnow;
375 gotnow += result;
385 oci->bufptr = ibuf + oci->bufcnt - gotnow;
388 if (need_header && gotnow >= needed) {
394 if (gotnow < sizeof(xBigReq))
404 if (gotnow < needed) {
425 if (gotnow < needed) {
426 oci->ignoreBytes -= gotnow;
427 oci->bufptr += gotnow;
428 gotnow = 0;
433 gotnow -= needed;
448 gotnow -= needed;
449 if (!gotnow && !oci->ignoreBytes)
516 int gotnow, moveup;
529 gotnow = oci->bufcnt + oci->buffer - oci->bufptr;
530 if ((gotnow + count) > oci->size) {
533 ibuf = (char *) realloc(oci->buffer, gotnow + count);
536 oci->size = gotnow + count;
538 oci->bufptr = ibuf + oci->bufcnt - gotnow;
542 if (gotnow > 0)
543 memmove(oci->bufptr + moveup, oci->bufptr, gotnow);
549 gotnow += count;
550 if ((gotnow >= sizeof(xReq)) &&
551 (gotnow >= (int) (get_req_len((xReq *) oci->bufptr, client) << 2)))
575 int gotnow, needed;
580 gotnow = oci->bufcnt + oci->buffer - oci->bufptr;
581 if (gotnow < sizeof(xReq)) {
595 if (gotnow >= (needed << 2)) {