summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.c
Commit message (Collapse)AuthorAgeFilesLines
* Use fstat() to determine file size.Niklas Hambüchen2020-08-241-2/+2
| | | | | | | | | | | | 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.
* Implement -m option with legacy format on cliFilipe Calasans2020-02-081-2/+49
|
* Fix lz4cli --list optionFilipe Calasans2020-02-071-4/+5
|
* bumped version number to v1.9.2Yann Collet2019-07-011-8/+8
| | | | to reduce risks that future bug reports in `dev` branch report `v1.9.1` as the failing version.
* List mode improvements.gstedman2019-05-161-182/+190
| | | | | | | | | 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
* Add multiframe report to --list commandgstedman2019-05-151-92/+285
|
* fix: no leak when LZ4F_dctx creation failsYann Collet2019-04-221-9/+4
| | | | | strange, because it previous implementation, it would `exit()`, so it should not matter ...
* updated code commentsYann Collet2019-04-221-4/+5
|
* --list gives block typeYann Collet2019-04-221-5/+21
|
* --list can resume after a failed fileYann Collet2019-04-221-43/+60
|
* refactored --list functionYann Collet2019-04-221-79/+97
| | | | | | | better handling of special conditions, better scoping of variables. Also : updated man page
* fixed C90 complianceYann Collet2019-04-221-58/+69
| | | | re-structure code, have everything into a single section of lz4io.c
* FR #598 - Correctly initialize cfinfo & cast malloc res to (char*)gabrielstedman2019-04-221-2/+2
|
* FR #598 - Make fileSize unsigned long longgabrielstedman2019-04-221-2/+2
|
* FR #598 - Move LZ4F_compFileInfo_t def to lz4frame.h discard output_filegabrielstedman2019-04-221-4/+7
| | | | assert if in om_list mode
* FR #598 - Make LZ4IO_getCompressedFileInfo internal and reword funcgabrielstedman2019-04-221-68/+64
|
* FR #598 Improve initial design, test mallocs, support C90.gabrielstedman2019-04-211-33/+79
|
* Add --list option to display compressed file information.gabrielstedman2019-04-201-1/+39
|
* added tests for -d -m -cYann Collet2019-04-121-3/+8
| | | | seems to work properly
* fixed lz4 -m -cYann Collet2019-04-121-12/+30
| | | | can compress multiple files into stdout
* Add cast around mallocTim Zakian2019-01-111-1/+1
|
* Add constant pointer annotationsTim Zakian2019-01-111-34/+35
|
* Remove a bunch of global variables that tracked settings for the IO module, ↵Tim Zakian2019-01-101-117/+150
| | | | and move them in to a struct
* Fix pass-through modeTim Zakian2019-01-101-1/+10
|
* support custom block sizes: fix usage message & remove unused functionsBlaise Sanouillet2018-09-281-1/+0
|
* support custom block sizes - fix typesBlaise Sanouillet2018-09-281-1/+1
|
* support custom block sizesBlaise Sanouillet2018-09-281-3/+22
|
* tried to clean another bunch of cppcheck warningsYann Collet2018-09-191-16/+24
| | | | | | | | | | | | 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.
* fixed compression timeYann Collet2018-09-051-10/+21
| | | | displayed at the end (#555)
* fasterDecSpeed can be triggered from cli with --favor-decSpeedYann Collet2018-04-261-0/+8
|
* Change Over Includes in the ProjectW. Felix Handte2018-04-241-1/+1
|
* fixed DISPLAYUPDATE()Yann Collet2018-04-061-3/+6
| | | | | | 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.
* Make LZ4F_compressFrame_usingCDict Take a Compression ContextW. Felix Handte2018-03-121-1/+1
|
* fix: missed semicolon at programs/lz4io.c:954hobomind2018-02-141-1/+1
|
* minor : try to tell static analyzer that we don't care if fseek() failsYann Collet2018-01-141-1/+1
| | | | as already explained in comments.
* lz4io: fixed minor ressource leakYann Collet2018-01-141-0/+1
|
* [lz4io] Fix decompression file stat with --rmNick Terrell2018-01-051-8/+12
|
* Fix bug which could sometimes result in the lz4 cli chmodding /dev/null if ↵Alice Atlas2017-12-041-1/+1
| | | | running as root
* Read the Dictionary into a Circular BufferW. Felix Handte2017-10-101-22/+49
|
* Add Dictionary Support to the Command Line ToolW. Felix Handte2017-10-101-4/+80
|
* cli : restored command -BX to enable block checksum (#322)Yann Collet2017-08-121-5/+6
|
* report where decompression ends (#313)Yann Collet2017-06-121-39/+60
| | | | | suggested by @ehem note : only works for files < 2 GB
* LZ4_compress_HC_destSize() uses LZ4HC_compress_generic() code pathYann Collet2017-03-161-1/+1
| | | | | Limits compression level to 10, to remain compatible with Hash Chain.
* fixed Visual compilation errorYann Collet2017-03-161-1/+1
| | | | | static const must be a "constant", like a macro even if it can be determined at compile time ...
* fix #332 : do not modify /dev/null permissionsYann Collet2017-03-161-37/+31
|
* Avoid fseek()'s 2GiB barrier with MinGWPrzemyslaw Skibinski2017-02-151-16/+5
|
* use FindFirstFileA and FindNextFileA on WindowsPrzemyslaw Skibinski2016-12-221-1/+1
|
* improved commentsPrzemyslaw Skibinski2016-12-211-1/+1
|
* use fseeko for 32-bit MacOSPrzemyslaw Skibinski2016-12-211-3/+1
|
* test Large File support for Mac OS-X in 32-bits modePrzemyslaw Skibinski2016-12-211-2/+11
|