repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: uname: add host machine tag to sysname.
[newlib-cygwin.git]
/
libgloss
/
libnosys
/
sbrk.c
blob
86c130ab60ffa24bb741e90f187d784915e93de0
1
/* Version of sbrk for no operating system. */
2
3
#include
"config.h"
4
#include <_syslist.h>
5
6
void
*
7
_sbrk
(
incr
)
8
int
incr
;
9
{
10
extern
char
end
;
/* Set by linker. */
11
static char
*
heap_end
;
12
char
*
prev_heap_end
;
13
14
if
(
heap_end
==
0
)
15
heap_end
= &
end
;
16
17
prev_heap_end
=
heap_end
;
18
heap_end
+=
incr
;
19
20
return
(
void
*)
prev_heap_end
;
21
}