diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/unarchive.h | 1 | ||||
-rw-r--r-- | include/usage.h | 22 |
3 files changed, 26 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index a171c5449..d8a706b44 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -419,6 +419,7 @@ IF_UNCOMPRESS(APPLET(uncompress, _BB_DIR_BIN, _BB_SUID_DROP)) | |||
419 | IF_UNEXPAND(APPLET_ODDNAME(unexpand, expand, _BB_DIR_USR_BIN, _BB_SUID_DROP, unexpand)) | 419 | IF_UNEXPAND(APPLET_ODDNAME(unexpand, expand, _BB_DIR_USR_BIN, _BB_SUID_DROP, unexpand)) |
420 | IF_UNIQ(APPLET(uniq, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 420 | IF_UNIQ(APPLET(uniq, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
421 | IF_UNIX2DOS(APPLET_ODDNAME(unix2dos, dos2unix, _BB_DIR_USR_BIN, _BB_SUID_DROP, unix2dos)) | 421 | IF_UNIX2DOS(APPLET_ODDNAME(unix2dos, dos2unix, _BB_DIR_USR_BIN, _BB_SUID_DROP, unix2dos)) |
422 | IF_UNXZ(APPLET(unxz, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | ||
422 | IF_UNLZMA(APPLET(unlzma, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 423 | IF_UNLZMA(APPLET(unlzma, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
423 | IF_LZOP(APPLET_ODDNAME(unlzop, lzop, _BB_DIR_USR_BIN, _BB_SUID_DROP, unlzop)) | 424 | IF_LZOP(APPLET_ODDNAME(unlzop, lzop, _BB_DIR_USR_BIN, _BB_SUID_DROP, unlzop)) |
424 | IF_UNZIP(APPLET(unzip, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 425 | IF_UNZIP(APPLET(unzip, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
@@ -439,6 +440,8 @@ IF_WHICH(APPLET(which, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | |||
439 | IF_WHO(APPLET(who, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 440 | IF_WHO(APPLET(who, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
440 | IF_WHOAMI(APPLET_NOFORK(whoami, whoami, _BB_DIR_USR_BIN, _BB_SUID_DROP, whoami)) | 441 | IF_WHOAMI(APPLET_NOFORK(whoami, whoami, _BB_DIR_USR_BIN, _BB_SUID_DROP, whoami)) |
441 | IF_XARGS(APPLET_NOEXEC(xargs, xargs, _BB_DIR_USR_BIN, _BB_SUID_DROP, xargs)) | 442 | IF_XARGS(APPLET_NOEXEC(xargs, xargs, _BB_DIR_USR_BIN, _BB_SUID_DROP, xargs)) |
443 | IF_UNXZ(APPLET_ODDNAME(xzcat, unxz, _BB_DIR_USR_BIN, _BB_SUID_DROP, xzcat)) | ||
444 | IF_XZ(APPLET_ODDNAME(xz, unxz, _BB_DIR_USR_BIN, _BB_SUID_DROP, xz)) | ||
442 | IF_YES(APPLET_NOFORK(yes, yes, _BB_DIR_USR_BIN, _BB_SUID_DROP, yes)) | 445 | IF_YES(APPLET_NOFORK(yes, yes, _BB_DIR_USR_BIN, _BB_SUID_DROP, yes)) |
443 | IF_GUNZIP(APPLET_ODDNAME(zcat, gunzip, _BB_DIR_BIN, _BB_SUID_DROP, zcat)) | 446 | IF_GUNZIP(APPLET_ODDNAME(zcat, gunzip, _BB_DIR_BIN, _BB_SUID_DROP, zcat)) |
444 | IF_ZCIP(APPLET(zcip, _BB_DIR_SBIN, _BB_SUID_DROP)) | 447 | IF_ZCIP(APPLET(zcip, _BB_DIR_SBIN, _BB_SUID_DROP)) |
diff --git a/include/unarchive.h b/include/unarchive.h index a834816ba..14cd98e24 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -143,6 +143,7 @@ typedef struct inflate_unzip_result { | |||
143 | } inflate_unzip_result; | 143 | } inflate_unzip_result; |
144 | 144 | ||
145 | IF_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, off_t compr_size, int src_fd, int dst_fd) FAST_FUNC; | 145 | IF_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, off_t compr_size, int src_fd, int dst_fd) FAST_FUNC; |
146 | IF_DESKTOP(long long) int unpack_xz_stream_stdin(void) FAST_FUNC; | ||
146 | /* lzma unpacker takes .lzma stream from offset 0 */ | 147 | /* lzma unpacker takes .lzma stream from offset 0 */ |
147 | IF_DESKTOP(long long) int unpack_lzma_stream(int src_fd, int dst_fd) FAST_FUNC; | 148 | IF_DESKTOP(long long) int unpack_lzma_stream(int src_fd, int dst_fd) FAST_FUNC; |
148 | /* the rest wants 2 first bytes already skipped by the caller */ | 149 | /* the rest wants 2 first bytes already skipped by the caller */ |
diff --git a/include/usage.h b/include/usage.h index 3aa980cdc..a9c4c4294 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -269,6 +269,28 @@ | |||
269 | #define lzcat_full_usage "\n\n" \ | 269 | #define lzcat_full_usage "\n\n" \ |
270 | "Decompress to stdout" | 270 | "Decompress to stdout" |
271 | 271 | ||
272 | #define unxz_trivial_usage \ | ||
273 | "[OPTIONS] [FILE]..." | ||
274 | #define unxz_full_usage "\n\n" \ | ||
275 | "Decompress FILE (or stdin)\n" \ | ||
276 | "\nOptions:" \ | ||
277 | "\n -c Write to stdout" \ | ||
278 | "\n -f Force" \ | ||
279 | |||
280 | #define xz_trivial_usage \ | ||
281 | "-d [OPTIONS] [FILE]..." | ||
282 | #define xz_full_usage "\n\n" \ | ||
283 | "Decompress FILE (or stdin)\n" \ | ||
284 | "\nOptions:" \ | ||
285 | "\n -d Decompress" \ | ||
286 | "\n -c Write to stdout" \ | ||
287 | "\n -f Force" \ | ||
288 | |||
289 | #define xzcat_trivial_usage \ | ||
290 | "FILE" | ||
291 | #define xzcat_full_usage "\n\n" \ | ||
292 | "Decompress to stdout" | ||
293 | |||
272 | #define cal_trivial_usage \ | 294 | #define cal_trivial_usage \ |
273 | "[-jy] [[MONTH] YEAR]" | 295 | "[-jy] [[MONTH] YEAR]" |
274 | #define cal_full_usage "\n\n" \ | 296 | #define cal_full_usage "\n\n" \ |