]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/mach/mach/mach_init.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / libsyscall / mach / mach / mach_init.h
index 4d9d51f466e859a962e95f7072750b31d7625d68..e223fc8e2e8224eb9a5da0b01805759a67aeb45d 100644 (file)
 
 #include <sys/cdefs.h>
 
+#ifndef KERNEL
+#include <Availability.h>
+#endif
+
 /*
  *     Kernel-related ports; how a task/thread controls itself
  */
@@ -71,6 +75,8 @@
 __BEGIN_DECLS
 extern mach_port_t mach_host_self(void);
 extern mach_port_t mach_thread_self(void);
+__API_AVAILABLE(macos(11.3), ios(14.5), tvos(14.5), watchos(7.3))
+extern boolean_t mach_task_is_self(task_name_t task);
 extern kern_return_t host_page_size(host_t, vm_size_t *);
 
 extern mach_port_t      mach_task_self_;