repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix the use of uninitialized value in regcomp
[musl.git]
/
src
/
linux
/
sbrk.c
blob
1e82d643771e4ad251253990264b0a5e42cfac3a
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
}