diff options
author | Ron Yorston <rmy@pobox.com> | 2012-03-22 14:11:12 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-03-22 14:11:12 +0000 |
commit | 67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch) | |
tree | a4a1db7f54c16d12fabe2626b8f1e235cd694e9e /archival/bbunzip.c | |
parent | 811c449748d5bd0505f8510e5582892f94ac0cda (diff) | |
parent | b83c9704128dd106071184e4b00335a3b8486857 (diff) | |
download | busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2 busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip |
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'archival/bbunzip.c')
-rw-r--r-- | archival/bbunzip.c | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c index 85447cbfe..f1829db05 100644 --- a/archival/bbunzip.c +++ b/archival/bbunzip.c | |||
@@ -169,6 +169,15 @@ char* FAST_FUNC make_new_name_generic(char *filename, const char *expected_ext) | |||
169 | * | 169 | * |
170 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 170 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
171 | */ | 171 | */ |
172 | |||
173 | //usage:#define uncompress_trivial_usage | ||
174 | //usage: "[-cf] [FILE]..." | ||
175 | //usage:#define uncompress_full_usage "\n\n" | ||
176 | //usage: "Decompress .Z file[s]\n" | ||
177 | //usage: "\nOptions:" | ||
178 | //usage: "\n -c Write to stdout" | ||
179 | //usage: "\n -f Overwrite" | ||
180 | |||
172 | #if ENABLE_UNCOMPRESS | 181 | #if ENABLE_UNCOMPRESS |
173 | static | 182 | static |
174 | IF_DESKTOP(long long) int FAST_FUNC unpack_uncompress(unpack_info_t *info UNUSED_PARAM) | 183 | IF_DESKTOP(long long) int FAST_FUNC unpack_uncompress(unpack_info_t *info UNUSED_PARAM) |
@@ -220,6 +229,28 @@ int uncompress_main(int argc UNUSED_PARAM, char **argv) | |||
220 | * See the license_msg below and the file COPYING for the software license. | 229 | * See the license_msg below and the file COPYING for the software license. |
221 | * See the file algorithm.doc for the compression algorithms and file formats. | 230 | * See the file algorithm.doc for the compression algorithms and file formats. |
222 | */ | 231 | */ |
232 | |||
233 | //usage:#define gunzip_trivial_usage | ||
234 | //usage: "[-cft] [FILE]..." | ||
235 | //usage:#define gunzip_full_usage "\n\n" | ||
236 | //usage: "Decompress FILEs (or stdin)\n" | ||
237 | //usage: "\nOptions:" | ||
238 | //usage: "\n -c Write to stdout" | ||
239 | //usage: "\n -f Force" | ||
240 | //usage: "\n -t Test file integrity" | ||
241 | //usage: | ||
242 | //usage:#define gunzip_example_usage | ||
243 | //usage: "$ ls -la /tmp/BusyBox*\n" | ||
244 | //usage: "-rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" | ||
245 | //usage: "$ gunzip /tmp/BusyBox-0.43.tar.gz\n" | ||
246 | //usage: "$ ls -la /tmp/BusyBox*\n" | ||
247 | //usage: "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n" | ||
248 | //usage: | ||
249 | //usage:#define zcat_trivial_usage | ||
250 | //usage: "FILE" | ||
251 | //usage:#define zcat_full_usage "\n\n" | ||
252 | //usage: "Decompress to stdout" | ||
253 | |||
223 | #if ENABLE_GUNZIP | 254 | #if ENABLE_GUNZIP |
224 | static | 255 | static |
225 | char* FAST_FUNC make_new_name_gunzip(char *filename, const char *expected_ext UNUSED_PARAM) | 256 | char* FAST_FUNC make_new_name_gunzip(char *filename, const char *expected_ext UNUSED_PARAM) |
@@ -346,6 +377,51 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv) | |||
346 | * | 377 | * |
347 | * Licensed under GPLv2, see file LICENSE in this source tree. | 378 | * Licensed under GPLv2, see file LICENSE in this source tree. |
348 | */ | 379 | */ |
380 | |||
381 | //usage:#define unlzma_trivial_usage | ||
382 | //usage: "[-cf] [FILE]..." | ||
383 | //usage:#define unlzma_full_usage "\n\n" | ||
384 | //usage: "Decompress FILE (or stdin)\n" | ||
385 | //usage: "\nOptions:" | ||
386 | //usage: "\n -c Write to stdout" | ||
387 | //usage: "\n -f Force" | ||
388 | //usage: | ||
389 | //usage:#define lzma_trivial_usage | ||
390 | //usage: "-d [-cf] [FILE]..." | ||
391 | //usage:#define lzma_full_usage "\n\n" | ||
392 | //usage: "Decompress FILE (or stdin)\n" | ||
393 | //usage: "\nOptions:" | ||
394 | //usage: "\n -d Decompress" | ||
395 | //usage: "\n -c Write to stdout" | ||
396 | //usage: "\n -f Force" | ||
397 | //usage: | ||
398 | //usage:#define lzcat_trivial_usage | ||
399 | //usage: "FILE" | ||
400 | //usage:#define lzcat_full_usage "\n\n" | ||
401 | //usage: "Decompress to stdout" | ||
402 | //usage: | ||
403 | //usage:#define unxz_trivial_usage | ||
404 | //usage: "[-cf] [FILE]..." | ||
405 | //usage:#define unxz_full_usage "\n\n" | ||
406 | //usage: "Decompress FILE (or stdin)\n" | ||
407 | //usage: "\nOptions:" | ||
408 | //usage: "\n -c Write to stdout" | ||
409 | //usage: "\n -f Force" | ||
410 | //usage: | ||
411 | //usage:#define xz_trivial_usage | ||
412 | //usage: "-d [-cf] [FILE]..." | ||
413 | //usage:#define xz_full_usage "\n\n" | ||
414 | //usage: "Decompress FILE (or stdin)\n" | ||
415 | //usage: "\nOptions:" | ||
416 | //usage: "\n -d Decompress" | ||
417 | //usage: "\n -c Write to stdout" | ||
418 | //usage: "\n -f Force" | ||
419 | //usage: | ||
420 | //usage:#define xzcat_trivial_usage | ||
421 | //usage: "FILE" | ||
422 | //usage:#define xzcat_full_usage "\n\n" | ||
423 | //usage: "Decompress to stdout" | ||
424 | |||
349 | #if ENABLE_UNLZMA | 425 | #if ENABLE_UNLZMA |
350 | static | 426 | static |
351 | IF_DESKTOP(long long) int FAST_FUNC unpack_unlzma(unpack_info_t *info UNUSED_PARAM) | 427 | IF_DESKTOP(long long) int FAST_FUNC unpack_unlzma(unpack_info_t *info UNUSED_PARAM) |