aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/include/stdlib.h')
-rw-r--r--src/lib/include/stdlib.h7
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);