## bootstrap_arguments

Function - Return a set of arguments to the bootstrap task.

### SYNOPSIS

    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);

### PARAMETERS

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.

### DESCRIPTION

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.

### RETURN VALUES

Only generic errors apply.

### RELATED INFORMATION

Functions: bootstrap_ports, bootstrap_environment.