diff options
author | Denis Vlasenko | 2007-04-10 21:40:19 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-04-10 21:40:19 +0000 |
commit | c6758a07c68033627a692cda27aebc8f6a662e7f (patch) | |
tree | 51bc0b498a5e16f8041604d913e25708cc76058f /include/unarchive.h | |
parent | 335b63d8d1876ce4e172ebcc9d64544785682244 (diff) | |
download | busybox-c6758a07c68033627a692cda27aebc8f6a662e7f.zip busybox-c6758a07c68033627a692cda27aebc8f6a662e7f.tar.gz |
make compressed help code NOMMU- and NOFORK-friendly -
no forking anymore, bunzip2 unpack routine now does all it in memory.
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 36b56a9..8aa90be 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) extern const llist_t *find_list_entry2(const llist_t *list, const char *filename); extern USE_DESKTOP(long long) int uncompressStream(int src_fd, int dst_fd); +/* A bit of bunzip2 internals are exposed for compressed help support: */ +typedef struct bunzip_data bunzip_data; +int start_bunzip(bunzip_data **bdp, int in_fd, const unsigned char *inbuf, int len); +int read_bunzip(bunzip_data *bd, char *outbuf, int len); +void dealloc_bunzip(bunzip_data *bd); typedef struct inflate_unzip_result { off_t bytes_out; |