summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/libbsdport/malloc.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-02-19 19:55:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-02-19 19:55:40 +0000
commit89376b7141edb6f927fb940c27391cda6e67c785 (patch)
tree57dd01fd9328b879289493ba848ae5c34c607b91 /bsd_eth_drivers/libbsdport/malloc.c
downloadlibbsdport-89376b7141edb6f927fb940c27391cda6e67c785.tar.bz2
Initial import.initial
Diffstat (limited to 'bsd_eth_drivers/libbsdport/malloc.c')
-rw-r--r--bsd_eth_drivers/libbsdport/malloc.c17
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);
+}