mirror of
https://github.com/pret/agbcc.git
synced 2026-10-22 16:00:55 -05:00
add libc building to agbcc.
This commit is contained in:
24
libc/stdlib/valloc.c
Normal file
24
libc/stdlib/valloc.c
Normal file
@@ -0,0 +1,24 @@
|
||||
/* 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
|
||||
Reference in New Issue
Block a user