diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/libbb.h | 3 | ||||
-rw-r--r-- | include/platform.h | 6 | ||||
-rw-r--r-- | include/usage.h | 14 |
4 files changed, 20 insertions, 4 deletions
diff --git a/include/applets.h b/include/applets.h index ceab00334..29a5d09e3 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -88,6 +88,7 @@ USE_BBCONFIG(APPLET(bbconfig, _BB_DIR_BIN, _BB_SUID_NEVER)) | |||
88 | //USE_BBSH(APPLET(bbsh, _BB_DIR_BIN, _BB_SUID_NEVER)) | 88 | //USE_BBSH(APPLET(bbsh, _BB_DIR_BIN, _BB_SUID_NEVER)) |
89 | USE_BUNZIP2(APPLET(bunzip2, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 89 | USE_BUNZIP2(APPLET(bunzip2, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
90 | USE_BUNZIP2(APPLET_ODDNAME(bzcat, bunzip2, _BB_DIR_USR_BIN, _BB_SUID_NEVER, bzcat)) | 90 | USE_BUNZIP2(APPLET_ODDNAME(bzcat, bunzip2, _BB_DIR_USR_BIN, _BB_SUID_NEVER, bzcat)) |
91 | USE_BZIP2(APPLET(bzip2, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | ||
91 | USE_CAL(APPLET(cal, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 92 | USE_CAL(APPLET(cal, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
92 | USE_CAT(APPLET_NOFORK(cat, cat, _BB_DIR_BIN, _BB_SUID_NEVER, cat)) | 93 | USE_CAT(APPLET_NOFORK(cat, cat, _BB_DIR_BIN, _BB_SUID_NEVER, cat)) |
93 | USE_CATV(APPLET(catv, _BB_DIR_BIN, _BB_SUID_NEVER)) | 94 | USE_CATV(APPLET(catv, _BB_DIR_BIN, _BB_SUID_NEVER)) |
diff --git a/include/libbb.h b/include/libbb.h index be548a306..af385e232 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -709,6 +709,9 @@ int chown_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | |||
709 | #if ENABLE_GUNZIP | 709 | #if ENABLE_GUNZIP |
710 | int gunzip_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 710 | int gunzip_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
711 | #endif | 711 | #endif |
712 | #if ENABLE_BUNZIP2 | ||
713 | int bunzip2_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | ||
714 | #endif | ||
712 | int bbunpack(char **argv, | 715 | int bbunpack(char **argv, |
713 | char* (*make_new_name)(char *filename), | 716 | char* (*make_new_name)(char *filename), |
714 | USE_DESKTOP(long long) int (*unpacker)(void) | 717 | USE_DESKTOP(long long) int (*unpacker)(void) |
diff --git a/include/platform.h b/include/platform.h index 53d72829f..edb0f8ab0 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -54,7 +54,8 @@ | |||
54 | # define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m))) | 54 | # define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m))) |
55 | # if __GNUC_PREREQ (3,0) | 55 | # if __GNUC_PREREQ (3,0) |
56 | # define ALWAYS_INLINE __attribute__ ((always_inline)) inline | 56 | # define ALWAYS_INLINE __attribute__ ((always_inline)) inline |
57 | # define NOINLINE __attribute__((noinline)) | 57 | /* I've seen a toolchain where I needed __noinline__ instead of noinline */ |
58 | # define NOINLINE __attribute__((__noinline__)) | ||
58 | # if !ENABLE_WERROR | 59 | # if !ENABLE_WERROR |
59 | # define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) | 60 | # define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) |
60 | # define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result)) | 61 | # define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result)) |
@@ -63,7 +64,8 @@ | |||
63 | # define ATTRIBUTE_UNUSED_RESULT /* n/a */ | 64 | # define ATTRIBUTE_UNUSED_RESULT /* n/a */ |
64 | # endif | 65 | # endif |
65 | # else | 66 | # else |
66 | # define ALWAYS_INLINE inline | 67 | # define ALWAYS_INLINE inline /* n/a */ |
68 | # define NOINLINE /* n/a */ | ||
67 | # define ATTRIBUTE_DEPRECATED /* n/a */ | 69 | # define ATTRIBUTE_DEPRECATED /* n/a */ |
68 | # define ATTRIBUTE_UNUSED_RESULT /* n/a */ | 70 | # define ATTRIBUTE_UNUSED_RESULT /* n/a */ |
69 | # endif | 71 | # endif |
diff --git a/include/usage.h b/include/usage.h index b53820d7b..4c697d380 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -127,6 +127,16 @@ | |||
127 | " -c Write output to standard output\n" \ | 127 | " -c Write output to standard output\n" \ |
128 | " -f Force" | 128 | " -f Force" |
129 | 129 | ||
130 | #define bzip2_trivial_usage \ | ||
131 | "[OPTION]... [FILE]..." | ||
132 | #define bzip2_full_usage \ | ||
133 | "Compress FILE(s) with bzip2 algorithm.\n" \ | ||
134 | "When FILE is '-' or unspecified, reads standard input. Implies -c." \ | ||
135 | "\n\nOptions:\n" \ | ||
136 | " -c Write output to standard output instead of FILE.bz\n" \ | ||
137 | " -d Decompress\n" \ | ||
138 | " -f Force" | ||
139 | |||
130 | #define busybox_notes_usage \ | 140 | #define busybox_notes_usage \ |
131 | "Hello world!\n" | 141 | "Hello world!\n" |
132 | 142 | ||
@@ -1201,7 +1211,7 @@ | |||
1201 | "Uncompress FILE (or standard input if FILE is '-')" \ | 1211 | "Uncompress FILE (or standard input if FILE is '-')" \ |
1202 | "\n\nOptions:\n" \ | 1212 | "\n\nOptions:\n" \ |
1203 | " -c Write output to standard output\n" \ | 1213 | " -c Write output to standard output\n" \ |
1204 | " -f Force read when source is a terminal\n" \ | 1214 | " -f Force\n" \ |
1205 | " -t Test compressed file integrity" | 1215 | " -t Test compressed file integrity" |
1206 | #define gunzip_example_usage \ | 1216 | #define gunzip_example_usage \ |
1207 | "$ ls -la /tmp/BusyBox*\n" \ | 1217 | "$ ls -la /tmp/BusyBox*\n" \ |
@@ -1218,7 +1228,7 @@ | |||
1218 | "\n\nOptions:\n" \ | 1228 | "\n\nOptions:\n" \ |
1219 | " -c Write output to standard output instead of FILE.gz\n" \ | 1229 | " -c Write output to standard output instead of FILE.gz\n" \ |
1220 | " -d Decompress\n" \ | 1230 | " -d Decompress\n" \ |
1221 | " -f Force write when destination is a terminal" | 1231 | " -f Force" |
1222 | #define gzip_example_usage \ | 1232 | #define gzip_example_usage \ |
1223 | "$ ls -la /tmp/busybox*\n" \ | 1233 | "$ ls -la /tmp/busybox*\n" \ |
1224 | "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \ | 1234 | "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \ |