Lines Matching refs:msg_port
23 mach_port_t msg_port = MACH_PORT_NULL;
47 kr = mach_port_request_notification(mach_task_self(), msg_port,
75 smsg.header.msgh_remote_port = msg_port;
130 if (nmsg.not_port != msg_port) {
131 fprintf(stderr, "send possible notification about wrong port (0x%x != 0x%x)\n", nmsg.not_port, msg_port);
140 if (nmsg.not_port != msg_port) {
141 fprintf(stderr, "dead name notification about wrong port (0x%x != 0x%x)\n", nmsg.not_port, msg_port);
172 kr = mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &msg_port);
174 mach_error("mach_port_allocate(msg_port)", kr);
177 kr = mach_port_insert_right(mach_task_self(), msg_port, msg_port, MACH_MSG_TYPE_MAKE_SEND);
179 mach_error("mach_port_insert_right(msg_port)", kr);
185 kr = mach_port_set_attributes(mach_task_self(), msg_port,
188 mach_error("mach_port_allocate(msg_port)", kr);
224 msg_port,
228 mach_error("mach_msg_receive(msg_port)\n", mret);
234 kr = mach_port_mod_refs(mach_task_self(), msg_port, MACH_PORT_RIGHT_RECEIVE, -1);
236 mach_error("mach_port_mod_refs(msg_port)", kr);