NAME
port_set_add - moves a port into a port set
SYNOPSIS
#include <mach.h>
kern_return_t port_set_add(task,
set_name, port_name)
task_t task;
port_set_name_t set_name;
port_name_t port_name;
ARGUMENTS
task The task owning the port set and port right.
set_name task’s name for the port set.
port_name task’s name for the port.
DESCRIPTION
port_set_add moves the named port into the named port set.
task
must have receive rights for the port.
If the port is already a member
of another port set, it is removed
from that set first.
DIAGNOSTICS
KERN_SUCCESS The call succeeded.
KERN_NOT_RECEIVER port_name
doesn’t name receive rights
in task.
KERN_INVALID_ARGUMENT task was
invalid or set_name does not
name a valid port set or port_name
does not name a valid port.
SEE ALSO
port_set_remove(2)