From 685f5fd6f473f802b465500d5ec7c1baba0ec357 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sun, 15 Apr 2001 12:51:59 +0000 Subject: untar changed to allow deb_extract to extract to memory, allows better operation of dpkg-deb -f --- libbb/libbb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbb/libbb.h') diff --git a/libbb/libbb.h b/libbb/libbb.h index 515bf2760..569ed9397 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h @@ -239,7 +239,9 @@ typedef enum extract_function_e { extract_field = 128 } extract_function_t; extern int deb_extract(const char *package_filename, int function, char *target_dir); -extern int untar(FILE *src_tar_file, const int untar_function, const char *argument); +extern char *untar(FILE *src_tar_file, FILE *output, const int untar_function, const char *argument); +extern char *read_text_file_to_buffer(FILE *src_file); +extern char *read_package_field(const char *package_buffer); extern int unzip(FILE *l_in_file, FILE *l_out_file); extern void gz_close(int gunzip_pid); -- cgit v1.2.3