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
release 1.2.5
[musl.git]
/
src
/
linux
/
sbrk.c
blob
bb866305844413e7ccc790480e73c6820dc7de13
1
#define _BSD_SOURCE
2
#include <unistd.h>
3
#include <stdint.h>
4
#include <errno.h>
5
#include
"syscall.h"
6
7
void
*
sbrk
(
intptr_t
inc
)
8
{
9
if
(
inc
)
return
(
void
*)
__syscall_ret
(-
ENOMEM
);
10
return
(
void
*)
__syscall
(
SYS_brk
,
0
);
11
}