X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/1f2f436a38f7ae2d39a943ad2898d8fed4ed2e58..065eae9f38780a3602538caa52399f41f061a88e:/sys/__libc_init.c diff --git a/sys/__libc_init.c b/sys/__libc_init.c index 963fe1e..72f0718 100644 --- a/sys/__libc_init.c +++ b/sys/__libc_init.c @@ -27,6 +27,7 @@ #include #include #include +#include struct ProgramVars; /* forward reference */ @@ -35,10 +36,13 @@ extern void _libc_fork_init(void (*prepare)(void), void (*parent)(void), void (* extern void _init_clock_port(); extern pthread_lock_t _malloc_lock; extern void __xlocale_init(void); +extern void __pthread_pfz_setup(const char *apple[]); extern void __guard_setup(const char *apple[]); extern void __malloc_entropy_setup(const char *apple[]); extern int usenew_impl; +__private_extern__ uintptr_t commpage_pfz_base; + #ifdef PR_5243343 /* 5243343 - temporary hack to detect if we are running the conformance test */ #include @@ -47,6 +51,7 @@ __private_extern__ int PR_5243343_flag = 0; __private_extern__ int __pthread_lock_debug = 0; __private_extern__ int __pthread_lock_old = 0; + void __libc_init(const struct ProgramVars *vars, void (*atfork_prepare)(void), void (*atfork_parent)(void), void (*atfork_child)(void), const char *apple[]) { @@ -56,6 +61,7 @@ __libc_init(const struct ProgramVars *vars, void (*atfork_prepare)(void), void ( _init_clock_port(); __xlocale_init(); __guard_setup(apple); + __pthread_pfz_setup(apple); __malloc_entropy_setup(apple);