diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 12:38:24 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 12:38:24 +1000 |
commit | e77e395efda0c0ab5bf9c951627c4fcf65c2e32e (patch) | |
tree | ac99825f254ed6009d573b4a10d3685c5042caaa /include | |
parent | 2c95747817c0f7a498c74ff975afacea7a241da2 (diff) | |
parent | 3e47cfec90fbe358692b3b960f7fa2303e465c2f (diff) | |
download | busybox-w32-e77e395efda0c0ab5bf9c951627c4fcf65c2e32e.tar.gz busybox-w32-e77e395efda0c0ab5bf9c951627c4fcf65c2e32e.tar.bz2 busybox-w32-e77e395efda0c0ab5bf9c951627c4fcf65c2e32e.zip |
Merge branch 'origin/master' (early part)
Diffstat (limited to 'include')
-rw-r--r-- | include/unarchive.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/unarchive.h b/include/unarchive.h index aa7ecec55..8009de282 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -4,6 +4,22 @@ | |||
4 | 4 | ||
5 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN | 5 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN |
6 | 6 | ||
7 | enum { | ||
8 | #if BB_BIG_ENDIAN | ||
9 | COMPRESS_MAGIC = 0x1f9d, | ||
10 | GZIP_MAGIC = 0x1f8b, | ||
11 | BZIP2_MAGIC = ('B'<<8) + 'Z', | ||
12 | XZ_MAGIC1 = (0xfd<<8) + '7', | ||
13 | XZ_MAGIC2 = ((((('z'<<8) + 'X')<<8) + 'Z')<<8) + 0, | ||
14 | #else | ||
15 | COMPRESS_MAGIC = 0x9d1f, | ||
16 | GZIP_MAGIC = 0x8b1f, | ||
17 | BZIP2_MAGIC = ('Z'<<8) + 'B', | ||
18 | XZ_MAGIC1 = ('7'<<8) + 0xfd, | ||
19 | XZ_MAGIC2 = (((((0<<8) + 'Z')<<8) + 'X')<<8) + 'z', | ||
20 | #endif | ||
21 | }; | ||
22 | |||
7 | typedef struct file_header_t { | 23 | typedef struct file_header_t { |
8 | char *name; | 24 | char *name; |
9 | char *link_target; | 25 | char *link_target; |