musl/src/linux/brk.c
Rich Felker 863d628d93 disable the brk function
the reasons are the same as for sbrk. unlike sbrk, there is no safe
usage because brk does not return any useful information, so it should
just fail unconditionally.
2014-01-02 17:13:19 -05:00

7 lines
96 B
C

#include <errno.h>
#include "syscall.h"
int brk(void *end)
{
return __syscall_ret(-ENOMEM);
}