1 | #ifndef _task_user_ |
2 | #define _task_user_ |
3 | |
4 | /* Module task */ |
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 | /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ |
17 | |
18 | #if defined(__has_include) |
19 | #if __has_include(<mach/mig_strncpy_zerofill_support.h>) |
20 | #ifndef USING_MIG_STRNCPY_ZEROFILL |
21 | #define USING_MIG_STRNCPY_ZEROFILL |
22 | #endif |
23 | #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ |
24 | #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ |
25 | #ifdef __cplusplus |
26 | extern "C" { |
27 | #endif |
28 | #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS_CSTRING_ATTR |
29 | #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS_CSTRING_COUNTEDBY_ATTR(C) __unsafe_indexable |
30 | #endif |
31 | extern int mig_strncpy_zerofill(char * dest, const char * src, int len) __attribute__((weak_import)); |
32 | #ifdef __cplusplus |
33 | } |
34 | #endif |
35 | #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ |
36 | #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ |
37 | #endif /* __has_include */ |
38 | |
39 | /* END MIG_STRNCPY_ZEROFILL CODE */ |
40 | |
41 | |
42 | #ifdef AUTOTEST |
43 | #ifndef FUNCTION_PTR_T |
44 | #define FUNCTION_PTR_T |
45 | typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); |
46 | typedef struct { |
47 | char * name; |
48 | function_ptr_t function; |
49 | } function_table_entry; |
50 | typedef function_table_entry *function_table_t; |
51 | #endif /* FUNCTION_PTR_T */ |
52 | #endif /* AUTOTEST */ |
53 | |
54 | #ifndef task_MSG_COUNT |
55 | #define task_MSG_COUNT 65 |
56 | #endif /* task_MSG_COUNT */ |
57 | |
58 | #include <Availability.h> |
59 | #include <mach/std_types.h> |
60 | #include <mach/mig.h> |
61 | #include <mach/mig.h> |
62 | #include <mach/mach_types.h> |
63 | #include <mach_debug/mach_debug_types.h> |
64 | |
65 | #ifdef __BeforeMigUserHeader |
66 | __BeforeMigUserHeader |
67 | #endif /* __BeforeMigUserHeader */ |
68 | |
69 | #include <sys/cdefs.h> |
70 | __BEGIN_DECLS |
71 | |
72 | |
73 | /* Routine task_create */ |
74 | #ifdef mig_external |
75 | mig_external |
76 | #else |
77 | extern |
78 | #endif /* mig_external */ |
79 | kern_return_t task_create |
80 | ( |
81 | task_t target_task, |
82 | ledger_array_t ledgers, |
83 | mach_msg_type_number_t ledgersCnt, |
84 | boolean_t inherit_memory, |
85 | task_t *child_task |
86 | ); |
87 | |
88 | /* Routine task_terminate */ |
89 | #ifdef mig_external |
90 | mig_external |
91 | #else |
92 | extern |
93 | #endif /* mig_external */ |
94 | kern_return_t task_terminate |
95 | ( |
96 | task_t target_task |
97 | ); |
98 | |
99 | /* Routine task_threads */ |
100 | #ifdef mig_external |
101 | mig_external |
102 | #else |
103 | extern |
104 | #endif /* mig_external */ |
105 | kern_return_t task_threads |
106 | ( |
107 | task_inspect_t target_task, |
108 | thread_act_array_t *act_list, |
109 | mach_msg_type_number_t *act_listCnt |
110 | ); |
111 | |
112 | /* Routine mach_ports_register */ |
113 | #ifdef mig_external |
114 | mig_external |
115 | #else |
116 | extern |
117 | #endif /* mig_external */ |
118 | kern_return_t mach_ports_register |
119 | ( |
120 | task_t target_task, |
121 | mach_port_array_t init_port_set, |
122 | mach_msg_type_number_t init_port_setCnt |
123 | ); |
124 | |
125 | /* Routine mach_ports_lookup */ |
126 | #ifdef mig_external |
127 | mig_external |
128 | #else |
129 | extern |
130 | #endif /* mig_external */ |
131 | kern_return_t mach_ports_lookup |
132 | ( |
133 | task_t target_task, |
134 | mach_port_array_t *init_port_set, |
135 | mach_msg_type_number_t *init_port_setCnt |
136 | ); |
137 | |
138 | /* Routine task_info */ |
139 | #ifdef mig_external |
140 | mig_external |
141 | #else |
142 | extern |
143 | #endif /* mig_external */ |
144 | kern_return_t task_info |
145 | ( |
146 | task_name_t target_task, |
147 | task_flavor_t flavor, |
148 | task_info_t task_info_out, |
149 | mach_msg_type_number_t *task_info_outCnt |
150 | ); |
151 | |
152 | /* Routine task_set_info */ |
153 | #ifdef mig_external |
154 | mig_external |
155 | #else |
156 | extern |
157 | #endif /* mig_external */ |
158 | kern_return_t task_set_info |
159 | ( |
160 | task_t target_task, |
161 | task_flavor_t flavor, |
162 | task_info_t task_info_in, |
163 | mach_msg_type_number_t task_info_inCnt |
164 | ); |
165 | |
166 | /* Routine task_suspend */ |
167 | #ifdef mig_external |
168 | mig_external |
169 | #else |
170 | extern |
171 | #endif /* mig_external */ |
172 | kern_return_t task_suspend |
173 | ( |
174 | task_read_t target_task |
175 | ); |
176 | |
177 | /* Routine task_resume */ |
178 | #ifdef mig_external |
179 | mig_external |
180 | #else |
181 | extern |
182 | #endif /* mig_external */ |
183 | kern_return_t task_resume |
184 | ( |
185 | task_read_t target_task |
186 | ); |
187 | |
188 | /* Routine task_get_special_port */ |
189 | #ifdef mig_external |
190 | mig_external |
191 | #else |
192 | extern |
193 | #endif /* mig_external */ |
194 | kern_return_t task_get_special_port |
195 | ( |
196 | task_inspect_t task, |
197 | int which_port, |
198 | mach_port_t *special_port |
199 | ); |
200 | |
201 | /* Routine task_set_special_port */ |
202 | #ifdef mig_external |
203 | mig_external |
204 | #else |
205 | extern |
206 | #endif /* mig_external */ |
207 | kern_return_t task_set_special_port |
208 | ( |
209 | task_t task, |
210 | int which_port, |
211 | mach_port_t special_port |
212 | ); |
213 | |
214 | /* Routine thread_create */ |
215 | #ifdef mig_external |
216 | mig_external |
217 | #else |
218 | extern |
219 | #endif /* mig_external */ |
220 | kern_return_t thread_create |
221 | ( |
222 | task_t parent_task, |
223 | thread_act_t *child_act |
224 | ); |
225 | |
226 | /* Routine thread_create_running */ |
227 | #ifdef mig_external |
228 | mig_external |
229 | #else |
230 | extern |
231 | #endif /* mig_external */ |
232 | kern_return_t thread_create_running |
233 | ( |
234 | task_t parent_task, |
235 | thread_state_flavor_t flavor, |
236 | thread_state_t new_state, |
237 | mach_msg_type_number_t new_stateCnt, |
238 | thread_act_t *child_act |
239 | ); |
240 | |
241 | /* Routine task_set_exception_ports */ |
242 | #ifdef mig_external |
243 | mig_external |
244 | #else |
245 | extern |
246 | #endif /* mig_external */ |
247 | kern_return_t task_set_exception_ports |
248 | ( |
249 | task_t task, |
250 | exception_mask_t exception_mask, |
251 | mach_port_t new_port, |
252 | exception_behavior_t behavior, |
253 | thread_state_flavor_t new_flavor |
254 | ); |
255 | |
256 | /* Routine task_get_exception_ports */ |
257 | #ifdef mig_external |
258 | mig_external |
259 | #else |
260 | extern |
261 | #endif /* mig_external */ |
262 | kern_return_t task_get_exception_ports |
263 | ( |
264 | task_t task, |
265 | exception_mask_t exception_mask, |
266 | exception_mask_array_t masks, |
267 | mach_msg_type_number_t *masksCnt, |
268 | exception_handler_array_t old_handlers, |
269 | exception_behavior_array_t old_behaviors, |
270 | exception_flavor_array_t old_flavors |
271 | ); |
272 | |
273 | /* Routine task_swap_exception_ports */ |
274 | #ifdef mig_external |
275 | mig_external |
276 | #else |
277 | extern |
278 | #endif /* mig_external */ |
279 | kern_return_t task_swap_exception_ports |
280 | ( |
281 | task_t task, |
282 | exception_mask_t exception_mask, |
283 | mach_port_t new_port, |
284 | exception_behavior_t behavior, |
285 | thread_state_flavor_t new_flavor, |
286 | exception_mask_array_t masks, |
287 | mach_msg_type_number_t *masksCnt, |
288 | exception_handler_array_t old_handlers, |
289 | exception_behavior_array_t old_behaviors, |
290 | exception_flavor_array_t old_flavors |
291 | ); |
292 | |
293 | /* Routine lock_set_create */ |
294 | #ifdef mig_external |
295 | mig_external |
296 | #else |
297 | extern |
298 | #endif /* mig_external */ |
299 | kern_return_t lock_set_create |
300 | ( |
301 | task_t task, |
302 | lock_set_t *new_lock_set, |
303 | int n_ulocks, |
304 | int policy |
305 | ); |
306 | |
307 | /* Routine lock_set_destroy */ |
308 | #ifdef mig_external |
309 | mig_external |
310 | #else |
311 | extern |
312 | #endif /* mig_external */ |
313 | kern_return_t lock_set_destroy |
314 | ( |
315 | task_t task, |
316 | lock_set_t lock_set |
317 | ); |
318 | |
319 | /* Routine semaphore_create */ |
320 | #ifdef mig_external |
321 | mig_external |
322 | #else |
323 | extern |
324 | #endif /* mig_external */ |
325 | kern_return_t semaphore_create |
326 | ( |
327 | task_t task, |
328 | semaphore_t *semaphore, |
329 | int policy, |
330 | int value |
331 | ); |
332 | |
333 | /* Routine semaphore_destroy */ |
334 | #ifdef mig_external |
335 | mig_external |
336 | #else |
337 | extern |
338 | #endif /* mig_external */ |
339 | kern_return_t semaphore_destroy |
340 | ( |
341 | task_t task, |
342 | semaphore_t semaphore |
343 | ); |
344 | |
345 | /* Routine task_policy_set */ |
346 | #ifdef mig_external |
347 | mig_external |
348 | #else |
349 | extern |
350 | #endif /* mig_external */ |
351 | kern_return_t task_policy_set |
352 | ( |
353 | task_policy_set_t task, |
354 | task_policy_flavor_t flavor, |
355 | task_policy_t policy_info, |
356 | mach_msg_type_number_t policy_infoCnt |
357 | ); |
358 | |
359 | /* Routine task_policy_get */ |
360 | #ifdef mig_external |
361 | mig_external |
362 | #else |
363 | extern |
364 | #endif /* mig_external */ |
365 | kern_return_t task_policy_get |
366 | ( |
367 | task_policy_get_t task, |
368 | task_policy_flavor_t flavor, |
369 | task_policy_t policy_info, |
370 | mach_msg_type_number_t *policy_infoCnt, |
371 | boolean_t *get_default |
372 | ); |
373 | |
374 | /* Routine task_sample */ |
375 | #ifdef mig_external |
376 | mig_external |
377 | #else |
378 | extern |
379 | #endif /* mig_external */ |
380 | kern_return_t task_sample |
381 | ( |
382 | task_t task, |
383 | mach_port_t reply |
384 | ); |
385 | |
386 | /* Routine task_policy */ |
387 | #ifdef mig_external |
388 | mig_external |
389 | #else |
390 | extern |
391 | #endif /* mig_external */ |
392 | kern_return_t task_policy |
393 | ( |
394 | task_t task, |
395 | policy_t policy, |
396 | policy_base_t base, |
397 | mach_msg_type_number_t baseCnt, |
398 | boolean_t set_limit, |
399 | boolean_t change |
400 | ); |
401 | |
402 | /* Routine task_set_emulation */ |
403 | #ifdef mig_external |
404 | mig_external |
405 | #else |
406 | extern |
407 | #endif /* mig_external */ |
408 | kern_return_t task_set_emulation |
409 | ( |
410 | task_t target_port, |
411 | vm_address_t routine_entry_pt, |
412 | int routine_number |
413 | ); |
414 | |
415 | /* Routine task_get_emulation_vector */ |
416 | #ifdef mig_external |
417 | mig_external |
418 | #else |
419 | extern |
420 | #endif /* mig_external */ |
421 | kern_return_t task_get_emulation_vector |
422 | ( |
423 | task_t task, |
424 | int *vector_start, |
425 | emulation_vector_t *emulation_vector, |
426 | mach_msg_type_number_t *emulation_vectorCnt |
427 | ); |
428 | |
429 | /* Routine task_set_emulation_vector */ |
430 | #ifdef mig_external |
431 | mig_external |
432 | #else |
433 | extern |
434 | #endif /* mig_external */ |
435 | kern_return_t task_set_emulation_vector |
436 | ( |
437 | task_t task, |
438 | int vector_start, |
439 | emulation_vector_t emulation_vector, |
440 | mach_msg_type_number_t emulation_vectorCnt |
441 | ); |
442 | |
443 | /* Routine task_set_ras_pc */ |
444 | #ifdef mig_external |
445 | mig_external |
446 | #else |
447 | extern |
448 | #endif /* mig_external */ |
449 | kern_return_t task_set_ras_pc |
450 | ( |
451 | task_t target_task, |
452 | vm_address_t basepc, |
453 | vm_address_t boundspc |
454 | ); |
455 | |
456 | /* Routine task_zone_info */ |
457 | #ifdef mig_external |
458 | mig_external |
459 | #else |
460 | extern |
461 | #endif /* mig_external */ |
462 | kern_return_t task_zone_info |
463 | ( |
464 | task_inspect_t target_task, |
465 | mach_zone_name_array_t *names, |
466 | mach_msg_type_number_t *namesCnt, |
467 | task_zone_info_array_t *info, |
468 | mach_msg_type_number_t *infoCnt |
469 | ); |
470 | |
471 | /* Routine task_assign */ |
472 | #ifdef mig_external |
473 | mig_external |
474 | #else |
475 | extern |
476 | #endif /* mig_external */ |
477 | kern_return_t task_assign |
478 | ( |
479 | task_t task, |
480 | processor_set_t new_set, |
481 | boolean_t assign_threads |
482 | ); |
483 | |
484 | /* Routine task_assign_default */ |
485 | #ifdef mig_external |
486 | mig_external |
487 | #else |
488 | extern |
489 | #endif /* mig_external */ |
490 | kern_return_t task_assign_default |
491 | ( |
492 | task_t task, |
493 | boolean_t assign_threads |
494 | ); |
495 | |
496 | /* Routine task_get_assignment */ |
497 | #ifdef mig_external |
498 | mig_external |
499 | #else |
500 | extern |
501 | #endif /* mig_external */ |
502 | kern_return_t task_get_assignment |
503 | ( |
504 | task_inspect_t task, |
505 | processor_set_name_t *assigned_set |
506 | ); |
507 | |
508 | /* Routine task_set_policy */ |
509 | #ifdef mig_external |
510 | mig_external |
511 | #else |
512 | extern |
513 | #endif /* mig_external */ |
514 | kern_return_t task_set_policy |
515 | ( |
516 | task_t task, |
517 | processor_set_t pset, |
518 | policy_t policy, |
519 | policy_base_t base, |
520 | mach_msg_type_number_t baseCnt, |
521 | policy_limit_t limit, |
522 | mach_msg_type_number_t limitCnt, |
523 | boolean_t change |
524 | ); |
525 | |
526 | /* Routine task_get_state */ |
527 | #ifdef mig_external |
528 | mig_external |
529 | #else |
530 | extern |
531 | #endif /* mig_external */ |
532 | kern_return_t task_get_state |
533 | ( |
534 | task_read_t task, |
535 | thread_state_flavor_t flavor, |
536 | thread_state_t old_state, |
537 | mach_msg_type_number_t *old_stateCnt |
538 | ); |
539 | |
540 | /* Routine task_set_state */ |
541 | #ifdef mig_external |
542 | mig_external |
543 | #else |
544 | extern |
545 | #endif /* mig_external */ |
546 | kern_return_t task_set_state |
547 | ( |
548 | task_t task, |
549 | thread_state_flavor_t flavor, |
550 | thread_state_t new_state, |
551 | mach_msg_type_number_t new_stateCnt |
552 | ); |
553 | |
554 | /* Routine task_set_phys_footprint_limit */ |
555 | #ifdef mig_external |
556 | mig_external |
557 | #else |
558 | extern |
559 | #endif /* mig_external */ |
560 | kern_return_t |
561 | ( |
562 | task_t task, |
563 | int new_limit, |
564 | int *old_limit |
565 | ); |
566 | |
567 | /* Routine task_suspend2 */ |
568 | #ifdef mig_external |
569 | mig_external |
570 | #else |
571 | extern |
572 | #endif /* mig_external */ |
573 | kern_return_t task_suspend2 |
574 | ( |
575 | task_read_t target_task, |
576 | task_suspension_token_t *suspend_token |
577 | ); |
578 | |
579 | /* Routine task_resume2 */ |
580 | #ifdef mig_external |
581 | mig_external |
582 | #else |
583 | extern |
584 | #endif /* mig_external */ |
585 | kern_return_t task_resume2 |
586 | ( |
587 | task_suspension_token_t suspend_token |
588 | ); |
589 | |
590 | /* Routine task_purgable_info */ |
591 | #ifdef mig_external |
592 | mig_external |
593 | #else |
594 | extern |
595 | #endif /* mig_external */ |
596 | kern_return_t task_purgable_info |
597 | ( |
598 | task_inspect_t task, |
599 | task_purgable_info_t *stats |
600 | ); |
601 | |
602 | /* Routine task_get_mach_voucher */ |
603 | #ifdef mig_external |
604 | mig_external |
605 | #else |
606 | extern |
607 | #endif /* mig_external */ |
608 | kern_return_t task_get_mach_voucher |
609 | ( |
610 | task_read_t task, |
611 | mach_voucher_selector_t which, |
612 | ipc_voucher_t *voucher |
613 | ); |
614 | |
615 | /* Routine task_set_mach_voucher */ |
616 | #ifdef mig_external |
617 | mig_external |
618 | #else |
619 | extern |
620 | #endif /* mig_external */ |
621 | kern_return_t task_set_mach_voucher |
622 | ( |
623 | task_t task, |
624 | ipc_voucher_t voucher |
625 | ); |
626 | |
627 | /* Routine task_swap_mach_voucher */ |
628 | #ifdef mig_external |
629 | mig_external |
630 | #else |
631 | extern |
632 | #endif /* mig_external */ |
633 | kern_return_t task_swap_mach_voucher |
634 | ( |
635 | task_t task, |
636 | ipc_voucher_t new_voucher, |
637 | ipc_voucher_t *old_voucher |
638 | ); |
639 | |
640 | /* Routine task_generate_corpse */ |
641 | #ifdef mig_external |
642 | mig_external |
643 | #else |
644 | extern |
645 | #endif /* mig_external */ |
646 | kern_return_t task_generate_corpse |
647 | ( |
648 | task_read_t task, |
649 | mach_port_t *corpse_task_port |
650 | ); |
651 | |
652 | /* Routine task_map_corpse_info */ |
653 | #ifdef mig_external |
654 | mig_external |
655 | #else |
656 | extern |
657 | #endif /* mig_external */ |
658 | kern_return_t task_map_corpse_info |
659 | ( |
660 | task_t task, |
661 | task_read_t corspe_task, |
662 | vm_address_t *kcd_addr_begin, |
663 | uint32_t *kcd_size |
664 | ); |
665 | |
666 | /* Routine task_register_dyld_image_infos */ |
667 | #ifdef mig_external |
668 | mig_external |
669 | #else |
670 | extern |
671 | #endif /* mig_external */ |
672 | kern_return_t task_register_dyld_image_infos |
673 | ( |
674 | task_t task, |
675 | dyld_kernel_image_info_array_t dyld_images, |
676 | mach_msg_type_number_t dyld_imagesCnt |
677 | ); |
678 | |
679 | /* Routine task_unregister_dyld_image_infos */ |
680 | #ifdef mig_external |
681 | mig_external |
682 | #else |
683 | extern |
684 | #endif /* mig_external */ |
685 | kern_return_t task_unregister_dyld_image_infos |
686 | ( |
687 | task_t task, |
688 | dyld_kernel_image_info_array_t dyld_images, |
689 | mach_msg_type_number_t dyld_imagesCnt |
690 | ); |
691 | |
692 | /* Routine task_get_dyld_image_infos */ |
693 | #ifdef mig_external |
694 | mig_external |
695 | #else |
696 | extern |
697 | #endif /* mig_external */ |
698 | kern_return_t task_get_dyld_image_infos |
699 | ( |
700 | task_read_t task, |
701 | dyld_kernel_image_info_array_t *dyld_images, |
702 | mach_msg_type_number_t *dyld_imagesCnt |
703 | ); |
704 | |
705 | /* Routine task_register_dyld_shared_cache_image_info */ |
706 | #ifdef mig_external |
707 | mig_external |
708 | #else |
709 | extern |
710 | #endif /* mig_external */ |
711 | kern_return_t task_register_dyld_shared_cache_image_info |
712 | ( |
713 | task_t task, |
714 | dyld_kernel_image_info_t dyld_cache_image, |
715 | boolean_t no_cache, |
716 | boolean_t private_cache |
717 | ); |
718 | |
719 | /* Routine task_register_dyld_set_dyld_state */ |
720 | #ifdef mig_external |
721 | mig_external |
722 | #else |
723 | extern |
724 | #endif /* mig_external */ |
725 | kern_return_t task_register_dyld_set_dyld_state |
726 | ( |
727 | task_t task, |
728 | uint8_t dyld_state |
729 | ); |
730 | |
731 | /* Routine task_register_dyld_get_process_state */ |
732 | #ifdef mig_external |
733 | mig_external |
734 | #else |
735 | extern |
736 | #endif /* mig_external */ |
737 | kern_return_t task_register_dyld_get_process_state |
738 | ( |
739 | task_t task, |
740 | dyld_kernel_process_info_t *dyld_process_state |
741 | ); |
742 | |
743 | /* Routine task_map_corpse_info_64 */ |
744 | #ifdef mig_external |
745 | mig_external |
746 | #else |
747 | extern |
748 | #endif /* mig_external */ |
749 | kern_return_t task_map_corpse_info_64 |
750 | ( |
751 | task_t task, |
752 | task_read_t corspe_task, |
753 | mach_vm_address_t *kcd_addr_begin, |
754 | mach_vm_size_t *kcd_size |
755 | ); |
756 | |
757 | /* Routine task_inspect */ |
758 | #ifdef mig_external |
759 | mig_external |
760 | #else |
761 | extern |
762 | #endif /* mig_external */ |
763 | kern_return_t task_inspect |
764 | ( |
765 | task_inspect_t task, |
766 | task_inspect_flavor_t flavor, |
767 | task_inspect_info_t info_out, |
768 | mach_msg_type_number_t *info_outCnt |
769 | ); |
770 | |
771 | /* Routine task_get_exc_guard_behavior */ |
772 | #ifdef mig_external |
773 | mig_external |
774 | #else |
775 | extern |
776 | #endif /* mig_external */ |
777 | kern_return_t task_get_exc_guard_behavior |
778 | ( |
779 | task_inspect_t task, |
780 | task_exc_guard_behavior_t *behavior |
781 | ); |
782 | |
783 | /* Routine task_set_exc_guard_behavior */ |
784 | #ifdef mig_external |
785 | mig_external |
786 | #else |
787 | extern |
788 | #endif /* mig_external */ |
789 | kern_return_t task_set_exc_guard_behavior |
790 | ( |
791 | task_t task, |
792 | task_exc_guard_behavior_t behavior |
793 | ); |
794 | |
795 | /* Routine mach_task_is_self */ |
796 | #ifdef mig_external |
797 | mig_external |
798 | #else |
799 | extern |
800 | #endif /* mig_external */ |
801 | kern_return_t mach_task_is_self |
802 | ( |
803 | task_name_t task, |
804 | boolean_t *is_self |
805 | ); |
806 | |
807 | /* Routine task_dyld_process_info_notify_register */ |
808 | #ifdef mig_external |
809 | mig_external |
810 | #else |
811 | extern |
812 | #endif /* mig_external */ |
813 | kern_return_t task_dyld_process_info_notify_register |
814 | ( |
815 | task_read_t target_task, |
816 | mach_port_t notify |
817 | ); |
818 | |
819 | /* Routine task_create_identity_token */ |
820 | #ifdef mig_external |
821 | mig_external |
822 | #else |
823 | extern |
824 | #endif /* mig_external */ |
825 | kern_return_t task_create_identity_token |
826 | ( |
827 | task_t task, |
828 | task_id_token_t *token |
829 | ); |
830 | |
831 | /* Routine task_identity_token_get_task_port */ |
832 | #ifdef mig_external |
833 | mig_external |
834 | #else |
835 | extern |
836 | #endif /* mig_external */ |
837 | kern_return_t task_identity_token_get_task_port |
838 | ( |
839 | task_id_token_t token, |
840 | task_flavor_t flavor, |
841 | mach_port_t *task_port |
842 | ); |
843 | |
844 | /* Routine task_dyld_process_info_notify_deregister */ |
845 | #ifdef mig_external |
846 | mig_external |
847 | #else |
848 | extern |
849 | #endif /* mig_external */ |
850 | kern_return_t task_dyld_process_info_notify_deregister |
851 | ( |
852 | task_read_t target_task, |
853 | mach_port_name_t notify |
854 | ); |
855 | |
856 | /* Routine task_get_exception_ports_info */ |
857 | #ifdef mig_external |
858 | mig_external |
859 | #else |
860 | extern |
861 | #endif /* mig_external */ |
862 | kern_return_t task_get_exception_ports_info |
863 | ( |
864 | mach_port_t port, |
865 | exception_mask_t exception_mask, |
866 | exception_mask_array_t masks, |
867 | mach_msg_type_number_t *masksCnt, |
868 | exception_handler_info_array_t old_handlers_info, |
869 | exception_behavior_array_t old_behaviors, |
870 | exception_flavor_array_t old_flavors |
871 | ); |
872 | |
873 | /* Routine task_test_sync_upcall */ |
874 | #ifdef mig_external |
875 | mig_external |
876 | #else |
877 | extern |
878 | #endif /* mig_external */ |
879 | kern_return_t task_test_sync_upcall |
880 | ( |
881 | task_t task, |
882 | mach_port_t port |
883 | ); |
884 | |
885 | /* Routine task_set_corpse_forking_behavior */ |
886 | #ifdef mig_external |
887 | mig_external |
888 | #else |
889 | extern |
890 | #endif /* mig_external */ |
891 | kern_return_t task_set_corpse_forking_behavior |
892 | ( |
893 | task_t task, |
894 | task_corpse_forking_behavior_t behavior |
895 | ); |
896 | |
897 | /* Routine task_test_async_upcall_propagation */ |
898 | #ifdef mig_external |
899 | mig_external |
900 | #else |
901 | extern |
902 | #endif /* mig_external */ |
903 | kern_return_t task_test_async_upcall_propagation |
904 | ( |
905 | task_t task, |
906 | mach_port_t port, |
907 | int qos, |
908 | int iotier |
909 | ); |
910 | |
911 | /* Routine task_map_kcdata_object_64 */ |
912 | #ifdef mig_external |
913 | mig_external |
914 | #else |
915 | extern |
916 | #endif /* mig_external */ |
917 | kern_return_t task_map_kcdata_object_64 |
918 | ( |
919 | task_t task, |
920 | kcdata_object_t kcdata_object, |
921 | mach_vm_address_t *kcd_addr_begin, |
922 | mach_vm_size_t *kcd_size |
923 | ); |
924 | |
925 | __END_DECLS |
926 | |
927 | /********************** Caution **************************/ |
928 | /* The following data types should be used to calculate */ |
929 | /* maximum message sizes only. The actual message may be */ |
930 | /* smaller, and the position of the arguments within the */ |
931 | /* message layout may vary from what is presented here. */ |
932 | /* For example, if any of the arguments are variable- */ |
933 | /* sized, and less than the maximum is sent, the data */ |
934 | /* will be packed tight in the actual message to reduce */ |
935 | /* the presence of holes. */ |
936 | /********************** Caution **************************/ |
937 | |
938 | /* typedefs for all requests */ |
939 | |
940 | #ifndef __Request__task_subsystem__defined |
941 | #define __Request__task_subsystem__defined |
942 | |
943 | #ifdef __MigPackStructs |
944 | #pragma pack(push, 4) |
945 | #endif |
946 | typedef struct { |
947 | mach_msg_header_t Head; |
948 | /* start of the kernel processed data */ |
949 | mach_msg_body_t msgh_body; |
950 | mach_msg_ool_ports_descriptor_t ledgers; |
951 | /* end of the kernel processed data */ |
952 | NDR_record_t NDR; |
953 | mach_msg_type_number_t ledgersCnt; |
954 | boolean_t inherit_memory; |
955 | } __Request__task_create_t __attribute__((unused)); |
956 | #ifdef __MigPackStructs |
957 | #pragma pack(pop) |
958 | #endif |
959 | |
960 | #ifdef __MigPackStructs |
961 | #pragma pack(push, 4) |
962 | #endif |
963 | typedef struct { |
964 | mach_msg_header_t Head; |
965 | } __Request__task_terminate_t __attribute__((unused)); |
966 | #ifdef __MigPackStructs |
967 | #pragma pack(pop) |
968 | #endif |
969 | |
970 | #ifdef __MigPackStructs |
971 | #pragma pack(push, 4) |
972 | #endif |
973 | typedef struct { |
974 | mach_msg_header_t Head; |
975 | } __Request__task_threads_t __attribute__((unused)); |
976 | #ifdef __MigPackStructs |
977 | #pragma pack(pop) |
978 | #endif |
979 | |
980 | #ifdef __MigPackStructs |
981 | #pragma pack(push, 4) |
982 | #endif |
983 | typedef struct { |
984 | mach_msg_header_t Head; |
985 | /* start of the kernel processed data */ |
986 | mach_msg_body_t msgh_body; |
987 | mach_msg_ool_ports_descriptor_t init_port_set; |
988 | /* end of the kernel processed data */ |
989 | NDR_record_t NDR; |
990 | mach_msg_type_number_t init_port_setCnt; |
991 | } __Request__mach_ports_register_t __attribute__((unused)); |
992 | #ifdef __MigPackStructs |
993 | #pragma pack(pop) |
994 | #endif |
995 | |
996 | #ifdef __MigPackStructs |
997 | #pragma pack(push, 4) |
998 | #endif |
999 | typedef struct { |
1000 | mach_msg_header_t Head; |
1001 | } __Request__mach_ports_lookup_t __attribute__((unused)); |
1002 | #ifdef __MigPackStructs |
1003 | #pragma pack(pop) |
1004 | #endif |
1005 | |
1006 | #ifdef __MigPackStructs |
1007 | #pragma pack(push, 4) |
1008 | #endif |
1009 | typedef struct { |
1010 | mach_msg_header_t Head; |
1011 | NDR_record_t NDR; |
1012 | task_flavor_t flavor; |
1013 | mach_msg_type_number_t task_info_outCnt; |
1014 | } __Request__task_info_t __attribute__((unused)); |
1015 | #ifdef __MigPackStructs |
1016 | #pragma pack(pop) |
1017 | #endif |
1018 | |
1019 | #ifdef __MigPackStructs |
1020 | #pragma pack(push, 4) |
1021 | #endif |
1022 | typedef struct { |
1023 | mach_msg_header_t Head; |
1024 | NDR_record_t NDR; |
1025 | task_flavor_t flavor; |
1026 | mach_msg_type_number_t task_info_inCnt; |
1027 | integer_t task_info_in[90]; |
1028 | } __Request__task_set_info_t __attribute__((unused)); |
1029 | #ifdef __MigPackStructs |
1030 | #pragma pack(pop) |
1031 | #endif |
1032 | |
1033 | #ifdef __MigPackStructs |
1034 | #pragma pack(push, 4) |
1035 | #endif |
1036 | typedef struct { |
1037 | mach_msg_header_t Head; |
1038 | } __Request__task_suspend_t __attribute__((unused)); |
1039 | #ifdef __MigPackStructs |
1040 | #pragma pack(pop) |
1041 | #endif |
1042 | |
1043 | #ifdef __MigPackStructs |
1044 | #pragma pack(push, 4) |
1045 | #endif |
1046 | typedef struct { |
1047 | mach_msg_header_t Head; |
1048 | } __Request__task_resume_t __attribute__((unused)); |
1049 | #ifdef __MigPackStructs |
1050 | #pragma pack(pop) |
1051 | #endif |
1052 | |
1053 | #ifdef __MigPackStructs |
1054 | #pragma pack(push, 4) |
1055 | #endif |
1056 | typedef struct { |
1057 | mach_msg_header_t Head; |
1058 | NDR_record_t NDR; |
1059 | int which_port; |
1060 | } __Request__task_get_special_port_t __attribute__((unused)); |
1061 | #ifdef __MigPackStructs |
1062 | #pragma pack(pop) |
1063 | #endif |
1064 | |
1065 | #ifdef __MigPackStructs |
1066 | #pragma pack(push, 4) |
1067 | #endif |
1068 | typedef struct { |
1069 | mach_msg_header_t Head; |
1070 | /* start of the kernel processed data */ |
1071 | mach_msg_body_t msgh_body; |
1072 | mach_msg_port_descriptor_t special_port; |
1073 | /* end of the kernel processed data */ |
1074 | NDR_record_t NDR; |
1075 | int which_port; |
1076 | } __Request__task_set_special_port_t __attribute__((unused)); |
1077 | #ifdef __MigPackStructs |
1078 | #pragma pack(pop) |
1079 | #endif |
1080 | |
1081 | #ifdef __MigPackStructs |
1082 | #pragma pack(push, 4) |
1083 | #endif |
1084 | typedef struct { |
1085 | mach_msg_header_t Head; |
1086 | } __Request__thread_create_t __attribute__((unused)); |
1087 | #ifdef __MigPackStructs |
1088 | #pragma pack(pop) |
1089 | #endif |
1090 | |
1091 | #ifdef __MigPackStructs |
1092 | #pragma pack(push, 4) |
1093 | #endif |
1094 | typedef struct { |
1095 | mach_msg_header_t Head; |
1096 | NDR_record_t NDR; |
1097 | thread_state_flavor_t flavor; |
1098 | mach_msg_type_number_t new_stateCnt; |
1099 | natural_t new_state[1296]; |
1100 | } __Request__thread_create_running_t __attribute__((unused)); |
1101 | #ifdef __MigPackStructs |
1102 | #pragma pack(pop) |
1103 | #endif |
1104 | |
1105 | #ifdef __MigPackStructs |
1106 | #pragma pack(push, 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 | mach_msg_port_descriptor_t new_port; |
1113 | /* end of the kernel processed data */ |
1114 | NDR_record_t NDR; |
1115 | exception_mask_t exception_mask; |
1116 | exception_behavior_t behavior; |
1117 | thread_state_flavor_t new_flavor; |
1118 | } __Request__task_set_exception_ports_t __attribute__((unused)); |
1119 | #ifdef __MigPackStructs |
1120 | #pragma pack(pop) |
1121 | #endif |
1122 | |
1123 | #ifdef __MigPackStructs |
1124 | #pragma pack(push, 4) |
1125 | #endif |
1126 | typedef struct { |
1127 | mach_msg_header_t Head; |
1128 | NDR_record_t NDR; |
1129 | exception_mask_t exception_mask; |
1130 | } __Request__task_get_exception_ports_t __attribute__((unused)); |
1131 | #ifdef __MigPackStructs |
1132 | #pragma pack(pop) |
1133 | #endif |
1134 | |
1135 | #ifdef __MigPackStructs |
1136 | #pragma pack(push, 4) |
1137 | #endif |
1138 | typedef struct { |
1139 | mach_msg_header_t Head; |
1140 | /* start of the kernel processed data */ |
1141 | mach_msg_body_t msgh_body; |
1142 | mach_msg_port_descriptor_t new_port; |
1143 | /* end of the kernel processed data */ |
1144 | NDR_record_t NDR; |
1145 | exception_mask_t exception_mask; |
1146 | exception_behavior_t behavior; |
1147 | thread_state_flavor_t new_flavor; |
1148 | } __Request__task_swap_exception_ports_t __attribute__((unused)); |
1149 | #ifdef __MigPackStructs |
1150 | #pragma pack(pop) |
1151 | #endif |
1152 | |
1153 | #ifdef __MigPackStructs |
1154 | #pragma pack(push, 4) |
1155 | #endif |
1156 | typedef struct { |
1157 | mach_msg_header_t Head; |
1158 | NDR_record_t NDR; |
1159 | int n_ulocks; |
1160 | int policy; |
1161 | } __Request__lock_set_create_t __attribute__((unused)); |
1162 | #ifdef __MigPackStructs |
1163 | #pragma pack(pop) |
1164 | #endif |
1165 | |
1166 | #ifdef __MigPackStructs |
1167 | #pragma pack(push, 4) |
1168 | #endif |
1169 | typedef struct { |
1170 | mach_msg_header_t Head; |
1171 | /* start of the kernel processed data */ |
1172 | mach_msg_body_t msgh_body; |
1173 | mach_msg_port_descriptor_t lock_set; |
1174 | /* end of the kernel processed data */ |
1175 | } __Request__lock_set_destroy_t __attribute__((unused)); |
1176 | #ifdef __MigPackStructs |
1177 | #pragma pack(pop) |
1178 | #endif |
1179 | |
1180 | #ifdef __MigPackStructs |
1181 | #pragma pack(push, 4) |
1182 | #endif |
1183 | typedef struct { |
1184 | mach_msg_header_t Head; |
1185 | NDR_record_t NDR; |
1186 | int policy; |
1187 | int value; |
1188 | } __Request__semaphore_create_t __attribute__((unused)); |
1189 | #ifdef __MigPackStructs |
1190 | #pragma pack(pop) |
1191 | #endif |
1192 | |
1193 | #ifdef __MigPackStructs |
1194 | #pragma pack(push, 4) |
1195 | #endif |
1196 | typedef struct { |
1197 | mach_msg_header_t Head; |
1198 | /* start of the kernel processed data */ |
1199 | mach_msg_body_t msgh_body; |
1200 | mach_msg_port_descriptor_t semaphore; |
1201 | /* end of the kernel processed data */ |
1202 | } __Request__semaphore_destroy_t __attribute__((unused)); |
1203 | #ifdef __MigPackStructs |
1204 | #pragma pack(pop) |
1205 | #endif |
1206 | |
1207 | #ifdef __MigPackStructs |
1208 | #pragma pack(push, 4) |
1209 | #endif |
1210 | typedef struct { |
1211 | mach_msg_header_t Head; |
1212 | NDR_record_t NDR; |
1213 | task_policy_flavor_t flavor; |
1214 | mach_msg_type_number_t policy_infoCnt; |
1215 | integer_t policy_info[16]; |
1216 | } __Request__task_policy_set_t __attribute__((unused)); |
1217 | #ifdef __MigPackStructs |
1218 | #pragma pack(pop) |
1219 | #endif |
1220 | |
1221 | #ifdef __MigPackStructs |
1222 | #pragma pack(push, 4) |
1223 | #endif |
1224 | typedef struct { |
1225 | mach_msg_header_t Head; |
1226 | NDR_record_t NDR; |
1227 | task_policy_flavor_t flavor; |
1228 | mach_msg_type_number_t policy_infoCnt; |
1229 | boolean_t get_default; |
1230 | } __Request__task_policy_get_t __attribute__((unused)); |
1231 | #ifdef __MigPackStructs |
1232 | #pragma pack(pop) |
1233 | #endif |
1234 | |
1235 | #ifdef __MigPackStructs |
1236 | #pragma pack(push, 4) |
1237 | #endif |
1238 | typedef struct { |
1239 | mach_msg_header_t Head; |
1240 | /* start of the kernel processed data */ |
1241 | mach_msg_body_t msgh_body; |
1242 | mach_msg_port_descriptor_t reply; |
1243 | /* end of the kernel processed data */ |
1244 | } __Request__task_sample_t __attribute__((unused)); |
1245 | #ifdef __MigPackStructs |
1246 | #pragma pack(pop) |
1247 | #endif |
1248 | |
1249 | #ifdef __MigPackStructs |
1250 | #pragma pack(push, 4) |
1251 | #endif |
1252 | typedef struct { |
1253 | mach_msg_header_t Head; |
1254 | NDR_record_t NDR; |
1255 | policy_t policy; |
1256 | mach_msg_type_number_t baseCnt; |
1257 | integer_t base[5]; |
1258 | boolean_t set_limit; |
1259 | boolean_t change; |
1260 | } __Request__task_policy_t __attribute__((unused)); |
1261 | #ifdef __MigPackStructs |
1262 | #pragma pack(pop) |
1263 | #endif |
1264 | |
1265 | #ifdef __MigPackStructs |
1266 | #pragma pack(push, 4) |
1267 | #endif |
1268 | typedef struct { |
1269 | mach_msg_header_t Head; |
1270 | NDR_record_t NDR; |
1271 | vm_address_t routine_entry_pt; |
1272 | int routine_number; |
1273 | } __Request__task_set_emulation_t __attribute__((unused)); |
1274 | #ifdef __MigPackStructs |
1275 | #pragma pack(pop) |
1276 | #endif |
1277 | |
1278 | #ifdef __MigPackStructs |
1279 | #pragma pack(push, 4) |
1280 | #endif |
1281 | typedef struct { |
1282 | mach_msg_header_t Head; |
1283 | } __Request__task_get_emulation_vector_t __attribute__((unused)); |
1284 | #ifdef __MigPackStructs |
1285 | #pragma pack(pop) |
1286 | #endif |
1287 | |
1288 | #ifdef __MigPackStructs |
1289 | #pragma pack(push, 4) |
1290 | #endif |
1291 | typedef struct { |
1292 | mach_msg_header_t Head; |
1293 | /* start of the kernel processed data */ |
1294 | mach_msg_body_t msgh_body; |
1295 | mach_msg_ool_descriptor_t emulation_vector; |
1296 | /* end of the kernel processed data */ |
1297 | NDR_record_t NDR; |
1298 | int vector_start; |
1299 | mach_msg_type_number_t emulation_vectorCnt; |
1300 | } __Request__task_set_emulation_vector_t __attribute__((unused)); |
1301 | #ifdef __MigPackStructs |
1302 | #pragma pack(pop) |
1303 | #endif |
1304 | |
1305 | #ifdef __MigPackStructs |
1306 | #pragma pack(push, 4) |
1307 | #endif |
1308 | typedef struct { |
1309 | mach_msg_header_t Head; |
1310 | NDR_record_t NDR; |
1311 | vm_address_t basepc; |
1312 | vm_address_t boundspc; |
1313 | } __Request__task_set_ras_pc_t __attribute__((unused)); |
1314 | #ifdef __MigPackStructs |
1315 | #pragma pack(pop) |
1316 | #endif |
1317 | |
1318 | #ifdef __MigPackStructs |
1319 | #pragma pack(push, 4) |
1320 | #endif |
1321 | typedef struct { |
1322 | mach_msg_header_t Head; |
1323 | } __Request__task_zone_info_t __attribute__((unused)); |
1324 | #ifdef __MigPackStructs |
1325 | #pragma pack(pop) |
1326 | #endif |
1327 | |
1328 | #ifdef __MigPackStructs |
1329 | #pragma pack(push, 4) |
1330 | #endif |
1331 | typedef struct { |
1332 | mach_msg_header_t Head; |
1333 | /* start of the kernel processed data */ |
1334 | mach_msg_body_t msgh_body; |
1335 | mach_msg_port_descriptor_t new_set; |
1336 | /* end of the kernel processed data */ |
1337 | NDR_record_t NDR; |
1338 | boolean_t assign_threads; |
1339 | } __Request__task_assign_t __attribute__((unused)); |
1340 | #ifdef __MigPackStructs |
1341 | #pragma pack(pop) |
1342 | #endif |
1343 | |
1344 | #ifdef __MigPackStructs |
1345 | #pragma pack(push, 4) |
1346 | #endif |
1347 | typedef struct { |
1348 | mach_msg_header_t Head; |
1349 | NDR_record_t NDR; |
1350 | boolean_t assign_threads; |
1351 | } __Request__task_assign_default_t __attribute__((unused)); |
1352 | #ifdef __MigPackStructs |
1353 | #pragma pack(pop) |
1354 | #endif |
1355 | |
1356 | #ifdef __MigPackStructs |
1357 | #pragma pack(push, 4) |
1358 | #endif |
1359 | typedef struct { |
1360 | mach_msg_header_t Head; |
1361 | } __Request__task_get_assignment_t __attribute__((unused)); |
1362 | #ifdef __MigPackStructs |
1363 | #pragma pack(pop) |
1364 | #endif |
1365 | |
1366 | #ifdef __MigPackStructs |
1367 | #pragma pack(push, 4) |
1368 | #endif |
1369 | typedef struct { |
1370 | mach_msg_header_t Head; |
1371 | /* start of the kernel processed data */ |
1372 | mach_msg_body_t msgh_body; |
1373 | mach_msg_port_descriptor_t pset; |
1374 | /* end of the kernel processed data */ |
1375 | NDR_record_t NDR; |
1376 | policy_t policy; |
1377 | mach_msg_type_number_t baseCnt; |
1378 | integer_t base[5]; |
1379 | mach_msg_type_number_t limitCnt; |
1380 | integer_t limit[1]; |
1381 | boolean_t change; |
1382 | } __Request__task_set_policy_t __attribute__((unused)); |
1383 | #ifdef __MigPackStructs |
1384 | #pragma pack(pop) |
1385 | #endif |
1386 | |
1387 | #ifdef __MigPackStructs |
1388 | #pragma pack(push, 4) |
1389 | #endif |
1390 | typedef struct { |
1391 | mach_msg_header_t Head; |
1392 | NDR_record_t NDR; |
1393 | thread_state_flavor_t flavor; |
1394 | mach_msg_type_number_t old_stateCnt; |
1395 | } __Request__task_get_state_t __attribute__((unused)); |
1396 | #ifdef __MigPackStructs |
1397 | #pragma pack(pop) |
1398 | #endif |
1399 | |
1400 | #ifdef __MigPackStructs |
1401 | #pragma pack(push, 4) |
1402 | #endif |
1403 | typedef struct { |
1404 | mach_msg_header_t Head; |
1405 | NDR_record_t NDR; |
1406 | thread_state_flavor_t flavor; |
1407 | mach_msg_type_number_t new_stateCnt; |
1408 | natural_t new_state[1296]; |
1409 | } __Request__task_set_state_t __attribute__((unused)); |
1410 | #ifdef __MigPackStructs |
1411 | #pragma pack(pop) |
1412 | #endif |
1413 | |
1414 | #ifdef __MigPackStructs |
1415 | #pragma pack(push, 4) |
1416 | #endif |
1417 | typedef struct { |
1418 | mach_msg_header_t ; |
1419 | NDR_record_t ; |
1420 | int ; |
1421 | } __attribute__((unused)); |
1422 | #ifdef __MigPackStructs |
1423 | #pragma pack(pop) |
1424 | #endif |
1425 | |
1426 | #ifdef __MigPackStructs |
1427 | #pragma pack(push, 4) |
1428 | #endif |
1429 | typedef struct { |
1430 | mach_msg_header_t Head; |
1431 | } __Request__task_suspend2_t __attribute__((unused)); |
1432 | #ifdef __MigPackStructs |
1433 | #pragma pack(pop) |
1434 | #endif |
1435 | |
1436 | #ifdef __MigPackStructs |
1437 | #pragma pack(push, 4) |
1438 | #endif |
1439 | typedef struct { |
1440 | mach_msg_header_t Head; |
1441 | } __Request__task_resume2_t __attribute__((unused)); |
1442 | #ifdef __MigPackStructs |
1443 | #pragma pack(pop) |
1444 | #endif |
1445 | |
1446 | #ifdef __MigPackStructs |
1447 | #pragma pack(push, 4) |
1448 | #endif |
1449 | typedef struct { |
1450 | mach_msg_header_t Head; |
1451 | } __Request__task_purgable_info_t __attribute__((unused)); |
1452 | #ifdef __MigPackStructs |
1453 | #pragma pack(pop) |
1454 | #endif |
1455 | |
1456 | #ifdef __MigPackStructs |
1457 | #pragma pack(push, 4) |
1458 | #endif |
1459 | typedef struct { |
1460 | mach_msg_header_t Head; |
1461 | NDR_record_t NDR; |
1462 | mach_voucher_selector_t which; |
1463 | } __Request__task_get_mach_voucher_t __attribute__((unused)); |
1464 | #ifdef __MigPackStructs |
1465 | #pragma pack(pop) |
1466 | #endif |
1467 | |
1468 | #ifdef __MigPackStructs |
1469 | #pragma pack(push, 4) |
1470 | #endif |
1471 | typedef struct { |
1472 | mach_msg_header_t Head; |
1473 | /* start of the kernel processed data */ |
1474 | mach_msg_body_t msgh_body; |
1475 | mach_msg_port_descriptor_t voucher; |
1476 | /* end of the kernel processed data */ |
1477 | } __Request__task_set_mach_voucher_t __attribute__((unused)); |
1478 | #ifdef __MigPackStructs |
1479 | #pragma pack(pop) |
1480 | #endif |
1481 | |
1482 | #ifdef __MigPackStructs |
1483 | #pragma pack(push, 4) |
1484 | #endif |
1485 | typedef struct { |
1486 | mach_msg_header_t Head; |
1487 | /* start of the kernel processed data */ |
1488 | mach_msg_body_t msgh_body; |
1489 | mach_msg_port_descriptor_t new_voucher; |
1490 | mach_msg_port_descriptor_t old_voucher; |
1491 | /* end of the kernel processed data */ |
1492 | } __Request__task_swap_mach_voucher_t __attribute__((unused)); |
1493 | #ifdef __MigPackStructs |
1494 | #pragma pack(pop) |
1495 | #endif |
1496 | |
1497 | #ifdef __MigPackStructs |
1498 | #pragma pack(push, 4) |
1499 | #endif |
1500 | typedef struct { |
1501 | mach_msg_header_t Head; |
1502 | } __Request__task_generate_corpse_t __attribute__((unused)); |
1503 | #ifdef __MigPackStructs |
1504 | #pragma pack(pop) |
1505 | #endif |
1506 | |
1507 | #ifdef __MigPackStructs |
1508 | #pragma pack(push, 4) |
1509 | #endif |
1510 | typedef struct { |
1511 | mach_msg_header_t Head; |
1512 | /* start of the kernel processed data */ |
1513 | mach_msg_body_t msgh_body; |
1514 | mach_msg_port_descriptor_t corspe_task; |
1515 | /* end of the kernel processed data */ |
1516 | } __Request__task_map_corpse_info_t __attribute__((unused)); |
1517 | #ifdef __MigPackStructs |
1518 | #pragma pack(pop) |
1519 | #endif |
1520 | |
1521 | #ifdef __MigPackStructs |
1522 | #pragma pack(push, 4) |
1523 | #endif |
1524 | typedef struct { |
1525 | mach_msg_header_t Head; |
1526 | /* start of the kernel processed data */ |
1527 | mach_msg_body_t msgh_body; |
1528 | mach_msg_ool_descriptor_t dyld_images; |
1529 | /* end of the kernel processed data */ |
1530 | NDR_record_t NDR; |
1531 | mach_msg_type_number_t dyld_imagesCnt; |
1532 | } __Request__task_register_dyld_image_infos_t __attribute__((unused)); |
1533 | #ifdef __MigPackStructs |
1534 | #pragma pack(pop) |
1535 | #endif |
1536 | |
1537 | #ifdef __MigPackStructs |
1538 | #pragma pack(push, 4) |
1539 | #endif |
1540 | typedef struct { |
1541 | mach_msg_header_t Head; |
1542 | /* start of the kernel processed data */ |
1543 | mach_msg_body_t msgh_body; |
1544 | mach_msg_ool_descriptor_t dyld_images; |
1545 | /* end of the kernel processed data */ |
1546 | NDR_record_t NDR; |
1547 | mach_msg_type_number_t dyld_imagesCnt; |
1548 | } __Request__task_unregister_dyld_image_infos_t __attribute__((unused)); |
1549 | #ifdef __MigPackStructs |
1550 | #pragma pack(pop) |
1551 | #endif |
1552 | |
1553 | #ifdef __MigPackStructs |
1554 | #pragma pack(push, 4) |
1555 | #endif |
1556 | typedef struct { |
1557 | mach_msg_header_t Head; |
1558 | } __Request__task_get_dyld_image_infos_t __attribute__((unused)); |
1559 | #ifdef __MigPackStructs |
1560 | #pragma pack(pop) |
1561 | #endif |
1562 | |
1563 | #ifdef __MigPackStructs |
1564 | #pragma pack(push, 4) |
1565 | #endif |
1566 | typedef struct { |
1567 | mach_msg_header_t Head; |
1568 | NDR_record_t NDR; |
1569 | dyld_kernel_image_info_t dyld_cache_image; |
1570 | boolean_t no_cache; |
1571 | boolean_t private_cache; |
1572 | } __Request__task_register_dyld_shared_cache_image_info_t __attribute__((unused)); |
1573 | #ifdef __MigPackStructs |
1574 | #pragma pack(pop) |
1575 | #endif |
1576 | |
1577 | #ifdef __MigPackStructs |
1578 | #pragma pack(push, 4) |
1579 | #endif |
1580 | typedef struct { |
1581 | mach_msg_header_t Head; |
1582 | NDR_record_t NDR; |
1583 | uint8_t dyld_state; |
1584 | char dyld_statePad[3]; |
1585 | } __Request__task_register_dyld_set_dyld_state_t __attribute__((unused)); |
1586 | #ifdef __MigPackStructs |
1587 | #pragma pack(pop) |
1588 | #endif |
1589 | |
1590 | #ifdef __MigPackStructs |
1591 | #pragma pack(push, 4) |
1592 | #endif |
1593 | typedef struct { |
1594 | mach_msg_header_t Head; |
1595 | } __Request__task_register_dyld_get_process_state_t __attribute__((unused)); |
1596 | #ifdef __MigPackStructs |
1597 | #pragma pack(pop) |
1598 | #endif |
1599 | |
1600 | #ifdef __MigPackStructs |
1601 | #pragma pack(push, 4) |
1602 | #endif |
1603 | typedef struct { |
1604 | mach_msg_header_t Head; |
1605 | /* start of the kernel processed data */ |
1606 | mach_msg_body_t msgh_body; |
1607 | mach_msg_port_descriptor_t corspe_task; |
1608 | /* end of the kernel processed data */ |
1609 | } __Request__task_map_corpse_info_64_t __attribute__((unused)); |
1610 | #ifdef __MigPackStructs |
1611 | #pragma pack(pop) |
1612 | #endif |
1613 | |
1614 | #ifdef __MigPackStructs |
1615 | #pragma pack(push, 4) |
1616 | #endif |
1617 | typedef struct { |
1618 | mach_msg_header_t Head; |
1619 | NDR_record_t NDR; |
1620 | task_inspect_flavor_t flavor; |
1621 | mach_msg_type_number_t info_outCnt; |
1622 | } __Request__task_inspect_t __attribute__((unused)); |
1623 | #ifdef __MigPackStructs |
1624 | #pragma pack(pop) |
1625 | #endif |
1626 | |
1627 | #ifdef __MigPackStructs |
1628 | #pragma pack(push, 4) |
1629 | #endif |
1630 | typedef struct { |
1631 | mach_msg_header_t Head; |
1632 | } __Request__task_get_exc_guard_behavior_t __attribute__((unused)); |
1633 | #ifdef __MigPackStructs |
1634 | #pragma pack(pop) |
1635 | #endif |
1636 | |
1637 | #ifdef __MigPackStructs |
1638 | #pragma pack(push, 4) |
1639 | #endif |
1640 | typedef struct { |
1641 | mach_msg_header_t Head; |
1642 | NDR_record_t NDR; |
1643 | task_exc_guard_behavior_t behavior; |
1644 | } __Request__task_set_exc_guard_behavior_t __attribute__((unused)); |
1645 | #ifdef __MigPackStructs |
1646 | #pragma pack(pop) |
1647 | #endif |
1648 | |
1649 | #ifdef __MigPackStructs |
1650 | #pragma pack(push, 4) |
1651 | #endif |
1652 | typedef struct { |
1653 | mach_msg_header_t Head; |
1654 | } __Request__mach_task_is_self_t __attribute__((unused)); |
1655 | #ifdef __MigPackStructs |
1656 | #pragma pack(pop) |
1657 | #endif |
1658 | |
1659 | #ifdef __MigPackStructs |
1660 | #pragma pack(push, 4) |
1661 | #endif |
1662 | typedef struct { |
1663 | mach_msg_header_t Head; |
1664 | /* start of the kernel processed data */ |
1665 | mach_msg_body_t msgh_body; |
1666 | mach_msg_port_descriptor_t notify; |
1667 | /* end of the kernel processed data */ |
1668 | } __Request__task_dyld_process_info_notify_register_t __attribute__((unused)); |
1669 | #ifdef __MigPackStructs |
1670 | #pragma pack(pop) |
1671 | #endif |
1672 | |
1673 | #ifdef __MigPackStructs |
1674 | #pragma pack(push, 4) |
1675 | #endif |
1676 | typedef struct { |
1677 | mach_msg_header_t Head; |
1678 | } __Request__task_create_identity_token_t __attribute__((unused)); |
1679 | #ifdef __MigPackStructs |
1680 | #pragma pack(pop) |
1681 | #endif |
1682 | |
1683 | #ifdef __MigPackStructs |
1684 | #pragma pack(push, 4) |
1685 | #endif |
1686 | typedef struct { |
1687 | mach_msg_header_t Head; |
1688 | NDR_record_t NDR; |
1689 | task_flavor_t flavor; |
1690 | } __Request__task_identity_token_get_task_port_t __attribute__((unused)); |
1691 | #ifdef __MigPackStructs |
1692 | #pragma pack(pop) |
1693 | #endif |
1694 | |
1695 | #ifdef __MigPackStructs |
1696 | #pragma pack(push, 4) |
1697 | #endif |
1698 | typedef struct { |
1699 | mach_msg_header_t Head; |
1700 | NDR_record_t NDR; |
1701 | mach_port_name_t notify; |
1702 | } __Request__task_dyld_process_info_notify_deregister_t __attribute__((unused)); |
1703 | #ifdef __MigPackStructs |
1704 | #pragma pack(pop) |
1705 | #endif |
1706 | |
1707 | #ifdef __MigPackStructs |
1708 | #pragma pack(push, 4) |
1709 | #endif |
1710 | typedef struct { |
1711 | mach_msg_header_t Head; |
1712 | NDR_record_t NDR; |
1713 | exception_mask_t exception_mask; |
1714 | } __Request__task_get_exception_ports_info_t __attribute__((unused)); |
1715 | #ifdef __MigPackStructs |
1716 | #pragma pack(pop) |
1717 | #endif |
1718 | |
1719 | #ifdef __MigPackStructs |
1720 | #pragma pack(push, 4) |
1721 | #endif |
1722 | typedef struct { |
1723 | mach_msg_header_t Head; |
1724 | /* start of the kernel processed data */ |
1725 | mach_msg_body_t msgh_body; |
1726 | mach_msg_port_descriptor_t port; |
1727 | /* end of the kernel processed data */ |
1728 | } __Request__task_test_sync_upcall_t __attribute__((unused)); |
1729 | #ifdef __MigPackStructs |
1730 | #pragma pack(pop) |
1731 | #endif |
1732 | |
1733 | #ifdef __MigPackStructs |
1734 | #pragma pack(push, 4) |
1735 | #endif |
1736 | typedef struct { |
1737 | mach_msg_header_t Head; |
1738 | NDR_record_t NDR; |
1739 | task_corpse_forking_behavior_t behavior; |
1740 | } __Request__task_set_corpse_forking_behavior_t __attribute__((unused)); |
1741 | #ifdef __MigPackStructs |
1742 | #pragma pack(pop) |
1743 | #endif |
1744 | |
1745 | #ifdef __MigPackStructs |
1746 | #pragma pack(push, 4) |
1747 | #endif |
1748 | typedef struct { |
1749 | mach_msg_header_t Head; |
1750 | /* start of the kernel processed data */ |
1751 | mach_msg_body_t msgh_body; |
1752 | mach_msg_port_descriptor_t port; |
1753 | /* end of the kernel processed data */ |
1754 | NDR_record_t NDR; |
1755 | int qos; |
1756 | int iotier; |
1757 | } __Request__task_test_async_upcall_propagation_t __attribute__((unused)); |
1758 | #ifdef __MigPackStructs |
1759 | #pragma pack(pop) |
1760 | #endif |
1761 | |
1762 | #ifdef __MigPackStructs |
1763 | #pragma pack(push, 4) |
1764 | #endif |
1765 | typedef struct { |
1766 | mach_msg_header_t Head; |
1767 | /* start of the kernel processed data */ |
1768 | mach_msg_body_t msgh_body; |
1769 | mach_msg_port_descriptor_t kcdata_object; |
1770 | /* end of the kernel processed data */ |
1771 | } __Request__task_map_kcdata_object_64_t __attribute__((unused)); |
1772 | #ifdef __MigPackStructs |
1773 | #pragma pack(pop) |
1774 | #endif |
1775 | #endif /* !__Request__task_subsystem__defined */ |
1776 | |
1777 | /* union of all requests */ |
1778 | |
1779 | #ifndef __RequestUnion__task_subsystem__defined |
1780 | #define __RequestUnion__task_subsystem__defined |
1781 | union __RequestUnion__task_subsystem { |
1782 | __Request__task_create_t Request_task_create; |
1783 | __Request__task_terminate_t Request_task_terminate; |
1784 | __Request__task_threads_t Request_task_threads; |
1785 | __Request__mach_ports_register_t Request_mach_ports_register; |
1786 | __Request__mach_ports_lookup_t Request_mach_ports_lookup; |
1787 | __Request__task_info_t Request_task_info; |
1788 | __Request__task_set_info_t Request_task_set_info; |
1789 | __Request__task_suspend_t Request_task_suspend; |
1790 | __Request__task_resume_t Request_task_resume; |
1791 | __Request__task_get_special_port_t Request_task_get_special_port; |
1792 | __Request__task_set_special_port_t Request_task_set_special_port; |
1793 | __Request__thread_create_t Request_thread_create; |
1794 | __Request__thread_create_running_t Request_thread_create_running; |
1795 | __Request__task_set_exception_ports_t Request_task_set_exception_ports; |
1796 | __Request__task_get_exception_ports_t Request_task_get_exception_ports; |
1797 | __Request__task_swap_exception_ports_t Request_task_swap_exception_ports; |
1798 | __Request__lock_set_create_t Request_lock_set_create; |
1799 | __Request__lock_set_destroy_t Request_lock_set_destroy; |
1800 | __Request__semaphore_create_t Request_semaphore_create; |
1801 | __Request__semaphore_destroy_t Request_semaphore_destroy; |
1802 | __Request__task_policy_set_t Request_task_policy_set; |
1803 | __Request__task_policy_get_t Request_task_policy_get; |
1804 | __Request__task_sample_t Request_task_sample; |
1805 | __Request__task_policy_t Request_task_policy; |
1806 | __Request__task_set_emulation_t Request_task_set_emulation; |
1807 | __Request__task_get_emulation_vector_t Request_task_get_emulation_vector; |
1808 | __Request__task_set_emulation_vector_t Request_task_set_emulation_vector; |
1809 | __Request__task_set_ras_pc_t Request_task_set_ras_pc; |
1810 | __Request__task_zone_info_t Request_task_zone_info; |
1811 | __Request__task_assign_t Request_task_assign; |
1812 | __Request__task_assign_default_t Request_task_assign_default; |
1813 | __Request__task_get_assignment_t Request_task_get_assignment; |
1814 | __Request__task_set_policy_t Request_task_set_policy; |
1815 | __Request__task_get_state_t Request_task_get_state; |
1816 | __Request__task_set_state_t Request_task_set_state; |
1817 | __Request__task_set_phys_footprint_limit_t ; |
1818 | __Request__task_suspend2_t Request_task_suspend2; |
1819 | __Request__task_resume2_t Request_task_resume2; |
1820 | __Request__task_purgable_info_t Request_task_purgable_info; |
1821 | __Request__task_get_mach_voucher_t Request_task_get_mach_voucher; |
1822 | __Request__task_set_mach_voucher_t Request_task_set_mach_voucher; |
1823 | __Request__task_swap_mach_voucher_t Request_task_swap_mach_voucher; |
1824 | __Request__task_generate_corpse_t Request_task_generate_corpse; |
1825 | __Request__task_map_corpse_info_t Request_task_map_corpse_info; |
1826 | __Request__task_register_dyld_image_infos_t Request_task_register_dyld_image_infos; |
1827 | __Request__task_unregister_dyld_image_infos_t Request_task_unregister_dyld_image_infos; |
1828 | __Request__task_get_dyld_image_infos_t Request_task_get_dyld_image_infos; |
1829 | __Request__task_register_dyld_shared_cache_image_info_t Request_task_register_dyld_shared_cache_image_info; |
1830 | __Request__task_register_dyld_set_dyld_state_t Request_task_register_dyld_set_dyld_state; |
1831 | __Request__task_register_dyld_get_process_state_t Request_task_register_dyld_get_process_state; |
1832 | __Request__task_map_corpse_info_64_t Request_task_map_corpse_info_64; |
1833 | __Request__task_inspect_t Request_task_inspect; |
1834 | __Request__task_get_exc_guard_behavior_t Request_task_get_exc_guard_behavior; |
1835 | __Request__task_set_exc_guard_behavior_t Request_task_set_exc_guard_behavior; |
1836 | __Request__mach_task_is_self_t Request_mach_task_is_self; |
1837 | __Request__task_dyld_process_info_notify_register_t Request_task_dyld_process_info_notify_register; |
1838 | __Request__task_create_identity_token_t Request_task_create_identity_token; |
1839 | __Request__task_identity_token_get_task_port_t Request_task_identity_token_get_task_port; |
1840 | __Request__task_dyld_process_info_notify_deregister_t Request_task_dyld_process_info_notify_deregister; |
1841 | __Request__task_get_exception_ports_info_t Request_task_get_exception_ports_info; |
1842 | __Request__task_test_sync_upcall_t Request_task_test_sync_upcall; |
1843 | __Request__task_set_corpse_forking_behavior_t Request_task_set_corpse_forking_behavior; |
1844 | __Request__task_test_async_upcall_propagation_t Request_task_test_async_upcall_propagation; |
1845 | __Request__task_map_kcdata_object_64_t Request_task_map_kcdata_object_64; |
1846 | }; |
1847 | #endif /* !__RequestUnion__task_subsystem__defined */ |
1848 | /* typedefs for all replies */ |
1849 | |
1850 | #ifndef __Reply__task_subsystem__defined |
1851 | #define __Reply__task_subsystem__defined |
1852 | |
1853 | #ifdef __MigPackStructs |
1854 | #pragma pack(push, 4) |
1855 | #endif |
1856 | typedef struct { |
1857 | mach_msg_header_t Head; |
1858 | /* start of the kernel processed data */ |
1859 | mach_msg_body_t msgh_body; |
1860 | mach_msg_port_descriptor_t child_task; |
1861 | /* end of the kernel processed data */ |
1862 | } __Reply__task_create_t __attribute__((unused)); |
1863 | #ifdef __MigPackStructs |
1864 | #pragma pack(pop) |
1865 | #endif |
1866 | |
1867 | #ifdef __MigPackStructs |
1868 | #pragma pack(push, 4) |
1869 | #endif |
1870 | typedef struct { |
1871 | mach_msg_header_t Head; |
1872 | NDR_record_t NDR; |
1873 | kern_return_t RetCode; |
1874 | } __Reply__task_terminate_t __attribute__((unused)); |
1875 | #ifdef __MigPackStructs |
1876 | #pragma pack(pop) |
1877 | #endif |
1878 | |
1879 | #ifdef __MigPackStructs |
1880 | #pragma pack(push, 4) |
1881 | #endif |
1882 | typedef struct { |
1883 | mach_msg_header_t Head; |
1884 | /* start of the kernel processed data */ |
1885 | mach_msg_body_t msgh_body; |
1886 | mach_msg_ool_ports_descriptor_t act_list; |
1887 | /* end of the kernel processed data */ |
1888 | NDR_record_t NDR; |
1889 | mach_msg_type_number_t act_listCnt; |
1890 | } __Reply__task_threads_t __attribute__((unused)); |
1891 | #ifdef __MigPackStructs |
1892 | #pragma pack(pop) |
1893 | #endif |
1894 | |
1895 | #ifdef __MigPackStructs |
1896 | #pragma pack(push, 4) |
1897 | #endif |
1898 | typedef struct { |
1899 | mach_msg_header_t Head; |
1900 | NDR_record_t NDR; |
1901 | kern_return_t RetCode; |
1902 | } __Reply__mach_ports_register_t __attribute__((unused)); |
1903 | #ifdef __MigPackStructs |
1904 | #pragma pack(pop) |
1905 | #endif |
1906 | |
1907 | #ifdef __MigPackStructs |
1908 | #pragma pack(push, 4) |
1909 | #endif |
1910 | typedef struct { |
1911 | mach_msg_header_t Head; |
1912 | /* start of the kernel processed data */ |
1913 | mach_msg_body_t msgh_body; |
1914 | mach_msg_ool_ports_descriptor_t init_port_set; |
1915 | /* end of the kernel processed data */ |
1916 | NDR_record_t NDR; |
1917 | mach_msg_type_number_t init_port_setCnt; |
1918 | } __Reply__mach_ports_lookup_t __attribute__((unused)); |
1919 | #ifdef __MigPackStructs |
1920 | #pragma pack(pop) |
1921 | #endif |
1922 | |
1923 | #ifdef __MigPackStructs |
1924 | #pragma pack(push, 4) |
1925 | #endif |
1926 | typedef struct { |
1927 | mach_msg_header_t Head; |
1928 | NDR_record_t NDR; |
1929 | kern_return_t RetCode; |
1930 | mach_msg_type_number_t task_info_outCnt; |
1931 | integer_t task_info_out[90]; |
1932 | } __Reply__task_info_t __attribute__((unused)); |
1933 | #ifdef __MigPackStructs |
1934 | #pragma pack(pop) |
1935 | #endif |
1936 | |
1937 | #ifdef __MigPackStructs |
1938 | #pragma pack(push, 4) |
1939 | #endif |
1940 | typedef struct { |
1941 | mach_msg_header_t Head; |
1942 | NDR_record_t NDR; |
1943 | kern_return_t RetCode; |
1944 | } __Reply__task_set_info_t __attribute__((unused)); |
1945 | #ifdef __MigPackStructs |
1946 | #pragma pack(pop) |
1947 | #endif |
1948 | |
1949 | #ifdef __MigPackStructs |
1950 | #pragma pack(push, 4) |
1951 | #endif |
1952 | typedef struct { |
1953 | mach_msg_header_t Head; |
1954 | NDR_record_t NDR; |
1955 | kern_return_t RetCode; |
1956 | } __Reply__task_suspend_t __attribute__((unused)); |
1957 | #ifdef __MigPackStructs |
1958 | #pragma pack(pop) |
1959 | #endif |
1960 | |
1961 | #ifdef __MigPackStructs |
1962 | #pragma pack(push, 4) |
1963 | #endif |
1964 | typedef struct { |
1965 | mach_msg_header_t Head; |
1966 | NDR_record_t NDR; |
1967 | kern_return_t RetCode; |
1968 | } __Reply__task_resume_t __attribute__((unused)); |
1969 | #ifdef __MigPackStructs |
1970 | #pragma pack(pop) |
1971 | #endif |
1972 | |
1973 | #ifdef __MigPackStructs |
1974 | #pragma pack(push, 4) |
1975 | #endif |
1976 | typedef struct { |
1977 | mach_msg_header_t Head; |
1978 | /* start of the kernel processed data */ |
1979 | mach_msg_body_t msgh_body; |
1980 | mach_msg_port_descriptor_t special_port; |
1981 | /* end of the kernel processed data */ |
1982 | } __Reply__task_get_special_port_t __attribute__((unused)); |
1983 | #ifdef __MigPackStructs |
1984 | #pragma pack(pop) |
1985 | #endif |
1986 | |
1987 | #ifdef __MigPackStructs |
1988 | #pragma pack(push, 4) |
1989 | #endif |
1990 | typedef struct { |
1991 | mach_msg_header_t Head; |
1992 | NDR_record_t NDR; |
1993 | kern_return_t RetCode; |
1994 | } __Reply__task_set_special_port_t __attribute__((unused)); |
1995 | #ifdef __MigPackStructs |
1996 | #pragma pack(pop) |
1997 | #endif |
1998 | |
1999 | #ifdef __MigPackStructs |
2000 | #pragma pack(push, 4) |
2001 | #endif |
2002 | typedef struct { |
2003 | mach_msg_header_t Head; |
2004 | /* start of the kernel processed data */ |
2005 | mach_msg_body_t msgh_body; |
2006 | mach_msg_port_descriptor_t child_act; |
2007 | /* end of the kernel processed data */ |
2008 | } __Reply__thread_create_t __attribute__((unused)); |
2009 | #ifdef __MigPackStructs |
2010 | #pragma pack(pop) |
2011 | #endif |
2012 | |
2013 | #ifdef __MigPackStructs |
2014 | #pragma pack(push, 4) |
2015 | #endif |
2016 | typedef struct { |
2017 | mach_msg_header_t Head; |
2018 | /* start of the kernel processed data */ |
2019 | mach_msg_body_t msgh_body; |
2020 | mach_msg_port_descriptor_t child_act; |
2021 | /* end of the kernel processed data */ |
2022 | } __Reply__thread_create_running_t __attribute__((unused)); |
2023 | #ifdef __MigPackStructs |
2024 | #pragma pack(pop) |
2025 | #endif |
2026 | |
2027 | #ifdef __MigPackStructs |
2028 | #pragma pack(push, 4) |
2029 | #endif |
2030 | typedef struct { |
2031 | mach_msg_header_t Head; |
2032 | NDR_record_t NDR; |
2033 | kern_return_t RetCode; |
2034 | } __Reply__task_set_exception_ports_t __attribute__((unused)); |
2035 | #ifdef __MigPackStructs |
2036 | #pragma pack(pop) |
2037 | #endif |
2038 | |
2039 | #ifdef __MigPackStructs |
2040 | #pragma pack(push, 4) |
2041 | #endif |
2042 | typedef struct { |
2043 | mach_msg_header_t Head; |
2044 | /* start of the kernel processed data */ |
2045 | mach_msg_body_t msgh_body; |
2046 | mach_msg_port_descriptor_t old_handlers[32]; |
2047 | /* end of the kernel processed data */ |
2048 | NDR_record_t NDR; |
2049 | mach_msg_type_number_t masksCnt; |
2050 | exception_mask_t masks[32]; |
2051 | exception_behavior_t old_behaviors[32]; |
2052 | thread_state_flavor_t old_flavors[32]; |
2053 | } __Reply__task_get_exception_ports_t __attribute__((unused)); |
2054 | #ifdef __MigPackStructs |
2055 | #pragma pack(pop) |
2056 | #endif |
2057 | |
2058 | #ifdef __MigPackStructs |
2059 | #pragma pack(push, 4) |
2060 | #endif |
2061 | typedef struct { |
2062 | mach_msg_header_t Head; |
2063 | /* start of the kernel processed data */ |
2064 | mach_msg_body_t msgh_body; |
2065 | mach_msg_port_descriptor_t old_handlers[32]; |
2066 | /* end of the kernel processed data */ |
2067 | NDR_record_t NDR; |
2068 | mach_msg_type_number_t masksCnt; |
2069 | exception_mask_t masks[32]; |
2070 | exception_behavior_t old_behaviors[32]; |
2071 | thread_state_flavor_t old_flavors[32]; |
2072 | } __Reply__task_swap_exception_ports_t __attribute__((unused)); |
2073 | #ifdef __MigPackStructs |
2074 | #pragma pack(pop) |
2075 | #endif |
2076 | |
2077 | #ifdef __MigPackStructs |
2078 | #pragma pack(push, 4) |
2079 | #endif |
2080 | typedef struct { |
2081 | mach_msg_header_t Head; |
2082 | /* start of the kernel processed data */ |
2083 | mach_msg_body_t msgh_body; |
2084 | mach_msg_port_descriptor_t new_lock_set; |
2085 | /* end of the kernel processed data */ |
2086 | } __Reply__lock_set_create_t __attribute__((unused)); |
2087 | #ifdef __MigPackStructs |
2088 | #pragma pack(pop) |
2089 | #endif |
2090 | |
2091 | #ifdef __MigPackStructs |
2092 | #pragma pack(push, 4) |
2093 | #endif |
2094 | typedef struct { |
2095 | mach_msg_header_t Head; |
2096 | NDR_record_t NDR; |
2097 | kern_return_t RetCode; |
2098 | } __Reply__lock_set_destroy_t __attribute__((unused)); |
2099 | #ifdef __MigPackStructs |
2100 | #pragma pack(pop) |
2101 | #endif |
2102 | |
2103 | #ifdef __MigPackStructs |
2104 | #pragma pack(push, 4) |
2105 | #endif |
2106 | typedef struct { |
2107 | mach_msg_header_t Head; |
2108 | /* start of the kernel processed data */ |
2109 | mach_msg_body_t msgh_body; |
2110 | mach_msg_port_descriptor_t semaphore; |
2111 | /* end of the kernel processed data */ |
2112 | } __Reply__semaphore_create_t __attribute__((unused)); |
2113 | #ifdef __MigPackStructs |
2114 | #pragma pack(pop) |
2115 | #endif |
2116 | |
2117 | #ifdef __MigPackStructs |
2118 | #pragma pack(push, 4) |
2119 | #endif |
2120 | typedef struct { |
2121 | mach_msg_header_t Head; |
2122 | NDR_record_t NDR; |
2123 | kern_return_t RetCode; |
2124 | } __Reply__semaphore_destroy_t __attribute__((unused)); |
2125 | #ifdef __MigPackStructs |
2126 | #pragma pack(pop) |
2127 | #endif |
2128 | |
2129 | #ifdef __MigPackStructs |
2130 | #pragma pack(push, 4) |
2131 | #endif |
2132 | typedef struct { |
2133 | mach_msg_header_t Head; |
2134 | NDR_record_t NDR; |
2135 | kern_return_t RetCode; |
2136 | } __Reply__task_policy_set_t __attribute__((unused)); |
2137 | #ifdef __MigPackStructs |
2138 | #pragma pack(pop) |
2139 | #endif |
2140 | |
2141 | #ifdef __MigPackStructs |
2142 | #pragma pack(push, 4) |
2143 | #endif |
2144 | typedef struct { |
2145 | mach_msg_header_t Head; |
2146 | NDR_record_t NDR; |
2147 | kern_return_t RetCode; |
2148 | mach_msg_type_number_t policy_infoCnt; |
2149 | integer_t policy_info[16]; |
2150 | boolean_t get_default; |
2151 | } __Reply__task_policy_get_t __attribute__((unused)); |
2152 | #ifdef __MigPackStructs |
2153 | #pragma pack(pop) |
2154 | #endif |
2155 | |
2156 | #ifdef __MigPackStructs |
2157 | #pragma pack(push, 4) |
2158 | #endif |
2159 | typedef struct { |
2160 | mach_msg_header_t Head; |
2161 | NDR_record_t NDR; |
2162 | kern_return_t RetCode; |
2163 | } __Reply__task_sample_t __attribute__((unused)); |
2164 | #ifdef __MigPackStructs |
2165 | #pragma pack(pop) |
2166 | #endif |
2167 | |
2168 | #ifdef __MigPackStructs |
2169 | #pragma pack(push, 4) |
2170 | #endif |
2171 | typedef struct { |
2172 | mach_msg_header_t Head; |
2173 | NDR_record_t NDR; |
2174 | kern_return_t RetCode; |
2175 | } __Reply__task_policy_t __attribute__((unused)); |
2176 | #ifdef __MigPackStructs |
2177 | #pragma pack(pop) |
2178 | #endif |
2179 | |
2180 | #ifdef __MigPackStructs |
2181 | #pragma pack(push, 4) |
2182 | #endif |
2183 | typedef struct { |
2184 | mach_msg_header_t Head; |
2185 | NDR_record_t NDR; |
2186 | kern_return_t RetCode; |
2187 | } __Reply__task_set_emulation_t __attribute__((unused)); |
2188 | #ifdef __MigPackStructs |
2189 | #pragma pack(pop) |
2190 | #endif |
2191 | |
2192 | #ifdef __MigPackStructs |
2193 | #pragma pack(push, 4) |
2194 | #endif |
2195 | typedef struct { |
2196 | mach_msg_header_t Head; |
2197 | /* start of the kernel processed data */ |
2198 | mach_msg_body_t msgh_body; |
2199 | mach_msg_ool_descriptor_t emulation_vector; |
2200 | /* end of the kernel processed data */ |
2201 | NDR_record_t NDR; |
2202 | int vector_start; |
2203 | mach_msg_type_number_t emulation_vectorCnt; |
2204 | } __Reply__task_get_emulation_vector_t __attribute__((unused)); |
2205 | #ifdef __MigPackStructs |
2206 | #pragma pack(pop) |
2207 | #endif |
2208 | |
2209 | #ifdef __MigPackStructs |
2210 | #pragma pack(push, 4) |
2211 | #endif |
2212 | typedef struct { |
2213 | mach_msg_header_t Head; |
2214 | NDR_record_t NDR; |
2215 | kern_return_t RetCode; |
2216 | } __Reply__task_set_emulation_vector_t __attribute__((unused)); |
2217 | #ifdef __MigPackStructs |
2218 | #pragma pack(pop) |
2219 | #endif |
2220 | |
2221 | #ifdef __MigPackStructs |
2222 | #pragma pack(push, 4) |
2223 | #endif |
2224 | typedef struct { |
2225 | mach_msg_header_t Head; |
2226 | NDR_record_t NDR; |
2227 | kern_return_t RetCode; |
2228 | } __Reply__task_set_ras_pc_t __attribute__((unused)); |
2229 | #ifdef __MigPackStructs |
2230 | #pragma pack(pop) |
2231 | #endif |
2232 | |
2233 | #ifdef __MigPackStructs |
2234 | #pragma pack(push, 4) |
2235 | #endif |
2236 | typedef struct { |
2237 | mach_msg_header_t Head; |
2238 | /* start of the kernel processed data */ |
2239 | mach_msg_body_t msgh_body; |
2240 | mach_msg_ool_descriptor_t names; |
2241 | mach_msg_ool_descriptor_t info; |
2242 | /* end of the kernel processed data */ |
2243 | NDR_record_t NDR; |
2244 | mach_msg_type_number_t namesCnt; |
2245 | mach_msg_type_number_t infoCnt; |
2246 | } __Reply__task_zone_info_t __attribute__((unused)); |
2247 | #ifdef __MigPackStructs |
2248 | #pragma pack(pop) |
2249 | #endif |
2250 | |
2251 | #ifdef __MigPackStructs |
2252 | #pragma pack(push, 4) |
2253 | #endif |
2254 | typedef struct { |
2255 | mach_msg_header_t Head; |
2256 | NDR_record_t NDR; |
2257 | kern_return_t RetCode; |
2258 | } __Reply__task_assign_t __attribute__((unused)); |
2259 | #ifdef __MigPackStructs |
2260 | #pragma pack(pop) |
2261 | #endif |
2262 | |
2263 | #ifdef __MigPackStructs |
2264 | #pragma pack(push, 4) |
2265 | #endif |
2266 | typedef struct { |
2267 | mach_msg_header_t Head; |
2268 | NDR_record_t NDR; |
2269 | kern_return_t RetCode; |
2270 | } __Reply__task_assign_default_t __attribute__((unused)); |
2271 | #ifdef __MigPackStructs |
2272 | #pragma pack(pop) |
2273 | #endif |
2274 | |
2275 | #ifdef __MigPackStructs |
2276 | #pragma pack(push, 4) |
2277 | #endif |
2278 | typedef struct { |
2279 | mach_msg_header_t Head; |
2280 | /* start of the kernel processed data */ |
2281 | mach_msg_body_t msgh_body; |
2282 | mach_msg_port_descriptor_t assigned_set; |
2283 | /* end of the kernel processed data */ |
2284 | } __Reply__task_get_assignment_t __attribute__((unused)); |
2285 | #ifdef __MigPackStructs |
2286 | #pragma pack(pop) |
2287 | #endif |
2288 | |
2289 | #ifdef __MigPackStructs |
2290 | #pragma pack(push, 4) |
2291 | #endif |
2292 | typedef struct { |
2293 | mach_msg_header_t Head; |
2294 | NDR_record_t NDR; |
2295 | kern_return_t RetCode; |
2296 | } __Reply__task_set_policy_t __attribute__((unused)); |
2297 | #ifdef __MigPackStructs |
2298 | #pragma pack(pop) |
2299 | #endif |
2300 | |
2301 | #ifdef __MigPackStructs |
2302 | #pragma pack(push, 4) |
2303 | #endif |
2304 | typedef struct { |
2305 | mach_msg_header_t Head; |
2306 | NDR_record_t NDR; |
2307 | kern_return_t RetCode; |
2308 | mach_msg_type_number_t old_stateCnt; |
2309 | natural_t old_state[1296]; |
2310 | } __Reply__task_get_state_t __attribute__((unused)); |
2311 | #ifdef __MigPackStructs |
2312 | #pragma pack(pop) |
2313 | #endif |
2314 | |
2315 | #ifdef __MigPackStructs |
2316 | #pragma pack(push, 4) |
2317 | #endif |
2318 | typedef struct { |
2319 | mach_msg_header_t Head; |
2320 | NDR_record_t NDR; |
2321 | kern_return_t RetCode; |
2322 | } __Reply__task_set_state_t __attribute__((unused)); |
2323 | #ifdef __MigPackStructs |
2324 | #pragma pack(pop) |
2325 | #endif |
2326 | |
2327 | #ifdef __MigPackStructs |
2328 | #pragma pack(push, 4) |
2329 | #endif |
2330 | typedef struct { |
2331 | mach_msg_header_t ; |
2332 | NDR_record_t ; |
2333 | kern_return_t ; |
2334 | int ; |
2335 | } __attribute__((unused)); |
2336 | #ifdef __MigPackStructs |
2337 | #pragma pack(pop) |
2338 | #endif |
2339 | |
2340 | #ifdef __MigPackStructs |
2341 | #pragma pack(push, 4) |
2342 | #endif |
2343 | typedef struct { |
2344 | mach_msg_header_t Head; |
2345 | /* start of the kernel processed data */ |
2346 | mach_msg_body_t msgh_body; |
2347 | mach_msg_port_descriptor_t suspend_token; |
2348 | /* end of the kernel processed data */ |
2349 | } __Reply__task_suspend2_t __attribute__((unused)); |
2350 | #ifdef __MigPackStructs |
2351 | #pragma pack(pop) |
2352 | #endif |
2353 | |
2354 | #ifdef __MigPackStructs |
2355 | #pragma pack(push, 4) |
2356 | #endif |
2357 | typedef struct { |
2358 | mach_msg_header_t Head; |
2359 | NDR_record_t NDR; |
2360 | kern_return_t RetCode; |
2361 | } __Reply__task_resume2_t __attribute__((unused)); |
2362 | #ifdef __MigPackStructs |
2363 | #pragma pack(pop) |
2364 | #endif |
2365 | |
2366 | #ifdef __MigPackStructs |
2367 | #pragma pack(push, 4) |
2368 | #endif |
2369 | typedef struct { |
2370 | mach_msg_header_t Head; |
2371 | NDR_record_t NDR; |
2372 | kern_return_t RetCode; |
2373 | task_purgable_info_t stats; |
2374 | } __Reply__task_purgable_info_t __attribute__((unused)); |
2375 | #ifdef __MigPackStructs |
2376 | #pragma pack(pop) |
2377 | #endif |
2378 | |
2379 | #ifdef __MigPackStructs |
2380 | #pragma pack(push, 4) |
2381 | #endif |
2382 | typedef struct { |
2383 | mach_msg_header_t Head; |
2384 | /* start of the kernel processed data */ |
2385 | mach_msg_body_t msgh_body; |
2386 | mach_msg_port_descriptor_t voucher; |
2387 | /* end of the kernel processed data */ |
2388 | } __Reply__task_get_mach_voucher_t __attribute__((unused)); |
2389 | #ifdef __MigPackStructs |
2390 | #pragma pack(pop) |
2391 | #endif |
2392 | |
2393 | #ifdef __MigPackStructs |
2394 | #pragma pack(push, 4) |
2395 | #endif |
2396 | typedef struct { |
2397 | mach_msg_header_t Head; |
2398 | NDR_record_t NDR; |
2399 | kern_return_t RetCode; |
2400 | } __Reply__task_set_mach_voucher_t __attribute__((unused)); |
2401 | #ifdef __MigPackStructs |
2402 | #pragma pack(pop) |
2403 | #endif |
2404 | |
2405 | #ifdef __MigPackStructs |
2406 | #pragma pack(push, 4) |
2407 | #endif |
2408 | typedef struct { |
2409 | mach_msg_header_t Head; |
2410 | /* start of the kernel processed data */ |
2411 | mach_msg_body_t msgh_body; |
2412 | mach_msg_port_descriptor_t old_voucher; |
2413 | /* end of the kernel processed data */ |
2414 | } __Reply__task_swap_mach_voucher_t __attribute__((unused)); |
2415 | #ifdef __MigPackStructs |
2416 | #pragma pack(pop) |
2417 | #endif |
2418 | |
2419 | #ifdef __MigPackStructs |
2420 | #pragma pack(push, 4) |
2421 | #endif |
2422 | typedef struct { |
2423 | mach_msg_header_t Head; |
2424 | /* start of the kernel processed data */ |
2425 | mach_msg_body_t msgh_body; |
2426 | mach_msg_port_descriptor_t corpse_task_port; |
2427 | /* end of the kernel processed data */ |
2428 | } __Reply__task_generate_corpse_t __attribute__((unused)); |
2429 | #ifdef __MigPackStructs |
2430 | #pragma pack(pop) |
2431 | #endif |
2432 | |
2433 | #ifdef __MigPackStructs |
2434 | #pragma pack(push, 4) |
2435 | #endif |
2436 | typedef struct { |
2437 | mach_msg_header_t Head; |
2438 | NDR_record_t NDR; |
2439 | kern_return_t RetCode; |
2440 | vm_address_t kcd_addr_begin; |
2441 | uint32_t kcd_size; |
2442 | } __Reply__task_map_corpse_info_t __attribute__((unused)); |
2443 | #ifdef __MigPackStructs |
2444 | #pragma pack(pop) |
2445 | #endif |
2446 | |
2447 | #ifdef __MigPackStructs |
2448 | #pragma pack(push, 4) |
2449 | #endif |
2450 | typedef struct { |
2451 | mach_msg_header_t Head; |
2452 | NDR_record_t NDR; |
2453 | kern_return_t RetCode; |
2454 | } __Reply__task_register_dyld_image_infos_t __attribute__((unused)); |
2455 | #ifdef __MigPackStructs |
2456 | #pragma pack(pop) |
2457 | #endif |
2458 | |
2459 | #ifdef __MigPackStructs |
2460 | #pragma pack(push, 4) |
2461 | #endif |
2462 | typedef struct { |
2463 | mach_msg_header_t Head; |
2464 | NDR_record_t NDR; |
2465 | kern_return_t RetCode; |
2466 | } __Reply__task_unregister_dyld_image_infos_t __attribute__((unused)); |
2467 | #ifdef __MigPackStructs |
2468 | #pragma pack(pop) |
2469 | #endif |
2470 | |
2471 | #ifdef __MigPackStructs |
2472 | #pragma pack(push, 4) |
2473 | #endif |
2474 | typedef struct { |
2475 | mach_msg_header_t Head; |
2476 | /* start of the kernel processed data */ |
2477 | mach_msg_body_t msgh_body; |
2478 | mach_msg_ool_descriptor_t dyld_images; |
2479 | /* end of the kernel processed data */ |
2480 | NDR_record_t NDR; |
2481 | mach_msg_type_number_t dyld_imagesCnt; |
2482 | } __Reply__task_get_dyld_image_infos_t __attribute__((unused)); |
2483 | #ifdef __MigPackStructs |
2484 | #pragma pack(pop) |
2485 | #endif |
2486 | |
2487 | #ifdef __MigPackStructs |
2488 | #pragma pack(push, 4) |
2489 | #endif |
2490 | typedef struct { |
2491 | mach_msg_header_t Head; |
2492 | NDR_record_t NDR; |
2493 | kern_return_t RetCode; |
2494 | } __Reply__task_register_dyld_shared_cache_image_info_t __attribute__((unused)); |
2495 | #ifdef __MigPackStructs |
2496 | #pragma pack(pop) |
2497 | #endif |
2498 | |
2499 | #ifdef __MigPackStructs |
2500 | #pragma pack(push, 4) |
2501 | #endif |
2502 | typedef struct { |
2503 | mach_msg_header_t Head; |
2504 | NDR_record_t NDR; |
2505 | kern_return_t RetCode; |
2506 | } __Reply__task_register_dyld_set_dyld_state_t __attribute__((unused)); |
2507 | #ifdef __MigPackStructs |
2508 | #pragma pack(pop) |
2509 | #endif |
2510 | |
2511 | #ifdef __MigPackStructs |
2512 | #pragma pack(push, 4) |
2513 | #endif |
2514 | typedef struct { |
2515 | mach_msg_header_t Head; |
2516 | NDR_record_t NDR; |
2517 | kern_return_t RetCode; |
2518 | dyld_kernel_process_info_t dyld_process_state; |
2519 | } __Reply__task_register_dyld_get_process_state_t __attribute__((unused)); |
2520 | #ifdef __MigPackStructs |
2521 | #pragma pack(pop) |
2522 | #endif |
2523 | |
2524 | #ifdef __MigPackStructs |
2525 | #pragma pack(push, 4) |
2526 | #endif |
2527 | typedef struct { |
2528 | mach_msg_header_t Head; |
2529 | NDR_record_t NDR; |
2530 | kern_return_t RetCode; |
2531 | mach_vm_address_t kcd_addr_begin; |
2532 | mach_vm_size_t kcd_size; |
2533 | } __Reply__task_map_corpse_info_64_t __attribute__((unused)); |
2534 | #ifdef __MigPackStructs |
2535 | #pragma pack(pop) |
2536 | #endif |
2537 | |
2538 | #ifdef __MigPackStructs |
2539 | #pragma pack(push, 4) |
2540 | #endif |
2541 | typedef struct { |
2542 | mach_msg_header_t Head; |
2543 | NDR_record_t NDR; |
2544 | kern_return_t RetCode; |
2545 | mach_msg_type_number_t info_outCnt; |
2546 | integer_t info_out[4]; |
2547 | } __Reply__task_inspect_t __attribute__((unused)); |
2548 | #ifdef __MigPackStructs |
2549 | #pragma pack(pop) |
2550 | #endif |
2551 | |
2552 | #ifdef __MigPackStructs |
2553 | #pragma pack(push, 4) |
2554 | #endif |
2555 | typedef struct { |
2556 | mach_msg_header_t Head; |
2557 | NDR_record_t NDR; |
2558 | kern_return_t RetCode; |
2559 | task_exc_guard_behavior_t behavior; |
2560 | } __Reply__task_get_exc_guard_behavior_t __attribute__((unused)); |
2561 | #ifdef __MigPackStructs |
2562 | #pragma pack(pop) |
2563 | #endif |
2564 | |
2565 | #ifdef __MigPackStructs |
2566 | #pragma pack(push, 4) |
2567 | #endif |
2568 | typedef struct { |
2569 | mach_msg_header_t Head; |
2570 | NDR_record_t NDR; |
2571 | kern_return_t RetCode; |
2572 | } __Reply__task_set_exc_guard_behavior_t __attribute__((unused)); |
2573 | #ifdef __MigPackStructs |
2574 | #pragma pack(pop) |
2575 | #endif |
2576 | |
2577 | #ifdef __MigPackStructs |
2578 | #pragma pack(push, 4) |
2579 | #endif |
2580 | typedef struct { |
2581 | mach_msg_header_t Head; |
2582 | NDR_record_t NDR; |
2583 | kern_return_t RetCode; |
2584 | boolean_t is_self; |
2585 | } __Reply__mach_task_is_self_t __attribute__((unused)); |
2586 | #ifdef __MigPackStructs |
2587 | #pragma pack(pop) |
2588 | #endif |
2589 | |
2590 | #ifdef __MigPackStructs |
2591 | #pragma pack(push, 4) |
2592 | #endif |
2593 | typedef struct { |
2594 | mach_msg_header_t Head; |
2595 | NDR_record_t NDR; |
2596 | kern_return_t RetCode; |
2597 | } __Reply__task_dyld_process_info_notify_register_t __attribute__((unused)); |
2598 | #ifdef __MigPackStructs |
2599 | #pragma pack(pop) |
2600 | #endif |
2601 | |
2602 | #ifdef __MigPackStructs |
2603 | #pragma pack(push, 4) |
2604 | #endif |
2605 | typedef struct { |
2606 | mach_msg_header_t Head; |
2607 | /* start of the kernel processed data */ |
2608 | mach_msg_body_t msgh_body; |
2609 | mach_msg_port_descriptor_t token; |
2610 | /* end of the kernel processed data */ |
2611 | } __Reply__task_create_identity_token_t __attribute__((unused)); |
2612 | #ifdef __MigPackStructs |
2613 | #pragma pack(pop) |
2614 | #endif |
2615 | |
2616 | #ifdef __MigPackStructs |
2617 | #pragma pack(push, 4) |
2618 | #endif |
2619 | typedef struct { |
2620 | mach_msg_header_t Head; |
2621 | /* start of the kernel processed data */ |
2622 | mach_msg_body_t msgh_body; |
2623 | mach_msg_port_descriptor_t task_port; |
2624 | /* end of the kernel processed data */ |
2625 | } __Reply__task_identity_token_get_task_port_t __attribute__((unused)); |
2626 | #ifdef __MigPackStructs |
2627 | #pragma pack(pop) |
2628 | #endif |
2629 | |
2630 | #ifdef __MigPackStructs |
2631 | #pragma pack(push, 4) |
2632 | #endif |
2633 | typedef struct { |
2634 | mach_msg_header_t Head; |
2635 | NDR_record_t NDR; |
2636 | kern_return_t RetCode; |
2637 | } __Reply__task_dyld_process_info_notify_deregister_t __attribute__((unused)); |
2638 | #ifdef __MigPackStructs |
2639 | #pragma pack(pop) |
2640 | #endif |
2641 | |
2642 | #ifdef __MigPackStructs |
2643 | #pragma pack(push, 4) |
2644 | #endif |
2645 | typedef struct { |
2646 | mach_msg_header_t Head; |
2647 | NDR_record_t NDR; |
2648 | kern_return_t RetCode; |
2649 | mach_msg_type_number_t masksCnt; |
2650 | exception_mask_t masks[32]; |
2651 | exception_handler_info_t old_handlers_info[32]; |
2652 | exception_behavior_t old_behaviors[32]; |
2653 | thread_state_flavor_t old_flavors[32]; |
2654 | } __Reply__task_get_exception_ports_info_t __attribute__((unused)); |
2655 | #ifdef __MigPackStructs |
2656 | #pragma pack(pop) |
2657 | #endif |
2658 | |
2659 | #ifdef __MigPackStructs |
2660 | #pragma pack(push, 4) |
2661 | #endif |
2662 | typedef struct { |
2663 | mach_msg_header_t Head; |
2664 | NDR_record_t NDR; |
2665 | kern_return_t RetCode; |
2666 | } __Reply__task_test_sync_upcall_t __attribute__((unused)); |
2667 | #ifdef __MigPackStructs |
2668 | #pragma pack(pop) |
2669 | #endif |
2670 | |
2671 | #ifdef __MigPackStructs |
2672 | #pragma pack(push, 4) |
2673 | #endif |
2674 | typedef struct { |
2675 | mach_msg_header_t Head; |
2676 | NDR_record_t NDR; |
2677 | kern_return_t RetCode; |
2678 | } __Reply__task_set_corpse_forking_behavior_t __attribute__((unused)); |
2679 | #ifdef __MigPackStructs |
2680 | #pragma pack(pop) |
2681 | #endif |
2682 | |
2683 | #ifdef __MigPackStructs |
2684 | #pragma pack(push, 4) |
2685 | #endif |
2686 | typedef struct { |
2687 | mach_msg_header_t Head; |
2688 | NDR_record_t NDR; |
2689 | kern_return_t RetCode; |
2690 | } __Reply__task_test_async_upcall_propagation_t __attribute__((unused)); |
2691 | #ifdef __MigPackStructs |
2692 | #pragma pack(pop) |
2693 | #endif |
2694 | |
2695 | #ifdef __MigPackStructs |
2696 | #pragma pack(push, 4) |
2697 | #endif |
2698 | typedef struct { |
2699 | mach_msg_header_t Head; |
2700 | NDR_record_t NDR; |
2701 | kern_return_t RetCode; |
2702 | mach_vm_address_t kcd_addr_begin; |
2703 | mach_vm_size_t kcd_size; |
2704 | } __Reply__task_map_kcdata_object_64_t __attribute__((unused)); |
2705 | #ifdef __MigPackStructs |
2706 | #pragma pack(pop) |
2707 | #endif |
2708 | #endif /* !__Reply__task_subsystem__defined */ |
2709 | |
2710 | /* union of all replies */ |
2711 | |
2712 | #ifndef __ReplyUnion__task_subsystem__defined |
2713 | #define __ReplyUnion__task_subsystem__defined |
2714 | union __ReplyUnion__task_subsystem { |
2715 | __Reply__task_create_t Reply_task_create; |
2716 | __Reply__task_terminate_t Reply_task_terminate; |
2717 | __Reply__task_threads_t Reply_task_threads; |
2718 | __Reply__mach_ports_register_t Reply_mach_ports_register; |
2719 | __Reply__mach_ports_lookup_t Reply_mach_ports_lookup; |
2720 | __Reply__task_info_t Reply_task_info; |
2721 | __Reply__task_set_info_t Reply_task_set_info; |
2722 | __Reply__task_suspend_t Reply_task_suspend; |
2723 | __Reply__task_resume_t Reply_task_resume; |
2724 | __Reply__task_get_special_port_t Reply_task_get_special_port; |
2725 | __Reply__task_set_special_port_t Reply_task_set_special_port; |
2726 | __Reply__thread_create_t Reply_thread_create; |
2727 | __Reply__thread_create_running_t Reply_thread_create_running; |
2728 | __Reply__task_set_exception_ports_t Reply_task_set_exception_ports; |
2729 | __Reply__task_get_exception_ports_t Reply_task_get_exception_ports; |
2730 | __Reply__task_swap_exception_ports_t Reply_task_swap_exception_ports; |
2731 | __Reply__lock_set_create_t Reply_lock_set_create; |
2732 | __Reply__lock_set_destroy_t Reply_lock_set_destroy; |
2733 | __Reply__semaphore_create_t Reply_semaphore_create; |
2734 | __Reply__semaphore_destroy_t Reply_semaphore_destroy; |
2735 | __Reply__task_policy_set_t Reply_task_policy_set; |
2736 | __Reply__task_policy_get_t Reply_task_policy_get; |
2737 | __Reply__task_sample_t Reply_task_sample; |
2738 | __Reply__task_policy_t Reply_task_policy; |
2739 | __Reply__task_set_emulation_t Reply_task_set_emulation; |
2740 | __Reply__task_get_emulation_vector_t Reply_task_get_emulation_vector; |
2741 | __Reply__task_set_emulation_vector_t Reply_task_set_emulation_vector; |
2742 | __Reply__task_set_ras_pc_t Reply_task_set_ras_pc; |
2743 | __Reply__task_zone_info_t Reply_task_zone_info; |
2744 | __Reply__task_assign_t Reply_task_assign; |
2745 | __Reply__task_assign_default_t Reply_task_assign_default; |
2746 | __Reply__task_get_assignment_t Reply_task_get_assignment; |
2747 | __Reply__task_set_policy_t Reply_task_set_policy; |
2748 | __Reply__task_get_state_t Reply_task_get_state; |
2749 | __Reply__task_set_state_t Reply_task_set_state; |
2750 | __Reply__task_set_phys_footprint_limit_t ; |
2751 | __Reply__task_suspend2_t Reply_task_suspend2; |
2752 | __Reply__task_resume2_t Reply_task_resume2; |
2753 | __Reply__task_purgable_info_t Reply_task_purgable_info; |
2754 | __Reply__task_get_mach_voucher_t Reply_task_get_mach_voucher; |
2755 | __Reply__task_set_mach_voucher_t Reply_task_set_mach_voucher; |
2756 | __Reply__task_swap_mach_voucher_t Reply_task_swap_mach_voucher; |
2757 | __Reply__task_generate_corpse_t Reply_task_generate_corpse; |
2758 | __Reply__task_map_corpse_info_t Reply_task_map_corpse_info; |
2759 | __Reply__task_register_dyld_image_infos_t Reply_task_register_dyld_image_infos; |
2760 | __Reply__task_unregister_dyld_image_infos_t Reply_task_unregister_dyld_image_infos; |
2761 | __Reply__task_get_dyld_image_infos_t Reply_task_get_dyld_image_infos; |
2762 | __Reply__task_register_dyld_shared_cache_image_info_t Reply_task_register_dyld_shared_cache_image_info; |
2763 | __Reply__task_register_dyld_set_dyld_state_t Reply_task_register_dyld_set_dyld_state; |
2764 | __Reply__task_register_dyld_get_process_state_t Reply_task_register_dyld_get_process_state; |
2765 | __Reply__task_map_corpse_info_64_t Reply_task_map_corpse_info_64; |
2766 | __Reply__task_inspect_t Reply_task_inspect; |
2767 | __Reply__task_get_exc_guard_behavior_t Reply_task_get_exc_guard_behavior; |
2768 | __Reply__task_set_exc_guard_behavior_t Reply_task_set_exc_guard_behavior; |
2769 | __Reply__mach_task_is_self_t Reply_mach_task_is_self; |
2770 | __Reply__task_dyld_process_info_notify_register_t Reply_task_dyld_process_info_notify_register; |
2771 | __Reply__task_create_identity_token_t Reply_task_create_identity_token; |
2772 | __Reply__task_identity_token_get_task_port_t Reply_task_identity_token_get_task_port; |
2773 | __Reply__task_dyld_process_info_notify_deregister_t Reply_task_dyld_process_info_notify_deregister; |
2774 | __Reply__task_get_exception_ports_info_t Reply_task_get_exception_ports_info; |
2775 | __Reply__task_test_sync_upcall_t Reply_task_test_sync_upcall; |
2776 | __Reply__task_set_corpse_forking_behavior_t Reply_task_set_corpse_forking_behavior; |
2777 | __Reply__task_test_async_upcall_propagation_t Reply_task_test_async_upcall_propagation; |
2778 | __Reply__task_map_kcdata_object_64_t Reply_task_map_kcdata_object_64; |
2779 | }; |
2780 | #endif /* !__RequestUnion__task_subsystem__defined */ |
2781 | |
2782 | #ifndef subsystem_to_name_map_task |
2783 | #define subsystem_to_name_map_task \ |
2784 | { "task_create", 3400 },\ |
2785 | { "task_terminate", 3401 },\ |
2786 | { "task_threads", 3402 },\ |
2787 | { "mach_ports_register", 3403 },\ |
2788 | { "mach_ports_lookup", 3404 },\ |
2789 | { "task_info", 3405 },\ |
2790 | { "task_set_info", 3406 },\ |
2791 | { "task_suspend", 3407 },\ |
2792 | { "task_resume", 3408 },\ |
2793 | { "task_get_special_port", 3409 },\ |
2794 | { "task_set_special_port", 3410 },\ |
2795 | { "thread_create", 3411 },\ |
2796 | { "thread_create_running", 3412 },\ |
2797 | { "task_set_exception_ports", 3413 },\ |
2798 | { "task_get_exception_ports", 3414 },\ |
2799 | { "task_swap_exception_ports", 3415 },\ |
2800 | { "lock_set_create", 3416 },\ |
2801 | { "lock_set_destroy", 3417 },\ |
2802 | { "semaphore_create", 3418 },\ |
2803 | { "semaphore_destroy", 3419 },\ |
2804 | { "task_policy_set", 3420 },\ |
2805 | { "task_policy_get", 3421 },\ |
2806 | { "task_sample", 3422 },\ |
2807 | { "task_policy", 3423 },\ |
2808 | { "task_set_emulation", 3424 },\ |
2809 | { "task_get_emulation_vector", 3425 },\ |
2810 | { "task_set_emulation_vector", 3426 },\ |
2811 | { "task_set_ras_pc", 3427 },\ |
2812 | { "task_zone_info", 3428 },\ |
2813 | { "task_assign", 3429 },\ |
2814 | { "task_assign_default", 3430 },\ |
2815 | { "task_get_assignment", 3431 },\ |
2816 | { "task_set_policy", 3432 },\ |
2817 | { "task_get_state", 3433 },\ |
2818 | { "task_set_state", 3434 },\ |
2819 | { "task_set_phys_footprint_limit", 3435 },\ |
2820 | { "task_suspend2", 3436 },\ |
2821 | { "task_resume2", 3437 },\ |
2822 | { "task_purgable_info", 3438 },\ |
2823 | { "task_get_mach_voucher", 3439 },\ |
2824 | { "task_set_mach_voucher", 3440 },\ |
2825 | { "task_swap_mach_voucher", 3441 },\ |
2826 | { "task_generate_corpse", 3442 },\ |
2827 | { "task_map_corpse_info", 3443 },\ |
2828 | { "task_register_dyld_image_infos", 3444 },\ |
2829 | { "task_unregister_dyld_image_infos", 3445 },\ |
2830 | { "task_get_dyld_image_infos", 3446 },\ |
2831 | { "task_register_dyld_shared_cache_image_info", 3447 },\ |
2832 | { "task_register_dyld_set_dyld_state", 3448 },\ |
2833 | { "task_register_dyld_get_process_state", 3449 },\ |
2834 | { "task_map_corpse_info_64", 3450 },\ |
2835 | { "task_inspect", 3451 },\ |
2836 | { "task_get_exc_guard_behavior", 3452 },\ |
2837 | { "task_set_exc_guard_behavior", 3453 },\ |
2838 | { "mach_task_is_self", 3455 },\ |
2839 | { "task_dyld_process_info_notify_register", 3456 },\ |
2840 | { "task_create_identity_token", 3457 },\ |
2841 | { "task_identity_token_get_task_port", 3458 },\ |
2842 | { "task_dyld_process_info_notify_deregister", 3459 },\ |
2843 | { "task_get_exception_ports_info", 3460 },\ |
2844 | { "task_test_sync_upcall", 3461 },\ |
2845 | { "task_set_corpse_forking_behavior", 3462 },\ |
2846 | { "task_test_async_upcall_propagation", 3463 },\ |
2847 | { "task_map_kcdata_object_64", 3464 } |
2848 | #endif |
2849 | |
2850 | #ifdef __AfterMigUserHeader |
2851 | __AfterMigUserHeader |
2852 | #endif /* __AfterMigUserHeader */ |
2853 | |
2854 | #endif /* _task_user_ */ |
2855 | |