summaryrefslogtreecommitdiff
path: root/src/libc/stdlib.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-05 13:53:42 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-05 13:53:42 +0200
commitc55bc80baa51dc1028cbbae8a02540cfe4c56557 (patch)
treecc8f9e327d9e68eb6aee9ca781838c473074fa60 /src/libc/stdlib.h
parentb281252aac949fe54057608edb20cdfbe20eaed0 (diff)
downloadabaos-c55bc80baa51dc1028cbbae8a02540cfe4c56557.tar.gz
abaos-c55bc80baa51dc1028cbbae8a02540cfe4c56557.tar.bz2
'mem' command shows memory usage of kernel heap now
implemented a malloc/free and memory manager (simplest possible implementation, just allocating linearly and never freeing)
Diffstat (limited to 'src/libc/stdlib.h')
-rw-r--r--src/libc/stdlib.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libc/stdlib.h b/src/libc/stdlib.h
index 331012e..ff6b67f 100644
--- a/src/libc/stdlib.h
+++ b/src/libc/stdlib.h
@@ -1,6 +1,15 @@
#ifndef STDLIB_H
#define STDLIB_H
+#include "stddef.h"
+
+#include "memorymanagement.h"
+
char *itoa( int v, char *s, int base );
+void *malloc( size_t size );
+void free( void *p );
+
+void __stdlib_set_memory_manager( memory_manager_t *memory_manager );
+
#endif // STDLIB_H