OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial revision
[pf3gnuchains/pf3gnuchains3x.git]
/
newlib
/
libc
/
stdlib
/
valloc.c
1
/* 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