From 3d6a857b9186ef6304ea6cf04627c2b787169f29 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 16 Jul 2016 15:59:46 +0200 Subject: Make way for libc implementation --- src/lib/libc/start.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/lib/libc/start.c') 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 +#include + 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 :*/ -- cgit v1.2.3