diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 12 |
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. */ |
| 567 | extern void *malloc_or_warn(size_t size) FAST_FUNC; | 567 | void *malloc_or_warn(size_t size) FAST_FUNC; |
| 568 | extern void *xmalloc(size_t size) FAST_FUNC; | 568 | void *xmalloc(size_t size) FAST_FUNC; |
| 569 | extern void *xzalloc(size_t size) FAST_FUNC; | 569 | void *xzalloc(size_t size) FAST_FUNC; |
| 570 | extern void *xrealloc(void *old, size_t size) FAST_FUNC; | 570 | void *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)) | ||
| 573 | void* xrealloc_vector_helper(void *vector, unsigned sizeof_and_shift, int idx) FAST_FUNC; | ||
| 574 | |||
| 571 | 575 | ||
| 572 | extern ssize_t safe_read(int fd, void *buf, size_t count) FAST_FUNC; | 576 | extern ssize_t safe_read(int fd, void *buf, size_t count) FAST_FUNC; |
| 573 | extern ssize_t nonblock_safe_read(int fd, void *buf, size_t count) FAST_FUNC; | 577 | extern ssize_t nonblock_safe_read(int fd, void *buf, size_t count) FAST_FUNC; |
