repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
syscalls
/
syssbrk.c
blob
de368678e7d4a6b4e514de6cfa0988c8968d34e5
1
/* connector for sbrk */
2
3
#include <reent.h>
4
#include <unistd.h>
5
6
extern
void
*
_sbrk_r
(
struct
_reent
*,
ptrdiff_t
);
7
extern
void
*
_sbrk
(
ptrdiff_t
);
8
9
void
*
10
_DEFUN
(
sbrk
, (
incr
),
11
ptrdiff_t
incr
)
12
{
13
#ifdef REENTRANT_SYSCALLS_PROVIDED
14
return
_sbrk_r
(
_REENT
,
incr
);
15
#else
16
return
_sbrk
(
incr
);
17
#endif
18
}