X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..a991bd8d3e7fe02dbca0644054bab73c5b75324a:/libsyscall/wrappers/_libkernel_init.h diff --git a/libsyscall/wrappers/_libkernel_init.h b/libsyscall/wrappers/_libkernel_init.h index 514afef02..cc95f1b26 100644 --- a/libsyscall/wrappers/_libkernel_init.h +++ b/libsyscall/wrappers/_libkernel_init.h @@ -29,6 +29,7 @@ #ifndef __LIBKERNEL_INIT_H #define __LIBKERNEL_INIT_H +#include #include #include #include @@ -64,6 +65,9 @@ typedef const struct _libkernel_functions { /* The following functions are included in version 3 of this structure */ void (*pthread_clear_qos_tsd)(mach_port_t); + /* The following functions are included in version 4 of this structure */ + int (*pthread_current_stack_contains_np)(const void *, size_t); + /* Subsequent versions must only add pointers! */ } *_libkernel_functions_t; @@ -100,6 +104,12 @@ typedef const struct _libkernel_voucher_functions { /* Subsequent versions must only add pointers! */ } *_libkernel_voucher_functions_t; +typedef struct _libkernel_late_init_config { + unsigned long version; + bool enable_system_version_compat; + bool enable_ios_version_compat; +} *_libkernel_late_init_config_t; + struct ProgramVars; /* forward reference */ void __libkernel_init(_libkernel_functions_t fns, const char *envp[], @@ -109,4 +119,6 @@ kern_return_t __libkernel_platform_init(_libkernel_string_functions_t fns); kern_return_t __libkernel_voucher_init(_libkernel_voucher_functions_t fns); +void __libkernel_init_late(_libkernel_late_init_config_t config); + #endif // __LIBKERNEL_INIT_H