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