1 <h2>mach_task_self
</h2>
4 <strong>System Trap
</strong> - Return a send right to the caller's task_self port.
7 <strong>#include<mach/mach_traps.h>
</strong>
9 <strong>mach_port_t mach_task_self (void)
</strong>
16 The
<strong>mach_task_self
</strong> function returns send rights to
17 the task's kernel port.
20 This function call is redefined in the
<strong>mach_init.h
</strong> file
21 to return the caller's
<strong>mach_task_self_
</strong> environment variable,
22 which is cached on behalf of the caller's task at runtime.
23 (The
<strong>mach_init.h
</strong> file is itself included via the
24 <strong>mach.h
</strong> file.
25 <h3>RETURN VALUES
</h3>
27 Only generic errors apply.
28 <h3>RELATED INFORMATION
</h3>
31 <a href=
"task_set_special_port.html"><strong>task_set_special_port
</strong></a>.