1*2c2f96dcSApple OSS Distributions<h2>task_set_emulation_vector</h2> 2*2c2f96dcSApple OSS Distributions<hr> 3*2c2f96dcSApple OSS Distributions<p> 4*2c2f96dcSApple OSS Distributions<strong>Function</strong> - Establish the target task's user-level system call handlers. 5*2c2f96dcSApple OSS Distributions<h3>SYNOPSIS</h3> 6*2c2f96dcSApple OSS Distributions<pre> 7*2c2f96dcSApple OSS Distributions<strong>kern_return_t task_set_emulation_vector</strong> 8*2c2f96dcSApple OSS Distributions <strong>(task_t</strong> <var>task</var>, 9*2c2f96dcSApple OSS Distributions <strong>int</strong> <var>vector_start</var>, 10*2c2f96dcSApple OSS Distributions <strong>emulation_vector_t</strong> <var>emulation_vector</var>, 11*2c2f96dcSApple OSS Distributions <strong>mach_msg_type_number_t</strong> <var>emulation_vector_count</var><strong>);</strong> 12*2c2f96dcSApple OSS Distributions</pre> 13*2c2f96dcSApple OSS Distributions<h3>PARAMETERS</h3> 14*2c2f96dcSApple OSS Distributions<dl> 15*2c2f96dcSApple OSS Distributions<p> 16*2c2f96dcSApple OSS Distributions<dt> <var>task</var> 17*2c2f96dcSApple OSS Distributions<dd> 18*2c2f96dcSApple OSS Distributions[in task send right] 19*2c2f96dcSApple OSS DistributionsThe port for the task for which to establish the 20*2c2f96dcSApple OSS Distributionssystem call handler. 21*2c2f96dcSApple OSS Distributions<p> 22*2c2f96dcSApple OSS Distributions<dt> <var>vector_start</var> 23*2c2f96dcSApple OSS Distributions<dd> 24*2c2f96dcSApple OSS Distributions[in scalar] 25*2c2f96dcSApple OSS DistributionsThe syscall number corresponding to the first element of 26*2c2f96dcSApple OSS Distributions<var>emulation_vector</var>. 27*2c2f96dcSApple OSS Distributions<p> 28*2c2f96dcSApple OSS Distributions<dt> <var>emulation_vector</var> 29*2c2f96dcSApple OSS Distributions<dd> 30*2c2f96dcSApple OSS Distributions[pointer to in array of <strong>vm_address_t</strong>] 31*2c2f96dcSApple OSS DistributionsAn array of routine entrypoints 32*2c2f96dcSApple OSS Distributionsfor the system calls starting with syscall number <var>vector_start</var>. 33*2c2f96dcSApple OSS Distributions<p> 34*2c2f96dcSApple OSS Distributions<dt> <var>emulation_vector_count</var> 35*2c2f96dcSApple OSS Distributions<dd> 36*2c2f96dcSApple OSS Distributions[in scalar] 37*2c2f96dcSApple OSS DistributionsThe number of elements in <var>emulation_vector</var>. 38*2c2f96dcSApple OSS Distributions</dl> 39*2c2f96dcSApple OSS Distributions<h3>DESCRIPTION</h3> 40*2c2f96dcSApple OSS Distributions<p> 41*2c2f96dcSApple OSS DistributionsThe <strong>task_set_emulation_vector</strong> function establishes 42*2c2f96dcSApple OSS Distributionsa handler within the task 43*2c2f96dcSApple OSS Distributionsfor a set of system calls. When a thread executes a system call 44*2c2f96dcSApple OSS Distributionswith one of these 45*2c2f96dcSApple OSS Distributionsnumbers, the system call will be redirected to the corresponding 46*2c2f96dcSApple OSS Distributionsroutine within 47*2c2f96dcSApple OSS Distributionsthe task's address space. 48*2c2f96dcSApple OSS Distributions<p> 49*2c2f96dcSApple OSS DistributionsThese emulation handler addresses are inherited by child processes. 50*2c2f96dcSApple OSS Distributions<h3>NOTES</h3> 51*2c2f96dcSApple OSS Distributions<p> 52*2c2f96dcSApple OSS DistributionsThis interface is machine word length specific because of the 53*2c2f96dcSApple OSS Distributionsvirtual addresses 54*2c2f96dcSApple OSS Distributionsin the <var>emulation_vector</var> parameter. 55*2c2f96dcSApple OSS Distributions<h3>RETURN VALUES</h3> 56*2c2f96dcSApple OSS Distributions<p> 57*2c2f96dcSApple OSS DistributionsOnly generic errors apply. 58*2c2f96dcSApple OSS Distributions<h3>RELATED INFORMATION</h3> 59*2c2f96dcSApple OSS Distributions<p> 60*2c2f96dcSApple OSS DistributionsFunctions: 61*2c2f96dcSApple OSS Distributions<a href="task_get_emulation_vector.html"><strong>task_get_emulation_vector</strong></a>. 62