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