diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-04-10 21:40:19 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-04-10 21:40:19 +0000 |
commit | 6ba5abac8daa48b47c2905d306740cfd4387af6d (patch) | |
tree | 51bc0b498a5e16f8041604d913e25708cc76058f /include/unarchive.h | |
parent | 48b6c559ccf5bc74eaa7e334310e9edf367033e2 (diff) | |
download | busybox-w32-6ba5abac8daa48b47c2905d306740cfd4387af6d.tar.gz busybox-w32-6ba5abac8daa48b47c2905d306740cfd4387af6d.tar.bz2 busybox-w32-6ba5abac8daa48b47c2905d306740cfd4387af6d.zip |
make compressed help code NOMMU- and NOFORK-friendly -
no forking anymore, bunzip2 unpack routine now does all it in memory.
git-svn-id: svn://busybox.net/trunk/busybox@18392 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/unarchive.h')
-rw-r--r-- | include/unarchive.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/unarchive.h b/include/unarchive.h index 36b56a925..8aa90becc 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -102,6 +102,11 @@ extern const llist_t *find_list_entry(const llist_t *list, const char *filename) | |||
102 | extern const llist_t *find_list_entry2(const llist_t *list, const char *filename); | 102 | extern const llist_t *find_list_entry2(const llist_t *list, const char *filename); |
103 | 103 | ||
104 | extern USE_DESKTOP(long long) int uncompressStream(int src_fd, int dst_fd); | 104 | extern USE_DESKTOP(long long) int uncompressStream(int src_fd, int dst_fd); |
105 | /* A bit of bunzip2 internals are exposed for compressed help support: */ | ||
106 | typedef struct bunzip_data bunzip_data; | ||
107 | int start_bunzip(bunzip_data **bdp, int in_fd, const unsigned char *inbuf, int len); | ||
108 | int read_bunzip(bunzip_data *bd, char *outbuf, int len); | ||
109 | void dealloc_bunzip(bunzip_data *bd); | ||
105 | 110 | ||
106 | typedef struct inflate_unzip_result { | 111 | typedef struct inflate_unzip_result { |
107 | off_t bytes_out; | 112 | off_t bytes_out; |