Merge remote-tracking branch 'refs/remotes/facebook/dev' into gz_compress
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
v1.1.4
|
||||||
|
cli : new : can compress in *.gz format, using --format=gzip command, by Przemyslaw Skibinski
|
||||||
|
cli : new : advanced benchmark command --priority=rt
|
||||||
|
cli : fix : write on sparse-enabled file systems in 32-bits mode, by @ds77
|
||||||
|
API : new : ZSTD_getFrameCompressedSize(), ZSTD_getFrameContentSize(), ZSTD_findDecompressedSize(), by Sean Purcell
|
||||||
|
API : change : ZSTD_compress*() with srcSize==0 create an empty-frame of known size
|
||||||
|
doc : new : educational decoder, by Sean Purcell
|
||||||
|
|
||||||
v1.1.3
|
v1.1.3
|
||||||
cli : zstd can decompress .gz files (can be disabled with `make zstd-nogz` or `make HAVE_ZLIB=0`)
|
cli : zstd can decompress .gz files (can be disabled with `make zstd-nogz` or `make HAVE_ZLIB=0`)
|
||||||
cli : new : experimental target `make zstdmt`, with multi-threading support
|
cli : new : experimental target `make zstdmt`, with multi-threading support
|
||||||
|
|||||||
@@ -127,6 +127,6 @@ int main(int argc, const char** argv)
|
|||||||
|
|
||||||
const char* const outFilename = createOutFilename_orDie(inFilename);
|
const char* const outFilename = createOutFilename_orDie(inFilename);
|
||||||
compress_orDie(inFilename, outFilename);
|
compress_orDie(inFilename, outFilename);
|
||||||
|
free(outFilename);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,10 +15,11 @@
|
|||||||
* This file will hold wrapper for systems, which do not support pthreads
|
* This file will hold wrapper for systems, which do not support pthreads
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* ====== Compiler specifics ====== */
|
/* When ZSTD_MULTITHREAD is not defined, this file would become an empty translation unit.
|
||||||
#if defined(_MSC_VER)
|
* Include some ISO C header code to prevent this and portably avoid related warnings.
|
||||||
# pragma warning(disable : 4206) /* disable: C4206: translation unit is empty (when ZSTD_MULTITHREAD is not defined) */
|
* (Visual C++: C4206 / GCC: -Wpedantic / Clang: -Wempty-translation-unit)
|
||||||
#endif
|
*/
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|
||||||
#if defined(ZSTD_MULTITHREAD) && defined(_WIN32)
|
#if defined(ZSTD_MULTITHREAD) && defined(_WIN32)
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ extern "C" {
|
|||||||
/*------ Version ------*/
|
/*------ Version ------*/
|
||||||
#define ZSTD_VERSION_MAJOR 1
|
#define ZSTD_VERSION_MAJOR 1
|
||||||
#define ZSTD_VERSION_MINOR 1
|
#define ZSTD_VERSION_MINOR 1
|
||||||
#define ZSTD_VERSION_RELEASE 3
|
#define ZSTD_VERSION_RELEASE 4
|
||||||
|
|
||||||
#define ZSTD_LIB_VERSION ZSTD_VERSION_MAJOR.ZSTD_VERSION_MINOR.ZSTD_VERSION_RELEASE
|
#define ZSTD_LIB_VERSION ZSTD_VERSION_MAJOR.ZSTD_VERSION_MINOR.ZSTD_VERSION_RELEASE
|
||||||
#define ZSTD_QUOTE(str) #str
|
#define ZSTD_QUOTE(str) #str
|
||||||
|
|||||||
+7
-1
@@ -51,8 +51,11 @@
|
|||||||
|
|
||||||
#define GZ_EXTENSION ".gz"
|
#define GZ_EXTENSION ".gz"
|
||||||
#define ZSTD_EXTENSION ".zst"
|
#define ZSTD_EXTENSION ".zst"
|
||||||
#define ZSTD_CAT "zstdcat"
|
|
||||||
#define ZSTD_UNZSTD "unzstd"
|
#define ZSTD_UNZSTD "unzstd"
|
||||||
|
#define ZSTD_CAT "zstdcat"
|
||||||
|
#define ZSTD_GZ "gzip"
|
||||||
|
#define ZSTD_GUNZIP "gunzip"
|
||||||
|
#define ZSTD_GZCAT "gzcat"
|
||||||
|
|
||||||
#define KB *(1 <<10)
|
#define KB *(1 <<10)
|
||||||
#define MB *(1 <<20)
|
#define MB *(1 <<20)
|
||||||
@@ -319,6 +322,9 @@ int main(int argCount, const char* argv[])
|
|||||||
/* preset behaviors */
|
/* preset behaviors */
|
||||||
if (!strcmp(programName, ZSTD_UNZSTD)) operation=zom_decompress;
|
if (!strcmp(programName, ZSTD_UNZSTD)) operation=zom_decompress;
|
||||||
if (!strcmp(programName, ZSTD_CAT)) { operation=zom_decompress; forceStdout=1; FIO_overwriteMode(); outFileName=stdoutmark; displayLevel=1; }
|
if (!strcmp(programName, ZSTD_CAT)) { operation=zom_decompress; forceStdout=1; FIO_overwriteMode(); outFileName=stdoutmark; displayLevel=1; }
|
||||||
|
if (!strcmp(programName, ZSTD_GZ)) { suffix = GZ_EXTENSION; FIO_setCompressionType(FIO_gzipCompression); FIO_setRemoveSrcFile(1); } /* behave like gzip */
|
||||||
|
if (!strcmp(programName, ZSTD_GUNZIP)) { operation=zom_decompress; FIO_setRemoveSrcFile(1); } /* behave like gunzip */
|
||||||
|
if (!strcmp(programName, ZSTD_GZCAT)) { operation=zom_decompress; forceStdout=1; FIO_overwriteMode(); outFileName=stdoutmark; displayLevel=1; } /* behave like gzcat */
|
||||||
memset(&compressionParams, 0, sizeof(compressionParams));
|
memset(&compressionParams, 0, sizeof(compressionParams));
|
||||||
|
|
||||||
/* command switches */
|
/* command switches */
|
||||||
|
|||||||
Reference in New Issue
Block a user