]>
git.proxmox.com Git - wasi-libc.git/blob - basics/libc/crt1.c
1 extern void __wasm_call_ctors(void);
2 extern int main(int, char *[]);
3 extern void __prepare_for_exit(void);
4 void _Exit(int) __attribute__((noreturn
));
7 /* The linker synthesizes this to call constructors. */
10 /* Call main with no arguments. */
13 /* Call atexit functions, destructors, stdio cleanup, etc. */
16 /* If main exited successfully, just return, otherwise call _Exit. */