2 * Copyright (C) 2015 John Crispin <blogic@openwrt.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License version 2.1
6 * as published by the Free Software Foundation
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
20 #ifndef attribute_unused
21 #define attribute_unused __attribute__ ((unused))
23 typedef int (*main_t)(int, char **, char **);
25 typedef int (*start_main_t)(main_t main, int, char *__unbounded *__unbounded,
29 void (*rtld_fini) (void),
30 void *__unbounded stack_end);
32 int __libc_start_main(main_t main,
38 void (*rtld_fini) (void),
42 typedef void (*uClibc_main)(main_t main,
45 void (*app_init)(void),
46 void (*app_fini)(void),
47 void (*rtld_fini)(void),
48 void *stack_end attribute_unused);
50 void __uClibc_main(main_t main,
53 void (*app_init)(void),
54 void (*app_fini)(void),
55 void (*rtld_fini)(void),
56 void *stack_end attribute_unused);