bzip2: port bzip2 1.0.4 to busybox. note: bzip2 code resides
in separate directory (archival/bz/*) and is covered by BSD-style license. code size: 13k
This commit is contained in:
@@ -88,6 +88,7 @@ USE_BBCONFIG(APPLET(bbconfig, _BB_DIR_BIN, _BB_SUID_NEVER))
|
||||
//USE_BBSH(APPLET(bbsh, _BB_DIR_BIN, _BB_SUID_NEVER))
|
||||
USE_BUNZIP2(APPLET(bunzip2, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
|
||||
USE_BUNZIP2(APPLET_ODDNAME(bzcat, bunzip2, _BB_DIR_USR_BIN, _BB_SUID_NEVER, bzcat))
|
||||
USE_BZIP2(APPLET(bzip2, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
|
||||
USE_CAL(APPLET(cal, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
|
||||
USE_CAT(APPLET_NOFORK(cat, cat, _BB_DIR_BIN, _BB_SUID_NEVER, cat))
|
||||
USE_CATV(APPLET(catv, _BB_DIR_BIN, _BB_SUID_NEVER))
|
||||
|
@@ -709,6 +709,9 @@ int chown_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
||||
#if ENABLE_GUNZIP
|
||||
int gunzip_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
||||
#endif
|
||||
#if ENABLE_BUNZIP2
|
||||
int bunzip2_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
||||
#endif
|
||||
int bbunpack(char **argv,
|
||||
char* (*make_new_name)(char *filename),
|
||||
USE_DESKTOP(long long) int (*unpacker)(void)
|
||||
|
@@ -54,7 +54,8 @@
|
||||
# define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m)))
|
||||
# if __GNUC_PREREQ (3,0)
|
||||
# define ALWAYS_INLINE __attribute__ ((always_inline)) inline
|
||||
# define NOINLINE __attribute__((noinline))
|
||||
/* I've seen a toolchain where I needed __noinline__ instead of noinline */
|
||||
# define NOINLINE __attribute__((__noinline__))
|
||||
# if !ENABLE_WERROR
|
||||
# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
|
||||
# define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result))
|
||||
@@ -63,7 +64,8 @@
|
||||
# define ATTRIBUTE_UNUSED_RESULT /* n/a */
|
||||
# endif
|
||||
# else
|
||||
# define ALWAYS_INLINE inline
|
||||
# define ALWAYS_INLINE inline /* n/a */
|
||||
# define NOINLINE /* n/a */
|
||||
# define ATTRIBUTE_DEPRECATED /* n/a */
|
||||
# define ATTRIBUTE_UNUSED_RESULT /* n/a */
|
||||
# endif
|
||||
|
@@ -127,6 +127,16 @@
|
||||
" -c Write output to standard output\n" \
|
||||
" -f Force"
|
||||
|
||||
#define bzip2_trivial_usage \
|
||||
"[OPTION]... [FILE]..."
|
||||
#define bzip2_full_usage \
|
||||
"Compress FILE(s) with bzip2 algorithm.\n" \
|
||||
"When FILE is '-' or unspecified, reads standard input. Implies -c." \
|
||||
"\n\nOptions:\n" \
|
||||
" -c Write output to standard output instead of FILE.bz\n" \
|
||||
" -d Decompress\n" \
|
||||
" -f Force"
|
||||
|
||||
#define busybox_notes_usage \
|
||||
"Hello world!\n"
|
||||
|
||||
@@ -1201,7 +1211,7 @@
|
||||
"Uncompress FILE (or standard input if FILE is '-')" \
|
||||
"\n\nOptions:\n" \
|
||||
" -c Write output to standard output\n" \
|
||||
" -f Force read when source is a terminal\n" \
|
||||
" -f Force\n" \
|
||||
" -t Test compressed file integrity"
|
||||
#define gunzip_example_usage \
|
||||
"$ ls -la /tmp/BusyBox*\n" \
|
||||
@@ -1218,7 +1228,7 @@
|
||||
"\n\nOptions:\n" \
|
||||
" -c Write output to standard output instead of FILE.gz\n" \
|
||||
" -d Decompress\n" \
|
||||
" -f Force write when destination is a terminal"
|
||||
" -f Force"
|
||||
#define gzip_example_usage \
|
||||
"$ ls -la /tmp/busybox*\n" \
|
||||
"-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \
|
||||
|
Reference in New Issue
Block a user