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

18
libc/stdlib/realloc.c Normal file
View File

@@ -0,0 +1,18 @@
/* realloc.c -- a wrapper for realloc_r. */
#include <_ansi.h>
#include <reent.h>
#include <stdlib.h>
#include <malloc.h>
#ifndef _REENT_ONLY
_PTR
_DEFUN (realloc, (ap, nbytes),
_PTR ap _AND
size_t nbytes)
{
return _realloc_r (_REENT, ap, nbytes);
}
#endif