Yann Collet
df4bb410e3
updated documentation of bench unit
2022-07-29 14:51:52 +02:00
Yann Collet
598eafde2d
minor : fix conversion warnings
2022-07-29 14:34:53 +02:00
Yann Collet
6784e78e00
support skippable frames within pipe
...
fix #977
fseek() doesn't work for pipe,
switch to "read and forget" mode in such case.
2022-07-15 19:30:53 +02:00
Yann Collet
49e63cd522
fixed minor leak
2022-07-01 02:55:47 -07:00
Yann Collet
149644df49
fixed -tm
...
which was broken up to now.
2022-07-01 02:21:44 -07:00
Yann Collet
fcbf585598
minor refactor : EXM_THROW -> END_PROCESS
2022-07-01 02:07:43 -07:00
Yann Collet
e23700d263
fix #1086
...
just remove the specific code of #704 , it's not necessary and produces side effects.
2022-07-01 01:45:12 -07:00
Yann Collet
35565bf0dc
refactored logic to test special file names
2022-07-01 01:36:32 -07:00
Yann Collet
24b50935f9
fail on requesting to process 3+ file names in legacy mode
...
warning only if -f is selected.
2022-06-30 21:53:29 -07:00
WHR
8331b32321
Correct unit prefix names in programs/lz4io.c
2022-05-24 12:04:55 +08:00
Yann Collet
fbc61cde65
--test and --list return an error when parsing invalid file
...
fix #1045
2022-01-28 23:31:51 -08:00
Yann Collet
573fa33d1d
added test
...
for --list from stdin
2022-01-28 17:08:44 -08:00
WHR
540b52ea7b
Allow '--list' with stdin if it is a regular file
2021-12-14 19:41:09 +08:00
Dimitri Papadopoulos
4bdfb08b95
Fix typos found by codespell
2021-11-25 15:32:37 +01:00
Yann Collet
596c747211
make UNAME externally definable
...
on top of providing a central definition place, which eases maintenance,
it might also help for #1021 .
Also : updated doc
2021-08-16 16:43:17 -07:00
Nate
0c78292335
nit(programs/platform.h): replace Unicode character #1018
...
On line 83, U+2013 was replaced with U+002D in order to improve compatibility with MSVC 2019 and older compilers.
2021-08-07 06:32:31 -04:00
Yann Collet
aeac6227d2
Merge pull request #999 from pekdon/solaris-10
...
add -lrt on Solaris 10, required for nanosleep
2021-08-06 19:10:00 +02:00
Eddy Jansson
eba110ad5b
Print target directories during 'make install'.
...
This takes #975 to its logical conclusion.
2021-07-24 17:20:37 +02:00
Claes Nästén
c756d90da9
add -lrt on Solaris 10, required for nanosleep
2021-06-02 09:09:16 +02:00
Yann Collet
28ff53b868
fix minor pedantic warnings
...
initialization and conversion
2020-12-01 08:11:35 -08:00
Yann Collet
5a551754cf
Merge branch 'dev' into Makefile
...
remove `LN_S`
2020-11-30 16:09:22 -08:00
Yann Collet
e585a438c7
refactor Makefile
...
remove usage of include Makefile.inc in too Makefile
as it seems to somehow unexport CFLAGS ...
2020-11-30 16:06:50 -08:00
Yann Collet
165fdddc28
install links over existing install
...
ensures links are created
2020-11-30 05:13:38 -08:00
Yann Collet
87a80acbe7
updated license & header dates
2020-11-25 14:45:14 -08:00
Yann Collet
0760724577
update doc
2020-11-15 01:31:09 -08:00
Yann Collet
0bd7dafc93
Merge pull request #953 from lz4/vs2005
...
better MSVC conformance
2020-11-15 01:23:40 -08:00
Yann Collet
e0f85f2fc8
better visual conformance
...
only include <intrin.h> on vs2005+ (#947 )
remove some useless #pragma
fix a few minor Visual warnings
2020-11-14 16:27:57 -08:00
Yann Collet
be13653ad0
fix minor parse warning
2020-11-14 12:44:18 -08:00
Yann Collet
36eadb205a
all usages of prefs within lz4io are const
2020-11-14 12:40:17 -08:00
Yann Collet
7315c6e7a0
LZ4IO_openDstFile() doesn't need pref mutability
2020-11-14 11:13:08 -08:00
Yann Collet
849ebae524
fixed force --sparse mode
2020-11-14 10:52:19 -08:00
Yann Collet
5fa6417b2e
dictionary functions don't need prefs mutability
2020-11-13 22:20:49 -08:00
Yann Collet
772a312b00
LZ4IO_createDict() doesn't need prefs
2020-11-13 22:16:39 -08:00
Yann Collet
8af38013e0
LZ4IO_decompressSrcFile() doesn't need mutable prefs
2020-11-13 21:51:08 -08:00
Yann Collet
2b3445a269
selectDecoder() doesn't need mutable prefs
2020-11-13 21:49:43 -08:00
Yann Collet
8d37662e48
LZ4IO_passThrough() doesn't need prefs
2020-11-13 21:47:17 -08:00
Yann Collet
c8c3f8e62e
LZ4IO_decompressLZ4F() doesn't need mutable prefs
2020-11-13 20:57:26 -08:00
Yann Collet
a203cb2a6e
LZ4IO_decodeLegacyStream() doesn't need mutable prefs
2020-11-13 20:51:49 -08:00
Yann Collet
f81f3a254e
LZ4IO_fwriteSparse doesn't need writable prefs
2020-11-13 16:44:39 -08:00
Yann Collet
22729ecb8b
minor refactor
...
mostly on the compression code path
2020-11-13 11:55:33 -08:00
Yann Collet
b7c6fc9f61
minor refactor of lz4io
...
for readability.
Mostly around --list capability
2020-11-13 10:57:40 -08:00
Yann Collet
392809d66e
fix minor static analyzer warnings
...
detected by scan-build and cppcheck
fix #786
2020-09-29 17:09:58 -07:00
Niklas Hambüchen
a58b7ac6ce
fixup: Portable fileno()
2020-08-25 03:37:41 +02:00
Niklas Hambüchen
86edeb6784
fixup: C90 compliance, clean up stat() types/calls
2020-08-25 03:36:57 +02:00
Niklas Hambüchen
9a7658070a
Use fstat() to determine file size.
...
This allows us to get the file size even when the input file is passed
via stdin. This fixes `--content-size` not working in situations like
$ lz4 -v --content-size < /tmp/test > /tmp/test.lz4
Warning : cannot determine input content size
With this change, it works.
Also helps with #904 .
2020-08-24 06:27:28 +02:00
Yann Collet
3dd34df751
added target lz4-wlib
...
variant of lz4 linking to liblz4 dynamic library
requires the dynamic library to expose static-only symbols (experimental API)
Example for #888
2020-08-11 14:07:51 -07:00
Filipe Calasans
781417a369
Implement -m option with legacy format on cli
2020-02-07 17:03:13 -08:00
Filipe Calasans
ac4940cd98
Fix lz4cli --list option
2020-02-06 21:39:54 -08:00
Jerome Duval
935b432be1
bring support for Haiku up to date.
2019-11-07 14:32:38 +01:00
Reto Koradi
cc91777c98
Make benchmark compatible with dictionary compression
...
Support the -D command line option for running benchmarks. The
benchmark code was slightly restructured to factor out the calls
that need to be different for each benchmark scenario. Since there
are now 4 scenarios (all combinations of fast/HC and with/without
dictionary), the logic was getting somewhat convoluted otherwise.
This was done by extending the compressionParameters struct that
previously contained just a single function pointer. It now
contains 4 function pointers for init/reset/compress/cleanup,
with the related state. The functions get a pointer to the
structure as their first argument (inspired by C++), so that they
can access the state values in the struct.
2019-11-05 23:38:00 -08:00
Rosen Penev
a55095ddd6
util.h: Remove deprecated utime for non-Windows
...
utime was deprecated in POSIX 2008.
2019-09-10 11:29:05 -07:00
WHR
eee8cc79e7
lz4cli: add option '--best' as an alias of '-12'
2019-07-23 13:37:11 +08:00
Yann Collet
bb5c34a875
bumped version number to v1.9.2
...
to reduce risks that future bug reports in `dev` branch report `v1.9.1` as the failing version.
2019-07-01 09:01:43 -07:00
Yann Collet
baf9b0e043
fix #734 : --version should output to stdout
...
instead of stderr
2019-06-24 16:08:30 -07:00
gabrielstedman
729eef61a1
Handle file not existing case #704
2019-05-26 15:04:45 +01:00
gstedman
81081f9b2d
List mode improvements.
...
Improve formatting
Include static assert
Use UTIL_fseek to handle potential fseek limitation
Be explicit when refusing to read from stdin
Properly free dctx after use
Include valgrind tests
2019-05-16 20:53:29 +01:00
gstedman
98a86c8ef6
Add multiframe report to --list command
2019-05-15 21:13:19 +01:00
JPeterMugaas
7136489d33
More build imrpvements
...
Moved a few other tests to Makefiles.inc. Other things might need to go there.
Made a test for symlink appropriateness. Windows can NOT handle them the same way Unix-like operating systems do (if at all). This is mostly the same as the Visual C projects.
embed version info into .dll and .exes that are redistributed.
2019-04-23 07:44:00 -04:00
Yann Collet
291b3d8b7e
Merge pull request #691 from lz4/list
...
--list
2019-04-22 17:43:01 -07:00
Yann Collet
35b83a921f
fix: no leak when LZ4F_dctx creation fails
...
strange, because it previous implementation, it would `exit()`,
so it should not matter ...
2019-04-22 16:06:22 -07:00
Yann Collet
c4fe7a2047
Merge pull request #689 from JPeterMugaas/jpm-makefile
...
Jpm makefile - as described in https://github.com/lz4/lz4/issues/688
2019-04-22 15:29:50 -07:00
Yann Collet
5a50247d5f
updated code comments
2019-04-22 15:24:44 -07:00
Yann Collet
a685d5cffc
--list gives block type
2019-04-22 15:14:53 -07:00
Yann Collet
f401f1de7e
--list can resume after a failed file
2019-04-22 15:01:20 -07:00
JPeterMugaas
5e6807fd95
Make programs/Makefile use the includes.
2019-04-22 17:38:43 -04:00
Yann Collet
0d4c885abb
refactored --list function
...
better handling of special conditions,
better scoping of variables.
Also : updated man page
2019-04-22 14:01:19 -07:00
Yann Collet
ae5cea9112
fixed C90 compliance
...
re-structure code, have everything into a single section of lz4io.c
2019-04-22 12:27:25 -07:00
JPeterMugaas
773b66547f
Initial commits from diff I submitted earlier
2019-04-22 13:48:59 -04:00
gabrielstedman
84f978a2f3
FR #598 - Correctly initialize cfinfo & cast malloc res to (char*)
2019-04-22 11:07:08 +01:00
gabrielstedman
e31b6dc03c
FR #598 - Make fileSize unsigned long long
2019-04-22 10:35:29 +01:00
gabrielstedman
0acebbe53d
FR #598 - Move LZ4F_compFileInfo_t def to lz4frame.h discard output_file
...
assert if in om_list mode
2019-04-22 10:02:46 +01:00
gabrielstedman
9d0960c354
Merge https://github.com/lz4/lz4 into dev
2019-04-22 09:56:51 +01:00
gabrielstedman
2133366da0
FR #598 - Make LZ4IO_getCompressedFileInfo internal and reword func
2019-04-22 09:00:20 +01:00
Yann Collet
22fae16c6f
ensure tests work when stdout
is not the console
...
ensure this case is continuously tested on travis.
Update documentation on implicit output,
invite to not rely on implicit output in scripts.
2019-04-21 17:01:03 -07:00
gabrielstedman
5fdc6d201e
FR #598 Improve initial design, test mallocs, support C90.
2019-04-21 18:20:40 +01:00
gabrielstedman
55484191c4
correctly use unisgned int for index
2019-04-21 00:20:38 +01:00
gabrielstedman
55ab3c48ae
Add --list option to display compressed file information.
2019-04-21 00:01:03 +01:00
Yann Collet
5f8ac02b77
cli: display a warning whenever default output is stdout while input != stdin
...
This behavior has been preserved for compatibility with existing ecosystem.
But it's problematic, as some environment start `lz4` without identifying stdout as console by default,
leading to a change of behavior for a same line of script.
A more sensible policy would be to default to stdout only when input is stdin.
Soft change for the time being : keep the behavior, just print a warning message.
User should prefer `-c` to explicitly select `stdout`.
Also : updated tests in Makefile to explicitly select `stdout` with `-c`.
2019-04-19 17:08:40 -07:00
Yann Collet
4e4f1ad623
ensure list of names is large enough
2019-04-18 17:26:01 -07:00
Yann Collet
4f6de46f60
fix several minor static analyzer warnings
2019-04-18 12:05:50 -07:00
Yann Collet
63bfb64b80
and even more visual conversion warnings
2019-04-12 17:40:23 -07:00
Yann Collet
8c2429ed1f
some more Visual conversion warning
2019-04-12 17:06:53 -07:00
Yann Collet
c7554c3004
fixed minor Visual conversion warnings
2019-04-12 17:03:28 -07:00
Yann Collet
9c49e3ca07
added tests for -d -m -c
...
seems to work properly
2019-04-12 16:10:55 -07:00
Yann Collet
e865a3e7ec
fixed lz4 -m -c
...
can compress multiple files into stdout
2019-04-12 15:17:48 -07:00
Yann Collet
20c2a5fc94
added command -BI for "Independent Blocks"
...
This is the reverse of `-BD`, and the current default.
This command can be useful to reverse a previous `-BD` command.
It may in the future be more important
if `lz4` switches to generating dependent blocks by default.
2019-04-12 13:27:11 -07:00
Yann Collet
352bbdb98e
updated man page
...
with --favor-decSpeed
2019-04-12 13:15:05 -07:00
Yann Collet
21ff1a839a
updated doc to underline difference between block and frame
...
as this is a very frequent source of confusion for new users.
2019-04-12 11:27:44 -07:00
Yann Collet
bcb26565a7
improved documentation for LZ4 dictionary compression
2019-04-11 15:20:46 -07:00
Yann Collet
8d76c8a44a
introduce LZ4_DISTANCE_MAX build macro
...
make it possible to generate LZ4-compressed block
with a controlled maximum offset (necessarily <= 65535).
This could be useful for compatibility with decoders
using a very limited memory budget (<64 KB).
Answer #154
2019-04-11 14:15:33 -07:00
Yann Collet
c438548312
Merge pull request #652 from vtorri/dev
...
Allow installation of lz4 for Windows 10 with MSYS2
2019-03-03 13:40:45 -08:00
Vincent Torri
0360981f68
Allow installation of lz4 for Windows 10 with MSYS2
2019-03-03 22:06:38 +01:00
Tim Zakian
c1610690b1
Add cast around malloc
2019-01-11 09:49:26 -08:00
Tim Zakian
416916146f
Add constant pointer annotations
2019-01-10 20:40:00 -08:00
Tim Zakian
5822e667cc
Remove a bunch of global variables that tracked settings for the IO module, and move them in to a struct
2019-01-10 15:27:47 -08:00
Tim Zakian
9028682e7a
Fix pass-through mode
2019-01-10 10:20:17 -08:00
Ruben O. Chiavone
e6905b5812
Fix lz4 extension in input filename not causing decompression
2019-01-08 22:56:04 -03:00
Vincent Torri
0314027051
Allow installation of lz4 for Windows (MSYS2 or when cross-compiling)
2018-11-20 21:08:23 +01:00
Blaise Sanouillet
32501603c7
support custom block sizes: fix usage message & remove unused functions
2018-09-28 09:53:14 -07:00
Blaise Sanouillet
718d16ef29
support custom block sizes - fix types
2018-09-28 09:02:36 -07:00
Blaise Sanouillet
64ad395d27
support custom block sizes
2018-09-28 08:02:49 -07:00
Yann Collet
b2215f2a89
tried to clean another bunch of cppcheck warnings
...
so "funny" thing with cppcheck
is that no 2 versions give the same list of warnings.
On Mac, I'm using v1.81, which had all warnings fixed.
On Travis CI, it's v1.61, and it complains about a dozen more/different things.
On Linux, it's v1.72, and it finds a completely different list of a half dozen warnings.
Some of these seems to be bugs/limitations in cppcheck itself.
The TravisCI version v1.61 seems unable to understand %zu correctly, and seems to assume it means %u.
2018-09-19 12:12:49 -07:00
Yann Collet
e34a27d291
fixed minor cppcheck warnings in programs
2018-09-18 16:08:17 -07:00
Lucas Holt
3318d573ba
Add support for MidnightBSD
2018-09-08 14:46:54 -04:00
Yann Collet
0f08c22c31
Merge pull request #563 from lz4/docDict
...
updated documentation for dictionary compression
2018-09-06 12:43:29 -07:00
Yann Collet
cd3945f532
Merge pull request #564 from lz4/cTime
...
fixed compression time
2018-09-05 17:48:40 -07:00
Yann Collet
d136118ea9
Merge pull request #556 from kou/add-missing-exeext
...
Add missing $(EXT)
2018-09-05 15:55:34 -07:00
Yann Collet
b61991491a
fixed compression time
...
displayed at the end (#555 )
2018-09-05 15:16:03 -07:00
Yann Collet
0fea528e3a
updated documentation regarding dictionary compression
...
following suggestion from @stbrumme (#558 )
Also : bumped version number, regenerated man page and html doc
2018-09-05 14:05:08 -07:00
Yann Collet
2e4847c2d5
fixed #560
...
it was a fairly complex scenario,
involving source files > 64K
and some extraordinary conditions related to specific layout of ranges of zeroes.
and only on level 9.
2018-09-04 18:21:40 -07:00
Kouhei Sutou
9c457ccb7a
Add missing $(EXT)
2018-08-13 14:17:54 +09:00
Jennifer Liu
e778db373b
Fixed bugs about incorrect acceleration calculation and benchmarking negative compresion level
2018-06-27 13:36:38 -07:00
Jennifer Liu
8745638d7c
Fixed invalid argument test and reformatted else
2018-06-26 17:53:12 -07:00
Jennifer Liu
9ee5183d9b
Fixed code based on comments from pull request
2018-06-26 17:31:15 -07:00
Jennifer Liu
9f8fd09852
delete commented out code in bench.c
2018-06-26 10:49:39 -07:00
Jennifer Liu
536b79afd9
Added --fast command to cli
2018-06-25 17:46:39 -07:00
fbrosson
2149b1a8f6
Add Haiku as a validated target.
...
lz4 1.8.2 works fine on Haiku and passes all tests.
2018-05-17 16:52:53 +00:00
Nick Terrell
a7cc0b590a
Fix make install
...
* Uninstall didn't remove the pkg-config correctly.
* Fix `mandir`
* Allow overriding either upper- or lower-case location variables, but
always use the lower case variables.
* Add test case that ensures overriding both upper- and lower-case
variables is the same, and that the directory is empty after uninstall.
2018-05-04 13:50:23 -07:00
Cyan4973
5a2501a90d
added a test case for LZ4_decompress_fast_usingDict
...
with a separated dictionary
since a joined dictionary is now detected as prefix64K.
Also : fixed a minor warning under msys
2018-04-29 07:42:24 -07:00
Yann Collet
5c7d3812d9
fasterDecSpeed can be triggered from cli with --favor-decSpeed
2018-04-26 15:49:32 -07:00
W. Felix Handte
2dfc7cbe82
Change Over Includes in the Project
2018-04-24 16:22:28 -04:00
Cyan4973
644b7bd2b6
fixed minor declaration issue with clang on msys
2018-04-23 15:52:44 -07:00
Yann Collet
133a50b780
fixed DISPLAYUPDATE()
...
wrong comparison, which was always overflowing (hence was always true)
except when it was not (i386, reported by pmc)
in which case it would never show any information.
2018-04-06 14:16:23 -07:00
Yann Collet
1faa7e2698
bench: introduced hidden command -S
...
to benchmark multiple files with separate results
2018-03-19 17:19:25 -07:00
Yann Collet
5b67c7d185
Merge branch 'dev' of github.com:Cyan4973/lz4 into dev
2018-03-19 16:18:25 -07:00
Yann Collet
d6711a7cff
minor man fix on clevels
2018-03-19 16:18:10 -07:00
W. Felix Handte
9dcd9abc14
Make LZ4F_compressFrame_usingCDict Take a Compression Context
2018-03-12 14:58:43 -04:00
Yann Collet
179670f32f
use TIMELOOP_NANOSEC,
...
as suggested by @terrelln
2018-02-20 15:26:59 -08:00
Yann Collet
34c1634d4b
fixed minor conversion warning
2018-02-20 14:13:13 -08:00
Yann Collet
ae3dededed
ensure bench speed measurement is more accurate for small inputs
...
Previous method would produce too many time() invocations,
becoming a significant fraction of workload measured.
The new strategy is to use time() only once per batch,
and dynamically resize batch size so that each round lasts approximately 1 second.
This only matters for small inputs.
Measurement for large files (such as silesia.tar) are much less impacted
(though decoding speed is so fast that even medium-size files will notice an improvement).
2018-02-20 13:09:13 -08:00
Yann Collet
1a233c5f0f
update bench.c to use less time invocations
...
translating into more accurate speed measurements for small sources
2018-02-20 11:37:19 -08:00
hobomind
b202c67234
fix: missed semicolon at programs/lz4io.c:954
2018-02-14 18:47:56 +03:00
Yann Collet
7dba09af47
use more restrictive conditions for clock_gettime()
2018-01-16 10:21:37 -08:00
Yann Collet
75e22d133e
minor : try to tell static analyzer that we don't care if fseek() fails
...
as already explained in comments.
2018-01-13 22:52:17 -08:00
Yann Collet
8e69328d61
programs/datagen : attempt to please static analyzer
...
with an assert()
to reduce false positive
2018-01-13 22:24:32 -08:00
Yann Collet
fe66e78b96
lz4io: fixed minor ressource leak
2018-01-13 22:18:04 -08:00
Yann Collet
52a76ff682
update man page
2018-01-13 19:06:33 -08:00
Yann Collet
ac38ffa9af
updated manuals to v1.8.1
2018-01-13 18:46:13 -08:00
Nick Terrell
00eac87dda
[lz4io] Refuse to set file stat for non-regular files
2018-01-05 11:54:35 -08:00
Nick Terrell
9474b706a5
[lz4io] Fix decompression file stat with --rm
2018-01-05 11:27:24 -08:00
Yann Collet
506ae9c333
Merge pull request #439 from eli-b/doc-nohup-behavior
...
Docs: describe behavior under nohup
2018-01-02 00:19:59 +01:00
Eli Boyarski
329dcd4765
Docs: describe behavior under nohup
2018-01-01 15:38:48 +02:00
Eli Boyarski
c8411ea880
Grammar: "to silent" -> "to silence"
2018-01-01 14:15:31 +02:00
Alice Atlas
42a31aee50
Fix bug which could sometimes result in the lz4 cli chmodding /dev/null if running as root
2017-12-04 16:07:31 -05:00
Yann Collet
6c94c94d46
minor updates to examples
...
see 810e2ca27b (commitcomment-25810887)
2017-11-24 17:18:46 -08:00
Nick Terrell
74d8688bc8
[bench] Use higher resolution timer on POSIX
...
The timer used was only accurate up to 0.01 seconds. This timer is accurate up to 1 ns.
It is a monotonic timer that measures the real time difference, not on CPU time.
Copied the benchmark code from 6ab4d5e904
2017-10-17 13:55:35 -07:00
Yann Collet
dccf8826f1
lz4cli : minor rewrite of lz4c legacy commands
...
for clarity
2017-10-14 23:50:07 -07:00
Yann Collet
2d827e1b28
lz4cli : removed extension artefacts
...
It used to be useful for an old Windows variant which is no longer maintained.
2017-10-14 18:48:00 -07:00
W. Felix Handte
9a16272261
Read the Dictionary into a Circular Buffer
2017-10-09 20:18:21 -04:00
W. Felix Handte
2bd85f4199
Add Dictionary Support to the Command Line Tool
2017-10-09 20:16:00 -04:00
Yann Collet
a30cba08f4
fixed a bunch of -Wcomma warnings
...
reported by @rvandermeulen (#398 )
2017-09-10 14:32:38 -07:00
Yann Collet
00418f7611
bench : made decompression speed evaluation same time as compression
...
minor : slightly modified an example do avoid disabling a gcc warning through #pragma
2017-09-07 12:12:36 -07:00
Yann Collet
ee5332438b
minor Makefile fixes
2017-09-06 17:41:44 -07:00
Yann Collet
c4d6884cd8
build: source files sorted in a FS independent manner
...
to be more compatible with reproducible builds.
patch inspired by @bmwiedemann
2017-08-26 12:22:51 -07:00
Yann Collet
c04655bebf
fixed make recurrence from /tests
2017-08-24 17:58:13 -07:00
Yann Collet
82ccdec2fb
minor : added header license
2017-08-24 16:59:47 -07:00
Yann Collet
68040a76ad
fixed man directory installation ( #337 )
...
also : lz4c is now a symlink to lz4
2017-08-23 17:53:45 -07:00
Yann Collet
a1f3a27e9b
Merge branch 'dev' into installVars and fixed conflicts
2017-08-15 16:57:00 -07:00
Yann Collet
01cdbfb5fe
lz4c legacy commands are now enabled at runtime based on link/binary name "lz4c"
...
instead of selected at compilation time depending on a macro.
This design makes it possible to have a single binary which supports both modes.
An advantageous side effect is that when doing `make; make install`
no additional binary is created during `make install`
(it used to create `lz4c`, because `make` would only build `lz4`)
2017-08-14 16:56:05 -07:00
Yann Collet
aea7d521ae
better respect GNU standard Makefile conventions
...
supports lowercase directory variables
add an "Installation" section in README.md
added an INSTALL file
2017-08-14 15:13:23 -07:00
Yann Collet
930a692110
cli : restored command -BX to enable block checksum ( #322 )
2017-08-11 17:58:46 -07:00
Yann Collet
dba4d70a1d
updated man page
2017-08-06 21:04:46 -07:00
FeRD (Frank Dana)
872f767fec
Fix formatting of concatenation example
...
The "Concatenation of .lz4 files" section contains example commands
that are run together on one line, making them invalid. Wrap them
in a code block and clean up surrounding formatting.
2017-07-08 07:43:51 -04:00
Chocobo1
a4ec7fa7b7
Fix gcc7 Wimplicit-fallthrough warnings
...
For the default Wimplicit-fallthrough=3 level,
the comment should start with "fall*"
2017-06-19 13:57:35 +08:00
Yann Collet
a6fd0f9d0b
-g compilation flag not by default for lz4 cli
2017-06-13 14:45:48 -07:00
Yann Collet
d18084c655
report where decompression ends ( #313 )
...
suggested by @ehem
note : only works for files < 2 GB
2017-06-12 15:47:43 -07:00
Yann Collet
03d8586fca
cli accept block sizes with KB / MB prefixes
2017-05-26 14:38:47 -07:00
Yann Collet
b8575f2d2b
updated Makefile
...
to automatically build manual files with
make all
2017-05-10 13:26:04 -07:00
Alexey Tourbin
a41df535f7
lz4cli.c: fix a comment: LZ4HC_DEFAULT_CLEVEL -> LZ4HC_CLEVEL_MAX
...
Actually the program only mentions LZ4HC_CLEVEL_MAX.
2017-04-29 16:18:37 +03:00
Sean Purcell
9b1f00056a
Fix inline compile errors
2017-03-27 12:26:12 -07:00
Sean Purcell
afde27acf2
Fix IS_CONSOLE returning 1 for NUL on windows
2017-03-27 12:10:10 -07:00
Yann Collet
84246b974e
Merge pull request #341 from iburinoc/exematch
...
Ignore extensions in exe name matching
2017-03-24 20:42:27 -07:00
Sean Purcell
e9c3b14f29
Ignore extensions in exe name matching
2017-03-24 16:33:14 -07:00
Dmitry V. Levin
b1daffc4e5
cli: add GNU separator -- specifying that all following arguments are files
...
This option is supported by other compressors with compatible cli,
so add it to lz4 as well for better compatibility.
2017-03-23 03:48:51 +00:00
Yann Collet
cd35f0d98c
LZ4_compress_HC_destSize() uses LZ4HC_compress_generic() code path
...
Limits compression level to 10,
to remain compatible with Hash Chain.
2017-03-16 15:10:38 -07:00
Yann Collet
9144520dc9
fixed Visual compilation error
...
static const must be a "constant", like a macro
even if it can be determined at compile time ...
2017-03-15 18:59:26 -07:00
Yann Collet
a33bf89c62
fix #332 : do not modify /dev/null permissions
2017-03-15 17:26:50 -07:00
Przemyslaw Skibinski
cb1671955a
bench.c: respect LZ4_MAX_INPUT_SIZE limit
2017-03-10 20:49:25 +01:00
Przemyslaw Skibinski
ca2c5fd3c6
CFLAGS=-I/usr/include/x86_64-linux-gnu
2017-02-16 00:17:42 +01:00
Przemyslaw Skibinski
ace22424d8
circle.yml: fixed lz4c32 target (2)
2017-02-15 23:19:30 +01:00
Przemyslaw Skibinski
68a358769e
Avoid fseek()'s 2GiB barrier with MinGW
2017-02-15 17:17:57 +01:00
Przemyslaw Skibinski
40ad1e85d4
upgraded util.h
2017-02-15 17:16:15 +01:00
Przemyslaw Skibinski
c7b14967ab
updated platform.h
2017-02-10 14:53:58 +01:00
Przemyslaw Skibinski
489d1618c9
added "This Makefile is validated for"
2017-01-19 16:28:08 +01:00
Chocobo1
db6f733ecc
Use logical or instead of bitwise or
2017-01-13 00:43:25 +08:00
Chocobo1
44f95e92ea
Fix printf specifier
2017-01-13 00:36:24 +08:00
Przemyslaw Skibinski
7a73c5c1fe
changed default PREFIX and MANDIR
2016-12-28 11:34:23 +01:00
Przemyslaw Skibinski
efaa9b7bc7
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev
...
# Conflicts:
# lib/Makefile
2016-12-27 10:43:07 +01:00
Przemyslaw Skibinski
b22e2bed5e
BSD: improved "make install"
2016-12-23 10:05:41 +01:00
Przemyslaw Skibinski
ea51ad0cee
Solaris: working "make install"
2016-12-23 00:02:01 +01:00
Yann Collet
19c0f21b00
updated Makefile : lz4 no longer recompiled when already up-to-date
2016-12-22 18:02:09 +01:00
Przemyslaw Skibinski
9b4b081c15
"make test" is now compatible with Solaris
2016-12-22 17:18:39 +01:00
Yann Collet
b41f9bb132
Merge pull request #292 from inikep/dev
...
improved POSIX
2016-12-22 11:58:29 +01:00
Yann Collet
52cac9a973
updated a few macros names
2016-12-22 11:41:05 +01:00
Przemyslaw Skibinski
fea95c1567
use FindFirstFileA and FindNextFileA on Windows
2016-12-22 10:58:58 +01:00
Przemyslaw Skibinski
e6af952f84
improved comments
2016-12-21 19:49:06 +01:00
Przemyslaw Skibinski
5812450635
use fseeko for 32-bit MacOS
2016-12-21 18:46:14 +01:00
Przemyslaw Skibinski
f084b65383
test Large File support for Mac OS-X in 32-bits mode
2016-12-21 17:13:38 +01:00
Przemyslaw Skibinski
973bc79740
util.h and platform.h based on zstd
2016-12-21 16:10:09 +01:00
Przemyslaw Skibinski
2fd7eb554a
fixed Visual Studio compilation
2016-12-21 11:53:16 +01:00