void
__libc_init(const struct ProgramVars *vars, void (*atfork_prepare)(void), void (*atfork_parent)(void), void (*atfork_child)(void), const char *apple[])
{
	_program_vars_init(vars);
	_libc_fork_init(atfork_prepare, atfork_parent, atfork_child);
	_init_clock_port();
	__chk_init();
	__xlocale_init();
	__guard_setup(apple);
}
示例#2
0
void
_libc_initializer(const struct _libc_functions *funcs,
	const char *envp[],
	const char *apple[],
	const struct ProgramVars *vars)
{
	_program_vars_init(vars);
	_libc_fork_init(funcs);
	__confstr_init(funcs);
	__atexit_init();
	_init_clock_port();
	__chk_init();
	__xlocale_init();
	__guard_setup(apple);
}
void
_libc_sim_init(void) {
	__chk_init();
	__xlocale_init();
}