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: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git]
/
newlib
/
libc
/
stdlib
/
valloc.c
blob
0253866635a8ffe5b665755b1e5e46f488b51538
1
#ifndef MALLOC_PROVIDED
2
/* valloc.c -- a wrapper for valloc_r and pvalloc_r. */
3
4
#include <_ansi.h>
5
#include <reent.h>
6
#include <stdlib.h>
7
#include <malloc.h>
8
9
#ifndef _REENT_ONLY
10
11
void
*
12
valloc
(
size_t
nbytes
)
13
{
14
return
_valloc_r
(
_REENT
,
nbytes
);
15
}
16
17
void
*
18
pvalloc
(
size_t
nbytes
)
19
{
20
return
_pvalloc_r
(
_REENT
,
nbytes
);
21
}
22
23
#endif
24
#endif