cosmopolitan/third_party/unzip
Justine Tunney b0df6c1fce
Implement proper time zone support
Cosmopolitan now supports 104 time zones. They're embedded inside any
binary that links the localtime() function. Doing so adds about 100kb
to the binary size. This change also gets time zones working properly
on Windows for the first time. It's not needed to have /etc/localtime
exist on Windows, since we can get this information from WIN32. We're
also now updated to the latest version of Paul Eggert's TZ library.
2024-05-04 23:06:37 -07: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 Implement proper time zone support 2024-05-04 23:06:37 -07: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 Implement proper time zone support 2024-05-04 23:06:37 -07: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 Implement proper time zone support 2024-05-04 23:06:37 -07: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 Implement proper time zone support 2024-05-04 23:06:37 -07: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.