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.
This commit is contained in:
Rich Felker 2014-01-02 17:13:19 -05:00
parent 7a995fe706
commit 863d628d93
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#include <errno.h>
#include "syscall.h"
int brk(void *end)
{
return -(syscall(SYS_brk, end) != (unsigned long)end);
return __syscall_ret(-ENOMEM);
}