source: trunk/libs/newlib/src/newlib/libc/stdlib/valloc.c @ 471

Last change on this file since 471 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 342 bytes
Line 
1#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
11void *
12valloc (size_t nbytes)
13{
14  return _valloc_r (_REENT, nbytes);
15}
16
17void *
18pvalloc (size_t nbytes)
19{
20  return _pvalloc_r (_REENT, nbytes);
21}
22
23#endif
24#endif
Note: See TracBrowser for help on using the repository browser.