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