add libc building to agbcc.

This commit is contained in:
ProjectRevoTPP
2017-12-20 16:34:35 -05:00
parent f49e7cbb33
commit 48ef7704c0
306 changed files with 32781 additions and 0 deletions

24
libc/stdlib/valloc.c Normal file
View 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