summaryrefslogtreecommitdiff
path: root/gzlib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* zlib 1.2.12v1.2.12Mark Adler2022-03-271-1/+1
|
* Avoid adding empty gzip member after gzflush with Z_FINISH.Mark Adler2019-04-131-0/+2
|
* Avoid a conversion error in gzseek when off_t type too small.Mark Adler2017-02-151-2/+2
| | | | | | | | This is a problem in the odd case that the second argument of LSEEK is a larger type than off_t. Apparently MinGW defines off_t to be 32 bits, but _lseeki64 has a 64-bit second argument. Also undo a previous commit to permit MinGW to use _lseeki64.
* zlib 1.2.11v1.2.11Mark Adler2017-01-151-1/+1
|
* Avoid warnings on snprintf() return value.Mark Adler2017-01-011-4/+4
|
* zlib 1.2.9v1.2.9Mark Adler2016-12-311-1/+1
|
* Create z_size_t and z_ssize_t types.Mark Adler2016-12-041-2/+2
| | | | | | Normally these are set to size_t and ssize_t. But if they do not exist, then they are set to the smallest integer type that can contain a pointer. size_t is unsigned and ssize_t is signed.
* Clean up gz* function return values.Mark Adler2016-12-041-1/+0
| | | | | | | In some cases the return values did not match the documentation, or the documentation did not document all of the return values. gzprintf() now consistently returns negative values on error, which matches the behavior of the stdio fprintf() function.
* Fix gzseek() problem on MinGW due to buggy _lseeki64 there.Mark Adler2016-01-291-1/+1
|
* Compile the gzopen_w() function when __CYGWIN__ defined.Mark Adler2015-08-011-4/+4
|
* Improve speed of gzprintf() in transparent mode.Mark Adler2015-07-051-0/+2
|
* Assure that gzoffset() is correct when appending.Mark Adler2014-04-241-1/+3
| | | | | | | An open() with O_APPEND followed by an lseek() to determine the position will return zero for a non-empty file, even though the next write will start at the end of the file. This commit works around that by doing an lseek() to the end when appending.
* zlib 1.2.7.1v1.2.7.1Mark Adler2013-03-241-1/+1
|
* Add casts and consts to ease user conversion to C++.Mark Adler2013-03-241-6/+7
| | | | You would still need to run zlib2ansi on all of the *.c files.
* Clean up the usage of z_const and respect const usage within zlib.Mark Adler2012-08-131-6/+4
| | | | | | | | | This patch allows zlib to compile cleanly with the -Wcast-qual gcc warning enabled, but only if ZLIB_CONST is defined, which adds const to next_in and msg in z_stream and in the in_func prototype. A --const option is added to ./configure which adds -DZLIB_CONST to the compile flags, and adds -Wcast-qual to the compile flags when ZLIBGCCWARN is set in the environment.
* Fix bug in 'F' mode for gzopen().Mark Adler2012-05-221-0/+2
|
* Replace use of unsafe string functions with snprintf if available.Mark Adler2012-05-021-0/+13
| | | | | | | | | | | | This avoids warnings in OpenBSD that apparently can't be turned off whenever you link strcpy, strcat, or sprintf. When snprintf isn't available, the use of the "unsafe" string functions has always in fact been safe, since the lengths are all checked before those functions are called. We do not use strlcpy or strlcat, since they are not (yet) found on all systems. snprintf on the other hand is part of the C standard library and is very common.
* Attempt to convert the wchar_t path in gzopen_w() for errors.Mark Adler2012-03-181-3/+20
| | | | | | | The conversion to multi-byte will be locale-specific, but it's better than nothing and is only to provide more information in the error message returned by gz_error(). The conversion has no effect on what's opened.
* Fix syntax error in gzlib.c.Mark Adler2012-03-181-1/+1
|
* More fixes for gzopen_w().Mark Adler2012-03-181-2/+3
| | | | | | Also need to #include <stddef.h> for zlib.h, and need to workaround the inability to use wide characters in constructed error messages with zlib's interface.
* Fix gzopen_w() type and add #include for the type.Mark Adler2012-03-171-1/+1
|
* Add gzopen_w() in Windows for wide character path names.Mark Adler2012-03-161-16/+32
|
* Update copyright years in gzlib.c.Mark Adler2012-03-101-1/+1
|
* Avoid warnings when O_CLOEXEC or O_EXCL are not defined.Mark Adler2012-03-101-1/+10
|
* Make sure that O_EXCL is used portably.Mark Adler2012-03-041-4/+7
|
* Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen().Mark Adler2012-03-031-1/+11
|
* Do not use _lseeki64 under Borland C++ [Truta].Mark Adler2011-12-181-1/+1
|
* Fix gzeof() to behave just like feof() when read is not past end of file.Mark Adler2011-12-111-3/+6
| | | | | | | | Before, gzeof() would return true (accurately) when the last read request went just up to the end of the uncompressed data. In the analogous case, feof() would return false, only returning true when a read request goes past the end of the file. This patch corrects gzeof() to behave in the same way as feof(), as noted in the zlib.h documentation.
* Add a transparent write mode to gzopen() when 'T' is in the mode.Mark Adler2011-10-021-1/+12
|
* Always add large file support for windowsTor Lillqvist2011-10-011-0/+4
|
* 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-17/+21
|
* Simplify gzseek() now that raw after gzip is ignored.Mark Adler2011-09-261-1/+1
|
* Allow gzrewind() and gzseek() after a premature end-of-file.Mark Adler2011-09-261-2/+3
|
* Allow gzread() and related to continue after gzclearerr().Mark Adler2011-09-261-2/+2
| | | | | | | | | | | | | | | | | | | | | 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.
* zlib 1.2.5.1v1.2.5.1Mark Adler2011-09-111-0/+4
|
* zlib 1.2.4.5v1.2.4.5Mark Adler2011-09-091-3/+3
|
* zlib 1.2.4.3v1.2.4.3Mark Adler2011-09-091-1/+1
|
* zlib 1.2.4.2v1.2.4.2Mark Adler2011-09-091-2/+4
|
* zlib 1.2.4.1v1.2.4.1Mark Adler2011-09-091-5/+5
|
* zlib 1.2.4-pre1v1.2.4-pre1Mark Adler2011-09-091-9/+10
|
* zlib 1.2.3.9v1.2.3.9Mark Adler2011-09-091-12/+10
|
* zlib 1.2.3.8v1.2.3.8Mark Adler2011-09-091-8/+28
|
* zlib 1.2.3.7v1.2.3.7Mark Adler2011-09-091-14/+14
|
* zlib 1.2.3.6v1.2.3.6Mark Adler2011-09-091-33/+36
|
* zlib 1.2.3.5v1.2.3.5Mark Adler2011-09-091-0/+513