]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
5 years agorefactoring : remove global variable g_displayOut 1918/head
Yann Collet [Tue, 3 Dec 2019 00:08:08 +0000 (16:08 -0800)] 
refactoring : remove global variable g_displayOut

displaying into stderr or stdout is now an explicit operation,
no longer depending on some global state set elsewhere in the code.

5 years agofix recent issue combining -r with empty list of input files 1917/head
Yann Collet [Mon, 2 Dec 2019 22:28:18 +0000 (14:28 -0800)] 
fix recent issue combining -r with empty list of input files

This would resize the table of input filenames to zero,
delivering an empty table,
to which it was no longer possible to add stdin.

5 years agoMerge pull request #1910 from facebook/travisTest
Yann Collet [Thu, 28 Nov 2019 02:45:16 +0000 (18:45 -0800)] 
Merge pull request #1910 from facebook/travisTest

mingw cross compilation test

5 years agoMerge pull request #1883 from Ericson2314/fix-mingw-cross 1910/head
Yann Collet [Wed, 27 Nov 2019 22:48:26 +0000 (14:48 -0800)] 
Merge pull request #1883 from Ericson2314/fix-mingw-cross

Fix MinGW cross

5 years agotravis: updated mingw cross compilation test
Yann Collet [Wed, 27 Nov 2019 22:39:43 +0000 (14:39 -0800)] 
travis: updated mingw cross compilation test

- only compiles zstd CLI
- enforces zero warning tolerance policy

note : mingw compilation of the library complains (warning) about -fPIC flag.
It mostly ignores it, so it's not a big issue.
Still, it would need to be fixed if library cross-compilation becomes part of CI.
At this stage, it's unclear if this is a scenario.

5 years agoadded mingw cross compilation tests
Yann Collet [Wed, 27 Nov 2019 20:44:02 +0000 (12:44 -0800)] 
added mingw cross compilation tests

based on a script in RocksDB project.

also : pushed qemu aarch64 tests to master/cron,
since there are already hardware aarch64 tests on dev.

5 years agoMerge pull request #1853 from facebook/ahmed_file
Yann Collet [Wed, 27 Nov 2019 04:57:25 +0000 (20:57 -0800)] 
Merge pull request #1853 from facebook/ahmed_file

--filelist=FILE feature

5 years agoremoved scanbuild workaround 1853/head
Yann Collet [Wed, 27 Nov 2019 01:46:57 +0000 (17:46 -0800)] 
removed scanbuild workaround

5 years agoreverted ppc qemu and scanbuild on trusty
Yann Collet [Wed, 27 Nov 2019 00:44:56 +0000 (16:44 -0800)] 
reverted ppc qemu and scanbuild on trusty

ppc cross-compilation seems broken outside of trusty
scan-build version changes with distrib version, resulting in a different list of false positives

5 years agoassembleFNT() can no longer fail
Yann Collet [Tue, 26 Nov 2019 23:44:33 +0000 (15:44 -0800)] 
assembleFNT() can no longer fail

5 years agopushed aside stdio.h too
Yann Collet [Tue, 26 Nov 2019 23:25:32 +0000 (15:25 -0800)] 
pushed aside stdio.h too

since only UTIL_DISPLAY() depended on it.

5 years agomoved UTIL_DISPLAY() inside util.c
Yann Collet [Tue, 26 Nov 2019 23:21:58 +0000 (15:21 -0800)] 
moved UTIL_DISPLAY() inside util.c

5 years agoutil: isolated some dependencies
Yann Collet [Tue, 26 Nov 2019 23:16:53 +0000 (15:16 -0800)] 
util: isolated some dependencies

from *.h to *.c
so that they don't get transitively included
into users of util.h.

5 years agotravisCI : removed `trusty` generic statement
Yann Collet [Tue, 26 Nov 2019 23:01:16 +0000 (15:01 -0800)] 
travisCI : removed `trusty` generic statement

trusty is out of long term support.
let's run (most) tests on "current" platform.

5 years agofixed minor VS warning, on parameter difference
Yann Collet [Tue, 26 Nov 2019 22:53:37 +0000 (14:53 -0800)] 
fixed minor VS warning, on parameter difference

complaining about a `const` property on one side but not the other.

5 years agoswitched UTIL_refFilename() to an assert()
Yann Collet [Tue, 26 Nov 2019 22:48:23 +0000 (14:48 -0800)] 
switched UTIL_refFilename() to an assert()

