Function - Establish the target task's user-level system call handlers.
kern_return_t task_set_emulation_vector (task_t task, int vector_start, emulation_vector_t emulation_vector, mach_msg_type_number_t emulation_vector_count);
The task_set_emulation_vector function establishes a handler within the task for a set of system calls. When a thread executes a system call with one of these numbers, the system call will be redirected to the corresponding routine within the task's address space.
These emulation handler addresses are inherited by child processes.
This interface is machine word length specific because of the virtual addresses in the emulation_vector parameter.
Only generic errors apply.