Lines Matching defs:buf
21 local int gz_load(state, buf, len, have)
23 unsigned char *buf;
31 ret = read(state->fd, buf + *have, len - *have);
362 int ZEXPORT gzread(file, buf, len)
364 voidp buf;
399 /* get len bytes to buf, or less than len if at the end */
405 memcpy(buf, state->next, n);
427 if (gz_load(state, buf, len, &n) == -1)
434 strm->next_out = buf;
443 buf = (char *)buf + n;
457 unsigned char buf[1];
477 ret = gzread(file, buf, 1);
478 return ret < 1 ? -1 : buf[0];
539 char * ZEXPORT gzgets(file, buf, len)
541 char *buf;
550 if (file == NULL || buf == NULL || len < 1)
568 str = buf;
576 if (buf == str) /* got bupkus */
589 memcpy(buf, state->next, n);
594 buf += n;
598 buf[0] = 0;