#ifndef __LIBKERNEL_INIT_H
#define __LIBKERNEL_INIT_H
+#include <stdbool.h>
#include <sys/types.h>
#include <mach/mach.h>
#include <mach/message.h>
/* 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;
/* 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[],
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