Lasse Collin
65536214a3
xz: Fix the note about --rsyncable on the man page.
2012-10-03 15:54:24 +03:00
Lasse Collin
3d93b63549
xz: Improve handling of failed realloc in xrealloc.
...
Thanks to Jim Meyering.
2012-09-28 20:11:09 +03:00
Lasse Collin
ab22562066
A few typo fixes to comments and the xz man page.
...
Thanks to Jim Meyering.
2012-08-24 16:27:31 +03:00
Lasse Collin
f3c1ec69d9
xz: Add a warning to --help about alpha and beta versions.
2012-08-13 21:40:09 +03:00
Lasse Collin
cafb523ada
xz: Document --block-list better.
...
Thanks to Jonathan Nieder.
2012-07-04 22:31:58 +03:00
Lasse Collin
0d5fa05466
xz: Fix the version number printed by xz -lvv.
...
The decoder bug was fixed in 5.0.2 instead of 5.0.3.
2012-07-04 19:58:23 +03:00
Lasse Collin
88ccf47205
xz: Add incomplete support for --block-list.
...
It's broken with threads and when also --block-size is used.
2012-07-03 21:16:39 +03:00
Lasse Collin
972179cdcd
xz: Update the man page about the new field in --robot -lvv.
2012-07-01 18:44:33 +03:00
Lasse Collin
2e6754eac2
xz: Update man page date to match the latest update.
2012-06-22 14:34:03 +03:00
Lasse Collin
7769ea051d
xz: Don't show a huge number in -vv when memory limit is disabled.
2012-05-28 15:37:43 +03:00
Lasse Collin
ec92110572
xz: Document the "summary" lines of --robot -lvv.
...
This documents only the columns that are in v5.0.
The new columns added in the master branch aren't
necessarily stable yet.
2012-05-27 22:30:17 +03:00
Lasse Collin
27d24eb0a9
xz: Fix output of verbose --robot --list modes.
...
It printed the filename in "filename (x/y)" format
which it obviously shouldn't do in robot mode.
2012-05-27 21:53:20 +03:00
Lasse Collin
418fe668b3
xz: Show minimum required XZ Utils version in xz -lvv.
...
Man page wasn't updated yet.
2011-11-07 13:07:52 +02:00
Lasse Collin
7081d82c37
xz: Fix a typo in a comment.
...
Thanks to Bela Lubkin.
2011-11-04 17:57:16 +02:00
Lasse Collin
74d2bae4d3
xz: Fix xz on EBCDIC systems.
...
Thanks to Chris Donawa.
2011-11-03 17:07:22 +02:00
Lasse Collin
c029744506
xz: Fix error handling in xz -lvv.
...
It could do an invalid free() and read past the end
of the uninitialized filters array.
2011-05-27 22:25:44 +03:00
Lasse Collin
4161d76349
xz: Translate also the string used to print the program name.
...
French needs a space before a colon, e.g. "xz : foo error".
2011-05-21 15:12:10 +03:00
Lasse Collin
4c6e146df9
Add underscores to attributes (__attribute((__foo__))).
2011-05-17 11:54:38 +03:00
Lasse Collin
7a480e4859
xz: Fix input file position when --single-stream is used.
...
Now the following works as you would expect:
echo foo | xz > foo.xz
echo bar | xz >> foo.xz
( xz -dc --single-stream ; xz -dc --single-stream ) < foo.xz
Note that it doesn't work if the input is not seekable
or if there is Stream Padding between the concatenated
.xz Streams.
2011-05-01 12:24:23 +03:00
Lasse Collin
c29e6630c1
xz: Print the maximum number of worker threads in xz -vv.
2011-05-01 12:15:51 +03:00
Lasse Collin
9a4377be0d
Put the unstable APIs behind #ifdef LZMA_UNSTABLE.
...
This way people hopefully won't complain if these APIs
change and break code that used an older API.
2011-04-12 12:42:37 +03:00
Lasse Collin
3e321a3acd
Remove doubled words from documentation and comments.
...
Spot candidates by running these commands:
git ls-files |xargs perl -0777 -n \
-e 'while (/\b(then?|[iao]n|i[fst]|but|f?or|at|and|[dt]o)\s+\1\b/gims)' \
-e '{$n=($` =~ tr/\n/\n/ + 1); ($v=$&)=~s/\n/\\n/g; print "$ARGV:$n:$v\n"}'
Thanks to Jim Meyering for the original patch.
2011-04-12 11:59:49 +03:00
Lasse Collin
70e750f597
xz: Update the man page about threading.
2011-04-12 11:08:55 +03:00
Lasse Collin
24e0406c0f
xz: Add support for threaded compression.
2011-04-11 22:06:03 +03:00
Lasse Collin
ec7e3dbad7
xz: Move the description of --block-size in --long-help.
2011-04-11 09:57:30 +03:00
Lasse Collin
cd3086ff44
Docs: Document --single-stream and --block-size.
2011-04-11 09:55:35 +03:00
Lasse Collin
ebd54dbd6e
xz/DOS: Add experimental 8.3 filename support.
...
This is incompatible with the 8.3 support patch made by
Juan Manuel Guerrero. I think this one is nicer, but
I need to get feedback from DOS users before saying
that this is the final version of 8.3 filename support.
2011-04-10 13:09:42 +03:00
Lasse Collin
cd4fe97852
xz/DOS: Be more careful with the destination file.
...
Try to avoid overwriting the source file if --force is
used and the generated destination filename refers to
the source file. This can happen with 8.3 filenames where
extra characters are ignored.
If the generated output file refers to a special file
like "con" or "prn", refuse to write to it even if --force
is used.
2011-04-10 12:47:47 +03:00
Lasse Collin
b03f6cd3eb
xz: Avoid unneeded fstat() on DOS-like systems.
2011-04-09 15:24:59 +03:00
Lasse Collin
335fe260a8
xz: Minor internal changes to handling of --threads.
...
Now it always defaults to one thread. Maybe this
will change again if a threading method is added
that doesn't affect memory usage.
2011-04-09 15:11:13 +03:00
Lasse Collin
9edd6ee895
xz: Change size_t to uint32_t in a few places.
2011-04-08 17:53:05 +03:00
Lasse Collin
411013ea45
xz: Fix a typo in a comment.
2011-04-08 17:48:41 +03:00
Lasse Collin
1039bfcfc0
xz: Use posix_fadvise() if it is available.
2011-04-05 15:27:26 +03:00
Lasse Collin
1ef3cf44a8
xz: Call lzma_end(&strm) before exiting if debugging is enabled.
2011-04-05 15:13:29 +03:00
Lasse Collin
923b22483b
xz: Add --block-size=SIZE.
...
This uses LZMA_FULL_FLUSH every SIZE bytes of input.
Man page wasn't updated yet.
2011-03-18 19:10:30 +02:00
Lasse Collin
57597d42ca
xz: Add --single-stream.
...
This can be useful when there is garbage after the
compressed stream (.xz, .lzma, or raw stream).
Man page wasn't updated yet.
2011-03-18 18:19:19 +02:00
Lasse Collin
96f94bc925
xz: Clean up suffix.c.
...
struct suffix_pair isn't needed in compresed_name()
so get rid of it there.
2011-02-06 20:16:14 +02:00
Lasse Collin
8930c7ae3f
xz: Check if the file already has custom suffix when compressing.
...
Now "xz -S .test foo.test" refuses to compress the
file because it already has the suffix .test. The man
page had it documented this way already.
2011-02-06 20:16:14 +02:00
Lasse Collin
03ebd1bbb3
xz: Fix --force on setuid/setgid/sticky and multi-hardlink files.
...
xz didn't compress setuid/setgid/sticky files and files
with multiple hard links even with --force. This bug was
introduced in 23ac2c44c3
.
Thanks to Charles Wilson.
2011-01-26 12:19:08 +02:00
Lasse Collin
f71c4e16e9
Add alloc_size and malloc attributes to a few functions.
...
Thanks to Cristian Rodríguez for the original patch.
2011-01-18 21:23:50 +02:00
Lasse Collin
e6baedddcf
DOS-like: Treat \ and : as directory separators in addition to /.
...
Juan Manuel Guerrero had fixed this in his XZ Utils port
to DOS/DJGPP. The bug affects also Windows and OS/2.
2010-12-12 14:50:04 +02:00
Lasse Collin
68b83f252d
xz: Make sure that message_strm() can never return NULL.
2010-10-21 23:16:11 +03:00
Lasse Collin
0076e03641
Clean up a few FIXMEs and TODOs.
...
lzma_chunk_size() was commented out because it is
currently useless.
2010-10-19 11:44:37 +03:00
Lasse Collin
f0fa880d24
xz: Avoid raise() also on OpenVMS.
...
This is similar to DOS/DJGPP that killing the program
with a signal will print a backtrace or a similar message.
2010-10-12 15:13:30 +03:00
Lasse Collin
ac462b1c47
xz: Avoid SA_RESTART for portability reasons.
...
SA_RESTART is not as portable as I had hoped. It's missing
at least from OpenVMS, QNX, and DJGPP). Luckily we can do
fine without SA_RESTART.
2010-10-11 21:26:19 +03:00
Lasse Collin
d52b411716
xz: Use "%"PRIu32 instead of "%d" in a format string.
2010-10-10 17:58:58 +03:00
Lasse Collin
ef364d3abc
OS/2 and DOS: Be less verbose on signals.
...
Calling raise() to kill xz when user has pressed C-c
is a bit verbose on OS/2 and DOS/DJGPP. Instead of
calling raise(), set only the exit status to 1.
2010-10-09 21:51:03 +03:00
Lasse Collin
b1c7368f95
Build: Add options to disable individual command line tools.
2010-10-08 15:25:45 +03:00
Lasse Collin
f9907503f8
Build: Remove the static/dynamic tricks.
...
Most distros want xz linked against shared liblzma, so
it doesn't help much to require --enable-dynamic for that.
Those who want to avoid PIC on x86-32 to get better
performance, can still do it e.g. by using --disable-shared
to compile xz and then another pass to compile shared liblzma.
Part of these static/dynamic tricks were needed for Windows
in the past. Nowadays we rely on GCC and binutils to do the
right thing with auto-import. If the Autotooled build system
needs to support some other toolchain on Windows in the future,
this may need some rethinking.
2010-10-05 14:13:16 +03:00
Lasse Collin
80b5675fa6
A few more languages files to the xz man page.
...
Thanks to Jonathan Nieder.
2010-10-04 19:43:01 +03:00