aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2014-03-11 19:40:20 +0000
committerRon Yorston <rmy@pobox.com>2014-03-11 19:40:20 +0000
commitdec20ad781163656832c571d52d0303c67ea8c09 (patch)
tree830a27bc8f2383d4ba50680f5d6fac1ec5c96b6a /include
parent0a2a7b55a9212d8fc708fd564407e5505b5e8363 (diff)
parent69f9567de28976cfbc7b216c46aa391ce82bd3b7 (diff)
downloadbusybox-w32-dec20ad781163656832c571d52d0303c67ea8c09.tar.gz
busybox-w32-dec20ad781163656832c571d52d0303c67ea8c09.tar.bz2
busybox-w32-dec20ad781163656832c571d52d0303c67ea8c09.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h8
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;
663void overlapping_strcpy(char *dst, const char *src) FAST_FUNC; 663void overlapping_strcpy(char *dst, const char *src) FAST_FUNC;
664char *safe_strncpy(char *dst, const char *src, size_t size) FAST_FUNC; 664char *safe_strncpy(char *dst, const char *src, size_t size) FAST_FUNC;
665char *strncpy_IFNAMSIZ(char *dst, const char *src) FAST_FUNC; 665char *strncpy_IFNAMSIZ(char *dst, const char *src) FAST_FUNC;
666unsigned count_strstr(const char *str, const char *sub) FAST_FUNC;
667char *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 */
668int bb_putchar(int ch) FAST_FUNC; 670int 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! */
752extern int setup_unzip_on_fd(int fd, int fail_if_not_detected) FAST_FUNC; 754extern int setup_unzip_on_fd(int fd, int fail_if_not_compressed) FAST_FUNC;
753/* Autodetects .gz etc */ 755/* Autodetects .gz etc */
754extern int open_zipped(const char *fname) FAST_FUNC; 756extern 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
759extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; 761extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;
760 762