Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
5ca6953f3a1cc29320484ad8585f6e2b4239d6cf
/
.
/
src
/
linux
/
sbrk.c
blob: bb866305844413e7ccc790480e73c6820dc7de13 [
file
] [
log
] [
blame
]
#define
_BSD_SOURCE
#include
<unistd.h>
#include
<stdint.h>
#include
<errno.h>
#include
"syscall.h"
void
*
sbrk
(
intptr_t
inc
)
{
if
(
inc
)
return
(
void
*)
__syscall_ret
(-
ENOMEM
);
return
(
void
*)
__syscall
(
SYS_brk
,
0
);
}