aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 378cb4401..fc65d52ff 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -564,10 +564,14 @@ void fputc_printable(int ch, FILE *file) FAST_FUNC;
564 564
565/* dmalloc will redefine these to it's own implementation. It is safe 565/* dmalloc will redefine these to it's own implementation. It is safe
566 * to have the prototypes here unconditionally. */ 566 * to have the prototypes here unconditionally. */
567extern void *malloc_or_warn(size_t size) FAST_FUNC; 567void *malloc_or_warn(size_t size) FAST_FUNC;
568extern void *xmalloc(size_t size) FAST_FUNC; 568void *xmalloc(size_t size) FAST_FUNC;
569extern void *xzalloc(size_t size) FAST_FUNC; 569void *xzalloc(size_t size) FAST_FUNC;
570extern void *xrealloc(void *old, size_t size) FAST_FUNC; 570void *xrealloc(void *old, size_t size) FAST_FUNC;
571#define xrealloc_vector(vector, shift, idx) \
572 xrealloc_vector_helper((vector), (sizeof((vector)[0]) << 8) + (shift), (idx))
573void* xrealloc_vector_helper(void *vector, unsigned sizeof_and_shift, int idx) FAST_FUNC;
574
571 575
572extern ssize_t safe_read(int fd, void *buf, size_t count) FAST_FUNC; 576extern ssize_t safe_read(int fd, void *buf, size_t count) FAST_FUNC;
573extern ssize_t nonblock_safe_read(int fd, void *buf, size_t count) FAST_FUNC; 577extern ssize_t nonblock_safe_read(int fd, void *buf, size_t count) FAST_FUNC;