diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-02-19 19:55:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-02-19 19:55:40 +0000 |
commit | 89376b7141edb6f927fb940c27391cda6e67c785 (patch) | |
tree | 57dd01fd9328b879289493ba848ae5c34c607b91 /bsd_eth_drivers/libbsdport/malloc.c | |
download | libbsdport-89376b7141edb6f927fb940c27391cda6e67c785.tar.bz2 |
Initial import.initial
Diffstat (limited to 'bsd_eth_drivers/libbsdport/malloc.c')
-rw-r--r-- | bsd_eth_drivers/libbsdport/malloc.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bsd_eth_drivers/libbsdport/malloc.c b/bsd_eth_drivers/libbsdport/malloc.c new file mode 100644 index 0000000..116b0e5 --- /dev/null +++ b/bsd_eth_drivers/libbsdport/malloc.c @@ -0,0 +1,17 @@ +#include <stdlib.h> + +/* sometimes we want the original versions, + * not malloc/free shadowed by rtems' bsdnet port + */ + +void * +real_libc_malloc(size_t s) +{ + return malloc(s); +} + +void +real_libc_free(void *p) +{ + free(p); +} |