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