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);
148 state->x.have = 0;
158 state->x.have = strm->avail_in;
208 state->x.have = had - strm->avail_out;
209 state->x.next = strm->next_out - state->x.have;
239 if (gz_load(state, state->out, state->size << 1, &(state->x.have))
250 } while (state->x.have == 0 && (!state->eof || strm->avail_in));
264 if (state->x.have) {
265 n = GT_OFF(state->x.have) || (z_off64_t)state->x.have > len ?
266 (unsigned)len : state->x.have;
267 state->x.have -= n;
329 if (state->x.have) {
330 n = state->x.have > len ? len : state->x.have;
333 state->x.have -= n;
365 n = state->x.have;
366 state->x.have = 0;
400 if (state->x.have) {
401 state->x.have--;
446 if (state->x.have == 0) {
447 state->x.have = 1;
456 if (state->x.have == (state->size << 1)) {
463 unsigned char *src = state->out + state->x.have;
469 state->x.have++;
512 if (state->x.have == 0 && gz_fetch(state) == -1)
514 if (state->x.have == 0) { /* end of file */
520 n = state->x.have > left ? left : state->x.have;
527 state->x.have -= n;
554 if (state->mode == GZ_READ && state->how == LOOK && state->x.have == 0)