diff options
author | Denis Vlasenko | 2007-06-08 13:05:39 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-06-08 13:05:39 +0000 |
commit | c14d39e83a7f55ab9b92e98673a281fd6565c32d (patch) | |
tree | f1cfe7f071b228cf7f1a732046cabf18fa9421b8 /archival/libunarchive | |
parent | def8260219797b0f9f734915f4918f34e85e7049 (diff) | |
download | busybox-c14d39e83a7f55ab9b92e98673a281fd6565c32d.zip busybox-c14d39e83a7f55ab9b92e98673a281fd6565c32d.tar.gz |
rmp: add optional support for bz2 data. +50 bytes of code
Diffstat (limited to 'archival/libunarchive')
-rw-r--r-- | archival/libunarchive/decompress_bunzip2.c | 4 | ||||
-rw-r--r-- | archival/libunarchive/decompress_unlzma.c | 2 | ||||
-rw-r--r-- | archival/libunarchive/decompress_unzip.c | 4 | ||||
-rw-r--r-- | archival/libunarchive/get_header_tar_bz2.c | 2 | ||||
-rw-r--r-- | archival/libunarchive/get_header_tar_gz.c | 2 | ||||
-rw-r--r-- | archival/libunarchive/get_header_tar_lzma.c | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c index a9d5d68..fe1d3ff 100644 --- a/archival/libunarchive/decompress_bunzip2.c +++ b/archival/libunarchive/decompress_bunzip2.c @@ -700,7 +700,7 @@ void dealloc_bunzip(bunzip_data *bd) /* Decompress src_fd to dst_fd. Stops at end of bzip data, not end of file. */ USE_DESKTOP(long long) int -uncompressStream(int src_fd, int dst_fd) +unpack_bz2_stream(int src_fd, int dst_fd) { USE_DESKTOP(long long total_written = 0;) char *outbuf; @@ -751,7 +751,7 @@ static char *const bunzip_errors[] = { /* Dumb little test thing, decompress stdin to stdout */ int main(int argc, char **argv) { - int i = uncompressStream(0, 1); + int i = unpack_bz2_stream(0, 1); char c; if (i < 0) diff --git a/archival/libunarchive/decompress_unlzma.c b/archival/libunarchive/decompress_unlzma.c index 15a0275..907e44e 100644 --- a/archival/libunarchive/decompress_unlzma.c +++ b/archival/libunarchive/decompress_unlzma.c @@ -228,7 +228,7 @@ enum { USE_DESKTOP(long long) int -unlzma(int src_fd, int dst_fd) +unpack_lzma_stream(int src_fd, int dst_fd) { USE_DESKTOP(long long total_written = 0;) lzma_header_t header; diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index 19ce509..c698763 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c @@ -981,7 +981,7 @@ static int inflate_get_next_window(STATE_PARAM_ONLY) } -/* Called from inflate_gunzip() and inflate_unzip() */ +/* Called from unpack_gz_stream() and inflate_unzip() */ /* NB: bytebuffer is allocated here but freeing it is left to the caller! */ static USE_DESKTOP(long long) int inflate_unzip_internal(STATE_PARAM int in, int out) @@ -1056,7 +1056,7 @@ inflate_unzip(inflate_unzip_result *res, unsigned bufsize, int in, int out) USE_DESKTOP(long long) int -inflate_gunzip(int in, int out) +unpack_gz_stream(int in, int out) { uint32_t stored_crc = 0; unsigned count; diff --git a/archival/libunarchive/get_header_tar_bz2.c b/archival/libunarchive/get_header_tar_bz2.c index d8715c0..e11f44c 100644 --- a/archival/libunarchive/get_header_tar_bz2.c +++ b/archival/libunarchive/get_header_tar_bz2.c @@ -11,7 +11,7 @@ char get_header_tar_bz2(archive_handle_t *archive_handle) /* Can't lseek over pipes */ archive_handle->seek = seek_by_read; - archive_handle->src_fd = open_transformer(archive_handle->src_fd, uncompressStream); + archive_handle->src_fd = open_transformer(archive_handle->src_fd, unpack_bz2_stream); archive_handle->offset = 0; while (get_header_tar(archive_handle) == EXIT_SUCCESS) /**/; diff --git a/archival/libunarchive/get_header_tar_gz.c b/archival/libunarchive/get_header_tar_gz.c index 69126e0..85070d9 100644 --- a/archival/libunarchive/get_header_tar_gz.c +++ b/archival/libunarchive/get_header_tar_gz.c @@ -20,7 +20,7 @@ char get_header_tar_gz(archive_handle_t *archive_handle) check_header_gzip_or_die(archive_handle->src_fd); - archive_handle->src_fd = open_transformer(archive_handle->src_fd, inflate_gunzip); + archive_handle->src_fd = open_transformer(archive_handle->src_fd, unpack_gz_stream); archive_handle->offset = 0; while (get_header_tar(archive_handle) == EXIT_SUCCESS) /**/; diff --git a/archival/libunarchive/get_header_tar_lzma.c b/archival/libunarchive/get_header_tar_lzma.c index 5c02767..771f664 100644 --- a/archival/libunarchive/get_header_tar_lzma.c +++ b/archival/libunarchive/get_header_tar_lzma.c @@ -14,7 +14,7 @@ char get_header_tar_lzma(archive_handle_t * archive_handle) /* Can't lseek over pipes */ archive_handle->seek = seek_by_read; - archive_handle->src_fd = open_transformer(archive_handle->src_fd, unlzma); + archive_handle->src_fd = open_transformer(archive_handle->src_fd, unpack_lzma_stream); archive_handle->offset = 0; while (get_header_tar(archive_handle) == EXIT_SUCCESS) /**/; |