Yann Collet
473acf5aa9
Merge pull request #252 from inikep/dev
...
Dev
2016-11-04 13:54:19 -07:00
Nick Terrell
86a24c80f4
Fix typo in lz4 manpage
2016-11-04 12:46:39 -07:00
Nick Terrell
374090c7a7
Return error if input file does not exist.
...
Make `lz4 file-does-not-exist` return non-zero.
2016-11-04 11:58:10 -07:00
Przemyslaw Skibinski
fbede33fd7
fixed Travis tests
2016-11-04 16:56:01 +01:00
Przemyslaw Skibinski
8ddaddc2d6
updated #include in util.h
2016-11-04 15:52:34 +01:00
Przemyslaw Skibinski
e8a6067e8a
updated lz4cli.c
2016-11-04 14:46:45 +01:00
Przemyslaw Skibinski
8b8c726a5c
bench.c based on zstd
2016-11-04 14:26:12 +01:00
Przemyslaw Skibinski
e06fcd9039
redefined VOID for Windows/MSYS
2016-11-04 13:32:36 +01:00
Przemyslaw Skibinski
e7648f4fcc
added -r option
2016-11-04 13:30:09 +01:00
Nick Terrell
136caa552b
Rename passThrough to testMode
2016-11-03 18:50:25 -07:00
Nick Terrell
3dcafd35d4
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%
2016-11-03 15:41:09 -07:00
Yann Collet
99d11120bd
Merge pull request #249 from inikep/dev
...
Dev
2016-11-03 10:49:33 -07:00
Yann Collet
46b49af37c
fixed clang conversion warning
2016-11-03 10:39:35 -07:00
Yann Collet
c66108ceb2
check fread() operation results ( #243 )
2016-11-03 09:27:35 -07:00
Przemyslaw Skibinski
8847faffbf
updated programs/README.md
2016-11-03 16:17:38 +01:00
Przemyslaw Skibinski
74ba377d72
updated .travis.yml
2016-11-03 15:28:50 +01:00
Przemyslaw Skibinski
84cedb4632
updated links to LZ4 repository
2016-11-03 15:12:57 +01:00
Przemyslaw Skibinski
e624978ea2
test programs moved to tests/
2016-11-03 15:03:43 +01:00
Yann Collet
59adfd82d6
fix for ARM platform
2016-11-01 21:04:56 -07:00
Yann Collet
67500142c1
Clarified license ( #115 , #244 )
2016-11-01 19:14:04 -07:00
Yann Collet
f173027690
moved cmake and debian directories to contrib ( #245 )
2016-11-01 17:29:15 -07:00
Yann Collet
d05ca2ff6d
fixed #247 , reported by Felix Bolte
2016-11-01 16:54:33 -07:00
Yann Collet
7e112cfa5c
fixes static compilation under Windows ( #246 )
2016-10-21 09:49:30 -07:00
Yann Collet
c5cb4aa52a
Merge pull request #238 from kou/add-lz4lib-api
...
Add LZ4LIB_API
2016-09-23 08:54:24 +02:00
Kouhei Sutou
012c66536c
Add LZ4LIB_API
...
It's based on Zstandard's ZSTDLIB_API.
See also: https://github.com/Cyan4973/lz4/issues/216#issuecomment-226245432
Deprecated functions aren't LZ4LIB_API targets. Because we don't need to
export deprecated functions from now.
There are same LZ4LIB_API definitions in each header files instead of
including a common header file because LZ4_DEPRECATED is defined so.
2016-09-23 00:39:45 +09:00
Kouhei Sutou
46a7b94e8c
Use lower case for header file name
...
"WinIoCtl.h" works on Windows because Windows uses case insensitive file
system. But it doesn't work on GNU/Linux (for cross compiling with
MinGW) because GNU/Linux uses case sensitive file system.
2016-09-23 00:34:42 +09:00
Yann Collet
3b9439ccd0
updated uninstall
2016-09-17 11:59:13 +02:00
Yann Collet
33993542af
removed test artefacts
2016-09-06 16:46:52 +02:00
Yann Collet
c8a78dba1f
datagen depends on lz4.h for version string
2016-09-05 06:49:55 -07:00
inikep
92ee3e0ea9
fixed LZ4 repository links
2016-09-05 13:39:35 +02:00
inikep
58a1616d7b
Merge remote-tracking branch 'refs/remotes/Cyan4973/dev' into dev
...
# Conflicts:
# programs/Makefile
2016-09-03 08:10:16 +02:00
Yann Collet
28f98647e3
lz4 version source from lz4.h
2016-09-02 22:04:16 -07:00
Yann Collet
dd51ca6300
frametest depends on standard C time.h only
2016-09-02 21:46:02 -07:00
Yann Collet
f327a8bddd
fullbench depends on standard C time.h only
2016-09-02 20:17:19 -07:00
Yann Collet
32a31663c3
fuzzer depends on standard C time.h only
2016-09-02 19:48:24 -07:00
Yann Collet
64f556e610
lz4cli version number from lz4.h
2016-09-02 19:32:06 -07:00
inikep
e5b0f1ea14
CFLAGS += $(MOREFLAGS)
2016-09-03 02:05:01 +02:00
inikep
829ae75871
remove EnablePREfast=true for Win32
2016-09-03 01:35:00 +02:00
inikep
ab707e8b0d
update IncludePath
2016-09-03 01:03:04 +02:00
inikep
b3ae49c7bf
added <string.h> for strlen()
2016-09-02 23:02:30 +02:00
inikep
2cf32ef0f1
-b# and -e# options from zstd
2016-09-02 22:59:18 +02:00
inikep
c1864f69e8
fix mingw64 compilation warnings
2016-09-02 21:50:57 +02:00
Georg Sauthoff
584e1fe92a
request POSIX.2001 definitions for fileno()
...
this also fixes compilation on Solaris 10
cf. feature_test_macros(7) Linux man page:
> _POSIX_SOURCE
> Defining this obsolete macro with any value is equivalent to defin‐
> ing _POSIX_C_SOURCE with the value 1.
>
> Since this macro is obsolete, its usage is generally not documented
> when discussing feature test macro requirements in the man pages.
2016-08-27 15:24:33 +02:00
Yann Collet
2ac9ecec68
Fixed #157 : LZ4F_getFrameInfo() fails on valid null-content frame
2016-08-11 14:55:39 +02:00
Yann Collet
45ea27949c
Minor fuzzer code refactoring
2016-08-11 12:18:45 +02:00
Yann Collet
828332d236
fixed : fuzzer test, reported by @setharnold ( #203 )
2016-08-10 09:14:11 +02:00
Yann Collet
b130fd5923
minor refactoring changes
2016-08-10 08:26:49 +02:00
Yann Collet
91cce757f5
Updated xxhash library to v0.6.1
2016-06-29 21:48:27 +02:00
Yann Collet
5540f4f93e
stronger compilation flags
2016-06-29 20:25:10 +02:00
Yann Collet
19e585cc46
modified : some more deprecated functions from lz4hc.h generate warnings
2016-06-29 18:18:34 +02:00
Yann Collet
6b1600f41e
changed : default benchmark LZ4_decompress_safe()
2016-06-29 17:48:28 +02:00
Yann Collet
410ec81543
Fixed : alignment warning
2016-06-29 17:02:09 +02:00
Yann Collet
bc342ab94c
minor refactoring
2016-06-29 16:01:24 +02:00
Yann Collet
a5508b1ad2
fixed display result issue when benchmarking multiple files
2016-06-29 14:56:50 +02:00
Yann Collet
e27e7316dd
minor code refactoring
2016-06-29 14:54:07 +02:00
Yann Collet
2d7df8b306
Reduced bench dependency to standard C <time.h>
...
Faster tests
More accurate results on systems with high resolution clocks
2016-06-29 14:35:19 +02:00
Yann Collet
8938e10742
minor compression speed improvement
2016-06-29 14:07:54 +02:00
Yann Collet
3c03326004
minor refactoring (coding style)
2016-06-29 12:54:23 +02:00
Martin Waschbüsch
7bfbccb972
Add FreeBSD to install targets
...
Add FreeBSD to install targets
2016-05-17 07:47:03 +02:00
John Zhuge
cf6652f9b9
lz4cli: print library version
2016-04-01 07:07:25 -07:00
Julius Werner
4fcb2e17fb
Remove whitespace from ends of lines
...
I'm trying to import LZ4 code into a project with strict linting
requirements. This will make that easier.
Signed-off-by: Julius Werner <jwerner@chromium.org>
2016-02-12 22:49:52 -08:00
Yann Collet
b84eb33492
Merge pull request #182 from kou/add-missing-ext
...
Add missing $(EXT)
2016-01-10 17:07:10 +01:00
Yann Collet
b8abffc394
Merge pull request #181 from kou/fix-build-failure-on-mingw
...
Fix build error on MinGW
2016-01-10 16:39:41 +01:00
Kouhei Sutou
ab3e1d2535
Add missing $(EXT)
...
If the $(EXT) are added, "make install" can work with MinGW build on
Linux.
2016-01-10 18:11:46 +09:00
Kouhei Sutou
14b40fb6d7
Fix build error on MinGW
...
Header file name is case insensitive on Windows but it is case sensitive
on Linux. "Windows.h" can't be found on Linux.
2016-01-10 17:41:43 +09:00
Yann Collet
2785eeedfa
clarified man page as suggested in #170
2015-12-20 15:48:15 +01:00
Yann Collet
ff3324b8d5
Fix : compiler-independent macro to remove deprecation warnings
2015-10-21 12:58:06 +01:00
Daniel Colascione
4f1ff58f82
Tweak error message
2015-09-02 18:57:19 -07:00
Daniel Colascione
975c06b1ad
Improve error messages for attempted console IO
2015-09-02 18:57:19 -07:00
Yann Collet
0011033e33
fixed #150 : blank lines when converting lz4.1 to .ps or .pdf
2015-09-02 12:30:08 +01:00
Yann Collet
fb6fece770
Updated Makefile and .travis
2015-09-01 15:59:24 +01:00
Yann Collet
4a5a003c42
updated cli help
2015-08-20 14:57:35 +01:00
Yann Collet
60119e2585
Makefile : generates *.o for faster processing
2015-08-15 17:21:45 +01:00
Yann Collet
9517bd9234
minor simplification lz4_readarch()
2015-08-06 03:49:29 +01:00
Yann Collet
dfabec2d18
Fixed a few minor visual analyzer warnings
2015-06-29 00:31:41 -08:00
Yann Collet
8901dcdc9d
removed one malloc
2015-06-28 21:53:42 -08:00
Yann Collet
1098d897a0
lz4io : removed one malloc
2015-06-28 20:24:09 -08:00
Yann Collet
81f19264ab
lz4cli : add one malloc test
2015-06-28 20:05:33 -08:00
Yann Collet
6fe48b9183
changed datagen to remove one malloc
2015-06-28 19:43:12 -08:00
Yann Collet
454d109c5d
Fixed : fuzzer display messages
2015-06-27 13:44:13 -08:00
Yann Collet
caba2cc0f5
staticAnalyze use same compilation flags as normal build
2015-06-27 13:21:33 -08:00
Yann Collet
cdef033895
Merge branch 'dev' of github.com:Cyan4973/lz4 into dev
2015-06-27 01:17:57 -07:00
Yann Collet
02ff90ac94
Merge pull request #121 from keszybz/add-gitignore
...
Add gitignore - redirect from #117
2015-06-25 17:43:46 -07:00
Yann Collet
2ce2e60083
Minor doc clarification on sparse mode support
2015-06-21 20:00:44 -08:00
Zbigniew Jędrzejewski-Szmek
0e0c32dfb0
Make git ignore generated files
2015-06-15 21:50:00 -04:00
Yann Collet
7f3d82def8
Merge pull request #114 from lpsantil/djgpp
...
Djgpp
2015-05-28 03:04:17 +02:00
Louis P. Santillan
00b6535b4c
Reverted all Makefile
changes
2015-05-26 19:10:12 -07:00
Louis P. Santillan
b2bbb2790d
Fixup programs/{Makefile,lz4cli.c,lz4io.c} to build with Andrew Wu's build-djgpp cross compilers. Add some documentation in README.DJ
2015-05-25 21:41:45 -07:00
Yann Collet
acae59a739
Fixed : default sparse mode disabled on stdout, to support >>
redirection scenario reported by Takayuki Matsuoka ( #110 )
2015-05-25 07:50:41 +01:00
Yann Collet
26065c3f47
Fixed : LZ4IO exits too early when frame crc not present, reported by Yongwoon Cho ( #106 )
2015-05-20 08:58:59 +01:00
Yann Collet
87e560ed8a
minor tests improvements
2015-05-19 10:29:41 +01:00
Yann Collet
a9ff13a8bb
minor test refactor
2015-05-18 22:35:09 +01:00
Yann Collet
58b5aadb1f
Fixed sparse issue with non seekable streams ( #105 )
2015-05-18 22:09:37 +01:00
Yann Collet
c779c8004c
minor cosmetic changes for Takayuki's testVersions
2015-05-15 15:44:37 +01:00
Yann Collet
f02c4671cd
Added a few more interoperability tests (32bits vs 64 bits)
2015-05-13 15:22:33 +01:00
Yann Collet
efbebd2a99
Added : LZ4_compress_destSize()
2015-05-06 02:29:04 +01:00
Yann Collet
1c3e633c48
Added compilation flag -Wcast-qual
2015-05-06 01:58:24 +01:00
Yann Collet
e05088d0eb
Updated lz4hc API
2015-05-03 20:57:21 +01:00
Yann Collet
1b17bf2ab8
New lz4 API, using LZ4_compress_fast()
2015-05-03 17:57:46 +01:00
Yann Collet
791512cfdd
Fixed bug 9318
2015-05-02 19:10:28 +01:00
Yann Collet
87a1c70ae4
Fixed minor static analyzer warning
2015-04-24 11:04:21 +01:00
Yann Collet
d6dc0a410d
streaming API : Improved ring buffer management
2015-04-24 10:15:12 +01:00
Yann Collet
b805d581b9
Removed obsolete functions from lz4 cli
2015-04-21 19:07:31 +01:00
Yann Collet
f11afafe23
Removed LZ4_compress() (obsolete) from lz4
2015-04-21 18:31:35 +01:00
Yann Collet
cbcdd88ccb
Fixed frame concatenation
2015-04-20 10:05:54 +01:00
Yann Collet
e18aa90798
Fixed frametest
2015-04-20 09:51:00 +01:00
Yann Collet
c035b7a99a
Restored make-lz4
2015-04-20 09:26:16 +01:00
Yann Collet
197982ec6c
Fixed unfinished frame (issue #75 )
2015-04-20 09:24:25 +01:00
Yann Collet
409f816267
Updated LZ4F_getFrameInfo() behavior, related to uncomplete frame header decoding attempts
2015-04-19 15:23:53 +01:00
Yann Collet
47c3040399
added --no-sparse test
2015-04-18 12:44:38 +01:00
Yann Collet
9fd4f1f9f7
Sparse file support is now enabled by default
2015-04-17 19:42:07 +01:00
Yann Collet
7644bee643
test error message in multiple files mode
2015-04-16 16:45:58 +01:00
Yann Collet
bce2eeb9df
Reclassified some notification messages as errors
2015-04-16 16:27:16 +01:00
Yann Collet
9e92bee044
stronger arm tests
2015-04-16 13:34:03 +01:00
Yann Collet
2ed9dcc900
fix minor "divide by zero" risk
2015-04-16 13:18:15 +01:00
Yann Collet
633c1ca810
fixed minor leak
2015-04-16 13:09:34 +01:00
Yann Collet
e328d41ef4
minor optimization for small files
2015-04-16 08:51:31 +01:00
Yann Collet
13c6e16333
Removed status notification in multiple-files mode
2015-04-16 07:16:48 +01:00
Yann Collet
a430b859cf
Multiple files decompression refactoring
2015-04-15 16:24:43 +01:00
Yann Collet
4e574e7395
Updated lz4frame error names
2015-04-15 10:34:08 +01:00
Takayuki MATSUOKA
175890fe9b
Issue#90 : Change old enum names to new one
2015-04-15 06:45:26 +09:00
Takayuki MATSUOKA
081bcca33b
Issue#90 : Add LZ4F_ prefix
...
- Add LZ4F_ prefix to LZ4 frame related enums.
- Also add conditional macro LZ4F_DISABLE_OLD_ENUMS for testing and users who prefer strict prefixes.
2015-04-15 06:45:24 +09:00
Yann Collet
3f4f623bc9
Valgrind tests generate errors
2015-04-14 21:02:12 +01:00
Yann Collet
05a46fc59a
Changes LZ4F_compressBound() definition using NULL prefsPtr to cover worst case instead of default.
2015-04-14 18:51:36 +01:00
Yann Collet
348f5099e4
lz4io refactoring
2015-04-14 18:10:55 +01:00
Yann Collet
eabc6d8d00
New valgrind test with multiple files
2015-04-14 16:34:37 +01:00
Yann Collet
113b150f0a
Fix leak issue with compression of multiple files
2015-04-14 16:05:02 +01:00
Yann Collet
c64200dd85
Improved performance when compressing a lot of small files
2015-04-14 00:07:30 +01:00
Yann Collet
cc24124014
minor compatibility fixes
2015-04-13 20:43:54 +01:00
Yann Collet
ccba7a0a29
Merge pull request #86 from KyleJHarper/origin/r129/multiple_inputs_patch
...
Origin/r129/multiple inputs patch
2015-04-13 21:03:51 +02:00
Kyle J Harper
7f2f1fcd55
Added support for continuation of file compression and decompression if input files are missing. Should more closely match gzip/bzip2/xz and so forth. Also removed a debug print accidentally left in.
2015-04-12 18:41:55 -05:00
Kyle J Harper
0169502b49
Added new LZ4IO_decompressMultipleFilenames to allow decompression of multiple files with the -m switch added in r128 (ref: google code issue 151). Limitation: will only process files matching LZ4_EXTENSION macro, which for now seems reasonable.
2015-04-12 17:33:40 -05:00
Yann Collet
da117257f5
new memory leak test for fullbench using multi-files
2015-04-12 16:49:37 +01:00
Yann Collet
2c7988761d
Shortened tests durations
2015-04-12 16:40:58 +01:00
Yann Collet
8f49666cbc
Fixed : minor coverity warning
2015-04-12 11:37:55 +01:00
Yann Collet
8a610004f6
Fixed a few coverity warnings
2015-04-12 09:42:58 +01:00
Yann Collet
81fdd9df23
Fixed a few Valgrind warnings
2015-04-12 09:29:52 +01:00
Yann Collet
66b8a4a8af
Fixed : minor Visual warnings
2015-04-12 08:58:00 +01:00
Yann Collet
62ed153195
Fixed : a few minor coverity warnings
2015-04-12 08:21:35 +01:00
Yann Collet
973e385fa3
Implemented obsolete warning message
2015-04-11 18:59:22 +01:00
Yann Collet
8b8e5efefe
fixed minor sanitize warning
2015-04-11 10:25:08 +01:00
Yann Collet
c22a0e1e13
Updated : fuzzer tests can be programmed for a timelength
2015-04-10 23:42:17 +01:00
Yann Collet
a2864fd49d
Fixed a few minor sanitize warnings
2015-04-10 14:24:13 +01:00
Yann Collet
f344fbd3ca
Fixed a few warnings from -fsanitize=undefined
2015-04-09 22:59:07 +01:00
Yann Collet
1853622360
fixed over-cautious visual warning
2015-04-08 10:35:38 +01:00
Yann Collet
327cb04f44
minor memory leak fix and test
2015-04-08 09:20:21 +01:00
Yann Collet
43e053513b
fix g++ typecast
2015-04-07 07:14:32 +01:00
Yann Collet
17f86149c5
added : memtest on fullbench
2015-04-06 01:02:24 +01:00
Yann Collet
d38b0b607f
Merge pull request #73 from funcodeio/dev
...
Removed unused lines.
2015-04-04 18:20:21 +02:00
Yongwoon Cho
dd699026e6
Removed unused lines.
2015-04-03 11:55:04 +09:00
Yann Collet
43eaf8f333
Merge pull request #72 from fzort/master
...
Rebase #71
2015-04-02 21:36:21 +02:00
Yann Collet
f72761ff44
new tests for large files with content size support ( #70 )
2015-04-02 15:11:22 +01:00
Yann Collet
90c0104c4e
Added : progress indicator, in fast and decompression modes
2015-04-02 13:25:28 +01:00
mauro.persano
1d3ab5d85d
Cygwin has fileno, so there's no need to use _fileno.
2015-04-01 15:47:24 -03:00
Yann Collet
78d2dfd427
fullbench : tests of _limitedOutput variants intentionnally provides less memory space than safe (LZ4_compressBound())
2015-04-01 18:21:03 +01:00
Yann Collet
3bba55c741
Fixed : Windows compilation
...
Added : Appveyor badge
2015-03-31 14:47:23 +01:00
Yann Collet
8437a0e43a
Fixed : Visual compilation
2015-03-31 13:17:38 +01:00
Yann Collet
4c227a487e
Added LZ4_compress_fast()
2015-03-30 21:32:25 +01:00
Yann Collet
2a82619311
fixed fullbench memory allocation error
2015-03-30 18:39:29 +01:00
Yann Collet
8cb06d5b99
lz4frame validates contentSize during decompression
2015-03-29 13:28:32 +01:00
Yann Collet
d5da787c1b
Changed struct member to contentSize
2015-03-29 11:20:09 +01:00
Yann Collet
b4755c7902
Added : arm cross-compilation test
2015-03-25 23:59:38 +01:00
Yann Collet
80e71c6e8b
Updated man page : "--[no-]X"
2015-03-23 21:22:13 +01:00
Yann Collet
5950f72b9e
Updated tests
2015-03-23 20:03:45 +01:00
Yann Collet
6b923d57a6
Updated long commands, with reverse "--no-" variants
2015-03-23 19:59:41 +01:00
Yann Collet
7f436a1215
lz4 cli supports frame content size
2015-03-23 02:20:42 +01:00
Yann Collet
a28b14731d
removed useless man pages
2015-03-22 13:51:22 +01:00
Yann Collet
7cf4e5c941
Updates tests & Man pages
2015-03-22 13:42:00 +01:00
Yann Collet
f02adc7938
new long commands
2015-03-21 13:34:55 +01:00
Yann Collet
86715b2541
Some more tests related to frame content size
2015-03-19 01:05:59 +01:00
Yann Collet
7ee725645b
frame content size support
2015-03-18 21:38:27 +01:00
Yann Collet
7d87d43e61
Updated lz4io sparse file support (alignment properties)
2015-03-17 18:02:01 +01:00
Yann Collet
da9402c6f5
minor lz4frame refactoring
2015-03-16 22:35:02 +01:00
Yann Collet
e7fb4d151d
lz4 utility supports "pass-through" mode
2015-03-16 20:38:25 +01:00
Yann Collet
2a02455fdf
minor refactoring
2015-03-16 19:19:39 +01:00
Yann Collet
3a6832497b
skippable frames support
2015-03-16 17:52:14 +01:00
Yann Collet
c9a2b14113
removed -s command from lz4c specific list of legacy commands
2015-03-15 20:47:49 +01:00
Yann Collet
207aafd0dc
Added : unlz4 symbolic link to "lz4 -d"
2015-03-15 20:42:40 +01:00
Yann Collet
2b55752a5c
changed "make install" default install directory to /usr/local
2015-03-15 20:40:38 +01:00
Yann Collet
bbcfe2144d
Added : clang test
2015-03-15 14:19:47 +01:00
Yann Collet
45b0642bf5
scan-build tests
2015-03-15 01:42:27 +01:00
Yann Collet
248b761f55
windows sparse file support
2015-03-13 22:15:08 +01:00
Yann Collet
d11ac40872
Improved sparse files support
2015-03-13 20:36:59 +01:00
Yann Collet
45a357fd17
Improved sparse file support
2015-03-13 02:24:08 +01:00
Yann Collet
12ab41571e
Preliminary support for sparse files
2015-03-11 19:42:37 +01:00
Yann Collet
ceec6fa849
g++ compatibility
2015-03-10 16:57:42 +01:00
Yann Collet
6b0c39b839
Updated datagen (can create sparse files)
2015-03-10 00:12:51 +01:00
Yann Collet
e277511ab6
Merge pull request #54 from t-mat/gc-issue/155
...
Gc issue/155
2015-03-08 19:06:17 +01:00
Yann Collet
32a85fc76d
NetBSD compatibility ( #48 )
2015-03-07 19:30:45 +01:00
Yann Collet
488029ec3b
Updated : compress multiple files
2015-03-07 13:23:00 +01:00
Yann Collet
046bd3abee
Merge pull request #52 from KyleJHarper/r128/multiple_inputs
...
Adding support for multiple file processing. Fixes Google code issue 151.
2015-03-03 01:04:40 +01:00
Takayuki MATSUOKA
dcdd628d5e
Fix sentinel bit pattern
...
Set all bits of U64.
2015-03-02 13:38:30 +09:00
Takayuki MATSUOKA
de5c930c90
Fix sentinel size miscalculation
...
Since is_nul() style wild-comparing stride is U64, we must add sizeof(U64) to the sentinel.
2015-03-02 13:38:29 +09:00
Takayuki MATSUOKA
eed7952101
Add GNU coreutil's is_nul() method to isSparse()
...
See original source
http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/system.h
2015-03-02 13:38:28 +09:00
Takayuki MATSUOKA
b372f45093
Add Neil's method to isSparse()
2015-03-02 13:38:27 +09:00
Takayuki MATSUOKA
01a24afdcf
Improve isSparse()
2015-03-02 13:38:25 +09:00
Takayuki MATSUOKA
4a5d92b1d9
Adjust coding style
2015-03-02 13:38:24 +09:00
Takayuki MATSUOKA
97679fa5a1
Google Code Issue 155: lz4 cli should support sparse file
...
https://code.google.com/p/lz4/issues/detail?id=155
This is experimental implementation. Just a proof of concept.
It works Linux and Windows.
# Build
To build experimental version, define 'LZ4IO_ENABLE_SPARSE_FILE' like the following command :
make lz4programs 'CFLAGS=-O3 -DLZ4IO_ENABLE_SPARSE_FILE=1'
./programs/lz4 -h
You will see "EXPERIMENTAL_SPARSE_FILE" as lz4 revision :
"*** LZ4 command line interface 64-bits EXPERIMENTAL_SPARSE_FILE, by Yann Collet (...) ***"
# Experiment
This experimental version adds option "-x" for sparse file for decompression.
You can use this option like this :
./programs/lz4 -9 -f my-file
./programs/lz4 -d -f -x my-file.lz4 my-file.lz4.out
cmp my-file my-file.lz4.out
2015-03-02 13:38:23 +09:00
kyle
fa27d236b4
Added support for multiple input files to act more like other compressors. For example: gzip file1 file2 file3. You can now do: lz4 [args] -m file1 file2 file3. Fixes 151.
2015-03-01 19:00:40 -06:00
Yann Collet
67f3b4141a
Merge pull request #49 from t-mat/msvc-fseeki64
...
Avoid MSVC fseek()'s 2GiB barrier
2015-03-02 00:41:38 +01:00