Initial support for for bunzip2....

This code could be improvemed by
 1) supporting more options,
 2) Creating a shared crc table with gunzip, or perhaps generated on the fly.
 3) Removing any remaining unneccessary code (e.g. if (noisy))
This commit is contained in:
Glenn L McGrath 2001-10-05 03:48:57 +00:00
parent 2e772edacf
commit 24e2833cdf
8 changed files with 4705 additions and 0 deletions

View File

@ -13,6 +13,7 @@
//#define BB_AR
//#define BB_ASH
#define BB_BASENAME
//#define BB_BUNZIP2
#define BB_CAT
#define BB_CHGRP
#define BB_CHMOD

View File

@ -63,6 +63,9 @@
#endif
#ifdef BB_BASENAME
APPLET(basename, basename_main, _BB_DIR_USR_BIN)
#endif
#ifdef BB_BUNZIP2
APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN)
#endif
APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
#ifdef BB_CAT

View File

@ -51,6 +51,12 @@
"$ basename /foo/bar.txt .txt\n" \
"bar"
#define bunzip2_trivial_usage \
"FILE"
#define bunzip2_full_usage \
"Uncompress FILE to current directory, stripping its .bz2 extension.\n"\
" -k is assumed"
#define cat_trivial_usage \
"[FILE]..."
#define cat_full_usage \

2340
archival/bunzip2.c Normal file

File diff suppressed because it is too large Load Diff

2340
bunzip2.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -63,6 +63,9 @@
#endif
#ifdef BB_BASENAME
APPLET(basename, basename_main, _BB_DIR_USR_BIN)
#endif
#ifdef BB_BUNZIP2
APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN)
#endif
APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
#ifdef BB_CAT

View File

@ -51,6 +51,12 @@
"$ basename /foo/bar.txt .txt\n" \
"bar"
#define bunzip2_trivial_usage \
"FILE"
#define bunzip2_full_usage \
"Uncompress FILE to current directory, stripping its .bz2 extension.\n"\
" -k is assumed"
#define cat_trivial_usage \
"[FILE]..."
#define cat_full_usage \

View File

@ -51,6 +51,12 @@
"$ basename /foo/bar.txt .txt\n" \
"bar"
#define bunzip2_trivial_usage \
"FILE"
#define bunzip2_full_usage \
"Uncompress FILE to current directory, stripping its .bz2 extension.\n"\
" -k is assumed"
#define cat_trivial_usage \
"[FILE]..."
#define cat_full_usage \