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
/
realloc.c
blob
999e8e00b8fa98f1ba1c71960d8e34f39b5a7cb3
1
#ifdef MALLOC_PROVIDED
2
int
_dummy_realloc
=
1
;
3
#else
4
/* realloc.c -- a wrapper for realloc_r. */
5
6
#include <_ansi.h>
7
#include <reent.h>
8
#include <stdlib.h>
9
#include <malloc.h>
10
11
#ifndef _REENT_ONLY
12
13
void
*
14
realloc
(
void
*
ap
,
15
size_t
nbytes
)
16
{
17
return
_realloc_r
(
_REENT
,
ap
,
nbytes
);
18
}
19
20
#endif
21
#endif
/* MALLOC_PROVIDED */