aboutsummaryrefslogtreecommitdiff
path: root/src/lib/libc/start.c
blob: 185d90fefa062e3280ab5d6e156aa8c6c8cec098 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <kogata/syscall.h>

#include <stdio.h>

void malloc_setup();

int main(int, char**);

void __libc_start() {
	malloc_setup();

	setup_libc_stdio();

	// TODO : more setup ? yes, for args, for env...

	int ret = main(0, 0);

	sc_exit(ret);
}

/* vim: set ts=4 sw=4 tw=0 noet :*/