1 | #ifndef␉_mach_port_user_␊ |
2 | #define␉_mach_port_user_␊ |
3 | ␊ |
4 | /* Module mach_port */␊ |
5 | ␊ |
6 | #include <string.h>␊ |
7 | #include <mach/ndr.h>␊ |
8 | #include <mach/boolean.h>␊ |
9 | #include <mach/kern_return.h>␊ |
10 | #include <mach/notify.h>␊ |
11 | #include <mach/mach_types.h>␊ |
12 | #include <mach/message.h>␊ |
13 | #include <mach/mig_errors.h>␊ |
14 | #include <mach/port.h>␊ |
15 | ␊ |
16 | #ifdef AUTOTEST␊ |
17 | #ifndef FUNCTION_PTR_T␊ |
18 | #define FUNCTION_PTR_T␊ |
19 | typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);␊ |
20 | typedef struct {␊ |
21 | char *name;␊ |
22 | function_ptr_t function;␊ |
23 | } function_table_entry;␊ |
24 | typedef function_table_entry *function_table_t;␊ |
25 | #endif /* FUNCTION_PTR_T */␊ |
26 | #endif /* AUTOTEST */␊ |
27 | ␊ |
28 | #ifndef␉mach_port_MSG_COUNT␊ |
29 | #define␉mach_port_MSG_COUNT␉31␊ |
30 | #endif␉/* mach_port_MSG_COUNT */␊ |
31 | ␊ |
32 | #include <mach/std_types.h>␊ |
33 | #include <mach/mig.h>␊ |
34 | #include <mach/mig.h>␊ |
35 | #include <mach/mach_types.h>␊ |
36 | #include <mach_debug/mach_debug_types.h>␊ |
37 | ␊ |
38 | #ifdef __BeforeMigUserHeader␊ |
39 | __BeforeMigUserHeader␊ |
40 | #endif /* __BeforeMigUserHeader */␊ |
41 | ␊ |
42 | #include <sys/cdefs.h>␊ |
43 | __BEGIN_DECLS␊ |
44 | ␊ |
45 | ␊ |
46 | /* Routine mach_port_names */␊ |
47 | #ifdef␉mig_external␊ |
48 | mig_external␊ |
49 | #else␊ |
50 | extern␊ |
51 | #endif␉/* mig_external */␊ |
52 | kern_return_t mach_port_names␊ |
53 | (␊ |
54 | ␉ipc_space_t task,␊ |
55 | ␉mach_port_name_array_t *names,␊ |
56 | ␉mach_msg_type_number_t *namesCnt,␊ |
57 | ␉mach_port_type_array_t *types,␊ |
58 | ␉mach_msg_type_number_t *typesCnt␊ |
59 | );␊ |
60 | ␊ |
61 | /* Routine mach_port_type */␊ |
62 | #ifdef␉mig_external␊ |
63 | mig_external␊ |
64 | #else␊ |
65 | extern␊ |
66 | #endif␉/* mig_external */␊ |
67 | kern_return_t mach_port_type␊ |
68 | (␊ |
69 | ␉ipc_space_t task,␊ |
70 | ␉mach_port_name_t name,␊ |
71 | ␉mach_port_type_t *ptype␊ |
72 | );␊ |
73 | ␊ |
74 | /* Routine mach_port_rename */␊ |
75 | #ifdef␉mig_external␊ |
76 | mig_external␊ |
77 | #else␊ |
78 | extern␊ |
79 | #endif␉/* mig_external */␊ |
80 | kern_return_t mach_port_rename␊ |
81 | (␊ |
82 | ␉ipc_space_t task,␊ |
83 | ␉mach_port_name_t old_name,␊ |
84 | ␉mach_port_name_t new_name␊ |
85 | );␊ |
86 | ␊ |
87 | /* Routine mach_port_allocate_name */␊ |
88 | #ifdef␉mig_external␊ |
89 | mig_external␊ |
90 | #else␊ |
91 | extern␊ |
92 | #endif␉/* mig_external */␊ |
93 | kern_return_t mach_port_allocate_name␊ |
94 | (␊ |
95 | ␉ipc_space_t task,␊ |
96 | ␉mach_port_right_t right,␊ |
97 | ␉mach_port_name_t name␊ |
98 | );␊ |
99 | ␊ |
100 | /* Routine mach_port_allocate */␊ |
101 | #ifdef␉mig_external␊ |
102 | mig_external␊ |
103 | #else␊ |
104 | extern␊ |
105 | #endif␉/* mig_external */␊ |
106 | kern_return_t mach_port_allocate␊ |
107 | (␊ |
108 | ␉ipc_space_t task,␊ |
109 | ␉mach_port_right_t right,␊ |
110 | ␉mach_port_name_t *name␊ |
111 | );␊ |
112 | ␊ |
113 | /* Routine mach_port_destroy */␊ |
114 | #ifdef␉mig_external␊ |
115 | mig_external␊ |
116 | #else␊ |
117 | extern␊ |
118 | #endif␉/* mig_external */␊ |
119 | kern_return_t mach_port_destroy␊ |
120 | (␊ |
121 | ␉ipc_space_t task,␊ |
122 | ␉mach_port_name_t name␊ |
123 | );␊ |
124 | ␊ |
125 | /* Routine mach_port_deallocate */␊ |
126 | #ifdef␉mig_external␊ |
127 | mig_external␊ |
128 | #else␊ |
129 | extern␊ |
130 | #endif␉/* mig_external */␊ |
131 | kern_return_t mach_port_deallocate␊ |
132 | (␊ |
133 | ␉ipc_space_t task,␊ |
134 | ␉mach_port_name_t name␊ |
135 | );␊ |
136 | ␊ |
137 | /* Routine mach_port_get_refs */␊ |
138 | #ifdef␉mig_external␊ |
139 | mig_external␊ |
140 | #else␊ |
141 | extern␊ |
142 | #endif␉/* mig_external */␊ |
143 | kern_return_t mach_port_get_refs␊ |
144 | (␊ |
145 | ␉ipc_space_t task,␊ |
146 | ␉mach_port_name_t name,␊ |
147 | ␉mach_port_right_t right,␊ |
148 | ␉mach_port_urefs_t *refs␊ |
149 | );␊ |
150 | ␊ |
151 | /* Routine mach_port_mod_refs */␊ |
152 | #ifdef␉mig_external␊ |
153 | mig_external␊ |
154 | #else␊ |
155 | extern␊ |
156 | #endif␉/* mig_external */␊ |
157 | kern_return_t mach_port_mod_refs␊ |
158 | (␊ |
159 | ␉ipc_space_t task,␊ |
160 | ␉mach_port_name_t name,␊ |
161 | ␉mach_port_right_t right,␊ |
162 | ␉mach_port_delta_t delta␊ |
163 | );␊ |
164 | ␊ |
165 | /* Routine mach_port_set_mscount */␊ |
166 | #ifdef␉mig_external␊ |
167 | mig_external␊ |
168 | #else␊ |
169 | extern␊ |
170 | #endif␉/* mig_external */␊ |
171 | kern_return_t mach_port_set_mscount␊ |
172 | (␊ |
173 | ␉ipc_space_t task,␊ |
174 | ␉mach_port_name_t name,␊ |
175 | ␉mach_port_mscount_t mscount␊ |
176 | );␊ |
177 | ␊ |
178 | /* Routine mach_port_get_set_status */␊ |
179 | #ifdef␉mig_external␊ |
180 | mig_external␊ |
181 | #else␊ |
182 | extern␊ |
183 | #endif␉/* mig_external */␊ |
184 | kern_return_t mach_port_get_set_status␊ |
185 | (␊ |
186 | ␉ipc_space_t task,␊ |
187 | ␉mach_port_name_t name,␊ |
188 | ␉mach_port_name_array_t *members,␊ |
189 | ␉mach_msg_type_number_t *membersCnt␊ |
190 | );␊ |
191 | ␊ |
192 | /* Routine mach_port_move_member */␊ |
193 | #ifdef␉mig_external␊ |
194 | mig_external␊ |
195 | #else␊ |
196 | extern␊ |
197 | #endif␉/* mig_external */␊ |
198 | kern_return_t mach_port_move_member␊ |
199 | (␊ |
200 | ␉ipc_space_t task,␊ |
201 | ␉mach_port_name_t member,␊ |
202 | ␉mach_port_name_t after␊ |
203 | );␊ |
204 | ␊ |
205 | /* Routine mach_port_request_notification */␊ |
206 | #ifdef␉mig_external␊ |
207 | mig_external␊ |
208 | #else␊ |
209 | extern␊ |
210 | #endif␉/* mig_external */␊ |
211 | kern_return_t mach_port_request_notification␊ |
212 | (␊ |
213 | ␉ipc_space_t task,␊ |
214 | ␉mach_port_name_t name,␊ |
215 | ␉mach_msg_id_t msgid,␊ |
216 | ␉mach_port_mscount_t sync,␊ |
217 | ␉mach_port_t notify,␊ |
218 | ␉mach_msg_type_name_t notifyPoly,␊ |
219 | ␉mach_port_t *previous␊ |
220 | );␊ |
221 | ␊ |
222 | /* Routine mach_port_insert_right */␊ |
223 | #ifdef␉mig_external␊ |
224 | mig_external␊ |
225 | #else␊ |
226 | extern␊ |
227 | #endif␉/* mig_external */␊ |
228 | kern_return_t mach_port_insert_right␊ |
229 | (␊ |
230 | ␉ipc_space_t task,␊ |
231 | ␉mach_port_name_t name,␊ |
232 | ␉mach_port_t poly,␊ |
233 | ␉mach_msg_type_name_t polyPoly␊ |
234 | );␊ |
235 | ␊ |
236 | /* Routine mach_port_extract_right */␊ |
237 | #ifdef␉mig_external␊ |
238 | mig_external␊ |
239 | #else␊ |
240 | extern␊ |
241 | #endif␉/* mig_external */␊ |
242 | kern_return_t mach_port_extract_right␊ |
243 | (␊ |
244 | ␉ipc_space_t task,␊ |
245 | ␉mach_port_name_t name,␊ |
246 | ␉mach_msg_type_name_t msgt_name,␊ |
247 | ␉mach_port_t *poly,␊ |
248 | ␉mach_msg_type_name_t *polyPoly␊ |
249 | );␊ |
250 | ␊ |
251 | /* Routine mach_port_set_seqno */␊ |
252 | #ifdef␉mig_external␊ |
253 | mig_external␊ |
254 | #else␊ |
255 | extern␊ |
256 | #endif␉/* mig_external */␊ |
257 | kern_return_t mach_port_set_seqno␊ |
258 | (␊ |
259 | ␉ipc_space_t task,␊ |
260 | ␉mach_port_name_t name,␊ |
261 | ␉mach_port_seqno_t seqno␊ |
262 | );␊ |
263 | ␊ |
264 | /* Routine mach_port_get_attributes */␊ |
265 | #ifdef␉mig_external␊ |
266 | mig_external␊ |
267 | #else␊ |
268 | extern␊ |
269 | #endif␉/* mig_external */␊ |
270 | kern_return_t mach_port_get_attributes␊ |
271 | (␊ |
272 | ␉ipc_space_t task,␊ |
273 | ␉mach_port_name_t name,␊ |
274 | ␉mach_port_flavor_t flavor,␊ |
275 | ␉mach_port_info_t port_info_out,␊ |
276 | ␉mach_msg_type_number_t *port_info_outCnt␊ |
277 | );␊ |
278 | ␊ |
279 | /* Routine mach_port_set_attributes */␊ |
280 | #ifdef␉mig_external␊ |
281 | mig_external␊ |
282 | #else␊ |
283 | extern␊ |
284 | #endif␉/* mig_external */␊ |
285 | kern_return_t mach_port_set_attributes␊ |
286 | (␊ |
287 | ␉ipc_space_t task,␊ |
288 | ␉mach_port_name_t name,␊ |
289 | ␉mach_port_flavor_t flavor,␊ |
290 | ␉mach_port_info_t port_info,␊ |
291 | ␉mach_msg_type_number_t port_infoCnt␊ |
292 | );␊ |
293 | ␊ |
294 | /* Routine mach_port_allocate_qos */␊ |
295 | #ifdef␉mig_external␊ |
296 | mig_external␊ |
297 | #else␊ |
298 | extern␊ |
299 | #endif␉/* mig_external */␊ |
300 | kern_return_t mach_port_allocate_qos␊ |
301 | (␊ |
302 | ␉ipc_space_t task,␊ |
303 | ␉mach_port_right_t right,␊ |
304 | ␉mach_port_qos_t *qos,␊ |
305 | ␉mach_port_name_t *name␊ |
306 | );␊ |
307 | ␊ |
308 | /* Routine mach_port_allocate_full */␊ |
309 | #ifdef␉mig_external␊ |
310 | mig_external␊ |
311 | #else␊ |
312 | extern␊ |
313 | #endif␉/* mig_external */␊ |
314 | kern_return_t mach_port_allocate_full␊ |
315 | (␊ |
316 | ␉ipc_space_t task,␊ |
317 | ␉mach_port_right_t right,␊ |
318 | ␉mach_port_t proto,␊ |
319 | ␉mach_port_qos_t *qos,␊ |
320 | ␉mach_port_name_t *name␊ |
321 | );␊ |
322 | ␊ |
323 | /* Routine task_set_port_space */␊ |
324 | #ifdef␉mig_external␊ |
325 | mig_external␊ |
326 | #else␊ |
327 | extern␊ |
328 | #endif␉/* mig_external */␊ |
329 | kern_return_t task_set_port_space␊ |
330 | (␊ |
331 | ␉ipc_space_t task,␊ |
332 | ␉int table_entries␊ |
333 | );␊ |
334 | ␊ |
335 | /* Routine mach_port_get_srights */␊ |
336 | #ifdef␉mig_external␊ |
337 | mig_external␊ |
338 | #else␊ |
339 | extern␊ |
340 | #endif␉/* mig_external */␊ |
341 | kern_return_t mach_port_get_srights␊ |
342 | (␊ |
343 | ␉ipc_space_t task,␊ |
344 | ␉mach_port_name_t name,␊ |
345 | ␉mach_port_rights_t *srights␊ |
346 | );␊ |
347 | ␊ |
348 | /* Routine mach_port_space_info */␊ |
349 | #ifdef␉mig_external␊ |
350 | mig_external␊ |
351 | #else␊ |
352 | extern␊ |
353 | #endif␉/* mig_external */␊ |
354 | kern_return_t mach_port_space_info␊ |
355 | (␊ |
356 | ␉ipc_space_t task,␊ |
357 | ␉ipc_info_space_t *space_info,␊ |
358 | ␉ipc_info_name_array_t *table_info,␊ |
359 | ␉mach_msg_type_number_t *table_infoCnt,␊ |
360 | ␉ipc_info_tree_name_array_t *tree_info,␊ |
361 | ␉mach_msg_type_number_t *tree_infoCnt␊ |
362 | );␊ |
363 | ␊ |
364 | /* Routine mach_port_dnrequest_info */␊ |
365 | #ifdef␉mig_external␊ |
366 | mig_external␊ |
367 | #else␊ |
368 | extern␊ |
369 | #endif␉/* mig_external */␊ |
370 | kern_return_t mach_port_dnrequest_info␊ |
371 | (␊ |
372 | ␉ipc_space_t task,␊ |
373 | ␉mach_port_name_t name,␊ |
374 | ␉unsigned *dnr_total,␊ |
375 | ␉unsigned *dnr_used␊ |
376 | );␊ |
377 | ␊ |
378 | /* Routine mach_port_kernel_object */␊ |
379 | #ifdef␉mig_external␊ |
380 | mig_external␊ |
381 | #else␊ |
382 | extern␊ |
383 | #endif␉/* mig_external */␊ |
384 | kern_return_t mach_port_kernel_object␊ |
385 | (␊ |
386 | ␉ipc_space_t task,␊ |
387 | ␉mach_port_name_t name,␊ |
388 | ␉unsigned *object_type,␊ |
389 | ␉unsigned *object_addr␊ |
390 | );␊ |
391 | ␊ |
392 | /* Routine mach_port_insert_member */␊ |
393 | #ifdef␉mig_external␊ |
394 | mig_external␊ |
395 | #else␊ |
396 | extern␊ |
397 | #endif␉/* mig_external */␊ |
398 | kern_return_t mach_port_insert_member␊ |
399 | (␊ |
400 | ␉ipc_space_t task,␊ |
401 | ␉mach_port_name_t name,␊ |
402 | ␉mach_port_name_t pset␊ |
403 | );␊ |
404 | ␊ |
405 | /* Routine mach_port_extract_member */␊ |
406 | #ifdef␉mig_external␊ |
407 | mig_external␊ |
408 | #else␊ |
409 | extern␊ |
410 | #endif␉/* mig_external */␊ |
411 | kern_return_t mach_port_extract_member␊ |
412 | (␊ |
413 | ␉ipc_space_t task,␊ |
414 | ␉mach_port_name_t name,␊ |
415 | ␉mach_port_name_t pset␊ |
416 | );␊ |
417 | ␊ |
418 | /* Routine mach_port_get_context */␊ |
419 | #ifdef␉mig_external␊ |
420 | mig_external␊ |
421 | #else␊ |
422 | extern␊ |
423 | #endif␉/* mig_external */␊ |
424 | kern_return_t mach_port_get_context␊ |
425 | (␊ |
426 | ␉ipc_space_t task,␊ |
427 | ␉mach_port_name_t name,␊ |
428 | ␉mach_port_context_t *context␊ |
429 | );␊ |
430 | ␊ |
431 | /* Routine mach_port_set_context */␊ |
432 | #ifdef␉mig_external␊ |
433 | mig_external␊ |
434 | #else␊ |
435 | extern␊ |
436 | #endif␉/* mig_external */␊ |
437 | kern_return_t mach_port_set_context␊ |
438 | (␊ |
439 | ␉ipc_space_t task,␊ |
440 | ␉mach_port_name_t name,␊ |
441 | ␉mach_port_context_t context␊ |
442 | );␊ |
443 | ␊ |
444 | /* Routine mach_port_kobject */␊ |
445 | #ifdef␉mig_external␊ |
446 | mig_external␊ |
447 | #else␊ |
448 | extern␊ |
449 | #endif␉/* mig_external */␊ |
450 | kern_return_t mach_port_kobject␊ |
451 | (␊ |
452 | ␉ipc_space_t task,␊ |
453 | ␉mach_port_name_t name,␊ |
454 | ␉natural_t *object_type,␊ |
455 | ␉mach_vm_address_t *object_addr␊ |
456 | );␊ |
457 | ␊ |
458 | __END_DECLS␊ |
459 | ␊ |
460 | /********************** Caution **************************/␊ |
461 | /* The following data types should be used to calculate */␊ |
462 | /* maximum message sizes only. The actual message may be */␊ |
463 | /* smaller, and the position of the arguments within the */␊ |
464 | /* message layout may vary from what is presented here. */␊ |
465 | /* For example, if any of the arguments are variable- */␊ |
466 | /* sized, and less than the maximum is sent, the data */␊ |
467 | /* will be packed tight in the actual message to reduce */␊ |
468 | /* the presence of holes. */␊ |
469 | /********************** Caution **************************/␊ |
470 | ␊ |
471 | /* typedefs for all requests */␊ |
472 | ␊ |
473 | #ifndef __Request__mach_port_subsystem__defined␊ |
474 | #define __Request__mach_port_subsystem__defined␊ |
475 | ␊ |
476 | #ifdef __MigPackStructs␊ |
477 | #pragma pack(4)␊ |
478 | #endif␊ |
479 | ␉typedef struct {␊ |
480 | ␉␉mach_msg_header_t Head;␊ |
481 | ␉} __Request__mach_port_names_t;␊ |
482 | #ifdef __MigPackStructs␊ |
483 | #pragma pack()␊ |
484 | #endif␊ |
485 | ␊ |
486 | #ifdef __MigPackStructs␊ |
487 | #pragma pack(4)␊ |
488 | #endif␊ |
489 | ␉typedef struct {␊ |
490 | ␉␉mach_msg_header_t Head;␊ |
491 | ␉␉NDR_record_t NDR;␊ |
492 | ␉␉mach_port_name_t name;␊ |
493 | ␉} __Request__mach_port_type_t;␊ |
494 | #ifdef __MigPackStructs␊ |
495 | #pragma pack()␊ |
496 | #endif␊ |
497 | ␊ |
498 | #ifdef __MigPackStructs␊ |
499 | #pragma pack(4)␊ |
500 | #endif␊ |
501 | ␉typedef struct {␊ |
502 | ␉␉mach_msg_header_t Head;␊ |
503 | ␉␉NDR_record_t NDR;␊ |
504 | ␉␉mach_port_name_t old_name;␊ |
505 | ␉␉mach_port_name_t new_name;␊ |
506 | ␉} __Request__mach_port_rename_t;␊ |
507 | #ifdef __MigPackStructs␊ |
508 | #pragma pack()␊ |
509 | #endif␊ |
510 | ␊ |
511 | #ifdef __MigPackStructs␊ |
512 | #pragma pack(4)␊ |
513 | #endif␊ |
514 | ␉typedef struct {␊ |
515 | ␉␉mach_msg_header_t Head;␊ |
516 | ␉␉NDR_record_t NDR;␊ |
517 | ␉␉mach_port_right_t right;␊ |
518 | ␉␉mach_port_name_t name;␊ |
519 | ␉} __Request__mach_port_allocate_name_t;␊ |
520 | #ifdef __MigPackStructs␊ |
521 | #pragma pack()␊ |
522 | #endif␊ |
523 | ␊ |
524 | #ifdef __MigPackStructs␊ |
525 | #pragma pack(4)␊ |
526 | #endif␊ |
527 | ␉typedef struct {␊ |
528 | ␉␉mach_msg_header_t Head;␊ |
529 | ␉␉NDR_record_t NDR;␊ |
530 | ␉␉mach_port_right_t right;␊ |
531 | ␉} __Request__mach_port_allocate_t;␊ |
532 | #ifdef __MigPackStructs␊ |
533 | #pragma pack()␊ |
534 | #endif␊ |
535 | ␊ |
536 | #ifdef __MigPackStructs␊ |
537 | #pragma pack(4)␊ |
538 | #endif␊ |
539 | ␉typedef struct {␊ |
540 | ␉␉mach_msg_header_t Head;␊ |
541 | ␉␉NDR_record_t NDR;␊ |
542 | ␉␉mach_port_name_t name;␊ |
543 | ␉} __Request__mach_port_destroy_t;␊ |
544 | #ifdef __MigPackStructs␊ |
545 | #pragma pack()␊ |
546 | #endif␊ |
547 | ␊ |
548 | #ifdef __MigPackStructs␊ |
549 | #pragma pack(4)␊ |
550 | #endif␊ |
551 | ␉typedef struct {␊ |
552 | ␉␉mach_msg_header_t Head;␊ |
553 | ␉␉NDR_record_t NDR;␊ |
554 | ␉␉mach_port_name_t name;␊ |
555 | ␉} __Request__mach_port_deallocate_t;␊ |
556 | #ifdef __MigPackStructs␊ |
557 | #pragma pack()␊ |
558 | #endif␊ |
559 | ␊ |
560 | #ifdef __MigPackStructs␊ |
561 | #pragma pack(4)␊ |
562 | #endif␊ |
563 | ␉typedef struct {␊ |
564 | ␉␉mach_msg_header_t Head;␊ |
565 | ␉␉NDR_record_t NDR;␊ |
566 | ␉␉mach_port_name_t name;␊ |
567 | ␉␉mach_port_right_t right;␊ |
568 | ␉} __Request__mach_port_get_refs_t;␊ |
569 | #ifdef __MigPackStructs␊ |
570 | #pragma pack()␊ |
571 | #endif␊ |
572 | ␊ |
573 | #ifdef __MigPackStructs␊ |
574 | #pragma pack(4)␊ |
575 | #endif␊ |
576 | ␉typedef struct {␊ |
577 | ␉␉mach_msg_header_t Head;␊ |
578 | ␉␉NDR_record_t NDR;␊ |
579 | ␉␉mach_port_name_t name;␊ |
580 | ␉␉mach_port_right_t right;␊ |
581 | ␉␉mach_port_delta_t delta;␊ |
582 | ␉} __Request__mach_port_mod_refs_t;␊ |
583 | #ifdef __MigPackStructs␊ |
584 | #pragma pack()␊ |
585 | #endif␊ |
586 | ␊ |
587 | #ifdef __MigPackStructs␊ |
588 | #pragma pack(4)␊ |
589 | #endif␊ |
590 | ␉typedef struct {␊ |
591 | ␉␉mach_msg_header_t Head;␊ |
592 | ␉␉NDR_record_t NDR;␊ |
593 | ␉␉mach_port_name_t name;␊ |
594 | ␉␉mach_port_mscount_t mscount;␊ |
595 | ␉} __Request__mach_port_set_mscount_t;␊ |
596 | #ifdef __MigPackStructs␊ |
597 | #pragma pack()␊ |
598 | #endif␊ |
599 | ␊ |
600 | #ifdef __MigPackStructs␊ |
601 | #pragma pack(4)␊ |
602 | #endif␊ |
603 | ␉typedef struct {␊ |
604 | ␉␉mach_msg_header_t Head;␊ |
605 | ␉␉NDR_record_t NDR;␊ |
606 | ␉␉mach_port_name_t name;␊ |
607 | ␉} __Request__mach_port_get_set_status_t;␊ |
608 | #ifdef __MigPackStructs␊ |
609 | #pragma pack()␊ |
610 | #endif␊ |
611 | ␊ |
612 | #ifdef __MigPackStructs␊ |
613 | #pragma pack(4)␊ |
614 | #endif␊ |
615 | ␉typedef struct {␊ |
616 | ␉␉mach_msg_header_t Head;␊ |
617 | ␉␉NDR_record_t NDR;␊ |
618 | ␉␉mach_port_name_t member;␊ |
619 | ␉␉mach_port_name_t after;␊ |
620 | ␉} __Request__mach_port_move_member_t;␊ |
621 | #ifdef __MigPackStructs␊ |
622 | #pragma pack()␊ |
623 | #endif␊ |
624 | ␊ |
625 | #ifdef __MigPackStructs␊ |
626 | #pragma pack(4)␊ |
627 | #endif␊ |
628 | ␉typedef struct {␊ |
629 | ␉␉mach_msg_header_t Head;␊ |
630 | ␉␉/* start of the kernel processed data */␊ |
631 | ␉␉mach_msg_body_t msgh_body;␊ |
632 | ␉␉mach_msg_port_descriptor_t notify;␊ |
633 | ␉␉/* end of the kernel processed data */␊ |
634 | ␉␉NDR_record_t NDR;␊ |
635 | ␉␉mach_port_name_t name;␊ |
636 | ␉␉mach_msg_id_t msgid;␊ |
637 | ␉␉mach_port_mscount_t sync;␊ |
638 | ␉} __Request__mach_port_request_notification_t;␊ |
639 | #ifdef __MigPackStructs␊ |
640 | #pragma pack()␊ |
641 | #endif␊ |
642 | ␊ |
643 | #ifdef __MigPackStructs␊ |
644 | #pragma pack(4)␊ |
645 | #endif␊ |
646 | ␉typedef struct {␊ |
647 | ␉␉mach_msg_header_t Head;␊ |
648 | ␉␉/* start of the kernel processed data */␊ |
649 | ␉␉mach_msg_body_t msgh_body;␊ |
650 | ␉␉mach_msg_port_descriptor_t poly;␊ |
651 | ␉␉/* end of the kernel processed data */␊ |
652 | ␉␉NDR_record_t NDR;␊ |
653 | ␉␉mach_port_name_t name;␊ |
654 | ␉} __Request__mach_port_insert_right_t;␊ |
655 | #ifdef __MigPackStructs␊ |
656 | #pragma pack()␊ |
657 | #endif␊ |
658 | ␊ |
659 | #ifdef __MigPackStructs␊ |
660 | #pragma pack(4)␊ |
661 | #endif␊ |
662 | ␉typedef struct {␊ |
663 | ␉␉mach_msg_header_t Head;␊ |
664 | ␉␉NDR_record_t NDR;␊ |
665 | ␉␉mach_port_name_t name;␊ |
666 | ␉␉mach_msg_type_name_t msgt_name;␊ |
667 | ␉} __Request__mach_port_extract_right_t;␊ |
668 | #ifdef __MigPackStructs␊ |
669 | #pragma pack()␊ |
670 | #endif␊ |
671 | ␊ |
672 | #ifdef __MigPackStructs␊ |
673 | #pragma pack(4)␊ |
674 | #endif␊ |
675 | ␉typedef struct {␊ |
676 | ␉␉mach_msg_header_t Head;␊ |
677 | ␉␉NDR_record_t NDR;␊ |
678 | ␉␉mach_port_name_t name;␊ |
679 | ␉␉mach_port_seqno_t seqno;␊ |
680 | ␉} __Request__mach_port_set_seqno_t;␊ |
681 | #ifdef __MigPackStructs␊ |
682 | #pragma pack()␊ |
683 | #endif␊ |
684 | ␊ |
685 | #ifdef __MigPackStructs␊ |
686 | #pragma pack(4)␊ |
687 | #endif␊ |
688 | ␉typedef struct {␊ |
689 | ␉␉mach_msg_header_t Head;␊ |
690 | ␉␉NDR_record_t NDR;␊ |
691 | ␉␉mach_port_name_t name;␊ |
692 | ␉␉mach_port_flavor_t flavor;␊ |
693 | ␉␉mach_msg_type_number_t port_info_outCnt;␊ |
694 | ␉} __Request__mach_port_get_attributes_t;␊ |
695 | #ifdef __MigPackStructs␊ |
696 | #pragma pack()␊ |
697 | #endif␊ |
698 | ␊ |
699 | #ifdef __MigPackStructs␊ |
700 | #pragma pack(4)␊ |
701 | #endif␊ |
702 | ␉typedef struct {␊ |
703 | ␉␉mach_msg_header_t Head;␊ |
704 | ␉␉NDR_record_t NDR;␊ |
705 | ␉␉mach_port_name_t name;␊ |
706 | ␉␉mach_port_flavor_t flavor;␊ |
707 | ␉␉mach_msg_type_number_t port_infoCnt;␊ |
708 | ␉␉integer_t port_info[10];␊ |
709 | ␉} __Request__mach_port_set_attributes_t;␊ |
710 | #ifdef __MigPackStructs␊ |
711 | #pragma pack()␊ |
712 | #endif␊ |
713 | ␊ |
714 | #ifdef __MigPackStructs␊ |
715 | #pragma pack(4)␊ |
716 | #endif␊ |
717 | ␉typedef struct {␊ |
718 | ␉␉mach_msg_header_t Head;␊ |
719 | ␉␉NDR_record_t NDR;␊ |
720 | ␉␉mach_port_right_t right;␊ |
721 | ␉␉mach_port_qos_t qos;␊ |
722 | ␉} __Request__mach_port_allocate_qos_t;␊ |
723 | #ifdef __MigPackStructs␊ |
724 | #pragma pack()␊ |
725 | #endif␊ |
726 | ␊ |
727 | #ifdef __MigPackStructs␊ |
728 | #pragma pack(4)␊ |
729 | #endif␊ |
730 | ␉typedef struct {␊ |
731 | ␉␉mach_msg_header_t Head;␊ |
732 | ␉␉/* start of the kernel processed data */␊ |
733 | ␉␉mach_msg_body_t msgh_body;␊ |
734 | ␉␉mach_msg_port_descriptor_t proto;␊ |
735 | ␉␉/* end of the kernel processed data */␊ |
736 | ␉␉NDR_record_t NDR;␊ |
737 | ␉␉mach_port_right_t right;␊ |
738 | ␉␉mach_port_qos_t qos;␊ |
739 | ␉␉mach_port_name_t name;␊ |
740 | ␉} __Request__mach_port_allocate_full_t;␊ |
741 | #ifdef __MigPackStructs␊ |
742 | #pragma pack()␊ |
743 | #endif␊ |
744 | ␊ |
745 | #ifdef __MigPackStructs␊ |
746 | #pragma pack(4)␊ |
747 | #endif␊ |
748 | ␉typedef struct {␊ |
749 | ␉␉mach_msg_header_t Head;␊ |
750 | ␉␉NDR_record_t NDR;␊ |
751 | ␉␉int table_entries;␊ |
752 | ␉} __Request__task_set_port_space_t;␊ |
753 | #ifdef __MigPackStructs␊ |
754 | #pragma pack()␊ |
755 | #endif␊ |
756 | ␊ |
757 | #ifdef __MigPackStructs␊ |
758 | #pragma pack(4)␊ |
759 | #endif␊ |
760 | ␉typedef struct {␊ |
761 | ␉␉mach_msg_header_t Head;␊ |
762 | ␉␉NDR_record_t NDR;␊ |
763 | ␉␉mach_port_name_t name;␊ |
764 | ␉} __Request__mach_port_get_srights_t;␊ |
765 | #ifdef __MigPackStructs␊ |
766 | #pragma pack()␊ |
767 | #endif␊ |
768 | ␊ |
769 | #ifdef __MigPackStructs␊ |
770 | #pragma pack(4)␊ |
771 | #endif␊ |
772 | ␉typedef struct {␊ |
773 | ␉␉mach_msg_header_t Head;␊ |
774 | ␉} __Request__mach_port_space_info_t;␊ |
775 | #ifdef __MigPackStructs␊ |
776 | #pragma pack()␊ |
777 | #endif␊ |
778 | ␊ |
779 | #ifdef __MigPackStructs␊ |
780 | #pragma pack(4)␊ |
781 | #endif␊ |
782 | ␉typedef struct {␊ |
783 | ␉␉mach_msg_header_t Head;␊ |
784 | ␉␉NDR_record_t NDR;␊ |
785 | ␉␉mach_port_name_t name;␊ |
786 | ␉} __Request__mach_port_dnrequest_info_t;␊ |
787 | #ifdef __MigPackStructs␊ |
788 | #pragma pack()␊ |
789 | #endif␊ |
790 | ␊ |
791 | #ifdef __MigPackStructs␊ |
792 | #pragma pack(4)␊ |
793 | #endif␊ |
794 | ␉typedef struct {␊ |
795 | ␉␉mach_msg_header_t Head;␊ |
796 | ␉␉NDR_record_t NDR;␊ |
797 | ␉␉mach_port_name_t name;␊ |
798 | ␉} __Request__mach_port_kernel_object_t;␊ |
799 | #ifdef __MigPackStructs␊ |
800 | #pragma pack()␊ |
801 | #endif␊ |
802 | ␊ |
803 | #ifdef __MigPackStructs␊ |
804 | #pragma pack(4)␊ |
805 | #endif␊ |
806 | ␉typedef struct {␊ |
807 | ␉␉mach_msg_header_t Head;␊ |
808 | ␉␉NDR_record_t NDR;␊ |
809 | ␉␉mach_port_name_t name;␊ |
810 | ␉␉mach_port_name_t pset;␊ |
811 | ␉} __Request__mach_port_insert_member_t;␊ |
812 | #ifdef __MigPackStructs␊ |
813 | #pragma pack()␊ |
814 | #endif␊ |
815 | ␊ |
816 | #ifdef __MigPackStructs␊ |
817 | #pragma pack(4)␊ |
818 | #endif␊ |
819 | ␉typedef struct {␊ |
820 | ␉␉mach_msg_header_t Head;␊ |
821 | ␉␉NDR_record_t NDR;␊ |
822 | ␉␉mach_port_name_t name;␊ |
823 | ␉␉mach_port_name_t pset;␊ |
824 | ␉} __Request__mach_port_extract_member_t;␊ |
825 | #ifdef __MigPackStructs␊ |
826 | #pragma pack()␊ |
827 | #endif␊ |
828 | ␊ |
829 | #ifdef __MigPackStructs␊ |
830 | #pragma pack(4)␊ |
831 | #endif␊ |
832 | ␉typedef struct {␊ |
833 | ␉␉mach_msg_header_t Head;␊ |
834 | ␉␉NDR_record_t NDR;␊ |
835 | ␉␉mach_port_name_t name;␊ |
836 | ␉} __Request__mach_port_get_context_t;␊ |
837 | #ifdef __MigPackStructs␊ |
838 | #pragma pack()␊ |
839 | #endif␊ |
840 | ␊ |
841 | #ifdef __MigPackStructs␊ |
842 | #pragma pack(4)␊ |
843 | #endif␊ |
844 | ␉typedef struct {␊ |
845 | ␉␉mach_msg_header_t Head;␊ |
846 | ␉␉NDR_record_t NDR;␊ |
847 | ␉␉mach_port_name_t name;␊ |
848 | ␉␉mach_port_context_t context;␊ |
849 | ␉} __Request__mach_port_set_context_t;␊ |
850 | #ifdef __MigPackStructs␊ |
851 | #pragma pack()␊ |
852 | #endif␊ |
853 | ␊ |
854 | #ifdef __MigPackStructs␊ |
855 | #pragma pack(4)␊ |
856 | #endif␊ |
857 | ␉typedef struct {␊ |
858 | ␉␉mach_msg_header_t Head;␊ |
859 | ␉␉NDR_record_t NDR;␊ |
860 | ␉␉mach_port_name_t name;␊ |
861 | ␉} __Request__mach_port_kobject_t;␊ |
862 | #ifdef __MigPackStructs␊ |
863 | #pragma pack()␊ |
864 | #endif␊ |
865 | #endif /* !__Request__mach_port_subsystem__defined */␊ |
866 | ␊ |
867 | /* union of all requests */␊ |
868 | ␊ |
869 | #ifndef __RequestUnion__mach_port_subsystem__defined␊ |
870 | #define __RequestUnion__mach_port_subsystem__defined␊ |
871 | union __RequestUnion__mach_port_subsystem {␊ |
872 | ␉__Request__mach_port_names_t Request_mach_port_names;␊ |
873 | ␉__Request__mach_port_type_t Request_mach_port_type;␊ |
874 | ␉__Request__mach_port_rename_t Request_mach_port_rename;␊ |
875 | ␉__Request__mach_port_allocate_name_t Request_mach_port_allocate_name;␊ |
876 | ␉__Request__mach_port_allocate_t Request_mach_port_allocate;␊ |
877 | ␉__Request__mach_port_destroy_t Request_mach_port_destroy;␊ |
878 | ␉__Request__mach_port_deallocate_t Request_mach_port_deallocate;␊ |
879 | ␉__Request__mach_port_get_refs_t Request_mach_port_get_refs;␊ |
880 | ␉__Request__mach_port_mod_refs_t Request_mach_port_mod_refs;␊ |
881 | ␉__Request__mach_port_set_mscount_t Request_mach_port_set_mscount;␊ |
882 | ␉__Request__mach_port_get_set_status_t Request_mach_port_get_set_status;␊ |
883 | ␉__Request__mach_port_move_member_t Request_mach_port_move_member;␊ |
884 | ␉__Request__mach_port_request_notification_t Request_mach_port_request_notification;␊ |
885 | ␉__Request__mach_port_insert_right_t Request_mach_port_insert_right;␊ |
886 | ␉__Request__mach_port_extract_right_t Request_mach_port_extract_right;␊ |
887 | ␉__Request__mach_port_set_seqno_t Request_mach_port_set_seqno;␊ |
888 | ␉__Request__mach_port_get_attributes_t Request_mach_port_get_attributes;␊ |
889 | ␉__Request__mach_port_set_attributes_t Request_mach_port_set_attributes;␊ |
890 | ␉__Request__mach_port_allocate_qos_t Request_mach_port_allocate_qos;␊ |
891 | ␉__Request__mach_port_allocate_full_t Request_mach_port_allocate_full;␊ |
892 | ␉__Request__task_set_port_space_t Request_task_set_port_space;␊ |
893 | ␉__Request__mach_port_get_srights_t Request_mach_port_get_srights;␊ |
894 | ␉__Request__mach_port_space_info_t Request_mach_port_space_info;␊ |
895 | ␉__Request__mach_port_dnrequest_info_t Request_mach_port_dnrequest_info;␊ |
896 | ␉__Request__mach_port_kernel_object_t Request_mach_port_kernel_object;␊ |
897 | ␉__Request__mach_port_insert_member_t Request_mach_port_insert_member;␊ |
898 | ␉__Request__mach_port_extract_member_t Request_mach_port_extract_member;␊ |
899 | ␉__Request__mach_port_get_context_t Request_mach_port_get_context;␊ |
900 | ␉__Request__mach_port_set_context_t Request_mach_port_set_context;␊ |
901 | ␉__Request__mach_port_kobject_t Request_mach_port_kobject;␊ |
902 | };␊ |
903 | #endif /* !__RequestUnion__mach_port_subsystem__defined */␊ |
904 | /* typedefs for all replies */␊ |
905 | ␊ |
906 | #ifndef __Reply__mach_port_subsystem__defined␊ |
907 | #define __Reply__mach_port_subsystem__defined␊ |
908 | ␊ |
909 | #ifdef __MigPackStructs␊ |
910 | #pragma pack(4)␊ |
911 | #endif␊ |
912 | ␉typedef struct {␊ |
913 | ␉␉mach_msg_header_t Head;␊ |
914 | ␉␉/* start of the kernel processed data */␊ |
915 | ␉␉mach_msg_body_t msgh_body;␊ |
916 | ␉␉mach_msg_ool_descriptor_t names;␊ |
917 | ␉␉mach_msg_ool_descriptor_t types;␊ |
918 | ␉␉/* end of the kernel processed data */␊ |
919 | ␉␉NDR_record_t NDR;␊ |
920 | ␉␉mach_msg_type_number_t namesCnt;␊ |
921 | ␉␉mach_msg_type_number_t typesCnt;␊ |
922 | ␉} __Reply__mach_port_names_t;␊ |
923 | #ifdef __MigPackStructs␊ |
924 | #pragma pack()␊ |
925 | #endif␊ |
926 | ␊ |
927 | #ifdef __MigPackStructs␊ |
928 | #pragma pack(4)␊ |
929 | #endif␊ |
930 | ␉typedef struct {␊ |
931 | ␉␉mach_msg_header_t Head;␊ |
932 | ␉␉NDR_record_t NDR;␊ |
933 | ␉␉kern_return_t RetCode;␊ |
934 | ␉␉mach_port_type_t ptype;␊ |
935 | ␉} __Reply__mach_port_type_t;␊ |
936 | #ifdef __MigPackStructs␊ |
937 | #pragma pack()␊ |
938 | #endif␊ |
939 | ␊ |
940 | #ifdef __MigPackStructs␊ |
941 | #pragma pack(4)␊ |
942 | #endif␊ |
943 | ␉typedef struct {␊ |
944 | ␉␉mach_msg_header_t Head;␊ |
945 | ␉␉NDR_record_t NDR;␊ |
946 | ␉␉kern_return_t RetCode;␊ |
947 | ␉} __Reply__mach_port_rename_t;␊ |
948 | #ifdef __MigPackStructs␊ |
949 | #pragma pack()␊ |
950 | #endif␊ |
951 | ␊ |
952 | #ifdef __MigPackStructs␊ |
953 | #pragma pack(4)␊ |
954 | #endif␊ |
955 | ␉typedef struct {␊ |
956 | ␉␉mach_msg_header_t Head;␊ |
957 | ␉␉NDR_record_t NDR;␊ |
958 | ␉␉kern_return_t RetCode;␊ |
959 | ␉} __Reply__mach_port_allocate_name_t;␊ |
960 | #ifdef __MigPackStructs␊ |
961 | #pragma pack()␊ |
962 | #endif␊ |
963 | ␊ |
964 | #ifdef __MigPackStructs␊ |
965 | #pragma pack(4)␊ |
966 | #endif␊ |
967 | ␉typedef struct {␊ |
968 | ␉␉mach_msg_header_t Head;␊ |
969 | ␉␉NDR_record_t NDR;␊ |
970 | ␉␉kern_return_t RetCode;␊ |
971 | ␉␉mach_port_name_t name;␊ |
972 | ␉} __Reply__mach_port_allocate_t;␊ |
973 | #ifdef __MigPackStructs␊ |
974 | #pragma pack()␊ |
975 | #endif␊ |
976 | ␊ |
977 | #ifdef __MigPackStructs␊ |
978 | #pragma pack(4)␊ |
979 | #endif␊ |
980 | ␉typedef struct {␊ |
981 | ␉␉mach_msg_header_t Head;␊ |
982 | ␉␉NDR_record_t NDR;␊ |
983 | ␉␉kern_return_t RetCode;␊ |
984 | ␉} __Reply__mach_port_destroy_t;␊ |
985 | #ifdef __MigPackStructs␊ |
986 | #pragma pack()␊ |
987 | #endif␊ |
988 | ␊ |
989 | #ifdef __MigPackStructs␊ |
990 | #pragma pack(4)␊ |
991 | #endif␊ |
992 | ␉typedef struct {␊ |
993 | ␉␉mach_msg_header_t Head;␊ |
994 | ␉␉NDR_record_t NDR;␊ |
995 | ␉␉kern_return_t RetCode;␊ |
996 | ␉} __Reply__mach_port_deallocate_t;␊ |
997 | #ifdef __MigPackStructs␊ |
998 | #pragma pack()␊ |
999 | #endif␊ |
1000 | ␊ |
1001 | #ifdef __MigPackStructs␊ |
1002 | #pragma pack(4)␊ |
1003 | #endif␊ |
1004 | ␉typedef struct {␊ |
1005 | ␉␉mach_msg_header_t Head;␊ |
1006 | ␉␉NDR_record_t NDR;␊ |
1007 | ␉␉kern_return_t RetCode;␊ |
1008 | ␉␉mach_port_urefs_t refs;␊ |
1009 | ␉} __Reply__mach_port_get_refs_t;␊ |
1010 | #ifdef __MigPackStructs␊ |
1011 | #pragma pack()␊ |
1012 | #endif␊ |
1013 | ␊ |
1014 | #ifdef __MigPackStructs␊ |
1015 | #pragma pack(4)␊ |
1016 | #endif␊ |
1017 | ␉typedef struct {␊ |
1018 | ␉␉mach_msg_header_t Head;␊ |
1019 | ␉␉NDR_record_t NDR;␊ |
1020 | ␉␉kern_return_t RetCode;␊ |
1021 | ␉} __Reply__mach_port_mod_refs_t;␊ |
1022 | #ifdef __MigPackStructs␊ |
1023 | #pragma pack()␊ |
1024 | #endif␊ |
1025 | ␊ |
1026 | #ifdef __MigPackStructs␊ |
1027 | #pragma pack(4)␊ |
1028 | #endif␊ |
1029 | ␉typedef struct {␊ |
1030 | ␉␉mach_msg_header_t Head;␊ |
1031 | ␉␉NDR_record_t NDR;␊ |
1032 | ␉␉kern_return_t RetCode;␊ |
1033 | ␉} __Reply__mach_port_set_mscount_t;␊ |
1034 | #ifdef __MigPackStructs␊ |
1035 | #pragma pack()␊ |
1036 | #endif␊ |
1037 | ␊ |
1038 | #ifdef __MigPackStructs␊ |
1039 | #pragma pack(4)␊ |
1040 | #endif␊ |
1041 | ␉typedef struct {␊ |
1042 | ␉␉mach_msg_header_t Head;␊ |
1043 | ␉␉/* start of the kernel processed data */␊ |
1044 | ␉␉mach_msg_body_t msgh_body;␊ |
1045 | ␉␉mach_msg_ool_descriptor_t members;␊ |
1046 | ␉␉/* end of the kernel processed data */␊ |
1047 | ␉␉NDR_record_t NDR;␊ |
1048 | ␉␉mach_msg_type_number_t membersCnt;␊ |
1049 | ␉} __Reply__mach_port_get_set_status_t;␊ |
1050 | #ifdef __MigPackStructs␊ |
1051 | #pragma pack()␊ |
1052 | #endif␊ |
1053 | ␊ |
1054 | #ifdef __MigPackStructs␊ |
1055 | #pragma pack(4)␊ |
1056 | #endif␊ |
1057 | ␉typedef struct {␊ |
1058 | ␉␉mach_msg_header_t Head;␊ |
1059 | ␉␉NDR_record_t NDR;␊ |
1060 | ␉␉kern_return_t RetCode;␊ |
1061 | ␉} __Reply__mach_port_move_member_t;␊ |
1062 | #ifdef __MigPackStructs␊ |
1063 | #pragma pack()␊ |
1064 | #endif␊ |
1065 | ␊ |
1066 | #ifdef __MigPackStructs␊ |
1067 | #pragma pack(4)␊ |
1068 | #endif␊ |
1069 | ␉typedef struct {␊ |
1070 | ␉␉mach_msg_header_t Head;␊ |
1071 | ␉␉/* start of the kernel processed data */␊ |
1072 | ␉␉mach_msg_body_t msgh_body;␊ |
1073 | ␉␉mach_msg_port_descriptor_t previous;␊ |
1074 | ␉␉/* end of the kernel processed data */␊ |
1075 | ␉} __Reply__mach_port_request_notification_t;␊ |
1076 | #ifdef __MigPackStructs␊ |
1077 | #pragma pack()␊ |
1078 | #endif␊ |
1079 | ␊ |
1080 | #ifdef __MigPackStructs␊ |
1081 | #pragma pack(4)␊ |
1082 | #endif␊ |
1083 | ␉typedef struct {␊ |
1084 | ␉␉mach_msg_header_t Head;␊ |
1085 | ␉␉NDR_record_t NDR;␊ |
1086 | ␉␉kern_return_t RetCode;␊ |
1087 | ␉} __Reply__mach_port_insert_right_t;␊ |
1088 | #ifdef __MigPackStructs␊ |
1089 | #pragma pack()␊ |
1090 | #endif␊ |
1091 | ␊ |
1092 | #ifdef __MigPackStructs␊ |
1093 | #pragma pack(4)␊ |
1094 | #endif␊ |
1095 | ␉typedef struct {␊ |
1096 | ␉␉mach_msg_header_t Head;␊ |
1097 | ␉␉/* start of the kernel processed data */␊ |
1098 | ␉␉mach_msg_body_t msgh_body;␊ |
1099 | ␉␉mach_msg_port_descriptor_t poly;␊ |
1100 | ␉␉/* end of the kernel processed data */␊ |
1101 | ␉} __Reply__mach_port_extract_right_t;␊ |
1102 | #ifdef __MigPackStructs␊ |
1103 | #pragma pack()␊ |
1104 | #endif␊ |
1105 | ␊ |
1106 | #ifdef __MigPackStructs␊ |
1107 | #pragma pack(4)␊ |
1108 | #endif␊ |
1109 | ␉typedef struct {␊ |
1110 | ␉␉mach_msg_header_t Head;␊ |
1111 | ␉␉NDR_record_t NDR;␊ |
1112 | ␉␉kern_return_t RetCode;␊ |
1113 | ␉} __Reply__mach_port_set_seqno_t;␊ |
1114 | #ifdef __MigPackStructs␊ |
1115 | #pragma pack()␊ |
1116 | #endif␊ |
1117 | ␊ |
1118 | #ifdef __MigPackStructs␊ |
1119 | #pragma pack(4)␊ |
1120 | #endif␊ |
1121 | ␉typedef struct {␊ |
1122 | ␉␉mach_msg_header_t Head;␊ |
1123 | ␉␉NDR_record_t NDR;␊ |
1124 | ␉␉kern_return_t RetCode;␊ |
1125 | ␉␉mach_msg_type_number_t port_info_outCnt;␊ |
1126 | ␉␉integer_t port_info_out[10];␊ |
1127 | ␉} __Reply__mach_port_get_attributes_t;␊ |
1128 | #ifdef __MigPackStructs␊ |
1129 | #pragma pack()␊ |
1130 | #endif␊ |
1131 | ␊ |
1132 | #ifdef __MigPackStructs␊ |
1133 | #pragma pack(4)␊ |
1134 | #endif␊ |
1135 | ␉typedef struct {␊ |
1136 | ␉␉mach_msg_header_t Head;␊ |
1137 | ␉␉NDR_record_t NDR;␊ |
1138 | ␉␉kern_return_t RetCode;␊ |
1139 | ␉} __Reply__mach_port_set_attributes_t;␊ |
1140 | #ifdef __MigPackStructs␊ |
1141 | #pragma pack()␊ |
1142 | #endif␊ |
1143 | ␊ |
1144 | #ifdef __MigPackStructs␊ |
1145 | #pragma pack(4)␊ |
1146 | #endif␊ |
1147 | ␉typedef struct {␊ |
1148 | ␉␉mach_msg_header_t Head;␊ |
1149 | ␉␉NDR_record_t NDR;␊ |
1150 | ␉␉kern_return_t RetCode;␊ |
1151 | ␉␉mach_port_qos_t qos;␊ |
1152 | ␉␉mach_port_name_t name;␊ |
1153 | ␉} __Reply__mach_port_allocate_qos_t;␊ |
1154 | #ifdef __MigPackStructs␊ |
1155 | #pragma pack()␊ |
1156 | #endif␊ |
1157 | ␊ |
1158 | #ifdef __MigPackStructs␊ |
1159 | #pragma pack(4)␊ |
1160 | #endif␊ |
1161 | ␉typedef struct {␊ |
1162 | ␉␉mach_msg_header_t Head;␊ |
1163 | ␉␉NDR_record_t NDR;␊ |
1164 | ␉␉kern_return_t RetCode;␊ |
1165 | ␉␉mach_port_qos_t qos;␊ |
1166 | ␉␉mach_port_name_t name;␊ |
1167 | ␉} __Reply__mach_port_allocate_full_t;␊ |
1168 | #ifdef __MigPackStructs␊ |
1169 | #pragma pack()␊ |
1170 | #endif␊ |
1171 | ␊ |
1172 | #ifdef __MigPackStructs␊ |
1173 | #pragma pack(4)␊ |
1174 | #endif␊ |
1175 | ␉typedef struct {␊ |
1176 | ␉␉mach_msg_header_t Head;␊ |
1177 | ␉␉NDR_record_t NDR;␊ |
1178 | ␉␉kern_return_t RetCode;␊ |
1179 | ␉} __Reply__task_set_port_space_t;␊ |
1180 | #ifdef __MigPackStructs␊ |
1181 | #pragma pack()␊ |
1182 | #endif␊ |
1183 | ␊ |
1184 | #ifdef __MigPackStructs␊ |
1185 | #pragma pack(4)␊ |
1186 | #endif␊ |
1187 | ␉typedef struct {␊ |
1188 | ␉␉mach_msg_header_t Head;␊ |
1189 | ␉␉NDR_record_t NDR;␊ |
1190 | ␉␉kern_return_t RetCode;␊ |
1191 | ␉␉mach_port_rights_t srights;␊ |
1192 | ␉} __Reply__mach_port_get_srights_t;␊ |
1193 | #ifdef __MigPackStructs␊ |
1194 | #pragma pack()␊ |
1195 | #endif␊ |
1196 | ␊ |
1197 | #ifdef __MigPackStructs␊ |
1198 | #pragma pack(4)␊ |
1199 | #endif␊ |
1200 | ␉typedef struct {␊ |
1201 | ␉␉mach_msg_header_t Head;␊ |
1202 | ␉␉/* start of the kernel processed data */␊ |
1203 | ␉␉mach_msg_body_t msgh_body;␊ |
1204 | ␉␉mach_msg_ool_descriptor_t table_info;␊ |
1205 | ␉␉mach_msg_ool_descriptor_t tree_info;␊ |
1206 | ␉␉/* end of the kernel processed data */␊ |
1207 | ␉␉NDR_record_t NDR;␊ |
1208 | ␉␉ipc_info_space_t space_info;␊ |
1209 | ␉␉mach_msg_type_number_t table_infoCnt;␊ |
1210 | ␉␉mach_msg_type_number_t tree_infoCnt;␊ |
1211 | ␉} __Reply__mach_port_space_info_t;␊ |
1212 | #ifdef __MigPackStructs␊ |
1213 | #pragma pack()␊ |
1214 | #endif␊ |
1215 | ␊ |
1216 | #ifdef __MigPackStructs␊ |
1217 | #pragma pack(4)␊ |
1218 | #endif␊ |
1219 | ␉typedef struct {␊ |
1220 | ␉␉mach_msg_header_t Head;␊ |
1221 | ␉␉NDR_record_t NDR;␊ |
1222 | ␉␉kern_return_t RetCode;␊ |
1223 | ␉␉unsigned dnr_total;␊ |
1224 | ␉␉unsigned dnr_used;␊ |
1225 | ␉} __Reply__mach_port_dnrequest_info_t;␊ |
1226 | #ifdef __MigPackStructs␊ |
1227 | #pragma pack()␊ |
1228 | #endif␊ |
1229 | ␊ |
1230 | #ifdef __MigPackStructs␊ |
1231 | #pragma pack(4)␊ |
1232 | #endif␊ |
1233 | ␉typedef struct {␊ |
1234 | ␉␉mach_msg_header_t Head;␊ |
1235 | ␉␉NDR_record_t NDR;␊ |
1236 | ␉␉kern_return_t RetCode;␊ |
1237 | ␉␉unsigned object_type;␊ |
1238 | ␉␉unsigned object_addr;␊ |
1239 | ␉} __Reply__mach_port_kernel_object_t;␊ |
1240 | #ifdef __MigPackStructs␊ |
1241 | #pragma pack()␊ |
1242 | #endif␊ |
1243 | ␊ |
1244 | #ifdef __MigPackStructs␊ |
1245 | #pragma pack(4)␊ |
1246 | #endif␊ |
1247 | ␉typedef struct {␊ |
1248 | ␉␉mach_msg_header_t Head;␊ |
1249 | ␉␉NDR_record_t NDR;␊ |
1250 | ␉␉kern_return_t RetCode;␊ |
1251 | ␉} __Reply__mach_port_insert_member_t;␊ |
1252 | #ifdef __MigPackStructs␊ |
1253 | #pragma pack()␊ |
1254 | #endif␊ |
1255 | ␊ |
1256 | #ifdef __MigPackStructs␊ |
1257 | #pragma pack(4)␊ |
1258 | #endif␊ |
1259 | ␉typedef struct {␊ |
1260 | ␉␉mach_msg_header_t Head;␊ |
1261 | ␉␉NDR_record_t NDR;␊ |
1262 | ␉␉kern_return_t RetCode;␊ |
1263 | ␉} __Reply__mach_port_extract_member_t;␊ |
1264 | #ifdef __MigPackStructs␊ |
1265 | #pragma pack()␊ |
1266 | #endif␊ |
1267 | ␊ |
1268 | #ifdef __MigPackStructs␊ |
1269 | #pragma pack(4)␊ |
1270 | #endif␊ |
1271 | ␉typedef struct {␊ |
1272 | ␉␉mach_msg_header_t Head;␊ |
1273 | ␉␉NDR_record_t NDR;␊ |
1274 | ␉␉kern_return_t RetCode;␊ |
1275 | ␉␉mach_port_context_t context;␊ |
1276 | ␉} __Reply__mach_port_get_context_t;␊ |
1277 | #ifdef __MigPackStructs␊ |
1278 | #pragma pack()␊ |
1279 | #endif␊ |
1280 | ␊ |
1281 | #ifdef __MigPackStructs␊ |
1282 | #pragma pack(4)␊ |
1283 | #endif␊ |
1284 | ␉typedef struct {␊ |
1285 | ␉␉mach_msg_header_t Head;␊ |
1286 | ␉␉NDR_record_t NDR;␊ |
1287 | ␉␉kern_return_t RetCode;␊ |
1288 | ␉} __Reply__mach_port_set_context_t;␊ |
1289 | #ifdef __MigPackStructs␊ |
1290 | #pragma pack()␊ |
1291 | #endif␊ |
1292 | ␊ |
1293 | #ifdef __MigPackStructs␊ |
1294 | #pragma pack(4)␊ |
1295 | #endif␊ |
1296 | ␉typedef struct {␊ |
1297 | ␉␉mach_msg_header_t Head;␊ |
1298 | ␉␉NDR_record_t NDR;␊ |
1299 | ␉␉kern_return_t RetCode;␊ |
1300 | ␉␉natural_t object_type;␊ |
1301 | ␉␉mach_vm_address_t object_addr;␊ |
1302 | ␉} __Reply__mach_port_kobject_t;␊ |
1303 | #ifdef __MigPackStructs␊ |
1304 | #pragma pack()␊ |
1305 | #endif␊ |
1306 | #endif /* !__Reply__mach_port_subsystem__defined */␊ |
1307 | ␊ |
1308 | /* union of all replies */␊ |
1309 | ␊ |
1310 | #ifndef __ReplyUnion__mach_port_subsystem__defined␊ |
1311 | #define __ReplyUnion__mach_port_subsystem__defined␊ |
1312 | union __ReplyUnion__mach_port_subsystem {␊ |
1313 | ␉__Reply__mach_port_names_t Reply_mach_port_names;␊ |
1314 | ␉__Reply__mach_port_type_t Reply_mach_port_type;␊ |
1315 | ␉__Reply__mach_port_rename_t Reply_mach_port_rename;␊ |
1316 | ␉__Reply__mach_port_allocate_name_t Reply_mach_port_allocate_name;␊ |
1317 | ␉__Reply__mach_port_allocate_t Reply_mach_port_allocate;␊ |
1318 | ␉__Reply__mach_port_destroy_t Reply_mach_port_destroy;␊ |
1319 | ␉__Reply__mach_port_deallocate_t Reply_mach_port_deallocate;␊ |
1320 | ␉__Reply__mach_port_get_refs_t Reply_mach_port_get_refs;␊ |
1321 | ␉__Reply__mach_port_mod_refs_t Reply_mach_port_mod_refs;␊ |
1322 | ␉__Reply__mach_port_set_mscount_t Reply_mach_port_set_mscount;␊ |
1323 | ␉__Reply__mach_port_get_set_status_t Reply_mach_port_get_set_status;␊ |
1324 | ␉__Reply__mach_port_move_member_t Reply_mach_port_move_member;␊ |
1325 | ␉__Reply__mach_port_request_notification_t Reply_mach_port_request_notification;␊ |
1326 | ␉__Reply__mach_port_insert_right_t Reply_mach_port_insert_right;␊ |
1327 | ␉__Reply__mach_port_extract_right_t Reply_mach_port_extract_right;␊ |
1328 | ␉__Reply__mach_port_set_seqno_t Reply_mach_port_set_seqno;␊ |
1329 | ␉__Reply__mach_port_get_attributes_t Reply_mach_port_get_attributes;␊ |
1330 | ␉__Reply__mach_port_set_attributes_t Reply_mach_port_set_attributes;␊ |
1331 | ␉__Reply__mach_port_allocate_qos_t Reply_mach_port_allocate_qos;␊ |
1332 | ␉__Reply__mach_port_allocate_full_t Reply_mach_port_allocate_full;␊ |
1333 | ␉__Reply__task_set_port_space_t Reply_task_set_port_space;␊ |
1334 | ␉__Reply__mach_port_get_srights_t Reply_mach_port_get_srights;␊ |
1335 | ␉__Reply__mach_port_space_info_t Reply_mach_port_space_info;␊ |
1336 | ␉__Reply__mach_port_dnrequest_info_t Reply_mach_port_dnrequest_info;␊ |
1337 | ␉__Reply__mach_port_kernel_object_t Reply_mach_port_kernel_object;␊ |
1338 | ␉__Reply__mach_port_insert_member_t Reply_mach_port_insert_member;␊ |
1339 | ␉__Reply__mach_port_extract_member_t Reply_mach_port_extract_member;␊ |
1340 | ␉__Reply__mach_port_get_context_t Reply_mach_port_get_context;␊ |
1341 | ␉__Reply__mach_port_set_context_t Reply_mach_port_set_context;␊ |
1342 | ␉__Reply__mach_port_kobject_t Reply_mach_port_kobject;␊ |
1343 | };␊ |
1344 | #endif /* !__RequestUnion__mach_port_subsystem__defined */␊ |
1345 | ␊ |
1346 | #ifndef subsystem_to_name_map_mach_port␊ |
1347 | #define subsystem_to_name_map_mach_port \␊ |
1348 | { "mach_port_names", 3200 },\␊ |
1349 | { "mach_port_type", 3201 },\␊ |
1350 | { "mach_port_rename", 3202 },\␊ |
1351 | { "mach_port_allocate_name", 3203 },\␊ |
1352 | { "mach_port_allocate", 3204 },\␊ |
1353 | { "mach_port_destroy", 3205 },\␊ |
1354 | { "mach_port_deallocate", 3206 },\␊ |
1355 | { "mach_port_get_refs", 3207 },\␊ |
1356 | { "mach_port_mod_refs", 3208 },\␊ |
1357 | { "mach_port_set_mscount", 3210 },\␊ |
1358 | { "mach_port_get_set_status", 3211 },\␊ |
1359 | { "mach_port_move_member", 3212 },\␊ |
1360 | { "mach_port_request_notification", 3213 },\␊ |
1361 | { "mach_port_insert_right", 3214 },\␊ |
1362 | { "mach_port_extract_right", 3215 },\␊ |
1363 | { "mach_port_set_seqno", 3216 },\␊ |
1364 | { "mach_port_get_attributes", 3217 },\␊ |
1365 | { "mach_port_set_attributes", 3218 },\␊ |
1366 | { "mach_port_allocate_qos", 3219 },\␊ |
1367 | { "mach_port_allocate_full", 3220 },\␊ |
1368 | { "task_set_port_space", 3221 },\␊ |
1369 | { "mach_port_get_srights", 3222 },\␊ |
1370 | { "mach_port_space_info", 3223 },\␊ |
1371 | { "mach_port_dnrequest_info", 3224 },\␊ |
1372 | { "mach_port_kernel_object", 3225 },\␊ |
1373 | { "mach_port_insert_member", 3226 },\␊ |
1374 | { "mach_port_extract_member", 3227 },\␊ |
1375 | { "mach_port_get_context", 3228 },\␊ |
1376 | { "mach_port_set_context", 3229 },\␊ |
1377 | { "mach_port_kobject", 3230 }␊ |
1378 | #endif␊ |
1379 | ␊ |
1380 | #ifdef __AfterMigUserHeader␊ |
1381 | __AfterMigUserHeader␊ |
1382 | #endif /* __AfterMigUserHeader */␊ |
1383 | ␊ |
1384 | #endif␉ /* _mach_port_user_ */␊ |
1385 | |