#include <mach/mach_types.defs>
#include <mach_debug/mach_debug_types.defs>
+#if !KERNEL && !LIBSYSCALL_INTERFACE
+#define PREFIX(NAME) _kernelrpc_ ## NAME
+#else
+#define PREFIX(NAME) NAME
+#endif
+
/*
* Create a new task with an empty set of IPC rights,
* and having an address space constructed from the
* count for that task is non-zero.
*/
routine task_suspend(
- target_task : task_t);
+ target_task : task_read_t);
/*
* that also have non-zero suspend counts may execute.
*/
routine task_resume(
- target_task : task_t);
+ target_task : task_read_t);
/*
* Returns the current value of the selected special port
behavior : exception_behavior_t;
new_flavor : thread_state_flavor_t;
out masks : exception_mask_array_t;
- out old_handlerss : exception_handler_array_t, SameCount;
+ out old_handlers : exception_handler_array_t, SameCount;
out old_behaviors : exception_behavior_array_t, SameCount;
out old_flavors : exception_flavor_array_t, SameCount);
out old_limit : int);
routine task_suspend2(
- target_task : task_t;
+ target_task : task_read_t;
out suspend_token : task_suspension_token_t);
routine task_resume2(
inout old_voucher : ipc_voucher_t);
routine task_generate_corpse(
- task :task_t;
+ task :task_read_t;
out corpse_task_port:mach_port_t);
routine task_map_corpse_info(
uid : suid_cred_uid_t;
out delegation : suid_cred_t);
+#if KERNEL || (!KERNEL && !LIBSYSCALL_INTERFACE)
+routine PREFIX(mach_task_is_self)(
+ task : task_name_t;
+ out is_self : boolean_t);
+#else
+ /* Do not generate header, use the one in mach_init.h */
+ skip;
+#endif
+
+routine task_dyld_process_info_notify_register(
+ target_task : task_read_t;
+ notify : mach_port_make_send_t);
+
+routine task_create_identity_token(
+ task : task_t;
+ out token : task_id_token_t);
+
+routine task_identity_token_get_task_port(
+ token : task_id_token_t;
+ flavor : task_flavor_t;
+ out task_port: mach_port_t);
+
+routine task_dyld_process_info_notify_deregister(
+ target_task : task_read_t;
+ notify : mach_port_name_t);
+
+routine task_get_exception_ports_info(
+ port : mach_port_t;
+ exception_mask : exception_mask_t;
+ out masks : exception_mask_array_t;
+ out old_handlers_info : exception_handler_info_array_t, SameCount;
+ out old_behaviors : exception_behavior_array_t, SameCount;
+ out old_flavors : exception_flavor_array_t, SameCount);
+
/* vim: set ft=c : */