summaryrefslogtreecommitdiff
path: root/src/libc/stdlib.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-13 11:23:03 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-13 11:23:03 +0200
commitebb0e5f9fe6707133dacbe70f80831cd1aa5c974 (patch)
tree23ccd04644fcab179812a093545213dec9907943 /src/libc/stdlib.h
parented869aa3867d134fb37f586f1db029006677cebb (diff)
downloadabaos-ebb0e5f9fe6707133dacbe70f80831cd1aa5c974.tar.gz
abaos-ebb0e5f9fe6707133dacbe70f80831cd1aa5c974.tar.bz2
added a simple test for malloc/free
added a memorymanager initilializer which works on a buffer instead on an offset (thus we can but the heap area also onto the stack for testing) added a kernel_stub module to test modules using kernel_panic (for now, maybe have a callback later)
Diffstat (limited to 'src/libc/stdlib.h')
-rw-r--r--src/libc/stdlib.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libc/stdlib.h b/src/libc/stdlib.h
index 9507fa3..9ff28a3 100644
--- a/src/libc/stdlib.h
+++ b/src/libc/stdlib.h
@@ -3,17 +3,15 @@
#include "stddef.h"
-#ifdef OS_ABAOS
#include "memorymanagement.h"
-#endif
char *itoa( int v, char *s, int base );
+void abort( void );
+
void *malloc( size_t size );
void free( void *p );
-#ifdef OS_ABAOS
void __stdlib_set_memory_manager( memory_manager_t *memory_manager );
-#endif
#endif // STDLIB_H