diff options
Diffstat (limited to 'include/mach/port.h')
-rw-r--r-- | include/mach/port.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/mach/port.h b/include/mach/port.h index e38be614..c9bbcf17 100644 --- a/include/mach/port.h +++ b/include/mach/port.h @@ -72,9 +72,13 @@ typedef int *rpc_signature_info_t; #define MACH_PORT_NULL 0 /* works with both user and kernel ports */ #define MACH_PORT_DEAD ((mach_port_t) ~0) +#define MACH_PORT_NAME_NULL ((mach_port_name_t) 0) +#define MACH_PORT_NAME_DEAD ((mach_port_name_t) ~0) -#define MACH_PORT_VALID(name) \ - (((name) != MACH_PORT_NULL) && ((name) != MACH_PORT_DEAD)) +#define MACH_PORT_VALID(port) \ + (((port) != MACH_PORT_NULL) && ((port) != MACH_PORT_DEAD)) +#define MACH_PORT_NAME_VALID(name) \ + (((name) != MACH_PORT_NAME_NULL) && ((name) != MACH_PORT_NAME_DEAD)) /* * These are the different rights a task may have. |