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