Lines Matching refs:have
20 local int gz_load(state, buf, len, have) in gz_load() argument
24 unsigned *have;
28 *have = 0;
30 ret = read(state->fd, buf + *have, len - *have);
33 *have += ret;
34 } while (*have < len);
149 state->x.have = 0;
159 state->x.have = strm->avail_in;
209 state->x.have = had - strm->avail_out;
210 state->x.next = strm->next_out - state->x.have;
240 if (gz_load(state, state->out, state->size << 1, &(state->x.have))
251 } while (state->x.have == 0 && (!state->eof || strm->avail_in));
265 if (state->x.have) {
266 n = GT_OFF(state->x.have) || (z_off64_t)state->x.have > len ?
267 (unsigned)len : state->x.have;
268 state->x.have -= n;
330 if (state->x.have) {
331 n = state->x.have > len ? len : state->x.have;
334 state->x.have -= n;
366 n = state->x.have;
367 state->x.have = 0;
405 if (state->x.have) {
406 state->x.have--;
451 if (state->x.have == 0) {
452 state->x.have = 1;
461 if (state->x.have == (state->size << 1)) {
468 unsigned char *src = state->out + state->x.have;
474 state->x.have++;
517 if (state->x.have == 0 && gz_fetch(state) == -1)
519 if (state->x.have == 0) { /* end of file */
525 n = state->x.have > left ? left : state->x.have;
532 state->x.have -= n;
559 if (state->mode == GZ_READ && state->how == LOOK && state->x.have == 0)