summaryrefslogblamecommitdiff
path: root/src/linux/sbrk.c
blob: 56f60d1b492540ea8145353e349b7562dfa2b90d (plain) (tree)
1
2
3
4
5
6
7






                                                                     
#include <stddef.h>
#include "syscall.h"

void *sbrk(ptrdiff_t inc)
{
	return (void *)syscall1(__NR_brk, syscall1(__NR_brk, 0)+inc);
}