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