]> git.saurik.com Git - apple/libc.git/blobdiff - sys/__libc_init.c
Libc-825.25.tar.gz
[apple/libc.git] / sys / __libc_init.c
index 963fe1e14216b6e4f7db0c43f7fad9da61f0f445..72f0718712f16020e2902fb1cc1e7d5b66a49fe9 100644 (file)
@@ -27,6 +27,7 @@
 #include <stdint.h>
 #include <pthread.h>
 #include <pthread_machdep.h>
+#include <machine/cpu_capabilities.h>
 
 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 <stdlib.h>
@@ -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);