Lines Matching refs:msg

161 	} msg;  in test_immovable_receive_right()  local
166 msg.header.msgh_remote_port = server_port; in test_immovable_receive_right()
167 msg.header.msgh_local_port = MACH_PORT_NULL; in test_immovable_receive_right()
168 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_immovable_receive_right()
169 msg.header.msgh_size = sizeof msg; in test_immovable_receive_right()
171 msg.body.msgh_descriptor_count = 1; in test_immovable_receive_right()
173 msg.desc.name = reply_port; in test_immovable_receive_right()
174 msg.desc.disposition = MACH_MSG_TYPE_MOVE_RECEIVE; in test_immovable_receive_right()
175 msg.desc.type = MACH_MSG_PORT_DESCRIPTOR; in test_immovable_receive_right()
176 kr = mach_msg_send(&msg.header); in test_immovable_receive_right()
207 } msg; in test_using_send_right() local
209 msg.header.msgh_remote_port = reply_port; in test_using_send_right()
210 msg.header.msgh_local_port = MACH_PORT_NULL; in test_using_send_right()
211 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0); in test_using_send_right()
212 msg.header.msgh_size = sizeof msg; in test_using_send_right()
214 kr = mach_msg_send(&msg.header); in test_using_send_right()
228 } msg; in test_move_send_right() local
233 msg.header.msgh_remote_port = server_port; in test_move_send_right()
234 msg.header.msgh_local_port = MACH_PORT_NULL; in test_move_send_right()
235 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_move_send_right()
236 msg.header.msgh_size = sizeof msg; in test_move_send_right()
238 msg.body.msgh_descriptor_count = 1; in test_move_send_right()
240 msg.desc.name = reply_port; in test_move_send_right()
241 msg.desc.disposition = MACH_MSG_TYPE_MOVE_SEND; in test_move_send_right()
242 msg.desc.type = MACH_MSG_PORT_DESCRIPTOR; in test_move_send_right()
244 kr = mach_msg_send(&msg.header); in test_move_send_right()
365 } msg; in test_move_service_port() local
370 msg.header.msgh_remote_port = server_port; in test_move_service_port()
371 msg.header.msgh_local_port = MACH_PORT_NULL; in test_move_service_port()
372 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_move_service_port()
373 msg.header.msgh_size = sizeof msg; in test_move_service_port()
375 msg.body.msgh_descriptor_count = 1; in test_move_service_port()
377 msg.desc.name = service_port; in test_move_service_port()
378 msg.desc.disposition = MACH_MSG_TYPE_MOVE_RECEIVE; in test_move_service_port()
379 msg.desc.type = MACH_MSG_PORT_DESCRIPTOR; in test_move_service_port()
381 kr = mach_msg_send(&msg.header); in test_move_service_port()
477 } msg; in move_port() local
481 msg.header.msgh_remote_port = server_port; in move_port()
482 msg.header.msgh_local_port = MACH_PORT_NULL; in move_port()
483 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in move_port()
484 msg.header.msgh_size = sizeof msg; in move_port()
486 msg.body.msgh_descriptor_count = 1; in move_port()
488 msg.desc.name = immovable_port; in move_port()
489 msg.desc.disposition = MACH_MSG_TYPE_MOVE_SEND; in move_port()
490 msg.desc.type = MACH_MSG_PORT_DESCRIPTOR; in move_port()
491 return mach_msg_send(&msg.header); in move_port()
559 } msg; in test_reply_port_header_disposition() local
565 msg.header.msgh_remote_port = server_port; in test_reply_port_header_disposition()
566 msg.header.msgh_size = sizeof msg; in test_reply_port_header_disposition()
569 msg.header.msgh_local_port = reply_port1; in test_reply_port_header_disposition()
570 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, in test_reply_port_header_disposition()
572 kr = mach_msg_send(&msg.header); in test_reply_port_header_disposition()
576 msg.header.msgh_local_port = reply_port2; in test_reply_port_header_disposition()
577 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, in test_reply_port_header_disposition()
579 kr = mach_msg_send(&msg.header); in test_reply_port_header_disposition()