From 97a8dd3857aea9730382e2975a2ee2000fd23ebb Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 1 Oct 2006 15:55:11 +0000 Subject: g[un]zip: add support for -v (verbose). Add CONFIG_DESKTOP, almost all bloat from this change is hidden under that. --- include/libbb.h | 6 +++--- include/unarchive.h | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 67cf4939c..b4516e99a 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -339,7 +339,7 @@ char *last_char_is(const char *s, int c); char *fgets_str(FILE *file, const char *terminating_string); -extern int uncompress(int fd_in, int fd_out); +extern USE_DESKTOP(long long) int uncompress(int fd_in, int fd_out); extern int inflate(int in, int out); extern struct hostent *xgethostbyname(const char *name); @@ -353,9 +353,9 @@ extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host); // This is declared here rather than #including in order to avoid // confusing the two versions of basename. See the dirname/basename man page // for details. -char *dirname (char *path); +char *dirname(char *path); -int bb_make_directory (char *path, long mode, int flags); +int bb_make_directory(char *path, long mode, int flags); int get_signum(const char *name); const char *get_signame(int number); diff --git a/include/unarchive.h b/include/unarchive.h index 653cff80f..82a70aed6 100644 --- a/include/unarchive.h +++ b/include/unarchive.h @@ -100,14 +100,15 @@ extern void data_align(archive_handle_t *archive_handle, const unsigned short bo extern const llist_t *find_list_entry(const llist_t *list, const char *filename); extern const llist_t *find_list_entry2(const llist_t *list, const char *filename); -extern int uncompressStream(int src_fd, int dst_fd); +extern USE_DESKTOP(long long) int uncompressStream(int src_fd, int dst_fd); extern void inflate_init(unsigned int bufsize); extern void inflate_cleanup(void); -extern int inflate_unzip(int in, int out); -extern int inflate_gunzip(int in, int out); -extern int unlzma(int src_fd, int dst_fd); +extern USE_DESKTOP(long long) int inflate_unzip(int in, int out); +extern USE_DESKTOP(long long) int inflate_gunzip(int in, int out); +extern USE_DESKTOP(long long) int unlzma(int src_fd, int dst_fd); -extern int open_transformer(int src_fd, int (*transformer)(int src_fd, int dst_fd)); +extern int open_transformer(int src_fd, + USE_DESKTOP(long long) int (*transformer)(int src_fd, int dst_fd)); #endif -- cgit v1.2.3