Lasse Collin [Sat, 27 Jun 2009 07:02:24 +0000 (10:02 +0300)]
Silence a compiler warning on DOS-like systems.
Lasse Collin [Sat, 27 Jun 2009 06:35:15 +0000 (09:35 +0300)]
Updated the filenames in POTFILES.in too.
Lasse Collin [Fri, 26 Jun 2009 21:43:06 +0000 (00:43 +0300)]
Hopefully improved portability of the assembler code in
Autotools based builds on Windows.
Lasse Collin [Fri, 26 Jun 2009 18:17:29 +0000 (21:17 +0300)]
Updated THANKS (most of today's commits are based on
Charles Wilson's patches).
Lasse Collin [Fri, 26 Jun 2009 18:00:35 +0000 (21:00 +0300)]
Updated comments to match renamed files.
Lasse Collin [Fri, 26 Jun 2009 17:49:54 +0000 (20:49 +0300)]
Rename process.[hc] to coder.[hc] and io.[hc] to file_io.[hc]
to avoid problems on systems with system headers with those
names.
Lasse Collin [Fri, 26 Jun 2009 17:43:36 +0000 (20:43 +0300)]
Rename process_file() to coder_run().
Lasse Collin [Fri, 26 Jun 2009 17:36:45 +0000 (20:36 +0300)]
Ugly hack to make it possible to use the thousand separator
format character with snprintf() on POSIX systems but not
on non-POSIX systems and still keep xgettext working.
Lasse Collin [Fri, 26 Jun 2009 12:40:40 +0000 (15:40 +0300)]
Added missing source files to windows/Makefile.
Lasse Collin [Fri, 26 Jun 2009 12:37:53 +0000 (15:37 +0300)]
Basic support for building with Cygwin and MinGW using
the Autotools based build system. It's not good yet, more
fixes will follow.
Lasse Collin [Fri, 26 Jun 2009 11:47:31 +0000 (14:47 +0300)]
Fix @variables@ to $(variables) in Makefile.am files.
Fix the ordering of libgnu.a and LTLIBINTL on the linker
command line and added missing LTLIBINTL to tests/Makefile.am.
Lasse Collin [Fri, 26 Jun 2009 11:20:02 +0000 (14:20 +0300)]
Allow to explicitly specify autotool versions in autogen.sh.
Lasse Collin [Fri, 26 Jun 2009 11:18:32 +0000 (14:18 +0300)]
Add version.sh to EXTRA_DIST.
Lasse Collin [Wed, 24 Jun 2009 17:14:10 +0000 (20:14 +0300)]
Support HW_PHYSMEM64
Lasse Collin [Wed, 24 Jun 2009 10:01:59 +0000 (13:01 +0300)]
Cast a char argument to isspace() to unsigned char.
Lasse Collin [Fri, 5 Jun 2009 10:46:26 +0000 (13:46 +0300)]
A few more spelling fixes. Released the .xz spec 1.0.3.
Lasse Collin [Thu, 4 Jun 2009 20:42:12 +0000 (23:42 +0300)]
Added xzdec man page.
Lasse Collin [Thu, 4 Jun 2009 20:26:47 +0000 (23:26 +0300)]
Harmonized xzdec --memory with xz --memory and made
minor cleanups.
Lasse Collin [Thu, 4 Jun 2009 19:59:55 +0000 (22:59 +0300)]
Fix purporse -> purpose. Thanks to Andrew Dudman.
Released .xz spec 1.0.2 due to this fix too.
Lasse Collin [Mon, 1 Jun 2009 11:53:57 +0000 (14:53 +0300)]
The .xz file format version 1.0.1
Lasse Collin [Tue, 26 May 2009 11:48:48 +0000 (14:48 +0300)]
Make the raw value of the Check field available to applications
via lzma_block structure.
This changes ABI but not doesn't break API.
Lasse Collin [Sat, 23 May 2009 13:57:21 +0000 (16:57 +0300)]
Remove undocumented alternative option names --bcj, --ppc,
and --itanium.
Lasse Collin [Sat, 23 May 2009 12:12:23 +0000 (15:12 +0300)]
Add support for specifying the BCJ filter start offset
in the xz command line tool.
Lasse Collin [Sat, 23 May 2009 11:51:09 +0000 (14:51 +0300)]
Updated THANKS.
Lasse Collin [Fri, 22 May 2009 13:40:50 +0000 (16:40 +0300)]
Added support for --quiet and --no-warn to xzdec.
Cleaned up the --help message a little.
Lasse Collin [Fri, 22 May 2009 12:11:52 +0000 (15:11 +0300)]
Use the 40 % of RAM memory usage limit in xzdec too.
Update the memory usage info text in --help to match
the text in xz --long-help.
Lasse Collin [Fri, 22 May 2009 11:43:00 +0000 (14:43 +0300)]
Add --no-warn.
Lasse Collin [Fri, 22 May 2009 11:27:40 +0000 (14:27 +0300)]
Fix a comment.
Lasse Collin [Fri, 22 May 2009 11:21:20 +0000 (14:21 +0300)]
Remove the --info option, which was an alias for --list.
Lasse Collin [Fri, 22 May 2009 09:27:43 +0000 (12:27 +0300)]
If xz is run as lzma, unlzma, or lzcat, simply imply
--format=lzma. This means that xz emulating lzma
doesn't decompress .xz files, while before this
commit it did. The new way is slightly simpler in
code and especially in upcoming documentation.
Lasse Collin [Fri, 22 May 2009 08:29:50 +0000 (11:29 +0300)]
Make the default memory usage limit 40 % of RAM for both
compressing and decompressing. This should be OK now that
xz automatically scales down the compression settings if
they would exceed the memory usage limit (earlier, the limit
for compression was increased to 90 % because low limit broke
scripts that used "xz -9" on systems with low RAM).
Support spcifying the memory usage limit as a percentage
of RAM (e.g. --memory=50%).
Support --threads=0 to reset the thread limit to the default
value (number of available CPU cores). Use UINT32_MAX instead
of SIZE_MAX as the maximum in args.c. hardware.c was already
expecting uint32_t value.
Cleaned up the output of --help and --long-help.
Lasse Collin [Thu, 21 May 2009 14:22:01 +0000 (17:22 +0300)]
Support special value "max" where xz and xzdec accept an integer.
Don't round the memory usage limit in xzdec --help to avoid
an integer overflow and to not give wrong impression that
the limit is high enough when it may not actually be.
ABCD [Wed, 20 May 2009 21:31:18 +0000 (17:31 -0400)]
Install lzdiff, lzgrep, and lzmore as symlinks
This adds lzdiff, lzgrep, and lzmore to the list of symlinks to install.
It also installs symlinks for the manual pages and removes the new
symlinks on uninstall.
Lasse Collin [Sat, 2 May 2009 13:10:14 +0000 (16:10 +0300)]
Use a GCC-specific #pragma instead of GCC-specific
-Wno-uninitialized to silence a bogus warning.
Lasse Collin [Sat, 2 May 2009 11:46:50 +0000 (14:46 +0300)]
Removed --disable-encoder and --disable-decoder. Use the values
given to --enable-encoders and --enable-decoders to determine
if any encoder or decoder support is wanted.
Lasse Collin [Fri, 1 May 2009 08:28:52 +0000 (11:28 +0300)]
Remove docs that are too outdated to be updated
(rewrite will be better).
Lasse Collin [Fri, 1 May 2009 08:21:46 +0000 (11:21 +0300)]
Added documentation about the legacy .lzma file format.
Lasse Collin [Fri, 1 May 2009 08:20:23 +0000 (11:20 +0300)]
Renamed the file format specification to xz-file-format.txt
which is the filename used on the WWW.
Lasse Collin [Tue, 28 Apr 2009 20:08:32 +0000 (23:08 +0300)]
Fixed a crash in liblzma.
liblzma tries to avoid useless free()/malloc() pairs in
initialization when multiple files are handled using the
same lzma_stream. This didn't work with filter chains
due to comparison of wrong pointers in lzma_next_coder_init(),
making liblzma think that no memory reallocation is needed
even when it actually is.
Easy way to trigger this bug is to decompress two files with
a single xz command. The first file should have e.g. x86+LZMA2
as the filter chain, and the second file just LZMA2.
Lasse Collin [Wed, 15 Apr 2009 11:13:38 +0000 (14:13 +0300)]
Fix uint32_t -> size_t in ARM and ARM-Thumb filters.
On 64-bit system it would have gone into infinite
loop if a single input buffer was over 4 GiB (unlikely).
Lasse Collin [Tue, 14 Apr 2009 08:48:46 +0000 (11:48 +0300)]
Minor fixes to test files' README.
Lasse Collin [Mon, 13 Apr 2009 13:36:41 +0000 (16:36 +0300)]
Updated history.txt.
Lasse Collin [Mon, 13 Apr 2009 11:49:48 +0000 (14:49 +0300)]
Quick & dirty update to support xz in diff/grep/more scripts.
Lasse Collin [Mon, 13 Apr 2009 08:27:40 +0000 (11:27 +0300)]
Put the interesting parts of XZ Utils into the public domain.
Some minor documentation cleanups were made at the same time.
Lasse Collin [Fri, 10 Apr 2009 08:17:02 +0000 (11:17 +0300)]
Fix off-by-one in LZ decoder.
Fortunately, this bug had no security risk other than accepting
some corrupt files as valid.
Pavel Roskin [Tue, 31 Mar 2009 16:15:01 +0000 (12:15 -0400)]
Fix minor typos in README
Lasse Collin [Tue, 31 Mar 2009 18:52:51 +0000 (21:52 +0300)]
Add a note and work-around instructions to README about
problems detecting a C99 compiler when some standard
headers are missing.
Lasse Collin [Wed, 18 Mar 2009 14:54:38 +0000 (16:54 +0200)]
Updated THANKS.
Lasse Collin [Wed, 18 Mar 2009 14:51:41 +0000 (16:51 +0200)]
Fix wrong macro names in lc_cpucores.m4 and cpucores.h.
Thanks to Bert Wesarg.
Lasse Collin [Sun, 1 Mar 2009 07:03:08 +0000 (09:03 +0200)]
Test for Linux-specific sysinfo() only on Linux systems.
Some other systems have sysinfo() with different semantics.
Lasse Collin [Sun, 1 Mar 2009 07:00:06 +0000 (09:00 +0200)]
Added AC_CONFIG_MACRO_DIR to configure.ac.
Lasse Collin [Sun, 1 Mar 2009 06:58:41 +0000 (08:58 +0200)]
Fix the Autoconf test for getopt_long replacement.
It was broken by
e114502b2bc371e4a45449832cb69be036360722.
Lasse Collin [Sun, 22 Feb 2009 17:07:54 +0000 (19:07 +0200)]
Add a rough explanation of --extreme to output of --help.
Lasse Collin [Sun, 22 Feb 2009 16:52:49 +0000 (18:52 +0200)]
Fixes to progress message handling in xz:
- Don't use Windows-specific code on Windows. The old code
required at least Windows 2000. Now it should work on
Windows 98 and later, and maybe on Windows 95 too.
- Use less precision when showing estimated remaining time.
- Fix some small design issues.
Lasse Collin [Wed, 18 Feb 2009 11:00:10 +0000 (13:00 +0200)]
Added files missing from the previous commit.
Lasse Collin [Tue, 17 Feb 2009 08:43:00 +0000 (10:43 +0200)]
Added lzma_easy_buffer_encode(). Splitted easy.c into small
pieces to avoid unneeded dependencies making statically
linked applications bigger than needed.
Lasse Collin [Sun, 15 Feb 2009 13:48:45 +0000 (15:48 +0200)]
Make physmem.h work on old Windows versions.
Thanks to Hongbo Ni for the original patch.
Lasse Collin [Sat, 14 Feb 2009 18:44:52 +0000 (20:44 +0200)]
Fix microsecond vs. nanosecond confusion in my_time().
Lasse Collin [Fri, 13 Feb 2009 22:45:29 +0000 (00:45 +0200)]
Cleanups to the code that detects the amount of RAM and
the number of CPU cores. Added support for using sysinfo()
on Linux systems whose libc lacks appropriate sysconf()
support (at least dietlibc). The Autoconf macros were
split into separate files, and CPU core count detection
was moved from hardware.c to cpucores.h. The core count
isn't used for anything real for now, so a problematic
part in process.c was commented out.
Lasse Collin [Fri, 13 Feb 2009 16:23:50 +0000 (18:23 +0200)]
Initial port to DOS using DJGPP.
Lasse Collin [Fri, 13 Feb 2009 16:02:05 +0000 (18:02 +0200)]
Windows port: Take advantage of the version number macros.
Now the version number is not duplicated in the
Windows-specific files anymore.
Lasse Collin [Fri, 13 Feb 2009 16:00:03 +0000 (18:00 +0200)]
Changed how the version number is specified in various places.
Now configure.ac will get the version number directly from
src/liblzma/api/lzma/version.h. The intent is to reduce the
number of places where the version number is duplicated. In
future, support for displaying Git commit ID may be added too.
Lasse Collin [Fri, 13 Feb 2009 15:30:30 +0000 (17:30 +0200)]
Fix handling of integrity check type in the xz command line tool.
Lasse Collin [Fri, 13 Feb 2009 15:29:02 +0000 (17:29 +0200)]
Improve support for DOS-like systems.
Here DOS-like means DOS, Windows, and OS/2.
Lasse Collin [Wed, 11 Feb 2009 18:02:32 +0000 (20:02 +0200)]
Remove dead directories from .gitignore.
Jim Meyering [Wed, 11 Feb 2009 13:45:14 +0000 (14:45 +0100)]
.gitignore vs. Makefiles
How about this for those of us who do srcdir builds?
Lasse Collin [Tue, 10 Feb 2009 19:48:35 +0000 (21:48 +0200)]
Removed Makefile from .gitignore since not all Makefiles
in the repository are generated by Autotools. People
should do test builds in a separate build directory anyway.
Lasse Collin [Tue, 10 Feb 2009 19:48:05 +0000 (21:48 +0200)]
Added resource files for the Windows build.
Lasse Collin [Mon, 9 Feb 2009 12:54:31 +0000 (14:54 +0200)]
Let the user specify custom CFLAGS on the make command
line. Previously custom CFLAGS worked only when they were
passed to configure.
Lasse Collin [Sun, 8 Feb 2009 19:35:11 +0000 (21:35 +0200)]
Fix aliasing issue in physmem.h.
Lasse Collin [Sun, 8 Feb 2009 16:24:50 +0000 (18:24 +0200)]
Add a separate internal function to initialize the CRC32
table, which is used also by LZ encoder. This was needed
because calling lzma_crc32() and ignoring the result is
a no-op due to lzma_attr_pure.
Lasse Collin [Sun, 8 Feb 2009 16:17:05 +0000 (18:17 +0200)]
Make "xz --force" to write to terminal as the error
message suggests.
Lasse Collin [Sun, 8 Feb 2009 08:37:50 +0000 (10:37 +0200)]
Support both slash and backslash as path component
separator on Windows when parsing argv[0].
Lasse Collin [Sat, 7 Feb 2009 21:18:13 +0000 (23:18 +0200)]
Omit the wrong and (even if corrected) nowadays useless rm
from autogen.sh.
Lasse Collin [Sat, 7 Feb 2009 19:41:52 +0000 (21:41 +0200)]
Updated THANKS.
Lasse Collin [Sat, 7 Feb 2009 19:17:07 +0000 (21:17 +0200)]
Make it easy to choose if command line tools should be
linked statically or dynamically against liblzma. The
default is still to use static liblzma, but it can now
be changed by passing --enable-dynamic to configure.
Thanks to Mike Frysinger for the original patch.
Fixed a few minor bugs in configure.ac.
Mike Frysinger [Sat, 7 Feb 2009 04:38:39 +0000 (23:38 -0500)]
add gitignore files
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Lasse Collin [Sat, 7 Feb 2009 15:07:52 +0000 (17:07 +0200)]
Assume 32 MiB of RAM on unsupported operating systems like
the comment in hardware.c already said.
Lasse Collin [Sat, 7 Feb 2009 14:26:58 +0000 (16:26 +0200)]
MinGW support: Don't build fastpos_tablegen.c as part of
liblzma. Build both static and dynamic liblzma, and also
static and dynamic versions of the command line tools.
Lasse Collin [Sat, 7 Feb 2009 13:55:47 +0000 (15:55 +0200)]
Support LZMA_API_STATIC in assembler files to
avoid __declspec(dllexport) equivalent.
Lasse Collin [Sat, 7 Feb 2009 09:11:50 +0000 (11:11 +0200)]
Introduced LZMA_API_STATIC macro, which the applications
need to #define when linking against static liblzma on
platforms like Windows. Most developers don't need to
care about LZMA_API_STATIC at all.
Lasse Collin [Fri, 6 Feb 2009 14:55:45 +0000 (16:55 +0200)]
Another grammar fix
Lasse Collin [Fri, 6 Feb 2009 10:30:23 +0000 (12:30 +0200)]
Grammar fix in README.
Lasse Collin [Fri, 6 Feb 2009 08:06:32 +0000 (10:06 +0200)]
Some MSYS installations (e.g. MsysGit) don't include
install.exe, so don't rely on it.
Lasse Collin [Fri, 6 Feb 2009 07:13:15 +0000 (09:13 +0200)]
Recreated the BCJ test files for x86 and SPARC. The old files
were linked with crt*.o, which are copyrighted, and thus the
old test files were not in the public domain as a whole. They
are freely distributable though, but it is better to be careful
and avoid including any copyrighted pieces in the test files.
The new files are just compiled and assembled object files,
and thus don't contain any copyrighted code.
Lasse Collin [Thu, 5 Feb 2009 19:21:27 +0000 (21:21 +0200)]
Add the "windows" directory to EXTRA_DIST.
Lasse Collin [Thu, 5 Feb 2009 07:17:51 +0000 (09:17 +0200)]
Added initial experimental makefile for use with MinGW.
Lasse Collin [Thu, 5 Feb 2009 07:12:57 +0000 (09:12 +0200)]
Various code cleanups the the xz command line tool.
It now builds with MinGW.
Lasse Collin [Tue, 3 Feb 2009 10:15:17 +0000 (12:15 +0200)]
Another utime() fix.
Lasse Collin [Tue, 3 Feb 2009 08:41:11 +0000 (10:41 +0200)]
Fix wrong filename argument for utime() and utimes().
This doesn't affect most systems, since most systems
have better functions available.
Lasse Collin [Mon, 2 Feb 2009 19:19:01 +0000 (21:19 +0200)]
Updated the x86 assembler code:
- Use call/ret pair to get instruction pointer for PIC.
- Use PIC only if PIC or __PIC__ is #defined.
- The code should work on MinGW and Darwin in addition
to GNU/Linux and Solaris.
Lasse Collin [Mon, 2 Feb 2009 18:14:03 +0000 (20:14 +0200)]
Modify LZMA_API macro so that it works on Windows with
other compilers than MinGW. This may hurt readability
of the API headers slightly, but I don't know any
better way to do this.
Lasse Collin [Sun, 1 Feb 2009 20:40:35 +0000 (22:40 +0200)]
Fix a bug in lzma_block_buffer_decode(), although this
function should be rewritten anyway.
Lasse Collin [Sun, 1 Feb 2009 20:39:07 +0000 (22:39 +0200)]
Added initial version of raw buffer-to-buffer coding
functions, and cleaned up filter.h API header a little.
May be very buggy, not tested yet.
Lasse Collin [Sat, 31 Jan 2009 22:11:20 +0000 (00:11 +0200)]
Fix missing newlines in xzdec.c.
Lasse Collin [Sat, 31 Jan 2009 22:10:07 +0000 (00:10 +0200)]
Use __cdecl also for function pointers in liblzma API when
on Windows.
Lasse Collin [Sat, 31 Jan 2009 09:01:48 +0000 (11:01 +0200)]
Add LZMA_API to liblzma API headers. It's useful at least
on Windows. sysdefs.h no longer #includes lzma.h, so lzma.h
has to be #included separately where needed.
Lasse Collin [Sat, 31 Jan 2009 08:13:09 +0000 (10:13 +0200)]
Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows.
Lasse Collin [Sat, 31 Jan 2009 08:02:52 +0000 (10:02 +0200)]
Fix two lines in lzma.h on which the # wasn't at the
beginning of the line.
Lasse Collin [Sat, 31 Jan 2009 07:55:05 +0000 (09:55 +0200)]
Add support for using liblzma headers in MSVC, which has no
stdint.h or inttypes.h.