osfmk/man/bootstrap_arguments.html
Function - Return a set of arguments to the bootstrap task.
**kern\_return\_t bootstrap\_arguments**** (mach\_port\_t **bootstrap,** task\_t **task,** pointer\_t **pointer\_t,** mach\_msg\_type\_number\_t **mach\_msg\_type\_number\_t** );**
bootstrap[in bootstrap send right] The bootstrap port for the task, obtained from task_get_special_ports.
task[in task send right] The task port for the task whose argument strings are requested.
arguments[pointer to dynamic out array of characters] The argument strings for the task. This is an array of argumentCnt bytes, containing NUL characters separating the strings.
argumentsCnt[out pointer to scalar] Number of bytes contained in arguments.
The kernel will respond to the bootstrap task (task 1) with the arguments and environment specified to the boot loader. The bootstrap task can act as a server on this interface for the tasks that it creates in order to pass arguments to them. The libsa_mach.a standalone Mach C runtime startup code uses bootstrap_arguments and bootstrap_environment to initialize argc, argv, and envp for main.
Only generic errors apply.
Functions: bootstrap_ports, bootstrap_environment.