cosmopolitan/third_party/unzip
Justine Tunney b41f91c658
Greatly expand system() shell code features
The cosmopolitan command interpreter now has 13 builtin commands,
variable support, support for ; / && / || syntax, asynchronous support,
and plenty of unit tests with bug fixes.

This change fixes a bug in posix_spawn() with null envp arg. strace
logging now uses atomic writes for scatter functions. Breaking change
renaming GetCpuCount() to _getcpucount(). TurfWar is now updated to use
the new token bucket algorithm. WIN32 affinity masks now inherit across
fork() and execve().
2022-10-11 21:30:31 -07:00
..
unix Work around Landlock output inode in compile.com 2022-08-09 07:55:44 -07:00
api.c Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
apihelp.c Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
consts.h Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
crc32.c Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
crc32.h Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
crypt.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
crypt.h Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
ebcdic.h Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
envargs.c Unbloat the build 2022-08-11 00:15:29 -07:00
explode.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
extract.c Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
fileio.c Put finishing touches on turfwar http server 2022-10-03 21:50:00 -07:00
globals.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
globals.h Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
inflate.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
inflate.h Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
LICENSE Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
list.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
match.c Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
process.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
README.cosmo Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
timezone.c Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
timezone.h Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
ttyio.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
ttyio.h Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
ubz2err.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
unix.c Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
unreduce.c Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
unshrink.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
unxcfg.h Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
unzip.c Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
unzip.h Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
unzip.mk Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
unzip.txt Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
unzpriv.h Fold LIBC_UNICODE into LIBC_STR 2022-08-13 08:42:32 -07:00
unzvers.h Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
zip.h Add Info-ZIP unzip.com 2022-06-10 05:09:11 -07:00
zipinfo.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07: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/!' *.*
    sed -i -e '1 i\// clang-format off' *.c *.h

  - Fixed a lot of static analysis buffer overflow warnings.