提交 863d628d 编写于 作者: R Rich Felker

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.
上级 7a995fe7
#include <errno.h>
#include "syscall.h"
int brk(void *end)
{
return -(syscall(SYS_brk, end) != (unsigned long)end);
return __syscall_ret(-ENOMEM);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册