1 2012-03-11 guidod <guidod@gmx.de>
3 * configure.ac: fallback to libtool -export-dynamic unless being sure to
4 use gnu-ld --export-dynamic. The darwin case is a bit special here
5 as the c-compiler and linker might be from different worlds.
6 * next 0.13.62 - needs a fix for mingw
7 (-mconsole is not a linker option, only the gcc should see it)
9 2010-12-30 guidod <guidod@gmx.de>
10 * done 0.13.60 release, tagged, and announced.
13 2010-12-29 guidod <guidod@gmx.de>
14 * Makefile.am: allow nonstaic build
15 * wrap fd.open like in the Fedora patch
17 2010-12-28 guidod <guidod@gmx.de>
18 * zziplib.spec - simplify the spec based on distro specs.
20 2010-12-27 guidod <guidod@gmx.de>
21 * adding fetch.h/fetch.c to msvc8/zziplib.vcproj to allow
22 tests with Visual Studio C++ Express 2005
24 2010-12-27 guidod <guidod@gmx.de>
25 * fix stat.c to check ZZIP_CASELESS instead of the deprecated
26 ZZIP_CASEINSENSITIVE. The latter is still recognized for
27 compatibility reasons and implicitly mapped to ZZIP_CASELESS.
28 * fixes the zziplib-Patches-3078188 which reported the bug.
30 2010-12-27 guidod <guidod@gmx.de>
31 * apply patches by Peter Breitenlohner for better compatibility
32 with AIX host system. Also the Sun Studio compiler insists on
33 static inline functions or else assumes extern inline.
34 * also fixes zziplib-Patches-3011551 on the AIX problem.
36 2010-12-27 guidod <guidod@gmx.de>
37 * add hints that the ext_io plugin handlers should be static.
39 2010-05-09 guidod <guidod@gmx.de>
41 * zzip/__fnmatch.h: add include <string.h> to make mingw32 happy.
42 Patches item #2995373 by Gregory Smith
44 2010-05-08 guidod <guidod@gmx.de>
46 * SDL/Makefile.am: fix generation of sdl-uninstalled.pc that was
47 not recognized during compilation.
49 2010-04-05 guidod <guidod@gmx.de>
51 * Makefile.am: fix "osc rm" and fix "test-sdl" if SDL was not found.
52 * configure.ac: SDL example builds on pkgconfig/sdl.pc which
54 was introduced with SDL 1.2.11 - CentOs5 ships 1.2.10 which
55 does only have "sdl-config" and it made for a mismatch in
56 in the build configuration: sdl-devel yes, pkgconfig sdl no.
57 * zzip/zip.c (__zzip_parse_root_directory): move the check for
58 zzip_disk_entry_check_magic to be after the the check that
59 the seek-value is more than a header's size before the end.
60 (based on a segfault report by Tulipánt Gergely when the
61 new modulo_entries code is enabled (which is off by default))
63 2010-03-30 guidod <guidod@gmx.de>
65 * zzip/Makefile.am: fixing symlinks for lib* - use only for Linux
66 Thanks to Ryan Schmidt (macports):
67 ... likes to install some symlinks that don't make sense on Mac OS X:
68 $ ls -l /opt/local/lib/*zzip*so*
69 lrwxr-xr-x /opt/local/lib/libzzip*.so.10 -> libzzip*.so.13
70 lrwxr-xr-x /opt/local/lib/libzzip*.so.11 -> libzzip*.so.13
71 lrwxr-xr-x /opt/local/lib/libzzip*.so.12 -> libzzip*.so.13
72 Yes, the filenames literally contain an asterisk.
76 2010-03-29 guidod <guidod@gmx.de>
78 * Makefile.am: change osc to new home:guidod:zziplib-13
79 * configure.ac: update to autoconf 2.61 which does some things differently
80 * m4/ax_pax_tar.m4: bug report http://trac.macports.org/ticket/24227
81 showed a problem on MacOsX where some "pax" tools where advertising
82 an "-O" option in their "--help" page but it did not work. Therefore
83 rewriting the macro to actually test some "-w -O" to create a tarfile.
85 2010-03-26 guidod <guidod@gmx.de>
87 * zzip/dir.c: and zzip/file.c - adding comments to the compat32
88 functions such that they appear near their off_t variants.
89 Also added the ifdef-EOVERFLOW check that is needed on Win32.
91 2010-03-25 guidod <guidod@gmx.de>
93 * Makefile.mk: add "-I m4" and re-autoconf with newest autotools.
94 * zzip/zzip32.h: introducing compat32 functions that take "long"
95 arguments where the others use "off_t". Basically, there are
96 two calls per each off_t-function on all systems where
97 previously that had been only done for those 64on32 systems.
98 This scheme maximized binary compatibility - if an application
99 can not be compiled with _LARGEFILE_SOURCE then they can use
100 the compat32 variants to be always sure to do the right thing.
102 2010-02-15 guidod <guidod@gmx.de>
104 * zzip/Makefile.am: newest "install" does not like to install fetch.h
105 three times ("...not overwite... it just installed")
106 * Makefile.am: allow to build locally with "osc" (opensuse buildservice)
108 2010-02-14 guidod <guidod@gmx.de>
110 * zzip/Makefile.am: use install-*-hook instead of install-*-local
111 * docs/Makefile.am: PYTHONDONTWRITEBYTECODE=1 to ensure running
112 python with a read-only source code repository (dynamic workspaces)
113 NOTE: python -B was introduced with Python 2.6 (so use environment)
114 * zzip/plugin.c: missing "void"
115 again thanks to Peter Breitenlohner (tex-live tug org)
116 * test/Makefile.am: build-zips outside of source tree
117 * m4/ax_prefix_config_h.m4: reduce error to warning as suggested
118 * m4/ax_check_aligned_access_required.m4: merging with derived
119 macro zziplib-aligned-access.m4 by Peter Breitenlohner
122 2009-09-24 guidod <guidod@gmx.de>
123 * zziplib.spec: prepare 0.13.59
124 * configure.ac: add --with-defines to allow compile-definitions
125 for easy,harden,allow_modulo_entries (also for documentation)
126 * zzip/zip.c: add ZZIP_EASY to disable the ZZIP_CORRECT_ROOTSEEK
128 * zzip/zip.c (__zzip_parse_root_directory): add parenthesis to fix
129 ZZIP_ALLOW_MODULO_ENTRIES (as reported by Tulipánt Gergely)
130 * zzip/fetch.h: add MSVC defines for x86/x64 that allows direct access
132 2009-08-23 guidod <guidod@gmx.de>
134 * Makefile.mk: remove some old stuff related to the compilefarm
135 * zziplib.spec: prepare 0.13.58
136 * add ports/symbian-S60/zziplib-symbian.zip (thanks to Rangel Reale)
137 * switch from CVS to SVN (!!!!) and update some docs/*.htm files
138 * zzip/mmapped.c (zzip_disk_mmap): compile error on win32-mingw [1771707]
140 2009-08-16 guidod <guidod@gmx.de>
142 * configure.ac: reorder ax_gcc_flags as the extra options were
143 disabled (do not know why) and add -Wstrict-aliasing to the set.
144 Then fix issues in source files (mostly signed-comparision warnings)
145 * zzip/file.c (zzip_file_open): ZZIP_CASELESS will include a
146 mapping of "\" into "/" to get away with windows-orientied
147 programs. The backslash however is only active for those
148 windows' binaries. Fixes an issue with non-msvc win32-builds.
150 2009-08-04 guidod <guidod@gmx.de>
152 * m4/ac_sys_largefile_sensitive.m4: update, fixes ticket:2825391
153 * zzip/mmapped.h: zzip/memdisk.h: replace buflen argument
154 from "int" to "size_t" type for init from some mem area.
156 2009-08-03 guidod <guidod@gmx.de>
158 * zziplib.spec: prepare 0.13.57
159 * bins/zziptest.c: redefine to win32-Sleep() when seen WINDOWS_H
160 which allows it to compile also with a gcc/mingw/msvcrt target
161 * bins/Makefile.am: ZZIP_LDFLAGS are not needed for *.exe targets
162 in fact they make for problems in crosscompiling without libtool
163 * zzip/fseeko.c: typo "fseeko" -> "fseek" made for a compile error
164 on systems that do not have fseeko like windows msvcrt
165 (reported by Josh Heidenreich)
167 2009-07-03 guidod <guidod@gmx.de>
169 * zzip/mmapped.c: insert zzip_disk_buffer and
170 * zzip/memdisk.c: zzip_mem_disk_buffer where both functions
171 will actually wrap an external buffer (e.g. mmapped from
172 another resource such as shared memory).
173 * zzip/mmapped.c and zzip/mmapped.h: uncovered a bug for the
174 MATCH_NOCASE handling and WRAPPED_BUFFER handling that is
175 now handled by explicit ->flags values. The actual flag
176 values are now exported to the header instead of just using
178 * ideas for zzip_disk_buffer / zzip_mem_disk_buffer sprang from
179 a proposal by JP Dai [Goldleaf] who offerd very similar code.
181 2009-06-27 guidod <guidod@gmx.de>
183 * zziplib.spec: 0.13.56 - and make build.opensuse.org happy by
184 removing the %if/%endif sections. (it seems one buildserver
185 script understands it while the other don't - and effectivly
186 all variants fail if it is left in. Hopefully no other platforms
187 have problems with the additional buildrequires that are put here)
188 * zzip/mmapped.c (zzip_disk_new): malloc(sizof()) was errornously
189 using a pointer instead of ZZIP_DISK. Not part of libzzip but
190 of the extra library libzzipmmapped that is in-memory-only.
191 (problem reported and solution shown by JP Dai [Goldleaf])
192 * configure.ac: disable search for python2.2 (gentoo bug 275247+174189)
194 2009-06-22 guidod <guidod@gmx.de>
195 * zziplib.spec: 0.13.55 and integrate patches for build.opensuse.org
196 * zzip/zip.c (__zzip_parse_root_directory): rework parse_directory
197 to allow for ZZIP_ALLOW_MODULO_ENTRIES version as required for
198 some cases where more than 65535 entries are packed into a
199 non-ZIP64 archive. The modulo_entries variant is disabled by
200 default but the know for the problem space was put into code to
201 check for two more error conditions and report them in debug mode.
202 (problem space was described carefully by Tulipánt Gergely and
203 the provided patch was a good foundation for the ifdef code)
204 * configure.ac: use $can_build_shared from linker-config to allow
205 build on platforms that do not support a shared library concept
206 or where it is disabled (the commandline switch overrides it?)
207 (should fix the SF bug ID 2796485 reported by Giovanni Bechis)
208 * zzip/file.c: errornous usage of currentfp before setting it to
209 the new fp value in zzip_seek(). In the good case it would seek
210 on the wrong file and in the bad case it goes off on sigbus/NPE.
211 The problem occurs only if two+ zips are accessed simultanously.
212 (problem reported and patch kindly provided by Evgeniy Muhin)
213 * docs/Makefile.am: fixup for newer xmlto may be to generate
214 a subdirectory "man3" inside of our output directory "man3"
215 and gard against usage of man3/man3 for the tarball unpacking.
216 (problem reported by Liu Qi [debian package maintainer])
217 * zzip/__hints.h: add else-part for ZZIP_GNUC_PACKED
218 (makes for problems with MSVC as reported by Denny Kunker)
220 2009-05-24 guidod <guidod@gmx.de>
221 * zzip/fetch.c - remove SET/GET fetch definitions that already
222 exist in zzip/fetch.h where they have been corrected lately.
223 * docs/Makefile.am - change from install-sf via shell.sf.net to
224 upload-sourceforge via web.sf.net - and alias to "www" shorthand
225 * docs/referentials.htm - fix typo.
228 2009-05-23 guidod <guidod@gmx.de>
229 * SDL/Makefile.am - remove dependency on zzip-config (and sdl-config)
230 which do not exist any since quite a time - instead use pkg-config
231 > Thanks to Michael Sterret for bringing it up
232 * SDL/SDL_rwops_zzcat.c: the SDL_rwops example was fixed, as the
233 nmemb/size of the sdl-read call were swapped over. The testsdl
234 self check (based on zzcatsdl) works OK.
235 * SDL/Makefile.am - the targe installation paths for the example
236 was fixed to include/SDL_rwops_zzip - additionally there is now
237 an SDL_rwops_zzip.pc pkgconfig script that will refer to the new
238 location (it had been previously installed in include/SDL, ouch).
239 * Note that the old zzip-sdl pkgconfig-files are gone now. Given that the
240 example was not quite working, it is improbable that anyone had
241 been using them in real code, so there's nothing breaking here.
242 * create a new package SDL_rwops-devel in zziplib.spec that will catch
243 the example code, SDL_rwops_zzip includes and SDL_rwops_zzip pkgconfig
244 * append "make check" and "make test-sdl" to zziplib.spec for minimal
245 pre-installation check.
246 * Makefile.am: fix zzip-postinstall
247 * zziplib.spec: specifiy %version for the Provides:-clauses
248 * configure.ac: do not let autoconfigured LDFLAGS/LIBS bleed into zziplib.pc
249 * zip.c: ensure that the zzip64_trailer entries is being used and that the
250 parse_root_directory function honours the full 64bit in the "entries" counter
251 (rejecting the patch from Tulipánt Gergely which would allow to get away with
252 non-standard zip archives that do use a normal zzip_trailer with a 16bit entries
253 counter that happens to store only the modulo value of the real entries in the
254 archive - zippers should fail beyond 65535 entries or switch to the ZIP64 format).
255 * docs/referentials.htm - include reference to http://www.ogre3d.org/
256 * zzip/fseeko.c: check some more return values from fseeko/fread calls.
259 2009-05-22 guidod <guidod@gmx.de>
260 * docs/Makefile.am: break a dual target into two lines as
261 suggested by ticket:2405440
262 * m4/ax_cflags_no_writable_strings.m4 update with sed-call
263 suggested by ticket:2155649
264 * m4/ax_check_aligned_access_required.m4 update for the cross_compiling
265 case with libpcap-list of host_cpu targets thare require aligned access
266 suggested by ticket:2479788
267 * introduce ax_pax_tar.m4 to use *.tar format for manpages.tar (instead of .ar)
270 2009-05-21 guidod <guidod@gmx.de>
272 * docs/Makefile.am: make install-docs install-man3 rules so that
273 a failing "ar x" (on OpenBSD/vax) will not kill the whole
274 configure / make / make install cycle. However it simply
275 means that there will be no manpages on such platforms.
276 May be OpenBSD/vax has a "gar" (gnu ar) installed somewhere?
277 * closes Patches item #2716806, was opened at 2009-03-27 13:01
280 2009-05-21 guidod <guidod@gmx.de>
281 * zzip/fetch.h: ensure that either direct-bswap or direc-deref is only used
282 on platforms that do not require aligned memory access. The
283 latest report from Sylvain Beucler has shown an error a MIPS
284 platform (named http://www.freedink.org/ running on PSP).
285 * zzip/fetch.h: replace _zzip_attribute(const) with defines from zzip/__hints.h
286 * zzip/__hints.h: introduced ZZIP_GNUC_PACKED for __attribute__((packed))
287 * zzip/format.h: replace _zzip_attribute(packed) with defines from zzip/__hints.h
288 * zzip/conf.h: remove _zzip_attribute - not needed anymore.
290 2008-12-27 guidod <guidod@pc3>
291 * ax_create_pkgconfig_info needs a definition for datarootdir (introduced
292 in latest autoconf/automake making for an error in ogre3d configuration
293 as reported by Ignaz Forster)
296 2008-12-24 guidod <guidod@pc3>
297 * add the dir-zzip-* to the cvs repo (as used on some webs)
298 * move "make rpm" to *.am (instead of *.mk)
299 * amd64 should be in libdir=$prefix/lib64 (in the spec file)
301 2008-11-24 guidod <guidod@pc3>
302 * BuildRequires: python (for %package doc)
305 2008-03-22 guidod <guidod@pc3>
307 * zzip/fetch.h: honor ZZIP_HAVE_ALIGNED_ACCESS_REQUIRED for the Linux bswap
308 optimization. See also 443880@bugs.debian "SIGBUS on Sparc".
310 2008-03-03 guidod <guidod@pc3>
312 * TODO: update to recent problems. Need to check my mail stack next time.
314 2008-03-02 guidod <guidod@pc3>
316 * zzip/info.c: reverted.
317 * also: note that the Makefiles have been update to the newest autotools.
318 The project itself has been imported to an Eclipse based CDT project.
321 * enforce indent by automatic indentic-check
324 * http://www.securitylab.ru/forum/read.php?FID=21&TID=40858&MID=326187
325 zziplib vulnerability due to usage of strcpy
326 * add indent-check for enforcing some source code style.
329 * remake manpages.ar / htmpages.ar - redistribute zziplib-manpages.ar
330 instead while the rebuild mechanics become a lot simpler
331 * unless --maintainer-mode, make mans / install-mans part of the default
334 * applying patches from Mike Frysinger
335 * consider making the manpage install target part of the default
336 `make install` rather than a sep install-man3 target ? (from Mike)
337 * Michael Sterret reports, that the SDL/* example requires zzip-config
338 instead of the pkgconfig stuff - actually, the whole part should be
339 give a makeover as newer SDL does install its own sdl.pc which makes
340 the current local generation of zzip-sdl-config.pc a real mess.
343 * adding docs/zip-php.htm integrating Chris Branch's mail into the docs
344 * appending docs/changes.htm rule from ./ChangeLog
347 * adding docs/notes.htm - to register some old dicussions for later
348 reference. Let's see how that fills up.
351 * last doc/*.py updates
352 * last doc/mksite.* updates
353 * last doc/body.htm updates - including new zzipmmapped.html docu
354 * "make install-sf" will copy the doctree directly to sourceforge
357 * docs/makedocs.py docs/zzipdoc/*.py creates new docs/zziplib-man3.tar.gz
358 plus zziplib.html zzipmmapped.html zzipfseeko.html
359 * that will be the only to be used in the future but it is not complete
362 * updating msvc8 project files
363 * adding zlib.dll to cvs
364 * zzip/memdisk.c:183 overrides for off64_t will not work with off32_t !!!
365 * headers for mktime should return time_t - do we have the header ???
368 * A report by Tuilipant Gergely had shown an "unaligned access"
369 error on an alpha machine. So, I have added macro to test for
370 the condition of aligned access but the alpha platoform seems
371 to be okay. Further reports are required.
372 * Mark README.SDL to be explicitly outdated (it's 16. Dec. 2002)
375 * Yvan Phelizot reports a problem in zzip/mmapped.c
376 * Malcom MacLeod had spurious problems inside a C++ project,
377 so let's update all heraders with explicit 'extern "C"' linkage.
380 * rephrase build system, automated tests, some doc parts
383 * bsd/mac needs sys/types.h for size_t
386 * there have been reports about multithreading problems
387 * one source of problems: access to the dir->cache members.
388 fixed by using an explicit semaphore variable, otherwise
389 just allocate/deallocate the buffer / filehandle
390 * second source of problems: the zip file is opened _and_ read
391 with only one filehandle for multiple threads that
392 share the same "dir" handle. Look for "->currentfp".
393 * that is not fixed away - while access to the cache variables
394 can continue in the case of a "locked" state that is not
395 possible for open/reads. In the "locked" case the thread
396 must be blocked but that is a system-specific call.
397 * there are two ways to fix it - (a) push down the sysfile to
398 each zzip_file by "dup(2)"licating the sysfile handle.
399 However zzip looses a feature that was helping a lot on
400 system with a low number of sysfile hands (e.g. dos and
401 some embedded operating systems that I did work with).
402 and (b) provide an indirect ->lock() call that can be
403 filled by the caller application upon zzip invokation,
404 perhaps add it to the io-plugin structure. Well (c) is
405 it possible to support both styles? Dynamically?
408 * testing on sourceforge compilefarm - including "make check"
409 * there was an error on bsd'ish systems (implicit 64on32)
410 which was caused by archaic CORRECT_ROOTSEEK code
411 being still present. Remove it?
414 * testing with Microsoft Visual Studio 2005 (msvc8) Express Edition
415 * fixing some compilation problems related to zip64 support in win32
418 * cut acinclude.m4 into seperated aclocal macros in m4/ subdirectory
421 * testing on sourceforge compilefarm, cleaning away any compiler warnings
422 i386-debian2.2 i386-freebsd4.8
423 amd64-fedora3 alpha-debian3.0
424 sparc-solaris8 powerpc-macos10.2
425 * note, the build system has some quirks but not yet renovated to the
426 newest autoconf/automake stuff anyway - TBD before final release
429 * MSVC7 knows the following __declspec attributes:
430 align(#), allocate("seg"), deprecated, dllexport, dllimport,
431 naked{for asm}, noinline, noreturn, nothrow, novtable,
432 property{MngC++}, selectany{common}, thread{tls}, uuid("name")
433 * introduce zzip__new__ for a restrict'ed return item
434 * introduce zzip_byte_t to help silence down compiler warnings
435 about signedness mismatch in assigning data buffer variables.
436 Especially the zlib data_in happens to be of unsigned char type.
437 * note that zzip/format.h does now use zzip_byte_t for layout definition
440 * adding that _GNU_SOURCE on __linux__ to get the strndup prototype
441 * cleaning a few warning messages on different platforms as well
442 as a bug for 64bit platforms
443 * updating docs/mksite.sh and adding docs/mksite.pl and going to
444 let VERSION be pasted directly instead of a makefile snippet
445 * adding docs/memdisk.htm documentation to the series which is
446 currently quite shallow.
447 * note: no tests for actual zip64 support are made, neither for a
448 large central directory (more than 64K files) nor for large
449 files (more than 2GB). This is all theoretic but I am quite
450 confident that it will work.
453 * change zzip/zip disk_trailer implementation
454 * we do not anymore pass a copy of the file block around
455 * we do use a local helper structure now with off_t fields
456 * the parse_root_directory is now using off_t for all computatations
457 * make check succeeds - beware, this is a new implementation
458 * RANT: glibc bastards make for additinal warning messages, the fseeko
459 prototype is not exported by default, but as soon as we add some
460 define to make it available, some other prototypes are disabled,
461 including one of the most widespread: strndup(). The documentation
462 even says we have to say GNU to get prototype - if you have ever heard
463 of unix to diverge into something not quite but be alike, here it is,
464 what compiles on most platforms gives a warning on linux even that it
465 works fine afterwards because the libc does export all we need and
466 autoconf does find it - it is just not prototyped and that's all.
469 * adding zzip/memdisk.* as cache variant for libzzipfseeko
470 * add macro support for zip64 extensions
471 * extend trailer routines with zip64 detection (and return 0)
475 * remember TODO multithreading tests and hardening the code.
476 http://www.idefense.com/application/poi/display?id=153&type=vulnerabilities
479 * updating to latest autoconf/automake/libtool stuff in Suse92
480 * required a rewrite of ax_enable_builddir.m4 in ac-archive
481 * adding two macros to silence down bogus depracation warnings
482 from the latest gcc 3.3.5
485 * harveyandsu:yahoo:com reported an api mismatch for SDL rwops
486 usage and the implementation in the SDL_rwops_zzip example.
490 * documenting zzip-cryptoid handling
494 * documenting zzipmmapped and zzipfseeko parser libraries
497 * remove bogus zzip_file_open_ext_io from zzip.h
498 * change to use mksite.sh for documentation builds
501 * add link in docs/history.htm to the new appnote.txt whitepaper
502 on zip file format specification.
505 * a test run on solaris did show that fetch.* needs to be linked
506 to the new lib*.la stuff - to convert endianess-dependent
507 values from zip to main memory
508 * there seems to be an automake problem with hpux10 that I can not
509 yet define on what grounds it is - to get away with it I am
510 not defining automake 1.7 as the version to be used, plus
511 autoconf 2.57 - these are pretty new.
514 * zzip/fseeko.c and bins/zzip.c had some issued with non-C99 compilers
515 which do not like variable declarations in the middle of a block
518 * zzip_rewind again - the deflateReset does not reset the
519 input buffer variables (oops) so we have to do it
520 explicitly. Here we adopt to set crestlen to full
521 csize and the current z-buffer fillstate avail_in
522 to null to trigger a new read() on next zzip_read.
523 * the zlib headers do not tell whether next_in/avail_in
524 is used in deflateReset as is done in deflateInit.
525 A question to zlib@gzip.org brought no answer (as
526 is always the case) and after some thinking I did
527 decide to reset avail_in *after* the zReset call.
528 * based on this decision, I have made up a patch and I was
529 sending it over to zlib@gzip.org. Same consequence
530 again, the message is bluntly ignored (while there is
531 traffic on zlib devel mailinglist). There seems to be
532 a major problem about it, either a technical problem
533 (mail-adress disfunctional) or a social problem (no
534 one cares or perhaps some minor racism).
537 * added libzzipfseeko.la with another simplified interface
538 * rename the other one to libzzipmmapped.la
539 * fix bugs for decompression on the latter as well
540 it seems the one has to use inflateInit2 (..., -MAX_WBITS)
541 * added bins/unzzipshow for an example binary
542 * added "--help" and "--version" to all bins examples
545 * added libzzipmmap.la with a simplified interface to zip archives
546 * added bins unzzipdir and unzzipcat to show usage of libzzipmmap.la
547 * introduce zzip/types.h to allow easier inclusion to zzip/mmapped.*
550 * add AC_C_BIGENDIAN and
551 * move out ZZIP_GET to zzip/fetch.h where we also specify access
552 wrappers to items in the zzip/format.h structures, portably.
553 * add byteswap.h ac_check and put a new file autoconf.h to carry
554 compiletime overrides for the autoconf definitions.
555 * start changing over to use zzip/fetch.h definitions everywhere
556 thereby replacing original ZZIP_GET16/32 usages completely.
557 This is localized to zzip/zip.c
558 * rename struct zzip_root_dirent to struct zzip_disk_entry but
559 retain a compatibility declaration.
560 * introduce zzip_version_t and zzip_dostime_t along with an optional
561 ZZIP_NEED_PACKED def that helps with weird compiler struct packing
562 * struct zzip_file_trailer did not use the char[x] variant, it does now
563 * place even more zzip/fetch.h declarations
564 * place even more defs into zzip/format.h
565 * noting CVS area on webpages
568 * Nigel Stewart hints on some MSVC 6 issues, thanks.
571 * implant *Reset instead of Deinit/Init in zzip_rewind - the latter
572 is supposed to make for a memory leak (see problem report).
575 * add zzip_rewind fix by glenn = Glenn Maynard (www.stepmania.com)
576 * fix dirsep_casecmp buglet noted by glenn
577 * glenn did ask for zzip_fstat, and here it is.
578 * but glenn's file_dup is not as easy and skipped here.
579 * otherwise, glenn noted that zziplib is not fully ready for multithreading,
580 the reason seems to be mostly in the reshared 32k buffer where the
581 access is not synchronized completely :-( ... effectivly, in MT
582 all ZZIP_FILE*s need to have a dedicated ZZIP_DIR*buffer.
583 * update make-doc.py with newest version
586 * changing license to dual MPL / LGPL
587 * bumping version code 12.83 = 13.23 which are actually the very
589 * remove a few compatibility headers at install time.
590 * add install-exec-hook to add ln -s aliases for sharedlibs
591 they are being tried again in .spec but that does not
592 matter as long as it is "|| true"
593 * adapt all source to carry the MPL alternative license
594 instead of the old cruft.
595 * remove staticlinking.txt - it should be covered by copying.htm now
596 * remove "compats" disthook as well as the complete subdirectory
597 i.e. rm -r "zziplib/" at top directory (actually, I store it
598 in a distant place for now.)
599 * remove _htmpages.ar and _manpages.are from dist tarball
600 * add toplevel COPYING.LIB
601 * adapt README and TODO
602 * remove ac_output(zziplib and bins/zzip-config)
603 * remove bins/zzip-config.in
604 * adapt m4 macro and call zzip-config to be archaic
605 * remove maintainer-mode for "test.zip"
606 * turn zzip_plugin_io_t into a union reference, the old struct is
607 still of the same name but a member in there called "fd"
608 the typedef is no a "union _zzip_plugin_io" instead.
609 * the member "use_mmap" is renamed to "sys" - we add a #define
610 in plugin.h to let some software compile with all versions
611 * in zzip/zip.c, try now with making maplen and pagesize of type
612 zzip_ssize_t - as it was newly introduce it might help and
613 perhaps be a little conservative in execution. Before that,
614 we did use size_t and it was provoking warnings like
615 comparing/computing signed+unsigned pairs of values.
616 * add "type" and "write" members to zzip_plugin_io, keep it
617 backward compatible as much as possible.
618 * add _zzip_write to zzip/conf.h
619 * remove ZZIP_WRAPWRAP code in plugin.c
620 * remove --with-wrapwrap
621 * introduce a #define _zzip_plugin_io_handlers and
622 typedefs zzip_plugin_io_handlers and zzip_plugin_io_handlers_t
623 * oops toplevel PHONY does not work, an automake restriction
624 * oops, "cat body.htm" should be "cat $(srcdir)/body.htm"
625 * adding manpages.ar again, just to be sure
628 * remove _not_implemend macro definitions for shallow-write api
630 * introduce symbol _ZZIP_WRITE_SOURCE that all files should
631 carry that want to have the declarations of the
633 * use that symbol for zzip/write.c and bins/zzip.c
634 * adding docs/64on32.htm
637 * for the shallow-write api to compile on win32, we need to
638 test for direct.h which only exists on win'sh system
642 * ooops, zzip_strerror_of should check dir != 0
645 * complete zip-write API - no actual implementation so far
646 * tested shallow-write implementation on solaris+linux+win32
647 * and now, call it zzip-12 always
650 * `make docs` does not always work, so we add `make docu` now
652 * fix call for make-doc.py
653 * fix zzip_get16 bad refer that gets detected by make-doc.py
657 * implement zzip/write to a degree that it forwards calls to real
658 files and directories in the system. No zip archives here,
659 but the accession API has been setup so that applications
660 can start to pick it up even for versions of zziplib that
661 have been compiled without zip archive support.
664 * add doc lines in zzip/zzip.h
665 * add write-defines including flag-marker ZZIP_NO_CREAT
666 * add file write.c with empty definitions for write-support
667 * add the make-doc.py script in its last version - and make its output
668 the default master files for both html and docbook
669 * remove all other doc-maker scripts but make-doc.pl and make-doc.py
670 plus the make-dbk.pl of course
671 * twist configure.ac to set PYTHON instead of PHP
674 * make compatibility-headers to issue a warning upon include
677 * fix a segfault with corrupted central directory - just some checks
679 * add a hack to support the fixup-rootdir thing with some simple(r) code
680 that abuses a few fields in the trailer-structure
681 * cvs checkout savannah.gnu.org:config into ../savannah.config and,
682 * add a rule `make configsub` in Makefile.mk to update the two files
683 uses/config.sub and uses/config.guess to the latest versions.
686 * creating a 0.12.82 out of the source for 0.10.82 and make up a rpm
687 spec which does alias the .so files for these generations
690 * the include of _LARGEFILE_SOURCE to do ZZIP_LARGEFILE_RENAME is
691 actually a bad idea - the respective symbol does not provoke
692 64bit off_t on newer platforms. Only _LARGE_FILES seems to
693 be correct here for older aix platform to get them define
694 off_t = 64bit where others are using _FILE_OFFSET_BITS=64 now.
695 * after changes to README, remember to package updated test.zip !!
696 otherwise `make check` will fail.
697 * modify _msvc.sed to include "define ssize_t int"
698 * use ZZIP_EXPORTS instead of ZZIP_DLL for DLL export, that's the
699 automatic way of MSVC 6 saying that "zzip" is a DLL project.
700 * create new msvc6/zzip.dsp and delete msvc6/zziplib_DLL.dsp
701 * all examples shall import from zzip.dll by linking with zzip.lib
702 whereas that other zziplib.lib is just the static library
703 * do a looong and detailed information in README.MSVC6
704 * create a rule to pack the *.dll,*.exe,*lib files into a zip
707 * doc bug in zzip-zip reported by j.scrott.frank
708 * remind me: unzip from memory seems to be more of a task lately...
709 * forgot to modify RELASEINFO in rpm for zzip64 variant
710 * also do not just use -D_LARGEFILE_SOURCE, it does not have the
711 desired effect on all systems. Instead invent a new name
712 -D_ZZIP_LARGEFILE to make it happen magically.
713 * invent a rule to create zziplib64.pc from zziplib.pc for the
714 renamed libzzip.so -> libzzip64.so
715 * invent a rule to create zziplib64.la from zziplib.la for the
716 renamed libzzip.so -> libzzip64.so
717 * do also rename default libzzip.so to libzzip32.so and then create
718 a symlink to it under the old name libzzip.so
719 * create zziplib32.pc and zziplib32.la files accordingly. Following
720 an application may choose explicitly between 32 or 64bit off_t
721 version. This allows us to claim now that the default libzzip.so
722 library may be either of them and not anymore strict 32bit off_t
723 * aaahm, note that all of these account for rules in the linux rpm spec!
724 other system do not get this packaging support from vanilla tarfile
725 * well, better make it lib01 instead of lib0.10 for the rpm name
726 * already roll out visualc7.zip and msvc6 files in subdirectories,
727 do not ship them as .zip files
728 * already adapt msvc6 .dsp files but not yet tested
729 * rename main "rpm" target into "rpm2" to get rid of the warning message
730 * use (cd zzip64 && make install) instead of (... make install-ltLIBRARIES)
731 since otherwise we do not get any .pc file installed (oops)
732 * while modifying *.la into *64.la, take care to fixup reference to the
733 "old archive" *.a as well making it *64.a - same for *32.la file.
734 * some file.c reports there was not previous declaration of some of
735 its functions, but _only_ in 64bit compile step.
736 Reason: looks like a gcc 3.2.2 bug, no fix here.
737 * convert a few "ln -s" into "ln -s -f" in "make install" parts
738 * update README to point out staticlink model
739 in a separated LICENSE section.
742 * add three extra gcc options: -Wpointer-arith, -Wsign-compare, and
743 -Wmissing-declarations which will help about portability to
744 platforms where that is enabled by default in -Wall
745 * sign-compare fix in, zzobfuscated (zzip_size_t -> zzip_ssize_t),
746 * make 5 functions in zzipwrap/wrap.c global=>to=>static
747 * add pre-delcare headers for 2 functions in zzip/zip.c
748 __zzip_find_disk_trailer(), __zzip_parse_root_directory()
749 * rewording of "ends/tail" in find-disk-trailer which does also find
750 a little bug (ends-1 or not) in there, It should not have shown any
751 practical problem so far, also corrected by anotgher little bug
752 in there (ends-tail > sizeof or ends-tail >= sizeof)
753 * adding a parts of a patch from Martin Schitter to harden zziplib
754 for corrupted zip files.
755 * remove a few duplicates in Makefile.mk, still need to keep "rpm"
756 * add declaration for zzip_dir_alloc_ext_io into zzip/lib.h
759 * redefine size_t maplen -> off_t maplen and for each of the calls to
760 mmap()/munmap()/read()/getpagesize() we cast to size_t - this might
761 get us rid of a few warnings about signed/unsigned comparisons.
762 * introduce AC_TYPE_SIZE_T and use the prefixed variant _zzip_size_t
763 within plugin.h for io->read() calls. That makes for a little
764 bit of portability - it seems some platforms (dot-net f.e.)
765 do not `typedef unsigned int size_t;`, perhaps because int is 16bit
766 and a 32bit or even 64bit entitity is needed.
767 * now we do not need to AC_COMPILE_CHECK_SIZEOF(size_t) anymore, perhaps
768 even stand io-wrap is not needed anymore. Let's see.
769 * both changes need update of zzip/conf.h for _zzip_size_t plus
770 - plugin.h for io->read(,,size_t)
771 - zzip.h for zzip_file_read (,,size_t)
772 - zzip.h for zzip_read(,,size_t)
773 - zzip.h for zzip_fread(,size_t,size_t,)
774 - zzip.h for zzip_seek(,off_t,)
775 - zzip.h for zzip_tell(,off_t,)
776 - file.h int => size_t for zzip_file's restlen crestlen usize csize
777 * the io->seeks(,off_t,) has not been respected so far sometimes.
778 and like lseek(2), we define the returntype of zzip_seek as off_t
779 * introduce zzip_ssize_t as well, and modify
780 - zzip.h for zzip_read and zzip_fread and zzip_file_read
781 - plugin.h for io->read() return type
782 * dot-net bug in aligned4() - sizeof(long) < sizeof(void*) !!
783 better use off_t in the hope that it does fix it
784 * tested on ia32-linux, alpha64-linux, sparc32-solaris
785 * ooops, we need to update io-plugin examples and documentation as well,
786 since we define a custom _read() routine righ there.
789 * updating to AX_SPEC_DEFAULTS macro
790 * zzshowme does not work with no libzzip installed in the system
791 * add automake option dist-bzip2
792 * use tar.bz2 for rpm build
793 * add dist-bzip for the latter
794 * use zziplib-lib0.10 package which provides zziplib and libzzip0
795 * forgot to add *.la files into the rpm devel package
796 * AC_SET_RELEASEINFO_VERSIONINFO => AX_SET_VERSION_INFO
797 * adjust all RELEASEINFO -> RELEASE_INFO accordingly
798 * and choose 0.10.82.pre1 as a vesion number for testing
799 which is possible now as the new macro does it right.
800 * forgot override of default_includes in test/*.am
801 * somehow ax_prefix gets the wrong input, i.e. _config.h instead of config.h
802 so we make that one explicit now
805 * the off64_t mode renaming for 64on32 was done incorrectly and
806 it lead to problems on solaris8 - fix it.
807 * fixup `make check` to work on subdir build
810 * adapt README file to clarify LICENSE details as suggested by
811 a discussion with ACE/TAO developers that want to use the
812 library for some compressed xml archives.
813 * fix a few zzip_char_t bugs that got visible in MSVC mode as
814 reported by Olge Ryabukha
815 * kill sfnet strand of the rpm build, the docs are installed
816 into the share/groups part and the omf file points to that
817 place. The index.html file is the one at sourceforge while
818 the other one is the entry point of the local documentation.
821 * quite a few updates are need to --enable-builddir by default
822 * watch out: subdir build is the default now!
825 * pick up AX_ENABLE_BUILDDIR
826 * throw out ac_subst CONFIG_ARGS
827 * use AX_SPEC_PACKAGE_VERSION
830 * memory leak in zzip/file.c - adding free(dir->realname) zzip/zip.c
831 in function zzip_dir_close called via zzip_file_close
832 (bug reported by Olge Ryabukha, thanks!)
833 * "/" is hardcoded for finding subpaths but on windows that could be
834 a backslash as well. That should be handled better, we add some
835 alternative implementations for dirsep_strrchr and dirsep_casecmp
836 but the default is OFF!! even on WINDOWS !!
837 * thereby seen another problem: we did deliberatly use strcasecmp but
838 this symbol is not available on all unix systems - the manual
839 says its a BSD4.3 addition. Some other systems call it strcmpi
840 or stricmp instead, or they do not have it at all. Here we add
841 a configure rule to check for that symbol, and when we do not
842 have it then we _enable_ dirsep_casecmp automatically.
845 * change extension of intermediate docbookfiles to ".xml"
846 * throw out attempts to compile docs with php
849 * lots of doc updates in between. (forgot to document them).
850 * a zzip-config update, and installing an aclocal macro now.
853 * defattr(root,root) !! - why that had been forgotten? hmmm...
854 * allowing for --disable-debug to clean cflags from -g entries
855 but it has not effect on callframe generation... actually.
858 * we need to stop the manpages.ar bloat - now!
861 * add largefile tests in configure.ac
862 * add largefile detection in zzip/conf.h
863 * add renamings for zzip_telldir/seekdir in zzip/zzip.h
864 * add extra exports in zzip/dir.c to have both 32bit and 64bit names exported
865 i.e. zzip_telldir _and_ zzip_telldir64
866 * add renamings in zzip/plugin.h to ensure that 64bit-off_t-compiled zziplib
867 is not given io-callbacks being from another program that is actually
868 compiled as 32bit-off_t and where therefore arguments do not match.
869 * detected a dubious export of "aligned4()" - rename this export now.
870 * also rename everything having "_io" in the name - just to guard ourselves
871 from the case where two -lzzip are in the libpath and one is
872 compiled 64bit-off_t while the other is not.
873 * rename the younger function s/zzip_open_shared/zzip_open_shared_io/
874 * make up functions for zzip_open_ext_io and zzip_opendir_ext_io for the
875 case of 32/64bit dual systems where lib is compiled in largefile mode.
876 Let the call succeed unless an "io" structure was given - return
877 the EOVERFLOW errno as specified in the large.file WG documents.
878 * make all parallel defines for 32/64 bit dual off_t dependent on
879 defined EOVERFLOW and defined PIC - i.e. only for dynamic linkage.
880 * adding LARGEFILE_CFLAGS into zziplib.pc and bins/zzip-config.in
881 * NOTE: the default for --with-largefile is still OFF !!
882 * NOTE: our zzip_readdir is not depenent on off_t size
883 * adding -64 into the --release info for the sharedlibrary build
884 it should have been a --variant but such does not exist so far
886 * extract AC_SYS_LARGEFILE_SENSITIVE and put it into an extra ac-macro
887 * clean zzip/file.h from compatibility-install as zzip-file.h
888 the structure in there contains zzip_off_t items and they
889 should be internal always anyway - so disallow access for
890 old programs now just to be sure.
891 * adding zzip64 compilation into zziplib.spec - an rpm package will now
892 install both 32bit off_t and 64bit off_t variants of the sharedlib
893 * note: we do not copy 64bit zzcat into the rpm, perhaps we should?
897 * add zzipself.c and zzipsetstub.c for the sfx test
898 * zzip_file_open takes o_modes flags, clarify in zzip.h
901 * adding scrollkeeper omf file generation in docs/
902 * adding omf file installation in docs/make-install-doc
903 * replace %post-doc message in zziplib.spec with scrollkeeper-update call.
904 * need *.pc *.omf in CLEANFILES now
905 * mingw32 crossgcc tests for win32 dirent emulation - did need some fixing
908 * adding generation/installation of pkgconfig files
909 * making SDL a build-requirement for rpm packaging
912 * add compatibility subdirectory "zziplib"
913 * zzipback.sed to create zziplib/* files from current release files
914 * include into distribution tarball
915 * IMPORTANT: flashback - 12.24 is now called 10.74 -
916 the old source line will cease to exist, only the compatibility
917 directory will survive a while - that should put some pressure
918 on developers to update to the new source tree. And it saves me
919 some work to keep two trees in sync.
922 * fix some problems of make-doc.pl with the current project
923 * make a standard inlude info referring to zziplib.h as well
924 * unpack htmpages.ar on SFNET and register it on the frontpage
925 * dont forget to modify includes of internal headers
927 * fixed an annoying bug in make-doc.pl
928 * include htmpages.ar into the tarball
930 2002-12-19 Guido Drhaeim <guidod@gmx.de>
931 * completed new directory structure - the library is called 0.12.22 as
932 to match 0.10.72, it's the same C source in its content
933 * install-headers modified - the new structure is now compatible both
934 as a shared libary (binary compatible) and for the include headers
935 too - source compatible not only for function names but also for
937 * 0.12.23 fixes a bug in make doc: the xmlto html was never done.
938 * and we implant make-doc.pl which was founded on the base of the local
939 zzip-doc.pl but has since gone a lot further. It's currently just
940 a third variant but it is now used as the primary master default.
942 2002-12-18 Guido Draheim <guidod@gmx.de>
943 * man page update for zzip_open_shared (it turns out to be a good name).
944 * let frontpage point to http://www.gzip.org/zlib for primary zlib site.
946 2002-12-17 Guido Draheim <guidod@gmx.de>
947 * introduce zzip_open_file that may have an extra argument of a factory
948 file to share the zzip internal directory if that is possible.
949 * introduce zzip_freopen to take an extra argument. The supplied handle
950 is freed unless of course one puts ZZIP_FACTORY into o_modes so
951 that it becomes a wrapper around zzip_open_file
952 * the zzip_open_file, in that case, is the old zzip_open_ext_io call
953 but extended with checking the factory stream for a matching
955 * while being there: introduce ZZIP_ALLOWREAL o_mode that will make it
956 that a real file is open/read/close with the standard posixish
957 routines. This is most useful when having an obfuscated zip
958 file around but during development one wants to sometimes check
959 with a real file - so the call mode is something in the middle
960 of ZZIP_ALLOWREAL - ZZIP_PREFERZIP|ZZIP_ALLOWREAL - ZZIP_ONLYZIP
961 where the middle is for "yet another file not yet included",
962 hmm, perhaps a cheat file? ;-)=)
963 * cleaning rwops example: fix the mode check, it's not needful to start
964 with "r" to be a readfile mode, it may be somewhere in between.
965 * introduced __zzip_dir_parse as a cut off from zzip_dir_fdopen_ext_io,
966 but it did turn out to be not necessary, so it is made static in
967 the end. Still, it works as documenting the control flow better.
969 2002-12-17 Guido Draheim <guidod@gmx.de>
970 * win32 mmap removing extra braces
971 * win32 dirent implementation added - new file __dirent.h
972 and modified zzip-dir.c
973 * a couple of arg[n] -> argv[argn] cleanups.
974 * a missing argc > 1 check added.
975 * all changes due tests / bug reports by Thomas-dot-Eder-at-nmi-AT
977 2002-12-16 Guido Draheim <guidod@gmx.de>
978 * the infozip `zip` tool puts out messages per default on some machines
979 fix by adding >/dev/null in some places of Makefile.am
980 * the hpux10.20 platform has sys/mman.h but no MAP_FAILED
981 the `man mmap` says it returnes "-1" as done on all other unix
982 compatible platforms, so we add a default define ((void*)(-1))
983 * update TODO file with some hints on test runs.
984 * add --with-zlib configure call to make it easier to specify a path
985 * make zlib error messages to point to this configure option.
986 * beautify error output on all other options as well.
987 * create `make brute` to make a bruteforce test
988 * solaris8 make has a problem with $< ... change sometimes into $?
989 * freebsd/darwin have 64bit off_t by default - and that reveals a problem
990 in the zzip_telldir/zzip_seekdir code. Let's change the code to make
991 it return/receive a byte-offset of "dir->hdr" to "dir->hdr0".
992 This makes printing of those values also more intelligible (if ever).
993 * ia64-linux reveals a problem in "default_io" since size_t is 64bit.
994 We modify --with-wrapwrap to autodetect this case. This is okay
995 since zip-files can not get bigger than 32bit offsets anyway.
997 2002-12-16 Guido Draheim <guidod@gmx.de>
998 * merging corrected README.SDL and __hints.h
999 courtesy of Thomas-dot-Eder-at-nmi-AT
1000 * update CFLAGS ac-macros to the new generation as shipped with
1001 latest ac-archive-0.5.39 (did upload just yesterday...)
1003 2002-12-14 Guido Draheim <guidod@gmx.de>
1004 * many hours of debugging - I don't remember which flaw came in through
1005 the latest changes or which others were there before *sigh*
1006 * e.g. the error-code mappings were refined on linux errno codes
1007 * fix "caseless" bugs reported by Thomas-dot-Eder-at-nmi-AT
1008 * fix MSVC related flaw when taking a casted value as an lvalue
1009 * replace AC_CREATE_PREFIX_CONFIG_H with new style AX_PREFIX_CONFIG_H
1010 * invent zzip-msvc.sed to turn config.h.in into zzip-msvc.in and
1011 finalize a fresh zzip-msvc.h via AX_PREFIX_CONFIG_H
1013 2002-12-13 Guido Draheim <guidod@gmx.de>
1014 * shown by Mike Nordell tamlin-at-algonet-SE we can support win32 mmap
1015 * modify configure.ac : if have:winbase.h then auto -enable-mmap
1016 * refactor mmap'ing - it goes into __mmap.h and uses the io->use_mmap value
1017 and that include file contains both posix and win32 mmap variants
1018 * rewrite pagesize/mapoff calculations - this should be faster in itself
1019 and also easier to maintain in the future for being more obvious.
1020 * rewrite read/write defines and wrapwrap's. The zzip-conf.h does now
1021 contain defines for _zzip_read/_zzip_lseek - and it should us get
1022 rid of the nasty win32 problems with redefining _read/read
1023 * refactor DBG defines - put them into __debug.h - oops, xbuf() was
1024 an exported symbol, better be not. Use only newer NOTE/WARN macros!
1025 * implant __hints.h include - that's taken from another project but it
1026 is so damn useful ;-)
1028 2002-12-12 Guido Draheim <guidod@gmx.de>
1029 * modifizied zzip-zip.c to include a sanity check on getpagesize ()
1030 for mmap () functionality and ZZIP_BUFSIZ (the default is good).
1031 * modify configure.ac : const char strings
1032 * modify configure.ac : strict prototypes
1033 * modify configure.ac : all warnings
1034 * ... and so it reveals something missed along ;-)
1036 2002-08-27 Guido Draheim <guidod@gmx.de>
1037 * modified zzip-stdint.h along the example patch for FreeBSD done
1038 by wjpalentstijn at sourceforge in projet uwadv.
1040 2002-07-24 Guido Draheim <guidod@gmx.de>
1041 * did teach myself php over converting zzip-doc.pl into zzip-doc.php
1042 * added php-test and another way to create the docbook file, with php
1044 2002-07-20 Guido Draheim <guidod@gmx.de>
1045 * lots of fixes around docbook/manpage - and generate a zziplib.3
1046 overview page. Fixes also lots of comments in the sources.
1047 * modified fopen-mode interpration nicely.
1048 * added zzip-api for full overview of the zzip's API
1050 2002-07-19 Guido Draheim <guidod@gmx.de>
1051 * greatly enhanced docbook/manpage generation - including to attach
1052 author and license info from the respective source file header
1054 2002-07-18 Guido Draheim <guidod@gmx.de>
1055 * extended the perlscript to generate zziplib.docbook
1056 * use xmlto to generated manpages.ar
1057 * install-man3 target and push into rpm-devel package
1059 2002-07-17 Guido Draheim <guidod@gmx.de>
1060 * no new code, just doc updates. The perl-script is now capable to
1061 combine _ext_io functions with their non-ext/io cousin, and the
1062 sources have been modified to honour this new mode.
1063 * the perl-script is now ready to spit out other data like docbook
1064 files that we can generate man-pages from later.
1066 2002-07-16 Guido Draheim <guidod@gmx.de>
1067 * extern-C in SDL_rwops_zzip.h ... and ifdef'able DECLSPEC for staticlinking
1068 * zzip_fopen allows to greatly simplify SDL_rwops_zzip.c
1069 * zzxordir.c zzxorcat.c zzxorcopy.c invented
1070 * lots of new documentation added
1071 zzip-extio.html zzip-xor.html zzip-refs.html
1072 * new checks that test the zzxor examples
1073 * and found an zzxor bug in the course
1075 2002-07-15 Guido Draheim <guidod@gmx.de>
1076 * Michael-dot-Fink-at-asamnet-dot-de did some code review while
1077 going after a specialty he wanted to do with the libs, and therefore..
1078 * PREFERZIP did never test real file - stupid bug, inverted logic....
1079 * add ZIPONLY zzipmode - we have plenty of options availabe... on 32bit
1080 platforms however, since I want to keep with the access-bits in
1083 2002-07-12 Guido Draheim <guidod@gmx.de>
1084 * watcom-c-10.5 project file added
1085 * used my old watcom compiler to debug the win32 problems, and it turned
1086 out to be a mismatch in proccall for zlib - while the default in
1087 zlib.h inferred WINAPI, it turned out that zlib114dll.zip had in
1088 fact been compiled with __syscall procframe callmethod. Duh!!!
1089 * some things had to be rearranged in header files - most classically it
1090 seems that this compiler does not support __inline in C mode.
1092 2002-07-11 Guido Draheim <guidod@gmx.de>
1093 * convert all API const types into those with _zzip_const and use new
1094 types like zzip_char_t and zzip_strings_t throughout the sources.
1095 * add ZZIP_RDONLY and friends. Do not use fcntl bits anymore, and limit
1096 use routines to convert them into O_DEFs later one in the next
1097 version of this lib - here we just declare them to be their O_DEFs
1098 but code should start to pick up ZZIP_DEFs in the meantime.
1099 * add zzip_fopen and friends as another type of magic wrappers.
1100 * modify open_ext_io to use receive separate arguments for the two
1101 zzip extraflags - use these from now on, the others are just
1102 for limited backward compatibility.
1103 * modify all _close functions to return "int".
1105 2002-07-10 Guido Draheim <guidod@gmx.de>
1106 * Marlin Prowell mbp-at-cadalog-inc-dot-com did hit a problem on FreeBSD
1107 showing off a config problem - the configure.ac macro for off_t is
1108 written to be _undefined_ if off_t existed in the system. Instead we
1109 chose to defined zzip_off_t into a "long" as it is needed on win32,
1110 and since FreeBSD on LFP32 uses OFF64 it did fall flat on calls to
1111 lseek - without io-wrap the gcc did cast them correctly, so it worked.
1112 * the fix: use off_t if zzip_off_t undefined. Add a define zzip_off_t into
1113 long in conf-msvc.h. Add a configure-option to have wrappers for the
1114 default lowlevel calls as suggested by Marlin but I choose to have
1115 them off by default - a bsd ports package may start using it.
1116 * there have not been reported problems in the last three months where only
1117 developers knew about the new version. Guess it's time to push this
1118 tarball and announce it on freshmeat.
1120 2002-04-30 Guido Draheim <guidod@gmx.de>
1121 * fix typo in zzip-zip.c: __USE_MMAP -> _USE_MMAP
1122 * if zlib.h not found, make it a fatal exit
1124 2002-04-25 Guido Draheim <guidod@gmx.de>
1125 * adding a few more `make check` rules for bigger zip files
1126 * add even negative tests
1127 * add some spaces in error-messaging in zzdir.c and let return
1128 an exitcode when some argument files could not be read
1130 2002-04-24 Guido Draheim <guidod@gmx.de>
1131 * apply patch from Mike Nordell
1132 changes all "const char * *" into the intended "const char * const *"
1133 changes some typecasts
1134 corrects comment and adds some
1136 * put the updated MSVC6 files into the project, again Mike Nordell
1137 * me, add new zzwrap.dsp to DIST in Makefile.am, following Mike's addition
1138 * me, modify some typecasts to use off_t/size_t where apropriate
1139 * modified COPYING.ZZIP to be a bit more general than just for ZZIPLIB
1140 as noted by Tomi Olilla
1141 * zzipwrap demo_callback, how can we do void* and char* at the same time...
1143 2002-04-23 Guido Draheim <guidod@gmx.de>
1144 * changed ssize_t into int in zzipwrap-mem for portability reasons
1145 * fix zzip_dir_fdopen_ext for access to uninitialized io-vtable
1146 (thanks to Lutz Sammer johns98-at-web-dot-de for testing)
1148 2002-04-22 Guido Draheim <guidod@gmx.de>
1149 * add MSVC6 project files contributed by Mike Nordell tamlin-at-algonet-dot-SE
1150 * add plugin_io-patch from Mike Nordell
1151 and dump the iowrap-patch from Andreas Shiffler from earlier release
1152 * append the Mike Nordell's zzobfuscated.c to Makefile.am
1153 * add a new file COPYING for new less-strictly license
1154 after Tomi Ollila has transferred full copyright to me
1155 * remove Tomi Ollila from all copyright entries in the sources
1156 but honour his name where apropriate
1157 * modify LGPL hints in sources and point to COPYING.ZZIP as well
1158 and change copyright year info
1159 * create COPYING.ZZIP with some general LGPL exceptions.
1160 * use newer AC_CREATE_CONFIG_H macro and start using acinclude.m4
1161 to allow retooling of the project.
1162 * and use zzip_off_t instead of ZZIP_off_t (but keep backward compatibility)
1163 * apply patch for the problem detected and corrected by
1164 Steve Dillon steved-at-phone-IVR-dot-com
1165 * try with an updated ac_create_prefix_config_h due to a bug report by
1166 John W. O'Brien john-at-jugglers-dot.com
1167 where his shell-and-echo combination did interpret \\1 twice.
1168 * add use_mmap flag to plugin_io_t, so the feature can be used
1169 along USE_MMAP configured setups
1170 * change USE_MMAP #ifdefs to use if()s and to rely on the
1171 compiler to do code removal for unreachable code
1172 * remove tell() part of plugin_io and rename seek()-indirection
1173 to seeks()-indirection using a tells()-macro in zzip-file
1174 * also rename s/seek/seeks/ in zzip-zip and kill the (*function)(x)
1175 for the indirection functions into just function(x)-calls
1176 * fix zzobfuscated example code - there's no read() without unistd.h
1177 in unix, and global zzip_install_io had been removed lately.
1178 * add zzipwrap-io.c and zzipwrap.c from Andreas Schiffler's patch
1179 on the new ground of Mike Nordell's plugin_io
1180 * modify zzipwrap sources to work with plugin-io
1181 * add io pointer to dir-structure, and use it as the default for file-structs
1182 * __zzip_open_zip is called __zzip_try_open now and takes two arguments
1183 * typedef struct zzip_plugin_io * zzip_plugin_io_t;
1184 * zzip_opendir_ext_io .. for magic convenience
1185 * create new zzipwrap.la in Makefile.am
1186 * move plugin_io struct from zziplib.h to zzip-io.h
1187 along with its helper functions
1188 * change all filesize into zzip_off_t
1189 * s/zzip_find_disk_trailer/__zzip_find_disk_trailer/ (additional io arg)
1190 * s/zzip_parse_root_directory/__zzip_parse_root_directory/ (ditto)
1192 2001-10-11 Guido Draheim <guidod@gmx.de>
1193 * added zzipwrap feature contributed by Andreas Schiffler
1195 2001-09-18 Guido Draheim <guidod@gmx.de>
1196 * fix bug for `zzip-config --cflags`
1197 which did print /xx/include instead of -I/xx/include
1198 (thanks to Roger Ostrander <denor(at)yahoo.com>)
1199 * change the for-loop in zzip-config - the "for i ; do" is not portable
1200 because I had problems on solaris-sh. Use "$@" which expands
1201 to a list (!!) of argv entries for this for-loop even for
1202 arguments that contain spaces. fascinating.
1203 * use AC_HELP_STRING ... the `configure --help` screen got a bit
1204 misformatted lately.
1205 * add a `make check` rule.
1207 2001-08-19 Guido Draheim <guidod@gmx.de>
1208 * add that /programs magic to the $prefix check in configure.ac
1209 * add that /usr/share magic to the $prefix check in configure.ac
1210 * fix zzip-sdl-rwops.html layout (and copying.zlib link).
1211 * fix some flaws in sdl-rwops example source (just by code review).
1212 * add unistd.h include to zziptest.c to silence off the warning about sleep
1213 * add non-dll compile to extern in zzip-conf.h - does that fix anything?
1215 2001-08-18 Guido Draheim <guidod@gmx.de>
1216 * SDL_rwops_zzip.c/SDL_rwops_zzip.h SDL-example file.
1217 * change all filename args to be const
1218 * add ZZIP_const to zzip-conf.h, but do not use it for now.
1219 It seems that all current lib-users have a modern compiler...
1221 2001-08-16 Guido Draheim <guidod@gmx.de>
1222 * export zzip_dir_free / zzip_dir_alloc
1223 * bring in fileext field to check for multiple fileextensions.
1224 * make zzip_open check for multiple (default) fileextensions.
1225 * add ifdef USE_ZZIPLIKES to implement feature proposed by
1226 Julien Cayzac <deepmind(at)jessica.brainlex.com>
1227 * make zzip_open check along the dirpath for a zip-file
1228 a feature proposed by Lutz Sammer <Johns98(at)web.de>
1230 2001-08-15 Guido Draheim <guidod@gmx.de>
1231 * add "stroustrup" style to all c files to ensure that casual
1232 developers do not trash the layout unintentionally.
1233 * modify examples a bit with more newlines / comments.
1234 * re-license examples to ZLIB license
1235 * include COPYING.ZLIB into doc_FILES
1237 2001-08-10 Guido Draheim <guidod@gmx.de>
1238 * change frontpage of webpages - including a few crosslinks to
1241 2001-08-07 Guido Draheim <guidod@gmx.de>
1242 * split version X.Y.Z into -relese X -version-info Y:Z
1243 * adding --disable-thread-safe, and add -thread-safe linkage by default
1244 * modify releaseinfo for with-debug
1245 * install-zip target to make a windows package
1246 * change serial to _vendor - rpm has never been used for other than linux
1248 2001-08-06 Guido Draheim <guidod@gmx.de>
1249 * reorganize docs, update docs to new style
1250 * split version X.Y.Z into -release X.Y -version-info Z
1252 2001-08-05 Guido Draheim <guidod@gmx.de>
1253 * add zzip-msvc.h, a header file that will be included when
1254 a windows compiler is detected in zzip-conf.h, e.g.
1255 _MSC_VER or __BORLANDC__
1256 * mv index.html zzip-index.html and add makerule that patches
1257 the VERSION in before installing it as index.html
1258 * add a makerule to build sourceforge htdocs and add it
1260 * add generic patches for libtool into configure.ac
1262 2001-07-18 Guido Draheim <guidod@gmx.de>
1263 * check up bugs in automake 1.4beef, now using a rule to
1264 override AUTO* in non-maintainer-mode. we also set
1265 libtool to silent in non-maintainer-mode
1266 * docs are installed to $datadir/doc/$package as default
1267 * rpms can now be built.
1268 * create --with-docdir and let it be filled in rpm-configure
1269 so that docs will end up where rpmopt says it should.
1270 * ChangeLog goes into %doc of rpms.
1271 * uhmm, forgot to install the test*.c files into the docdir
1272 * the bin rpms had not been built
1273 * compress into base and devel package
1274 * errnolist should be static
1276 2001-07-17 Guido Draheim <guidod@gmx.de>
1277 * nuke Makerule system, use plain autotools style including
1278 configure && make install to rebuild
1279 * update Makefile.am (which is new now)
1280 * use next-generation autotools as a basis, update configure.ac
1281 to newer style, update configscreen at the end of file
1282 * check perl in configure and let it default to "echo"
1283 * check HAVE_ defines coming from config.h - it is not anymore
1284 included by zzip-config.h, so each config-def usage
1285 must now use the prefix'd version
1286 * provide a zziplib.spec file
1288 2001-01-05 Guido Draheim <guidod@gmx.de>
1289 * apply zzip_seek-patch from Ted [sourceforge.net/users/tam4]
1292 2001-01-02 Guido Draheim <guidod@gmx.de>
1293 * gone through a couple of trial and error versions until
1294 I finally arrived at a mingw32msvc zzip.dll - basically
1295 I had to update the included libtool files to 1.3.5
1296 and the zzip.dll source-files have a ZZIP_DLL define
1297 before the first include that points to zzip-conf.h -
1298 and there is the magic about dllexport and dllimport.
1299 Hopefully the same can run under MSVC without further
1300 changes to the sources.
1301 * try to package a zip-file that contains the relevant files
1302 from the mingw32msvc install, so that windows user
1303 get a clean dll without the need to compile it.
1306 2001-01-01 Guido Draheim <guidod@gmx.de>
1307 * received a patch for MSVC compatibility from Ted A. (@lehigh.edu)
1308 which made me to look after the project again. There
1309 were two support requrest during summer that asked for
1310 MSVC support, especially a prebuilt dll and headers.
1311 * added AC_PREFIX_CONFIG_H that I made originally for
1312 another project. It enables me to push the configure
1313 detections into a global include/-dir. Ted's patch
1314 used an `IFDEF MSVC DEFINE HAVE_SYS_TYPES_H` which
1315 is a symptom of using config.h&HAVE_CONFIG_H and
1316 zzip-file.h&IFDEF HAVE_xx. Change all header-IFDEF-HAVE
1317 to use IFDEF-ZZIP_HAVE, and install zzip-config.h
1318 along with the other headers, change the original
1319 include"config.h" in zzip-stdint.h and make it rely
1320 on zzip-conf.h - where zzip-conf.h includes zzip-config.h
1321 and lists the detected features to be used, along with most
1322 important extra defs for MSVC compatibility. (!!!)
1323 * added AC_COMPILE_CHECK_SIZEOF (cross-compile clean!)
1324 to always use the correct STDINT defines. Delete
1325 use of glib.h if present, it's not needed anymore.
1326 * use ZZIP_off_t instead of off_t
1327 * prepare for a MSVC' ZZIP.DLL with _zzip_export defines..
1328 -DZZIP_DLL -> declspec(dllexport)
1329 -DHAVE_LIBZZIP -> declspec(dllimport)
1330 * make sure, __attribute__ is okay with non-gcc compilers
1331 and attache packed-attribute to *all* zipformat-structs. The
1332 whole of zzipformat.h is also enclosed in pack-pragmas.
1334 * create zzip-config.in and install it.
1335 * mingw32msvc has shown that we need -lz on the command-line
1336 to resolve a few symbols
1338 * install zzip-config along
1339 * mingw32msvc does not build with cross-make.sh as seen on
1340 http://libsdl.org/Xmingw32 - it needs the cross-tool/lib
1341 just as well. There we have LDLIBADD in Makefile.mk now.
1342 Now everything works for making win32 target with cross-tools.
1343 * The rest of the make-struture should ensure to be able to
1344 create an MSVC nmake Makefile - the Makerule.am is clean and
1345 can be directly included... hopefully.
1349 2000-06-03 Guido Draheim <guidod@gmx.de>
1350 * Tomi did a final test round for solaris, oh well,
1351 configure needs some fixes...
1352 * checking for myself at the university's solaris2.6 with
1353 gcc-2.95.2, hmm... there's an sys/int_types.h that
1354 seems to define some of C9X int-types, put it into
1355 the configure.in and know about it in zzip-stdint.h
1356 (btw, glibc seems to have include/inttypes.h that
1358 * tomi did report a problem with gcc 2.7.2... probably
1360 * release 0.10.6 and going to announce it...
1362 2000-05-31 Guido Draheim <guidod@gmx.de>
1363 * created the main doc html files, index.html, zzip-zip.html
1364 and zzip-file.html. the README and README.API is deleted,
1365 and the TODO is a bit updated.
1366 * This version is meant to be announced very soon now.
1367 * release 0.10.5 and contact Tomi for his final nod.
1369 2000-05-31 Guido Draheim <guidod@gmx.de>
1370 * ifdef HAVE_SYS_STAT_H where stat is used. Removed
1371 the stats from zzip-file.h - it will now just try
1372 to open the file or zip-file and assume that
1373 open(2) will fail if the file is not there. I do
1374 hereby assume that the returned fd is seekable..
1375 * two new functions, zzip_dir_real and zzip_file_real
1376 to check if the ZZIP_XX structures are wrapping a
1377 real file or directory. Otherwise it is a zip-archive
1378 or a zip-contained file respectivly.
1379 * zzip_compr_str does now know about stat-types and
1380 will return names for S_ISTYPE bits.
1381 * remove zzip_fd. It was identical to zzip_dirfd
1382 whose name is consistent with dirent.h
1383 * zzip_stat -> zzip_dir_stat since it does not neither
1384 return a stat structure nor does it use stat(2)
1385 * Checking the doc-comments
1387 2000-05-30 Guido Draheim <guidod@gmx.de>
1388 * zzip_fp -> zzip_file and _fp_ functions to _file_
1389 * zzip-stdint.h to ensure iso c9x typedefs
1390 * ZZIP_GET16/32 macros in zzip.h header.
1391 * minor updates in cosmetics and documentation
1392 * have full replacements for dirent.h functions,
1393 the zip-specific functions are now called
1394 zip_dir_open (and more alike). The zzdir can
1395 now show a list of files in a real directory,
1396 or magically the files contained in a zip-arch.
1399 2000-05-29 Guido Draheim <guidod@gmx.de>
1400 * zzipmain -> zziptest and some cleanups
1401 in the Makefile. zziptest is now just
1402 another test program, so it gets compiled
1403 in full similarity with zzcat and zzdir.
1404 * removed zziptest from install-bin
1405 * the long forgotten simplicistic dependency
1406 rule is now in here too.
1407 * cosmetics to pointer declar' stars in
1409 * ZZIP_FP -> ZZIP_FILE and
1410 zzip-fp.h -> zzip-file.h
1411 * removed the use of zzip.h where suggested
1412 by Tomi. (use public zziplib.h instead)
1413 * removed errno.h from zziplib.h
1414 * printing configuration at end of configure.
1415 * add install-includeHEADERS rule, so that
1416 zziplib.h does now get installed.
1419 2000-05-27 Guido Draheim <guidod@gmx.de>
1420 * zzipformat.h carries information about the
1421 zip-file structure. The typedefs are now
1422 used to access members of the zip-archive
1423 (instead of using the offsets directly).
1424 * notice that the members are declared
1425 bytewise due to compiler semantics that is
1426 making a structure packed&aligned to the
1427 greatest common size (which would be 4).
1428 setting as attribute(packed) is not very
1430 * reworked the files, esp. zzip-zip.c and
1432 * _USE_MMAP in autoconf, including option
1433 and CFLAGS setting. instead of open/read
1434 to a scan buffer the zip-file is mmapped
1435 and scanned directly.
1436 * _LOWSTK in autoconf, including option and
1437 a CFLAGS setting. Still need a scan buffer
1438 and this flag tells us not to carve the
1439 scan buffer from the auto-stack and use
1440 instead some malloc for the scan buffer.
1441 * DEBUG in autoconf, including option and
1442 a CFLAGS setting. The macros should now
1443 be able to be found everyone and only.
1444 * revamped EDH find routine, dumped old-style.
1445 * revamped read-EDH to use mmap and to use
1446 copy/read only for the parts we need. The
1447 read-EDH buffer is not limited to 32K
1448 anymore and can have any length. No realloc
1450 * opendir does not allocate the cache.buf32k
1451 anymore - it does have no need for it. the
1452 buffer is still cached for subsequent Open
1453 calls. May want to setvbuf later.
1454 * a few renamings to be more bits/dirent.h-like,
1455 so many things are now called d_name and
1456 d_reclen instead of name or next as before.
1457 * renamed the package to "zziplib" as being
1461 2000-05-26 Guido Draheim <guidod@gmx.de>
1462 * -release at link-line for the lib
1463 * zzcat.c as a test program, which uncovered
1465 * a flaw w/_fd_opendir when being given a
1466 non-inited err-return-variable and no
1468 * the error to errno table was incomplete,
1469 and the ZZIP_INFLATE error is superfluous.
1470 * zzdir.c as a test program, needs still to
1471 be given the full zip-arch name.
1472 * changed member names of zzip_dirent to
1473 match similar names in dirent and stat,
1474 (ie. d_name and st_size) and added furthermore
1475 a z_size that returns the compressed size.
1476 * little updates to names and comments.
1479 2000-05-22 Guido Draheim <guidod@gmx.de>
1480 * merge with zip08x-0.9.6 - actually just
1481 a bugfix for zzip_fp_open IGNOREPATH -
1482 I even applied it in a different way than
1484 * bugfixes for zzip_open, it did not always
1485 set errno(2) to the value of zzip_errno.
1486 * The zzip_read is now seperate from
1487 zzip_fp_read, so that setting errno(2) is
1488 only done in zzip_read, not in the zzip-touching
1490 * zzip-doc.pl to generate libzzip.html
1493 2000-05-21 Guido Draheim <guidod@gmx.de>
1494 * drop-in replacements ready for daily use,
1495 just use zzip_open with a normal path to
1496 a fs file. If that file is not found in
1497 a normal fs directory, then the path is
1498 splitted into a basepath and a filename,
1499 a ".zip" is appended to the basepath to
1500 form a zip-arch name, and the filename
1501 is then searched inside the zip-arch if
1502 that one exists. Very nice for distribution
1503 of a subdirectory full of scripts and that
1504 is what it is meant for - the PFE will be
1505 able to use this one for Forth-files.
1506 * have a VERSION file containing "0.10.0" and
1507 add some rules to Mk-rules
1508 * start with in-source docs that will be used
1509 for documenting the lib calls. A jdoc like
1510 doc extractor should be able to grok these,
1511 I'll see to release docs with the next
1512 release, but this time...
1513 * make it release 0.10.0 and upload it to
1514 pfe.sourceforge.net/pub where it will lurk
1515 around until I contacted Tomi. He seems to
1516 be currently working on zip08x
1518 2000-05-17 Guido Draheim <guidod@gmx.de>
1519 * decided to have it actually called zzip_ and so
1520 all of the stuff is going to get renamed again.
1522 2000-05-16 Guido Draheim <guidod@gmx.de>
1523 * obtained Tomi's code and made changes so that the
1524 resulting library is more portable, esp. the glib
1525 usage is being abolished. The name of the library
1526 (and package) has been renamed to libunzip and
1527 all types, consts and funcs to now carry the unzip_
1530 * drop-in functions that can be made to easily replace
1531 dirent and filefd functions.
1534 Mon Apr 5 11:23:46 2000 Tomi Ollila (too@iki.fi)
1538 * Made some tiny modifications after Matthew's code.
1540 Sun Apr 4 8:30:00 2000 Matthew D. Campbell (matt@campbellhome.dhs.org)
1542 * Cleaned up compile warnings in SuSE Linux
1544 * Cleaned up code for cross-compilation with Xmingw32
1546 * Modified zipx.h to support linking to C++ apps
1548 Wed Jul 28 11:23:46 1999 Tomi Ollila (too@iki.fi)
1552 * Fixed support for simultaneous open files with each
1555 Thu Jul 22 11:57:46 1999 Tomi Ollila (too@iki.fi)
1559 * Added premilinary README.API.
1561 Sat Jul 10 11:49:58 1999 Tomi Ollila (too@iki.fi)
1565 * Fixed code to read start-of-file offset from local header
1566 instead relying directory info is sufficient (were TOO naive
1567 about that, the first user reported this library won't work
1570 Sun Jun 13 20:40:11 1999 Tomi Ollila (too@iki.fi)
1572 * Initial release (0.9.1).