From f3b3ce4ae7975a5f16e749bf77d2012320ab9e35 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 17 Jan 2008 15:06:30 +0000 Subject: minios: add realloc Signed-off-by: Samuel Thibault Signed-off-by: Tim Deegan --- extras/mini-os/include/xmalloc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'extras/mini-os/include/xmalloc.h') diff --git a/extras/mini-os/include/xmalloc.h b/extras/mini-os/include/xmalloc.h index f5e721fa16..e8052ac68d 100644 --- a/extras/mini-os/include/xmalloc.h +++ b/extras/mini-os/include/xmalloc.h @@ -9,12 +9,15 @@ #define malloc(size) _xmalloc(size, 4) #define free(ptr) xfree(ptr) +#define realloc(ptr, size) _realloc(ptr, size) /* Free any of the above. */ extern void xfree(const void *); /* Underlying functions */ extern void *_xmalloc(size_t size, size_t align); +extern void *_realloc(void *ptr, size_t size); + static inline void *_xmalloc_array(size_t size, size_t align, size_t num) { /* Check for overflow. */ -- cgit v1.2.3