Move bunzip2 idecompression code to libunarchive

This commit is contained in:
Glenn L McGrath 2002-11-03 07:28:38 +00:00
parent 97b141ac69
commit 60bce4905c
4 changed files with 1815 additions and 1787 deletions

File diff suppressed because it is too large Load Diff

View File

@ -47,6 +47,7 @@ LIBUNARCHIVE-y:= \
check_trailer_gzip.o \ check_trailer_gzip.o \
copy_file_chunk_fd.o \ copy_file_chunk_fd.o \
data_align.o \ data_align.o \
decompress_bunzip2.o \
find_list_entry.o \ find_list_entry.o \
init_handle.o \ init_handle.o \
seek_sub_file.o \ seek_sub_file.o \

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@
#define ARCHIVE_EXTRACT_QUIET 8 #define ARCHIVE_EXTRACT_QUIET 8
#include <sys/types.h> #include <sys/types.h>
#include <stdio.h>
typedef struct gunzip_s { typedef struct gunzip_s {
unsigned short buffer_count; unsigned short buffer_count;
@ -90,6 +91,8 @@ extern char get_header_ar(archive_handle_t *archive_handle);
extern char get_header_tar(archive_handle_t *archive_handle); extern char get_header_tar(archive_handle_t *archive_handle);
extern char get_header_tar_gz(archive_handle_t *archive_handle); extern char get_header_tar_gz(archive_handle_t *archive_handle);
extern unsigned char uncompressStream(FILE *zStream, FILE *stream);
extern void seek_sub_file(int src_fd, unsigned int amount); extern void seek_sub_file(int src_fd, unsigned int amount);
extern const unsigned short data_align(const int src_fd, const unsigned int offset, const unsigned short align_to); extern const unsigned short data_align(const int src_fd, const unsigned int offset, const unsigned short align_to);
extern const llist_t *add_to_list(const llist_t *old_head, const char *new_item); extern const llist_t *add_to_list(const llist_t *old_head, const char *new_item);