fix brk/sbrk behavior to match the real legacy functions
[musl] / src / linux / brk.c
1 #include "syscall.h"
2
3 int brk(void *end)
4 {
5         return -(syscall(SYS_brk, end) != (unsigned long)end);
6 }