cosmopolitan/third_party/zip
Justine Tunney ff77f2a6af
Make improvements
- This change fixes a bug that allowed unbuffered printf() output (to
  streams like stderr) to be truncated. This regression was introduced
  some time between now and the last release.

- POSIX specifies all functions as thread safe by default. This change
  works towards cleaning up our use of the @threadsafe / @threadunsafe
  documentation annotations to reflect that. The goal is (1) to use
  @threadunsafe to document functions which POSIX say needn't be thread
  safe, and (2) use @threadsafe to document functions that we chose to
  implement as thread safe even though POSIX didn't mandate it.

- Tidy up the clock_gettime() implementation. We're now trying out a
  cleaner approach to system call support that aims to maintain the
  Linux errno convention as long as possible. This also fixes bugs that
  existed previously, where the vDSO errno wasn't being translated
  properly. The gettimeofday() system call is now a wrapper for
  clock_gettime(), which reduces bloat in apps that use both.

- The recently-introduced improvements to the execute bit on Windows has
  had bugs fixed. access(X_OK) on a directory on Windows now succeeds.
  fstat() will now perform the MZ/#! ReadFile() operation correctly.

- Windows.h is no longer included in libc/isystem/, because it confused
  PCRE's build system into thinking Cosmopolitan is a WIN32 platform.
  Cosmo's Windows.h polyfill was never even really that good, since it
  only defines a subset of the subset of WIN32 APIs that Cosmo defines.

- The setlongerjmp() / longerjmp() APIs are removed. While they're nice
  APIs that are superior to the standardized setjmp / longjmp functions,
  they weren't superior enough to not be dead code in the monorepo. If
  you use these APIs, please file an issue and they'll be restored.

- The .com appending magic has now been removed from APE Loader.
2023-10-03 06:17:16 -07:00
..
api.h Reimport zip into third party 2022-10-16 13:39:41 -07:00
crc32.c Make AARCH64 harder, better, faster, stronger 2023-05-15 02:15:34 -07:00
crc32.h Reimport zip into third party 2022-10-16 13:39:41 -07:00
crypt.c Reimport zip into third party 2022-10-16 13:39:41 -07:00
crypt.h Reimport zip into third party 2022-10-16 13:39:41 -07:00
crypt_.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
deflate.c Flatten InfoZIP directory and fix build issues 2022-04-20 22:40:33 -07:00
fileio.c Fix warnings 2023-09-01 20:50:18 -07:00
fileio_.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
globals.c Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
LICENSE Flatten InfoZIP directory and fix build issues 2022-04-20 22:40:33 -07:00
osdep.h Create ELF aliases for identical symbols 2023-06-06 03:33:49 -07:00
README.cosmo Reimport zip into third party 2022-10-16 13:39:41 -07:00
revision.h Flatten InfoZIP directory and fix build issues 2022-04-20 22:40:33 -07:00
tailor.h Make improvements 2023-09-06 12:34:59 -07:00
timezone.c Flatten InfoZIP directory and fix build issues 2022-04-20 22:40:33 -07:00
timezone.h Flatten InfoZIP directory and fix build issues 2022-04-20 22:40:33 -07:00
trees.c Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
ttyio.c Make improvements 2023-07-11 04:41:50 -07:00
ttyio.h Flatten InfoZIP directory and fix build issues 2022-04-20 22:40:33 -07:00
unix.c Make improvements 2023-10-03 06:17:16 -07:00
unix_.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
util.c Reimport zip into third party 2022-10-16 13:39:41 -07:00
util_.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
zbz2err.c Reimport zip into third party 2022-10-16 13:39:41 -07:00
zip.c Make improvements 2023-09-06 12:34:59 -07:00
zip.h Reimport zip into third party 2022-10-16 13:39:41 -07:00
zip.mk Make improvements 2023-09-18 21:04:47 -07:00
zipcloak.c Make improvements 2023-09-06 12:34:59 -07:00
ziperr.h Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
zipfile.c Make improvements 2023-09-06 12:34:59 -07:00
zipfile_.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
zipnote.c Make improvements 2023-07-10 04:35:14 -07:00
zipsplit.c Make improvements 2023-07-10 04:35:14 -07:00
zipup.c Fix warnings 2023-09-01 20:50:18 -07:00
zipup.h Reimport zip into third party 2022-10-16 13:39:41 -07:00

DESCRIPTION

  zip utility from Info-ZIP

ORIGIN

  source code obtained as zip30.tar.gz
  http://infozip.sourceforge.net/Zip.html
  https://sourceforge.net/projects/infozip/files/

LOCAL CHANGES

  - Use Cosmopolitan's PCLMUL optimized CRC32
  - Improve find_next_signature() performance using unlocked stdio