summaryrefslogtreecommitdiff
path: root/gzread.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a transparent write mode to gzopen() when 'T' is in the mode.Mark Adler2011-10-021-6/+2
|
* Update copyright dates on gz* source files.Mark Adler2011-09-301-1/+1
|
* Change gzgetc() to a macro for speed (~40% speedup in testing).Mark Adler2011-09-261-58/+61
|
* Simplify gzseek() now that raw after gzip is ignored.Mark Adler2011-09-261-4/+3
|
* Allow gzread() and related to continue after gzclearerr().Mark Adler2011-09-261-177/+91
| | | | | | | | | | | | | | | | | | | | | Before this fix, gzread() would lose data if a premature end of file was encountered. This prevented gzread() from being used on a file that was being written concurrently. Now gzread() returns all of the data it has available before indicating a premature end of file. This also changes the error returned on a premature end of file from Z_DATA_ERROR to Z_BUF_ERROR. This allows the user to determine if the error is recoverable, which it is if Z_BUF_ERROR is returned. If a Z_DATA_ERROR is returned, then the error is not recoverable. This patch replaces the functionality of a previous patch that fixed reading through an empty gzip stream in a concatenation of gzip streams. To implement this fix, a noticeable rewrite of gzread.c was needed. The patch has the added advantage of using inflate's gzip processing instead of replicating the functionality in gzread.c. This makes the gz code a little simpler.
* Change gzread() and related to ignore junk after gzip streams.Mark Adler2011-09-241-0/+9
| | | | | | | | | | Previously the new gz* functions (introduced in 1.2.4) would read and return raw data after the last gzip stream. This is inconsistent with the behavior of gzip and the previous versions of zlib. Now when one or more gzip streams have been decoded from the file, which is then followed by data that is not a gzip stream (as detemined by not finding the magic header), then that subsequent trailing garbage is ignored, and no error is returned.
* Correct error in comment for gz_make().Mark Adler2011-09-241-1/+1
|
* Fix bug in gzgets() for a concatenated empty gzip stream.Mark Adler2011-09-241-6/+6
|
* Correct spelling error in gzread.cMark Adler2011-09-241-1/+1
|
* zlib 1.2.4.1v1.2.4.1Mark Adler2011-09-091-1/+2
|
* zlib 1.2.4-pre1v1.2.4-pre1Mark Adler2011-09-091-0/+1
|
* zlib 1.2.3.9v1.2.3.9Mark Adler2011-09-091-12/+4
|
* zlib 1.2.3.8v1.2.3.8Mark Adler2011-09-091-3/+4
|
* zlib 1.2.3.7v1.2.3.7Mark Adler2011-09-091-27/+37
|
* zlib 1.2.3.6v1.2.3.6Mark Adler2011-09-091-16/+32
|
* zlib 1.2.3.5v1.2.3.5Mark Adler2011-09-091-0/+632