Lines Matching refs:file
47 file is reached, even though there may be unused data in the buffer. Once
48 that data has been used, no more attempts will be made to read the file.
51 available data from the input file. */
87 case, all further file reads will be directly to either the output buffer or
136 gzip file, to wit, if a single 31 byte is written, then we cannot tell
137 whether this is a single-byte file, or just a partially written gzip
138 file -- for here we assume that if a gzip file is being written, then
140 single byte is sufficient indication that it is not a gzip file) */
190 gz_error(state, Z_BUF_ERROR, "unexpected end of file");
225 Data is either copied from the input file or decompressed from the input
226 file depending on state->how. If state->how is LOOK, then a gzip header is
229 end of the input file has been reached and all data has been processed. */
271 /* skip over len bytes or reach end-of-file, whichever comes first */
300 /* Read len bytes into buf from file, or less than len up to the end of the
302 end of file was reached, or there was an error. state->err must be
396 int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
401 if (file == NULL)
405 state = (gz_statep)file;
435 z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file)
441 if (file == NULL)
445 state = (gz_statep)file;
471 int ZEXPORT gzgetc(gzFile file)
477 if (file == NULL)
481 state = (gz_statep)file;
501 int ZEXPORT gzgetc_(gzFile file)
503 return gzgetc(file);
507 int ZEXPORT gzungetc(int c, gzFile file)
512 if (file == NULL)
516 state = (gz_statep)file;
580 char * ZEXPORT gzgets(gzFile file, char *buf, int len)
588 if (file == NULL || buf == NULL || len < 1)
592 state = (gz_statep)file;
621 if (state->x.have == 0) { /* end of file */
643 /* return terminated string, or if nothing, end of file */
653 int ZEXPORT gzdirect(gzFile file)
658 if (file == NULL)
662 state = (gz_statep)file;
676 int ZEXPORT gzclose_r(gzFile file)
682 if (file == NULL)
686 state = (gz_statep)file;
694 /* free memory and close file */