summaryrefslogtreecommitdiff
path: root/src/stdlib/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/malloc.c')
-rw-r--r--src/stdlib/malloc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/stdlib/malloc.c b/src/stdlib/malloc.c
index 01924ee4..733d73b3 100644
--- a/src/stdlib/malloc.c
+++ b/src/stdlib/malloc.c
@@ -1,10 +1,11 @@
-#if 0
-
#include <stdlib.h>
+#include "_stdlib.h"
/** allocate memory **/
void * malloc(size_t size)
{
+ SIGNAL_SAFE(0);
+
if (size == 0) {
return NULL;
}
@@ -23,6 +24,3 @@ RETURN_FAILURE(CONSTANT(NULL))
RETURN_SUCCESS(a pointer to the allocated space)
STDC(1)
*/
-
-
-#endif