aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libbb.h7
-rw-r--r--libbb/copy_file_chunk.c5
-rw-r--r--libbb/libbb.h7
3 files changed, 12 insertions, 7 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 46a0682b2..ec2a3a8ce 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -95,7 +95,7 @@ void reset_ino_dev_hashtable(void);
95 95
96int copy_file(const char *src_name, const char *dst_name, 96int copy_file(const char *src_name, const char *dst_name,
97 int set_modes, int follow_links, int force_flag, int quiet_flag); 97 int set_modes, int follow_links, int force_flag, int quiet_flag);
98int copy_file_chunk(FILE *src_file, FILE *dst_file, off_t chunksize); 98int copy_file_chunk(FILE *src_file, FILE *dst_file, unsigned long long chunksize);
99char *buildName(const char *dirName, const char *fileName); 99char *buildName(const char *dirName, const char *fileName);
100int makeString(int argc, const char **argv, char *buf, int bufLen); 100int makeString(int argc, const char **argv, char *buf, int bufLen);
101char *getChunk(int size); 101char *getChunk(int size);
@@ -234,10 +234,11 @@ typedef enum extract_function_e {
234 extract_info = 4, 234 extract_info = 4,
235 extract_extract = 8, 235 extract_extract = 8,
236 extract_verbose_extract = 16, 236 extract_verbose_extract = 16,
237 extract_list = 32 237 extract_list = 32,
238 extract_fsys_tarfile = 64
238} extract_function_t; 239} extract_function_t;
239extern int deb_extract(const char *package_filename, int function, char *target_dir); 240extern int deb_extract(const char *package_filename, int function, char *target_dir);
240extern int untar(FILE *src_tar_file, int function, char *base_path); 241extern int untar(FILE *src_tar_file, int untar_function, char *base_path);
241 242
242extern int unzip(FILE *l_in_file, FILE *l_out_file); 243extern int unzip(FILE *l_in_file, FILE *l_out_file);
243extern void gz_close(int gunzip_pid); 244extern void gz_close(int gunzip_pid);
diff --git a/libbb/copy_file_chunk.c b/libbb/copy_file_chunk.c
index 90b6b8238..e9663c354 100644
--- a/libbb/copy_file_chunk.c
+++ b/libbb/copy_file_chunk.c
@@ -31,8 +31,11 @@
31 31
32/* 32/*
33 * Copy chunksize bytes between two file descriptors 33 * Copy chunksize bytes between two file descriptors
34 *
35 * unsigned long is used so that if -1 is passed as chunksize it will read as
36 * much as possible, and it will work with off_t or off64_t
34 */ 37 */
35extern int copy_file_chunk(FILE *src_file, FILE *dst_file, off_t chunksize) 38extern int copy_file_chunk(FILE *src_file, FILE *dst_file, unsigned long long chunksize)
36{ 39{
37 off_t size, amount_written; 40 off_t size, amount_written;
38 char buffer[BUFSIZ]; /* BUFSIZ is declared in stdio.h */ 41 char buffer[BUFSIZ]; /* BUFSIZ is declared in stdio.h */
diff --git a/libbb/libbb.h b/libbb/libbb.h
index 46a0682b2..ec2a3a8ce 100644
--- a/libbb/libbb.h
+++ b/libbb/libbb.h
@@ -95,7 +95,7 @@ void reset_ino_dev_hashtable(void);
95 95
96int copy_file(const char *src_name, const char *dst_name, 96int copy_file(const char *src_name, const char *dst_name,
97 int set_modes, int follow_links, int force_flag, int quiet_flag); 97 int set_modes, int follow_links, int force_flag, int quiet_flag);
98int copy_file_chunk(FILE *src_file, FILE *dst_file, off_t chunksize); 98int copy_file_chunk(FILE *src_file, FILE *dst_file, unsigned long long chunksize);
99char *buildName(const char *dirName, const char *fileName); 99char *buildName(const char *dirName, const char *fileName);
100int makeString(int argc, const char **argv, char *buf, int bufLen); 100int makeString(int argc, const char **argv, char *buf, int bufLen);
101char *getChunk(int size); 101char *getChunk(int size);
@@ -234,10 +234,11 @@ typedef enum extract_function_e {
234 extract_info = 4, 234 extract_info = 4,
235 extract_extract = 8, 235 extract_extract = 8,
236 extract_verbose_extract = 16, 236 extract_verbose_extract = 16,
237 extract_list = 32 237 extract_list = 32,
238 extract_fsys_tarfile = 64
238} extract_function_t; 239} extract_function_t;
239extern int deb_extract(const char *package_filename, int function, char *target_dir); 240extern int deb_extract(const char *package_filename, int function, char *target_dir);
240extern int untar(FILE *src_tar_file, int function, char *base_path); 241extern int untar(FILE *src_tar_file, int untar_function, char *base_path);
241 242
242extern int unzip(FILE *l_in_file, FILE *l_out_file); 243extern int unzip(FILE *l_in_file, FILE *l_out_file);
243extern void gz_close(int gunzip_pid); 244extern void gz_close(int gunzip_pid);