• Home
  • Raw
  • Download

Lines Matching refs:gz

266     file gz;  in gzscan()  local
269 gz.name = name; in gzscan()
270 gz.fd = open(name, O_RDWR, 0); in gzscan()
271 if (gz.fd == -1) bye("cannot open ", name); in gzscan()
272 gz.buf = malloc(CHUNK); in gzscan()
273 if (gz.buf == NULL) bye("out of memory", ""); in gzscan()
274 gz.size = LGCHUNK; in gzscan()
275 gz.left = 0; in gzscan()
278 gzheader(&gz); in gzscan()
291 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan()
293 strm->avail_in = gz.left; in gzscan()
294 strm->next_in = gz.next; in gzscan()
300 readmore(&gz); in gzscan()
301 strm->avail_in = gz.left; in gzscan()
302 strm->next_in = gz.next; in gzscan()
331 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - strm->avail_in; in gzscan()
336 gz.left = strm->avail_in; in gzscan()
337 gz.next = strm->next_in; in gzscan()
340 end = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan()
343 if (crc != read4(&gz)) in gzscan()
346 if ((tot & 0xffffffffUL) != read4(&gz)) in gzscan()
350 if (gz.left || readin(&gz)) in gzscan()
355 lseek(gz.fd, lastoff - (lastbit != 0), SEEK_SET); in gzscan()
356 if (read(gz.fd, gz.buf, 1) != 1) bye("reading after seek on ", name); in gzscan()
357 *gz.buf = (unsigned char)(*gz.buf ^ (1 << ((8 - lastbit) & 7))); in gzscan()
358 lseek(gz.fd, -1L, SEEK_CUR); in gzscan()
359 if (write(gz.fd, gz.buf, 1) != 1) bye("writing after seek to ", name); in gzscan()
374 lseek(gz.fd, --end, SEEK_SET); in gzscan()
375 if (read(gz.fd, gz.buf, 1) != 1) bye("reading after seek on ", name); in gzscan()
376 deflatePrime(strm, 8 - left, *gz.buf); in gzscan()
378 lseek(gz.fd, end, SEEK_SET); in gzscan()
382 free(gz.buf); in gzscan()
383 return gz.fd; in gzscan()