mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 03:19:54 +08:00
e91ec2e3e6
* libc/stdlib/mlock.c: Ditto. * libc/stdlib/msize.c: Ditto. * libc/stdlib/msize.c: Ditto. * libc/stdlib/mtrim.c: Ditto. * libc/stdlib/valloc.c: Ditto.
27 lines
376 B
C
27 lines
376 B
C
#ifndef MALLOC_PROVIDED
|
|
/* valloc.c -- a wrapper for valloc_r and pvalloc_r. */
|
|
|
|
#include <_ansi.h>
|
|
#include <reent.h>
|
|
#include <stdlib.h>
|
|
#include <malloc.h>
|
|
|
|
#ifndef _REENT_ONLY
|
|
|
|
_PTR
|
|
_DEFUN (valloc, (nbytes),
|
|
size_t nbytes)
|
|
{
|
|
return _valloc_r (_REENT, nbytes);
|
|
}
|
|
|
|
_PTR
|
|
_DEFUN (pvalloc, (nbytes),
|
|
size_t nbytes)
|
|
{
|
|
return _pvalloc_r (_REENT, nbytes);
|
|
}
|
|
|
|
#endif
|
|
#endif
|