aboutsummaryrefslogtreecommitdiff
path: root/archival/gzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/gzip.c')
-rw-r--r--archival/gzip.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index feeddf58f..b2f9b2dc2 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -39,6 +39,22 @@ gzip: bogus: No such file or directory
39aa: 85.1% -- replaced with aa.gz 39aa: 85.1% -- replaced with aa.gz
40*/ 40*/
41 41
42//usage:#define gzip_trivial_usage
43//usage: "[-cfd] [FILE]..."
44//usage:#define gzip_full_usage "\n\n"
45//usage: "Compress FILEs (or stdin)\n"
46//usage: "\nOptions:"
47//usage: "\n -d Decompress"
48//usage: "\n -c Write to stdout"
49//usage: "\n -f Force"
50//usage:
51//usage:#define gzip_example_usage
52//usage: "$ ls -la /tmp/busybox*\n"
53//usage: "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n"
54//usage: "$ gzip /tmp/busybox.tar\n"
55//usage: "$ ls -la /tmp/busybox*\n"
56//usage: "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
57
42#include "libbb.h" 58#include "libbb.h"
43#include "archive.h" 59#include "archive.h"
44 60
@@ -1658,7 +1674,7 @@ static ulg flush_block(char *buf, ulg stored_len, int eof_)
1658 1674
1659/* =========================================================================== 1675/* ===========================================================================
1660 * Update a hash value with the given input byte 1676 * Update a hash value with the given input byte
1661 * IN assertion: all calls to to UPDATE_HASH are made with consecutive 1677 * IN assertion: all calls to UPDATE_HASH are made with consecutive
1662 * input characters, so that a running hash key can be computed from the 1678 * input characters, so that a running hash key can be computed from the
1663 * previous key instead of complete recalculation each time. 1679 * previous key instead of complete recalculation each time.
1664 */ 1680 */
@@ -1689,7 +1705,7 @@ static ulg flush_block(char *buf, ulg stored_len, int eof_)
1689/* Insert string s in the dictionary and set match_head to the previous head 1705/* Insert string s in the dictionary and set match_head to the previous head
1690 * of the hash chain (the most recent string with same hash key). Return 1706 * of the hash chain (the most recent string with same hash key). Return
1691 * the previous length of the hash chain. 1707 * the previous length of the hash chain.
1692 * IN assertion: all calls to to INSERT_STRING are made with consecutive 1708 * IN assertion: all calls to INSERT_STRING are made with consecutive
1693 * input characters and the first MIN_MATCH bytes of s are valid 1709 * input characters and the first MIN_MATCH bytes of s are valid
1694 * (except for the last MIN_MATCH-1 bytes of the input file). */ 1710 * (except for the last MIN_MATCH-1 bytes of the input file). */
1695#define INSERT_STRING(s, match_head) \ 1711#define INSERT_STRING(s, match_head) \