ref: c79199da3e3565e28c2220a8474712a9fabc76e4
dir: /src/libc/arch/linux/_brk.c/
#include <errno.h> #include <stddef.h> #include "../../libc.h" #include "../../syscall.h" #include "brk.h" int _brk(void *addr) { if (_sys_brk(addr) != addr) { errno = ENOMEM; return -1; } return 0; }