diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index e516f0ee3..1cc2a48b9 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -663,6 +663,8 @@ char *xstrndup(const char *s, int n) FAST_FUNC RETURNS_MALLOC; | |||
663 | void overlapping_strcpy(char *dst, const char *src) FAST_FUNC; | 663 | void overlapping_strcpy(char *dst, const char *src) FAST_FUNC; |
664 | char *safe_strncpy(char *dst, const char *src, size_t size) FAST_FUNC; | 664 | char *safe_strncpy(char *dst, const char *src, size_t size) FAST_FUNC; |
665 | char *strncpy_IFNAMSIZ(char *dst, const char *src) FAST_FUNC; | 665 | char *strncpy_IFNAMSIZ(char *dst, const char *src) FAST_FUNC; |
666 | unsigned count_strstr(const char *str, const char *sub) FAST_FUNC; | ||
667 | char *xmalloc_substitute_string(const char *src, int count, const char *sub, const char *repl) FAST_FUNC; | ||
666 | /* Guaranteed to NOT be a macro (smallest code). Saves nearly 2k on uclibc. | 668 | /* Guaranteed to NOT be a macro (smallest code). Saves nearly 2k on uclibc. |
667 | * But potentially slow, don't use in one-billion-times loops */ | 669 | * But potentially slow, don't use in one-billion-times loops */ |
668 | int bb_putchar(int ch) FAST_FUNC; | 670 | int bb_putchar(int ch) FAST_FUNC; |
@@ -749,12 +751,12 @@ extern void *xmalloc_xopen_read_close(const char *filename, size_t *maxsz_p) FAS | |||
749 | 751 | ||
750 | #if SEAMLESS_COMPRESSION | 752 | #if SEAMLESS_COMPRESSION |
751 | /* Autodetects gzip/bzip2 formats. fd may be in the middle of the file! */ | 753 | /* Autodetects gzip/bzip2 formats. fd may be in the middle of the file! */ |
752 | extern int setup_unzip_on_fd(int fd, int fail_if_not_detected) FAST_FUNC; | 754 | extern int setup_unzip_on_fd(int fd, int fail_if_not_compressed) FAST_FUNC; |
753 | /* Autodetects .gz etc */ | 755 | /* Autodetects .gz etc */ |
754 | extern int open_zipped(const char *fname) FAST_FUNC; | 756 | extern int open_zipped(const char *fname, int fail_if_not_compressed) FAST_FUNC; |
755 | #else | 757 | #else |
756 | # define setup_unzip_on_fd(...) (0) | 758 | # define setup_unzip_on_fd(...) (0) |
757 | # define open_zipped(fname) open((fname), O_RDONLY); | 759 | # define open_zipped(fname, fail_if_not_compressed) open((fname), O_RDONLY); |
758 | #endif | 760 | #endif |
759 | extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; | 761 | extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; |
760 | 762 | ||