Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / valloc.c
blob0253866635a8ffe5b665755b1e5e46f488b51538
1 #ifndef MALLOC_PROVIDED
2 /* valloc.c -- a wrapper for valloc_r and pvalloc_r. */
4 #include <_ansi.h>
5 #include <reent.h>
6 #include <stdlib.h>
7 #include <malloc.h>
9 #ifndef _REENT_ONLY
11 void *
12 valloc (size_t nbytes)
14 return _valloc_r (_REENT, nbytes);
17 void *
18 pvalloc (size_t nbytes)
20 return _pvalloc_r (_REENT, nbytes);
23 #endif
24 #endif