Welcome to mirror list, hosted at ThFree Co, Russian Federation.

valloc.c « stdlib « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 26a44df44c890affae10f3e389475654d27d5443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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