diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-16 15:59:46 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-16 15:59:46 +0200 |
commit | 3d6a857b9186ef6304ea6cf04627c2b787169f29 (patch) | |
tree | 756179ce1e1838f75c57e3efec2a570d72051594 /src/lib/include/stdlib.h | |
parent | 59000174aa50ed6b2d24a71576d15e6a53c5be0c (diff) | |
download | kogata-3d6a857b9186ef6304ea6cf04627c2b787169f29.tar.gz kogata-3d6a857b9186ef6304ea6cf04627c2b787169f29.zip |
Make way for libc implementation
Diffstat (limited to 'src/lib/include/stdlib.h')
-rw-r--r-- | src/lib/include/stdlib.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/include/stdlib.h b/src/lib/include/stdlib.h index 53aef80..e451c52 100644 --- a/src/lib/include/stdlib.h +++ b/src/lib/include/stdlib.h @@ -1,10 +1,13 @@ #pragma once #include <kogata/malloc.h> +#include <kogata/syscall.h> #define EXIT_SUCCESS 0 #define EXIT_FAILURE 255 +#define exit sc_exit + int rand(void); //int rand_r(unsigned int *seedp); void srand(unsigned int seed); @@ -14,8 +17,8 @@ void srand(unsigned int seed); void abort() __attribute__((__noreturn__)); -double strtod(const char *nptr, const char **endptr); -float strtof(const char *nptr, const char **endptr); +double strtod(const char *nptr, char **endptr); +float strtof(const char *nptr, char **endptr); char *getenv(const char *name); |