projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avoid linear-time if/else special cases in sysconf
[musl]
/
src
/
linux
/
brk.c
diff --git
a/src/linux/brk.c
b/src/linux/brk.c
index
3c2982c
..
ffdbbd5
100644
(file)
--- a/
src/linux/brk.c
+++ b/
src/linux/brk.c
@@
-1,6
+1,7
@@
+#include <errno.h>
#include "syscall.h"
int brk(void *end)
{
- return
-(syscall1(__NR_brk, (long)end) == -1
);
+ return
__syscall_ret(-ENOMEM
);
}