summaryrefslogtreecommitdiff
path: root/src/linux/sbrk.c
blob: b2943a9239533967b1f8468dc607804b31335b0d (plain)
1
2
3
4
5
6
7
#include <stddef.h>
#include "syscall.h"

void *sbrk(ptrdiff_t inc)
{
	return (void *)syscall(SYS_brk, syscall(SYS_brk, 0)+inc);
}