NAME
port_type - return information about a task’s port
name
SYNOPSIS
#include <mach.h>
kern_return_t port_type(task,
port_name, port_type)
task_t task;
port_name_t port_name;
port_type_t *port_type; /* out */
ARGUMENTS
task The task whose port name space is queried.
port_name The name being queried.
port_type The type of the name.
Indicates what kind of right
the task holds for the port or port set.
DESCRIPTION
port_type returns information about task’s rights for
a specific
name in its port name space.
DIAGNOSTICS
KERN_SUCCESS The call succeeded.
KERN_INVALID_ARGUMENT task was
invalid or task did not have
any rights named port_name.
SEE ALSO
port_names(2), port_status(2), port_set_status(2)