Lines Matching refs:file

70 /* Reset gzip file state */
75 state->eof = 0; /* not at end of file */
87 /* Open a gzip file either by name or file descriptor. */
181 state->direct = 1; /* for empty file */
234 /* open the file with the appropriate flags (or just use fd) */
302 int ZEXPORT gzbuffer(gzFile file, unsigned size) {
306 if (file == NULL)
308 state = (gz_statep)file;
326 int ZEXPORT gzrewind(gzFile file) {
330 if (file == NULL)
332 state = (gz_statep)file;
347 z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
354 if (file == NULL)
356 state = (gz_statep)file;
396 if (offset < 0) /* before start of file! */
398 if (gzrewind(file) == -1) /* rewind, then skip to offset */
421 z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
425 ret = gzseek64(file, (z_off64_t)offset, whence);
430 z_off64_t ZEXPORT gztell64(gzFile file)
435 if (file == NULL)
437 state = (gz_statep)file;
446 z_off_t ZEXPORT gztell(gzFile file)
450 ret = gztell64(file);
455 z_off64_t ZEXPORT gzoffset64(gzFile file)
461 if (file == NULL)
463 state = (gz_statep)file;
467 /* compute and return effective offset in file */
477 z_off_t ZEXPORT gzoffset(gzFile file)
481 ret = gzoffset64(file);
486 int ZEXPORT gzeof(gzFile file) {
490 if (file == NULL)
492 state = (gz_statep)file;
496 /* return end-of-file state */
501 const char * ZEXPORT gzerror(gzFile file, int *errnum) {
505 if (file == NULL)
507 state = (gz_statep)file;
519 void ZEXPORT gzclearerr(gzFile file) {
523 if (file == NULL)
525 state = (gz_statep)file;
529 /* clear error and end-of-file */