diff options
author | Denis Vlasenko | 2006-10-01 15:55:11 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-01 15:55:11 +0000 |
commit | 97a8dd3857aea9730382e2975a2ee2000fd23ebb (patch) | |
tree | 608f73898f3ed5f466dff68189625fa9328a15be /include | |
parent | f8aa109a9f7c67b291f240fb3ed91da90f26359b (diff) | |
download | busybox-97a8dd3857aea9730382e2975a2ee2000fd23ebb.zip busybox-97a8dd3857aea9730382e2975a2ee2000fd23ebb.tar.gz |
g[un]zip: add support for -v (verbose).
Add CONFIG_DESKTOP, almost all bloat from this change
is hidden under that.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 6 | ||||
-rw-r--r-- | include/unarchive.h | 11 |
2 files changed, 9 insertions, 8 deletions
diff --git a/include/libbb.h b/include/libbb.h index 67cf493..b4516e9 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 <libgen.h> 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 653cff8..82a70ae 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 |