summaryrefslogtreecommitdiffstats
path: root/programs/util.h
Commit message (Collapse)AuthorAgeFilesLines
* fixed minor leakYann Collet2022-07-011-2/+2
|
* refactored logic to test special file namesYann Collet2022-07-011-13/+33
|
* Allow '--list' with stdin if it is a regular fileWHR2021-12-141-0/+25
|
* fix minor pedantic warningsYann Collet2020-12-011-7/+9
| | | | initialization and conversion
* updated license & header datesYann Collet2020-11-251-1/+1
|
* better visual conformanceYann Collet2020-11-151-3/+3
| | | | | | only include <intrin.h> on vs2005+ (#947) remove some useless #pragma fix a few minor Visual warnings
* fixup: Portable fileno()Niklas Hambüchen2020-08-251-1/+10
|
* fixup: C90 compliance, clean up stat() types/callsNiklas Hambüchen2020-08-251-27/+31
|
* Use fstat() to determine file size.Niklas Hambüchen2020-08-241-1/+26
| | | | | | | | | | | | 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.
* util.h: Remove deprecated utime for non-WindowsRosen Penev2019-09-101-5/+19
| | | | utime was deprecated in POSIX 2008.
* ensure list of names is large enoughYann Collet2019-04-191-10/+9
|
* and even more visual conversion warningsYann Collet2019-04-131-1/+5
|
* some more Visual conversion warningYann Collet2019-04-131-1/+3
|
* fixed minor Visual conversion warningsYann Collet2019-04-131-6/+6
|
* fixed minor cppcheck warnings in programsYann Collet2018-09-181-20/+28
|
* added a test case for LZ4_decompress_fast_usingDictCyan49732018-04-291-1/+1
| | | | | | | with a separated dictionary since a joined dictionary is now detected as prefix64K. Also : fixed a minor warning under msys
* fixed minor declaration issue with clang on msysCyan49732018-04-231-1/+2
|
* ensure bench speed measurement is more accurate for small inputsYann Collet2018-02-201-1/+7
| | | | | | | | | | | | 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).
* use more restrictive conditions for clock_gettime()Yann Collet2018-01-161-1/+8
|
* [lz4io] Refuse to set file stat for non-regular filesNick Terrell2018-01-051-0/+6
|
* [bench] Use higher resolution timer on POSIXNick Terrell2017-10-171-28/+99
| | | | | | | 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 https://github.com/facebook/zstd/commit/6ab4d5e9041aba962a810ffee191f95897c6208e
* fix #332 : do not modify /dev/null permissionsYann Collet2017-03-161-5/+5
|
* upgraded util.hPrzemyslaw Skibinski2017-02-151-43/+60
|
* use FindFirstFileA and FindNextFileA on WindowsPrzemyslaw Skibinski2016-12-221-3/+3
|
* util.h and platform.h based on zstdPrzemyslaw Skibinski2016-12-211-35/+37
|
* executables use basic types from util.hPrzemyslaw Skibinski2016-12-211-6/+5
|
* fixed gcc warningsPrzemyslaw Skibinski2016-12-201-0/+2
|
* improved platform.hPrzemyslaw Skibinski2016-12-201-41/+0
|
* updated util.hPrzemyslaw Skibinski2016-12-201-58/+70
|
* Fix license and remove references to zstdNick Terrell2016-11-111-1/+1
|
* updated #include in util.hPrzemyslaw Skibinski2016-11-041-0/+2
|
* bench.c based on zstdPrzemyslaw Skibinski2016-11-041-9/+22
|
* added -r optionPrzemyslaw Skibinski2016-11-041-0/+488