Retro68/gcc/newlib/libc/stdlib/valloc.c

25 lines
342 B
C
Raw Normal View History

2017-04-11 21:13:36 +00:00
#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
2018-12-28 15:30:48 +00:00
void *
valloc (size_t nbytes)
2017-04-11 21:13:36 +00:00
{
return _valloc_r (_REENT, nbytes);
}
2018-12-28 15:30:48 +00:00
void *
pvalloc (size_t nbytes)
2017-04-11 21:13:36 +00:00
{
return _pvalloc_r (_REENT, nbytes);
}
#endif
#endif