diff options
Diffstat (limited to 'src/lib/libc/start.c')
-rw-r--r-- | src/lib/libc/start.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/libc/start.c b/src/lib/libc/start.c index 49a6ca1..185d90f 100644 --- a/src/lib/libc/start.c +++ b/src/lib/libc/start.c @@ -1,17 +1,21 @@ #include <kogata/syscall.h> +#include <stdio.h> + void malloc_setup(); int main(int, char**); -void __libkogata_start() { +void __libc_start() { malloc_setup(); - // TODO : more setup ? + setup_libc_stdio(); + + // TODO : more setup ? yes, for args, for env... int ret = main(0, 0); - exit(ret); + sc_exit(ret); } /* vim: set ts=4 sw=4 tw=0 noet :*/ |