diff options
Diffstat (limited to 'src/malloc/__brk.c')
-rw-r--r-- | src/malloc/__brk.c | 7 |
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); +} |