+_pthread_exit_if_canceled(int error)
+{
+ return _libkernel_functions->_pthread_exit_if_canceled(error);
+}
+
+__attribute__((visibility("hidden")))
+void
+_pthread_set_self(void *ptr __attribute__((__unused__))) {}
+
+__attribute__((visibility("hidden")))
+void
+_pthread_clear_qos_tsd(mach_port_t thread_port)
+{
+ if (_libkernel_functions->version >= 3 &&
+ _libkernel_functions->pthread_clear_qos_tsd) {
+ return _libkernel_functions->pthread_clear_qos_tsd(thread_port);
+ }
+}
+
+/*
+ * mach/mach.h voucher_mach_msg API
+ */
+
+static const struct _libkernel_voucher_functions
+ _libkernel_voucher_functions_empty;
+static _libkernel_voucher_functions_t _libkernel_voucher_functions =
+ &_libkernel_voucher_functions_empty;
+
+kern_return_t
+__libkernel_voucher_init(_libkernel_voucher_functions_t fns)
+{
+ _libkernel_voucher_functions = fns;
+ return KERN_SUCCESS;
+}
+
+boolean_t
+voucher_mach_msg_set(mach_msg_header_t *msg)