1 <h2>bootstrap_arguments
</h2>
4 <strong>Function
</strong> - Return a set of arguments to the bootstrap task.
7 <strong>kern_return_t bootstrap_arguments
</strong>
8 <strong>(mach_port_t
</strong> <var>bootstrap
</var>,
9 <strong>task_t
</strong> <var>task
</var>,
10 <strong>pointer_t
</strong> <var>pointer_t
</var>,
11 <strong>mach_msg_type_number_t
</strong> <var>mach_msg_type_number_t
</var><strong>);
</strong>
16 <dt> <var>bootstrap
</var>
18 [in bootstrap send right]
19 The bootstrap port for the task, obtained from
20 <strong>task_get_special_ports
</strong>.
25 The task port for the task whose argument strings are requested.
27 <dt> <var>arguments
</var>
29 [pointer to dynamic out array of characters]
30 The argument strings for the task. This is an array of
31 <var>argumentCnt
</var> bytes, containing NUL characters
32 separating the strings.
34 <dt> <var>argumentsCnt
</var>
36 [out pointer to scalar]
37 Number of bytes contained in
<var>arguments
</var>.
41 The kernel will respond to the bootstrap task (task
1) with the
42 arguments and environment specified to the boot loader. The bootstrap
43 task can act as a server on this interface for the tasks that it
44 creates in order to pass arguments to them. The
<strong>libsa_mach.a
</strong>
45 standalone Mach C runtime startup code uses
<strong>bootstrap_arguments
</strong> and
46 <strong>bootstrap_environment
</strong> to initialize
<var>argc
</var>,
<var>argv
</var>,
47 and
<var>envp
</var> for
<strong>main
</strong>.
48 <h3>RETURN VALUES
</h3>
50 Only generic errors apply.
51 <h3>RELATED INFORMATION
</h3>
54 <a href=
"bootstrap_ports.html"><strong>bootstrap_ports
</strong></a>,
55 <a href=
"bootstrap_environment.html"><strong>bootstrap_environment
</strong></a>.