Commit Graph

128 Commits

Author SHA1 Message Date
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
Przemyslaw Skibinski
64cbc4e1dc improved MinGW support 2016-12-21 10:22:40 +01:00
Przemyslaw Skibinski
090cb887a3 improved formatting (2) 2016-12-20 22:21:03 +01:00
Przemyslaw Skibinski
5f0cc8e2d0 fixed gcc warnings (2) 2016-12-20 20:52:18 +01:00
Przemyslaw Skibinski
6adf05d1ed improved platform.h 2016-12-20 18:56:09 +01:00
Przemyslaw Skibinski
2cfef13952 executables use platform.h 2016-12-20 18:05:43 +01:00
Przemyslaw Skibinski
1289038240 15-bit LZ4HC_HASH_LOG 2016-12-07 14:31:46 +01:00
Przemyslaw Skibinski
1833be1cf0 fixed gcc warnings 2016-12-07 12:59:05 +01:00
Przemyslaw Skibinski
de0cf5de64 fixed LZ4IO_compressMultipleFilenames 2016-11-22 11:20:02 +01:00
Yann Collet
8b233b228d added a few dates 2016-11-21 15:51:39 -08:00
Yann Collet
a38cbf9f62 fixed : shadow global variable on gcc 4.4 (minor) 2016-11-18 18:00:54 -08:00
Yann Collet
1abecbc33c fix 32-bits mode.
Large File support for Mac OS-X in 32-bits mode
Fixed potential undefined behavior
Changed makefile for 32-bits mode
2016-11-17 13:02:06 -08:00
Yann Collet
929badd611 fixed sign conversion warning 2016-11-15 14:57:12 -08:00
Yann Collet
d2be69b144 fixed minor coverity warnings 2016-11-15 14:46:57 -08:00
Yann Collet
f094f53144 silence a minor msan warning 2016-11-14 14:38:46 -08:00
Nick Terrell
5b37837e6e Fix license and remove references to zstd 2016-11-10 17:27:56 -08:00
Przemyslaw Skibinski
767a23160b changed FUZZER_TIME 2016-11-10 09:04:40 +01:00
Yann Collet
924f00c86c fix empty body 2016-11-09 18:05:03 -08:00
Yann Collet
f34808e4ae fixed some static analyzer warning 2016-11-09 17:39:53 -08:00
Yann Collet
46f74d79b7 fixed sparse on stdout 2016-11-09 16:57:33 -08:00
Yann Collet
fe48cef50e fixed multiples files on lz4cat (#184, by @libor-m) 2016-11-09 16:37:16 -08:00
Yann Collet
1b95d60c66 fixed synthetic benchmark mode
slightly optimized test mode
2016-11-09 15:04:55 -08:00
Yann Collet
00c6370ad2 Fix #243 : detect and report fread() errors, by @iyokan 2016-11-07 12:34:10 -08:00
Przemyslaw Skibinski
ef54f9f9dd added --rm option 2016-11-07 14:50:58 +01:00
Przemyslaw Skibinski
98be008479 Copy owner, file permissions and modification time 2016-11-07 12:41:14 +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
84cedb4632 updated links to LZ4 repository 2016-11-03 15:12:57 +01:00
Yann Collet
59adfd82d6 fix for ARM platform 2016-11-01 21:04:56 -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
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
inikep
829ae75871 remove EnablePREfast=true for Win32 2016-09-03 01:35:00 +02:00
inikep
c1864f69e8 fix mingw64 compilation warnings 2016-09-02 21:50:57 +02: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
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
7f3d82def8 Merge pull request #114 from lpsantil/djgpp
Djgpp
2015-05-28 03:04:17 +02: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