aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 11d7f27d3..58a5968c5 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -664,6 +664,15 @@ extern char *xmalloc_reads(int fd, char *pfx, size_t *maxsz_p) FAST_FUNC;
664extern void *xmalloc_read(int fd, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; 664extern void *xmalloc_read(int fd, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;
665/* Returns NULL if file can't be opened (default max size: INT_MAX - 4095) */ 665/* Returns NULL if file can't be opened (default max size: INT_MAX - 4095) */
666extern void *xmalloc_open_read_close(const char *filename, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; 666extern void *xmalloc_open_read_close(const char *filename, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;
667/* Autodetects gzip/bzip2 formats. fd may be in the middle of the file! */
668#if ENABLE_FEATURE_SEAMLESS_LZMA \
669 || ENABLE_FEATURE_SEAMLESS_BZ2 \
670 || ENABLE_FEATURE_SEAMLESS_GZ \
671 /* || ENABLE_FEATURE_SEAMLESS_Z */
672extern int setup_unzip_on_fd(int fd /*, int fail_if_not_detected*/) FAST_FUNC;
673#else
674# define setup_unzip_on_fd(...) ((void)0)
675#endif
667/* Autodetects .gz etc */ 676/* Autodetects .gz etc */
668extern int open_zipped(const char *fname) FAST_FUNC; 677extern int open_zipped(const char *fname) FAST_FUNC;
669extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; 678extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;