NAME
port_set_allocate - creates a port set in a specified
task
SYNOPSIS
#include <mach.h>
kern_return_t
port_set_allocate(task, set_name)
task_t task;
port_set_name_t *set_name; /* out */
ARGUMENTS
task The task in which the new port set is created.
set_name The task’s name for the new port set.
DESCRIPTION
port_set_allocate causes a port set to be created for the
specified
task; the resulting set’s name is returned in
set_name. The new
port set is empty.
DIAGNOSTICS
KERN_SUCCESS The call succeeded.
KERN_INVALID_ARGUMENT task was invalid.
KERN_RESOURCE_SHORTAGE The kernel ran out of memory.
SEE ALSO
port_set_deallocate(2)