diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 5 | ||||
-rw-r--r-- | include/unarchive.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index 6fff441c5..2be13891c 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -403,9 +403,10 @@ extern char *xasprintf(const char *format, ...) __attribute__ ((format (printf, | |||
403 | 403 | ||
404 | /* dmalloc will redefine these to it's own implementation. It is safe | 404 | /* dmalloc will redefine these to it's own implementation. It is safe |
405 | * to have the prototypes here unconditionally. */ | 405 | * to have the prototypes here unconditionally. */ |
406 | extern void *malloc_or_warn(size_t size); | ||
406 | extern void *xmalloc(size_t size); | 407 | extern void *xmalloc(size_t size); |
407 | extern void *xrealloc(void *old, size_t size); | ||
408 | extern void *xzalloc(size_t size); | 408 | extern void *xzalloc(size_t size); |
409 | extern void *xrealloc(void *old, size_t size); | ||
409 | 410 | ||
410 | extern ssize_t safe_read(int fd, void *buf, size_t count); | 411 | extern ssize_t safe_read(int fd, void *buf, size_t count); |
411 | extern ssize_t full_read(int fd, void *buf, size_t count); | 412 | extern ssize_t full_read(int fd, void *buf, size_t count); |
@@ -862,7 +863,7 @@ void md5_begin(md5_ctx_t *ctx); | |||
862 | void md5_hash(const void *data, size_t length, md5_ctx_t *ctx); | 863 | void md5_hash(const void *data, size_t length, md5_ctx_t *ctx); |
863 | void *md5_end(void *resbuf, md5_ctx_t *ctx); | 864 | void *md5_end(void *resbuf, md5_ctx_t *ctx); |
864 | 865 | ||
865 | uint32_t *crc32_filltable(int endian); | 866 | uint32_t *crc32_filltable(uint32_t *tbl256, int endian); |
866 | 867 | ||
867 | 868 | ||
868 | enum { /* DO NOT CHANGE THESE VALUES! cp.c, mv.c, install.c depend on them. */ | 869 | enum { /* DO NOT CHANGE THESE VALUES! cp.c, mv.c, install.c depend on them. */ |
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; |