OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [stdlib/] [valloc.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* valloc.c -- a wrapper for valloc_r and pvalloc_r.  */
2
 
3
#include <_ansi.h>
4
#include <reent.h>
5
#include <stdlib.h>
6
#include <malloc.h>
7
 
8
#ifndef _REENT_ONLY
9
 
10
_PTR
11
_DEFUN (valloc, (nbytes),
12
        size_t nbytes)
13
{
14
  return _valloc_r (_REENT, nbytes);
15
}
16
 
17
_PTR
18
_DEFUN (pvalloc, (nbytes),
19
        size_t nbytes)
20
{
21
  return _pvalloc_r (_REENT, nbytes);
22
}
23
 
24
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.