projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
avoid linear-time if/else special cases in sysconf
[musl]
/
src
/
linux
/
sbrk.c
1
#include <stdint.h>
2
#include <errno.h>
3
#include "syscall.h"
4
5
void *sbrk(intptr_t inc)
6
{
7
if (inc) return (void *)__syscall_ret(-ENOMEM);
8
return (void *)__syscall(SYS_brk, 0);
9
}