aboutsummaryrefslogtreecommitdiff
path: root/archival/bbunzip.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-11-14 11:39:00 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-11-14 11:39:00 +0100
commitf6beef63c64abfc126ea4e73147af29d152f1a9e (patch)
tree71b1f243cda3ab4836219386f017e3d95a7f41d9 /archival/bbunzip.c
parentac216873095a0d7c30737df5cdfa3bf6c261f079 (diff)
downloadbusybox-w32-f6beef63c64abfc126ea4e73147af29d152f1a9e.tar.gz
busybox-w32-f6beef63c64abfc126ea4e73147af29d152f1a9e.tar.bz2
busybox-w32-f6beef63c64abfc126ea4e73147af29d152f1a9e.zip
archival/*: move "config:" snippets into .c files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/bbunzip.c')
-rw-r--r--archival/bbunzip.c70
1 files changed, 70 insertions, 0 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index eb6f114ad..b3fb90f31 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -215,6 +215,13 @@ char* FAST_FUNC make_new_name_generic(char *filename, const char *expected_ext)
215//usage: "\n -c Write to stdout" 215//usage: "\n -c Write to stdout"
216//usage: "\n -f Overwrite" 216//usage: "\n -f Overwrite"
217 217
218//config:config UNCOMPRESS
219//config: bool "uncompress"
220//config: default n
221//config: help
222//config: uncompress is used to decompress archives created by compress.
223//config: Not much used anymore, replaced by gzip/gunzip.
224
218//applet:IF_UNCOMPRESS(APPLET(uncompress, BB_DIR_BIN, BB_SUID_DROP)) 225//applet:IF_UNCOMPRESS(APPLET(uncompress, BB_DIR_BIN, BB_SUID_DROP))
219//kbuild:lib-$(CONFIG_UNCOMPRESS) += bbunzip.o 226//kbuild:lib-$(CONFIG_UNCOMPRESS) += bbunzip.o
220#if ENABLE_UNCOMPRESS 227#if ENABLE_UNCOMPRESS
@@ -278,6 +285,14 @@ int uncompress_main(int argc UNUSED_PARAM, char **argv)
278//usage:#define zcat_full_usage "\n\n" 285//usage:#define zcat_full_usage "\n\n"
279//usage: "Decompress to stdout" 286//usage: "Decompress to stdout"
280 287
288//config:config GUNZIP
289//config: bool "gunzip"
290//config: default y
291//config: help
292//config: gunzip is used to decompress archives created by gzip.
293//config: You can use the `-t' option to test the integrity of
294//config: an archive, without decompressing it.
295
281//applet:IF_GUNZIP(APPLET(gunzip, BB_DIR_BIN, BB_SUID_DROP)) 296//applet:IF_GUNZIP(APPLET(gunzip, BB_DIR_BIN, BB_SUID_DROP))
282//applet:IF_GUNZIP(APPLET_ODDNAME(zcat, gunzip, BB_DIR_BIN, BB_SUID_DROP, zcat)) 297//applet:IF_GUNZIP(APPLET_ODDNAME(zcat, gunzip, BB_DIR_BIN, BB_SUID_DROP, zcat))
283//kbuild:lib-$(CONFIG_GZIP) += bbunzip.o 298//kbuild:lib-$(CONFIG_GZIP) += bbunzip.o
@@ -361,6 +376,19 @@ int gunzip_main(int argc UNUSED_PARAM, char **argv)
361//usage:#define bzcat_full_usage "\n\n" 376//usage:#define bzcat_full_usage "\n\n"
362//usage: "Decompress to stdout" 377//usage: "Decompress to stdout"
363 378
379//config:config BUNZIP2
380//config: bool "bunzip2"
381//config: default y
382//config: help
383//config: bunzip2 is a compression utility using the Burrows-Wheeler block
384//config: sorting text compression algorithm, and Huffman coding. Compression
385//config: is generally considerably better than that achieved by more
386//config: conventional LZ77/LZ78-based compressors, and approaches the
387//config: performance of the PPM family of statistical compressors.
388//config:
389//config: Unless you have a specific application which requires bunzip2, you
390//config: should probably say N here.
391
364//applet:IF_BUNZIP2(APPLET(bunzip2, BB_DIR_USR_BIN, BB_SUID_DROP)) 392//applet:IF_BUNZIP2(APPLET(bunzip2, BB_DIR_USR_BIN, BB_SUID_DROP))
365//applet:IF_BUNZIP2(APPLET_ODDNAME(bzcat, bunzip2, BB_DIR_USR_BIN, BB_SUID_DROP, bzcat)) 393//applet:IF_BUNZIP2(APPLET_ODDNAME(bzcat, bunzip2, BB_DIR_USR_BIN, BB_SUID_DROP, bzcat))
366//kbuild:lib-$(CONFIG_BZIP2) += bbunzip.o 394//kbuild:lib-$(CONFIG_BZIP2) += bbunzip.o
@@ -432,6 +460,34 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv)
432//usage:#define xzcat_full_usage "\n\n" 460//usage:#define xzcat_full_usage "\n\n"
433//usage: "Decompress to stdout" 461//usage: "Decompress to stdout"
434 462
463//config:config UNLZMA
464//config: bool "unlzma"
465//config: default y
466//config: help
467//config: unlzma is a compression utility using the Lempel-Ziv-Markov chain
468//config: compression algorithm, and range coding. Compression
469//config: is generally considerably better than that achieved by the bzip2
470//config: compressors.
471//config:
472//config: The BusyBox unlzma applet is limited to decompression only.
473//config: On an x86 system, this applet adds about 4K.
474//config:
475//config:config FEATURE_LZMA_FAST
476//config: bool "Optimize unlzma for speed"
477//config: default n
478//config: depends on UNLZMA
479//config: help
480//config: This option reduces decompression time by about 25% at the cost of
481//config: a 1K bigger binary.
482//config:
483//config:config LZMA
484//config: bool "Provide lzma alias which supports only unpacking"
485//config: default y
486//config: depends on UNLZMA
487//config: help
488//config: Enable this option if you want commands like "lzma -d" to work.
489//config: IOW: you'll get lzma applet, but it will always require -d option.
490
435//applet:IF_UNLZMA(APPLET(unlzma, BB_DIR_USR_BIN, BB_SUID_DROP)) 491//applet:IF_UNLZMA(APPLET(unlzma, BB_DIR_USR_BIN, BB_SUID_DROP))
436//applet:IF_UNLZMA(APPLET_ODDNAME(lzcat, unlzma, BB_DIR_USR_BIN, BB_SUID_DROP, lzcat)) 492//applet:IF_UNLZMA(APPLET_ODDNAME(lzcat, unlzma, BB_DIR_USR_BIN, BB_SUID_DROP, lzcat))
437//applet:IF_LZMA(APPLET_ODDNAME(lzma, unlzma, BB_DIR_USR_BIN, BB_SUID_DROP, lzma)) 493//applet:IF_LZMA(APPLET_ODDNAME(lzma, unlzma, BB_DIR_USR_BIN, BB_SUID_DROP, lzma))
@@ -461,6 +517,20 @@ int unlzma_main(int argc UNUSED_PARAM, char **argv)
461#endif 517#endif
462 518
463 519
520//config:config UNXZ
521//config: bool "unxz"
522//config: default y
523//config: help
524//config: unxz is a unlzma successor.
525//config:
526//config:config XZ
527//config: bool "Provide xz alias which supports only unpacking"
528//config: default y
529//config: depends on UNXZ
530//config: help
531//config: Enable this option if you want commands like "xz -d" to work.
532//config: IOW: you'll get xz applet, but it will always require -d option.
533
464//applet:IF_UNXZ(APPLET(unxz, BB_DIR_USR_BIN, BB_SUID_DROP)) 534//applet:IF_UNXZ(APPLET(unxz, BB_DIR_USR_BIN, BB_SUID_DROP))
465//applet:IF_UNXZ(APPLET_ODDNAME(xzcat, unxz, BB_DIR_USR_BIN, BB_SUID_DROP, xzcat)) 535//applet:IF_UNXZ(APPLET_ODDNAME(xzcat, unxz, BB_DIR_USR_BIN, BB_SUID_DROP, xzcat))
466//applet:IF_XZ(APPLET_ODDNAME(xz, unxz, BB_DIR_USR_BIN, BB_SUID_DROP, xz)) 536//applet:IF_XZ(APPLET_ODDNAME(xz, unxz, BB_DIR_USR_BIN, BB_SUID_DROP, xz))