+extern ipc_port_t retrieve_thread_self_fast(
+ thread_t thread);
+
+/* Check port's type, and convert to correct task type */
+extern task_t convert_port_to_task_check_type(
+ ipc_port_t port,
+ ipc_kobject_type_t *kotype,
+ mach_task_flavor_t at_most,
+ int eval_check);
+
+/* Check port's type, and convert to correct thread type */
+extern thread_t convert_port_to_thread_check_type(
+ ipc_port_t port,
+ ipc_kobject_type_t *kotype,
+ mach_thread_flavor_t at_most,
+ int eval_check);
+
+/* Check port's type, and convert to correct ipc_space type */
+extern ipc_space_t convert_port_to_space_check_type(
+ ipc_port_t port,
+ ipc_kobject_type_t *kotype,
+ mach_task_flavor_t at_most,
+ int eval_check);
+
+/* Convert from a port to a task name */
+extern task_name_t convert_port_to_task_name(
+ ipc_port_t port);
+
+/* Convert from a port to a task for task_policy_set(). */
+extern task_policy_set_t convert_port_to_task_policy_set(
+ ipc_port_t port);
+
+/* Convert from a port to a task for task_policy_get(). */
+extern task_policy_get_t convert_port_to_task_policy_get(
+ ipc_port_t port);
+
+/* Convert from a port to a task inspect */
+extern task_inspect_t convert_port_to_task_inspect(
+ ipc_port_t port);
+
+/* Convert from a port to a task read */
+extern task_read_t convert_port_to_task_read(
+ ipc_port_t port);