5 years agoMerge branch 'dev' into ahmed_file
Yann Collet [Tue, 26 Nov 2019 22:33:04 +0000 (14:33 -0800)] 
Merge branch 'dev' into ahmed_file

5 years agofixed fifo test
Yann Collet [Tue, 26 Nov 2019 22:18:09 +0000 (14:18 -0800)] 
fixed fifo test

5 years ago[fuzz] Only set HUF_repeat_valid if loaded table has all non-zero weights (#1898)
Bimba Shrestha [Tue, 26 Nov 2019 20:24:19 +0000 (12:24 -0800)] 
[fuzz] Only set HUF_repeat_valid if loaded table has all non-zero weights (#1898)

Fixes a fuzz issue where dictionary_round_trip failed because the compressor was generating corrupt files thanks to zero weights in the table.

* Only setting loaded dict huf table to valid on non-zero

* Adding hasNoZeroWeights test to fse tables

* Forbiding nbBits != 0 when weight == 0

* Reverting the last commit

* Setting table log to 0 when weight == 0

* Small (invalid) zero weight dict test

* Small (valid) zero weight dict test

* Initializing repeatMode vars to check before zero check

* Removing FSE changes to seperate pr

* Reverting accidentally changed file

* Negating bool, using unsigned, optimization nit

5 years agoMerge branch 'dev' into ahmed_file
Yann Collet [Tue, 26 Nov 2019 19:20:26 +0000 (11:20 -0800)] 
Merge branch 'dev' into ahmed_file

5 years agotravisCI: moved compatibility tests to `dev`
Yann Collet [Tue, 26 Nov 2019 18:30:11 +0000 (10:30 -0800)] 
travisCI: moved compatibility tests to `dev`

they are fast enough, and we want to catch such incompatibility early

5 years agomoved meson and versions compatibility tests to master/cron
Yann Collet [Tue, 26 Nov 2019 18:28:21 +0000 (10:28 -0800)] 
moved meson and versions compatibility tests to master/cron

also : joined c99 compatibility tests with gnu90 and c++ ones

5 years agotravis : added test durations
Yann Collet [Tue, 26 Nov 2019 18:24:09 +0000 (10:24 -0800)] 
travis : added test durations

as a guide when doing test selection

5 years agoMerge pull request #1905 from facebook/devnull
Yann Collet [Tue, 26 Nov 2019 02:48:12 +0000 (18:48 -0800)] 
Merge pull request #1905 from facebook/devnull

fix #1904

5 years agoOptimize decompression speed for gcc and clang (#1892)
Nick Terrell [Tue, 26 Nov 2019 02:26:19 +0000 (18:26 -0800)] 
Optimize decompression speed for gcc and clang (#1892)

* Optimize `ZSTD_decodeSequence()`
* Optimize Huffman decoding
* Optimize `ZSTD_decompressSequences()`
* Delete `ZSTD_decodeSequenceLong()`

5 years agosilence scan-build false positive
Yann Collet [Mon, 25 Nov 2019 23:50:58 +0000 (15:50 -0800)] 
silence scan-build false positive

blind attempt

5 years agochanged name from createX to assembleX
Yann Collet [Mon, 25 Nov 2019 23:34:55 +0000 (15:34 -0800)] 
changed name from createX to assembleX

shows that the resulting object just takes ownership of provided buffer.

5 years agofix mode_t on Windows 1905/head
Yann Collet [Mon, 25 Nov 2019 21:59:35 +0000 (13:59 -0800)] 
fix mode_t on Windows

5 years agocreated UTIL_chmod()
Yann Collet [Mon, 25 Nov 2019 21:45:22 +0000 (13:45 -0800)] 
created UTIL_chmod()

protecting "/dev/null" from having its permissions changed.

also : minor : improved consistency of util.h API

5 years agoadded decompression into /dev/null tests
Yann Collet [Mon, 25 Nov 2019 18:53:03 +0000 (10:53 -0800)] 
added decompression into /dev/null tests

5 years agofix #1904
Yann Collet [Mon, 25 Nov 2019 18:35:36 +0000 (10:35 -0800)] 
fix #1904

/dev/null permissions were modified when using sudo rights.
This fixes this bug during decompression.

More importantly, this patch  adds a test, triggered in TravisCI,
ensuring unaltered /dev/null permissions.

5 years agominor update to travis script
Yann Collet [Sat, 23 Nov 2019 01:32:07 +0000 (17:32 -0800)] 
minor update to travis script

many tests used to be run on Trusty platform,
they are now run on _current_ platform,
and now many test titles are incorrect.
Fixed.

5 years agoMerge pull request #1897 from sergey-dryabzhinsky/patch-1
Yann Collet [Sat, 23 Nov 2019 01:25:55 +0000 (17:25 -0800)] 
Merge pull request #1897 from sergey-dryabzhinsky/patch-1

WIP: Fix typo in util.c

5 years agoMerge pull request #1903 from terrelln/null
Nick Terrell [Fri, 22 Nov 2019 01:35:06 +0000 (17:35 -0800)] 
Merge pull request #1903 from terrelln/null

Fix null pointer addition

5 years agoMerge pull request #1902 from terrelln/ignore
Yann Collet [Thu, 21 Nov 2019 23:49:06 +0000 (15:49 -0800)] 
Merge pull request #1902 from terrelln/ignore

[cmake][tests] Add zstreamtest executable

5 years agoFix null pointer addition 1903/head
Nick Terrell [Thu, 21 Nov 2019 02:21:51 +0000 (18:21 -0800)] 
Fix null pointer addition

5 years ago[cmake][tests] Add zstreamtest executable 1902/head
Nick Terrell [Thu, 21 Nov 2019 01:26:06 +0000 (17:26 -0800)] 
[cmake][tests] Add zstreamtest executable

5 years agoMerge pull request #1901 from terrelln/ignore
Nick Terrell [Thu, 21 Nov 2019 01:24:19 +0000 (17:24 -0800)] 
Merge pull request #1901 from terrelln/ignore

Update .gitignore

5 years agoUpdate .gitignore 1901/head
Nick Terrell [Thu, 21 Nov 2019 00:36:40 +0000 (16:36 -0800)] 
Update .gitignore

5 years agoMerge pull request #1894 from felixhandte/doc-clarify-dctx-reset
Yann Collet [Wed, 20 Nov 2019 00:18:56 +0000 (16:18 -0800)] 
Merge pull request #1894 from felixhandte/doc-clarify-dctx-reset

Easy: Update Comment on `ZSTD_initDStream()`

5 years agoMerge pull request #1887 from bimbashrestha/doc-fix
Yann Collet [Wed, 20 Nov 2019 00:14:20 +0000 (16:14 -0800)] 
Merge pull request #1887 from bimbashrestha/doc-fix

Fixing hashLog error 2^26=64Mib

5 years agoMerge pull request #1896 from terrelln/test-fixes
Nick Terrell [Tue, 19 Nov 2019 20:52:51 +0000 (12:52 -0800)] 
Merge pull request #1896 from terrelln/test-fixes

Fix Appveyor failure

5 years agoUpdate util.c 1897/head
Sergey Dryabzhinsky [Tue, 19 Nov 2019 20:24:00 +0000 (23:24 +0300)] 
Update util.c

5 years agoFix typo in util.c
Sergey Dryabzhinsky [Tue, 19 Nov 2019 20:15:28 +0000 (23:15 +0300)] 
Fix typo in util.c

There must be mtim*e*

5 years agoFix Appveyor failure 1896/head
Nick Terrell [Tue, 19 Nov 2019 19:12:26 +0000 (11:12 -0800)] 
Fix Appveyor failure

5 years agoUpdated some more outdated bounds 1887/head
Bimba Shrestha [Tue, 19 Nov 2019 17:55:13 +0000 (09:55 -0800)] 
Updated some more outdated bounds

5 years agoEasy: Update Comment on `ZSTD_initDStream()` 1894/head
W. Felix Handte [Tue, 19 Nov 2019 06:57:15 +0000 (01:57 -0500)] 
Easy: Update Comment on `ZSTD_initDStream()`

5 years agoMerge pull request #1866 from legrosbuffle/dev
Nick Terrell [Tue, 19 Nov 2019 00:16:30 +0000 (16:16 -0800)] 
Merge pull request #1866 from legrosbuffle/dev

Optimized loop bounds to allow the compiler to unroll the loop.

5 years agoMerge pull request #1888 from senhuang42/superblocks_fixed
Nick Terrell [Tue, 19 Nov 2019 00:09:33 +0000 (16:09 -0800)] 
Merge pull request #1888 from senhuang42/superblocks_fixed

RLE test and re-enable RLE in main compression loop

5 years agoMerge pull request #1889 from vtorri/dev
Nick Terrell [Tue, 19 Nov 2019 00:07:28 +0000 (16:07 -0800)] 
Merge pull request #1889 from vtorri/dev

shared library: rename import library with .dll.a extension

5 years agoNo margin on RLE test size check 1888/head
Sen Huang [Mon, 18 Nov 2019 21:39:16 +0000 (16:39 -0500)] 
No margin on RLE test size check

5 years agoUpdated comment to reflect actual compression behavior
Sen Huang [Fri, 15 Nov 2019 19:57:44 +0000 (14:57 -0500)] 
Updated comment to reflect actual compression behavior

5 years agoshared library: rename import library with .dll.a extension 1889/head
Vincent Torri [Fri, 15 Nov 2019 18:46:06 +0000 (19:46 +0100)] 
shared library: rename import library with .dll.a extension

mort of open source project are using this extension for the import library.
The Win32 linker is supporting this extension, see
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Using_ld_the_GNU_Linker/win32.html
section "direct linking to a dll"

5 years agoMerge remote-tracking branch 'upstream/master' into dev
Vincent Torri [Fri, 15 Nov 2019 18:37:15 +0000 (19:37 +0100)] 
Merge remote-tracking branch 'upstream/master' into dev

5 years agoModified existing RLE test to take compressed size into account
Sen Huang [Fri, 15 Nov 2019 17:26:48 +0000 (12:26 -0500)] 
Modified existing RLE test to take compressed size into account

5 years agoOptimized loop bounds to allow the compiler to unroll the loop. 1866/head
Clement Courbet [Tue, 5 Nov 2019 13:14:02 +0000 (14:14 +0100)] 
Optimized loop bounds to allow the compiler to unroll the loop.

This has no measurable impact on large files but improves small file
decompression by ~1-2% for 10kB, benchmarked with:

head -c 10000 silesia.tar > /tmp/test
make CC=/usr/local/bin/clang-9 BUILD_STATIC=1 && ./lzbench -ezstd -t1,5 /tmp/test

5 years agoFixed main compression logic changes
Sen Huang [Fri, 15 Nov 2019 00:39:09 +0000 (19:39 -0500)] 
Fixed main compression logic changes

5 years agoMerge pull request #1868 from senhuang42/superblocks_fixed
Yann Collet [Thu, 14 Nov 2019 21:31:34 +0000 (13:31 -0800)] 
Merge pull request #1868 from senhuang42/superblocks_fixed

Superblocks rebased for merge

5 years agoFix MinGW cross install from Unix 1883/head 1909/head
John Ericson [Tue, 12 Nov 2019 20:34:00 +0000 (15:34 -0500)] 
Fix MinGW cross install from Unix

Needed a bunch of `$(EXT)`

5 years agoFix MinGW cross build from Unix
John Ericson [Tue, 12 Nov 2019 20:13:35 +0000 (15:13 -0500)] 
Fix MinGW cross build from Unix

generate_res.bat seems rather pointless, am I missing something? I just
inlined it into the Makefile.

5 years agoFixing hashLog error 2^26=64Mib
Bimba Shrestha [Thu, 14 Nov 2019 18:48:55 +0000 (10:48 -0800)] 
Fixing hashLog error 2^26=64Mib

5 years agoChange superblock #include to be last 1868/head
Sen Huang [Thu, 14 Nov 2019 18:12:17 +0000 (13:12 -0500)] 
Change superblock #include to be last

5 years agoMerge pull request #1858 from senhuang42/dictionary_header_size
Yann Collet [Thu, 14 Nov 2019 17:44:07 +0000 (09:44 -0800)] 
Merge pull request #1858 from senhuang42/dictionary_header_size

Method to get dictionary header size

5 years agoMerge pull request #1884 from facebook/specMBS
Yann Collet [Thu, 14 Nov 2019 17:32:07 +0000 (09:32 -0800)] 
Merge pull request #1884 from facebook/specMBS

Specs. clarifications for Block_Maximum_Size

5 years agoclarifications for Block_Maximum_Size 1884/head
Yann Collet [Wed, 13 Nov 2019 17:50:15 +0000 (09:50 -0800)] 
clarifications for Block_Maximum_Size

as a follow up of #1882

5 years agoUse lowercase windows.h
John Ericson [Tue, 12 Nov 2019 23:59:06 +0000 (18:59 -0500)] 
Use lowercase windows.h

Helps for cross builds, doesn't matter on Windows itself.

5 years agoMerge pull request #1875 from ryandesign/c89
Yann Collet [Mon, 11 Nov 2019 19:00:10 +0000 (11:00 -0800)] 
Merge pull request #1875 from ryandesign/c89

Change c90 to c89

5 years agoMerge pull request #1874 from terrelln/adjust-fix
Nick Terrell [Fri, 8 Nov 2019 18:57:59 +0000 (10:57 -0800)] 
Merge pull request #1874 from terrelln/adjust-fix

Fix parameter selection and adjustment with srcSize == 0

5 years agoRemove mixed declarations 1858/head
Sen Huang [Fri, 8 Nov 2019 16:20:57 +0000 (11:20 -0500)] 
Remove mixed declarations

5 years agoFix static analyze error, use proper bounds for dictEnd
Sen Huang [Thu, 7 Nov 2019 21:24:55 +0000 (16:24 -0500)] 
Fix static analyze error, use proper bounds for dictEnd

5 years agoMove asserts to loadZstdDictionary()
Sen Huang [Thu, 7 Nov 2019 19:08:55 +0000 (14:08 -0500)] 
Move asserts to loadZstdDictionary()

5 years agoExpose ZSTD_reset_compressedBlockState() to shared API
Sen Huang [Thu, 7 Nov 2019 19:07:21 +0000 (14:07 -0500)] 
Expose ZSTD_reset_compressedBlockState() to shared API

5 years agoAdd error forwarding to loadCEntropy(), make check for dictSize >= 8 from bad merge
Sen Huang [Thu, 7 Nov 2019 18:58:35 +0000 (13:58 -0500)] 
Add error forwarding to loadCEntropy(), make check for dictSize >= 8 from bad merge

5 years agoRemove redundant comment
Sen Huang [Thu, 7 Nov 2019 16:47:47 +0000 (11:47 -0500)] 
Remove redundant comment

5 years agoUse ZSTD Error codes, improve explanation of ZSTD_loadCEntropy() and ZSTD_loadDEntropy()
Sen Huang [Thu, 7 Nov 2019 16:46:25 +0000 (11:46 -0500)] 
Use ZSTD Error codes, improve explanation of ZSTD_loadCEntropy() and ZSTD_loadDEntropy()

5 years agoIntegrated refactor into getDictHeaderSize, now passes tests
Sen Huang [Thu, 7 Nov 2019 16:32:08 +0000 (11:32 -0500)] 
Integrated refactor into getDictHeaderSize, now passes tests

5 years agoFirst working pass at refactor of loadZstdDictionary()
Sen Huang [Thu, 7 Nov 2019 15:43:43 +0000 (10:43 -0500)] 
First working pass at refactor of loadZstdDictionary()

5 years agoRevert "Move decompress symbols into zstd_internal.h, remove dependency"
Sen Huang [Thu, 7 Nov 2019 14:29:15 +0000 (09:29 -0500)] 
Revert "Move decompress symbols into zstd_internal.h, remove dependency"

This reverts commit a152b4c67a5266f611db4a2eac4a79003852a795.

5 years agoMove decompress symbols into zstd_internal.h, remove dependency
Sen Huang [Tue, 5 Nov 2019 20:07:07 +0000 (15:07 -0500)] 
Move decompress symbols into zstd_internal.h, remove dependency

5 years agoChecks malloc() for failure, returns 0 if so
Sen Huang [Mon, 4 Nov 2019 21:13:52 +0000 (16:13 -0500)] 
Checks malloc() for failure, returns 0 if so

5 years agoChange to heap allocation, remove implicit type conversion
Sen Huang [Mon, 4 Nov 2019 19:33:52 +0000 (14:33 -0500)] 
Change to heap allocation, remove implicit type conversion

5 years agoAdded 2 unit tests: one for sanity, one for correctnesson fixed dict
Sen Huang [Sun, 3 Nov 2019 22:44:28 +0000 (17:44 -0500)] 
Added 2 unit tests: one for sanity, one for correctnesson fixed dict

5 years agoAdd ZDICT_getHeaderSize()
Sen Huang [Tue, 29 Oct 2019 20:45:11 +0000 (16:45 -0400)] 
Add ZDICT_getHeaderSize()

5 years agoChange c90 to c89 1875/head
Ryan Schmidt [Thu, 7 Nov 2019 17:01:13 +0000 (11:01 -0600)] 
Change c90 to c89

c89 and c90 are the same language. Old compilers like gcc 4.2.1 don't
know the c90 alias.

5 years agoFix parameter selection and adjustment with srcSize == 0 1874/head
Nick Terrell [Thu, 7 Nov 2019 01:41:29 +0000 (17:41 -0800)] 
Fix parameter selection and adjustment with srcSize == 0

5 years agoadded target zstd-dictBuilder
Yann Collet [Wed, 6 Nov 2019 23:46:58 +0000 (15:46 -0800)] 
added target zstd-dictBuilder

check that the dictBuilder can be compiled
with only lib/common and lib/compress as dependencies.

5 years agoVisual compiler bug work-around
Yann Collet [Wed, 6 Nov 2019 23:23:44 +0000 (15:23 -0800)] 
Visual compiler bug work-around

5 years agominor man page fix
Yann Collet [Wed, 6 Nov 2019 23:07:35 +0000 (15:07 -0800)] 
minor man page fix

5 years agofixed wrong assert() in regression driver
Yann Collet [Wed, 6 Nov 2019 22:56:21 +0000 (14:56 -0800)] 
fixed wrong assert() in regression driver

5 years agoremoved experimental_dict_builders
Yann Collet [Wed, 6 Nov 2019 22:43:14 +0000 (14:43 -0800)] 
removed experimental_dict_builders

no longer required,
can still be accessed by going to back to an earlier commit or release (<= v1.4.4)

5 years agoupdated fuzz tests to use FileNamesTable* abstraction
Yann Collet [Wed, 6 Nov 2019 22:42:13 +0000 (14:42 -0800)] 
updated fuzz tests to use FileNamesTable* abstraction

5 years agoMerge pull request #1873 from felixhandte/make-overlap-log-multithread-only
Felix Handte [Wed, 6 Nov 2019 21:56:37 +0000 (16:56 -0500)] 
Merge pull request #1873 from felixhandte/make-overlap-log-multithread-only

Fix #1861: Restrict overlapLog Parameter When Not Built With Multithreading

5 years agoMerge pull request #1843 from moozzyk/issue-1637
Felix Handte [Wed, 6 Nov 2019 21:56:14 +0000 (16:56 -0500)] 
Merge pull request #1843 from moozzyk/issue-1637

Take ZSTD_parameters as a const pointer

5 years agoMerge pull request #1869 from bket/openbsd
Felix Handte [Wed, 6 Nov 2019 21:54:03 +0000 (16:54 -0500)] 
Merge pull request #1869 from bket/openbsd

'head -c BYTES' is non-portable.

5 years agoMerge pull request #1870 from bket/portable
Felix Handte [Wed, 6 Nov 2019 21:52:24 +0000 (16:52 -0500)] 
Merge pull request #1870 from bket/portable

'date -r FILE' is non-portable.

5 years agoFix #1861: Restrict overlapLog Parameter When Not Built With Multithreading 1873/head
W. Felix Handte [Wed, 6 Nov 2019 21:05:02 +0000 (16:05 -0500)] 
Fix #1861: Restrict overlapLog Parameter When Not Built With Multithreading

This parameter is unused in single-threaded compression. We should make it
behave like the other multithread-only parameters, for which we only accept
zero when we are not built with multithreading.

5 years agoupdated pzstd and largeNbDicts to use the new FileNamesTable* abstraction
Yann Collet [Wed, 6 Nov 2019 17:10:05 +0000 (09:10 -0800)] 
updated pzstd and largeNbDicts to use the new FileNamesTable* abstraction

5 years ago'date -r FILE' is non-portable. 1870/head
Björn Ketelaars [Wed, 6 Nov 2019 11:16:02 +0000 (12:16 +0100)] 
'date -r FILE' is non-portable.

date(1) is used to display the last modification time of a file, which
is not supported on OpenBSD, FreeBSD and Darwin. Instead use stat(1).

Tested on OpenBSD.

5 years ago'head -c BYTES' is non-portable. 1869/head
Björn Ketelaars [Wed, 6 Nov 2019 10:39:59 +0000 (11:39 +0100)] 
'head -c BYTES' is non-portable.

Similar to #1321: The '-c' option for 'head' is non-portable (not in
POSIX).

5 years agoupdated zwrapbench to use FileNamesTable* abstraction
Yann Collet [Wed, 6 Nov 2019 01:25:20 +0000 (17:25 -0800)] 
updated zwrapbench to use FileNamesTable* abstraction