X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc.so_src%2Finclude_exp%2Fstdlib.h;h=2bfb00d270309ae3db3a211b0fb6c23a42f63553;hb=e31f60edab8600254145b8c5dbfcca423c75260b;hp=0dae76464ef63f558184420b8998dfc420d4e5ac;hpb=d0f3b51e8a52fecdf28df689f3b8ae9215087dd8;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc.so_src/include_exp/stdlib.h b/Usermode/Libraries/libc.so_src/include_exp/stdlib.h index 0dae7646..2bfb00d2 100644 --- a/Usermode/Libraries/libc.so_src/include_exp/stdlib.h +++ b/Usermode/Libraries/libc.so_src/include_exp/stdlib.h @@ -12,6 +12,42 @@ #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 +#ifdef ARCHDIR_is_native +# define _exit acess__exit + +//# define strtoll acess_strtoll +//# define strtol acess_strtol +//# define strtoul acess_strtoul +//# define strtoull acess_strtoull + +# define strtod acess_strtod +# define strtof acess_strtof +# define atof acess_atof + +# define exit acess_exit +# define atexit acess_atexit +# define abort acess_abort +# define abs acess_abs +# define labs acess_labs +# define llabs acess_llabs + +# define getenv acess_getenv +# define putenv acess_putenv + +# define bsearch acess_bsearch +# define qsort acess_qsort + +# define free acess_free +# define malloc acess_malloc +# define calloc acess_calloc +# define realloc acess_realloc +# define IsHeap acess_IsHeap + +# define srand acess_srand +# define rand acess_rand +# define rand_p acess_rand_p +#endif + /* --- Spinlock Macros --- */ /* TODO: Support non-x86 architectures */ #define DEFLOCK(_name) static int _spinlock_##_name=0; @@ -40,6 +76,7 @@ extern long long int llabs(long long int j); /* --- Environment --- */ extern char *getenv(const char *name); +extern int putenv(char *string); /* --- Search/Sort --- */ typedef int (*_stdlib_compar_t)(const void *, const void *);