Lines Matching refs:msg

70 	} msg;  in test_immovable_receive_right()  local
75 msg.header.msgh_remote_port = server_port; in test_immovable_receive_right()
76 msg.header.msgh_local_port = MACH_PORT_NULL; in test_immovable_receive_right()
77 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_immovable_receive_right()
78 msg.header.msgh_size = sizeof msg; in test_immovable_receive_right()
80 msg.body.msgh_descriptor_count = 1; in test_immovable_receive_right()
82 msg.desc.name = reply_port; in test_immovable_receive_right()
83 msg.desc.disposition = MACH_MSG_TYPE_MOVE_RECEIVE; in test_immovable_receive_right()
84 msg.desc.type = MACH_MSG_PORT_DESCRIPTOR; in test_immovable_receive_right()
86 kr = mach_msg_send(&msg.header); in test_immovable_receive_right()
110 } msg; in test_using_send_right() local
112 msg.header.msgh_remote_port = reply_port; in test_using_send_right()
113 msg.header.msgh_local_port = MACH_PORT_NULL; in test_using_send_right()
114 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0); in test_using_send_right()
115 msg.header.msgh_size = sizeof msg; in test_using_send_right()
117 kr = mach_msg_send(&msg.header); in test_using_send_right()
131 } msg; in test_move_send_right() local
136 msg.header.msgh_remote_port = server_port; in test_move_send_right()
137 msg.header.msgh_local_port = MACH_PORT_NULL; in test_move_send_right()
138 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_move_send_right()
139 msg.header.msgh_size = sizeof msg; in test_move_send_right()
141 msg.body.msgh_descriptor_count = 1; in test_move_send_right()
143 msg.desc.name = reply_port; in test_move_send_right()
144 msg.desc.disposition = MACH_MSG_TYPE_MOVE_SEND; in test_move_send_right()
145 msg.desc.type = MACH_MSG_PORT_DESCRIPTOR; in test_move_send_right()
147 kr = mach_msg_send(&msg.header); in test_move_send_right()
160 } msg; in test_move_provisional_reply_port() local
165 msg.header.msgh_remote_port = server_port; in test_move_provisional_reply_port()
166 msg.header.msgh_local_port = MACH_PORT_NULL; in test_move_provisional_reply_port()
167 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_move_provisional_reply_port()
168 msg.header.msgh_size = sizeof msg; in test_move_provisional_reply_port()
170 msg.body.msgh_descriptor_count = 1; in test_move_provisional_reply_port()
172 msg.desc.name = reply_port; in test_move_provisional_reply_port()
173 msg.desc.disposition = MACH_MSG_TYPE_MOVE_RECEIVE; in test_move_provisional_reply_port()
174 msg.desc.type = MACH_MSG_PORT_DESCRIPTOR; in test_move_provisional_reply_port()
176 kr = mach_msg_send(&msg.header); in test_move_provisional_reply_port()