Usermode/libc - Rework malloc/free fixing many bugs
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / include_exp / stdlib.h
index f692ddd..7169150 100644 (file)
 # define bsearch       acess_bsearch\r
 # define qsort acess_qsort\r
 \r
+# define free  acess_free\r
+# define malloc        acess_malloc\r
+# define calloc        acess_calloc\r
+# define realloc       acess_realloc\r
+# define IsHeap        acess_IsHeap\r
+\r
 # define srand acess_srand\r
 # define rand  acess_rand\r
 # define rand_p        acess_rand_p\r
@@ -70,6 +76,7 @@ extern long long int  llabs(long long int j);
 \r
 /* --- Environment --- */\r
 extern char    *getenv(const char *name);\r
+extern int     putenv(char *string);\r
 \r
 /* --- Search/Sort --- */\r
 typedef int (*_stdlib_compar_t)(const void *, const void *);\r
@@ -82,6 +89,7 @@ extern void   *malloc(size_t bytes);
 extern void    *calloc(size_t __nmemb, size_t __size);\r
 extern void    *realloc(void *__ptr, size_t __size);\r
 extern int     IsHeap(void *ptr);\r
+extern int     Heap_Validate(int bDump);\r
 \r
 /* --- Random --- */\r
 extern void    srand(unsigned int seed);\r

UCC git Repository :: git.ucc.asn.au