void __uClibc_main_timed (int (*main)(int, char **, char **), int argc, char **argv, void (*app_init)(void), void (*app_fini)(void), void (*rtld_fini)(void), void *stack_end) { backup_stderr = dup(2); atexit(write_times); clock_gettime(CLOCK_MONOTONIC, &ts); __uClibc_main(main, argc, argv, app_init, app_fini, rtld_fini, stack_end); close(backup_stderr); }
void _uClibc_start(unsigned int first_arg) { unsigned int argc; char **argv, **envp; unsigned long *stack; stack = (unsigned long*) first_arg; argc = *(stack); argv = (char **)(stack + 1); envp = (char **)(stack + 1 + argc + 1); __uClibc_main(argc, argv, envp); }