summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.h
diff options
context:
space:
mode:
authorNick Terrell <terrelln@fb.com>2016-11-03 22:41:09 (GMT)
committerNick Terrell <terrelln@fb.com>2016-11-03 22:41:09 (GMT)
commit3dcafd35d409380182393fdb0d5666f6a64ff841 (patch)
tree9990be07a0bd61e2202387c7509850c6979a4aa5 /programs/lz4io.h
parent6f68a1692e58b0380e5f88d8be61656ead8331f4 (diff)
downloadlz4-3dcafd35d409380182393fdb0d5666f6a64ff841.zip
lz4-3dcafd35d409380182393fdb0d5666f6a64ff841.tar.gz
lz4-3dcafd35d409380182393fdb0d5666f6a64ff841.tar.bz2
Fix test mode and write to null
Fix test mode to not always return success. Don't ask for permission to overwrite `nulmark`. Before: > echo "hello world" > file > lz4 -t file successfully decoded 12 bytes > lz4 -tf file successfully decoded 12 bytes > lz4 file null Warning : /dev/null already exists Overwrite ? (Y/n) : n Error 12 : No. Operation aborted : /dev/null already exists > lz4 file /dev/null Warning : /dev/null already exists Overwrite ? (Y/n) : n Error 12 : No. Operation aborted : /dev/null already exists After: > lz4 -t file Error 44 : Unrecognized header : file cannot be decoded > lz4 -tf file Error 44 : Unrecognized header : file cannot be decoded > lz4 file null Compressed 12 bytes into 31 bytes ==> 258.33% > lz4 file /dev/null Compressed 12 bytes into 31 bytes ==> 258.33%
Diffstat (limited to 'programs/lz4io.h')
-rw-r--r--programs/lz4io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/programs/lz4io.h b/programs/lz4io.h
index 4f0e02a..8109298 100644
--- a/programs/lz4io.h
+++ b/programs/lz4io.h
@@ -63,6 +63,10 @@ int LZ4IO_decompressMultipleFilenames(const char** inFileNamesTable, int ifntSiz
return : overwrite mode (0/1) */
int LZ4IO_setOverwrite(int yes);
+/* Default setting : passThrough = 1;
+ return : passThrough mode (0/1) */
+int LZ4IO_setPassThrough(int yes);
+
/* blockSizeID : valid values : 4-5-6-7
return : -1 if error, blockSize if OK */
int LZ4IO_setBlockSizeID(int blockSizeID);