110 |
|
|
111 |
if (! RTMK_MSG_TYPE_PORT_ANY_SEND (remote_type)) |
if (! RTMK_MSG_TYPE_PORT_ANY_SEND (remote_type)) |
112 |
return KERN_INVALID_RIGHT; |
return KERN_INVALID_RIGHT; |
113 |
|
|
114 |
if (((local_type == 0 && local_name) |
if (local_type || local_name) |
115 |
|| (local_type && local_name == 0)) |
{ |
116 |
|| !RTMK_MSG_TYPE_PORT_ANY_SEND (local_type)) |
if (! RTMK_MSG_TYPE_PORT_ANY_SEND (local_type)) |
117 |
return KERN_INVALID_RIGHT; |
return KERN_INVALID_RIGHT; |
118 |
|
} |
119 |
|
|
120 |
/* Fetch remote port from IPC object. */ |
/* Fetch remote port from IPC object. */ |
121 |
|
|
122 |
kr = ipc_object_lookup (task->ipc_object, remote_name, &entry); |
kr = ipc_object_lookup (task->ipc_object, remote_name, &entry); |