Eric Biggers
6c26eb18ea
prog_util: add ASSERT() macro
2018-12-23 12:03:00 -06:00
Eric Biggers
5cc0fc2bbd
gzip, gunzip: add dumb support for reading from stdin
...
No streaming yet, but as a temporary solution just read the full file
contents.
2016-10-23 13:54:53 -07:00
Eric Biggers
3a7658d144
gzip, gunzip: avoid hanging when opening special files
...
This matches the behavior of GNU gzip.
2016-10-23 13:54:53 -07:00
Eric Biggers
f100a42c02
gzip, gunzip: require -f or -c to (de)compress symlink
...
This matches the behavior of GNU gzip.
2016-10-23 13:54:53 -07:00
Eric Biggers
e4029d1e70
gzip, gunzip: warning rather than error when output file already exists
...
This matches the behavior of GNU gzip.
2016-10-23 13:54:53 -07:00
Eric Biggers
2b047b097b
gzip: allow compressing empty files
2016-10-23 13:54:52 -07:00
Eric Biggers
1cc88c6f86
prog_util: remove unused skip_bytes() function
2016-10-16 18:16:38 -07:00
Eric Biggers
e20e275081
prog_util: use QueryPerformanceCounter() on Windows
...
QueryPerformanceCounter() is much more accurate than
GetSystemTimeAsFileTime().
Also avoid converting into a specific time unit until the results need
to be displayed. This is more efficient and avoids losing precision.
2016-10-16 14:20:18 -07:00
Eric Biggers
3992efa340
Update API to avoid naming collisions
2016-08-27 23:11:32 -07:00
Eric Biggers
94145eb14e
programs: use sequential file access hints
2016-08-20 14:22:18 -07:00
Eric Biggers
f2c3a5b4e9
Various reorganization and cleanups
...
* Bring in common headers and program code from xpack project
* Move program code to programs/
* Move library code to lib/
* GNU89 and MSVC2010 compatibility
* Other changes
2016-05-21 15:38:15 -05:00