summaryrefslogtreecommitdiff
path: root/src/nonstd/__libc_start.c
blob: 0cff0ab31b515c5dc4017689657de9036ecf40ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
void __libc_start(int argc, char **argv)
{
	/*
        struct __fopen_options fo = {0};

        fo.fd = 0;
        stdin = __libc.stdio.fopen(&fo);

        fo.fd = 1;
        stdout = __libc.stdio.fopen(&fo);

        fo.fd = 2;
        stderr = __libc.stdio.fopen(&fo);

        #if defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || defined _XOPEN_SOURCE
        setlocale(LC_ALL, "POSIX");
        #else
        setlocale(LC_ALL, "C");
        #endif
	*/
	extern void exit(int);
	extern int main(int, char*[]);

        exit(main(argc, argv));
}