cosmopolitan/third_party/unzip
Justine Tunney a4b455185b
Bring back gc() function
Renaming gc() to _gc() was a mistake since the better thing to do is put
it behind the _COSMO_SOURCE macro. We need this change because I haven't
wanted to use my amazing garbage collector ever since we renamed it. You
now need to define _COSMO_SOURCE yourself when using amalgamation header
and cosmocc users need to pass the -mcosmo flag to get the gc() function

Some other issues relating to cancelation have been fixed along the way.
We're also now putting cosmocc in a folder named `.cosmocc` so it can be
more safely excluded by grep --exclude-dir=.cosmocc --exclude-dir=o etc.
2024-01-08 10:26:28 -08:00
..
unix Work around Landlock output inode in compile.com 2022-08-09 07:55:44 -07:00
api.c Reduce header complexity 2023-11-28 14:39:42 -08:00
apihelp.c Reduce header complexity 2023-11-28 14:39:42 -08:00
BUILD.mk more modeline errata (#1019) 2023-12-16 23:07:10 -05:00
consts.h Reduce header complexity 2023-11-28 14:39:42 -08:00
crc32.c Reduce header complexity 2023-11-28 14:39:42 -08:00
crc32.h Reduce header complexity 2023-11-28 14:39:42 -08:00
crypt.c Reduce header complexity 2023-11-28 14:39:42 -08:00
crypt.h Reduce header complexity 2023-11-28 14:39:42 -08:00
ebcdic.h Reduce header complexity 2023-11-28 14:39:42 -08:00
envargs.c Reduce header complexity 2023-11-28 14:39:42 -08:00
explode.c Reduce header complexity 2023-11-28 14:39:42 -08:00
extract.c Reduce header complexity 2023-11-28 14:39:42 -08:00
fileio.c Reduce header complexity 2023-11-28 14:39:42 -08:00
globals.c Reduce header complexity 2023-11-28 14:39:42 -08:00
globals.h Reduce header complexity 2023-11-28 14:39:42 -08:00
inflate.c Reduce header complexity 2023-11-28 14:39:42 -08:00
inflate.h Reduce header complexity 2023-11-28 14:39:42 -08:00
LICENSE Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
list.c Reduce header complexity 2023-11-28 14:39:42 -08:00
match.c Reduce header complexity 2023-11-28 14:39:42 -08:00
process.c Reduce header complexity 2023-11-28 14:39:42 -08:00
README.cosmo Reduce header complexity 2023-11-28 14:39:42 -08:00
timezone.c Reduce header complexity 2023-11-28 14:39:42 -08:00
timezone.h Reduce header complexity 2023-11-28 14:39:42 -08:00
ttyio.c Reduce header complexity 2023-11-28 14:39:42 -08:00
ttyio.h Reduce header complexity 2023-11-28 14:39:42 -08:00
ubz2err.c Reduce header complexity 2023-11-28 14:39:42 -08:00
unix.c Reduce header complexity 2023-11-28 14:39:42 -08:00
unreduce.c Reduce header complexity 2023-11-28 14:39:42 -08:00
unshrink.c Reduce header complexity 2023-11-28 14:39:42 -08:00
unxcfg.h Reduce header complexity 2023-11-28 14:39:42 -08:00
unzip.c Bring back gc() function 2024-01-08 10:26:28 -08:00
unzip.h Reduce header complexity 2023-11-28 14:39:42 -08:00
unzip.txt Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
unzpriv.h Reduce header complexity 2023-11-28 14:39:42 -08:00
unzvers.h Reduce header complexity 2023-11-28 14:39:42 -08:00
zip.h Reduce header complexity 2023-11-28 14:39:42 -08:00
zipinfo.c Reduce header complexity 2023-11-28 14:39:42 -08:00
zipinfo.txt Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00

DESCRIPTION

  The UNIX unzip command, courtesy of the Info-ZIP project.

PROVENANCE

  unzip610b.zip (circa 2010)
  https://sourceforge.net/projects/infozip/files/unreleased%20Betas/UnZip%20betas/

LICENSE

  BSD-like with Apache-like requirement that changes be documented.

LOCAL CHANGES

  The only way this software differs from the normal InfoZIP sources is
  that we're linking the Cosmopolitan C Library, which enables it to be
  built as an Actually Portable Executable.

  Minor changes include:

  - Normalization of header / build config for platform / repository
    sed -i -e '/# *include  *<.*/d'  *.*
    sed -i -e 's!# *include  *"!#include "third_party/unzip/!' *.*

  - Fixed a lot of static analysis buffer overflow warnings.