Function - Return the characteristics of the target port name.
kern_return_t mach_port_type
(ipc_space_t task,
mach_port_name_t name,
mach_port_type_t ptype);
The mach_port_type function returns information about task's rights for a specific name in its port name space. The returned ptype is a bit-mask indicating what rights task holds with this name. The bit-mask is composed of the following bits:
This interface is machine word length specific because of the port name parameter.
Functions: mach_port_names, mach_port_get_attributes, mach_port_get_set_status.