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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [stdlib/] [valloc.c] - Blame information for rev 158

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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