aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 2eb1fef33..86ad0a057 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -863,7 +863,7 @@ unsigned bb_clk_tck(void) FAST_FUNC;
863 863
864#if SEAMLESS_COMPRESSION 864#if SEAMLESS_COMPRESSION
865/* Autodetects gzip/bzip2 formats. fd may be in the middle of the file! */ 865/* Autodetects gzip/bzip2 formats. fd may be in the middle of the file! */
866extern int setup_unzip_on_fd(int fd, int fail_if_not_compressed) FAST_FUNC; 866int setup_unzip_on_fd(int fd, int fail_if_not_compressed) FAST_FUNC;
867/* Autodetects .gz etc */ 867/* Autodetects .gz etc */
868extern int open_zipped(const char *fname, int fail_if_not_compressed) FAST_FUNC; 868extern int open_zipped(const char *fname, int fail_if_not_compressed) FAST_FUNC;
869extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; 869extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;
@@ -872,6 +872,8 @@ extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p)
872# define open_zipped(fname, fail_if_not_compressed) open((fname), O_RDONLY); 872# define open_zipped(fname, fail_if_not_compressed) open((fname), O_RDONLY);
873# define xmalloc_open_zipped_read_close(fname, maxsz_p) xmalloc_open_read_close((fname), (maxsz_p)) 873# define xmalloc_open_zipped_read_close(fname, maxsz_p) xmalloc_open_read_close((fname), (maxsz_p))
874#endif 874#endif
875/* lzma has no signature, need a little helper. NB: exist only for ENABLE_FEATURE_SEAMLESS_LZMA=y */
876void setup_lzma_on_fd(int fd) FAST_FUNC;
875 877
876extern ssize_t safe_write(int fd, const void *buf, size_t count) FAST_FUNC; 878extern ssize_t safe_write(int fd, const void *buf, size_t count) FAST_FUNC;
877// NB: will return short write on error, not -1, 879// NB: will return short write on error, not -1,