2002-11-13 09:20:31 +08:00
|
|
|
#ifndef MALLOC_PROVIDED
|
2000-02-18 03:39:52 +08:00
|
|
|
/* 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
|
2002-11-13 09:20:31 +08:00
|
|
|
#endif
|