diff options
Diffstat (limited to '')
-rw-r--r-- | doc/lzlib.info | 51 | ||||
-rw-r--r-- | doc/lzlib.texi | 37 | ||||
-rw-r--r-- | doc/minilzip.1 | 22 |
3 files changed, 59 insertions, 51 deletions
diff --git a/doc/lzlib.info b/doc/lzlib.info index 5c434d0..a9f47b3 100644 --- a/doc/lzlib.info +++ b/doc/lzlib.info @@ -11,7 +11,7 @@ File: lzlib.info, Node: Top, Next: Introduction, Up: (dir) Lzlib Manual ************ -This manual is for Lzlib (version 1.7, 8 July 2015). +This manual is for Lzlib (version 1.8, 17 May 2016). * Menu: @@ -29,7 +29,7 @@ This manual is for Lzlib (version 1.7, 8 July 2015). * Concept index:: Index of concepts - Copyright (C) 2009-2015 Antonio Diaz Diaz. + Copyright (C) 2009-2016 Antonio Diaz Diaz. This manual is free documentation: you have unlimited permission to copy, distribute and modify it. @@ -53,7 +53,7 @@ availability: recovery means. The lziprecover program can repair bit-flip errors (one of the most common forms of data corruption) in lzip files, and provides data recovery capabilities, including error-checked - merging of damaged copies of a file. *note Data safety: + merging of damaged copies of a file. *Note Data safety: (lziprecover)Data safety. * The lzip format is as simple as possible (but not simpler). The @@ -236,7 +236,7 @@ calling 'LZ_compress_errno' before using it. Valid values range from 4 KiB to 512 MiB. Note that dictionary sizes are quantized. If the specified size does not match one of the valid sizes, it will be rounded upwards by adding up to - (DICTIONARY_SIZE / 16) to it. + (DICTIONARY_SIZE / 8) to it. MATCH_LEN_LIMIT sets the match length limit in bytes. Valid values range from 5 to 273. Larger values usually give better compression @@ -270,7 +270,7 @@ calling 'LZ_compress_errno' before using it. -- Function: int LZ_compress_restart_member ( struct LZ_Encoder * const ENCODER, const unsigned long long MEMBER_SIZE ) - Use this function to start a new member, in a multi-member data + Use this function to start a new member in a multimember data stream. Call this function only after 'LZ_compress_member_finished' indicates that the current member has been fully read (with the 'LZ_compress_read' function). @@ -325,8 +325,8 @@ calling 'LZ_compress_errno' before using it. -- Function: int LZ_compress_member_finished ( struct LZ_Encoder * const ENCODER ) - Returns 1 if the current member, in a multi-member data stream, - has been fully read and 'LZ_compress_restart_member' can be safely + Returns 1 if the current member, in a multimember data stream, has + been fully read and 'LZ_compress_restart_member' can be safely called. Otherwise it returns 0. -- Function: unsigned long long LZ_compress_data_position ( struct @@ -492,7 +492,7 @@ this return value only tells you that an error has occurred. To find out what kind of error it was, you need to verify the error code by calling 'LZ_(de)compress_errno'. - Library functions do not change the value returned by + Library functions don't change the value returned by 'LZ_(de)compress_errno' when they succeed; thus, the value returned by 'LZ_(de)compress_errno' after a successful call is not necessarily LZ_ok, and you should not use 'LZ_(de)compress_errno' to determine @@ -520,8 +520,9 @@ whether a call failed. If the call failed, then you can examine finished. -- Constant: enum LZ_Errno LZ_header_error - Reading of member header failed. If this happens at the end of the - data stream it may indicate trailing garbage. + An invalid member header (one with the wrong magic bytes) was + read. If this happens at the end of the data stream it may + indicate trailing data. -- Constant: enum LZ_Errno LZ_unexpected_eof The end of the data stream was reached in the middle of a member. @@ -579,12 +580,12 @@ with no additional information before, between, or after them. Each member has the following structure: +--+--+--+--+----+----+=============+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -| ID string | VN | DS | Lzma stream | CRC32 | Data size | Member size | +| ID string | VN | DS | LZMA stream | CRC32 | Data size | Member size | +--+--+--+--+----+----+=============+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ All multibyte values are stored in little endian order. -'ID string' +'ID string (the "magic" bytes)' A four byte string, identifying the lzip format, with the value "LZIP" (0x4C, 0x5A, 0x49, 0x50). @@ -602,8 +603,8 @@ with no additional information before, between, or after them. Example: 0xD3 = 2^19 - 6 * 2^15 = 512 KiB - 6 * 32 KiB = 320 KiB Valid values for dictionary size range from 4 KiB to 512 MiB. -'Lzma stream' - The lzma stream, finished by an end of stream marker. Uses default +'LZMA stream' + The LZMA stream, finished by an end of stream marker. Uses default values for encoder properties. *Note Stream format: (lzip)Stream format, for a complete description. Lzip only uses the LZMA marker '2' ("End Of Stream" marker). Lzlib @@ -619,7 +620,7 @@ with no additional information before, between, or after them. Total size of the member, including header and trailer. This field acts as a distributed index, allows the verification of stream integrity, and facilitates safe recovery of undamaged members from - multi-member files. + multimember files. @@ -688,7 +689,7 @@ Example 4: Decompression using LZ_decompress_write_size. 7) LZ_decompress_close -Example 5: Multi-member compression (MEMBER_SIZE < total output). +Example 5: Multimember compression (MEMBER_SIZE < total output). 1) LZ_compress_open 2) go to step 5 if LZ_compress_write_size returns 0 @@ -702,7 +703,7 @@ Example 5: Multi-member compression (MEMBER_SIZE < total output). 10) LZ_compress_close -Example 6: Multi-member compression (user-restarted members). +Example 6: Multimember compression (user-restarted members). 1) LZ_compress_open 2) LZ_compress_write @@ -718,7 +719,7 @@ Example 6: Multi-member compression (user-restarted members). 12) LZ_compress_close -Example 7: Decompression with automatic removal of leading garbage. +Example 7: Decompression with automatic removal of leading data. 1) LZ_decompress_open 2) LZ_decompress_sync_to_member @@ -790,13 +791,13 @@ Node: Library version5918 Node: Buffering6563 Node: Parameter limits7783 Node: Compression functions8742 -Node: Decompression functions15286 -Node: Error codes21454 -Node: Error messages23393 -Node: Data format23972 -Node: Examples26518 -Node: Problems30604 -Node: Concept index31176 +Node: Decompression functions15282 +Node: Error codes21450 +Node: Error messages23425 +Node: Data format24004 +Node: Examples26569 +Node: Problems30650 +Node: Concept index31222 End Tag Table diff --git a/doc/lzlib.texi b/doc/lzlib.texi index 4c0f370..bc3b9fe 100644 --- a/doc/lzlib.texi +++ b/doc/lzlib.texi @@ -6,8 +6,8 @@ @finalout @c %**end of header -@set UPDATED 8 July 2015 -@set VERSION 1.7 +@set UPDATED 17 May 2016 +@set VERSION 1.8 @dircategory Data Compression @direntry @@ -50,7 +50,7 @@ This manual is for Lzlib (version @value{VERSION}, @value{UPDATED}). @end menu @sp 1 -Copyright @copyright{} 2009-2015 Antonio Diaz Diaz. +Copyright @copyright{} 2009-2016 Antonio Diaz Diaz. This manual is free documentation: you have unlimited permission to copy, distribute and modify it. @@ -78,7 +78,7 @@ program can repair bit-flip errors (one of the most common forms of data corruption) in lzip files, and provides data recovery capabilities, including error-checked merging of damaged copies of a file. @ifnothtml -@ref{Data safety,,,lziprecover}. +@xref{Data safety,,,lziprecover}. @end ifnothtml @item @@ -269,7 +269,7 @@ should be freed with @samp{LZ_compress_close} to avoid memory leaks. @var{dictionary_size} sets the dictionary size to be used, in bytes. Valid values range from 4 KiB to 512 MiB. Note that dictionary sizes are quantized. If the specified size does not match one of the valid sizes, -it will be rounded upwards by adding up to (@var{dictionary_size} / 16) +it will be rounded upwards by adding up to (@var{dictionary_size} / 8) to it. @var{match_len_limit} sets the match length limit in bytes. Valid values @@ -307,7 +307,7 @@ After all the produced compressed data have been read with @deftypefun int LZ_compress_restart_member ( struct LZ_Encoder * const @var{encoder}, const unsigned long long @var{member_size} ) -Use this function to start a new member, in a multi-member data stream. +Use this function to start a new member in a multimember data stream. Call this function only after @samp{LZ_compress_member_finished} indicates that the current member has been fully read (with the @samp{LZ_compress_read} function). @@ -370,7 +370,7 @@ can be safely called. Otherwise it returns 0. @deftypefun int LZ_compress_member_finished ( struct LZ_Encoder * const @var{encoder} ) -Returns 1 if the current member, in a multi-member data stream, has been +Returns 1 if the current member, in a multimember data stream, has been fully read and @samp{LZ_compress_restart_member} can be safely called. Otherwise it returns 0. @end deftypefun @@ -560,7 +560,7 @@ this return value only tells you that an error has occurred. To find out what kind of error it was, you need to verify the error code by calling @samp{LZ_(de)compress_errno}. -Library functions do not change the value returned by +Library functions don't change the value returned by @samp{LZ_(de)compress_errno} when they succeed; thus, the value returned by @samp{LZ_(de)compress_errno} after a successful call is not necessarily LZ_ok, and you should not use @samp{LZ_(de)compress_errno} @@ -592,8 +592,9 @@ finished. @end deftypevr @deftypevr Constant {enum LZ_Errno} LZ_header_error -Reading of member header failed. If this happens at the end of the data -stream it may indicate trailing garbage. +An invalid member header (one with the wrong magic bytes) was read. If +this happens at the end of the data stream it may indicate trailing +data. @end deftypevr @deftypevr Constant {enum LZ_Errno} LZ_unexpected_eof @@ -657,14 +658,14 @@ with no additional information before, between, or after them. Each member has the following structure: @verbatim +--+--+--+--+----+----+=============+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -| ID string | VN | DS | Lzma stream | CRC32 | Data size | Member size | +| ID string | VN | DS | LZMA stream | CRC32 | Data size | Member size | +--+--+--+--+----+----+=============+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ @end verbatim All multibyte values are stored in little endian order. @table @samp -@item ID string +@item ID string (the "magic" bytes) A four byte string, identifying the lzip format, with the value "LZIP" (0x4C, 0x5A, 0x49, 0x50). @@ -681,8 +682,8 @@ from the base size to obtain the dictionary size.@* Example: 0xD3 = 2^19 - 6 * 2^15 = 512 KiB - 6 * 32 KiB = 320 KiB@* Valid values for dictionary size range from 4 KiB to 512 MiB. -@item Lzma stream -The lzma stream, finished by an end of stream marker. Uses default +@item LZMA stream +The LZMA stream, finished by an end of stream marker. Uses default values for encoder properties. @ifnothtml @xref{Stream format,,,lzip}, @@ -704,7 +705,7 @@ Size of the uncompressed original data. @item Member size (8 bytes) Total size of the member, including header and trailer. This field acts as a distributed index, allows the verification of stream integrity, and -facilitates safe recovery of undamaged members from multi-member files. +facilitates safe recovery of undamaged members from multimember files. @end table @@ -785,7 +786,7 @@ Example 4: Decompression using LZ_decompress_write_size. @sp 1 @noindent -Example 5: Multi-member compression (@var{member_size} < total output). +Example 5: Multimember compression (@var{member_size} < total output). @example 1) LZ_compress_open @@ -802,7 +803,7 @@ Example 5: Multi-member compression (@var{member_size} < total output). @sp 1 @noindent -Example 6: Multi-member compression (user-restarted members). +Example 6: Multimember compression (user-restarted members). @example 1) LZ_compress_open @@ -821,7 +822,7 @@ Example 6: Multi-member compression (user-restarted members). @sp 1 @noindent -Example 7: Decompression with automatic removal of leading garbage. +Example 7: Decompression with automatic removal of leading data. @example 1) LZ_decompress_open diff --git a/doc/minilzip.1 b/doc/minilzip.1 index afa198d..b5ebf78 100644 --- a/doc/minilzip.1 +++ b/doc/minilzip.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1. -.TH MINILZIP "1" "July 2015" "minilzip 1.7" "User Commands" +.TH MINILZIP "1" "May 2016" "minilzip 1.8" "User Commands" .SH NAME minilzip \- reduces the size of files .SH SYNOPSIS @@ -15,11 +15,14 @@ display this help and exit \fB\-V\fR, \fB\-\-version\fR output version information and exit .TP +\fB\-a\fR, \fB\-\-trailing\-error\fR +exit with error status if trailing data +.TP \fB\-b\fR, \fB\-\-member\-size=\fR<bytes> set member size limit in bytes .TP \fB\-c\fR, \fB\-\-stdout\fR -send output to standard output +write to standard output, keep input files .TP \fB\-d\fR, \fB\-\-decompress\fR decompress @@ -37,7 +40,7 @@ keep (don't delete) input files set match length limit in bytes [36] .TP \fB\-o\fR, \fB\-\-output=\fR<file> -if reading stdin, place the output into <file> +if reading standard input, write to <file> .TP \fB\-q\fR, \fB\-\-quiet\fR suppress all messages @@ -63,13 +66,16 @@ alias for \fB\-0\fR \fB\-\-best\fR alias for \fB\-9\fR .PP -If no file names are given, minilzip compresses or decompresses -from standard input to standard output. +If no file names are given, or if a file is '\-', minilzip compresses or +decompresses from standard input to standard output. Numbers may be followed by a multiplier: k = kB = 10^3 = 1000, Ki = KiB = 2^10 = 1024, M = 10^6, Mi = 2^20, G = 10^9, Gi = 2^30, etc... +Dictionary sizes 12 to 29 are interpreted as powers of two, meaning 2^12 +to 2^29 bytes. +.PP The bidimensional parameter space of LZMA can't be mapped to a linear scale optimal for all files. If your files are large, very repetitive, -etc, you may need to use the \fB\-\-match\-length\fR and \fB\-\-dictionary\-size\fR +etc, you may need to use the \fB\-\-dictionary\-size\fR and \fB\-\-match\-length\fR options directly to achieve optimal performance. .PP Exit status: 0 for a normal exit, 1 for environmental problems (file @@ -81,8 +87,8 @@ Report bugs to lzip\-bug@nongnu.org .br Lzlib home page: http://www.nongnu.org/lzip/lzlib.html .SH COPYRIGHT -Copyright \(co 2015 Antonio Diaz Diaz. -Using lzlib 1.7 +Copyright \(co 2016 Antonio Diaz Diaz. +Using lzlib 1.8 License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html> .br This is free software: you are free to change and redistribute it. |