libarchive: move bbunpack constants to bb_archive.h

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2018-02-01 09:13:14 +01:00
parent 99ac1759dd
commit d6f0f03b68
4 changed files with 48 additions and 45 deletions

View File

@ -250,6 +250,21 @@ int bbunpack(char **argv,
char* FAST_FUNC (*make_new_name)(char *filename, const char *expected_ext),
const char *expected_ext
) FAST_FUNC;
#define BBUNPK_OPTSTR "cfkvq"
#define BBUNPK_OPTSTRLEN 5
#define BBUNPK_OPTSTRMASK ((1 << BBUNPK_OPTSTRLEN) - 1)
enum {
BBUNPK_OPT_STDOUT = 1 << 0,
BBUNPK_OPT_FORCE = 1 << 1,
/* only some decompressors: */
BBUNPK_OPT_KEEP = 1 << 2,
BBUNPK_OPT_VERBOSE = 1 << 3,
BBUNPK_OPT_QUIET = 1 << 4,
/* not included in BBUNPK_OPTSTR: */
BBUNPK_OPT_DECOMPRESS = 1 << 5,
BBUNPK_OPT_TEST = 1 << 6,
BBUNPK_SEAMLESS_MAGIC = (1 << 31) * ENABLE_ZCAT * SEAMLESS_COMPRESSION,
};
void check_errors_in_children(int signo);
#if BB_MMU