aboutsummaryrefslogtreecommitdiff
path: root/src/malloc/__brk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc/__brk.c')
-rw-r--r--src/malloc/__brk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/malloc/__brk.c b/src/malloc/__brk.c
new file mode 100644
index 0000000..e3b3af3
--- /dev/null
+++ b/src/malloc/__brk.c
@@ -0,0 +1,7 @@
+#include <stdint.h>
+#include "syscall.h"
+
+uintptr_t __brk(uintptr_t newbrk)
+{
+ return syscall1(__NR_brk, newbrk);
+}