Commit Graph

41 Commits (master)

Author SHA1 Message Date
Dave Vasilevsky ebeb225a07 win can return >1 for isatty 6 months ago
Dave Vasilevsky 7ed15497be check for seekability on win 6 months ago
Dave Vasilevsky 446087ed7a use binary mode for win files 6 months ago
Dave Vasilevsky cb961a54b0 detect windows cpus 6 months ago
Dave Vasilevsky 670ddc7c90
Merge pull request #108 from Redfoxymoon/master
midipix support
8 months ago
Dave Vasilevsky 8155addb46
Merge pull request #105 from usefulcat/master
Bug fix for segfault
8 months ago
Ørjan Malde 84e6df8d0c midipix support 1 year ago
Wessel Dankers 6a9443d955
Only use available CPUs
Not all online CPUs may be available for the current process,
especially when CPU affinity is involved. In such cases too many
threads will be created, which will unnecessarily compete for CPU
time.

Use sched_getaffinity() (if available) to determine the correct
number of threads to create.
2 years ago
Scott McCaskill 57d9add97f minor optimization
Don't hold queue mutex while calling malloc/free
2 years ago
Scott McCaskill 9c3aab2f5d Bug fix for segfault
In read_thread(), in the "Do we need this block?" block, it failed
to advance to the next wanted_t when w->end is exactly equal to uend.

In the particular case I looked at, this resulted in read_thread()
erroneously putting two blocks into the queue (pipeline_split(),
read.c:570) instead of one.

This resulted in a subsequent crash in tar_read() at read.c:660,
where gArWanted was null (when clearly the code does not expect it
to be null at that point).

My use case:

I have several hundred large .tar.xz files (created by pixz). Each
archive contains over 200k files. I frequently need to extract a lot
of files from each archive, but not all files, only a specific subset.
So I am making heavy use of the -x option to pixz.
2 years ago
Wolfgang Silbermayr 2f4db11558 Fix cppcheck 2.8 uninitialized variables warnings 2 years ago
Igor Shishkin 631c916068
Add -V flag to print application version
Signed-off-by: Igor Shishkin <me@teran.ru>
2 years ago
Kate 57de570db7
Do not return exit status 2 when given -h
This is rather surprising for pixz to "fail" when giving `--help`/`-h`.
3 years ago
Dave Vasilevsky 1aeb09b868 fix decompressing concatenated small files 4 years ago
Dave Vasilevsky 1e3f509148 update dates 4 years ago
Dave Vasilevsky 29e57ec102 Make building clean on linux, use config.h 4 years ago
Dave Vasilevsky 49acde1e50 Change include on Macs, why was this changed to OS/2? 4 years ago
Dave Vasilevsky f385e7be8a fix linkage 4 years ago
Dave Vasilevsky 4a03d0a1fe fix indent 4 years ago
Matt Turner 8b9a198d86 Avoid unaligned accesses
Architectures like SPARC do not allow unaligned accesses. Avoid them by
memcpy()ing the data to an aligned buffer. On x86 systems where
unaligned loads are fast, the memcpy() will be compiled away and the
same code generated as before.
5 years ago
steini2000 26e4b77b9e
fix decompressing files >4gb on 32bit systems
On 32bit systems, size_t is only 32bit and overflows on file size >4GB.
6 years ago
Philipp Kern 943932c0e8 Fix an off-by-one error that causes memory corruption.
We read up to bsize bytes from gInFile, so allocate as much memory.
7 years ago
Christian Krause 75f27d8850 fixes pkg-config flags 8 years ago
Christian Krause cbeac7cd5f Merge branch 'master' of github.com:vasi/pixz 8 years ago
Christian Krause 7504c11378 adds missing newline in help 8 years ago
Khem Raj 5ed67fc86f endian: Use macro bswap_64 instead of __bswap_64
byteswap.h defines then as public APIs on all libc
on linux including musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 years ago
Christian Krause 936d8068ae option to not build man page
fixes #56
9 years ago
Christian Krause c8f14d0f06 fixes #55 9 years ago
Christian Krause 7fb07efef7 print fseeko error 9 years ago
Christian Krause 5d831e6d1b autoconf checks for htole64 and le64toh
- addresses #52
9 years ago
Christian Krause ebebf82439 include man page in release tarball
- adds man page to `EXTRA_DIST`
- `configure` checks for `a2x` only if the man page does not exist (poor
  mans way of checking if we build from git or release tarball)
- fixes #50
9 years ago
Christian Krause a12755fd16 fixes out-of-tree build manpage generation
Unfortunately, a2x generates the manpage only in the directory where the
source file is located and it does not offer a command line option to
change the output directory. I hope, the `if ! test -f` hack I
implemented works everywhere.
9 years ago
Christian Krause 033fa93a76 update download link in man page 9 years ago
Christian Krause b98e2a74d0 update TODO comment 9 years ago
Christian Krause 8cfd6bb9e7 Merge branch 'master' into cppcheck-test 9 years ago
Christian Krause 56fba37518 better error message on incorrect input path 9 years ago
Christian Krause e5ba30f9c0 creates output file with permissions of input file
- also some more detailed error messages, some duplication, though,
  maybe clean up later
- fixes #15
9 years ago
Christian Krause 35a2f67be9 implements cppcheck test
- fixes #8
9 years ago
Christian Krause d7d1b9ce0f fixes #34
for now this just adds the `-c` option and completely ignores it
9 years ago
Christian Krause bc9a3b8d5a complete autotools build
- `__APPLE__` vs `__OS2__` - does this actually work? Would some please test on apple and give feedback?
- pthread via `AX_PTHREAD`
- version via `PACKAGE_VERSION` in `config.h`
- large file support via `AC_SYS_LARGEFILE`
9 years ago
Christian Krause de6fdf888d move sources to src 9 years ago