aboutsummaryrefslogtreecommitdiff
path: root/old/os2 (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-10-09Add --cover option to ./configure for gcc coverage testing.Mark Adler3-1/+12
This adds the -fprofile-arcs and -ftest-coverage options when compiling the source code for the static library. Those same options must then be used when linking the static library into an executable. This updates Makefile.in to remove and .gitignore to ignore the files generated when testing coverage.
2011-10-09Move example.c and minigzip.c to examples/ directory.Mark Adler5-9/+22
2011-10-07Add undocumented inflateResetKeep() function for CAB file decoding.Mark Adler11-12/+35
The Microsoft CAB file format compresses each block with completed deflate streams that depend on the sliding window history of the previous block in order to decode. inflateResetKeep() does what inflateReset() does, except the sliding window history from the previous inflate operation is retained.
2011-10-07Add a ./config --solo option to make zlib subset with no libary useMark Adler13-195/+537
A common request has been the ability to compile zlib to require no other libraries. This --solo option provides that ability. The price is that the gz*, compress*, and uncompress functions are eliminated, and that the user must provide memory allocation and free routines to deflate and inflate when initializing.
2011-10-05Get inffixed.h and MAKEFIXED result to match.Mark Adler2-5/+5
2011-10-02Update python link in zlib man page.Mark Adler2-1/+1
2011-10-02Add a transparent write mode to gzopen() when 'T' is in the mode.Mark Adler5-39/+82
2011-10-02Correct documentation of gzdirect() since junk at end now ignored.Mark Adler1-3/+1
2011-10-02Clarify how gzopen() appends in zlib.h comments.Mark Adler1-0/+7
2011-10-02Merge vestigial vsnprintf determination from zutil.h to gzguts.h.Mark Adler14-91/+111
This also moves some of the same from zconf.h to gzguts.h. A new function, gzflags(), was created to pass the compilation flags related to vsnprintf usage back to zlibCompileFlags() in zutil.c. In the process, various compiler configuration files were updated to include gzflags(), as well as the new gzgetc_() function added when the gzgetc() macro was introduced in a previous patch.
2011-10-02Update zconf.h.cmakein on make distclean.Mark Adler1-4/+7
2011-10-01Include zconf.h.cmakein for windows large file support.Mark Adler1-1/+5
2011-10-01Include zconf.h for windows large file support.Mark Adler1-1/+5
2011-10-01Always add large file support for windowsTor Lillqvist4-4/+17
2011-09-30Update copyright dates on gz* source files.Mark Adler3-3/+3
2011-09-30Fix gzclose() to return the actual error last encountered.Mark Adler2-6/+9
2011-09-26Change gzgetc() to a macro for speed (~40% speedup in testing).Mark Adler5-91/+119
2011-09-26Simplify gzseek() now that raw after gzip is ignored.Mark Adler3-6/+4
2011-09-26Allow gzrewind() and gzseek() after a premature end-of-file.Mark Adler1-2/+3
2011-09-26Allow gzread() and related to continue after gzclearerr().Mark Adler2-179/+93
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.
2011-09-24Change gzread() and related to ignore junk after gzip streams.Mark Adler2-6/+15
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.
2011-09-24Correct error in comment for gz_make().Mark Adler1-1/+1
2011-09-24Fix bug in gzgets() for a concatenated empty gzip stream.Mark Adler1-6/+6
2011-09-24Correct spelling error in gzread.cMark Adler1-1/+1
2011-09-23Update python link in READMEMark Adler1-1/+1
2011-09-22Add assertions to fill_window() in deflate.c to match comments.Mark Adler1-0/+5
2011-09-22Assure that high-water mark initialization is always applied in deflate.Mark Adler1-1/+1
2011-09-22Avoid searching past window for Z_RLE strategy.Mark Adler1-3/+4
Without this, Z_RLE could under some circumstances read one byte past the end of the allocated sliding window. This would normally not be a problem unless the window is right at the end of an allocated page, or if a bounds checker is being used.
2011-09-11use relative symlinks for shared libsMike Frysinger1-2/+2
The DESTDIR should not be encoded into symlinks as it is only a temporary path. Further, since we install the symlinks into the same dir as the files, let's use relative links so that they can always resolve. Signed-off-by: Mike Frysinger <vapier@gentoo.org>