this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add some pre-generated MIG headers

Reason: CMake's dependency scanner doesn't detect that some of the headers are generated and it doesn't try to generate them for other targets that depend on them indirectly (e.g. libc) and therefore parallel builds will fail.

The temporary solution is to check-in the generated headers into the source (just like we were doing before in `platform-include`). The proper solution would be to manually add dependencies for each target that needs the headers (which is pretty much *everything*), but that's ridiculous. Honestly, CMake should be able to detect this on its own, but whatever; this is a workaround.

+14332
+270
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/clock.h
··· 1 + #ifndef _clock_user_ 2 + #define _clock_user_ 3 + 4 + /* Module clock */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef clock_MSG_COUNT 77 + #define clock_MSG_COUNT 3 78 + #endif /* clock_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + #include <mach/mach_types.h> 85 + 86 + #ifdef __BeforeMigUserHeader 87 + __BeforeMigUserHeader 88 + #endif /* __BeforeMigUserHeader */ 89 + 90 + #include <sys/cdefs.h> 91 + __BEGIN_DECLS 92 + 93 + 94 + /* Routine clock_get_time */ 95 + #ifdef mig_external 96 + mig_external 97 + #else 98 + extern 99 + #endif /* mig_external */ 100 + kern_return_t clock_get_time 101 + ( 102 + clock_serv_t clock_serv, 103 + mach_timespec_t *cur_time 104 + ); 105 + 106 + /* Routine clock_get_attributes */ 107 + #ifdef mig_external 108 + mig_external 109 + #else 110 + extern 111 + #endif /* mig_external */ 112 + kern_return_t clock_get_attributes 113 + ( 114 + clock_serv_t clock_serv, 115 + clock_flavor_t flavor, 116 + clock_attr_t clock_attr, 117 + mach_msg_type_number_t *clock_attrCnt 118 + ); 119 + 120 + /* Routine clock_alarm */ 121 + #ifdef mig_external 122 + mig_external 123 + #else 124 + extern 125 + #endif /* mig_external */ 126 + kern_return_t clock_alarm 127 + ( 128 + clock_serv_t clock_serv, 129 + alarm_type_t alarm_type, 130 + mach_timespec_t alarm_time, 131 + clock_reply_t alarm_port 132 + ); 133 + 134 + __END_DECLS 135 + 136 + /********************** Caution **************************/ 137 + /* The following data types should be used to calculate */ 138 + /* maximum message sizes only. The actual message may be */ 139 + /* smaller, and the position of the arguments within the */ 140 + /* message layout may vary from what is presented here. */ 141 + /* For example, if any of the arguments are variable- */ 142 + /* sized, and less than the maximum is sent, the data */ 143 + /* will be packed tight in the actual message to reduce */ 144 + /* the presence of holes. */ 145 + /********************** Caution **************************/ 146 + 147 + /* typedefs for all requests */ 148 + 149 + #ifndef __Request__clock_subsystem__defined 150 + #define __Request__clock_subsystem__defined 151 + 152 + #ifdef __MigPackStructs 153 + #pragma pack(push, 4) 154 + #endif 155 + typedef struct { 156 + mach_msg_header_t Head; 157 + } __Request__clock_get_time_t __attribute__((unused)); 158 + #ifdef __MigPackStructs 159 + #pragma pack(pop) 160 + #endif 161 + 162 + #ifdef __MigPackStructs 163 + #pragma pack(push, 4) 164 + #endif 165 + typedef struct { 166 + mach_msg_header_t Head; 167 + NDR_record_t NDR; 168 + clock_flavor_t flavor; 169 + mach_msg_type_number_t clock_attrCnt; 170 + } __Request__clock_get_attributes_t __attribute__((unused)); 171 + #ifdef __MigPackStructs 172 + #pragma pack(pop) 173 + #endif 174 + 175 + #ifdef __MigPackStructs 176 + #pragma pack(push, 4) 177 + #endif 178 + typedef struct { 179 + mach_msg_header_t Head; 180 + /* start of the kernel processed data */ 181 + mach_msg_body_t msgh_body; 182 + mach_msg_port_descriptor_t alarm_port; 183 + /* end of the kernel processed data */ 184 + NDR_record_t NDR; 185 + alarm_type_t alarm_type; 186 + mach_timespec_t alarm_time; 187 + } __Request__clock_alarm_t __attribute__((unused)); 188 + #ifdef __MigPackStructs 189 + #pragma pack(pop) 190 + #endif 191 + #endif /* !__Request__clock_subsystem__defined */ 192 + 193 + /* union of all requests */ 194 + 195 + #ifndef __RequestUnion__clock_subsystem__defined 196 + #define __RequestUnion__clock_subsystem__defined 197 + union __RequestUnion__clock_subsystem { 198 + __Request__clock_get_time_t Request_clock_get_time; 199 + __Request__clock_get_attributes_t Request_clock_get_attributes; 200 + __Request__clock_alarm_t Request_clock_alarm; 201 + }; 202 + #endif /* !__RequestUnion__clock_subsystem__defined */ 203 + /* typedefs for all replies */ 204 + 205 + #ifndef __Reply__clock_subsystem__defined 206 + #define __Reply__clock_subsystem__defined 207 + 208 + #ifdef __MigPackStructs 209 + #pragma pack(push, 4) 210 + #endif 211 + typedef struct { 212 + mach_msg_header_t Head; 213 + NDR_record_t NDR; 214 + kern_return_t RetCode; 215 + mach_timespec_t cur_time; 216 + } __Reply__clock_get_time_t __attribute__((unused)); 217 + #ifdef __MigPackStructs 218 + #pragma pack(pop) 219 + #endif 220 + 221 + #ifdef __MigPackStructs 222 + #pragma pack(push, 4) 223 + #endif 224 + typedef struct { 225 + mach_msg_header_t Head; 226 + NDR_record_t NDR; 227 + kern_return_t RetCode; 228 + mach_msg_type_number_t clock_attrCnt; 229 + int clock_attr[1]; 230 + } __Reply__clock_get_attributes_t __attribute__((unused)); 231 + #ifdef __MigPackStructs 232 + #pragma pack(pop) 233 + #endif 234 + 235 + #ifdef __MigPackStructs 236 + #pragma pack(push, 4) 237 + #endif 238 + typedef struct { 239 + mach_msg_header_t Head; 240 + NDR_record_t NDR; 241 + kern_return_t RetCode; 242 + } __Reply__clock_alarm_t __attribute__((unused)); 243 + #ifdef __MigPackStructs 244 + #pragma pack(pop) 245 + #endif 246 + #endif /* !__Reply__clock_subsystem__defined */ 247 + 248 + /* union of all replies */ 249 + 250 + #ifndef __ReplyUnion__clock_subsystem__defined 251 + #define __ReplyUnion__clock_subsystem__defined 252 + union __ReplyUnion__clock_subsystem { 253 + __Reply__clock_get_time_t Reply_clock_get_time; 254 + __Reply__clock_get_attributes_t Reply_clock_get_attributes; 255 + __Reply__clock_alarm_t Reply_clock_alarm; 256 + }; 257 + #endif /* !__RequestUnion__clock_subsystem__defined */ 258 + 259 + #ifndef subsystem_to_name_map_clock 260 + #define subsystem_to_name_map_clock \ 261 + { "clock_get_time", 1000 },\ 262 + { "clock_get_attributes", 1001 },\ 263 + { "clock_alarm", 1002 } 264 + #endif 265 + 266 + #ifdef __AfterMigUserHeader 267 + __AfterMigUserHeader 268 + #endif /* __AfterMigUserHeader */ 269 + 270 + #endif /* _clock_user_ */
+224
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/clock_priv.h
··· 1 + #ifndef _clock_priv_user_ 2 + #define _clock_priv_user_ 3 + 4 + /* Module clock_priv */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef clock_priv_MSG_COUNT 77 + #define clock_priv_MSG_COUNT 2 78 + #endif /* clock_priv_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + #include <mach/mach_types.h> 85 + 86 + #ifdef __BeforeMigUserHeader 87 + __BeforeMigUserHeader 88 + #endif /* __BeforeMigUserHeader */ 89 + 90 + #include <sys/cdefs.h> 91 + __BEGIN_DECLS 92 + 93 + 94 + /* Routine clock_set_time */ 95 + #ifdef mig_external 96 + mig_external 97 + #else 98 + extern 99 + #endif /* mig_external */ 100 + kern_return_t clock_set_time 101 + ( 102 + clock_ctrl_t clock_ctrl, 103 + mach_timespec_t new_time 104 + ); 105 + 106 + /* Routine clock_set_attributes */ 107 + #ifdef mig_external 108 + mig_external 109 + #else 110 + extern 111 + #endif /* mig_external */ 112 + kern_return_t clock_set_attributes 113 + ( 114 + clock_ctrl_t clock_ctrl, 115 + clock_flavor_t flavor, 116 + clock_attr_t clock_attr, 117 + mach_msg_type_number_t clock_attrCnt 118 + ); 119 + 120 + __END_DECLS 121 + 122 + /********************** Caution **************************/ 123 + /* The following data types should be used to calculate */ 124 + /* maximum message sizes only. The actual message may be */ 125 + /* smaller, and the position of the arguments within the */ 126 + /* message layout may vary from what is presented here. */ 127 + /* For example, if any of the arguments are variable- */ 128 + /* sized, and less than the maximum is sent, the data */ 129 + /* will be packed tight in the actual message to reduce */ 130 + /* the presence of holes. */ 131 + /********************** Caution **************************/ 132 + 133 + /* typedefs for all requests */ 134 + 135 + #ifndef __Request__clock_priv_subsystem__defined 136 + #define __Request__clock_priv_subsystem__defined 137 + 138 + #ifdef __MigPackStructs 139 + #pragma pack(push, 4) 140 + #endif 141 + typedef struct { 142 + mach_msg_header_t Head; 143 + NDR_record_t NDR; 144 + mach_timespec_t new_time; 145 + } __Request__clock_set_time_t __attribute__((unused)); 146 + #ifdef __MigPackStructs 147 + #pragma pack(pop) 148 + #endif 149 + 150 + #ifdef __MigPackStructs 151 + #pragma pack(push, 4) 152 + #endif 153 + typedef struct { 154 + mach_msg_header_t Head; 155 + NDR_record_t NDR; 156 + clock_flavor_t flavor; 157 + mach_msg_type_number_t clock_attrCnt; 158 + int clock_attr[1]; 159 + } __Request__clock_set_attributes_t __attribute__((unused)); 160 + #ifdef __MigPackStructs 161 + #pragma pack(pop) 162 + #endif 163 + #endif /* !__Request__clock_priv_subsystem__defined */ 164 + 165 + /* union of all requests */ 166 + 167 + #ifndef __RequestUnion__clock_priv_subsystem__defined 168 + #define __RequestUnion__clock_priv_subsystem__defined 169 + union __RequestUnion__clock_priv_subsystem { 170 + __Request__clock_set_time_t Request_clock_set_time; 171 + __Request__clock_set_attributes_t Request_clock_set_attributes; 172 + }; 173 + #endif /* !__RequestUnion__clock_priv_subsystem__defined */ 174 + /* typedefs for all replies */ 175 + 176 + #ifndef __Reply__clock_priv_subsystem__defined 177 + #define __Reply__clock_priv_subsystem__defined 178 + 179 + #ifdef __MigPackStructs 180 + #pragma pack(push, 4) 181 + #endif 182 + typedef struct { 183 + mach_msg_header_t Head; 184 + NDR_record_t NDR; 185 + kern_return_t RetCode; 186 + } __Reply__clock_set_time_t __attribute__((unused)); 187 + #ifdef __MigPackStructs 188 + #pragma pack(pop) 189 + #endif 190 + 191 + #ifdef __MigPackStructs 192 + #pragma pack(push, 4) 193 + #endif 194 + typedef struct { 195 + mach_msg_header_t Head; 196 + NDR_record_t NDR; 197 + kern_return_t RetCode; 198 + } __Reply__clock_set_attributes_t __attribute__((unused)); 199 + #ifdef __MigPackStructs 200 + #pragma pack(pop) 201 + #endif 202 + #endif /* !__Reply__clock_priv_subsystem__defined */ 203 + 204 + /* union of all replies */ 205 + 206 + #ifndef __ReplyUnion__clock_priv_subsystem__defined 207 + #define __ReplyUnion__clock_priv_subsystem__defined 208 + union __ReplyUnion__clock_priv_subsystem { 209 + __Reply__clock_set_time_t Reply_clock_set_time; 210 + __Reply__clock_set_attributes_t Reply_clock_set_attributes; 211 + }; 212 + #endif /* !__RequestUnion__clock_priv_subsystem__defined */ 213 + 214 + #ifndef subsystem_to_name_map_clock_priv 215 + #define subsystem_to_name_map_clock_priv \ 216 + { "clock_set_time", 1200 },\ 217 + { "clock_set_attributes", 1201 } 218 + #endif 219 + 220 + #ifdef __AfterMigUserHeader 221 + __AfterMigUserHeader 222 + #endif /* __AfterMigUserHeader */ 223 + 224 + #endif /* _clock_priv_user_ */
+184
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/clock_reply.h
··· 1 + #ifndef _clock_reply_user_ 2 + #define _clock_reply_user_ 3 + 4 + /* Module clock_reply */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef clock_reply_MSG_COUNT 77 + #define clock_reply_MSG_COUNT 1 78 + #endif /* clock_reply_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mach_types.h> 83 + 84 + #ifdef __BeforeMigUserHeader 85 + __BeforeMigUserHeader 86 + #endif /* __BeforeMigUserHeader */ 87 + 88 + #include <sys/cdefs.h> 89 + __BEGIN_DECLS 90 + 91 + 92 + /* SimpleRoutine clock_alarm_reply */ 93 + #ifdef mig_external 94 + mig_external 95 + #else 96 + extern 97 + #endif /* mig_external */ 98 + kern_return_t clock_alarm_reply 99 + ( 100 + clock_reply_t alarm_port, 101 + mach_msg_type_name_t alarm_portPoly, 102 + kern_return_t alarm_code, 103 + alarm_type_t alarm_type, 104 + mach_timespec_t alarm_time 105 + ); 106 + 107 + __END_DECLS 108 + 109 + /********************** Caution **************************/ 110 + /* The following data types should be used to calculate */ 111 + /* maximum message sizes only. The actual message may be */ 112 + /* smaller, and the position of the arguments within the */ 113 + /* message layout may vary from what is presented here. */ 114 + /* For example, if any of the arguments are variable- */ 115 + /* sized, and less than the maximum is sent, the data */ 116 + /* will be packed tight in the actual message to reduce */ 117 + /* the presence of holes. */ 118 + /********************** Caution **************************/ 119 + 120 + /* typedefs for all requests */ 121 + 122 + #ifndef __Request__clock_reply_subsystem__defined 123 + #define __Request__clock_reply_subsystem__defined 124 + 125 + #ifdef __MigPackStructs 126 + #pragma pack(push, 4) 127 + #endif 128 + typedef struct { 129 + mach_msg_header_t Head; 130 + NDR_record_t NDR; 131 + kern_return_t alarm_code; 132 + alarm_type_t alarm_type; 133 + mach_timespec_t alarm_time; 134 + } __Request__clock_alarm_reply_t __attribute__((unused)); 135 + #ifdef __MigPackStructs 136 + #pragma pack(pop) 137 + #endif 138 + #endif /* !__Request__clock_reply_subsystem__defined */ 139 + 140 + /* union of all requests */ 141 + 142 + #ifndef __RequestUnion__clock_reply_subsystem__defined 143 + #define __RequestUnion__clock_reply_subsystem__defined 144 + union __RequestUnion__clock_reply_subsystem { 145 + __Request__clock_alarm_reply_t Request_clock_alarm_reply; 146 + }; 147 + #endif /* !__RequestUnion__clock_reply_subsystem__defined */ 148 + /* typedefs for all replies */ 149 + 150 + #ifndef __Reply__clock_reply_subsystem__defined 151 + #define __Reply__clock_reply_subsystem__defined 152 + 153 + #ifdef __MigPackStructs 154 + #pragma pack(push, 4) 155 + #endif 156 + typedef struct { 157 + mach_msg_header_t Head; 158 + NDR_record_t NDR; 159 + kern_return_t RetCode; 160 + } __Reply__clock_alarm_reply_t __attribute__((unused)); 161 + #ifdef __MigPackStructs 162 + #pragma pack(pop) 163 + #endif 164 + #endif /* !__Reply__clock_reply_subsystem__defined */ 165 + 166 + /* union of all replies */ 167 + 168 + #ifndef __ReplyUnion__clock_reply_subsystem__defined 169 + #define __ReplyUnion__clock_reply_subsystem__defined 170 + union __ReplyUnion__clock_reply_subsystem { 171 + __Reply__clock_alarm_reply_t Reply_clock_alarm_reply; 172 + }; 173 + #endif /* !__RequestUnion__clock_reply_subsystem__defined */ 174 + 175 + #ifndef subsystem_to_name_map_clock_reply 176 + #define subsystem_to_name_map_clock_reply \ 177 + { "clock_alarm_reply", 3125107 } 178 + #endif 179 + 180 + #ifdef __AfterMigUserHeader 181 + __AfterMigUserHeader 182 + #endif /* __AfterMigUserHeader */ 183 + 184 + #endif /* _clock_reply_user_ */
+306
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/exc.h
··· 1 + #ifndef _exc_user_ 2 + #define _exc_user_ 3 + 4 + /* Module exc */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef exc_MSG_COUNT 77 + #define exc_MSG_COUNT 3 78 + #endif /* exc_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + 85 + #ifdef __BeforeMigUserHeader 86 + __BeforeMigUserHeader 87 + #endif /* __BeforeMigUserHeader */ 88 + 89 + #include <sys/cdefs.h> 90 + __BEGIN_DECLS 91 + 92 + 93 + /* Routine exception_raise */ 94 + #ifdef mig_external 95 + mig_external 96 + #else 97 + extern 98 + #endif /* mig_external */ 99 + kern_return_t exception_raise 100 + ( 101 + mach_port_t exception_port, 102 + mach_port_t thread, 103 + mach_port_t task, 104 + exception_type_t exception, 105 + exception_data_t code, 106 + mach_msg_type_number_t codeCnt 107 + ); 108 + 109 + /* Routine exception_raise_state */ 110 + #ifdef mig_external 111 + mig_external 112 + #else 113 + extern 114 + #endif /* mig_external */ 115 + kern_return_t exception_raise_state 116 + ( 117 + mach_port_t exception_port, 118 + exception_type_t exception, 119 + const exception_data_t code, 120 + mach_msg_type_number_t codeCnt, 121 + int *flavor, 122 + const thread_state_t old_state, 123 + mach_msg_type_number_t old_stateCnt, 124 + thread_state_t new_state, 125 + mach_msg_type_number_t *new_stateCnt 126 + ); 127 + 128 + /* Routine exception_raise_state_identity */ 129 + #ifdef mig_external 130 + mig_external 131 + #else 132 + extern 133 + #endif /* mig_external */ 134 + kern_return_t exception_raise_state_identity 135 + ( 136 + mach_port_t exception_port, 137 + mach_port_t thread, 138 + mach_port_t task, 139 + exception_type_t exception, 140 + exception_data_t code, 141 + mach_msg_type_number_t codeCnt, 142 + int *flavor, 143 + thread_state_t old_state, 144 + mach_msg_type_number_t old_stateCnt, 145 + thread_state_t new_state, 146 + mach_msg_type_number_t *new_stateCnt 147 + ); 148 + 149 + __END_DECLS 150 + 151 + /********************** Caution **************************/ 152 + /* The following data types should be used to calculate */ 153 + /* maximum message sizes only. The actual message may be */ 154 + /* smaller, and the position of the arguments within the */ 155 + /* message layout may vary from what is presented here. */ 156 + /* For example, if any of the arguments are variable- */ 157 + /* sized, and less than the maximum is sent, the data */ 158 + /* will be packed tight in the actual message to reduce */ 159 + /* the presence of holes. */ 160 + /********************** Caution **************************/ 161 + 162 + /* typedefs for all requests */ 163 + 164 + #ifndef __Request__exc_subsystem__defined 165 + #define __Request__exc_subsystem__defined 166 + 167 + #ifdef __MigPackStructs 168 + #pragma pack(push, 4) 169 + #endif 170 + typedef struct { 171 + mach_msg_header_t Head; 172 + /* start of the kernel processed data */ 173 + mach_msg_body_t msgh_body; 174 + mach_msg_port_descriptor_t thread; 175 + mach_msg_port_descriptor_t task; 176 + /* end of the kernel processed data */ 177 + NDR_record_t NDR; 178 + exception_type_t exception; 179 + mach_msg_type_number_t codeCnt; 180 + integer_t code[2]; 181 + } __Request__exception_raise_t __attribute__((unused)); 182 + #ifdef __MigPackStructs 183 + #pragma pack(pop) 184 + #endif 185 + 186 + #ifdef __MigPackStructs 187 + #pragma pack(push, 4) 188 + #endif 189 + typedef struct { 190 + mach_msg_header_t Head; 191 + NDR_record_t NDR; 192 + exception_type_t exception; 193 + mach_msg_type_number_t codeCnt; 194 + integer_t code[2]; 195 + int flavor; 196 + mach_msg_type_number_t old_stateCnt; 197 + natural_t old_state[614]; 198 + } __Request__exception_raise_state_t __attribute__((unused)); 199 + #ifdef __MigPackStructs 200 + #pragma pack(pop) 201 + #endif 202 + 203 + #ifdef __MigPackStructs 204 + #pragma pack(push, 4) 205 + #endif 206 + typedef struct { 207 + mach_msg_header_t Head; 208 + /* start of the kernel processed data */ 209 + mach_msg_body_t msgh_body; 210 + mach_msg_port_descriptor_t thread; 211 + mach_msg_port_descriptor_t task; 212 + /* end of the kernel processed data */ 213 + NDR_record_t NDR; 214 + exception_type_t exception; 215 + mach_msg_type_number_t codeCnt; 216 + integer_t code[2]; 217 + int flavor; 218 + mach_msg_type_number_t old_stateCnt; 219 + natural_t old_state[614]; 220 + } __Request__exception_raise_state_identity_t __attribute__((unused)); 221 + #ifdef __MigPackStructs 222 + #pragma pack(pop) 223 + #endif 224 + #endif /* !__Request__exc_subsystem__defined */ 225 + 226 + /* union of all requests */ 227 + 228 + #ifndef __RequestUnion__exc_subsystem__defined 229 + #define __RequestUnion__exc_subsystem__defined 230 + union __RequestUnion__exc_subsystem { 231 + __Request__exception_raise_t Request_exception_raise; 232 + __Request__exception_raise_state_t Request_exception_raise_state; 233 + __Request__exception_raise_state_identity_t Request_exception_raise_state_identity; 234 + }; 235 + #endif /* !__RequestUnion__exc_subsystem__defined */ 236 + /* typedefs for all replies */ 237 + 238 + #ifndef __Reply__exc_subsystem__defined 239 + #define __Reply__exc_subsystem__defined 240 + 241 + #ifdef __MigPackStructs 242 + #pragma pack(push, 4) 243 + #endif 244 + typedef struct { 245 + mach_msg_header_t Head; 246 + NDR_record_t NDR; 247 + kern_return_t RetCode; 248 + } __Reply__exception_raise_t __attribute__((unused)); 249 + #ifdef __MigPackStructs 250 + #pragma pack(pop) 251 + #endif 252 + 253 + #ifdef __MigPackStructs 254 + #pragma pack(push, 4) 255 + #endif 256 + typedef struct { 257 + mach_msg_header_t Head; 258 + NDR_record_t NDR; 259 + kern_return_t RetCode; 260 + int flavor; 261 + mach_msg_type_number_t new_stateCnt; 262 + natural_t new_state[614]; 263 + } __Reply__exception_raise_state_t __attribute__((unused)); 264 + #ifdef __MigPackStructs 265 + #pragma pack(pop) 266 + #endif 267 + 268 + #ifdef __MigPackStructs 269 + #pragma pack(push, 4) 270 + #endif 271 + typedef struct { 272 + mach_msg_header_t Head; 273 + NDR_record_t NDR; 274 + kern_return_t RetCode; 275 + int flavor; 276 + mach_msg_type_number_t new_stateCnt; 277 + natural_t new_state[614]; 278 + } __Reply__exception_raise_state_identity_t __attribute__((unused)); 279 + #ifdef __MigPackStructs 280 + #pragma pack(pop) 281 + #endif 282 + #endif /* !__Reply__exc_subsystem__defined */ 283 + 284 + /* union of all replies */ 285 + 286 + #ifndef __ReplyUnion__exc_subsystem__defined 287 + #define __ReplyUnion__exc_subsystem__defined 288 + union __ReplyUnion__exc_subsystem { 289 + __Reply__exception_raise_t Reply_exception_raise; 290 + __Reply__exception_raise_state_t Reply_exception_raise_state; 291 + __Reply__exception_raise_state_identity_t Reply_exception_raise_state_identity; 292 + }; 293 + #endif /* !__RequestUnion__exc_subsystem__defined */ 294 + 295 + #ifndef subsystem_to_name_map_exc 296 + #define subsystem_to_name_map_exc \ 297 + { "exception_raise", 2401 },\ 298 + { "exception_raise_state", 2402 },\ 299 + { "exception_raise_state_identity", 2403 } 300 + #endif 301 + 302 + #ifdef __AfterMigUserHeader 303 + __AfterMigUserHeader 304 + #endif /* __AfterMigUserHeader */ 305 + 306 + #endif /* _exc_user_ */
+1188
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/host_priv.h
··· 1 + #ifndef _host_priv_user_ 2 + #define _host_priv_user_ 3 + 4 + /* Module host_priv */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef host_priv_MSG_COUNT 77 + #define host_priv_MSG_COUNT 26 78 + #endif /* host_priv_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + #include <mach/mach_types.h> 85 + #include <mach_debug/mach_debug_types.h> 86 + 87 + #ifdef __BeforeMigUserHeader 88 + __BeforeMigUserHeader 89 + #endif /* __BeforeMigUserHeader */ 90 + 91 + #include <sys/cdefs.h> 92 + __BEGIN_DECLS 93 + 94 + 95 + /* Routine host_get_boot_info */ 96 + #ifdef mig_external 97 + mig_external 98 + #else 99 + extern 100 + #endif /* mig_external */ 101 + kern_return_t host_get_boot_info 102 + ( 103 + host_priv_t host_priv, 104 + kernel_boot_info_t boot_info 105 + ); 106 + 107 + /* Routine host_reboot */ 108 + #ifdef mig_external 109 + mig_external 110 + #else 111 + extern 112 + #endif /* mig_external */ 113 + kern_return_t host_reboot 114 + ( 115 + host_priv_t host_priv, 116 + int options 117 + ); 118 + 119 + /* Routine host_priv_statistics */ 120 + #ifdef mig_external 121 + mig_external 122 + #else 123 + extern 124 + #endif /* mig_external */ 125 + kern_return_t host_priv_statistics 126 + ( 127 + host_priv_t host_priv, 128 + host_flavor_t flavor, 129 + host_info_t host_info_out, 130 + mach_msg_type_number_t *host_info_outCnt 131 + ); 132 + 133 + /* Routine host_default_memory_manager */ 134 + #ifdef mig_external 135 + mig_external 136 + #else 137 + extern 138 + #endif /* mig_external */ 139 + kern_return_t host_default_memory_manager 140 + ( 141 + host_priv_t host_priv, 142 + memory_object_default_t *default_manager, 143 + memory_object_cluster_size_t cluster_size 144 + ); 145 + 146 + /* Routine vm_wire */ 147 + #ifdef mig_external 148 + mig_external 149 + #else 150 + extern 151 + #endif /* mig_external */ 152 + kern_return_t vm_wire 153 + ( 154 + host_priv_t host_priv, 155 + vm_map_t task, 156 + vm_address_t address, 157 + vm_size_t size, 158 + vm_prot_t desired_access 159 + ); 160 + 161 + /* Routine thread_wire */ 162 + #ifdef mig_external 163 + mig_external 164 + #else 165 + extern 166 + #endif /* mig_external */ 167 + kern_return_t thread_wire 168 + ( 169 + host_priv_t host_priv, 170 + thread_act_t thread, 171 + boolean_t wired 172 + ); 173 + 174 + /* Routine vm_allocate_cpm */ 175 + #ifdef mig_external 176 + mig_external 177 + #else 178 + extern 179 + #endif /* mig_external */ 180 + kern_return_t vm_allocate_cpm 181 + ( 182 + host_priv_t host_priv, 183 + vm_map_t task, 184 + vm_address_t *address, 185 + vm_size_t size, 186 + int flags 187 + ); 188 + 189 + /* Routine host_processors */ 190 + #ifdef mig_external 191 + mig_external 192 + #else 193 + extern 194 + #endif /* mig_external */ 195 + kern_return_t host_processors 196 + ( 197 + host_priv_t host_priv, 198 + processor_array_t *out_processor_list, 199 + mach_msg_type_number_t *out_processor_listCnt 200 + ); 201 + 202 + /* Routine host_get_clock_control */ 203 + #ifdef mig_external 204 + mig_external 205 + #else 206 + extern 207 + #endif /* mig_external */ 208 + kern_return_t host_get_clock_control 209 + ( 210 + host_priv_t host_priv, 211 + clock_id_t clock_id, 212 + clock_ctrl_t *clock_ctrl 213 + ); 214 + 215 + /* Routine kmod_create */ 216 + #ifdef mig_external 217 + mig_external 218 + #else 219 + extern 220 + #endif /* mig_external */ 221 + kern_return_t kmod_create 222 + ( 223 + host_priv_t host_priv, 224 + vm_address_t info, 225 + kmod_t *module 226 + ); 227 + 228 + /* Routine kmod_destroy */ 229 + #ifdef mig_external 230 + mig_external 231 + #else 232 + extern 233 + #endif /* mig_external */ 234 + kern_return_t kmod_destroy 235 + ( 236 + host_priv_t host_priv, 237 + kmod_t module 238 + ); 239 + 240 + /* Routine kmod_control */ 241 + #ifdef mig_external 242 + mig_external 243 + #else 244 + extern 245 + #endif /* mig_external */ 246 + kern_return_t kmod_control 247 + ( 248 + host_priv_t host_priv, 249 + kmod_t module, 250 + kmod_control_flavor_t flavor, 251 + kmod_args_t *data, 252 + mach_msg_type_number_t *dataCnt 253 + ); 254 + 255 + /* Routine host_get_special_port */ 256 + #ifdef mig_external 257 + mig_external 258 + #else 259 + extern 260 + #endif /* mig_external */ 261 + kern_return_t host_get_special_port 262 + ( 263 + host_priv_t host_priv, 264 + int node, 265 + int which, 266 + mach_port_t *port 267 + ); 268 + 269 + /* Routine host_set_special_port */ 270 + #ifdef mig_external 271 + mig_external 272 + #else 273 + extern 274 + #endif /* mig_external */ 275 + kern_return_t host_set_special_port 276 + ( 277 + host_priv_t host_priv, 278 + int which, 279 + mach_port_t port 280 + ); 281 + 282 + /* Routine host_set_exception_ports */ 283 + #ifdef mig_external 284 + mig_external 285 + #else 286 + extern 287 + #endif /* mig_external */ 288 + kern_return_t host_set_exception_ports 289 + ( 290 + host_priv_t host_priv, 291 + exception_mask_t exception_mask, 292 + mach_port_t new_port, 293 + exception_behavior_t behavior, 294 + thread_state_flavor_t new_flavor 295 + ); 296 + 297 + /* Routine host_get_exception_ports */ 298 + #ifdef mig_external 299 + mig_external 300 + #else 301 + extern 302 + #endif /* mig_external */ 303 + kern_return_t host_get_exception_ports 304 + ( 305 + host_priv_t host_priv, 306 + exception_mask_t exception_mask, 307 + exception_mask_array_t masks, 308 + mach_msg_type_number_t *masksCnt, 309 + exception_handler_array_t old_handlers, 310 + exception_behavior_array_t old_behaviors, 311 + exception_flavor_array_t old_flavors 312 + ); 313 + 314 + /* Routine host_swap_exception_ports */ 315 + #ifdef mig_external 316 + mig_external 317 + #else 318 + extern 319 + #endif /* mig_external */ 320 + kern_return_t host_swap_exception_ports 321 + ( 322 + host_priv_t host_priv, 323 + exception_mask_t exception_mask, 324 + mach_port_t new_port, 325 + exception_behavior_t behavior, 326 + thread_state_flavor_t new_flavor, 327 + exception_mask_array_t masks, 328 + mach_msg_type_number_t *masksCnt, 329 + exception_handler_array_t old_handlerss, 330 + exception_behavior_array_t old_behaviors, 331 + exception_flavor_array_t old_flavors 332 + ); 333 + 334 + /* Routine mach_vm_wire */ 335 + #ifdef mig_external 336 + mig_external 337 + #else 338 + extern 339 + #endif /* mig_external */ 340 + kern_return_t mach_vm_wire 341 + ( 342 + host_priv_t host_priv, 343 + vm_map_t task, 344 + mach_vm_address_t address, 345 + mach_vm_size_t size, 346 + vm_prot_t desired_access 347 + ); 348 + 349 + /* Routine host_processor_sets */ 350 + #ifdef mig_external 351 + mig_external 352 + #else 353 + extern 354 + #endif /* mig_external */ 355 + kern_return_t host_processor_sets 356 + ( 357 + host_priv_t host_priv, 358 + processor_set_name_array_t *processor_sets, 359 + mach_msg_type_number_t *processor_setsCnt 360 + ); 361 + 362 + /* Routine host_processor_set_priv */ 363 + #ifdef mig_external 364 + mig_external 365 + #else 366 + extern 367 + #endif /* mig_external */ 368 + kern_return_t host_processor_set_priv 369 + ( 370 + host_priv_t host_priv, 371 + processor_set_name_t set_name, 372 + processor_set_t *set 373 + ); 374 + 375 + /* Routine host_set_UNDServer */ 376 + #ifdef mig_external 377 + mig_external 378 + #else 379 + extern 380 + #endif /* mig_external */ 381 + kern_return_t host_set_UNDServer 382 + ( 383 + host_priv_t host, 384 + UNDServerRef server 385 + ); 386 + 387 + /* Routine host_get_UNDServer */ 388 + #ifdef mig_external 389 + mig_external 390 + #else 391 + extern 392 + #endif /* mig_external */ 393 + kern_return_t host_get_UNDServer 394 + ( 395 + host_priv_t host, 396 + UNDServerRef *server 397 + ); 398 + 399 + /* Routine kext_request */ 400 + #ifdef mig_external 401 + mig_external 402 + #else 403 + extern 404 + #endif /* mig_external */ 405 + kern_return_t kext_request 406 + ( 407 + host_priv_t host_priv, 408 + uint32_t user_log_flags, 409 + vm_offset_t request_data, 410 + mach_msg_type_number_t request_dataCnt, 411 + vm_offset_t *response_data, 412 + mach_msg_type_number_t *response_dataCnt, 413 + vm_offset_t *log_data, 414 + mach_msg_type_number_t *log_dataCnt, 415 + kern_return_t *op_result 416 + ); 417 + 418 + __END_DECLS 419 + 420 + /********************** Caution **************************/ 421 + /* The following data types should be used to calculate */ 422 + /* maximum message sizes only. The actual message may be */ 423 + /* smaller, and the position of the arguments within the */ 424 + /* message layout may vary from what is presented here. */ 425 + /* For example, if any of the arguments are variable- */ 426 + /* sized, and less than the maximum is sent, the data */ 427 + /* will be packed tight in the actual message to reduce */ 428 + /* the presence of holes. */ 429 + /********************** Caution **************************/ 430 + 431 + /* typedefs for all requests */ 432 + 433 + #ifndef __Request__host_priv_subsystem__defined 434 + #define __Request__host_priv_subsystem__defined 435 + 436 + #ifdef __MigPackStructs 437 + #pragma pack(push, 4) 438 + #endif 439 + typedef struct { 440 + mach_msg_header_t Head; 441 + } __Request__host_get_boot_info_t __attribute__((unused)); 442 + #ifdef __MigPackStructs 443 + #pragma pack(pop) 444 + #endif 445 + 446 + #ifdef __MigPackStructs 447 + #pragma pack(push, 4) 448 + #endif 449 + typedef struct { 450 + mach_msg_header_t Head; 451 + NDR_record_t NDR; 452 + int options; 453 + } __Request__host_reboot_t __attribute__((unused)); 454 + #ifdef __MigPackStructs 455 + #pragma pack(pop) 456 + #endif 457 + 458 + #ifdef __MigPackStructs 459 + #pragma pack(push, 4) 460 + #endif 461 + typedef struct { 462 + mach_msg_header_t Head; 463 + NDR_record_t NDR; 464 + host_flavor_t flavor; 465 + mach_msg_type_number_t host_info_outCnt; 466 + } __Request__host_priv_statistics_t __attribute__((unused)); 467 + #ifdef __MigPackStructs 468 + #pragma pack(pop) 469 + #endif 470 + 471 + #ifdef __MigPackStructs 472 + #pragma pack(push, 4) 473 + #endif 474 + typedef struct { 475 + mach_msg_header_t Head; 476 + /* start of the kernel processed data */ 477 + mach_msg_body_t msgh_body; 478 + mach_msg_port_descriptor_t default_manager; 479 + /* end of the kernel processed data */ 480 + NDR_record_t NDR; 481 + memory_object_cluster_size_t cluster_size; 482 + } __Request__host_default_memory_manager_t __attribute__((unused)); 483 + #ifdef __MigPackStructs 484 + #pragma pack(pop) 485 + #endif 486 + 487 + #ifdef __MigPackStructs 488 + #pragma pack(push, 4) 489 + #endif 490 + typedef struct { 491 + mach_msg_header_t Head; 492 + /* start of the kernel processed data */ 493 + mach_msg_body_t msgh_body; 494 + mach_msg_port_descriptor_t task; 495 + /* end of the kernel processed data */ 496 + NDR_record_t NDR; 497 + vm_address_t address; 498 + vm_size_t size; 499 + vm_prot_t desired_access; 500 + } __Request__vm_wire_t __attribute__((unused)); 501 + #ifdef __MigPackStructs 502 + #pragma pack(pop) 503 + #endif 504 + 505 + #ifdef __MigPackStructs 506 + #pragma pack(push, 4) 507 + #endif 508 + typedef struct { 509 + mach_msg_header_t Head; 510 + /* start of the kernel processed data */ 511 + mach_msg_body_t msgh_body; 512 + mach_msg_port_descriptor_t thread; 513 + /* end of the kernel processed data */ 514 + NDR_record_t NDR; 515 + boolean_t wired; 516 + } __Request__thread_wire_t __attribute__((unused)); 517 + #ifdef __MigPackStructs 518 + #pragma pack(pop) 519 + #endif 520 + 521 + #ifdef __MigPackStructs 522 + #pragma pack(push, 4) 523 + #endif 524 + typedef struct { 525 + mach_msg_header_t Head; 526 + /* start of the kernel processed data */ 527 + mach_msg_body_t msgh_body; 528 + mach_msg_port_descriptor_t task; 529 + /* end of the kernel processed data */ 530 + NDR_record_t NDR; 531 + vm_address_t address; 532 + vm_size_t size; 533 + int flags; 534 + } __Request__vm_allocate_cpm_t __attribute__((unused)); 535 + #ifdef __MigPackStructs 536 + #pragma pack(pop) 537 + #endif 538 + 539 + #ifdef __MigPackStructs 540 + #pragma pack(push, 4) 541 + #endif 542 + typedef struct { 543 + mach_msg_header_t Head; 544 + } __Request__host_processors_t __attribute__((unused)); 545 + #ifdef __MigPackStructs 546 + #pragma pack(pop) 547 + #endif 548 + 549 + #ifdef __MigPackStructs 550 + #pragma pack(push, 4) 551 + #endif 552 + typedef struct { 553 + mach_msg_header_t Head; 554 + NDR_record_t NDR; 555 + clock_id_t clock_id; 556 + } __Request__host_get_clock_control_t __attribute__((unused)); 557 + #ifdef __MigPackStructs 558 + #pragma pack(pop) 559 + #endif 560 + 561 + #ifdef __MigPackStructs 562 + #pragma pack(push, 4) 563 + #endif 564 + typedef struct { 565 + mach_msg_header_t Head; 566 + NDR_record_t NDR; 567 + vm_address_t info; 568 + } __Request__kmod_create_t __attribute__((unused)); 569 + #ifdef __MigPackStructs 570 + #pragma pack(pop) 571 + #endif 572 + 573 + #ifdef __MigPackStructs 574 + #pragma pack(push, 4) 575 + #endif 576 + typedef struct { 577 + mach_msg_header_t Head; 578 + NDR_record_t NDR; 579 + kmod_t module; 580 + } __Request__kmod_destroy_t __attribute__((unused)); 581 + #ifdef __MigPackStructs 582 + #pragma pack(pop) 583 + #endif 584 + 585 + #ifdef __MigPackStructs 586 + #pragma pack(push, 4) 587 + #endif 588 + typedef struct { 589 + mach_msg_header_t Head; 590 + /* start of the kernel processed data */ 591 + mach_msg_body_t msgh_body; 592 + mach_msg_ool_descriptor_t data; 593 + /* end of the kernel processed data */ 594 + NDR_record_t NDR; 595 + kmod_t module; 596 + kmod_control_flavor_t flavor; 597 + mach_msg_type_number_t dataCnt; 598 + } __Request__kmod_control_t __attribute__((unused)); 599 + #ifdef __MigPackStructs 600 + #pragma pack(pop) 601 + #endif 602 + 603 + #ifdef __MigPackStructs 604 + #pragma pack(push, 4) 605 + #endif 606 + typedef struct { 607 + mach_msg_header_t Head; 608 + NDR_record_t NDR; 609 + int node; 610 + int which; 611 + } __Request__host_get_special_port_t __attribute__((unused)); 612 + #ifdef __MigPackStructs 613 + #pragma pack(pop) 614 + #endif 615 + 616 + #ifdef __MigPackStructs 617 + #pragma pack(push, 4) 618 + #endif 619 + typedef struct { 620 + mach_msg_header_t Head; 621 + /* start of the kernel processed data */ 622 + mach_msg_body_t msgh_body; 623 + mach_msg_port_descriptor_t port; 624 + /* end of the kernel processed data */ 625 + NDR_record_t NDR; 626 + int which; 627 + } __Request__host_set_special_port_t __attribute__((unused)); 628 + #ifdef __MigPackStructs 629 + #pragma pack(pop) 630 + #endif 631 + 632 + #ifdef __MigPackStructs 633 + #pragma pack(push, 4) 634 + #endif 635 + typedef struct { 636 + mach_msg_header_t Head; 637 + /* start of the kernel processed data */ 638 + mach_msg_body_t msgh_body; 639 + mach_msg_port_descriptor_t new_port; 640 + /* end of the kernel processed data */ 641 + NDR_record_t NDR; 642 + exception_mask_t exception_mask; 643 + exception_behavior_t behavior; 644 + thread_state_flavor_t new_flavor; 645 + } __Request__host_set_exception_ports_t __attribute__((unused)); 646 + #ifdef __MigPackStructs 647 + #pragma pack(pop) 648 + #endif 649 + 650 + #ifdef __MigPackStructs 651 + #pragma pack(push, 4) 652 + #endif 653 + typedef struct { 654 + mach_msg_header_t Head; 655 + NDR_record_t NDR; 656 + exception_mask_t exception_mask; 657 + } __Request__host_get_exception_ports_t __attribute__((unused)); 658 + #ifdef __MigPackStructs 659 + #pragma pack(pop) 660 + #endif 661 + 662 + #ifdef __MigPackStructs 663 + #pragma pack(push, 4) 664 + #endif 665 + typedef struct { 666 + mach_msg_header_t Head; 667 + /* start of the kernel processed data */ 668 + mach_msg_body_t msgh_body; 669 + mach_msg_port_descriptor_t new_port; 670 + /* end of the kernel processed data */ 671 + NDR_record_t NDR; 672 + exception_mask_t exception_mask; 673 + exception_behavior_t behavior; 674 + thread_state_flavor_t new_flavor; 675 + } __Request__host_swap_exception_ports_t __attribute__((unused)); 676 + #ifdef __MigPackStructs 677 + #pragma pack(pop) 678 + #endif 679 + 680 + #ifdef __MigPackStructs 681 + #pragma pack(push, 4) 682 + #endif 683 + typedef struct { 684 + mach_msg_header_t Head; 685 + /* start of the kernel processed data */ 686 + mach_msg_body_t msgh_body; 687 + mach_msg_port_descriptor_t task; 688 + /* end of the kernel processed data */ 689 + NDR_record_t NDR; 690 + mach_vm_address_t address; 691 + mach_vm_size_t size; 692 + vm_prot_t desired_access; 693 + } __Request__mach_vm_wire_t __attribute__((unused)); 694 + #ifdef __MigPackStructs 695 + #pragma pack(pop) 696 + #endif 697 + 698 + #ifdef __MigPackStructs 699 + #pragma pack(push, 4) 700 + #endif 701 + typedef struct { 702 + mach_msg_header_t Head; 703 + } __Request__host_processor_sets_t __attribute__((unused)); 704 + #ifdef __MigPackStructs 705 + #pragma pack(pop) 706 + #endif 707 + 708 + #ifdef __MigPackStructs 709 + #pragma pack(push, 4) 710 + #endif 711 + typedef struct { 712 + mach_msg_header_t Head; 713 + /* start of the kernel processed data */ 714 + mach_msg_body_t msgh_body; 715 + mach_msg_port_descriptor_t set_name; 716 + /* end of the kernel processed data */ 717 + } __Request__host_processor_set_priv_t __attribute__((unused)); 718 + #ifdef __MigPackStructs 719 + #pragma pack(pop) 720 + #endif 721 + 722 + #ifdef __MigPackStructs 723 + #pragma pack(push, 4) 724 + #endif 725 + typedef struct { 726 + mach_msg_header_t Head; 727 + /* start of the kernel processed data */ 728 + mach_msg_body_t msgh_body; 729 + mach_msg_port_descriptor_t server; 730 + /* end of the kernel processed data */ 731 + } __Request__host_set_UNDServer_t __attribute__((unused)); 732 + #ifdef __MigPackStructs 733 + #pragma pack(pop) 734 + #endif 735 + 736 + #ifdef __MigPackStructs 737 + #pragma pack(push, 4) 738 + #endif 739 + typedef struct { 740 + mach_msg_header_t Head; 741 + } __Request__host_get_UNDServer_t __attribute__((unused)); 742 + #ifdef __MigPackStructs 743 + #pragma pack(pop) 744 + #endif 745 + 746 + #ifdef __MigPackStructs 747 + #pragma pack(push, 4) 748 + #endif 749 + typedef struct { 750 + mach_msg_header_t Head; 751 + /* start of the kernel processed data */ 752 + mach_msg_body_t msgh_body; 753 + mach_msg_ool_descriptor_t request_data; 754 + /* end of the kernel processed data */ 755 + NDR_record_t NDR; 756 + uint32_t user_log_flags; 757 + mach_msg_type_number_t request_dataCnt; 758 + } __Request__kext_request_t __attribute__((unused)); 759 + #ifdef __MigPackStructs 760 + #pragma pack(pop) 761 + #endif 762 + #endif /* !__Request__host_priv_subsystem__defined */ 763 + 764 + /* union of all requests */ 765 + 766 + #ifndef __RequestUnion__host_priv_subsystem__defined 767 + #define __RequestUnion__host_priv_subsystem__defined 768 + union __RequestUnion__host_priv_subsystem { 769 + __Request__host_get_boot_info_t Request_host_get_boot_info; 770 + __Request__host_reboot_t Request_host_reboot; 771 + __Request__host_priv_statistics_t Request_host_priv_statistics; 772 + __Request__host_default_memory_manager_t Request_host_default_memory_manager; 773 + __Request__vm_wire_t Request_vm_wire; 774 + __Request__thread_wire_t Request_thread_wire; 775 + __Request__vm_allocate_cpm_t Request_vm_allocate_cpm; 776 + __Request__host_processors_t Request_host_processors; 777 + __Request__host_get_clock_control_t Request_host_get_clock_control; 778 + __Request__kmod_create_t Request_kmod_create; 779 + __Request__kmod_destroy_t Request_kmod_destroy; 780 + __Request__kmod_control_t Request_kmod_control; 781 + __Request__host_get_special_port_t Request_host_get_special_port; 782 + __Request__host_set_special_port_t Request_host_set_special_port; 783 + __Request__host_set_exception_ports_t Request_host_set_exception_ports; 784 + __Request__host_get_exception_ports_t Request_host_get_exception_ports; 785 + __Request__host_swap_exception_ports_t Request_host_swap_exception_ports; 786 + __Request__mach_vm_wire_t Request_mach_vm_wire; 787 + __Request__host_processor_sets_t Request_host_processor_sets; 788 + __Request__host_processor_set_priv_t Request_host_processor_set_priv; 789 + __Request__host_set_UNDServer_t Request_host_set_UNDServer; 790 + __Request__host_get_UNDServer_t Request_host_get_UNDServer; 791 + __Request__kext_request_t Request_kext_request; 792 + }; 793 + #endif /* !__RequestUnion__host_priv_subsystem__defined */ 794 + /* typedefs for all replies */ 795 + 796 + #ifndef __Reply__host_priv_subsystem__defined 797 + #define __Reply__host_priv_subsystem__defined 798 + 799 + #ifdef __MigPackStructs 800 + #pragma pack(push, 4) 801 + #endif 802 + typedef struct { 803 + mach_msg_header_t Head; 804 + NDR_record_t NDR; 805 + kern_return_t RetCode; 806 + mach_msg_type_number_t boot_infoOffset; /* MiG doesn't use it */ 807 + mach_msg_type_number_t boot_infoCnt; 808 + char boot_info[4096]; 809 + } __Reply__host_get_boot_info_t __attribute__((unused)); 810 + #ifdef __MigPackStructs 811 + #pragma pack(pop) 812 + #endif 813 + 814 + #ifdef __MigPackStructs 815 + #pragma pack(push, 4) 816 + #endif 817 + typedef struct { 818 + mach_msg_header_t Head; 819 + NDR_record_t NDR; 820 + kern_return_t RetCode; 821 + } __Reply__host_reboot_t __attribute__((unused)); 822 + #ifdef __MigPackStructs 823 + #pragma pack(pop) 824 + #endif 825 + 826 + #ifdef __MigPackStructs 827 + #pragma pack(push, 4) 828 + #endif 829 + typedef struct { 830 + mach_msg_header_t Head; 831 + NDR_record_t NDR; 832 + kern_return_t RetCode; 833 + mach_msg_type_number_t host_info_outCnt; 834 + integer_t host_info_out[68]; 835 + } __Reply__host_priv_statistics_t __attribute__((unused)); 836 + #ifdef __MigPackStructs 837 + #pragma pack(pop) 838 + #endif 839 + 840 + #ifdef __MigPackStructs 841 + #pragma pack(push, 4) 842 + #endif 843 + typedef struct { 844 + mach_msg_header_t Head; 845 + /* start of the kernel processed data */ 846 + mach_msg_body_t msgh_body; 847 + mach_msg_port_descriptor_t default_manager; 848 + /* end of the kernel processed data */ 849 + } __Reply__host_default_memory_manager_t __attribute__((unused)); 850 + #ifdef __MigPackStructs 851 + #pragma pack(pop) 852 + #endif 853 + 854 + #ifdef __MigPackStructs 855 + #pragma pack(push, 4) 856 + #endif 857 + typedef struct { 858 + mach_msg_header_t Head; 859 + NDR_record_t NDR; 860 + kern_return_t RetCode; 861 + } __Reply__vm_wire_t __attribute__((unused)); 862 + #ifdef __MigPackStructs 863 + #pragma pack(pop) 864 + #endif 865 + 866 + #ifdef __MigPackStructs 867 + #pragma pack(push, 4) 868 + #endif 869 + typedef struct { 870 + mach_msg_header_t Head; 871 + NDR_record_t NDR; 872 + kern_return_t RetCode; 873 + } __Reply__thread_wire_t __attribute__((unused)); 874 + #ifdef __MigPackStructs 875 + #pragma pack(pop) 876 + #endif 877 + 878 + #ifdef __MigPackStructs 879 + #pragma pack(push, 4) 880 + #endif 881 + typedef struct { 882 + mach_msg_header_t Head; 883 + NDR_record_t NDR; 884 + kern_return_t RetCode; 885 + vm_address_t address; 886 + } __Reply__vm_allocate_cpm_t __attribute__((unused)); 887 + #ifdef __MigPackStructs 888 + #pragma pack(pop) 889 + #endif 890 + 891 + #ifdef __MigPackStructs 892 + #pragma pack(push, 4) 893 + #endif 894 + typedef struct { 895 + mach_msg_header_t Head; 896 + /* start of the kernel processed data */ 897 + mach_msg_body_t msgh_body; 898 + mach_msg_ool_ports_descriptor_t out_processor_list; 899 + /* end of the kernel processed data */ 900 + NDR_record_t NDR; 901 + mach_msg_type_number_t out_processor_listCnt; 902 + } __Reply__host_processors_t __attribute__((unused)); 903 + #ifdef __MigPackStructs 904 + #pragma pack(pop) 905 + #endif 906 + 907 + #ifdef __MigPackStructs 908 + #pragma pack(push, 4) 909 + #endif 910 + typedef struct { 911 + mach_msg_header_t Head; 912 + /* start of the kernel processed data */ 913 + mach_msg_body_t msgh_body; 914 + mach_msg_port_descriptor_t clock_ctrl; 915 + /* end of the kernel processed data */ 916 + } __Reply__host_get_clock_control_t __attribute__((unused)); 917 + #ifdef __MigPackStructs 918 + #pragma pack(pop) 919 + #endif 920 + 921 + #ifdef __MigPackStructs 922 + #pragma pack(push, 4) 923 + #endif 924 + typedef struct { 925 + mach_msg_header_t Head; 926 + NDR_record_t NDR; 927 + kern_return_t RetCode; 928 + kmod_t module; 929 + } __Reply__kmod_create_t __attribute__((unused)); 930 + #ifdef __MigPackStructs 931 + #pragma pack(pop) 932 + #endif 933 + 934 + #ifdef __MigPackStructs 935 + #pragma pack(push, 4) 936 + #endif 937 + typedef struct { 938 + mach_msg_header_t Head; 939 + NDR_record_t NDR; 940 + kern_return_t RetCode; 941 + } __Reply__kmod_destroy_t __attribute__((unused)); 942 + #ifdef __MigPackStructs 943 + #pragma pack(pop) 944 + #endif 945 + 946 + #ifdef __MigPackStructs 947 + #pragma pack(push, 4) 948 + #endif 949 + typedef struct { 950 + mach_msg_header_t Head; 951 + /* start of the kernel processed data */ 952 + mach_msg_body_t msgh_body; 953 + mach_msg_ool_descriptor_t data; 954 + /* end of the kernel processed data */ 955 + NDR_record_t NDR; 956 + mach_msg_type_number_t dataCnt; 957 + } __Reply__kmod_control_t __attribute__((unused)); 958 + #ifdef __MigPackStructs 959 + #pragma pack(pop) 960 + #endif 961 + 962 + #ifdef __MigPackStructs 963 + #pragma pack(push, 4) 964 + #endif 965 + typedef struct { 966 + mach_msg_header_t Head; 967 + /* start of the kernel processed data */ 968 + mach_msg_body_t msgh_body; 969 + mach_msg_port_descriptor_t port; 970 + /* end of the kernel processed data */ 971 + } __Reply__host_get_special_port_t __attribute__((unused)); 972 + #ifdef __MigPackStructs 973 + #pragma pack(pop) 974 + #endif 975 + 976 + #ifdef __MigPackStructs 977 + #pragma pack(push, 4) 978 + #endif 979 + typedef struct { 980 + mach_msg_header_t Head; 981 + NDR_record_t NDR; 982 + kern_return_t RetCode; 983 + } __Reply__host_set_special_port_t __attribute__((unused)); 984 + #ifdef __MigPackStructs 985 + #pragma pack(pop) 986 + #endif 987 + 988 + #ifdef __MigPackStructs 989 + #pragma pack(push, 4) 990 + #endif 991 + typedef struct { 992 + mach_msg_header_t Head; 993 + NDR_record_t NDR; 994 + kern_return_t RetCode; 995 + } __Reply__host_set_exception_ports_t __attribute__((unused)); 996 + #ifdef __MigPackStructs 997 + #pragma pack(pop) 998 + #endif 999 + 1000 + #ifdef __MigPackStructs 1001 + #pragma pack(push, 4) 1002 + #endif 1003 + typedef struct { 1004 + mach_msg_header_t Head; 1005 + /* start of the kernel processed data */ 1006 + mach_msg_body_t msgh_body; 1007 + mach_msg_port_descriptor_t old_handlers[32]; 1008 + /* end of the kernel processed data */ 1009 + NDR_record_t NDR; 1010 + mach_msg_type_number_t masksCnt; 1011 + exception_mask_t masks[32]; 1012 + exception_behavior_t old_behaviors[32]; 1013 + thread_state_flavor_t old_flavors[32]; 1014 + } __Reply__host_get_exception_ports_t __attribute__((unused)); 1015 + #ifdef __MigPackStructs 1016 + #pragma pack(pop) 1017 + #endif 1018 + 1019 + #ifdef __MigPackStructs 1020 + #pragma pack(push, 4) 1021 + #endif 1022 + typedef struct { 1023 + mach_msg_header_t Head; 1024 + /* start of the kernel processed data */ 1025 + mach_msg_body_t msgh_body; 1026 + mach_msg_port_descriptor_t old_handlerss[32]; 1027 + /* end of the kernel processed data */ 1028 + NDR_record_t NDR; 1029 + mach_msg_type_number_t masksCnt; 1030 + exception_mask_t masks[32]; 1031 + exception_behavior_t old_behaviors[32]; 1032 + thread_state_flavor_t old_flavors[32]; 1033 + } __Reply__host_swap_exception_ports_t __attribute__((unused)); 1034 + #ifdef __MigPackStructs 1035 + #pragma pack(pop) 1036 + #endif 1037 + 1038 + #ifdef __MigPackStructs 1039 + #pragma pack(push, 4) 1040 + #endif 1041 + typedef struct { 1042 + mach_msg_header_t Head; 1043 + NDR_record_t NDR; 1044 + kern_return_t RetCode; 1045 + } __Reply__mach_vm_wire_t __attribute__((unused)); 1046 + #ifdef __MigPackStructs 1047 + #pragma pack(pop) 1048 + #endif 1049 + 1050 + #ifdef __MigPackStructs 1051 + #pragma pack(push, 4) 1052 + #endif 1053 + typedef struct { 1054 + mach_msg_header_t Head; 1055 + /* start of the kernel processed data */ 1056 + mach_msg_body_t msgh_body; 1057 + mach_msg_ool_ports_descriptor_t processor_sets; 1058 + /* end of the kernel processed data */ 1059 + NDR_record_t NDR; 1060 + mach_msg_type_number_t processor_setsCnt; 1061 + } __Reply__host_processor_sets_t __attribute__((unused)); 1062 + #ifdef __MigPackStructs 1063 + #pragma pack(pop) 1064 + #endif 1065 + 1066 + #ifdef __MigPackStructs 1067 + #pragma pack(push, 4) 1068 + #endif 1069 + typedef struct { 1070 + mach_msg_header_t Head; 1071 + /* start of the kernel processed data */ 1072 + mach_msg_body_t msgh_body; 1073 + mach_msg_port_descriptor_t set; 1074 + /* end of the kernel processed data */ 1075 + } __Reply__host_processor_set_priv_t __attribute__((unused)); 1076 + #ifdef __MigPackStructs 1077 + #pragma pack(pop) 1078 + #endif 1079 + 1080 + #ifdef __MigPackStructs 1081 + #pragma pack(push, 4) 1082 + #endif 1083 + typedef struct { 1084 + mach_msg_header_t Head; 1085 + NDR_record_t NDR; 1086 + kern_return_t RetCode; 1087 + } __Reply__host_set_UNDServer_t __attribute__((unused)); 1088 + #ifdef __MigPackStructs 1089 + #pragma pack(pop) 1090 + #endif 1091 + 1092 + #ifdef __MigPackStructs 1093 + #pragma pack(push, 4) 1094 + #endif 1095 + typedef struct { 1096 + mach_msg_header_t Head; 1097 + /* start of the kernel processed data */ 1098 + mach_msg_body_t msgh_body; 1099 + mach_msg_port_descriptor_t server; 1100 + /* end of the kernel processed data */ 1101 + } __Reply__host_get_UNDServer_t __attribute__((unused)); 1102 + #ifdef __MigPackStructs 1103 + #pragma pack(pop) 1104 + #endif 1105 + 1106 + #ifdef __MigPackStructs 1107 + #pragma pack(push, 4) 1108 + #endif 1109 + typedef struct { 1110 + mach_msg_header_t Head; 1111 + /* start of the kernel processed data */ 1112 + mach_msg_body_t msgh_body; 1113 + mach_msg_ool_descriptor_t response_data; 1114 + mach_msg_ool_descriptor_t log_data; 1115 + /* end of the kernel processed data */ 1116 + NDR_record_t NDR; 1117 + mach_msg_type_number_t response_dataCnt; 1118 + mach_msg_type_number_t log_dataCnt; 1119 + kern_return_t op_result; 1120 + } __Reply__kext_request_t __attribute__((unused)); 1121 + #ifdef __MigPackStructs 1122 + #pragma pack(pop) 1123 + #endif 1124 + #endif /* !__Reply__host_priv_subsystem__defined */ 1125 + 1126 + /* union of all replies */ 1127 + 1128 + #ifndef __ReplyUnion__host_priv_subsystem__defined 1129 + #define __ReplyUnion__host_priv_subsystem__defined 1130 + union __ReplyUnion__host_priv_subsystem { 1131 + __Reply__host_get_boot_info_t Reply_host_get_boot_info; 1132 + __Reply__host_reboot_t Reply_host_reboot; 1133 + __Reply__host_priv_statistics_t Reply_host_priv_statistics; 1134 + __Reply__host_default_memory_manager_t Reply_host_default_memory_manager; 1135 + __Reply__vm_wire_t Reply_vm_wire; 1136 + __Reply__thread_wire_t Reply_thread_wire; 1137 + __Reply__vm_allocate_cpm_t Reply_vm_allocate_cpm; 1138 + __Reply__host_processors_t Reply_host_processors; 1139 + __Reply__host_get_clock_control_t Reply_host_get_clock_control; 1140 + __Reply__kmod_create_t Reply_kmod_create; 1141 + __Reply__kmod_destroy_t Reply_kmod_destroy; 1142 + __Reply__kmod_control_t Reply_kmod_control; 1143 + __Reply__host_get_special_port_t Reply_host_get_special_port; 1144 + __Reply__host_set_special_port_t Reply_host_set_special_port; 1145 + __Reply__host_set_exception_ports_t Reply_host_set_exception_ports; 1146 + __Reply__host_get_exception_ports_t Reply_host_get_exception_ports; 1147 + __Reply__host_swap_exception_ports_t Reply_host_swap_exception_ports; 1148 + __Reply__mach_vm_wire_t Reply_mach_vm_wire; 1149 + __Reply__host_processor_sets_t Reply_host_processor_sets; 1150 + __Reply__host_processor_set_priv_t Reply_host_processor_set_priv; 1151 + __Reply__host_set_UNDServer_t Reply_host_set_UNDServer; 1152 + __Reply__host_get_UNDServer_t Reply_host_get_UNDServer; 1153 + __Reply__kext_request_t Reply_kext_request; 1154 + }; 1155 + #endif /* !__RequestUnion__host_priv_subsystem__defined */ 1156 + 1157 + #ifndef subsystem_to_name_map_host_priv 1158 + #define subsystem_to_name_map_host_priv \ 1159 + { "host_get_boot_info", 400 },\ 1160 + { "host_reboot", 401 },\ 1161 + { "host_priv_statistics", 402 },\ 1162 + { "host_default_memory_manager", 403 },\ 1163 + { "vm_wire", 404 },\ 1164 + { "thread_wire", 405 },\ 1165 + { "vm_allocate_cpm", 406 },\ 1166 + { "host_processors", 407 },\ 1167 + { "host_get_clock_control", 408 },\ 1168 + { "kmod_create", 409 },\ 1169 + { "kmod_destroy", 410 },\ 1170 + { "kmod_control", 411 },\ 1171 + { "host_get_special_port", 412 },\ 1172 + { "host_set_special_port", 413 },\ 1173 + { "host_set_exception_ports", 414 },\ 1174 + { "host_get_exception_ports", 415 },\ 1175 + { "host_swap_exception_ports", 416 },\ 1176 + { "mach_vm_wire", 418 },\ 1177 + { "host_processor_sets", 419 },\ 1178 + { "host_processor_set_priv", 420 },\ 1179 + { "host_set_UNDServer", 423 },\ 1180 + { "host_get_UNDServer", 424 },\ 1181 + { "kext_request", 425 } 1182 + #endif 1183 + 1184 + #ifdef __AfterMigUserHeader 1185 + __AfterMigUserHeader 1186 + #endif /* __AfterMigUserHeader */ 1187 + 1188 + #endif /* _host_priv_user_ */
+246
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/host_security.h
··· 1 + #ifndef _host_security_user_ 2 + #define _host_security_user_ 3 + 4 + /* Module host_security */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef host_security_MSG_COUNT 77 + #define host_security_MSG_COUNT 2 78 + #endif /* host_security_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + 85 + #ifdef __BeforeMigUserHeader 86 + __BeforeMigUserHeader 87 + #endif /* __BeforeMigUserHeader */ 88 + 89 + #include <sys/cdefs.h> 90 + __BEGIN_DECLS 91 + 92 + 93 + /* Routine host_security_create_task_token */ 94 + #ifdef mig_external 95 + mig_external 96 + #else 97 + extern 98 + #endif /* mig_external */ 99 + kern_return_t host_security_create_task_token 100 + ( 101 + host_security_t host_security, 102 + task_t parent_task, 103 + security_token_t sec_token, 104 + audit_token_t audit_token, 105 + host_t host, 106 + ledger_array_t ledgers, 107 + mach_msg_type_number_t ledgersCnt, 108 + boolean_t inherit_memory, 109 + task_t *child_task 110 + ); 111 + 112 + /* Routine host_security_set_task_token */ 113 + #ifdef mig_external 114 + mig_external 115 + #else 116 + extern 117 + #endif /* mig_external */ 118 + kern_return_t host_security_set_task_token 119 + ( 120 + host_security_t host_security, 121 + task_t target_task, 122 + security_token_t sec_token, 123 + audit_token_t audit_token, 124 + host_t host 125 + ); 126 + 127 + __END_DECLS 128 + 129 + /********************** Caution **************************/ 130 + /* The following data types should be used to calculate */ 131 + /* maximum message sizes only. The actual message may be */ 132 + /* smaller, and the position of the arguments within the */ 133 + /* message layout may vary from what is presented here. */ 134 + /* For example, if any of the arguments are variable- */ 135 + /* sized, and less than the maximum is sent, the data */ 136 + /* will be packed tight in the actual message to reduce */ 137 + /* the presence of holes. */ 138 + /********************** Caution **************************/ 139 + 140 + /* typedefs for all requests */ 141 + 142 + #ifndef __Request__host_security_subsystem__defined 143 + #define __Request__host_security_subsystem__defined 144 + 145 + #ifdef __MigPackStructs 146 + #pragma pack(push, 4) 147 + #endif 148 + typedef struct { 149 + mach_msg_header_t Head; 150 + /* start of the kernel processed data */ 151 + mach_msg_body_t msgh_body; 152 + mach_msg_port_descriptor_t parent_task; 153 + mach_msg_port_descriptor_t host; 154 + mach_msg_ool_ports_descriptor_t ledgers; 155 + /* end of the kernel processed data */ 156 + NDR_record_t NDR; 157 + security_token_t sec_token; 158 + audit_token_t audit_token; 159 + mach_msg_type_number_t ledgersCnt; 160 + boolean_t inherit_memory; 161 + } __Request__host_security_create_task_token_t __attribute__((unused)); 162 + #ifdef __MigPackStructs 163 + #pragma pack(pop) 164 + #endif 165 + 166 + #ifdef __MigPackStructs 167 + #pragma pack(push, 4) 168 + #endif 169 + typedef struct { 170 + mach_msg_header_t Head; 171 + /* start of the kernel processed data */ 172 + mach_msg_body_t msgh_body; 173 + mach_msg_port_descriptor_t target_task; 174 + mach_msg_port_descriptor_t host; 175 + /* end of the kernel processed data */ 176 + NDR_record_t NDR; 177 + security_token_t sec_token; 178 + audit_token_t audit_token; 179 + } __Request__host_security_set_task_token_t __attribute__((unused)); 180 + #ifdef __MigPackStructs 181 + #pragma pack(pop) 182 + #endif 183 + #endif /* !__Request__host_security_subsystem__defined */ 184 + 185 + /* union of all requests */ 186 + 187 + #ifndef __RequestUnion__host_security_subsystem__defined 188 + #define __RequestUnion__host_security_subsystem__defined 189 + union __RequestUnion__host_security_subsystem { 190 + __Request__host_security_create_task_token_t Request_host_security_create_task_token; 191 + __Request__host_security_set_task_token_t Request_host_security_set_task_token; 192 + }; 193 + #endif /* !__RequestUnion__host_security_subsystem__defined */ 194 + /* typedefs for all replies */ 195 + 196 + #ifndef __Reply__host_security_subsystem__defined 197 + #define __Reply__host_security_subsystem__defined 198 + 199 + #ifdef __MigPackStructs 200 + #pragma pack(push, 4) 201 + #endif 202 + typedef struct { 203 + mach_msg_header_t Head; 204 + /* start of the kernel processed data */ 205 + mach_msg_body_t msgh_body; 206 + mach_msg_port_descriptor_t child_task; 207 + /* end of the kernel processed data */ 208 + } __Reply__host_security_create_task_token_t __attribute__((unused)); 209 + #ifdef __MigPackStructs 210 + #pragma pack(pop) 211 + #endif 212 + 213 + #ifdef __MigPackStructs 214 + #pragma pack(push, 4) 215 + #endif 216 + typedef struct { 217 + mach_msg_header_t Head; 218 + NDR_record_t NDR; 219 + kern_return_t RetCode; 220 + } __Reply__host_security_set_task_token_t __attribute__((unused)); 221 + #ifdef __MigPackStructs 222 + #pragma pack(pop) 223 + #endif 224 + #endif /* !__Reply__host_security_subsystem__defined */ 225 + 226 + /* union of all replies */ 227 + 228 + #ifndef __ReplyUnion__host_security_subsystem__defined 229 + #define __ReplyUnion__host_security_subsystem__defined 230 + union __ReplyUnion__host_security_subsystem { 231 + __Reply__host_security_create_task_token_t Reply_host_security_create_task_token; 232 + __Reply__host_security_set_task_token_t Reply_host_security_set_task_token; 233 + }; 234 + #endif /* !__RequestUnion__host_security_subsystem__defined */ 235 + 236 + #ifndef subsystem_to_name_map_host_security 237 + #define subsystem_to_name_map_host_security \ 238 + { "host_security_create_task_token", 600 },\ 239 + { "host_security_set_task_token", 601 } 240 + #endif 241 + 242 + #ifdef __AfterMigUserHeader 243 + __AfterMigUserHeader 244 + #endif /* __AfterMigUserHeader */ 245 + 246 + #endif /* _host_security_user_ */
+375
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/lock_set.h
··· 1 + #ifndef _lock_set_user_ 2 + #define _lock_set_user_ 3 + 4 + /* Module lock_set */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef lock_set_MSG_COUNT 77 + #define lock_set_MSG_COUNT 6 78 + #endif /* lock_set_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + 85 + #ifdef __BeforeMigUserHeader 86 + __BeforeMigUserHeader 87 + #endif /* __BeforeMigUserHeader */ 88 + 89 + #include <sys/cdefs.h> 90 + __BEGIN_DECLS 91 + 92 + 93 + /* Routine lock_acquire */ 94 + #ifdef mig_external 95 + mig_external 96 + #else 97 + extern 98 + #endif /* mig_external */ 99 + kern_return_t lock_acquire 100 + ( 101 + lock_set_t lock_set, 102 + int lock_id 103 + ); 104 + 105 + /* Routine lock_release */ 106 + #ifdef mig_external 107 + mig_external 108 + #else 109 + extern 110 + #endif /* mig_external */ 111 + kern_return_t lock_release 112 + ( 113 + lock_set_t lock_set, 114 + int lock_id 115 + ); 116 + 117 + /* Routine lock_try */ 118 + #ifdef mig_external 119 + mig_external 120 + #else 121 + extern 122 + #endif /* mig_external */ 123 + kern_return_t lock_try 124 + ( 125 + lock_set_t lock_set, 126 + int lock_id 127 + ); 128 + 129 + /* Routine lock_make_stable */ 130 + #ifdef mig_external 131 + mig_external 132 + #else 133 + extern 134 + #endif /* mig_external */ 135 + kern_return_t lock_make_stable 136 + ( 137 + lock_set_t lock_set, 138 + int lock_id 139 + ); 140 + 141 + /* Routine lock_handoff */ 142 + #ifdef mig_external 143 + mig_external 144 + #else 145 + extern 146 + #endif /* mig_external */ 147 + kern_return_t lock_handoff 148 + ( 149 + lock_set_t lock_set, 150 + int lock_id 151 + ); 152 + 153 + /* Routine lock_handoff_accept */ 154 + #ifdef mig_external 155 + mig_external 156 + #else 157 + extern 158 + #endif /* mig_external */ 159 + kern_return_t lock_handoff_accept 160 + ( 161 + lock_set_t lock_set, 162 + int lock_id 163 + ); 164 + 165 + __END_DECLS 166 + 167 + /********************** Caution **************************/ 168 + /* The following data types should be used to calculate */ 169 + /* maximum message sizes only. The actual message may be */ 170 + /* smaller, and the position of the arguments within the */ 171 + /* message layout may vary from what is presented here. */ 172 + /* For example, if any of the arguments are variable- */ 173 + /* sized, and less than the maximum is sent, the data */ 174 + /* will be packed tight in the actual message to reduce */ 175 + /* the presence of holes. */ 176 + /********************** Caution **************************/ 177 + 178 + /* typedefs for all requests */ 179 + 180 + #ifndef __Request__lock_set_subsystem__defined 181 + #define __Request__lock_set_subsystem__defined 182 + 183 + #ifdef __MigPackStructs 184 + #pragma pack(push, 4) 185 + #endif 186 + typedef struct { 187 + mach_msg_header_t Head; 188 + NDR_record_t NDR; 189 + int lock_id; 190 + } __Request__lock_acquire_t __attribute__((unused)); 191 + #ifdef __MigPackStructs 192 + #pragma pack(pop) 193 + #endif 194 + 195 + #ifdef __MigPackStructs 196 + #pragma pack(push, 4) 197 + #endif 198 + typedef struct { 199 + mach_msg_header_t Head; 200 + NDR_record_t NDR; 201 + int lock_id; 202 + } __Request__lock_release_t __attribute__((unused)); 203 + #ifdef __MigPackStructs 204 + #pragma pack(pop) 205 + #endif 206 + 207 + #ifdef __MigPackStructs 208 + #pragma pack(push, 4) 209 + #endif 210 + typedef struct { 211 + mach_msg_header_t Head; 212 + NDR_record_t NDR; 213 + int lock_id; 214 + } __Request__lock_try_t __attribute__((unused)); 215 + #ifdef __MigPackStructs 216 + #pragma pack(pop) 217 + #endif 218 + 219 + #ifdef __MigPackStructs 220 + #pragma pack(push, 4) 221 + #endif 222 + typedef struct { 223 + mach_msg_header_t Head; 224 + NDR_record_t NDR; 225 + int lock_id; 226 + } __Request__lock_make_stable_t __attribute__((unused)); 227 + #ifdef __MigPackStructs 228 + #pragma pack(pop) 229 + #endif 230 + 231 + #ifdef __MigPackStructs 232 + #pragma pack(push, 4) 233 + #endif 234 + typedef struct { 235 + mach_msg_header_t Head; 236 + NDR_record_t NDR; 237 + int lock_id; 238 + } __Request__lock_handoff_t __attribute__((unused)); 239 + #ifdef __MigPackStructs 240 + #pragma pack(pop) 241 + #endif 242 + 243 + #ifdef __MigPackStructs 244 + #pragma pack(push, 4) 245 + #endif 246 + typedef struct { 247 + mach_msg_header_t Head; 248 + NDR_record_t NDR; 249 + int lock_id; 250 + } __Request__lock_handoff_accept_t __attribute__((unused)); 251 + #ifdef __MigPackStructs 252 + #pragma pack(pop) 253 + #endif 254 + #endif /* !__Request__lock_set_subsystem__defined */ 255 + 256 + /* union of all requests */ 257 + 258 + #ifndef __RequestUnion__lock_set_subsystem__defined 259 + #define __RequestUnion__lock_set_subsystem__defined 260 + union __RequestUnion__lock_set_subsystem { 261 + __Request__lock_acquire_t Request_lock_acquire; 262 + __Request__lock_release_t Request_lock_release; 263 + __Request__lock_try_t Request_lock_try; 264 + __Request__lock_make_stable_t Request_lock_make_stable; 265 + __Request__lock_handoff_t Request_lock_handoff; 266 + __Request__lock_handoff_accept_t Request_lock_handoff_accept; 267 + }; 268 + #endif /* !__RequestUnion__lock_set_subsystem__defined */ 269 + /* typedefs for all replies */ 270 + 271 + #ifndef __Reply__lock_set_subsystem__defined 272 + #define __Reply__lock_set_subsystem__defined 273 + 274 + #ifdef __MigPackStructs 275 + #pragma pack(push, 4) 276 + #endif 277 + typedef struct { 278 + mach_msg_header_t Head; 279 + NDR_record_t NDR; 280 + kern_return_t RetCode; 281 + } __Reply__lock_acquire_t __attribute__((unused)); 282 + #ifdef __MigPackStructs 283 + #pragma pack(pop) 284 + #endif 285 + 286 + #ifdef __MigPackStructs 287 + #pragma pack(push, 4) 288 + #endif 289 + typedef struct { 290 + mach_msg_header_t Head; 291 + NDR_record_t NDR; 292 + kern_return_t RetCode; 293 + } __Reply__lock_release_t __attribute__((unused)); 294 + #ifdef __MigPackStructs 295 + #pragma pack(pop) 296 + #endif 297 + 298 + #ifdef __MigPackStructs 299 + #pragma pack(push, 4) 300 + #endif 301 + typedef struct { 302 + mach_msg_header_t Head; 303 + NDR_record_t NDR; 304 + kern_return_t RetCode; 305 + } __Reply__lock_try_t __attribute__((unused)); 306 + #ifdef __MigPackStructs 307 + #pragma pack(pop) 308 + #endif 309 + 310 + #ifdef __MigPackStructs 311 + #pragma pack(push, 4) 312 + #endif 313 + typedef struct { 314 + mach_msg_header_t Head; 315 + NDR_record_t NDR; 316 + kern_return_t RetCode; 317 + } __Reply__lock_make_stable_t __attribute__((unused)); 318 + #ifdef __MigPackStructs 319 + #pragma pack(pop) 320 + #endif 321 + 322 + #ifdef __MigPackStructs 323 + #pragma pack(push, 4) 324 + #endif 325 + typedef struct { 326 + mach_msg_header_t Head; 327 + NDR_record_t NDR; 328 + kern_return_t RetCode; 329 + } __Reply__lock_handoff_t __attribute__((unused)); 330 + #ifdef __MigPackStructs 331 + #pragma pack(pop) 332 + #endif 333 + 334 + #ifdef __MigPackStructs 335 + #pragma pack(push, 4) 336 + #endif 337 + typedef struct { 338 + mach_msg_header_t Head; 339 + NDR_record_t NDR; 340 + kern_return_t RetCode; 341 + } __Reply__lock_handoff_accept_t __attribute__((unused)); 342 + #ifdef __MigPackStructs 343 + #pragma pack(pop) 344 + #endif 345 + #endif /* !__Reply__lock_set_subsystem__defined */ 346 + 347 + /* union of all replies */ 348 + 349 + #ifndef __ReplyUnion__lock_set_subsystem__defined 350 + #define __ReplyUnion__lock_set_subsystem__defined 351 + union __ReplyUnion__lock_set_subsystem { 352 + __Reply__lock_acquire_t Reply_lock_acquire; 353 + __Reply__lock_release_t Reply_lock_release; 354 + __Reply__lock_try_t Reply_lock_try; 355 + __Reply__lock_make_stable_t Reply_lock_make_stable; 356 + __Reply__lock_handoff_t Reply_lock_handoff; 357 + __Reply__lock_handoff_accept_t Reply_lock_handoff_accept; 358 + }; 359 + #endif /* !__RequestUnion__lock_set_subsystem__defined */ 360 + 361 + #ifndef subsystem_to_name_map_lock_set 362 + #define subsystem_to_name_map_lock_set \ 363 + { "lock_acquire", 617000 },\ 364 + { "lock_release", 617001 },\ 365 + { "lock_try", 617002 },\ 366 + { "lock_make_stable", 617003 },\ 367 + { "lock_handoff", 617004 },\ 368 + { "lock_handoff_accept", 617005 } 369 + #endif 370 + 371 + #ifdef __AfterMigUserHeader 372 + __AfterMigUserHeader 373 + #endif /* __AfterMigUserHeader */ 374 + 375 + #endif /* _lock_set_user_ */
+1469
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/mach_host.h
··· 1 + #ifndef _mach_host_user_ 2 + #define _mach_host_user_ 3 + 4 + /* Module mach_host */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef mach_host_MSG_COUNT 77 + #define mach_host_MSG_COUNT 35 78 + #endif /* mach_host_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + #include <mach/mach_types.h> 85 + #include <mach_debug/mach_debug_types.h> 86 + #include <mach/mach_init.h> 87 + 88 + #ifdef __BeforeMigUserHeader 89 + __BeforeMigUserHeader 90 + #endif /* __BeforeMigUserHeader */ 91 + 92 + #include <sys/cdefs.h> 93 + __BEGIN_DECLS 94 + 95 + 96 + /* Routine host_info */ 97 + #ifdef mig_external 98 + mig_external 99 + #else 100 + extern 101 + #endif /* mig_external */ 102 + kern_return_t host_info 103 + ( 104 + host_t host, 105 + host_flavor_t flavor, 106 + host_info_t host_info_out, 107 + mach_msg_type_number_t *host_info_outCnt 108 + ); 109 + 110 + /* Routine host_kernel_version */ 111 + #ifdef mig_external 112 + mig_external 113 + #else 114 + extern 115 + #endif /* mig_external */ 116 + kern_return_t host_kernel_version 117 + ( 118 + host_t host, 119 + kernel_version_t kernel_version 120 + ); 121 + 122 + /* Routine _host_page_size */ 123 + #ifdef mig_external 124 + mig_external 125 + #else 126 + extern 127 + #endif /* mig_external */ 128 + kern_return_t _host_page_size 129 + ( 130 + host_t host, 131 + vm_size_t *out_page_size 132 + ); 133 + 134 + /* Routine mach_memory_object_memory_entry */ 135 + #ifdef mig_external 136 + mig_external 137 + #else 138 + extern 139 + #endif /* mig_external */ 140 + kern_return_t mach_memory_object_memory_entry 141 + ( 142 + host_t host, 143 + boolean_t internal, 144 + vm_size_t size, 145 + vm_prot_t permission, 146 + memory_object_t pager, 147 + mach_port_t *entry_handle 148 + ); 149 + 150 + /* Routine host_processor_info */ 151 + #ifdef mig_external 152 + mig_external 153 + #else 154 + extern 155 + #endif /* mig_external */ 156 + kern_return_t host_processor_info 157 + ( 158 + host_t host, 159 + processor_flavor_t flavor, 160 + natural_t *out_processor_count, 161 + processor_info_array_t *out_processor_info, 162 + mach_msg_type_number_t *out_processor_infoCnt 163 + ); 164 + 165 + /* Routine host_get_io_master */ 166 + #ifdef mig_external 167 + mig_external 168 + #else 169 + extern 170 + #endif /* mig_external */ 171 + kern_return_t host_get_io_master 172 + ( 173 + host_t host, 174 + io_master_t *io_master 175 + ); 176 + 177 + /* Routine host_get_clock_service */ 178 + #ifdef mig_external 179 + mig_external 180 + #else 181 + extern 182 + #endif /* mig_external */ 183 + kern_return_t host_get_clock_service 184 + ( 185 + host_t host, 186 + clock_id_t clock_id, 187 + clock_serv_t *clock_serv 188 + ); 189 + 190 + /* Routine kmod_get_info */ 191 + #ifdef mig_external 192 + mig_external 193 + #else 194 + extern 195 + #endif /* mig_external */ 196 + kern_return_t kmod_get_info 197 + ( 198 + host_t host, 199 + kmod_args_t *modules, 200 + mach_msg_type_number_t *modulesCnt 201 + ); 202 + 203 + /* Routine host_virtual_physical_table_info */ 204 + #ifdef mig_external 205 + mig_external 206 + #else 207 + extern 208 + #endif /* mig_external */ 209 + kern_return_t host_virtual_physical_table_info 210 + ( 211 + host_t host, 212 + hash_info_bucket_array_t *info, 213 + mach_msg_type_number_t *infoCnt 214 + ); 215 + 216 + /* Routine processor_set_default */ 217 + #ifdef mig_external 218 + mig_external 219 + #else 220 + extern 221 + #endif /* mig_external */ 222 + kern_return_t processor_set_default 223 + ( 224 + host_t host, 225 + processor_set_name_t *default_set 226 + ); 227 + 228 + /* Routine processor_set_create */ 229 + #ifdef mig_external 230 + mig_external 231 + #else 232 + extern 233 + #endif /* mig_external */ 234 + kern_return_t processor_set_create 235 + ( 236 + host_t host, 237 + processor_set_t *new_set, 238 + processor_set_name_t *new_name 239 + ); 240 + 241 + /* Routine mach_memory_object_memory_entry_64 */ 242 + #ifdef mig_external 243 + mig_external 244 + #else 245 + extern 246 + #endif /* mig_external */ 247 + kern_return_t mach_memory_object_memory_entry_64 248 + ( 249 + host_t host, 250 + boolean_t internal, 251 + memory_object_size_t size, 252 + vm_prot_t permission, 253 + memory_object_t pager, 254 + mach_port_t *entry_handle 255 + ); 256 + 257 + /* Routine host_statistics */ 258 + #ifdef mig_external 259 + mig_external 260 + #else 261 + extern 262 + #endif /* mig_external */ 263 + kern_return_t host_statistics 264 + ( 265 + host_t host_priv, 266 + host_flavor_t flavor, 267 + host_info_t host_info_out, 268 + mach_msg_type_number_t *host_info_outCnt 269 + ); 270 + 271 + /* Routine host_request_notification */ 272 + #ifdef mig_external 273 + mig_external 274 + #else 275 + extern 276 + #endif /* mig_external */ 277 + kern_return_t host_request_notification 278 + ( 279 + host_t host, 280 + host_flavor_t notify_type, 281 + mach_port_t notify_port 282 + ); 283 + 284 + /* Routine host_lockgroup_info */ 285 + #ifdef mig_external 286 + mig_external 287 + #else 288 + extern 289 + #endif /* mig_external */ 290 + kern_return_t host_lockgroup_info 291 + ( 292 + host_t host, 293 + lockgroup_info_array_t *lockgroup_info, 294 + mach_msg_type_number_t *lockgroup_infoCnt 295 + ); 296 + 297 + /* Routine host_statistics64 */ 298 + #ifdef mig_external 299 + mig_external 300 + #else 301 + extern 302 + #endif /* mig_external */ 303 + kern_return_t host_statistics64 304 + ( 305 + host_t host_priv, 306 + host_flavor_t flavor, 307 + host_info64_t host_info64_out, 308 + mach_msg_type_number_t *host_info64_outCnt 309 + ); 310 + 311 + /* Routine mach_zone_info */ 312 + #ifdef mig_external 313 + mig_external 314 + #else 315 + extern 316 + #endif /* mig_external */ 317 + kern_return_t mach_zone_info 318 + ( 319 + host_priv_t host, 320 + mach_zone_name_array_t *names, 321 + mach_msg_type_number_t *namesCnt, 322 + mach_zone_info_array_t *info, 323 + mach_msg_type_number_t *infoCnt 324 + ); 325 + 326 + /* Routine mach_zone_force_gc */ 327 + #ifdef mig_external 328 + mig_external 329 + #else 330 + extern 331 + #endif /* mig_external */ 332 + kern_return_t mach_zone_force_gc 333 + ( 334 + host_t host 335 + ); 336 + 337 + /* Routine host_create_mach_voucher */ 338 + #ifdef mig_external 339 + mig_external 340 + #else 341 + extern 342 + #endif /* mig_external */ 343 + kern_return_t host_create_mach_voucher 344 + ( 345 + host_t host, 346 + mach_voucher_attr_raw_recipe_array_t recipes, 347 + mach_msg_type_number_t recipesCnt, 348 + ipc_voucher_t *voucher 349 + ); 350 + 351 + /* Routine host_register_mach_voucher_attr_manager */ 352 + #ifdef mig_external 353 + mig_external 354 + #else 355 + extern 356 + #endif /* mig_external */ 357 + kern_return_t host_register_mach_voucher_attr_manager 358 + ( 359 + host_t host, 360 + mach_voucher_attr_manager_t attr_manager, 361 + mach_voucher_attr_value_handle_t default_value, 362 + mach_voucher_attr_key_t *new_key, 363 + ipc_voucher_attr_control_t *new_attr_control 364 + ); 365 + 366 + /* Routine host_register_well_known_mach_voucher_attr_manager */ 367 + #ifdef mig_external 368 + mig_external 369 + #else 370 + extern 371 + #endif /* mig_external */ 372 + kern_return_t host_register_well_known_mach_voucher_attr_manager 373 + ( 374 + host_t host, 375 + mach_voucher_attr_manager_t attr_manager, 376 + mach_voucher_attr_value_handle_t default_value, 377 + mach_voucher_attr_key_t key, 378 + ipc_voucher_attr_control_t *new_attr_control 379 + ); 380 + 381 + /* Routine host_set_atm_diagnostic_flag */ 382 + #ifdef mig_external 383 + mig_external 384 + #else 385 + extern 386 + #endif /* mig_external */ 387 + kern_return_t host_set_atm_diagnostic_flag 388 + ( 389 + host_priv_t host_priv, 390 + uint32_t diagnostic_flag 391 + ); 392 + 393 + /* Routine host_get_atm_diagnostic_flag */ 394 + #ifdef mig_external 395 + mig_external 396 + #else 397 + extern 398 + #endif /* mig_external */ 399 + kern_return_t host_get_atm_diagnostic_flag 400 + ( 401 + host_t host, 402 + uint32_t *diagnostic_flag 403 + ); 404 + 405 + /* Routine mach_memory_info */ 406 + #ifdef mig_external 407 + mig_external 408 + #else 409 + extern 410 + #endif /* mig_external */ 411 + kern_return_t mach_memory_info 412 + ( 413 + host_priv_t host, 414 + mach_zone_name_array_t *names, 415 + mach_msg_type_number_t *namesCnt, 416 + mach_zone_info_array_t *info, 417 + mach_msg_type_number_t *infoCnt, 418 + mach_memory_info_array_t *memory_info, 419 + mach_msg_type_number_t *memory_infoCnt 420 + ); 421 + 422 + /* Routine host_set_multiuser_config_flags */ 423 + #ifdef mig_external 424 + mig_external 425 + #else 426 + extern 427 + #endif /* mig_external */ 428 + kern_return_t host_set_multiuser_config_flags 429 + ( 430 + host_priv_t host_priv, 431 + uint32_t multiuser_flags 432 + ); 433 + 434 + /* Routine host_get_multiuser_config_flags */ 435 + #ifdef mig_external 436 + mig_external 437 + #else 438 + extern 439 + #endif /* mig_external */ 440 + kern_return_t host_get_multiuser_config_flags 441 + ( 442 + host_t host, 443 + uint32_t *multiuser_flags 444 + ); 445 + 446 + /* Routine host_check_multiuser_mode */ 447 + #ifdef mig_external 448 + mig_external 449 + #else 450 + extern 451 + #endif /* mig_external */ 452 + kern_return_t host_check_multiuser_mode 453 + ( 454 + host_t host, 455 + uint32_t *multiuser_mode 456 + ); 457 + 458 + /* Routine mach_zone_info_for_zone */ 459 + #ifdef mig_external 460 + mig_external 461 + #else 462 + extern 463 + #endif /* mig_external */ 464 + kern_return_t mach_zone_info_for_zone 465 + ( 466 + host_priv_t host, 467 + mach_zone_name_t name, 468 + mach_zone_info_t *info 469 + ); 470 + 471 + /* Routine mach_zone_info_for_largest_zone */ 472 + #ifdef mig_external 473 + mig_external 474 + #else 475 + extern 476 + #endif /* mig_external */ 477 + kern_return_t mach_zone_info_for_largest_zone 478 + ( 479 + host_priv_t host, 480 + mach_zone_name_t *name, 481 + mach_zone_info_t *info 482 + ); 483 + 484 + /* Routine mach_zone_get_zlog_zones */ 485 + #ifdef mig_external 486 + mig_external 487 + #else 488 + extern 489 + #endif /* mig_external */ 490 + kern_return_t mach_zone_get_zlog_zones 491 + ( 492 + host_priv_t host, 493 + mach_zone_name_array_t *names, 494 + mach_msg_type_number_t *namesCnt 495 + ); 496 + 497 + /* Routine mach_zone_get_btlog_records */ 498 + #ifdef mig_external 499 + mig_external 500 + #else 501 + extern 502 + #endif /* mig_external */ 503 + kern_return_t mach_zone_get_btlog_records 504 + ( 505 + host_priv_t host, 506 + mach_zone_name_t name, 507 + zone_btrecord_array_t *recs, 508 + mach_msg_type_number_t *recsCnt 509 + ); 510 + 511 + __END_DECLS 512 + 513 + /********************** Caution **************************/ 514 + /* The following data types should be used to calculate */ 515 + /* maximum message sizes only. The actual message may be */ 516 + /* smaller, and the position of the arguments within the */ 517 + /* message layout may vary from what is presented here. */ 518 + /* For example, if any of the arguments are variable- */ 519 + /* sized, and less than the maximum is sent, the data */ 520 + /* will be packed tight in the actual message to reduce */ 521 + /* the presence of holes. */ 522 + /********************** Caution **************************/ 523 + 524 + /* typedefs for all requests */ 525 + 526 + #ifndef __Request__mach_host_subsystem__defined 527 + #define __Request__mach_host_subsystem__defined 528 + 529 + #ifdef __MigPackStructs 530 + #pragma pack(push, 4) 531 + #endif 532 + typedef struct { 533 + mach_msg_header_t Head; 534 + NDR_record_t NDR; 535 + host_flavor_t flavor; 536 + mach_msg_type_number_t host_info_outCnt; 537 + } __Request__host_info_t __attribute__((unused)); 538 + #ifdef __MigPackStructs 539 + #pragma pack(pop) 540 + #endif 541 + 542 + #ifdef __MigPackStructs 543 + #pragma pack(push, 4) 544 + #endif 545 + typedef struct { 546 + mach_msg_header_t Head; 547 + } __Request__host_kernel_version_t __attribute__((unused)); 548 + #ifdef __MigPackStructs 549 + #pragma pack(pop) 550 + #endif 551 + 552 + #ifdef __MigPackStructs 553 + #pragma pack(push, 4) 554 + #endif 555 + typedef struct { 556 + mach_msg_header_t Head; 557 + } __Request___host_page_size_t __attribute__((unused)); 558 + #ifdef __MigPackStructs 559 + #pragma pack(pop) 560 + #endif 561 + 562 + #ifdef __MigPackStructs 563 + #pragma pack(push, 4) 564 + #endif 565 + typedef struct { 566 + mach_msg_header_t Head; 567 + /* start of the kernel processed data */ 568 + mach_msg_body_t msgh_body; 569 + mach_msg_port_descriptor_t pager; 570 + /* end of the kernel processed data */ 571 + NDR_record_t NDR; 572 + boolean_t internal; 573 + vm_size_t size; 574 + vm_prot_t permission; 575 + } __Request__mach_memory_object_memory_entry_t __attribute__((unused)); 576 + #ifdef __MigPackStructs 577 + #pragma pack(pop) 578 + #endif 579 + 580 + #ifdef __MigPackStructs 581 + #pragma pack(push, 4) 582 + #endif 583 + typedef struct { 584 + mach_msg_header_t Head; 585 + NDR_record_t NDR; 586 + processor_flavor_t flavor; 587 + } __Request__host_processor_info_t __attribute__((unused)); 588 + #ifdef __MigPackStructs 589 + #pragma pack(pop) 590 + #endif 591 + 592 + #ifdef __MigPackStructs 593 + #pragma pack(push, 4) 594 + #endif 595 + typedef struct { 596 + mach_msg_header_t Head; 597 + } __Request__host_get_io_master_t __attribute__((unused)); 598 + #ifdef __MigPackStructs 599 + #pragma pack(pop) 600 + #endif 601 + 602 + #ifdef __MigPackStructs 603 + #pragma pack(push, 4) 604 + #endif 605 + typedef struct { 606 + mach_msg_header_t Head; 607 + NDR_record_t NDR; 608 + clock_id_t clock_id; 609 + } __Request__host_get_clock_service_t __attribute__((unused)); 610 + #ifdef __MigPackStructs 611 + #pragma pack(pop) 612 + #endif 613 + 614 + #ifdef __MigPackStructs 615 + #pragma pack(push, 4) 616 + #endif 617 + typedef struct { 618 + mach_msg_header_t Head; 619 + } __Request__kmod_get_info_t __attribute__((unused)); 620 + #ifdef __MigPackStructs 621 + #pragma pack(pop) 622 + #endif 623 + 624 + #ifdef __MigPackStructs 625 + #pragma pack(push, 4) 626 + #endif 627 + typedef struct { 628 + mach_msg_header_t Head; 629 + } __Request__host_virtual_physical_table_info_t __attribute__((unused)); 630 + #ifdef __MigPackStructs 631 + #pragma pack(pop) 632 + #endif 633 + 634 + #ifdef __MigPackStructs 635 + #pragma pack(push, 4) 636 + #endif 637 + typedef struct { 638 + mach_msg_header_t Head; 639 + } __Request__processor_set_default_t __attribute__((unused)); 640 + #ifdef __MigPackStructs 641 + #pragma pack(pop) 642 + #endif 643 + 644 + #ifdef __MigPackStructs 645 + #pragma pack(push, 4) 646 + #endif 647 + typedef struct { 648 + mach_msg_header_t Head; 649 + } __Request__processor_set_create_t __attribute__((unused)); 650 + #ifdef __MigPackStructs 651 + #pragma pack(pop) 652 + #endif 653 + 654 + #ifdef __MigPackStructs 655 + #pragma pack(push, 4) 656 + #endif 657 + typedef struct { 658 + mach_msg_header_t Head; 659 + /* start of the kernel processed data */ 660 + mach_msg_body_t msgh_body; 661 + mach_msg_port_descriptor_t pager; 662 + /* end of the kernel processed data */ 663 + NDR_record_t NDR; 664 + boolean_t internal; 665 + memory_object_size_t size; 666 + vm_prot_t permission; 667 + } __Request__mach_memory_object_memory_entry_64_t __attribute__((unused)); 668 + #ifdef __MigPackStructs 669 + #pragma pack(pop) 670 + #endif 671 + 672 + #ifdef __MigPackStructs 673 + #pragma pack(push, 4) 674 + #endif 675 + typedef struct { 676 + mach_msg_header_t Head; 677 + NDR_record_t NDR; 678 + host_flavor_t flavor; 679 + mach_msg_type_number_t host_info_outCnt; 680 + } __Request__host_statistics_t __attribute__((unused)); 681 + #ifdef __MigPackStructs 682 + #pragma pack(pop) 683 + #endif 684 + 685 + #ifdef __MigPackStructs 686 + #pragma pack(push, 4) 687 + #endif 688 + typedef struct { 689 + mach_msg_header_t Head; 690 + /* start of the kernel processed data */ 691 + mach_msg_body_t msgh_body; 692 + mach_msg_port_descriptor_t notify_port; 693 + /* end of the kernel processed data */ 694 + NDR_record_t NDR; 695 + host_flavor_t notify_type; 696 + } __Request__host_request_notification_t __attribute__((unused)); 697 + #ifdef __MigPackStructs 698 + #pragma pack(pop) 699 + #endif 700 + 701 + #ifdef __MigPackStructs 702 + #pragma pack(push, 4) 703 + #endif 704 + typedef struct { 705 + mach_msg_header_t Head; 706 + } __Request__host_lockgroup_info_t __attribute__((unused)); 707 + #ifdef __MigPackStructs 708 + #pragma pack(pop) 709 + #endif 710 + 711 + #ifdef __MigPackStructs 712 + #pragma pack(push, 4) 713 + #endif 714 + typedef struct { 715 + mach_msg_header_t Head; 716 + NDR_record_t NDR; 717 + host_flavor_t flavor; 718 + mach_msg_type_number_t host_info64_outCnt; 719 + } __Request__host_statistics64_t __attribute__((unused)); 720 + #ifdef __MigPackStructs 721 + #pragma pack(pop) 722 + #endif 723 + 724 + #ifdef __MigPackStructs 725 + #pragma pack(push, 4) 726 + #endif 727 + typedef struct { 728 + mach_msg_header_t Head; 729 + } __Request__mach_zone_info_t __attribute__((unused)); 730 + #ifdef __MigPackStructs 731 + #pragma pack(pop) 732 + #endif 733 + 734 + #ifdef __MigPackStructs 735 + #pragma pack(push, 4) 736 + #endif 737 + typedef struct { 738 + mach_msg_header_t Head; 739 + } __Request__mach_zone_force_gc_t __attribute__((unused)); 740 + #ifdef __MigPackStructs 741 + #pragma pack(pop) 742 + #endif 743 + 744 + #ifdef __MigPackStructs 745 + #pragma pack(push, 4) 746 + #endif 747 + typedef struct { 748 + mach_msg_header_t Head; 749 + NDR_record_t NDR; 750 + mach_msg_type_number_t recipesCnt; 751 + uint8_t recipes[5120]; 752 + } __Request__host_create_mach_voucher_t __attribute__((unused)); 753 + #ifdef __MigPackStructs 754 + #pragma pack(pop) 755 + #endif 756 + 757 + #ifdef __MigPackStructs 758 + #pragma pack(push, 4) 759 + #endif 760 + typedef struct { 761 + mach_msg_header_t Head; 762 + /* start of the kernel processed data */ 763 + mach_msg_body_t msgh_body; 764 + mach_msg_port_descriptor_t attr_manager; 765 + /* end of the kernel processed data */ 766 + NDR_record_t NDR; 767 + mach_voucher_attr_value_handle_t default_value; 768 + } __Request__host_register_mach_voucher_attr_manager_t __attribute__((unused)); 769 + #ifdef __MigPackStructs 770 + #pragma pack(pop) 771 + #endif 772 + 773 + #ifdef __MigPackStructs 774 + #pragma pack(push, 4) 775 + #endif 776 + typedef struct { 777 + mach_msg_header_t Head; 778 + /* start of the kernel processed data */ 779 + mach_msg_body_t msgh_body; 780 + mach_msg_port_descriptor_t attr_manager; 781 + /* end of the kernel processed data */ 782 + NDR_record_t NDR; 783 + mach_voucher_attr_value_handle_t default_value; 784 + mach_voucher_attr_key_t key; 785 + } __Request__host_register_well_known_mach_voucher_attr_manager_t __attribute__((unused)); 786 + #ifdef __MigPackStructs 787 + #pragma pack(pop) 788 + #endif 789 + 790 + #ifdef __MigPackStructs 791 + #pragma pack(push, 4) 792 + #endif 793 + typedef struct { 794 + mach_msg_header_t Head; 795 + NDR_record_t NDR; 796 + uint32_t diagnostic_flag; 797 + } __Request__host_set_atm_diagnostic_flag_t __attribute__((unused)); 798 + #ifdef __MigPackStructs 799 + #pragma pack(pop) 800 + #endif 801 + 802 + #ifdef __MigPackStructs 803 + #pragma pack(push, 4) 804 + #endif 805 + typedef struct { 806 + mach_msg_header_t Head; 807 + } __Request__host_get_atm_diagnostic_flag_t __attribute__((unused)); 808 + #ifdef __MigPackStructs 809 + #pragma pack(pop) 810 + #endif 811 + 812 + #ifdef __MigPackStructs 813 + #pragma pack(push, 4) 814 + #endif 815 + typedef struct { 816 + mach_msg_header_t Head; 817 + } __Request__mach_memory_info_t __attribute__((unused)); 818 + #ifdef __MigPackStructs 819 + #pragma pack(pop) 820 + #endif 821 + 822 + #ifdef __MigPackStructs 823 + #pragma pack(push, 4) 824 + #endif 825 + typedef struct { 826 + mach_msg_header_t Head; 827 + NDR_record_t NDR; 828 + uint32_t multiuser_flags; 829 + } __Request__host_set_multiuser_config_flags_t __attribute__((unused)); 830 + #ifdef __MigPackStructs 831 + #pragma pack(pop) 832 + #endif 833 + 834 + #ifdef __MigPackStructs 835 + #pragma pack(push, 4) 836 + #endif 837 + typedef struct { 838 + mach_msg_header_t Head; 839 + } __Request__host_get_multiuser_config_flags_t __attribute__((unused)); 840 + #ifdef __MigPackStructs 841 + #pragma pack(pop) 842 + #endif 843 + 844 + #ifdef __MigPackStructs 845 + #pragma pack(push, 4) 846 + #endif 847 + typedef struct { 848 + mach_msg_header_t Head; 849 + } __Request__host_check_multiuser_mode_t __attribute__((unused)); 850 + #ifdef __MigPackStructs 851 + #pragma pack(pop) 852 + #endif 853 + 854 + #ifdef __MigPackStructs 855 + #pragma pack(push, 4) 856 + #endif 857 + typedef struct { 858 + mach_msg_header_t Head; 859 + NDR_record_t NDR; 860 + mach_zone_name_t name; 861 + } __Request__mach_zone_info_for_zone_t __attribute__((unused)); 862 + #ifdef __MigPackStructs 863 + #pragma pack(pop) 864 + #endif 865 + 866 + #ifdef __MigPackStructs 867 + #pragma pack(push, 4) 868 + #endif 869 + typedef struct { 870 + mach_msg_header_t Head; 871 + } __Request__mach_zone_info_for_largest_zone_t __attribute__((unused)); 872 + #ifdef __MigPackStructs 873 + #pragma pack(pop) 874 + #endif 875 + 876 + #ifdef __MigPackStructs 877 + #pragma pack(push, 4) 878 + #endif 879 + typedef struct { 880 + mach_msg_header_t Head; 881 + } __Request__mach_zone_get_zlog_zones_t __attribute__((unused)); 882 + #ifdef __MigPackStructs 883 + #pragma pack(pop) 884 + #endif 885 + 886 + #ifdef __MigPackStructs 887 + #pragma pack(push, 4) 888 + #endif 889 + typedef struct { 890 + mach_msg_header_t Head; 891 + NDR_record_t NDR; 892 + mach_zone_name_t name; 893 + } __Request__mach_zone_get_btlog_records_t __attribute__((unused)); 894 + #ifdef __MigPackStructs 895 + #pragma pack(pop) 896 + #endif 897 + #endif /* !__Request__mach_host_subsystem__defined */ 898 + 899 + /* union of all requests */ 900 + 901 + #ifndef __RequestUnion__mach_host_subsystem__defined 902 + #define __RequestUnion__mach_host_subsystem__defined 903 + union __RequestUnion__mach_host_subsystem { 904 + __Request__host_info_t Request_host_info; 905 + __Request__host_kernel_version_t Request_host_kernel_version; 906 + __Request___host_page_size_t Request__host_page_size; 907 + __Request__mach_memory_object_memory_entry_t Request_mach_memory_object_memory_entry; 908 + __Request__host_processor_info_t Request_host_processor_info; 909 + __Request__host_get_io_master_t Request_host_get_io_master; 910 + __Request__host_get_clock_service_t Request_host_get_clock_service; 911 + __Request__kmod_get_info_t Request_kmod_get_info; 912 + __Request__host_virtual_physical_table_info_t Request_host_virtual_physical_table_info; 913 + __Request__processor_set_default_t Request_processor_set_default; 914 + __Request__processor_set_create_t Request_processor_set_create; 915 + __Request__mach_memory_object_memory_entry_64_t Request_mach_memory_object_memory_entry_64; 916 + __Request__host_statistics_t Request_host_statistics; 917 + __Request__host_request_notification_t Request_host_request_notification; 918 + __Request__host_lockgroup_info_t Request_host_lockgroup_info; 919 + __Request__host_statistics64_t Request_host_statistics64; 920 + __Request__mach_zone_info_t Request_mach_zone_info; 921 + __Request__mach_zone_force_gc_t Request_mach_zone_force_gc; 922 + __Request__host_create_mach_voucher_t Request_host_create_mach_voucher; 923 + __Request__host_register_mach_voucher_attr_manager_t Request_host_register_mach_voucher_attr_manager; 924 + __Request__host_register_well_known_mach_voucher_attr_manager_t Request_host_register_well_known_mach_voucher_attr_manager; 925 + __Request__host_set_atm_diagnostic_flag_t Request_host_set_atm_diagnostic_flag; 926 + __Request__host_get_atm_diagnostic_flag_t Request_host_get_atm_diagnostic_flag; 927 + __Request__mach_memory_info_t Request_mach_memory_info; 928 + __Request__host_set_multiuser_config_flags_t Request_host_set_multiuser_config_flags; 929 + __Request__host_get_multiuser_config_flags_t Request_host_get_multiuser_config_flags; 930 + __Request__host_check_multiuser_mode_t Request_host_check_multiuser_mode; 931 + __Request__mach_zone_info_for_zone_t Request_mach_zone_info_for_zone; 932 + __Request__mach_zone_info_for_largest_zone_t Request_mach_zone_info_for_largest_zone; 933 + __Request__mach_zone_get_zlog_zones_t Request_mach_zone_get_zlog_zones; 934 + __Request__mach_zone_get_btlog_records_t Request_mach_zone_get_btlog_records; 935 + }; 936 + #endif /* !__RequestUnion__mach_host_subsystem__defined */ 937 + /* typedefs for all replies */ 938 + 939 + #ifndef __Reply__mach_host_subsystem__defined 940 + #define __Reply__mach_host_subsystem__defined 941 + 942 + #ifdef __MigPackStructs 943 + #pragma pack(push, 4) 944 + #endif 945 + typedef struct { 946 + mach_msg_header_t Head; 947 + NDR_record_t NDR; 948 + kern_return_t RetCode; 949 + mach_msg_type_number_t host_info_outCnt; 950 + integer_t host_info_out[68]; 951 + } __Reply__host_info_t __attribute__((unused)); 952 + #ifdef __MigPackStructs 953 + #pragma pack(pop) 954 + #endif 955 + 956 + #ifdef __MigPackStructs 957 + #pragma pack(push, 4) 958 + #endif 959 + typedef struct { 960 + mach_msg_header_t Head; 961 + NDR_record_t NDR; 962 + kern_return_t RetCode; 963 + mach_msg_type_number_t kernel_versionOffset; /* MiG doesn't use it */ 964 + mach_msg_type_number_t kernel_versionCnt; 965 + char kernel_version[512]; 966 + } __Reply__host_kernel_version_t __attribute__((unused)); 967 + #ifdef __MigPackStructs 968 + #pragma pack(pop) 969 + #endif 970 + 971 + #ifdef __MigPackStructs 972 + #pragma pack(push, 4) 973 + #endif 974 + typedef struct { 975 + mach_msg_header_t Head; 976 + NDR_record_t NDR; 977 + kern_return_t RetCode; 978 + vm_size_t out_page_size; 979 + } __Reply___host_page_size_t __attribute__((unused)); 980 + #ifdef __MigPackStructs 981 + #pragma pack(pop) 982 + #endif 983 + 984 + #ifdef __MigPackStructs 985 + #pragma pack(push, 4) 986 + #endif 987 + typedef struct { 988 + mach_msg_header_t Head; 989 + /* start of the kernel processed data */ 990 + mach_msg_body_t msgh_body; 991 + mach_msg_port_descriptor_t entry_handle; 992 + /* end of the kernel processed data */ 993 + } __Reply__mach_memory_object_memory_entry_t __attribute__((unused)); 994 + #ifdef __MigPackStructs 995 + #pragma pack(pop) 996 + #endif 997 + 998 + #ifdef __MigPackStructs 999 + #pragma pack(push, 4) 1000 + #endif 1001 + typedef struct { 1002 + mach_msg_header_t Head; 1003 + /* start of the kernel processed data */ 1004 + mach_msg_body_t msgh_body; 1005 + mach_msg_ool_descriptor_t out_processor_info; 1006 + /* end of the kernel processed data */ 1007 + NDR_record_t NDR; 1008 + natural_t out_processor_count; 1009 + mach_msg_type_number_t out_processor_infoCnt; 1010 + } __Reply__host_processor_info_t __attribute__((unused)); 1011 + #ifdef __MigPackStructs 1012 + #pragma pack(pop) 1013 + #endif 1014 + 1015 + #ifdef __MigPackStructs 1016 + #pragma pack(push, 4) 1017 + #endif 1018 + typedef struct { 1019 + mach_msg_header_t Head; 1020 + /* start of the kernel processed data */ 1021 + mach_msg_body_t msgh_body; 1022 + mach_msg_port_descriptor_t io_master; 1023 + /* end of the kernel processed data */ 1024 + } __Reply__host_get_io_master_t __attribute__((unused)); 1025 + #ifdef __MigPackStructs 1026 + #pragma pack(pop) 1027 + #endif 1028 + 1029 + #ifdef __MigPackStructs 1030 + #pragma pack(push, 4) 1031 + #endif 1032 + typedef struct { 1033 + mach_msg_header_t Head; 1034 + /* start of the kernel processed data */ 1035 + mach_msg_body_t msgh_body; 1036 + mach_msg_port_descriptor_t clock_serv; 1037 + /* end of the kernel processed data */ 1038 + } __Reply__host_get_clock_service_t __attribute__((unused)); 1039 + #ifdef __MigPackStructs 1040 + #pragma pack(pop) 1041 + #endif 1042 + 1043 + #ifdef __MigPackStructs 1044 + #pragma pack(push, 4) 1045 + #endif 1046 + typedef struct { 1047 + mach_msg_header_t Head; 1048 + /* start of the kernel processed data */ 1049 + mach_msg_body_t msgh_body; 1050 + mach_msg_ool_descriptor_t modules; 1051 + /* end of the kernel processed data */ 1052 + NDR_record_t NDR; 1053 + mach_msg_type_number_t modulesCnt; 1054 + } __Reply__kmod_get_info_t __attribute__((unused)); 1055 + #ifdef __MigPackStructs 1056 + #pragma pack(pop) 1057 + #endif 1058 + 1059 + #ifdef __MigPackStructs 1060 + #pragma pack(push, 4) 1061 + #endif 1062 + typedef struct { 1063 + mach_msg_header_t Head; 1064 + /* start of the kernel processed data */ 1065 + mach_msg_body_t msgh_body; 1066 + mach_msg_ool_descriptor_t info; 1067 + /* end of the kernel processed data */ 1068 + NDR_record_t NDR; 1069 + mach_msg_type_number_t infoCnt; 1070 + } __Reply__host_virtual_physical_table_info_t __attribute__((unused)); 1071 + #ifdef __MigPackStructs 1072 + #pragma pack(pop) 1073 + #endif 1074 + 1075 + #ifdef __MigPackStructs 1076 + #pragma pack(push, 4) 1077 + #endif 1078 + typedef struct { 1079 + mach_msg_header_t Head; 1080 + /* start of the kernel processed data */ 1081 + mach_msg_body_t msgh_body; 1082 + mach_msg_port_descriptor_t default_set; 1083 + /* end of the kernel processed data */ 1084 + } __Reply__processor_set_default_t __attribute__((unused)); 1085 + #ifdef __MigPackStructs 1086 + #pragma pack(pop) 1087 + #endif 1088 + 1089 + #ifdef __MigPackStructs 1090 + #pragma pack(push, 4) 1091 + #endif 1092 + typedef struct { 1093 + mach_msg_header_t Head; 1094 + /* start of the kernel processed data */ 1095 + mach_msg_body_t msgh_body; 1096 + mach_msg_port_descriptor_t new_set; 1097 + mach_msg_port_descriptor_t new_name; 1098 + /* end of the kernel processed data */ 1099 + } __Reply__processor_set_create_t __attribute__((unused)); 1100 + #ifdef __MigPackStructs 1101 + #pragma pack(pop) 1102 + #endif 1103 + 1104 + #ifdef __MigPackStructs 1105 + #pragma pack(push, 4) 1106 + #endif 1107 + typedef struct { 1108 + mach_msg_header_t Head; 1109 + /* start of the kernel processed data */ 1110 + mach_msg_body_t msgh_body; 1111 + mach_msg_port_descriptor_t entry_handle; 1112 + /* end of the kernel processed data */ 1113 + } __Reply__mach_memory_object_memory_entry_64_t __attribute__((unused)); 1114 + #ifdef __MigPackStructs 1115 + #pragma pack(pop) 1116 + #endif 1117 + 1118 + #ifdef __MigPackStructs 1119 + #pragma pack(push, 4) 1120 + #endif 1121 + typedef struct { 1122 + mach_msg_header_t Head; 1123 + NDR_record_t NDR; 1124 + kern_return_t RetCode; 1125 + mach_msg_type_number_t host_info_outCnt; 1126 + integer_t host_info_out[68]; 1127 + } __Reply__host_statistics_t __attribute__((unused)); 1128 + #ifdef __MigPackStructs 1129 + #pragma pack(pop) 1130 + #endif 1131 + 1132 + #ifdef __MigPackStructs 1133 + #pragma pack(push, 4) 1134 + #endif 1135 + typedef struct { 1136 + mach_msg_header_t Head; 1137 + NDR_record_t NDR; 1138 + kern_return_t RetCode; 1139 + } __Reply__host_request_notification_t __attribute__((unused)); 1140 + #ifdef __MigPackStructs 1141 + #pragma pack(pop) 1142 + #endif 1143 + 1144 + #ifdef __MigPackStructs 1145 + #pragma pack(push, 4) 1146 + #endif 1147 + typedef struct { 1148 + mach_msg_header_t Head; 1149 + /* start of the kernel processed data */ 1150 + mach_msg_body_t msgh_body; 1151 + mach_msg_ool_descriptor_t lockgroup_info; 1152 + /* end of the kernel processed data */ 1153 + NDR_record_t NDR; 1154 + mach_msg_type_number_t lockgroup_infoCnt; 1155 + } __Reply__host_lockgroup_info_t __attribute__((unused)); 1156 + #ifdef __MigPackStructs 1157 + #pragma pack(pop) 1158 + #endif 1159 + 1160 + #ifdef __MigPackStructs 1161 + #pragma pack(push, 4) 1162 + #endif 1163 + typedef struct { 1164 + mach_msg_header_t Head; 1165 + NDR_record_t NDR; 1166 + kern_return_t RetCode; 1167 + mach_msg_type_number_t host_info64_outCnt; 1168 + integer_t host_info64_out[256]; 1169 + } __Reply__host_statistics64_t __attribute__((unused)); 1170 + #ifdef __MigPackStructs 1171 + #pragma pack(pop) 1172 + #endif 1173 + 1174 + #ifdef __MigPackStructs 1175 + #pragma pack(push, 4) 1176 + #endif 1177 + typedef struct { 1178 + mach_msg_header_t Head; 1179 + /* start of the kernel processed data */ 1180 + mach_msg_body_t msgh_body; 1181 + mach_msg_ool_descriptor_t names; 1182 + mach_msg_ool_descriptor_t info; 1183 + /* end of the kernel processed data */ 1184 + NDR_record_t NDR; 1185 + mach_msg_type_number_t namesCnt; 1186 + mach_msg_type_number_t infoCnt; 1187 + } __Reply__mach_zone_info_t __attribute__((unused)); 1188 + #ifdef __MigPackStructs 1189 + #pragma pack(pop) 1190 + #endif 1191 + 1192 + #ifdef __MigPackStructs 1193 + #pragma pack(push, 4) 1194 + #endif 1195 + typedef struct { 1196 + mach_msg_header_t Head; 1197 + NDR_record_t NDR; 1198 + kern_return_t RetCode; 1199 + } __Reply__mach_zone_force_gc_t __attribute__((unused)); 1200 + #ifdef __MigPackStructs 1201 + #pragma pack(pop) 1202 + #endif 1203 + 1204 + #ifdef __MigPackStructs 1205 + #pragma pack(push, 4) 1206 + #endif 1207 + typedef struct { 1208 + mach_msg_header_t Head; 1209 + /* start of the kernel processed data */ 1210 + mach_msg_body_t msgh_body; 1211 + mach_msg_port_descriptor_t voucher; 1212 + /* end of the kernel processed data */ 1213 + } __Reply__host_create_mach_voucher_t __attribute__((unused)); 1214 + #ifdef __MigPackStructs 1215 + #pragma pack(pop) 1216 + #endif 1217 + 1218 + #ifdef __MigPackStructs 1219 + #pragma pack(push, 4) 1220 + #endif 1221 + typedef struct { 1222 + mach_msg_header_t Head; 1223 + /* start of the kernel processed data */ 1224 + mach_msg_body_t msgh_body; 1225 + mach_msg_port_descriptor_t new_attr_control; 1226 + /* end of the kernel processed data */ 1227 + NDR_record_t NDR; 1228 + mach_voucher_attr_key_t new_key; 1229 + } __Reply__host_register_mach_voucher_attr_manager_t __attribute__((unused)); 1230 + #ifdef __MigPackStructs 1231 + #pragma pack(pop) 1232 + #endif 1233 + 1234 + #ifdef __MigPackStructs 1235 + #pragma pack(push, 4) 1236 + #endif 1237 + typedef struct { 1238 + mach_msg_header_t Head; 1239 + /* start of the kernel processed data */ 1240 + mach_msg_body_t msgh_body; 1241 + mach_msg_port_descriptor_t new_attr_control; 1242 + /* end of the kernel processed data */ 1243 + } __Reply__host_register_well_known_mach_voucher_attr_manager_t __attribute__((unused)); 1244 + #ifdef __MigPackStructs 1245 + #pragma pack(pop) 1246 + #endif 1247 + 1248 + #ifdef __MigPackStructs 1249 + #pragma pack(push, 4) 1250 + #endif 1251 + typedef struct { 1252 + mach_msg_header_t Head; 1253 + NDR_record_t NDR; 1254 + kern_return_t RetCode; 1255 + } __Reply__host_set_atm_diagnostic_flag_t __attribute__((unused)); 1256 + #ifdef __MigPackStructs 1257 + #pragma pack(pop) 1258 + #endif 1259 + 1260 + #ifdef __MigPackStructs 1261 + #pragma pack(push, 4) 1262 + #endif 1263 + typedef struct { 1264 + mach_msg_header_t Head; 1265 + NDR_record_t NDR; 1266 + kern_return_t RetCode; 1267 + uint32_t diagnostic_flag; 1268 + } __Reply__host_get_atm_diagnostic_flag_t __attribute__((unused)); 1269 + #ifdef __MigPackStructs 1270 + #pragma pack(pop) 1271 + #endif 1272 + 1273 + #ifdef __MigPackStructs 1274 + #pragma pack(push, 4) 1275 + #endif 1276 + typedef struct { 1277 + mach_msg_header_t Head; 1278 + /* start of the kernel processed data */ 1279 + mach_msg_body_t msgh_body; 1280 + mach_msg_ool_descriptor_t names; 1281 + mach_msg_ool_descriptor_t info; 1282 + mach_msg_ool_descriptor_t memory_info; 1283 + /* end of the kernel processed data */ 1284 + NDR_record_t NDR; 1285 + mach_msg_type_number_t namesCnt; 1286 + mach_msg_type_number_t infoCnt; 1287 + mach_msg_type_number_t memory_infoCnt; 1288 + } __Reply__mach_memory_info_t __attribute__((unused)); 1289 + #ifdef __MigPackStructs 1290 + #pragma pack(pop) 1291 + #endif 1292 + 1293 + #ifdef __MigPackStructs 1294 + #pragma pack(push, 4) 1295 + #endif 1296 + typedef struct { 1297 + mach_msg_header_t Head; 1298 + NDR_record_t NDR; 1299 + kern_return_t RetCode; 1300 + } __Reply__host_set_multiuser_config_flags_t __attribute__((unused)); 1301 + #ifdef __MigPackStructs 1302 + #pragma pack(pop) 1303 + #endif 1304 + 1305 + #ifdef __MigPackStructs 1306 + #pragma pack(push, 4) 1307 + #endif 1308 + typedef struct { 1309 + mach_msg_header_t Head; 1310 + NDR_record_t NDR; 1311 + kern_return_t RetCode; 1312 + uint32_t multiuser_flags; 1313 + } __Reply__host_get_multiuser_config_flags_t __attribute__((unused)); 1314 + #ifdef __MigPackStructs 1315 + #pragma pack(pop) 1316 + #endif 1317 + 1318 + #ifdef __MigPackStructs 1319 + #pragma pack(push, 4) 1320 + #endif 1321 + typedef struct { 1322 + mach_msg_header_t Head; 1323 + NDR_record_t NDR; 1324 + kern_return_t RetCode; 1325 + uint32_t multiuser_mode; 1326 + } __Reply__host_check_multiuser_mode_t __attribute__((unused)); 1327 + #ifdef __MigPackStructs 1328 + #pragma pack(pop) 1329 + #endif 1330 + 1331 + #ifdef __MigPackStructs 1332 + #pragma pack(push, 4) 1333 + #endif 1334 + typedef struct { 1335 + mach_msg_header_t Head; 1336 + NDR_record_t NDR; 1337 + kern_return_t RetCode; 1338 + mach_zone_info_t info; 1339 + } __Reply__mach_zone_info_for_zone_t __attribute__((unused)); 1340 + #ifdef __MigPackStructs 1341 + #pragma pack(pop) 1342 + #endif 1343 + 1344 + #ifdef __MigPackStructs 1345 + #pragma pack(push, 4) 1346 + #endif 1347 + typedef struct { 1348 + mach_msg_header_t Head; 1349 + NDR_record_t NDR; 1350 + kern_return_t RetCode; 1351 + mach_zone_name_t name; 1352 + mach_zone_info_t info; 1353 + } __Reply__mach_zone_info_for_largest_zone_t __attribute__((unused)); 1354 + #ifdef __MigPackStructs 1355 + #pragma pack(pop) 1356 + #endif 1357 + 1358 + #ifdef __MigPackStructs 1359 + #pragma pack(push, 4) 1360 + #endif 1361 + typedef struct { 1362 + mach_msg_header_t Head; 1363 + /* start of the kernel processed data */ 1364 + mach_msg_body_t msgh_body; 1365 + mach_msg_ool_descriptor_t names; 1366 + /* end of the kernel processed data */ 1367 + NDR_record_t NDR; 1368 + mach_msg_type_number_t namesCnt; 1369 + } __Reply__mach_zone_get_zlog_zones_t __attribute__((unused)); 1370 + #ifdef __MigPackStructs 1371 + #pragma pack(pop) 1372 + #endif 1373 + 1374 + #ifdef __MigPackStructs 1375 + #pragma pack(push, 4) 1376 + #endif 1377 + typedef struct { 1378 + mach_msg_header_t Head; 1379 + /* start of the kernel processed data */ 1380 + mach_msg_body_t msgh_body; 1381 + mach_msg_ool_descriptor_t recs; 1382 + /* end of the kernel processed data */ 1383 + NDR_record_t NDR; 1384 + mach_msg_type_number_t recsCnt; 1385 + } __Reply__mach_zone_get_btlog_records_t __attribute__((unused)); 1386 + #ifdef __MigPackStructs 1387 + #pragma pack(pop) 1388 + #endif 1389 + #endif /* !__Reply__mach_host_subsystem__defined */ 1390 + 1391 + /* union of all replies */ 1392 + 1393 + #ifndef __ReplyUnion__mach_host_subsystem__defined 1394 + #define __ReplyUnion__mach_host_subsystem__defined 1395 + union __ReplyUnion__mach_host_subsystem { 1396 + __Reply__host_info_t Reply_host_info; 1397 + __Reply__host_kernel_version_t Reply_host_kernel_version; 1398 + __Reply___host_page_size_t Reply__host_page_size; 1399 + __Reply__mach_memory_object_memory_entry_t Reply_mach_memory_object_memory_entry; 1400 + __Reply__host_processor_info_t Reply_host_processor_info; 1401 + __Reply__host_get_io_master_t Reply_host_get_io_master; 1402 + __Reply__host_get_clock_service_t Reply_host_get_clock_service; 1403 + __Reply__kmod_get_info_t Reply_kmod_get_info; 1404 + __Reply__host_virtual_physical_table_info_t Reply_host_virtual_physical_table_info; 1405 + __Reply__processor_set_default_t Reply_processor_set_default; 1406 + __Reply__processor_set_create_t Reply_processor_set_create; 1407 + __Reply__mach_memory_object_memory_entry_64_t Reply_mach_memory_object_memory_entry_64; 1408 + __Reply__host_statistics_t Reply_host_statistics; 1409 + __Reply__host_request_notification_t Reply_host_request_notification; 1410 + __Reply__host_lockgroup_info_t Reply_host_lockgroup_info; 1411 + __Reply__host_statistics64_t Reply_host_statistics64; 1412 + __Reply__mach_zone_info_t Reply_mach_zone_info; 1413 + __Reply__mach_zone_force_gc_t Reply_mach_zone_force_gc; 1414 + __Reply__host_create_mach_voucher_t Reply_host_create_mach_voucher; 1415 + __Reply__host_register_mach_voucher_attr_manager_t Reply_host_register_mach_voucher_attr_manager; 1416 + __Reply__host_register_well_known_mach_voucher_attr_manager_t Reply_host_register_well_known_mach_voucher_attr_manager; 1417 + __Reply__host_set_atm_diagnostic_flag_t Reply_host_set_atm_diagnostic_flag; 1418 + __Reply__host_get_atm_diagnostic_flag_t Reply_host_get_atm_diagnostic_flag; 1419 + __Reply__mach_memory_info_t Reply_mach_memory_info; 1420 + __Reply__host_set_multiuser_config_flags_t Reply_host_set_multiuser_config_flags; 1421 + __Reply__host_get_multiuser_config_flags_t Reply_host_get_multiuser_config_flags; 1422 + __Reply__host_check_multiuser_mode_t Reply_host_check_multiuser_mode; 1423 + __Reply__mach_zone_info_for_zone_t Reply_mach_zone_info_for_zone; 1424 + __Reply__mach_zone_info_for_largest_zone_t Reply_mach_zone_info_for_largest_zone; 1425 + __Reply__mach_zone_get_zlog_zones_t Reply_mach_zone_get_zlog_zones; 1426 + __Reply__mach_zone_get_btlog_records_t Reply_mach_zone_get_btlog_records; 1427 + }; 1428 + #endif /* !__RequestUnion__mach_host_subsystem__defined */ 1429 + 1430 + #ifndef subsystem_to_name_map_mach_host 1431 + #define subsystem_to_name_map_mach_host \ 1432 + { "host_info", 200 },\ 1433 + { "host_kernel_version", 201 },\ 1434 + { "_host_page_size", 202 },\ 1435 + { "mach_memory_object_memory_entry", 203 },\ 1436 + { "host_processor_info", 204 },\ 1437 + { "host_get_io_master", 205 },\ 1438 + { "host_get_clock_service", 206 },\ 1439 + { "kmod_get_info", 207 },\ 1440 + { "host_virtual_physical_table_info", 209 },\ 1441 + { "processor_set_default", 213 },\ 1442 + { "processor_set_create", 214 },\ 1443 + { "mach_memory_object_memory_entry_64", 215 },\ 1444 + { "host_statistics", 216 },\ 1445 + { "host_request_notification", 217 },\ 1446 + { "host_lockgroup_info", 218 },\ 1447 + { "host_statistics64", 219 },\ 1448 + { "mach_zone_info", 220 },\ 1449 + { "mach_zone_force_gc", 221 },\ 1450 + { "host_create_mach_voucher", 222 },\ 1451 + { "host_register_mach_voucher_attr_manager", 223 },\ 1452 + { "host_register_well_known_mach_voucher_attr_manager", 224 },\ 1453 + { "host_set_atm_diagnostic_flag", 225 },\ 1454 + { "host_get_atm_diagnostic_flag", 226 },\ 1455 + { "mach_memory_info", 227 },\ 1456 + { "host_set_multiuser_config_flags", 228 },\ 1457 + { "host_get_multiuser_config_flags", 229 },\ 1458 + { "host_check_multiuser_mode", 230 },\ 1459 + { "mach_zone_info_for_zone", 231 },\ 1460 + { "mach_zone_info_for_largest_zone", 232 },\ 1461 + { "mach_zone_get_zlog_zones", 233 },\ 1462 + { "mach_zone_get_btlog_records", 234 } 1463 + #endif 1464 + 1465 + #ifdef __AfterMigUserHeader 1466 + __AfterMigUserHeader 1467 + #endif /* __AfterMigUserHeader */ 1468 + 1469 + #endif /* _mach_host_user_ */
+1782
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/mach_port.h
··· 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef mach_port_MSG_COUNT 77 + #define mach_port_MSG_COUNT 39 78 + #endif /* mach_port_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + #include <mach_debug/mach_debug_types.h> 85 + 86 + #ifdef __BeforeMigUserHeader 87 + __BeforeMigUserHeader 88 + #endif /* __BeforeMigUserHeader */ 89 + 90 + #include <sys/cdefs.h> 91 + __BEGIN_DECLS 92 + 93 + 94 + /* Routine mach_port_names */ 95 + #ifdef mig_external 96 + mig_external 97 + #else 98 + extern 99 + #endif /* mig_external */ 100 + kern_return_t mach_port_names 101 + ( 102 + ipc_space_t task, 103 + mach_port_name_array_t *names, 104 + mach_msg_type_number_t *namesCnt, 105 + mach_port_type_array_t *types, 106 + mach_msg_type_number_t *typesCnt 107 + ); 108 + 109 + /* Routine mach_port_type */ 110 + #ifdef mig_external 111 + mig_external 112 + #else 113 + extern 114 + #endif /* mig_external */ 115 + kern_return_t mach_port_type 116 + ( 117 + ipc_space_t task, 118 + mach_port_name_t name, 119 + mach_port_type_t *ptype 120 + ); 121 + 122 + /* Routine mach_port_rename */ 123 + #ifdef mig_external 124 + mig_external 125 + #else 126 + extern 127 + #endif /* mig_external */ 128 + kern_return_t mach_port_rename 129 + ( 130 + ipc_space_t task, 131 + mach_port_name_t old_name, 132 + mach_port_name_t new_name 133 + ); 134 + 135 + /* Routine mach_port_allocate_name */ 136 + #ifdef mig_external 137 + mig_external 138 + #else 139 + extern 140 + #endif /* mig_external */ 141 + kern_return_t mach_port_allocate_name 142 + ( 143 + ipc_space_t task, 144 + mach_port_right_t right, 145 + mach_port_name_t name 146 + ); 147 + 148 + /* Routine mach_port_allocate */ 149 + #ifdef mig_external 150 + mig_external 151 + #else 152 + extern 153 + #endif /* mig_external */ 154 + kern_return_t mach_port_allocate 155 + ( 156 + ipc_space_t task, 157 + mach_port_right_t right, 158 + mach_port_name_t *name 159 + ); 160 + 161 + /* Routine mach_port_destroy */ 162 + #ifdef mig_external 163 + mig_external 164 + #else 165 + extern 166 + #endif /* mig_external */ 167 + kern_return_t mach_port_destroy 168 + ( 169 + ipc_space_t task, 170 + mach_port_name_t name 171 + ); 172 + 173 + /* Routine mach_port_deallocate */ 174 + #ifdef mig_external 175 + mig_external 176 + #else 177 + extern 178 + #endif /* mig_external */ 179 + kern_return_t mach_port_deallocate 180 + ( 181 + ipc_space_t task, 182 + mach_port_name_t name 183 + ); 184 + 185 + /* Routine mach_port_get_refs */ 186 + #ifdef mig_external 187 + mig_external 188 + #else 189 + extern 190 + #endif /* mig_external */ 191 + kern_return_t mach_port_get_refs 192 + ( 193 + ipc_space_t task, 194 + mach_port_name_t name, 195 + mach_port_right_t right, 196 + mach_port_urefs_t *refs 197 + ); 198 + 199 + /* Routine mach_port_mod_refs */ 200 + #ifdef mig_external 201 + mig_external 202 + #else 203 + extern 204 + #endif /* mig_external */ 205 + kern_return_t mach_port_mod_refs 206 + ( 207 + ipc_space_t task, 208 + mach_port_name_t name, 209 + mach_port_right_t right, 210 + mach_port_delta_t delta 211 + ); 212 + 213 + /* Routine mach_port_peek */ 214 + #ifdef mig_external 215 + mig_external 216 + #else 217 + extern 218 + #endif /* mig_external */ 219 + kern_return_t mach_port_peek 220 + ( 221 + ipc_space_t task, 222 + mach_port_name_t name, 223 + mach_msg_trailer_type_t trailer_type, 224 + mach_port_seqno_t *request_seqnop, 225 + mach_msg_size_t *msg_sizep, 226 + mach_msg_id_t *msg_idp, 227 + mach_msg_trailer_info_t trailer_infop, 228 + mach_msg_type_number_t *trailer_infopCnt 229 + ); 230 + 231 + /* Routine mach_port_set_mscount */ 232 + #ifdef mig_external 233 + mig_external 234 + #else 235 + extern 236 + #endif /* mig_external */ 237 + kern_return_t mach_port_set_mscount 238 + ( 239 + ipc_space_t task, 240 + mach_port_name_t name, 241 + mach_port_mscount_t mscount 242 + ); 243 + 244 + /* Routine mach_port_get_set_status */ 245 + #ifdef mig_external 246 + mig_external 247 + #else 248 + extern 249 + #endif /* mig_external */ 250 + kern_return_t mach_port_get_set_status 251 + ( 252 + ipc_space_inspect_t task, 253 + mach_port_name_t name, 254 + mach_port_name_array_t *members, 255 + mach_msg_type_number_t *membersCnt 256 + ); 257 + 258 + /* Routine mach_port_move_member */ 259 + #ifdef mig_external 260 + mig_external 261 + #else 262 + extern 263 + #endif /* mig_external */ 264 + kern_return_t mach_port_move_member 265 + ( 266 + ipc_space_t task, 267 + mach_port_name_t member, 268 + mach_port_name_t after 269 + ); 270 + 271 + /* Routine mach_port_request_notification */ 272 + #ifdef mig_external 273 + mig_external 274 + #else 275 + extern 276 + #endif /* mig_external */ 277 + kern_return_t mach_port_request_notification 278 + ( 279 + ipc_space_t task, 280 + mach_port_name_t name, 281 + mach_msg_id_t msgid, 282 + mach_port_mscount_t sync, 283 + mach_port_t notify, 284 + mach_msg_type_name_t notifyPoly, 285 + mach_port_t *previous 286 + ); 287 + 288 + /* Routine mach_port_insert_right */ 289 + #ifdef mig_external 290 + mig_external 291 + #else 292 + extern 293 + #endif /* mig_external */ 294 + kern_return_t mach_port_insert_right 295 + ( 296 + ipc_space_t task, 297 + mach_port_name_t name, 298 + mach_port_t poly, 299 + mach_msg_type_name_t polyPoly 300 + ); 301 + 302 + /* Routine mach_port_extract_right */ 303 + #ifdef mig_external 304 + mig_external 305 + #else 306 + extern 307 + #endif /* mig_external */ 308 + kern_return_t mach_port_extract_right 309 + ( 310 + ipc_space_t task, 311 + mach_port_name_t name, 312 + mach_msg_type_name_t msgt_name, 313 + mach_port_t *poly, 314 + mach_msg_type_name_t *polyPoly 315 + ); 316 + 317 + /* Routine mach_port_set_seqno */ 318 + #ifdef mig_external 319 + mig_external 320 + #else 321 + extern 322 + #endif /* mig_external */ 323 + kern_return_t mach_port_set_seqno 324 + ( 325 + ipc_space_t task, 326 + mach_port_name_t name, 327 + mach_port_seqno_t seqno 328 + ); 329 + 330 + /* Routine mach_port_get_attributes */ 331 + #ifdef mig_external 332 + mig_external 333 + #else 334 + extern 335 + #endif /* mig_external */ 336 + kern_return_t mach_port_get_attributes 337 + ( 338 + ipc_space_inspect_t task, 339 + mach_port_name_t name, 340 + mach_port_flavor_t flavor, 341 + mach_port_info_t port_info_out, 342 + mach_msg_type_number_t *port_info_outCnt 343 + ); 344 + 345 + /* Routine mach_port_set_attributes */ 346 + #ifdef mig_external 347 + mig_external 348 + #else 349 + extern 350 + #endif /* mig_external */ 351 + kern_return_t mach_port_set_attributes 352 + ( 353 + ipc_space_t task, 354 + mach_port_name_t name, 355 + mach_port_flavor_t flavor, 356 + mach_port_info_t port_info, 357 + mach_msg_type_number_t port_infoCnt 358 + ); 359 + 360 + /* Routine mach_port_allocate_qos */ 361 + #ifdef mig_external 362 + mig_external 363 + #else 364 + extern 365 + #endif /* mig_external */ 366 + kern_return_t mach_port_allocate_qos 367 + ( 368 + ipc_space_t task, 369 + mach_port_right_t right, 370 + mach_port_qos_t *qos, 371 + mach_port_name_t *name 372 + ); 373 + 374 + /* Routine mach_port_allocate_full */ 375 + #ifdef mig_external 376 + mig_external 377 + #else 378 + extern 379 + #endif /* mig_external */ 380 + kern_return_t mach_port_allocate_full 381 + ( 382 + ipc_space_t task, 383 + mach_port_right_t right, 384 + mach_port_t proto, 385 + mach_port_qos_t *qos, 386 + mach_port_name_t *name 387 + ); 388 + 389 + /* Routine task_set_port_space */ 390 + #ifdef mig_external 391 + mig_external 392 + #else 393 + extern 394 + #endif /* mig_external */ 395 + kern_return_t task_set_port_space 396 + ( 397 + ipc_space_t task, 398 + int table_entries 399 + ); 400 + 401 + /* Routine mach_port_get_srights */ 402 + #ifdef mig_external 403 + mig_external 404 + #else 405 + extern 406 + #endif /* mig_external */ 407 + kern_return_t mach_port_get_srights 408 + ( 409 + ipc_space_t task, 410 + mach_port_name_t name, 411 + mach_port_rights_t *srights 412 + ); 413 + 414 + /* Routine mach_port_space_info */ 415 + #ifdef mig_external 416 + mig_external 417 + #else 418 + extern 419 + #endif /* mig_external */ 420 + kern_return_t mach_port_space_info 421 + ( 422 + ipc_space_inspect_t task, 423 + ipc_info_space_t *space_info, 424 + ipc_info_name_array_t *table_info, 425 + mach_msg_type_number_t *table_infoCnt, 426 + ipc_info_tree_name_array_t *tree_info, 427 + mach_msg_type_number_t *tree_infoCnt 428 + ); 429 + 430 + /* Routine mach_port_dnrequest_info */ 431 + #ifdef mig_external 432 + mig_external 433 + #else 434 + extern 435 + #endif /* mig_external */ 436 + kern_return_t mach_port_dnrequest_info 437 + ( 438 + ipc_space_t task, 439 + mach_port_name_t name, 440 + unsigned *dnr_total, 441 + unsigned *dnr_used 442 + ); 443 + 444 + /* Routine mach_port_kernel_object */ 445 + #ifdef mig_external 446 + mig_external 447 + #else 448 + extern 449 + #endif /* mig_external */ 450 + kern_return_t mach_port_kernel_object 451 + ( 452 + ipc_space_inspect_t task, 453 + mach_port_name_t name, 454 + unsigned *object_type, 455 + unsigned *object_addr 456 + ); 457 + 458 + /* Routine mach_port_insert_member */ 459 + #ifdef mig_external 460 + mig_external 461 + #else 462 + extern 463 + #endif /* mig_external */ 464 + kern_return_t mach_port_insert_member 465 + ( 466 + ipc_space_t task, 467 + mach_port_name_t name, 468 + mach_port_name_t pset 469 + ); 470 + 471 + /* Routine mach_port_extract_member */ 472 + #ifdef mig_external 473 + mig_external 474 + #else 475 + extern 476 + #endif /* mig_external */ 477 + kern_return_t mach_port_extract_member 478 + ( 479 + ipc_space_t task, 480 + mach_port_name_t name, 481 + mach_port_name_t pset 482 + ); 483 + 484 + /* Routine mach_port_get_context */ 485 + #ifdef mig_external 486 + mig_external 487 + #else 488 + extern 489 + #endif /* mig_external */ 490 + kern_return_t mach_port_get_context 491 + ( 492 + ipc_space_inspect_t task, 493 + mach_port_name_t name, 494 + mach_port_context_t *context 495 + ); 496 + 497 + /* Routine mach_port_set_context */ 498 + #ifdef mig_external 499 + mig_external 500 + #else 501 + extern 502 + #endif /* mig_external */ 503 + kern_return_t mach_port_set_context 504 + ( 505 + ipc_space_t task, 506 + mach_port_name_t name, 507 + mach_port_context_t context 508 + ); 509 + 510 + /* Routine mach_port_kobject */ 511 + #ifdef mig_external 512 + mig_external 513 + #else 514 + extern 515 + #endif /* mig_external */ 516 + kern_return_t mach_port_kobject 517 + ( 518 + ipc_space_inspect_t task, 519 + mach_port_name_t name, 520 + natural_t *object_type, 521 + mach_vm_address_t *object_addr 522 + ); 523 + 524 + /* Routine mach_port_construct */ 525 + #ifdef mig_external 526 + mig_external 527 + #else 528 + extern 529 + #endif /* mig_external */ 530 + kern_return_t mach_port_construct 531 + ( 532 + ipc_space_t task, 533 + mach_port_options_ptr_t options, 534 + mach_port_context_t context, 535 + mach_port_name_t *name 536 + ); 537 + 538 + /* Routine mach_port_destruct */ 539 + #ifdef mig_external 540 + mig_external 541 + #else 542 + extern 543 + #endif /* mig_external */ 544 + kern_return_t mach_port_destruct 545 + ( 546 + ipc_space_t task, 547 + mach_port_name_t name, 548 + mach_port_delta_t srdelta, 549 + mach_port_context_t guard 550 + ); 551 + 552 + /* Routine mach_port_guard */ 553 + #ifdef mig_external 554 + mig_external 555 + #else 556 + extern 557 + #endif /* mig_external */ 558 + kern_return_t mach_port_guard 559 + ( 560 + ipc_space_t task, 561 + mach_port_name_t name, 562 + mach_port_context_t guard, 563 + boolean_t strict 564 + ); 565 + 566 + /* Routine mach_port_unguard */ 567 + #ifdef mig_external 568 + mig_external 569 + #else 570 + extern 571 + #endif /* mig_external */ 572 + kern_return_t mach_port_unguard 573 + ( 574 + ipc_space_t task, 575 + mach_port_name_t name, 576 + mach_port_context_t guard 577 + ); 578 + 579 + /* Routine mach_port_space_basic_info */ 580 + #ifdef mig_external 581 + mig_external 582 + #else 583 + extern 584 + #endif /* mig_external */ 585 + kern_return_t mach_port_space_basic_info 586 + ( 587 + ipc_space_inspect_t task, 588 + ipc_info_space_basic_t *basic_info 589 + ); 590 + 591 + /* Routine mach_port_guard_with_flags */ 592 + #ifdef mig_external 593 + mig_external 594 + #else 595 + extern 596 + #endif /* mig_external */ 597 + kern_return_t mach_port_guard_with_flags 598 + ( 599 + ipc_space_t task, 600 + mach_port_name_t name, 601 + mach_port_context_t guard, 602 + uint64_t flags 603 + ); 604 + 605 + /* Routine mach_port_swap_guard */ 606 + #ifdef mig_external 607 + mig_external 608 + #else 609 + extern 610 + #endif /* mig_external */ 611 + kern_return_t mach_port_swap_guard 612 + ( 613 + ipc_space_t task, 614 + mach_port_name_t name, 615 + mach_port_context_t old_guard, 616 + mach_port_context_t new_guard 617 + ); 618 + 619 + __END_DECLS 620 + 621 + /********************** Caution **************************/ 622 + /* The following data types should be used to calculate */ 623 + /* maximum message sizes only. The actual message may be */ 624 + /* smaller, and the position of the arguments within the */ 625 + /* message layout may vary from what is presented here. */ 626 + /* For example, if any of the arguments are variable- */ 627 + /* sized, and less than the maximum is sent, the data */ 628 + /* will be packed tight in the actual message to reduce */ 629 + /* the presence of holes. */ 630 + /********************** Caution **************************/ 631 + 632 + /* typedefs for all requests */ 633 + 634 + #ifndef __Request__mach_port_subsystem__defined 635 + #define __Request__mach_port_subsystem__defined 636 + 637 + #ifdef __MigPackStructs 638 + #pragma pack(push, 4) 639 + #endif 640 + typedef struct { 641 + mach_msg_header_t Head; 642 + } __Request__mach_port_names_t __attribute__((unused)); 643 + #ifdef __MigPackStructs 644 + #pragma pack(pop) 645 + #endif 646 + 647 + #ifdef __MigPackStructs 648 + #pragma pack(push, 4) 649 + #endif 650 + typedef struct { 651 + mach_msg_header_t Head; 652 + NDR_record_t NDR; 653 + mach_port_name_t name; 654 + } __Request__mach_port_type_t __attribute__((unused)); 655 + #ifdef __MigPackStructs 656 + #pragma pack(pop) 657 + #endif 658 + 659 + #ifdef __MigPackStructs 660 + #pragma pack(push, 4) 661 + #endif 662 + typedef struct { 663 + mach_msg_header_t Head; 664 + NDR_record_t NDR; 665 + mach_port_name_t old_name; 666 + mach_port_name_t new_name; 667 + } __Request__mach_port_rename_t __attribute__((unused)); 668 + #ifdef __MigPackStructs 669 + #pragma pack(pop) 670 + #endif 671 + 672 + #ifdef __MigPackStructs 673 + #pragma pack(push, 4) 674 + #endif 675 + typedef struct { 676 + mach_msg_header_t Head; 677 + NDR_record_t NDR; 678 + mach_port_right_t right; 679 + mach_port_name_t name; 680 + } __Request__mach_port_allocate_name_t __attribute__((unused)); 681 + #ifdef __MigPackStructs 682 + #pragma pack(pop) 683 + #endif 684 + 685 + #ifdef __MigPackStructs 686 + #pragma pack(push, 4) 687 + #endif 688 + typedef struct { 689 + mach_msg_header_t Head; 690 + NDR_record_t NDR; 691 + mach_port_right_t right; 692 + } __Request__mach_port_allocate_t __attribute__((unused)); 693 + #ifdef __MigPackStructs 694 + #pragma pack(pop) 695 + #endif 696 + 697 + #ifdef __MigPackStructs 698 + #pragma pack(push, 4) 699 + #endif 700 + typedef struct { 701 + mach_msg_header_t Head; 702 + NDR_record_t NDR; 703 + mach_port_name_t name; 704 + } __Request__mach_port_destroy_t __attribute__((unused)); 705 + #ifdef __MigPackStructs 706 + #pragma pack(pop) 707 + #endif 708 + 709 + #ifdef __MigPackStructs 710 + #pragma pack(push, 4) 711 + #endif 712 + typedef struct { 713 + mach_msg_header_t Head; 714 + NDR_record_t NDR; 715 + mach_port_name_t name; 716 + } __Request__mach_port_deallocate_t __attribute__((unused)); 717 + #ifdef __MigPackStructs 718 + #pragma pack(pop) 719 + #endif 720 + 721 + #ifdef __MigPackStructs 722 + #pragma pack(push, 4) 723 + #endif 724 + typedef struct { 725 + mach_msg_header_t Head; 726 + NDR_record_t NDR; 727 + mach_port_name_t name; 728 + mach_port_right_t right; 729 + } __Request__mach_port_get_refs_t __attribute__((unused)); 730 + #ifdef __MigPackStructs 731 + #pragma pack(pop) 732 + #endif 733 + 734 + #ifdef __MigPackStructs 735 + #pragma pack(push, 4) 736 + #endif 737 + typedef struct { 738 + mach_msg_header_t Head; 739 + NDR_record_t NDR; 740 + mach_port_name_t name; 741 + mach_port_right_t right; 742 + mach_port_delta_t delta; 743 + } __Request__mach_port_mod_refs_t __attribute__((unused)); 744 + #ifdef __MigPackStructs 745 + #pragma pack(pop) 746 + #endif 747 + 748 + #ifdef __MigPackStructs 749 + #pragma pack(push, 4) 750 + #endif 751 + typedef struct { 752 + mach_msg_header_t Head; 753 + NDR_record_t NDR; 754 + mach_port_name_t name; 755 + mach_msg_trailer_type_t trailer_type; 756 + mach_port_seqno_t request_seqnop; 757 + mach_msg_type_number_t trailer_infopCnt; 758 + } __Request__mach_port_peek_t __attribute__((unused)); 759 + #ifdef __MigPackStructs 760 + #pragma pack(pop) 761 + #endif 762 + 763 + #ifdef __MigPackStructs 764 + #pragma pack(push, 4) 765 + #endif 766 + typedef struct { 767 + mach_msg_header_t Head; 768 + NDR_record_t NDR; 769 + mach_port_name_t name; 770 + mach_port_mscount_t mscount; 771 + } __Request__mach_port_set_mscount_t __attribute__((unused)); 772 + #ifdef __MigPackStructs 773 + #pragma pack(pop) 774 + #endif 775 + 776 + #ifdef __MigPackStructs 777 + #pragma pack(push, 4) 778 + #endif 779 + typedef struct { 780 + mach_msg_header_t Head; 781 + NDR_record_t NDR; 782 + mach_port_name_t name; 783 + } __Request__mach_port_get_set_status_t __attribute__((unused)); 784 + #ifdef __MigPackStructs 785 + #pragma pack(pop) 786 + #endif 787 + 788 + #ifdef __MigPackStructs 789 + #pragma pack(push, 4) 790 + #endif 791 + typedef struct { 792 + mach_msg_header_t Head; 793 + NDR_record_t NDR; 794 + mach_port_name_t member; 795 + mach_port_name_t after; 796 + } __Request__mach_port_move_member_t __attribute__((unused)); 797 + #ifdef __MigPackStructs 798 + #pragma pack(pop) 799 + #endif 800 + 801 + #ifdef __MigPackStructs 802 + #pragma pack(push, 4) 803 + #endif 804 + typedef struct { 805 + mach_msg_header_t Head; 806 + /* start of the kernel processed data */ 807 + mach_msg_body_t msgh_body; 808 + mach_msg_port_descriptor_t notify; 809 + /* end of the kernel processed data */ 810 + NDR_record_t NDR; 811 + mach_port_name_t name; 812 + mach_msg_id_t msgid; 813 + mach_port_mscount_t sync; 814 + } __Request__mach_port_request_notification_t __attribute__((unused)); 815 + #ifdef __MigPackStructs 816 + #pragma pack(pop) 817 + #endif 818 + 819 + #ifdef __MigPackStructs 820 + #pragma pack(push, 4) 821 + #endif 822 + typedef struct { 823 + mach_msg_header_t Head; 824 + /* start of the kernel processed data */ 825 + mach_msg_body_t msgh_body; 826 + mach_msg_port_descriptor_t poly; 827 + /* end of the kernel processed data */ 828 + NDR_record_t NDR; 829 + mach_port_name_t name; 830 + } __Request__mach_port_insert_right_t __attribute__((unused)); 831 + #ifdef __MigPackStructs 832 + #pragma pack(pop) 833 + #endif 834 + 835 + #ifdef __MigPackStructs 836 + #pragma pack(push, 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_msg_type_name_t msgt_name; 843 + } __Request__mach_port_extract_right_t __attribute__((unused)); 844 + #ifdef __MigPackStructs 845 + #pragma pack(pop) 846 + #endif 847 + 848 + #ifdef __MigPackStructs 849 + #pragma pack(push, 4) 850 + #endif 851 + typedef struct { 852 + mach_msg_header_t Head; 853 + NDR_record_t NDR; 854 + mach_port_name_t name; 855 + mach_port_seqno_t seqno; 856 + } __Request__mach_port_set_seqno_t __attribute__((unused)); 857 + #ifdef __MigPackStructs 858 + #pragma pack(pop) 859 + #endif 860 + 861 + #ifdef __MigPackStructs 862 + #pragma pack(push, 4) 863 + #endif 864 + typedef struct { 865 + mach_msg_header_t Head; 866 + NDR_record_t NDR; 867 + mach_port_name_t name; 868 + mach_port_flavor_t flavor; 869 + mach_msg_type_number_t port_info_outCnt; 870 + } __Request__mach_port_get_attributes_t __attribute__((unused)); 871 + #ifdef __MigPackStructs 872 + #pragma pack(pop) 873 + #endif 874 + 875 + #ifdef __MigPackStructs 876 + #pragma pack(push, 4) 877 + #endif 878 + typedef struct { 879 + mach_msg_header_t Head; 880 + NDR_record_t NDR; 881 + mach_port_name_t name; 882 + mach_port_flavor_t flavor; 883 + mach_msg_type_number_t port_infoCnt; 884 + integer_t port_info[17]; 885 + } __Request__mach_port_set_attributes_t __attribute__((unused)); 886 + #ifdef __MigPackStructs 887 + #pragma pack(pop) 888 + #endif 889 + 890 + #ifdef __MigPackStructs 891 + #pragma pack(push, 4) 892 + #endif 893 + typedef struct { 894 + mach_msg_header_t Head; 895 + NDR_record_t NDR; 896 + mach_port_right_t right; 897 + mach_port_qos_t qos; 898 + } __Request__mach_port_allocate_qos_t __attribute__((unused)); 899 + #ifdef __MigPackStructs 900 + #pragma pack(pop) 901 + #endif 902 + 903 + #ifdef __MigPackStructs 904 + #pragma pack(push, 4) 905 + #endif 906 + typedef struct { 907 + mach_msg_header_t Head; 908 + /* start of the kernel processed data */ 909 + mach_msg_body_t msgh_body; 910 + mach_msg_port_descriptor_t proto; 911 + /* end of the kernel processed data */ 912 + NDR_record_t NDR; 913 + mach_port_right_t right; 914 + mach_port_qos_t qos; 915 + mach_port_name_t name; 916 + } __Request__mach_port_allocate_full_t __attribute__((unused)); 917 + #ifdef __MigPackStructs 918 + #pragma pack(pop) 919 + #endif 920 + 921 + #ifdef __MigPackStructs 922 + #pragma pack(push, 4) 923 + #endif 924 + typedef struct { 925 + mach_msg_header_t Head; 926 + NDR_record_t NDR; 927 + int table_entries; 928 + } __Request__task_set_port_space_t __attribute__((unused)); 929 + #ifdef __MigPackStructs 930 + #pragma pack(pop) 931 + #endif 932 + 933 + #ifdef __MigPackStructs 934 + #pragma pack(push, 4) 935 + #endif 936 + typedef struct { 937 + mach_msg_header_t Head; 938 + NDR_record_t NDR; 939 + mach_port_name_t name; 940 + } __Request__mach_port_get_srights_t __attribute__((unused)); 941 + #ifdef __MigPackStructs 942 + #pragma pack(pop) 943 + #endif 944 + 945 + #ifdef __MigPackStructs 946 + #pragma pack(push, 4) 947 + #endif 948 + typedef struct { 949 + mach_msg_header_t Head; 950 + } __Request__mach_port_space_info_t __attribute__((unused)); 951 + #ifdef __MigPackStructs 952 + #pragma pack(pop) 953 + #endif 954 + 955 + #ifdef __MigPackStructs 956 + #pragma pack(push, 4) 957 + #endif 958 + typedef struct { 959 + mach_msg_header_t Head; 960 + NDR_record_t NDR; 961 + mach_port_name_t name; 962 + } __Request__mach_port_dnrequest_info_t __attribute__((unused)); 963 + #ifdef __MigPackStructs 964 + #pragma pack(pop) 965 + #endif 966 + 967 + #ifdef __MigPackStructs 968 + #pragma pack(push, 4) 969 + #endif 970 + typedef struct { 971 + mach_msg_header_t Head; 972 + NDR_record_t NDR; 973 + mach_port_name_t name; 974 + } __Request__mach_port_kernel_object_t __attribute__((unused)); 975 + #ifdef __MigPackStructs 976 + #pragma pack(pop) 977 + #endif 978 + 979 + #ifdef __MigPackStructs 980 + #pragma pack(push, 4) 981 + #endif 982 + typedef struct { 983 + mach_msg_header_t Head; 984 + NDR_record_t NDR; 985 + mach_port_name_t name; 986 + mach_port_name_t pset; 987 + } __Request__mach_port_insert_member_t __attribute__((unused)); 988 + #ifdef __MigPackStructs 989 + #pragma pack(pop) 990 + #endif 991 + 992 + #ifdef __MigPackStructs 993 + #pragma pack(push, 4) 994 + #endif 995 + typedef struct { 996 + mach_msg_header_t Head; 997 + NDR_record_t NDR; 998 + mach_port_name_t name; 999 + mach_port_name_t pset; 1000 + } __Request__mach_port_extract_member_t __attribute__((unused)); 1001 + #ifdef __MigPackStructs 1002 + #pragma pack(pop) 1003 + #endif 1004 + 1005 + #ifdef __MigPackStructs 1006 + #pragma pack(push, 4) 1007 + #endif 1008 + typedef struct { 1009 + mach_msg_header_t Head; 1010 + NDR_record_t NDR; 1011 + mach_port_name_t name; 1012 + } __Request__mach_port_get_context_t __attribute__((unused)); 1013 + #ifdef __MigPackStructs 1014 + #pragma pack(pop) 1015 + #endif 1016 + 1017 + #ifdef __MigPackStructs 1018 + #pragma pack(push, 4) 1019 + #endif 1020 + typedef struct { 1021 + mach_msg_header_t Head; 1022 + NDR_record_t NDR; 1023 + mach_port_name_t name; 1024 + mach_port_context_t context; 1025 + } __Request__mach_port_set_context_t __attribute__((unused)); 1026 + #ifdef __MigPackStructs 1027 + #pragma pack(pop) 1028 + #endif 1029 + 1030 + #ifdef __MigPackStructs 1031 + #pragma pack(push, 4) 1032 + #endif 1033 + typedef struct { 1034 + mach_msg_header_t Head; 1035 + NDR_record_t NDR; 1036 + mach_port_name_t name; 1037 + } __Request__mach_port_kobject_t __attribute__((unused)); 1038 + #ifdef __MigPackStructs 1039 + #pragma pack(pop) 1040 + #endif 1041 + 1042 + #ifdef __MigPackStructs 1043 + #pragma pack(push, 4) 1044 + #endif 1045 + typedef struct { 1046 + mach_msg_header_t Head; 1047 + /* start of the kernel processed data */ 1048 + mach_msg_body_t msgh_body; 1049 + mach_msg_ool_descriptor_t options; 1050 + /* end of the kernel processed data */ 1051 + NDR_record_t NDR; 1052 + mach_port_context_t context; 1053 + } __Request__mach_port_construct_t __attribute__((unused)); 1054 + #ifdef __MigPackStructs 1055 + #pragma pack(pop) 1056 + #endif 1057 + 1058 + #ifdef __MigPackStructs 1059 + #pragma pack(push, 4) 1060 + #endif 1061 + typedef struct { 1062 + mach_msg_header_t Head; 1063 + NDR_record_t NDR; 1064 + mach_port_name_t name; 1065 + mach_port_delta_t srdelta; 1066 + mach_port_context_t guard; 1067 + } __Request__mach_port_destruct_t __attribute__((unused)); 1068 + #ifdef __MigPackStructs 1069 + #pragma pack(pop) 1070 + #endif 1071 + 1072 + #ifdef __MigPackStructs 1073 + #pragma pack(push, 4) 1074 + #endif 1075 + typedef struct { 1076 + mach_msg_header_t Head; 1077 + NDR_record_t NDR; 1078 + mach_port_name_t name; 1079 + mach_port_context_t guard; 1080 + boolean_t strict; 1081 + } __Request__mach_port_guard_t __attribute__((unused)); 1082 + #ifdef __MigPackStructs 1083 + #pragma pack(pop) 1084 + #endif 1085 + 1086 + #ifdef __MigPackStructs 1087 + #pragma pack(push, 4) 1088 + #endif 1089 + typedef struct { 1090 + mach_msg_header_t Head; 1091 + NDR_record_t NDR; 1092 + mach_port_name_t name; 1093 + mach_port_context_t guard; 1094 + } __Request__mach_port_unguard_t __attribute__((unused)); 1095 + #ifdef __MigPackStructs 1096 + #pragma pack(pop) 1097 + #endif 1098 + 1099 + #ifdef __MigPackStructs 1100 + #pragma pack(push, 4) 1101 + #endif 1102 + typedef struct { 1103 + mach_msg_header_t Head; 1104 + } __Request__mach_port_space_basic_info_t __attribute__((unused)); 1105 + #ifdef __MigPackStructs 1106 + #pragma pack(pop) 1107 + #endif 1108 + 1109 + #ifdef __MigPackStructs 1110 + #pragma pack(push, 4) 1111 + #endif 1112 + typedef struct { 1113 + mach_msg_header_t Head; 1114 + NDR_record_t NDR; 1115 + mach_port_name_t name; 1116 + mach_port_context_t guard; 1117 + uint64_t flags; 1118 + } __Request__mach_port_guard_with_flags_t __attribute__((unused)); 1119 + #ifdef __MigPackStructs 1120 + #pragma pack(pop) 1121 + #endif 1122 + 1123 + #ifdef __MigPackStructs 1124 + #pragma pack(push, 4) 1125 + #endif 1126 + typedef struct { 1127 + mach_msg_header_t Head; 1128 + NDR_record_t NDR; 1129 + mach_port_name_t name; 1130 + mach_port_context_t old_guard; 1131 + mach_port_context_t new_guard; 1132 + } __Request__mach_port_swap_guard_t __attribute__((unused)); 1133 + #ifdef __MigPackStructs 1134 + #pragma pack(pop) 1135 + #endif 1136 + #endif /* !__Request__mach_port_subsystem__defined */ 1137 + 1138 + /* union of all requests */ 1139 + 1140 + #ifndef __RequestUnion__mach_port_subsystem__defined 1141 + #define __RequestUnion__mach_port_subsystem__defined 1142 + union __RequestUnion__mach_port_subsystem { 1143 + __Request__mach_port_names_t Request_mach_port_names; 1144 + __Request__mach_port_type_t Request_mach_port_type; 1145 + __Request__mach_port_rename_t Request_mach_port_rename; 1146 + __Request__mach_port_allocate_name_t Request_mach_port_allocate_name; 1147 + __Request__mach_port_allocate_t Request_mach_port_allocate; 1148 + __Request__mach_port_destroy_t Request_mach_port_destroy; 1149 + __Request__mach_port_deallocate_t Request_mach_port_deallocate; 1150 + __Request__mach_port_get_refs_t Request_mach_port_get_refs; 1151 + __Request__mach_port_mod_refs_t Request_mach_port_mod_refs; 1152 + __Request__mach_port_peek_t Request_mach_port_peek; 1153 + __Request__mach_port_set_mscount_t Request_mach_port_set_mscount; 1154 + __Request__mach_port_get_set_status_t Request_mach_port_get_set_status; 1155 + __Request__mach_port_move_member_t Request_mach_port_move_member; 1156 + __Request__mach_port_request_notification_t Request_mach_port_request_notification; 1157 + __Request__mach_port_insert_right_t Request_mach_port_insert_right; 1158 + __Request__mach_port_extract_right_t Request_mach_port_extract_right; 1159 + __Request__mach_port_set_seqno_t Request_mach_port_set_seqno; 1160 + __Request__mach_port_get_attributes_t Request_mach_port_get_attributes; 1161 + __Request__mach_port_set_attributes_t Request_mach_port_set_attributes; 1162 + __Request__mach_port_allocate_qos_t Request_mach_port_allocate_qos; 1163 + __Request__mach_port_allocate_full_t Request_mach_port_allocate_full; 1164 + __Request__task_set_port_space_t Request_task_set_port_space; 1165 + __Request__mach_port_get_srights_t Request_mach_port_get_srights; 1166 + __Request__mach_port_space_info_t Request_mach_port_space_info; 1167 + __Request__mach_port_dnrequest_info_t Request_mach_port_dnrequest_info; 1168 + __Request__mach_port_kernel_object_t Request_mach_port_kernel_object; 1169 + __Request__mach_port_insert_member_t Request_mach_port_insert_member; 1170 + __Request__mach_port_extract_member_t Request_mach_port_extract_member; 1171 + __Request__mach_port_get_context_t Request_mach_port_get_context; 1172 + __Request__mach_port_set_context_t Request_mach_port_set_context; 1173 + __Request__mach_port_kobject_t Request_mach_port_kobject; 1174 + __Request__mach_port_construct_t Request_mach_port_construct; 1175 + __Request__mach_port_destruct_t Request_mach_port_destruct; 1176 + __Request__mach_port_guard_t Request_mach_port_guard; 1177 + __Request__mach_port_unguard_t Request_mach_port_unguard; 1178 + __Request__mach_port_space_basic_info_t Request_mach_port_space_basic_info; 1179 + __Request__mach_port_guard_with_flags_t Request_mach_port_guard_with_flags; 1180 + __Request__mach_port_swap_guard_t Request_mach_port_swap_guard; 1181 + }; 1182 + #endif /* !__RequestUnion__mach_port_subsystem__defined */ 1183 + /* typedefs for all replies */ 1184 + 1185 + #ifndef __Reply__mach_port_subsystem__defined 1186 + #define __Reply__mach_port_subsystem__defined 1187 + 1188 + #ifdef __MigPackStructs 1189 + #pragma pack(push, 4) 1190 + #endif 1191 + typedef struct { 1192 + mach_msg_header_t Head; 1193 + /* start of the kernel processed data */ 1194 + mach_msg_body_t msgh_body; 1195 + mach_msg_ool_descriptor_t names; 1196 + mach_msg_ool_descriptor_t types; 1197 + /* end of the kernel processed data */ 1198 + NDR_record_t NDR; 1199 + mach_msg_type_number_t namesCnt; 1200 + mach_msg_type_number_t typesCnt; 1201 + } __Reply__mach_port_names_t __attribute__((unused)); 1202 + #ifdef __MigPackStructs 1203 + #pragma pack(pop) 1204 + #endif 1205 + 1206 + #ifdef __MigPackStructs 1207 + #pragma pack(push, 4) 1208 + #endif 1209 + typedef struct { 1210 + mach_msg_header_t Head; 1211 + NDR_record_t NDR; 1212 + kern_return_t RetCode; 1213 + mach_port_type_t ptype; 1214 + } __Reply__mach_port_type_t __attribute__((unused)); 1215 + #ifdef __MigPackStructs 1216 + #pragma pack(pop) 1217 + #endif 1218 + 1219 + #ifdef __MigPackStructs 1220 + #pragma pack(push, 4) 1221 + #endif 1222 + typedef struct { 1223 + mach_msg_header_t Head; 1224 + NDR_record_t NDR; 1225 + kern_return_t RetCode; 1226 + } __Reply__mach_port_rename_t __attribute__((unused)); 1227 + #ifdef __MigPackStructs 1228 + #pragma pack(pop) 1229 + #endif 1230 + 1231 + #ifdef __MigPackStructs 1232 + #pragma pack(push, 4) 1233 + #endif 1234 + typedef struct { 1235 + mach_msg_header_t Head; 1236 + NDR_record_t NDR; 1237 + kern_return_t RetCode; 1238 + } __Reply__mach_port_allocate_name_t __attribute__((unused)); 1239 + #ifdef __MigPackStructs 1240 + #pragma pack(pop) 1241 + #endif 1242 + 1243 + #ifdef __MigPackStructs 1244 + #pragma pack(push, 4) 1245 + #endif 1246 + typedef struct { 1247 + mach_msg_header_t Head; 1248 + NDR_record_t NDR; 1249 + kern_return_t RetCode; 1250 + mach_port_name_t name; 1251 + } __Reply__mach_port_allocate_t __attribute__((unused)); 1252 + #ifdef __MigPackStructs 1253 + #pragma pack(pop) 1254 + #endif 1255 + 1256 + #ifdef __MigPackStructs 1257 + #pragma pack(push, 4) 1258 + #endif 1259 + typedef struct { 1260 + mach_msg_header_t Head; 1261 + NDR_record_t NDR; 1262 + kern_return_t RetCode; 1263 + } __Reply__mach_port_destroy_t __attribute__((unused)); 1264 + #ifdef __MigPackStructs 1265 + #pragma pack(pop) 1266 + #endif 1267 + 1268 + #ifdef __MigPackStructs 1269 + #pragma pack(push, 4) 1270 + #endif 1271 + typedef struct { 1272 + mach_msg_header_t Head; 1273 + NDR_record_t NDR; 1274 + kern_return_t RetCode; 1275 + } __Reply__mach_port_deallocate_t __attribute__((unused)); 1276 + #ifdef __MigPackStructs 1277 + #pragma pack(pop) 1278 + #endif 1279 + 1280 + #ifdef __MigPackStructs 1281 + #pragma pack(push, 4) 1282 + #endif 1283 + typedef struct { 1284 + mach_msg_header_t Head; 1285 + NDR_record_t NDR; 1286 + kern_return_t RetCode; 1287 + mach_port_urefs_t refs; 1288 + } __Reply__mach_port_get_refs_t __attribute__((unused)); 1289 + #ifdef __MigPackStructs 1290 + #pragma pack(pop) 1291 + #endif 1292 + 1293 + #ifdef __MigPackStructs 1294 + #pragma pack(push, 4) 1295 + #endif 1296 + typedef struct { 1297 + mach_msg_header_t Head; 1298 + NDR_record_t NDR; 1299 + kern_return_t RetCode; 1300 + } __Reply__mach_port_mod_refs_t __attribute__((unused)); 1301 + #ifdef __MigPackStructs 1302 + #pragma pack(pop) 1303 + #endif 1304 + 1305 + #ifdef __MigPackStructs 1306 + #pragma pack(push, 4) 1307 + #endif 1308 + typedef struct { 1309 + mach_msg_header_t Head; 1310 + NDR_record_t NDR; 1311 + kern_return_t RetCode; 1312 + mach_port_seqno_t request_seqnop; 1313 + mach_msg_size_t msg_sizep; 1314 + mach_msg_id_t msg_idp; 1315 + mach_msg_type_number_t trailer_infopCnt; 1316 + char trailer_infop[68]; 1317 + } __Reply__mach_port_peek_t __attribute__((unused)); 1318 + #ifdef __MigPackStructs 1319 + #pragma pack(pop) 1320 + #endif 1321 + 1322 + #ifdef __MigPackStructs 1323 + #pragma pack(push, 4) 1324 + #endif 1325 + typedef struct { 1326 + mach_msg_header_t Head; 1327 + NDR_record_t NDR; 1328 + kern_return_t RetCode; 1329 + } __Reply__mach_port_set_mscount_t __attribute__((unused)); 1330 + #ifdef __MigPackStructs 1331 + #pragma pack(pop) 1332 + #endif 1333 + 1334 + #ifdef __MigPackStructs 1335 + #pragma pack(push, 4) 1336 + #endif 1337 + typedef struct { 1338 + mach_msg_header_t Head; 1339 + /* start of the kernel processed data */ 1340 + mach_msg_body_t msgh_body; 1341 + mach_msg_ool_descriptor_t members; 1342 + /* end of the kernel processed data */ 1343 + NDR_record_t NDR; 1344 + mach_msg_type_number_t membersCnt; 1345 + } __Reply__mach_port_get_set_status_t __attribute__((unused)); 1346 + #ifdef __MigPackStructs 1347 + #pragma pack(pop) 1348 + #endif 1349 + 1350 + #ifdef __MigPackStructs 1351 + #pragma pack(push, 4) 1352 + #endif 1353 + typedef struct { 1354 + mach_msg_header_t Head; 1355 + NDR_record_t NDR; 1356 + kern_return_t RetCode; 1357 + } __Reply__mach_port_move_member_t __attribute__((unused)); 1358 + #ifdef __MigPackStructs 1359 + #pragma pack(pop) 1360 + #endif 1361 + 1362 + #ifdef __MigPackStructs 1363 + #pragma pack(push, 4) 1364 + #endif 1365 + typedef struct { 1366 + mach_msg_header_t Head; 1367 + /* start of the kernel processed data */ 1368 + mach_msg_body_t msgh_body; 1369 + mach_msg_port_descriptor_t previous; 1370 + /* end of the kernel processed data */ 1371 + } __Reply__mach_port_request_notification_t __attribute__((unused)); 1372 + #ifdef __MigPackStructs 1373 + #pragma pack(pop) 1374 + #endif 1375 + 1376 + #ifdef __MigPackStructs 1377 + #pragma pack(push, 4) 1378 + #endif 1379 + typedef struct { 1380 + mach_msg_header_t Head; 1381 + NDR_record_t NDR; 1382 + kern_return_t RetCode; 1383 + } __Reply__mach_port_insert_right_t __attribute__((unused)); 1384 + #ifdef __MigPackStructs 1385 + #pragma pack(pop) 1386 + #endif 1387 + 1388 + #ifdef __MigPackStructs 1389 + #pragma pack(push, 4) 1390 + #endif 1391 + typedef struct { 1392 + mach_msg_header_t Head; 1393 + /* start of the kernel processed data */ 1394 + mach_msg_body_t msgh_body; 1395 + mach_msg_port_descriptor_t poly; 1396 + /* end of the kernel processed data */ 1397 + } __Reply__mach_port_extract_right_t __attribute__((unused)); 1398 + #ifdef __MigPackStructs 1399 + #pragma pack(pop) 1400 + #endif 1401 + 1402 + #ifdef __MigPackStructs 1403 + #pragma pack(push, 4) 1404 + #endif 1405 + typedef struct { 1406 + mach_msg_header_t Head; 1407 + NDR_record_t NDR; 1408 + kern_return_t RetCode; 1409 + } __Reply__mach_port_set_seqno_t __attribute__((unused)); 1410 + #ifdef __MigPackStructs 1411 + #pragma pack(pop) 1412 + #endif 1413 + 1414 + #ifdef __MigPackStructs 1415 + #pragma pack(push, 4) 1416 + #endif 1417 + typedef struct { 1418 + mach_msg_header_t Head; 1419 + NDR_record_t NDR; 1420 + kern_return_t RetCode; 1421 + mach_msg_type_number_t port_info_outCnt; 1422 + integer_t port_info_out[17]; 1423 + } __Reply__mach_port_get_attributes_t __attribute__((unused)); 1424 + #ifdef __MigPackStructs 1425 + #pragma pack(pop) 1426 + #endif 1427 + 1428 + #ifdef __MigPackStructs 1429 + #pragma pack(push, 4) 1430 + #endif 1431 + typedef struct { 1432 + mach_msg_header_t Head; 1433 + NDR_record_t NDR; 1434 + kern_return_t RetCode; 1435 + } __Reply__mach_port_set_attributes_t __attribute__((unused)); 1436 + #ifdef __MigPackStructs 1437 + #pragma pack(pop) 1438 + #endif 1439 + 1440 + #ifdef __MigPackStructs 1441 + #pragma pack(push, 4) 1442 + #endif 1443 + typedef struct { 1444 + mach_msg_header_t Head; 1445 + NDR_record_t NDR; 1446 + kern_return_t RetCode; 1447 + mach_port_qos_t qos; 1448 + mach_port_name_t name; 1449 + } __Reply__mach_port_allocate_qos_t __attribute__((unused)); 1450 + #ifdef __MigPackStructs 1451 + #pragma pack(pop) 1452 + #endif 1453 + 1454 + #ifdef __MigPackStructs 1455 + #pragma pack(push, 4) 1456 + #endif 1457 + typedef struct { 1458 + mach_msg_header_t Head; 1459 + NDR_record_t NDR; 1460 + kern_return_t RetCode; 1461 + mach_port_qos_t qos; 1462 + mach_port_name_t name; 1463 + } __Reply__mach_port_allocate_full_t __attribute__((unused)); 1464 + #ifdef __MigPackStructs 1465 + #pragma pack(pop) 1466 + #endif 1467 + 1468 + #ifdef __MigPackStructs 1469 + #pragma pack(push, 4) 1470 + #endif 1471 + typedef struct { 1472 + mach_msg_header_t Head; 1473 + NDR_record_t NDR; 1474 + kern_return_t RetCode; 1475 + } __Reply__task_set_port_space_t __attribute__((unused)); 1476 + #ifdef __MigPackStructs 1477 + #pragma pack(pop) 1478 + #endif 1479 + 1480 + #ifdef __MigPackStructs 1481 + #pragma pack(push, 4) 1482 + #endif 1483 + typedef struct { 1484 + mach_msg_header_t Head; 1485 + NDR_record_t NDR; 1486 + kern_return_t RetCode; 1487 + mach_port_rights_t srights; 1488 + } __Reply__mach_port_get_srights_t __attribute__((unused)); 1489 + #ifdef __MigPackStructs 1490 + #pragma pack(pop) 1491 + #endif 1492 + 1493 + #ifdef __MigPackStructs 1494 + #pragma pack(push, 4) 1495 + #endif 1496 + typedef struct { 1497 + mach_msg_header_t Head; 1498 + /* start of the kernel processed data */ 1499 + mach_msg_body_t msgh_body; 1500 + mach_msg_ool_descriptor_t table_info; 1501 + mach_msg_ool_descriptor_t tree_info; 1502 + /* end of the kernel processed data */ 1503 + NDR_record_t NDR; 1504 + ipc_info_space_t space_info; 1505 + mach_msg_type_number_t table_infoCnt; 1506 + mach_msg_type_number_t tree_infoCnt; 1507 + } __Reply__mach_port_space_info_t __attribute__((unused)); 1508 + #ifdef __MigPackStructs 1509 + #pragma pack(pop) 1510 + #endif 1511 + 1512 + #ifdef __MigPackStructs 1513 + #pragma pack(push, 4) 1514 + #endif 1515 + typedef struct { 1516 + mach_msg_header_t Head; 1517 + NDR_record_t NDR; 1518 + kern_return_t RetCode; 1519 + unsigned dnr_total; 1520 + unsigned dnr_used; 1521 + } __Reply__mach_port_dnrequest_info_t __attribute__((unused)); 1522 + #ifdef __MigPackStructs 1523 + #pragma pack(pop) 1524 + #endif 1525 + 1526 + #ifdef __MigPackStructs 1527 + #pragma pack(push, 4) 1528 + #endif 1529 + typedef struct { 1530 + mach_msg_header_t Head; 1531 + NDR_record_t NDR; 1532 + kern_return_t RetCode; 1533 + unsigned object_type; 1534 + unsigned object_addr; 1535 + } __Reply__mach_port_kernel_object_t __attribute__((unused)); 1536 + #ifdef __MigPackStructs 1537 + #pragma pack(pop) 1538 + #endif 1539 + 1540 + #ifdef __MigPackStructs 1541 + #pragma pack(push, 4) 1542 + #endif 1543 + typedef struct { 1544 + mach_msg_header_t Head; 1545 + NDR_record_t NDR; 1546 + kern_return_t RetCode; 1547 + } __Reply__mach_port_insert_member_t __attribute__((unused)); 1548 + #ifdef __MigPackStructs 1549 + #pragma pack(pop) 1550 + #endif 1551 + 1552 + #ifdef __MigPackStructs 1553 + #pragma pack(push, 4) 1554 + #endif 1555 + typedef struct { 1556 + mach_msg_header_t Head; 1557 + NDR_record_t NDR; 1558 + kern_return_t RetCode; 1559 + } __Reply__mach_port_extract_member_t __attribute__((unused)); 1560 + #ifdef __MigPackStructs 1561 + #pragma pack(pop) 1562 + #endif 1563 + 1564 + #ifdef __MigPackStructs 1565 + #pragma pack(push, 4) 1566 + #endif 1567 + typedef struct { 1568 + mach_msg_header_t Head; 1569 + NDR_record_t NDR; 1570 + kern_return_t RetCode; 1571 + mach_port_context_t context; 1572 + } __Reply__mach_port_get_context_t __attribute__((unused)); 1573 + #ifdef __MigPackStructs 1574 + #pragma pack(pop) 1575 + #endif 1576 + 1577 + #ifdef __MigPackStructs 1578 + #pragma pack(push, 4) 1579 + #endif 1580 + typedef struct { 1581 + mach_msg_header_t Head; 1582 + NDR_record_t NDR; 1583 + kern_return_t RetCode; 1584 + } __Reply__mach_port_set_context_t __attribute__((unused)); 1585 + #ifdef __MigPackStructs 1586 + #pragma pack(pop) 1587 + #endif 1588 + 1589 + #ifdef __MigPackStructs 1590 + #pragma pack(push, 4) 1591 + #endif 1592 + typedef struct { 1593 + mach_msg_header_t Head; 1594 + NDR_record_t NDR; 1595 + kern_return_t RetCode; 1596 + natural_t object_type; 1597 + mach_vm_address_t object_addr; 1598 + } __Reply__mach_port_kobject_t __attribute__((unused)); 1599 + #ifdef __MigPackStructs 1600 + #pragma pack(pop) 1601 + #endif 1602 + 1603 + #ifdef __MigPackStructs 1604 + #pragma pack(push, 4) 1605 + #endif 1606 + typedef struct { 1607 + mach_msg_header_t Head; 1608 + NDR_record_t NDR; 1609 + kern_return_t RetCode; 1610 + mach_port_name_t name; 1611 + } __Reply__mach_port_construct_t __attribute__((unused)); 1612 + #ifdef __MigPackStructs 1613 + #pragma pack(pop) 1614 + #endif 1615 + 1616 + #ifdef __MigPackStructs 1617 + #pragma pack(push, 4) 1618 + #endif 1619 + typedef struct { 1620 + mach_msg_header_t Head; 1621 + NDR_record_t NDR; 1622 + kern_return_t RetCode; 1623 + } __Reply__mach_port_destruct_t __attribute__((unused)); 1624 + #ifdef __MigPackStructs 1625 + #pragma pack(pop) 1626 + #endif 1627 + 1628 + #ifdef __MigPackStructs 1629 + #pragma pack(push, 4) 1630 + #endif 1631 + typedef struct { 1632 + mach_msg_header_t Head; 1633 + NDR_record_t NDR; 1634 + kern_return_t RetCode; 1635 + } __Reply__mach_port_guard_t __attribute__((unused)); 1636 + #ifdef __MigPackStructs 1637 + #pragma pack(pop) 1638 + #endif 1639 + 1640 + #ifdef __MigPackStructs 1641 + #pragma pack(push, 4) 1642 + #endif 1643 + typedef struct { 1644 + mach_msg_header_t Head; 1645 + NDR_record_t NDR; 1646 + kern_return_t RetCode; 1647 + } __Reply__mach_port_unguard_t __attribute__((unused)); 1648 + #ifdef __MigPackStructs 1649 + #pragma pack(pop) 1650 + #endif 1651 + 1652 + #ifdef __MigPackStructs 1653 + #pragma pack(push, 4) 1654 + #endif 1655 + typedef struct { 1656 + mach_msg_header_t Head; 1657 + NDR_record_t NDR; 1658 + kern_return_t RetCode; 1659 + ipc_info_space_basic_t basic_info; 1660 + } __Reply__mach_port_space_basic_info_t __attribute__((unused)); 1661 + #ifdef __MigPackStructs 1662 + #pragma pack(pop) 1663 + #endif 1664 + 1665 + #ifdef __MigPackStructs 1666 + #pragma pack(push, 4) 1667 + #endif 1668 + typedef struct { 1669 + mach_msg_header_t Head; 1670 + NDR_record_t NDR; 1671 + kern_return_t RetCode; 1672 + } __Reply__mach_port_guard_with_flags_t __attribute__((unused)); 1673 + #ifdef __MigPackStructs 1674 + #pragma pack(pop) 1675 + #endif 1676 + 1677 + #ifdef __MigPackStructs 1678 + #pragma pack(push, 4) 1679 + #endif 1680 + typedef struct { 1681 + mach_msg_header_t Head; 1682 + NDR_record_t NDR; 1683 + kern_return_t RetCode; 1684 + } __Reply__mach_port_swap_guard_t __attribute__((unused)); 1685 + #ifdef __MigPackStructs 1686 + #pragma pack(pop) 1687 + #endif 1688 + #endif /* !__Reply__mach_port_subsystem__defined */ 1689 + 1690 + /* union of all replies */ 1691 + 1692 + #ifndef __ReplyUnion__mach_port_subsystem__defined 1693 + #define __ReplyUnion__mach_port_subsystem__defined 1694 + union __ReplyUnion__mach_port_subsystem { 1695 + __Reply__mach_port_names_t Reply_mach_port_names; 1696 + __Reply__mach_port_type_t Reply_mach_port_type; 1697 + __Reply__mach_port_rename_t Reply_mach_port_rename; 1698 + __Reply__mach_port_allocate_name_t Reply_mach_port_allocate_name; 1699 + __Reply__mach_port_allocate_t Reply_mach_port_allocate; 1700 + __Reply__mach_port_destroy_t Reply_mach_port_destroy; 1701 + __Reply__mach_port_deallocate_t Reply_mach_port_deallocate; 1702 + __Reply__mach_port_get_refs_t Reply_mach_port_get_refs; 1703 + __Reply__mach_port_mod_refs_t Reply_mach_port_mod_refs; 1704 + __Reply__mach_port_peek_t Reply_mach_port_peek; 1705 + __Reply__mach_port_set_mscount_t Reply_mach_port_set_mscount; 1706 + __Reply__mach_port_get_set_status_t Reply_mach_port_get_set_status; 1707 + __Reply__mach_port_move_member_t Reply_mach_port_move_member; 1708 + __Reply__mach_port_request_notification_t Reply_mach_port_request_notification; 1709 + __Reply__mach_port_insert_right_t Reply_mach_port_insert_right; 1710 + __Reply__mach_port_extract_right_t Reply_mach_port_extract_right; 1711 + __Reply__mach_port_set_seqno_t Reply_mach_port_set_seqno; 1712 + __Reply__mach_port_get_attributes_t Reply_mach_port_get_attributes; 1713 + __Reply__mach_port_set_attributes_t Reply_mach_port_set_attributes; 1714 + __Reply__mach_port_allocate_qos_t Reply_mach_port_allocate_qos; 1715 + __Reply__mach_port_allocate_full_t Reply_mach_port_allocate_full; 1716 + __Reply__task_set_port_space_t Reply_task_set_port_space; 1717 + __Reply__mach_port_get_srights_t Reply_mach_port_get_srights; 1718 + __Reply__mach_port_space_info_t Reply_mach_port_space_info; 1719 + __Reply__mach_port_dnrequest_info_t Reply_mach_port_dnrequest_info; 1720 + __Reply__mach_port_kernel_object_t Reply_mach_port_kernel_object; 1721 + __Reply__mach_port_insert_member_t Reply_mach_port_insert_member; 1722 + __Reply__mach_port_extract_member_t Reply_mach_port_extract_member; 1723 + __Reply__mach_port_get_context_t Reply_mach_port_get_context; 1724 + __Reply__mach_port_set_context_t Reply_mach_port_set_context; 1725 + __Reply__mach_port_kobject_t Reply_mach_port_kobject; 1726 + __Reply__mach_port_construct_t Reply_mach_port_construct; 1727 + __Reply__mach_port_destruct_t Reply_mach_port_destruct; 1728 + __Reply__mach_port_guard_t Reply_mach_port_guard; 1729 + __Reply__mach_port_unguard_t Reply_mach_port_unguard; 1730 + __Reply__mach_port_space_basic_info_t Reply_mach_port_space_basic_info; 1731 + __Reply__mach_port_guard_with_flags_t Reply_mach_port_guard_with_flags; 1732 + __Reply__mach_port_swap_guard_t Reply_mach_port_swap_guard; 1733 + }; 1734 + #endif /* !__RequestUnion__mach_port_subsystem__defined */ 1735 + 1736 + #ifndef subsystem_to_name_map_mach_port 1737 + #define subsystem_to_name_map_mach_port \ 1738 + { "mach_port_names", 3200 },\ 1739 + { "mach_port_type", 3201 },\ 1740 + { "mach_port_rename", 3202 },\ 1741 + { "mach_port_allocate_name", 3203 },\ 1742 + { "mach_port_allocate", 3204 },\ 1743 + { "mach_port_destroy", 3205 },\ 1744 + { "mach_port_deallocate", 3206 },\ 1745 + { "mach_port_get_refs", 3207 },\ 1746 + { "mach_port_mod_refs", 3208 },\ 1747 + { "mach_port_peek", 3209 },\ 1748 + { "mach_port_set_mscount", 3210 },\ 1749 + { "mach_port_get_set_status", 3211 },\ 1750 + { "mach_port_move_member", 3212 },\ 1751 + { "mach_port_request_notification", 3213 },\ 1752 + { "mach_port_insert_right", 3214 },\ 1753 + { "mach_port_extract_right", 3215 },\ 1754 + { "mach_port_set_seqno", 3216 },\ 1755 + { "mach_port_get_attributes", 3217 },\ 1756 + { "mach_port_set_attributes", 3218 },\ 1757 + { "mach_port_allocate_qos", 3219 },\ 1758 + { "mach_port_allocate_full", 3220 },\ 1759 + { "task_set_port_space", 3221 },\ 1760 + { "mach_port_get_srights", 3222 },\ 1761 + { "mach_port_space_info", 3223 },\ 1762 + { "mach_port_dnrequest_info", 3224 },\ 1763 + { "mach_port_kernel_object", 3225 },\ 1764 + { "mach_port_insert_member", 3226 },\ 1765 + { "mach_port_extract_member", 3227 },\ 1766 + { "mach_port_get_context", 3228 },\ 1767 + { "mach_port_set_context", 3229 },\ 1768 + { "mach_port_kobject", 3230 },\ 1769 + { "mach_port_construct", 3231 },\ 1770 + { "mach_port_destruct", 3232 },\ 1771 + { "mach_port_guard", 3233 },\ 1772 + { "mach_port_unguard", 3234 },\ 1773 + { "mach_port_space_basic_info", 3235 },\ 1774 + { "mach_port_guard_with_flags", 3237 },\ 1775 + { "mach_port_swap_guard", 3238 } 1776 + #endif 1777 + 1778 + #ifdef __AfterMigUserHeader 1779 + __AfterMigUserHeader 1780 + #endif /* __AfterMigUserHeader */ 1781 + 1782 + #endif /* _mach_port_user_ */
+1127
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/mach_vm.h
··· 1 + #ifndef _mach_vm_user_ 2 + #define _mach_vm_user_ 3 + 4 + /* Module mach_vm */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef mach_vm_MSG_COUNT 77 + #define mach_vm_MSG_COUNT 21 78 + #endif /* mach_vm_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + #include <mach_debug/mach_debug_types.h> 85 + 86 + #ifdef __BeforeMigUserHeader 87 + __BeforeMigUserHeader 88 + #endif /* __BeforeMigUserHeader */ 89 + 90 + #include <sys/cdefs.h> 91 + __BEGIN_DECLS 92 + 93 + 94 + /* Routine mach_vm_allocate */ 95 + #ifdef mig_external 96 + mig_external 97 + #else 98 + extern 99 + #endif /* mig_external */ 100 + kern_return_t mach_vm_allocate 101 + ( 102 + vm_map_t target, 103 + mach_vm_address_t *address, 104 + mach_vm_size_t size, 105 + int flags 106 + ); 107 + 108 + /* Routine mach_vm_deallocate */ 109 + #ifdef mig_external 110 + mig_external 111 + #else 112 + extern 113 + #endif /* mig_external */ 114 + kern_return_t mach_vm_deallocate 115 + ( 116 + vm_map_t target, 117 + mach_vm_address_t address, 118 + mach_vm_size_t size 119 + ); 120 + 121 + /* Routine mach_vm_protect */ 122 + #ifdef mig_external 123 + mig_external 124 + #else 125 + extern 126 + #endif /* mig_external */ 127 + kern_return_t mach_vm_protect 128 + ( 129 + vm_map_t target_task, 130 + mach_vm_address_t address, 131 + mach_vm_size_t size, 132 + boolean_t set_maximum, 133 + vm_prot_t new_protection 134 + ); 135 + 136 + /* Routine mach_vm_inherit */ 137 + #ifdef mig_external 138 + mig_external 139 + #else 140 + extern 141 + #endif /* mig_external */ 142 + kern_return_t mach_vm_inherit 143 + ( 144 + vm_map_t target_task, 145 + mach_vm_address_t address, 146 + mach_vm_size_t size, 147 + vm_inherit_t new_inheritance 148 + ); 149 + 150 + /* Routine mach_vm_read */ 151 + #ifdef mig_external 152 + mig_external 153 + #else 154 + extern 155 + #endif /* mig_external */ 156 + kern_return_t mach_vm_read 157 + ( 158 + vm_map_t target_task, 159 + mach_vm_address_t address, 160 + mach_vm_size_t size, 161 + vm_offset_t *data, 162 + mach_msg_type_number_t *dataCnt 163 + ); 164 + 165 + /* Routine mach_vm_read_list */ 166 + #ifdef mig_external 167 + mig_external 168 + #else 169 + extern 170 + #endif /* mig_external */ 171 + kern_return_t mach_vm_read_list 172 + ( 173 + vm_map_t target_task, 174 + mach_vm_read_entry_t data_list, 175 + natural_t count 176 + ); 177 + 178 + /* Routine mach_vm_write */ 179 + #ifdef mig_external 180 + mig_external 181 + #else 182 + extern 183 + #endif /* mig_external */ 184 + kern_return_t mach_vm_write 185 + ( 186 + vm_map_t target_task, 187 + mach_vm_address_t address, 188 + vm_offset_t data, 189 + mach_msg_type_number_t dataCnt 190 + ); 191 + 192 + /* Routine mach_vm_copy */ 193 + #ifdef mig_external 194 + mig_external 195 + #else 196 + extern 197 + #endif /* mig_external */ 198 + kern_return_t mach_vm_copy 199 + ( 200 + vm_map_t target_task, 201 + mach_vm_address_t source_address, 202 + mach_vm_size_t size, 203 + mach_vm_address_t dest_address 204 + ); 205 + 206 + /* Routine mach_vm_read_overwrite */ 207 + #ifdef mig_external 208 + mig_external 209 + #else 210 + extern 211 + #endif /* mig_external */ 212 + kern_return_t mach_vm_read_overwrite 213 + ( 214 + vm_map_t target_task, 215 + mach_vm_address_t address, 216 + mach_vm_size_t size, 217 + mach_vm_address_t data, 218 + mach_vm_size_t *outsize 219 + ); 220 + 221 + /* Routine mach_vm_msync */ 222 + #ifdef mig_external 223 + mig_external 224 + #else 225 + extern 226 + #endif /* mig_external */ 227 + kern_return_t mach_vm_msync 228 + ( 229 + vm_map_t target_task, 230 + mach_vm_address_t address, 231 + mach_vm_size_t size, 232 + vm_sync_t sync_flags 233 + ); 234 + 235 + /* Routine mach_vm_behavior_set */ 236 + #ifdef mig_external 237 + mig_external 238 + #else 239 + extern 240 + #endif /* mig_external */ 241 + kern_return_t mach_vm_behavior_set 242 + ( 243 + vm_map_t target_task, 244 + mach_vm_address_t address, 245 + mach_vm_size_t size, 246 + vm_behavior_t new_behavior 247 + ); 248 + 249 + /* Routine mach_vm_map */ 250 + #ifdef mig_external 251 + mig_external 252 + #else 253 + extern 254 + #endif /* mig_external */ 255 + kern_return_t mach_vm_map 256 + ( 257 + vm_map_t target_task, 258 + mach_vm_address_t *address, 259 + mach_vm_size_t size, 260 + mach_vm_offset_t mask, 261 + int flags, 262 + mem_entry_name_port_t object, 263 + memory_object_offset_t offset, 264 + boolean_t copy, 265 + vm_prot_t cur_protection, 266 + vm_prot_t max_protection, 267 + vm_inherit_t inheritance 268 + ); 269 + 270 + /* Routine mach_vm_machine_attribute */ 271 + #ifdef mig_external 272 + mig_external 273 + #else 274 + extern 275 + #endif /* mig_external */ 276 + kern_return_t mach_vm_machine_attribute 277 + ( 278 + vm_map_t target_task, 279 + mach_vm_address_t address, 280 + mach_vm_size_t size, 281 + vm_machine_attribute_t attribute, 282 + vm_machine_attribute_val_t *value 283 + ); 284 + 285 + /* Routine mach_vm_remap */ 286 + #ifdef mig_external 287 + mig_external 288 + #else 289 + extern 290 + #endif /* mig_external */ 291 + kern_return_t mach_vm_remap 292 + ( 293 + vm_map_t target_task, 294 + mach_vm_address_t *target_address, 295 + mach_vm_size_t size, 296 + mach_vm_offset_t mask, 297 + int flags, 298 + vm_map_t src_task, 299 + mach_vm_address_t src_address, 300 + boolean_t copy, 301 + vm_prot_t *cur_protection, 302 + vm_prot_t *max_protection, 303 + vm_inherit_t inheritance 304 + ); 305 + 306 + /* Routine mach_vm_page_query */ 307 + #ifdef mig_external 308 + mig_external 309 + #else 310 + extern 311 + #endif /* mig_external */ 312 + kern_return_t mach_vm_page_query 313 + ( 314 + vm_map_t target_map, 315 + mach_vm_offset_t offset, 316 + integer_t *disposition, 317 + integer_t *ref_count 318 + ); 319 + 320 + /* Routine mach_vm_region_recurse */ 321 + #ifdef mig_external 322 + mig_external 323 + #else 324 + extern 325 + #endif /* mig_external */ 326 + kern_return_t mach_vm_region_recurse 327 + ( 328 + vm_map_t target_task, 329 + mach_vm_address_t *address, 330 + mach_vm_size_t *size, 331 + natural_t *nesting_depth, 332 + vm_region_recurse_info_t info, 333 + mach_msg_type_number_t *infoCnt 334 + ); 335 + 336 + /* Routine mach_vm_region */ 337 + #ifdef mig_external 338 + mig_external 339 + #else 340 + extern 341 + #endif /* mig_external */ 342 + kern_return_t mach_vm_region 343 + ( 344 + vm_map_t target_task, 345 + mach_vm_address_t *address, 346 + mach_vm_size_t *size, 347 + vm_region_flavor_t flavor, 348 + vm_region_info_t info, 349 + mach_msg_type_number_t *infoCnt, 350 + mach_port_t *object_name 351 + ); 352 + 353 + /* Routine _mach_make_memory_entry */ 354 + #ifdef mig_external 355 + mig_external 356 + #else 357 + extern 358 + #endif /* mig_external */ 359 + kern_return_t _mach_make_memory_entry 360 + ( 361 + vm_map_t target_task, 362 + memory_object_size_t *size, 363 + memory_object_offset_t offset, 364 + vm_prot_t permission, 365 + mem_entry_name_port_t *object_handle, 366 + mem_entry_name_port_t parent_handle 367 + ); 368 + 369 + /* Routine mach_vm_purgable_control */ 370 + #ifdef mig_external 371 + mig_external 372 + #else 373 + extern 374 + #endif /* mig_external */ 375 + kern_return_t mach_vm_purgable_control 376 + ( 377 + vm_map_t target_task, 378 + mach_vm_address_t address, 379 + vm_purgable_t control, 380 + int *state 381 + ); 382 + 383 + /* Routine mach_vm_page_info */ 384 + #ifdef mig_external 385 + mig_external 386 + #else 387 + extern 388 + #endif /* mig_external */ 389 + kern_return_t mach_vm_page_info 390 + ( 391 + vm_map_t target_task, 392 + mach_vm_address_t address, 393 + vm_page_info_flavor_t flavor, 394 + vm_page_info_t info, 395 + mach_msg_type_number_t *infoCnt 396 + ); 397 + 398 + /* Routine mach_vm_page_range_query */ 399 + #ifdef mig_external 400 + mig_external 401 + #else 402 + extern 403 + #endif /* mig_external */ 404 + kern_return_t mach_vm_page_range_query 405 + ( 406 + vm_map_t target_map, 407 + mach_vm_offset_t address, 408 + mach_vm_size_t size, 409 + mach_vm_address_t dispositions, 410 + mach_vm_size_t *dispositions_count 411 + ); 412 + 413 + __END_DECLS 414 + 415 + /********************** Caution **************************/ 416 + /* The following data types should be used to calculate */ 417 + /* maximum message sizes only. The actual message may be */ 418 + /* smaller, and the position of the arguments within the */ 419 + /* message layout may vary from what is presented here. */ 420 + /* For example, if any of the arguments are variable- */ 421 + /* sized, and less than the maximum is sent, the data */ 422 + /* will be packed tight in the actual message to reduce */ 423 + /* the presence of holes. */ 424 + /********************** Caution **************************/ 425 + 426 + /* typedefs for all requests */ 427 + 428 + #ifndef __Request__mach_vm_subsystem__defined 429 + #define __Request__mach_vm_subsystem__defined 430 + 431 + #ifdef __MigPackStructs 432 + #pragma pack(push, 4) 433 + #endif 434 + typedef struct { 435 + mach_msg_header_t Head; 436 + NDR_record_t NDR; 437 + mach_vm_address_t address; 438 + mach_vm_size_t size; 439 + int flags; 440 + } __Request__mach_vm_allocate_t __attribute__((unused)); 441 + #ifdef __MigPackStructs 442 + #pragma pack(pop) 443 + #endif 444 + 445 + #ifdef __MigPackStructs 446 + #pragma pack(push, 4) 447 + #endif 448 + typedef struct { 449 + mach_msg_header_t Head; 450 + NDR_record_t NDR; 451 + mach_vm_address_t address; 452 + mach_vm_size_t size; 453 + } __Request__mach_vm_deallocate_t __attribute__((unused)); 454 + #ifdef __MigPackStructs 455 + #pragma pack(pop) 456 + #endif 457 + 458 + #ifdef __MigPackStructs 459 + #pragma pack(push, 4) 460 + #endif 461 + typedef struct { 462 + mach_msg_header_t Head; 463 + NDR_record_t NDR; 464 + mach_vm_address_t address; 465 + mach_vm_size_t size; 466 + boolean_t set_maximum; 467 + vm_prot_t new_protection; 468 + } __Request__mach_vm_protect_t __attribute__((unused)); 469 + #ifdef __MigPackStructs 470 + #pragma pack(pop) 471 + #endif 472 + 473 + #ifdef __MigPackStructs 474 + #pragma pack(push, 4) 475 + #endif 476 + typedef struct { 477 + mach_msg_header_t Head; 478 + NDR_record_t NDR; 479 + mach_vm_address_t address; 480 + mach_vm_size_t size; 481 + vm_inherit_t new_inheritance; 482 + } __Request__mach_vm_inherit_t __attribute__((unused)); 483 + #ifdef __MigPackStructs 484 + #pragma pack(pop) 485 + #endif 486 + 487 + #ifdef __MigPackStructs 488 + #pragma pack(push, 4) 489 + #endif 490 + typedef struct { 491 + mach_msg_header_t Head; 492 + NDR_record_t NDR; 493 + mach_vm_address_t address; 494 + mach_vm_size_t size; 495 + } __Request__mach_vm_read_t __attribute__((unused)); 496 + #ifdef __MigPackStructs 497 + #pragma pack(pop) 498 + #endif 499 + 500 + #ifdef __MigPackStructs 501 + #pragma pack(push, 4) 502 + #endif 503 + typedef struct { 504 + mach_msg_header_t Head; 505 + NDR_record_t NDR; 506 + mach_vm_read_entry_t data_list; 507 + natural_t count; 508 + } __Request__mach_vm_read_list_t __attribute__((unused)); 509 + #ifdef __MigPackStructs 510 + #pragma pack(pop) 511 + #endif 512 + 513 + #ifdef __MigPackStructs 514 + #pragma pack(push, 4) 515 + #endif 516 + typedef struct { 517 + mach_msg_header_t Head; 518 + /* start of the kernel processed data */ 519 + mach_msg_body_t msgh_body; 520 + mach_msg_ool_descriptor_t data; 521 + /* end of the kernel processed data */ 522 + NDR_record_t NDR; 523 + mach_vm_address_t address; 524 + mach_msg_type_number_t dataCnt; 525 + } __Request__mach_vm_write_t __attribute__((unused)); 526 + #ifdef __MigPackStructs 527 + #pragma pack(pop) 528 + #endif 529 + 530 + #ifdef __MigPackStructs 531 + #pragma pack(push, 4) 532 + #endif 533 + typedef struct { 534 + mach_msg_header_t Head; 535 + NDR_record_t NDR; 536 + mach_vm_address_t source_address; 537 + mach_vm_size_t size; 538 + mach_vm_address_t dest_address; 539 + } __Request__mach_vm_copy_t __attribute__((unused)); 540 + #ifdef __MigPackStructs 541 + #pragma pack(pop) 542 + #endif 543 + 544 + #ifdef __MigPackStructs 545 + #pragma pack(push, 4) 546 + #endif 547 + typedef struct { 548 + mach_msg_header_t Head; 549 + NDR_record_t NDR; 550 + mach_vm_address_t address; 551 + mach_vm_size_t size; 552 + mach_vm_address_t data; 553 + } __Request__mach_vm_read_overwrite_t __attribute__((unused)); 554 + #ifdef __MigPackStructs 555 + #pragma pack(pop) 556 + #endif 557 + 558 + #ifdef __MigPackStructs 559 + #pragma pack(push, 4) 560 + #endif 561 + typedef struct { 562 + mach_msg_header_t Head; 563 + NDR_record_t NDR; 564 + mach_vm_address_t address; 565 + mach_vm_size_t size; 566 + vm_sync_t sync_flags; 567 + } __Request__mach_vm_msync_t __attribute__((unused)); 568 + #ifdef __MigPackStructs 569 + #pragma pack(pop) 570 + #endif 571 + 572 + #ifdef __MigPackStructs 573 + #pragma pack(push, 4) 574 + #endif 575 + typedef struct { 576 + mach_msg_header_t Head; 577 + NDR_record_t NDR; 578 + mach_vm_address_t address; 579 + mach_vm_size_t size; 580 + vm_behavior_t new_behavior; 581 + } __Request__mach_vm_behavior_set_t __attribute__((unused)); 582 + #ifdef __MigPackStructs 583 + #pragma pack(pop) 584 + #endif 585 + 586 + #ifdef __MigPackStructs 587 + #pragma pack(push, 4) 588 + #endif 589 + typedef struct { 590 + mach_msg_header_t Head; 591 + /* start of the kernel processed data */ 592 + mach_msg_body_t msgh_body; 593 + mach_msg_port_descriptor_t object; 594 + /* end of the kernel processed data */ 595 + NDR_record_t NDR; 596 + mach_vm_address_t address; 597 + mach_vm_size_t size; 598 + mach_vm_offset_t mask; 599 + int flags; 600 + memory_object_offset_t offset; 601 + boolean_t copy; 602 + vm_prot_t cur_protection; 603 + vm_prot_t max_protection; 604 + vm_inherit_t inheritance; 605 + } __Request__mach_vm_map_t __attribute__((unused)); 606 + #ifdef __MigPackStructs 607 + #pragma pack(pop) 608 + #endif 609 + 610 + #ifdef __MigPackStructs 611 + #pragma pack(push, 4) 612 + #endif 613 + typedef struct { 614 + mach_msg_header_t Head; 615 + NDR_record_t NDR; 616 + mach_vm_address_t address; 617 + mach_vm_size_t size; 618 + vm_machine_attribute_t attribute; 619 + vm_machine_attribute_val_t value; 620 + } __Request__mach_vm_machine_attribute_t __attribute__((unused)); 621 + #ifdef __MigPackStructs 622 + #pragma pack(pop) 623 + #endif 624 + 625 + #ifdef __MigPackStructs 626 + #pragma pack(push, 4) 627 + #endif 628 + typedef struct { 629 + mach_msg_header_t Head; 630 + /* start of the kernel processed data */ 631 + mach_msg_body_t msgh_body; 632 + mach_msg_port_descriptor_t src_task; 633 + /* end of the kernel processed data */ 634 + NDR_record_t NDR; 635 + mach_vm_address_t target_address; 636 + mach_vm_size_t size; 637 + mach_vm_offset_t mask; 638 + int flags; 639 + mach_vm_address_t src_address; 640 + boolean_t copy; 641 + vm_inherit_t inheritance; 642 + } __Request__mach_vm_remap_t __attribute__((unused)); 643 + #ifdef __MigPackStructs 644 + #pragma pack(pop) 645 + #endif 646 + 647 + #ifdef __MigPackStructs 648 + #pragma pack(push, 4) 649 + #endif 650 + typedef struct { 651 + mach_msg_header_t Head; 652 + NDR_record_t NDR; 653 + mach_vm_offset_t offset; 654 + } __Request__mach_vm_page_query_t __attribute__((unused)); 655 + #ifdef __MigPackStructs 656 + #pragma pack(pop) 657 + #endif 658 + 659 + #ifdef __MigPackStructs 660 + #pragma pack(push, 4) 661 + #endif 662 + typedef struct { 663 + mach_msg_header_t Head; 664 + NDR_record_t NDR; 665 + mach_vm_address_t address; 666 + natural_t nesting_depth; 667 + mach_msg_type_number_t infoCnt; 668 + } __Request__mach_vm_region_recurse_t __attribute__((unused)); 669 + #ifdef __MigPackStructs 670 + #pragma pack(pop) 671 + #endif 672 + 673 + #ifdef __MigPackStructs 674 + #pragma pack(push, 4) 675 + #endif 676 + typedef struct { 677 + mach_msg_header_t Head; 678 + NDR_record_t NDR; 679 + mach_vm_address_t address; 680 + vm_region_flavor_t flavor; 681 + mach_msg_type_number_t infoCnt; 682 + } __Request__mach_vm_region_t __attribute__((unused)); 683 + #ifdef __MigPackStructs 684 + #pragma pack(pop) 685 + #endif 686 + 687 + #ifdef __MigPackStructs 688 + #pragma pack(push, 4) 689 + #endif 690 + typedef struct { 691 + mach_msg_header_t Head; 692 + /* start of the kernel processed data */ 693 + mach_msg_body_t msgh_body; 694 + mach_msg_port_descriptor_t parent_handle; 695 + /* end of the kernel processed data */ 696 + NDR_record_t NDR; 697 + memory_object_size_t size; 698 + memory_object_offset_t offset; 699 + vm_prot_t permission; 700 + } __Request___mach_make_memory_entry_t __attribute__((unused)); 701 + #ifdef __MigPackStructs 702 + #pragma pack(pop) 703 + #endif 704 + 705 + #ifdef __MigPackStructs 706 + #pragma pack(push, 4) 707 + #endif 708 + typedef struct { 709 + mach_msg_header_t Head; 710 + NDR_record_t NDR; 711 + mach_vm_address_t address; 712 + vm_purgable_t control; 713 + int state; 714 + } __Request__mach_vm_purgable_control_t __attribute__((unused)); 715 + #ifdef __MigPackStructs 716 + #pragma pack(pop) 717 + #endif 718 + 719 + #ifdef __MigPackStructs 720 + #pragma pack(push, 4) 721 + #endif 722 + typedef struct { 723 + mach_msg_header_t Head; 724 + NDR_record_t NDR; 725 + mach_vm_address_t address; 726 + vm_page_info_flavor_t flavor; 727 + mach_msg_type_number_t infoCnt; 728 + } __Request__mach_vm_page_info_t __attribute__((unused)); 729 + #ifdef __MigPackStructs 730 + #pragma pack(pop) 731 + #endif 732 + 733 + #ifdef __MigPackStructs 734 + #pragma pack(push, 4) 735 + #endif 736 + typedef struct { 737 + mach_msg_header_t Head; 738 + NDR_record_t NDR; 739 + mach_vm_offset_t address; 740 + mach_vm_size_t size; 741 + mach_vm_address_t dispositions; 742 + mach_vm_size_t dispositions_count; 743 + } __Request__mach_vm_page_range_query_t __attribute__((unused)); 744 + #ifdef __MigPackStructs 745 + #pragma pack(pop) 746 + #endif 747 + #endif /* !__Request__mach_vm_subsystem__defined */ 748 + 749 + /* union of all requests */ 750 + 751 + #ifndef __RequestUnion__mach_vm_subsystem__defined 752 + #define __RequestUnion__mach_vm_subsystem__defined 753 + union __RequestUnion__mach_vm_subsystem { 754 + __Request__mach_vm_allocate_t Request_mach_vm_allocate; 755 + __Request__mach_vm_deallocate_t Request_mach_vm_deallocate; 756 + __Request__mach_vm_protect_t Request_mach_vm_protect; 757 + __Request__mach_vm_inherit_t Request_mach_vm_inherit; 758 + __Request__mach_vm_read_t Request_mach_vm_read; 759 + __Request__mach_vm_read_list_t Request_mach_vm_read_list; 760 + __Request__mach_vm_write_t Request_mach_vm_write; 761 + __Request__mach_vm_copy_t Request_mach_vm_copy; 762 + __Request__mach_vm_read_overwrite_t Request_mach_vm_read_overwrite; 763 + __Request__mach_vm_msync_t Request_mach_vm_msync; 764 + __Request__mach_vm_behavior_set_t Request_mach_vm_behavior_set; 765 + __Request__mach_vm_map_t Request_mach_vm_map; 766 + __Request__mach_vm_machine_attribute_t Request_mach_vm_machine_attribute; 767 + __Request__mach_vm_remap_t Request_mach_vm_remap; 768 + __Request__mach_vm_page_query_t Request_mach_vm_page_query; 769 + __Request__mach_vm_region_recurse_t Request_mach_vm_region_recurse; 770 + __Request__mach_vm_region_t Request_mach_vm_region; 771 + __Request___mach_make_memory_entry_t Request__mach_make_memory_entry; 772 + __Request__mach_vm_purgable_control_t Request_mach_vm_purgable_control; 773 + __Request__mach_vm_page_info_t Request_mach_vm_page_info; 774 + __Request__mach_vm_page_range_query_t Request_mach_vm_page_range_query; 775 + }; 776 + #endif /* !__RequestUnion__mach_vm_subsystem__defined */ 777 + /* typedefs for all replies */ 778 + 779 + #ifndef __Reply__mach_vm_subsystem__defined 780 + #define __Reply__mach_vm_subsystem__defined 781 + 782 + #ifdef __MigPackStructs 783 + #pragma pack(push, 4) 784 + #endif 785 + typedef struct { 786 + mach_msg_header_t Head; 787 + NDR_record_t NDR; 788 + kern_return_t RetCode; 789 + mach_vm_address_t address; 790 + } __Reply__mach_vm_allocate_t __attribute__((unused)); 791 + #ifdef __MigPackStructs 792 + #pragma pack(pop) 793 + #endif 794 + 795 + #ifdef __MigPackStructs 796 + #pragma pack(push, 4) 797 + #endif 798 + typedef struct { 799 + mach_msg_header_t Head; 800 + NDR_record_t NDR; 801 + kern_return_t RetCode; 802 + } __Reply__mach_vm_deallocate_t __attribute__((unused)); 803 + #ifdef __MigPackStructs 804 + #pragma pack(pop) 805 + #endif 806 + 807 + #ifdef __MigPackStructs 808 + #pragma pack(push, 4) 809 + #endif 810 + typedef struct { 811 + mach_msg_header_t Head; 812 + NDR_record_t NDR; 813 + kern_return_t RetCode; 814 + } __Reply__mach_vm_protect_t __attribute__((unused)); 815 + #ifdef __MigPackStructs 816 + #pragma pack(pop) 817 + #endif 818 + 819 + #ifdef __MigPackStructs 820 + #pragma pack(push, 4) 821 + #endif 822 + typedef struct { 823 + mach_msg_header_t Head; 824 + NDR_record_t NDR; 825 + kern_return_t RetCode; 826 + } __Reply__mach_vm_inherit_t __attribute__((unused)); 827 + #ifdef __MigPackStructs 828 + #pragma pack(pop) 829 + #endif 830 + 831 + #ifdef __MigPackStructs 832 + #pragma pack(push, 4) 833 + #endif 834 + typedef struct { 835 + mach_msg_header_t Head; 836 + /* start of the kernel processed data */ 837 + mach_msg_body_t msgh_body; 838 + mach_msg_ool_descriptor_t data; 839 + /* end of the kernel processed data */ 840 + NDR_record_t NDR; 841 + mach_msg_type_number_t dataCnt; 842 + } __Reply__mach_vm_read_t __attribute__((unused)); 843 + #ifdef __MigPackStructs 844 + #pragma pack(pop) 845 + #endif 846 + 847 + #ifdef __MigPackStructs 848 + #pragma pack(push, 4) 849 + #endif 850 + typedef struct { 851 + mach_msg_header_t Head; 852 + NDR_record_t NDR; 853 + kern_return_t RetCode; 854 + mach_vm_read_entry_t data_list; 855 + } __Reply__mach_vm_read_list_t __attribute__((unused)); 856 + #ifdef __MigPackStructs 857 + #pragma pack(pop) 858 + #endif 859 + 860 + #ifdef __MigPackStructs 861 + #pragma pack(push, 4) 862 + #endif 863 + typedef struct { 864 + mach_msg_header_t Head; 865 + NDR_record_t NDR; 866 + kern_return_t RetCode; 867 + } __Reply__mach_vm_write_t __attribute__((unused)); 868 + #ifdef __MigPackStructs 869 + #pragma pack(pop) 870 + #endif 871 + 872 + #ifdef __MigPackStructs 873 + #pragma pack(push, 4) 874 + #endif 875 + typedef struct { 876 + mach_msg_header_t Head; 877 + NDR_record_t NDR; 878 + kern_return_t RetCode; 879 + } __Reply__mach_vm_copy_t __attribute__((unused)); 880 + #ifdef __MigPackStructs 881 + #pragma pack(pop) 882 + #endif 883 + 884 + #ifdef __MigPackStructs 885 + #pragma pack(push, 4) 886 + #endif 887 + typedef struct { 888 + mach_msg_header_t Head; 889 + NDR_record_t NDR; 890 + kern_return_t RetCode; 891 + mach_vm_size_t outsize; 892 + } __Reply__mach_vm_read_overwrite_t __attribute__((unused)); 893 + #ifdef __MigPackStructs 894 + #pragma pack(pop) 895 + #endif 896 + 897 + #ifdef __MigPackStructs 898 + #pragma pack(push, 4) 899 + #endif 900 + typedef struct { 901 + mach_msg_header_t Head; 902 + NDR_record_t NDR; 903 + kern_return_t RetCode; 904 + } __Reply__mach_vm_msync_t __attribute__((unused)); 905 + #ifdef __MigPackStructs 906 + #pragma pack(pop) 907 + #endif 908 + 909 + #ifdef __MigPackStructs 910 + #pragma pack(push, 4) 911 + #endif 912 + typedef struct { 913 + mach_msg_header_t Head; 914 + NDR_record_t NDR; 915 + kern_return_t RetCode; 916 + } __Reply__mach_vm_behavior_set_t __attribute__((unused)); 917 + #ifdef __MigPackStructs 918 + #pragma pack(pop) 919 + #endif 920 + 921 + #ifdef __MigPackStructs 922 + #pragma pack(push, 4) 923 + #endif 924 + typedef struct { 925 + mach_msg_header_t Head; 926 + NDR_record_t NDR; 927 + kern_return_t RetCode; 928 + mach_vm_address_t address; 929 + } __Reply__mach_vm_map_t __attribute__((unused)); 930 + #ifdef __MigPackStructs 931 + #pragma pack(pop) 932 + #endif 933 + 934 + #ifdef __MigPackStructs 935 + #pragma pack(push, 4) 936 + #endif 937 + typedef struct { 938 + mach_msg_header_t Head; 939 + NDR_record_t NDR; 940 + kern_return_t RetCode; 941 + vm_machine_attribute_val_t value; 942 + } __Reply__mach_vm_machine_attribute_t __attribute__((unused)); 943 + #ifdef __MigPackStructs 944 + #pragma pack(pop) 945 + #endif 946 + 947 + #ifdef __MigPackStructs 948 + #pragma pack(push, 4) 949 + #endif 950 + typedef struct { 951 + mach_msg_header_t Head; 952 + NDR_record_t NDR; 953 + kern_return_t RetCode; 954 + mach_vm_address_t target_address; 955 + vm_prot_t cur_protection; 956 + vm_prot_t max_protection; 957 + } __Reply__mach_vm_remap_t __attribute__((unused)); 958 + #ifdef __MigPackStructs 959 + #pragma pack(pop) 960 + #endif 961 + 962 + #ifdef __MigPackStructs 963 + #pragma pack(push, 4) 964 + #endif 965 + typedef struct { 966 + mach_msg_header_t Head; 967 + NDR_record_t NDR; 968 + kern_return_t RetCode; 969 + integer_t disposition; 970 + integer_t ref_count; 971 + } __Reply__mach_vm_page_query_t __attribute__((unused)); 972 + #ifdef __MigPackStructs 973 + #pragma pack(pop) 974 + #endif 975 + 976 + #ifdef __MigPackStructs 977 + #pragma pack(push, 4) 978 + #endif 979 + typedef struct { 980 + mach_msg_header_t Head; 981 + NDR_record_t NDR; 982 + kern_return_t RetCode; 983 + mach_vm_address_t address; 984 + mach_vm_size_t size; 985 + natural_t nesting_depth; 986 + mach_msg_type_number_t infoCnt; 987 + int info[19]; 988 + } __Reply__mach_vm_region_recurse_t __attribute__((unused)); 989 + #ifdef __MigPackStructs 990 + #pragma pack(pop) 991 + #endif 992 + 993 + #ifdef __MigPackStructs 994 + #pragma pack(push, 4) 995 + #endif 996 + typedef struct { 997 + mach_msg_header_t Head; 998 + /* start of the kernel processed data */ 999 + mach_msg_body_t msgh_body; 1000 + mach_msg_port_descriptor_t object_name; 1001 + /* end of the kernel processed data */ 1002 + NDR_record_t NDR; 1003 + mach_vm_address_t address; 1004 + mach_vm_size_t size; 1005 + mach_msg_type_number_t infoCnt; 1006 + int info[10]; 1007 + } __Reply__mach_vm_region_t __attribute__((unused)); 1008 + #ifdef __MigPackStructs 1009 + #pragma pack(pop) 1010 + #endif 1011 + 1012 + #ifdef __MigPackStructs 1013 + #pragma pack(push, 4) 1014 + #endif 1015 + typedef struct { 1016 + mach_msg_header_t Head; 1017 + /* start of the kernel processed data */ 1018 + mach_msg_body_t msgh_body; 1019 + mach_msg_port_descriptor_t object_handle; 1020 + /* end of the kernel processed data */ 1021 + NDR_record_t NDR; 1022 + memory_object_size_t size; 1023 + } __Reply___mach_make_memory_entry_t __attribute__((unused)); 1024 + #ifdef __MigPackStructs 1025 + #pragma pack(pop) 1026 + #endif 1027 + 1028 + #ifdef __MigPackStructs 1029 + #pragma pack(push, 4) 1030 + #endif 1031 + typedef struct { 1032 + mach_msg_header_t Head; 1033 + NDR_record_t NDR; 1034 + kern_return_t RetCode; 1035 + int state; 1036 + } __Reply__mach_vm_purgable_control_t __attribute__((unused)); 1037 + #ifdef __MigPackStructs 1038 + #pragma pack(pop) 1039 + #endif 1040 + 1041 + #ifdef __MigPackStructs 1042 + #pragma pack(push, 4) 1043 + #endif 1044 + typedef struct { 1045 + mach_msg_header_t Head; 1046 + NDR_record_t NDR; 1047 + kern_return_t RetCode; 1048 + mach_msg_type_number_t infoCnt; 1049 + int info[32]; 1050 + } __Reply__mach_vm_page_info_t __attribute__((unused)); 1051 + #ifdef __MigPackStructs 1052 + #pragma pack(pop) 1053 + #endif 1054 + 1055 + #ifdef __MigPackStructs 1056 + #pragma pack(push, 4) 1057 + #endif 1058 + typedef struct { 1059 + mach_msg_header_t Head; 1060 + NDR_record_t NDR; 1061 + kern_return_t RetCode; 1062 + mach_vm_size_t dispositions_count; 1063 + } __Reply__mach_vm_page_range_query_t __attribute__((unused)); 1064 + #ifdef __MigPackStructs 1065 + #pragma pack(pop) 1066 + #endif 1067 + #endif /* !__Reply__mach_vm_subsystem__defined */ 1068 + 1069 + /* union of all replies */ 1070 + 1071 + #ifndef __ReplyUnion__mach_vm_subsystem__defined 1072 + #define __ReplyUnion__mach_vm_subsystem__defined 1073 + union __ReplyUnion__mach_vm_subsystem { 1074 + __Reply__mach_vm_allocate_t Reply_mach_vm_allocate; 1075 + __Reply__mach_vm_deallocate_t Reply_mach_vm_deallocate; 1076 + __Reply__mach_vm_protect_t Reply_mach_vm_protect; 1077 + __Reply__mach_vm_inherit_t Reply_mach_vm_inherit; 1078 + __Reply__mach_vm_read_t Reply_mach_vm_read; 1079 + __Reply__mach_vm_read_list_t Reply_mach_vm_read_list; 1080 + __Reply__mach_vm_write_t Reply_mach_vm_write; 1081 + __Reply__mach_vm_copy_t Reply_mach_vm_copy; 1082 + __Reply__mach_vm_read_overwrite_t Reply_mach_vm_read_overwrite; 1083 + __Reply__mach_vm_msync_t Reply_mach_vm_msync; 1084 + __Reply__mach_vm_behavior_set_t Reply_mach_vm_behavior_set; 1085 + __Reply__mach_vm_map_t Reply_mach_vm_map; 1086 + __Reply__mach_vm_machine_attribute_t Reply_mach_vm_machine_attribute; 1087 + __Reply__mach_vm_remap_t Reply_mach_vm_remap; 1088 + __Reply__mach_vm_page_query_t Reply_mach_vm_page_query; 1089 + __Reply__mach_vm_region_recurse_t Reply_mach_vm_region_recurse; 1090 + __Reply__mach_vm_region_t Reply_mach_vm_region; 1091 + __Reply___mach_make_memory_entry_t Reply__mach_make_memory_entry; 1092 + __Reply__mach_vm_purgable_control_t Reply_mach_vm_purgable_control; 1093 + __Reply__mach_vm_page_info_t Reply_mach_vm_page_info; 1094 + __Reply__mach_vm_page_range_query_t Reply_mach_vm_page_range_query; 1095 + }; 1096 + #endif /* !__RequestUnion__mach_vm_subsystem__defined */ 1097 + 1098 + #ifndef subsystem_to_name_map_mach_vm 1099 + #define subsystem_to_name_map_mach_vm \ 1100 + { "mach_vm_allocate", 4800 },\ 1101 + { "mach_vm_deallocate", 4801 },\ 1102 + { "mach_vm_protect", 4802 },\ 1103 + { "mach_vm_inherit", 4803 },\ 1104 + { "mach_vm_read", 4804 },\ 1105 + { "mach_vm_read_list", 4805 },\ 1106 + { "mach_vm_write", 4806 },\ 1107 + { "mach_vm_copy", 4807 },\ 1108 + { "mach_vm_read_overwrite", 4808 },\ 1109 + { "mach_vm_msync", 4809 },\ 1110 + { "mach_vm_behavior_set", 4810 },\ 1111 + { "mach_vm_map", 4811 },\ 1112 + { "mach_vm_machine_attribute", 4812 },\ 1113 + { "mach_vm_remap", 4813 },\ 1114 + { "mach_vm_page_query", 4814 },\ 1115 + { "mach_vm_region_recurse", 4815 },\ 1116 + { "mach_vm_region", 4816 },\ 1117 + { "_mach_make_memory_entry", 4817 },\ 1118 + { "mach_vm_purgable_control", 4818 },\ 1119 + { "mach_vm_page_info", 4819 },\ 1120 + { "mach_vm_page_range_query", 4820 } 1121 + #endif 1122 + 1123 + #ifdef __AfterMigUserHeader 1124 + __AfterMigUserHeader 1125 + #endif /* __AfterMigUserHeader */ 1126 + 1127 + #endif /* _mach_vm_user_ */
+365
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/mach_voucher.h
··· 1 + #ifndef _mach_voucher_user_ 2 + #define _mach_voucher_user_ 3 + 4 + /* Module mach_voucher */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef mach_voucher_MSG_COUNT 77 + #define mach_voucher_MSG_COUNT 5 78 + #endif /* mach_voucher_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + 85 + #ifdef __BeforeMigUserHeader 86 + __BeforeMigUserHeader 87 + #endif /* __BeforeMigUserHeader */ 88 + 89 + #include <sys/cdefs.h> 90 + __BEGIN_DECLS 91 + 92 + 93 + /* Routine mach_voucher_extract_attr_content */ 94 + #ifdef mig_external 95 + mig_external 96 + #else 97 + extern 98 + #endif /* mig_external */ 99 + kern_return_t mach_voucher_extract_attr_content 100 + ( 101 + ipc_voucher_t voucher, 102 + mach_voucher_attr_key_t key, 103 + mach_voucher_attr_content_t content, 104 + mach_msg_type_number_t *contentCnt 105 + ); 106 + 107 + /* Routine mach_voucher_extract_attr_recipe */ 108 + #ifdef mig_external 109 + mig_external 110 + #else 111 + extern 112 + #endif /* mig_external */ 113 + kern_return_t mach_voucher_extract_attr_recipe 114 + ( 115 + ipc_voucher_t voucher, 116 + mach_voucher_attr_key_t key, 117 + mach_voucher_attr_raw_recipe_t recipe, 118 + mach_msg_type_number_t *recipeCnt 119 + ); 120 + 121 + /* Routine mach_voucher_extract_all_attr_recipes */ 122 + #ifdef mig_external 123 + mig_external 124 + #else 125 + extern 126 + #endif /* mig_external */ 127 + kern_return_t mach_voucher_extract_all_attr_recipes 128 + ( 129 + ipc_voucher_t voucher, 130 + mach_voucher_attr_raw_recipe_array_t recipes, 131 + mach_msg_type_number_t *recipesCnt 132 + ); 133 + 134 + /* Routine mach_voucher_attr_command */ 135 + #ifdef mig_external 136 + mig_external 137 + #else 138 + extern 139 + #endif /* mig_external */ 140 + kern_return_t mach_voucher_attr_command 141 + ( 142 + ipc_voucher_t voucher, 143 + mach_voucher_attr_key_t key, 144 + mach_voucher_attr_command_t command, 145 + mach_voucher_attr_content_t in_content, 146 + mach_msg_type_number_t in_contentCnt, 147 + mach_voucher_attr_content_t out_content, 148 + mach_msg_type_number_t *out_contentCnt 149 + ); 150 + 151 + /* Routine mach_voucher_debug_info */ 152 + #ifdef mig_external 153 + mig_external 154 + #else 155 + extern 156 + #endif /* mig_external */ 157 + kern_return_t mach_voucher_debug_info 158 + ( 159 + ipc_space_t task, 160 + mach_port_name_t voucher_name, 161 + mach_voucher_attr_raw_recipe_array_t recipes, 162 + mach_msg_type_number_t *recipesCnt 163 + ); 164 + 165 + __END_DECLS 166 + 167 + /********************** Caution **************************/ 168 + /* The following data types should be used to calculate */ 169 + /* maximum message sizes only. The actual message may be */ 170 + /* smaller, and the position of the arguments within the */ 171 + /* message layout may vary from what is presented here. */ 172 + /* For example, if any of the arguments are variable- */ 173 + /* sized, and less than the maximum is sent, the data */ 174 + /* will be packed tight in the actual message to reduce */ 175 + /* the presence of holes. */ 176 + /********************** Caution **************************/ 177 + 178 + /* typedefs for all requests */ 179 + 180 + #ifndef __Request__mach_voucher_subsystem__defined 181 + #define __Request__mach_voucher_subsystem__defined 182 + 183 + #ifdef __MigPackStructs 184 + #pragma pack(push, 4) 185 + #endif 186 + typedef struct { 187 + mach_msg_header_t Head; 188 + NDR_record_t NDR; 189 + mach_voucher_attr_key_t key; 190 + mach_msg_type_number_t contentCnt; 191 + } __Request__mach_voucher_extract_attr_content_t __attribute__((unused)); 192 + #ifdef __MigPackStructs 193 + #pragma pack(pop) 194 + #endif 195 + 196 + #ifdef __MigPackStructs 197 + #pragma pack(push, 4) 198 + #endif 199 + typedef struct { 200 + mach_msg_header_t Head; 201 + NDR_record_t NDR; 202 + mach_voucher_attr_key_t key; 203 + mach_msg_type_number_t recipeCnt; 204 + } __Request__mach_voucher_extract_attr_recipe_t __attribute__((unused)); 205 + #ifdef __MigPackStructs 206 + #pragma pack(pop) 207 + #endif 208 + 209 + #ifdef __MigPackStructs 210 + #pragma pack(push, 4) 211 + #endif 212 + typedef struct { 213 + mach_msg_header_t Head; 214 + NDR_record_t NDR; 215 + mach_msg_type_number_t recipesCnt; 216 + } __Request__mach_voucher_extract_all_attr_recipes_t __attribute__((unused)); 217 + #ifdef __MigPackStructs 218 + #pragma pack(pop) 219 + #endif 220 + 221 + #ifdef __MigPackStructs 222 + #pragma pack(push, 4) 223 + #endif 224 + typedef struct { 225 + mach_msg_header_t Head; 226 + NDR_record_t NDR; 227 + mach_voucher_attr_key_t key; 228 + mach_voucher_attr_command_t command; 229 + mach_msg_type_number_t in_contentCnt; 230 + uint8_t in_content[4096]; 231 + mach_msg_type_number_t out_contentCnt; 232 + } __Request__mach_voucher_attr_command_t __attribute__((unused)); 233 + #ifdef __MigPackStructs 234 + #pragma pack(pop) 235 + #endif 236 + 237 + #ifdef __MigPackStructs 238 + #pragma pack(push, 4) 239 + #endif 240 + typedef struct { 241 + mach_msg_header_t Head; 242 + NDR_record_t NDR; 243 + mach_port_name_t voucher_name; 244 + mach_msg_type_number_t recipesCnt; 245 + } __Request__mach_voucher_debug_info_t __attribute__((unused)); 246 + #ifdef __MigPackStructs 247 + #pragma pack(pop) 248 + #endif 249 + #endif /* !__Request__mach_voucher_subsystem__defined */ 250 + 251 + /* union of all requests */ 252 + 253 + #ifndef __RequestUnion__mach_voucher_subsystem__defined 254 + #define __RequestUnion__mach_voucher_subsystem__defined 255 + union __RequestUnion__mach_voucher_subsystem { 256 + __Request__mach_voucher_extract_attr_content_t Request_mach_voucher_extract_attr_content; 257 + __Request__mach_voucher_extract_attr_recipe_t Request_mach_voucher_extract_attr_recipe; 258 + __Request__mach_voucher_extract_all_attr_recipes_t Request_mach_voucher_extract_all_attr_recipes; 259 + __Request__mach_voucher_attr_command_t Request_mach_voucher_attr_command; 260 + __Request__mach_voucher_debug_info_t Request_mach_voucher_debug_info; 261 + }; 262 + #endif /* !__RequestUnion__mach_voucher_subsystem__defined */ 263 + /* typedefs for all replies */ 264 + 265 + #ifndef __Reply__mach_voucher_subsystem__defined 266 + #define __Reply__mach_voucher_subsystem__defined 267 + 268 + #ifdef __MigPackStructs 269 + #pragma pack(push, 4) 270 + #endif 271 + typedef struct { 272 + mach_msg_header_t Head; 273 + NDR_record_t NDR; 274 + kern_return_t RetCode; 275 + mach_msg_type_number_t contentCnt; 276 + uint8_t content[4096]; 277 + } __Reply__mach_voucher_extract_attr_content_t __attribute__((unused)); 278 + #ifdef __MigPackStructs 279 + #pragma pack(pop) 280 + #endif 281 + 282 + #ifdef __MigPackStructs 283 + #pragma pack(push, 4) 284 + #endif 285 + typedef struct { 286 + mach_msg_header_t Head; 287 + NDR_record_t NDR; 288 + kern_return_t RetCode; 289 + mach_msg_type_number_t recipeCnt; 290 + uint8_t recipe[4096]; 291 + } __Reply__mach_voucher_extract_attr_recipe_t __attribute__((unused)); 292 + #ifdef __MigPackStructs 293 + #pragma pack(pop) 294 + #endif 295 + 296 + #ifdef __MigPackStructs 297 + #pragma pack(push, 4) 298 + #endif 299 + typedef struct { 300 + mach_msg_header_t Head; 301 + NDR_record_t NDR; 302 + kern_return_t RetCode; 303 + mach_msg_type_number_t recipesCnt; 304 + uint8_t recipes[5120]; 305 + } __Reply__mach_voucher_extract_all_attr_recipes_t __attribute__((unused)); 306 + #ifdef __MigPackStructs 307 + #pragma pack(pop) 308 + #endif 309 + 310 + #ifdef __MigPackStructs 311 + #pragma pack(push, 4) 312 + #endif 313 + typedef struct { 314 + mach_msg_header_t Head; 315 + NDR_record_t NDR; 316 + kern_return_t RetCode; 317 + mach_msg_type_number_t out_contentCnt; 318 + uint8_t out_content[4096]; 319 + } __Reply__mach_voucher_attr_command_t __attribute__((unused)); 320 + #ifdef __MigPackStructs 321 + #pragma pack(pop) 322 + #endif 323 + 324 + #ifdef __MigPackStructs 325 + #pragma pack(push, 4) 326 + #endif 327 + typedef struct { 328 + mach_msg_header_t Head; 329 + NDR_record_t NDR; 330 + kern_return_t RetCode; 331 + mach_msg_type_number_t recipesCnt; 332 + uint8_t recipes[5120]; 333 + } __Reply__mach_voucher_debug_info_t __attribute__((unused)); 334 + #ifdef __MigPackStructs 335 + #pragma pack(pop) 336 + #endif 337 + #endif /* !__Reply__mach_voucher_subsystem__defined */ 338 + 339 + /* union of all replies */ 340 + 341 + #ifndef __ReplyUnion__mach_voucher_subsystem__defined 342 + #define __ReplyUnion__mach_voucher_subsystem__defined 343 + union __ReplyUnion__mach_voucher_subsystem { 344 + __Reply__mach_voucher_extract_attr_content_t Reply_mach_voucher_extract_attr_content; 345 + __Reply__mach_voucher_extract_attr_recipe_t Reply_mach_voucher_extract_attr_recipe; 346 + __Reply__mach_voucher_extract_all_attr_recipes_t Reply_mach_voucher_extract_all_attr_recipes; 347 + __Reply__mach_voucher_attr_command_t Reply_mach_voucher_attr_command; 348 + __Reply__mach_voucher_debug_info_t Reply_mach_voucher_debug_info; 349 + }; 350 + #endif /* !__RequestUnion__mach_voucher_subsystem__defined */ 351 + 352 + #ifndef subsystem_to_name_map_mach_voucher 353 + #define subsystem_to_name_map_mach_voucher \ 354 + { "mach_voucher_extract_attr_content", 5400 },\ 355 + { "mach_voucher_extract_attr_recipe", 5401 },\ 356 + { "mach_voucher_extract_all_attr_recipes", 5402 },\ 357 + { "mach_voucher_attr_command", 5403 },\ 358 + { "mach_voucher_debug_info", 5404 } 359 + #endif 360 + 361 + #ifdef __AfterMigUserHeader 362 + __AfterMigUserHeader 363 + #endif /* __AfterMigUserHeader */ 364 + 365 + #endif /* _mach_voucher_user_ */
+274
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/memory_entry.h
··· 1 + #ifndef _memory_entry_user_ 2 + #define _memory_entry_user_ 3 + 4 + /* Module memory_entry */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef memory_entry_MSG_COUNT 77 + #define memory_entry_MSG_COUNT 3 78 + #endif /* memory_entry_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + #include <mach_debug/mach_debug_types.h> 85 + 86 + #ifdef __BeforeMigUserHeader 87 + __BeforeMigUserHeader 88 + #endif /* __BeforeMigUserHeader */ 89 + 90 + #include <sys/cdefs.h> 91 + __BEGIN_DECLS 92 + 93 + 94 + /* Routine mach_memory_entry_purgable_control */ 95 + #ifdef mig_external 96 + mig_external 97 + #else 98 + extern 99 + #endif /* mig_external */ 100 + kern_return_t mach_memory_entry_purgable_control 101 + ( 102 + mem_entry_name_port_t mem_entry, 103 + vm_purgable_t control, 104 + int *state 105 + ); 106 + 107 + /* Routine mach_memory_entry_access_tracking */ 108 + #ifdef mig_external 109 + mig_external 110 + #else 111 + extern 112 + #endif /* mig_external */ 113 + kern_return_t mach_memory_entry_access_tracking 114 + ( 115 + mem_entry_name_port_t mem_entry, 116 + int *access_tracking, 117 + uint32_t *access_tracking_reads, 118 + uint32_t *access_tracking_writes 119 + ); 120 + 121 + /* Routine mach_memory_entry_ownership */ 122 + #ifdef mig_external 123 + mig_external 124 + #else 125 + extern 126 + #endif /* mig_external */ 127 + kern_return_t mach_memory_entry_ownership 128 + ( 129 + mem_entry_name_port_t mem_entry, 130 + task_t owner, 131 + int ledger_tag, 132 + int ledger_flags 133 + ); 134 + 135 + __END_DECLS 136 + 137 + /********************** Caution **************************/ 138 + /* The following data types should be used to calculate */ 139 + /* maximum message sizes only. The actual message may be */ 140 + /* smaller, and the position of the arguments within the */ 141 + /* message layout may vary from what is presented here. */ 142 + /* For example, if any of the arguments are variable- */ 143 + /* sized, and less than the maximum is sent, the data */ 144 + /* will be packed tight in the actual message to reduce */ 145 + /* the presence of holes. */ 146 + /********************** Caution **************************/ 147 + 148 + /* typedefs for all requests */ 149 + 150 + #ifndef __Request__memory_entry_subsystem__defined 151 + #define __Request__memory_entry_subsystem__defined 152 + 153 + #ifdef __MigPackStructs 154 + #pragma pack(push, 4) 155 + #endif 156 + typedef struct { 157 + mach_msg_header_t Head; 158 + NDR_record_t NDR; 159 + vm_purgable_t control; 160 + int state; 161 + } __Request__mach_memory_entry_purgable_control_t __attribute__((unused)); 162 + #ifdef __MigPackStructs 163 + #pragma pack(pop) 164 + #endif 165 + 166 + #ifdef __MigPackStructs 167 + #pragma pack(push, 4) 168 + #endif 169 + typedef struct { 170 + mach_msg_header_t Head; 171 + NDR_record_t NDR; 172 + int access_tracking; 173 + } __Request__mach_memory_entry_access_tracking_t __attribute__((unused)); 174 + #ifdef __MigPackStructs 175 + #pragma pack(pop) 176 + #endif 177 + 178 + #ifdef __MigPackStructs 179 + #pragma pack(push, 4) 180 + #endif 181 + typedef struct { 182 + mach_msg_header_t Head; 183 + /* start of the kernel processed data */ 184 + mach_msg_body_t msgh_body; 185 + mach_msg_port_descriptor_t owner; 186 + /* end of the kernel processed data */ 187 + NDR_record_t NDR; 188 + int ledger_tag; 189 + int ledger_flags; 190 + } __Request__mach_memory_entry_ownership_t __attribute__((unused)); 191 + #ifdef __MigPackStructs 192 + #pragma pack(pop) 193 + #endif 194 + #endif /* !__Request__memory_entry_subsystem__defined */ 195 + 196 + /* union of all requests */ 197 + 198 + #ifndef __RequestUnion__memory_entry_subsystem__defined 199 + #define __RequestUnion__memory_entry_subsystem__defined 200 + union __RequestUnion__memory_entry_subsystem { 201 + __Request__mach_memory_entry_purgable_control_t Request_mach_memory_entry_purgable_control; 202 + __Request__mach_memory_entry_access_tracking_t Request_mach_memory_entry_access_tracking; 203 + __Request__mach_memory_entry_ownership_t Request_mach_memory_entry_ownership; 204 + }; 205 + #endif /* !__RequestUnion__memory_entry_subsystem__defined */ 206 + /* typedefs for all replies */ 207 + 208 + #ifndef __Reply__memory_entry_subsystem__defined 209 + #define __Reply__memory_entry_subsystem__defined 210 + 211 + #ifdef __MigPackStructs 212 + #pragma pack(push, 4) 213 + #endif 214 + typedef struct { 215 + mach_msg_header_t Head; 216 + NDR_record_t NDR; 217 + kern_return_t RetCode; 218 + int state; 219 + } __Reply__mach_memory_entry_purgable_control_t __attribute__((unused)); 220 + #ifdef __MigPackStructs 221 + #pragma pack(pop) 222 + #endif 223 + 224 + #ifdef __MigPackStructs 225 + #pragma pack(push, 4) 226 + #endif 227 + typedef struct { 228 + mach_msg_header_t Head; 229 + NDR_record_t NDR; 230 + kern_return_t RetCode; 231 + int access_tracking; 232 + uint32_t access_tracking_reads; 233 + uint32_t access_tracking_writes; 234 + } __Reply__mach_memory_entry_access_tracking_t __attribute__((unused)); 235 + #ifdef __MigPackStructs 236 + #pragma pack(pop) 237 + #endif 238 + 239 + #ifdef __MigPackStructs 240 + #pragma pack(push, 4) 241 + #endif 242 + typedef struct { 243 + mach_msg_header_t Head; 244 + NDR_record_t NDR; 245 + kern_return_t RetCode; 246 + } __Reply__mach_memory_entry_ownership_t __attribute__((unused)); 247 + #ifdef __MigPackStructs 248 + #pragma pack(pop) 249 + #endif 250 + #endif /* !__Reply__memory_entry_subsystem__defined */ 251 + 252 + /* union of all replies */ 253 + 254 + #ifndef __ReplyUnion__memory_entry_subsystem__defined 255 + #define __ReplyUnion__memory_entry_subsystem__defined 256 + union __ReplyUnion__memory_entry_subsystem { 257 + __Reply__mach_memory_entry_purgable_control_t Reply_mach_memory_entry_purgable_control; 258 + __Reply__mach_memory_entry_access_tracking_t Reply_mach_memory_entry_access_tracking; 259 + __Reply__mach_memory_entry_ownership_t Reply_mach_memory_entry_ownership; 260 + }; 261 + #endif /* !__RequestUnion__memory_entry_subsystem__defined */ 262 + 263 + #ifndef subsystem_to_name_map_memory_entry 264 + #define subsystem_to_name_map_memory_entry \ 265 + { "mach_memory_entry_purgable_control", 4900 },\ 266 + { "mach_memory_entry_access_tracking", 4901 },\ 267 + { "mach_memory_entry_ownership", 4902 } 268 + #endif 269 + 270 + #ifdef __AfterMigUserHeader 271 + __AfterMigUserHeader 272 + #endif /* __AfterMigUserHeader */ 273 + 274 + #endif /* _memory_entry_user_ */
+385
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/processor.h
··· 1 + #ifndef _processor_user_ 2 + #define _processor_user_ 3 + 4 + /* Module processor */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef processor_MSG_COUNT 77 + #define processor_MSG_COUNT 6 78 + #endif /* processor_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + 85 + #ifdef __BeforeMigUserHeader 86 + __BeforeMigUserHeader 87 + #endif /* __BeforeMigUserHeader */ 88 + 89 + #include <sys/cdefs.h> 90 + __BEGIN_DECLS 91 + 92 + 93 + /* Routine processor_start */ 94 + #ifdef mig_external 95 + mig_external 96 + #else 97 + extern 98 + #endif /* mig_external */ 99 + kern_return_t processor_start 100 + ( 101 + processor_t processor 102 + ); 103 + 104 + /* Routine processor_exit */ 105 + #ifdef mig_external 106 + mig_external 107 + #else 108 + extern 109 + #endif /* mig_external */ 110 + kern_return_t processor_exit 111 + ( 112 + processor_t processor 113 + ); 114 + 115 + /* Routine processor_info */ 116 + #ifdef mig_external 117 + mig_external 118 + #else 119 + extern 120 + #endif /* mig_external */ 121 + kern_return_t processor_info 122 + ( 123 + processor_t processor, 124 + processor_flavor_t flavor, 125 + host_t *host, 126 + processor_info_t processor_info_out, 127 + mach_msg_type_number_t *processor_info_outCnt 128 + ); 129 + 130 + /* Routine processor_control */ 131 + #ifdef mig_external 132 + mig_external 133 + #else 134 + extern 135 + #endif /* mig_external */ 136 + kern_return_t processor_control 137 + ( 138 + processor_t processor, 139 + processor_info_t processor_cmd, 140 + mach_msg_type_number_t processor_cmdCnt 141 + ); 142 + 143 + /* Routine processor_assign */ 144 + #ifdef mig_external 145 + mig_external 146 + #else 147 + extern 148 + #endif /* mig_external */ 149 + kern_return_t processor_assign 150 + ( 151 + processor_t processor, 152 + processor_set_t new_set, 153 + boolean_t wait 154 + ); 155 + 156 + /* Routine processor_get_assignment */ 157 + #ifdef mig_external 158 + mig_external 159 + #else 160 + extern 161 + #endif /* mig_external */ 162 + kern_return_t processor_get_assignment 163 + ( 164 + processor_t processor, 165 + processor_set_name_t *assigned_set 166 + ); 167 + 168 + __END_DECLS 169 + 170 + /********************** Caution **************************/ 171 + /* The following data types should be used to calculate */ 172 + /* maximum message sizes only. The actual message may be */ 173 + /* smaller, and the position of the arguments within the */ 174 + /* message layout may vary from what is presented here. */ 175 + /* For example, if any of the arguments are variable- */ 176 + /* sized, and less than the maximum is sent, the data */ 177 + /* will be packed tight in the actual message to reduce */ 178 + /* the presence of holes. */ 179 + /********************** Caution **************************/ 180 + 181 + /* typedefs for all requests */ 182 + 183 + #ifndef __Request__processor_subsystem__defined 184 + #define __Request__processor_subsystem__defined 185 + 186 + #ifdef __MigPackStructs 187 + #pragma pack(push, 4) 188 + #endif 189 + typedef struct { 190 + mach_msg_header_t Head; 191 + } __Request__processor_start_t __attribute__((unused)); 192 + #ifdef __MigPackStructs 193 + #pragma pack(pop) 194 + #endif 195 + 196 + #ifdef __MigPackStructs 197 + #pragma pack(push, 4) 198 + #endif 199 + typedef struct { 200 + mach_msg_header_t Head; 201 + } __Request__processor_exit_t __attribute__((unused)); 202 + #ifdef __MigPackStructs 203 + #pragma pack(pop) 204 + #endif 205 + 206 + #ifdef __MigPackStructs 207 + #pragma pack(push, 4) 208 + #endif 209 + typedef struct { 210 + mach_msg_header_t Head; 211 + NDR_record_t NDR; 212 + processor_flavor_t flavor; 213 + mach_msg_type_number_t processor_info_outCnt; 214 + } __Request__processor_info_t __attribute__((unused)); 215 + #ifdef __MigPackStructs 216 + #pragma pack(pop) 217 + #endif 218 + 219 + #ifdef __MigPackStructs 220 + #pragma pack(push, 4) 221 + #endif 222 + typedef struct { 223 + mach_msg_header_t Head; 224 + NDR_record_t NDR; 225 + mach_msg_type_number_t processor_cmdCnt; 226 + integer_t processor_cmd[20]; 227 + } __Request__processor_control_t __attribute__((unused)); 228 + #ifdef __MigPackStructs 229 + #pragma pack(pop) 230 + #endif 231 + 232 + #ifdef __MigPackStructs 233 + #pragma pack(push, 4) 234 + #endif 235 + typedef struct { 236 + mach_msg_header_t Head; 237 + /* start of the kernel processed data */ 238 + mach_msg_body_t msgh_body; 239 + mach_msg_port_descriptor_t new_set; 240 + /* end of the kernel processed data */ 241 + NDR_record_t NDR; 242 + boolean_t wait; 243 + } __Request__processor_assign_t __attribute__((unused)); 244 + #ifdef __MigPackStructs 245 + #pragma pack(pop) 246 + #endif 247 + 248 + #ifdef __MigPackStructs 249 + #pragma pack(push, 4) 250 + #endif 251 + typedef struct { 252 + mach_msg_header_t Head; 253 + } __Request__processor_get_assignment_t __attribute__((unused)); 254 + #ifdef __MigPackStructs 255 + #pragma pack(pop) 256 + #endif 257 + #endif /* !__Request__processor_subsystem__defined */ 258 + 259 + /* union of all requests */ 260 + 261 + #ifndef __RequestUnion__processor_subsystem__defined 262 + #define __RequestUnion__processor_subsystem__defined 263 + union __RequestUnion__processor_subsystem { 264 + __Request__processor_start_t Request_processor_start; 265 + __Request__processor_exit_t Request_processor_exit; 266 + __Request__processor_info_t Request_processor_info; 267 + __Request__processor_control_t Request_processor_control; 268 + __Request__processor_assign_t Request_processor_assign; 269 + __Request__processor_get_assignment_t Request_processor_get_assignment; 270 + }; 271 + #endif /* !__RequestUnion__processor_subsystem__defined */ 272 + /* typedefs for all replies */ 273 + 274 + #ifndef __Reply__processor_subsystem__defined 275 + #define __Reply__processor_subsystem__defined 276 + 277 + #ifdef __MigPackStructs 278 + #pragma pack(push, 4) 279 + #endif 280 + typedef struct { 281 + mach_msg_header_t Head; 282 + NDR_record_t NDR; 283 + kern_return_t RetCode; 284 + } __Reply__processor_start_t __attribute__((unused)); 285 + #ifdef __MigPackStructs 286 + #pragma pack(pop) 287 + #endif 288 + 289 + #ifdef __MigPackStructs 290 + #pragma pack(push, 4) 291 + #endif 292 + typedef struct { 293 + mach_msg_header_t Head; 294 + NDR_record_t NDR; 295 + kern_return_t RetCode; 296 + } __Reply__processor_exit_t __attribute__((unused)); 297 + #ifdef __MigPackStructs 298 + #pragma pack(pop) 299 + #endif 300 + 301 + #ifdef __MigPackStructs 302 + #pragma pack(push, 4) 303 + #endif 304 + typedef struct { 305 + mach_msg_header_t Head; 306 + /* start of the kernel processed data */ 307 + mach_msg_body_t msgh_body; 308 + mach_msg_port_descriptor_t host; 309 + /* end of the kernel processed data */ 310 + NDR_record_t NDR; 311 + mach_msg_type_number_t processor_info_outCnt; 312 + integer_t processor_info_out[20]; 313 + } __Reply__processor_info_t __attribute__((unused)); 314 + #ifdef __MigPackStructs 315 + #pragma pack(pop) 316 + #endif 317 + 318 + #ifdef __MigPackStructs 319 + #pragma pack(push, 4) 320 + #endif 321 + typedef struct { 322 + mach_msg_header_t Head; 323 + NDR_record_t NDR; 324 + kern_return_t RetCode; 325 + } __Reply__processor_control_t __attribute__((unused)); 326 + #ifdef __MigPackStructs 327 + #pragma pack(pop) 328 + #endif 329 + 330 + #ifdef __MigPackStructs 331 + #pragma pack(push, 4) 332 + #endif 333 + typedef struct { 334 + mach_msg_header_t Head; 335 + NDR_record_t NDR; 336 + kern_return_t RetCode; 337 + } __Reply__processor_assign_t __attribute__((unused)); 338 + #ifdef __MigPackStructs 339 + #pragma pack(pop) 340 + #endif 341 + 342 + #ifdef __MigPackStructs 343 + #pragma pack(push, 4) 344 + #endif 345 + typedef struct { 346 + mach_msg_header_t Head; 347 + /* start of the kernel processed data */ 348 + mach_msg_body_t msgh_body; 349 + mach_msg_port_descriptor_t assigned_set; 350 + /* end of the kernel processed data */ 351 + } __Reply__processor_get_assignment_t __attribute__((unused)); 352 + #ifdef __MigPackStructs 353 + #pragma pack(pop) 354 + #endif 355 + #endif /* !__Reply__processor_subsystem__defined */ 356 + 357 + /* union of all replies */ 358 + 359 + #ifndef __ReplyUnion__processor_subsystem__defined 360 + #define __ReplyUnion__processor_subsystem__defined 361 + union __ReplyUnion__processor_subsystem { 362 + __Reply__processor_start_t Reply_processor_start; 363 + __Reply__processor_exit_t Reply_processor_exit; 364 + __Reply__processor_info_t Reply_processor_info; 365 + __Reply__processor_control_t Reply_processor_control; 366 + __Reply__processor_assign_t Reply_processor_assign; 367 + __Reply__processor_get_assignment_t Reply_processor_get_assignment; 368 + }; 369 + #endif /* !__RequestUnion__processor_subsystem__defined */ 370 + 371 + #ifndef subsystem_to_name_map_processor 372 + #define subsystem_to_name_map_processor \ 373 + { "processor_start", 3000 },\ 374 + { "processor_exit", 3001 },\ 375 + { "processor_info", 3002 },\ 376 + { "processor_control", 3003 },\ 377 + { "processor_assign", 3004 },\ 378 + { "processor_get_assignment", 3005 } 379 + #endif 380 + 381 + #ifdef __AfterMigUserHeader 382 + __AfterMigUserHeader 383 + #endif /* __AfterMigUserHeader */ 384 + 385 + #endif /* _processor_user_ */
+565
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/processor_set.h
··· 1 + #ifndef _processor_set_user_ 2 + #define _processor_set_user_ 3 + 4 + /* Module processor_set */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef processor_set_MSG_COUNT 77 + #define processor_set_MSG_COUNT 10 78 + #endif /* processor_set_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + 85 + #ifdef __BeforeMigUserHeader 86 + __BeforeMigUserHeader 87 + #endif /* __BeforeMigUserHeader */ 88 + 89 + #include <sys/cdefs.h> 90 + __BEGIN_DECLS 91 + 92 + 93 + /* Routine processor_set_statistics */ 94 + #ifdef mig_external 95 + mig_external 96 + #else 97 + extern 98 + #endif /* mig_external */ 99 + kern_return_t processor_set_statistics 100 + ( 101 + processor_set_name_t pset, 102 + processor_set_flavor_t flavor, 103 + processor_set_info_t info_out, 104 + mach_msg_type_number_t *info_outCnt 105 + ); 106 + 107 + /* Routine processor_set_destroy */ 108 + #ifdef mig_external 109 + mig_external 110 + #else 111 + extern 112 + #endif /* mig_external */ 113 + kern_return_t processor_set_destroy 114 + ( 115 + processor_set_t set 116 + ); 117 + 118 + /* Routine processor_set_max_priority */ 119 + #ifdef mig_external 120 + mig_external 121 + #else 122 + extern 123 + #endif /* mig_external */ 124 + kern_return_t processor_set_max_priority 125 + ( 126 + processor_set_t processor_set, 127 + int max_priority, 128 + boolean_t change_threads 129 + ); 130 + 131 + /* Routine processor_set_policy_enable */ 132 + #ifdef mig_external 133 + mig_external 134 + #else 135 + extern 136 + #endif /* mig_external */ 137 + kern_return_t processor_set_policy_enable 138 + ( 139 + processor_set_t processor_set, 140 + int policy 141 + ); 142 + 143 + /* Routine processor_set_policy_disable */ 144 + #ifdef mig_external 145 + mig_external 146 + #else 147 + extern 148 + #endif /* mig_external */ 149 + kern_return_t processor_set_policy_disable 150 + ( 151 + processor_set_t processor_set, 152 + int policy, 153 + boolean_t change_threads 154 + ); 155 + 156 + /* Routine processor_set_tasks */ 157 + #ifdef mig_external 158 + mig_external 159 + #else 160 + extern 161 + #endif /* mig_external */ 162 + kern_return_t processor_set_tasks 163 + ( 164 + processor_set_t processor_set, 165 + task_array_t *task_list, 166 + mach_msg_type_number_t *task_listCnt 167 + ); 168 + 169 + /* Routine processor_set_threads */ 170 + #ifdef mig_external 171 + mig_external 172 + #else 173 + extern 174 + #endif /* mig_external */ 175 + kern_return_t processor_set_threads 176 + ( 177 + processor_set_t processor_set, 178 + thread_act_array_t *thread_list, 179 + mach_msg_type_number_t *thread_listCnt 180 + ); 181 + 182 + /* Routine processor_set_policy_control */ 183 + #ifdef mig_external 184 + mig_external 185 + #else 186 + extern 187 + #endif /* mig_external */ 188 + kern_return_t processor_set_policy_control 189 + ( 190 + processor_set_t pset, 191 + processor_set_flavor_t flavor, 192 + processor_set_info_t policy_info, 193 + mach_msg_type_number_t policy_infoCnt, 194 + boolean_t change 195 + ); 196 + 197 + /* Routine processor_set_stack_usage */ 198 + #ifdef mig_external 199 + mig_external 200 + #else 201 + extern 202 + #endif /* mig_external */ 203 + kern_return_t processor_set_stack_usage 204 + ( 205 + processor_set_t pset, 206 + unsigned *ltotal, 207 + vm_size_t *space, 208 + vm_size_t *resident, 209 + vm_size_t *maxusage, 210 + vm_offset_t *maxstack 211 + ); 212 + 213 + /* Routine processor_set_info */ 214 + #ifdef mig_external 215 + mig_external 216 + #else 217 + extern 218 + #endif /* mig_external */ 219 + kern_return_t processor_set_info 220 + ( 221 + processor_set_name_t set_name, 222 + int flavor, 223 + host_t *host, 224 + processor_set_info_t info_out, 225 + mach_msg_type_number_t *info_outCnt 226 + ); 227 + 228 + __END_DECLS 229 + 230 + /********************** Caution **************************/ 231 + /* The following data types should be used to calculate */ 232 + /* maximum message sizes only. The actual message may be */ 233 + /* smaller, and the position of the arguments within the */ 234 + /* message layout may vary from what is presented here. */ 235 + /* For example, if any of the arguments are variable- */ 236 + /* sized, and less than the maximum is sent, the data */ 237 + /* will be packed tight in the actual message to reduce */ 238 + /* the presence of holes. */ 239 + /********************** Caution **************************/ 240 + 241 + /* typedefs for all requests */ 242 + 243 + #ifndef __Request__processor_set_subsystem__defined 244 + #define __Request__processor_set_subsystem__defined 245 + 246 + #ifdef __MigPackStructs 247 + #pragma pack(push, 4) 248 + #endif 249 + typedef struct { 250 + mach_msg_header_t Head; 251 + NDR_record_t NDR; 252 + processor_set_flavor_t flavor; 253 + mach_msg_type_number_t info_outCnt; 254 + } __Request__processor_set_statistics_t __attribute__((unused)); 255 + #ifdef __MigPackStructs 256 + #pragma pack(pop) 257 + #endif 258 + 259 + #ifdef __MigPackStructs 260 + #pragma pack(push, 4) 261 + #endif 262 + typedef struct { 263 + mach_msg_header_t Head; 264 + } __Request__processor_set_destroy_t __attribute__((unused)); 265 + #ifdef __MigPackStructs 266 + #pragma pack(pop) 267 + #endif 268 + 269 + #ifdef __MigPackStructs 270 + #pragma pack(push, 4) 271 + #endif 272 + typedef struct { 273 + mach_msg_header_t Head; 274 + NDR_record_t NDR; 275 + int max_priority; 276 + boolean_t change_threads; 277 + } __Request__processor_set_max_priority_t __attribute__((unused)); 278 + #ifdef __MigPackStructs 279 + #pragma pack(pop) 280 + #endif 281 + 282 + #ifdef __MigPackStructs 283 + #pragma pack(push, 4) 284 + #endif 285 + typedef struct { 286 + mach_msg_header_t Head; 287 + NDR_record_t NDR; 288 + int policy; 289 + } __Request__processor_set_policy_enable_t __attribute__((unused)); 290 + #ifdef __MigPackStructs 291 + #pragma pack(pop) 292 + #endif 293 + 294 + #ifdef __MigPackStructs 295 + #pragma pack(push, 4) 296 + #endif 297 + typedef struct { 298 + mach_msg_header_t Head; 299 + NDR_record_t NDR; 300 + int policy; 301 + boolean_t change_threads; 302 + } __Request__processor_set_policy_disable_t __attribute__((unused)); 303 + #ifdef __MigPackStructs 304 + #pragma pack(pop) 305 + #endif 306 + 307 + #ifdef __MigPackStructs 308 + #pragma pack(push, 4) 309 + #endif 310 + typedef struct { 311 + mach_msg_header_t Head; 312 + } __Request__processor_set_tasks_t __attribute__((unused)); 313 + #ifdef __MigPackStructs 314 + #pragma pack(pop) 315 + #endif 316 + 317 + #ifdef __MigPackStructs 318 + #pragma pack(push, 4) 319 + #endif 320 + typedef struct { 321 + mach_msg_header_t Head; 322 + } __Request__processor_set_threads_t __attribute__((unused)); 323 + #ifdef __MigPackStructs 324 + #pragma pack(pop) 325 + #endif 326 + 327 + #ifdef __MigPackStructs 328 + #pragma pack(push, 4) 329 + #endif 330 + typedef struct { 331 + mach_msg_header_t Head; 332 + NDR_record_t NDR; 333 + processor_set_flavor_t flavor; 334 + mach_msg_type_number_t policy_infoCnt; 335 + integer_t policy_info[5]; 336 + boolean_t change; 337 + } __Request__processor_set_policy_control_t __attribute__((unused)); 338 + #ifdef __MigPackStructs 339 + #pragma pack(pop) 340 + #endif 341 + 342 + #ifdef __MigPackStructs 343 + #pragma pack(push, 4) 344 + #endif 345 + typedef struct { 346 + mach_msg_header_t Head; 347 + } __Request__processor_set_stack_usage_t __attribute__((unused)); 348 + #ifdef __MigPackStructs 349 + #pragma pack(pop) 350 + #endif 351 + 352 + #ifdef __MigPackStructs 353 + #pragma pack(push, 4) 354 + #endif 355 + typedef struct { 356 + mach_msg_header_t Head; 357 + NDR_record_t NDR; 358 + int flavor; 359 + mach_msg_type_number_t info_outCnt; 360 + } __Request__processor_set_info_t __attribute__((unused)); 361 + #ifdef __MigPackStructs 362 + #pragma pack(pop) 363 + #endif 364 + #endif /* !__Request__processor_set_subsystem__defined */ 365 + 366 + /* union of all requests */ 367 + 368 + #ifndef __RequestUnion__processor_set_subsystem__defined 369 + #define __RequestUnion__processor_set_subsystem__defined 370 + union __RequestUnion__processor_set_subsystem { 371 + __Request__processor_set_statistics_t Request_processor_set_statistics; 372 + __Request__processor_set_destroy_t Request_processor_set_destroy; 373 + __Request__processor_set_max_priority_t Request_processor_set_max_priority; 374 + __Request__processor_set_policy_enable_t Request_processor_set_policy_enable; 375 + __Request__processor_set_policy_disable_t Request_processor_set_policy_disable; 376 + __Request__processor_set_tasks_t Request_processor_set_tasks; 377 + __Request__processor_set_threads_t Request_processor_set_threads; 378 + __Request__processor_set_policy_control_t Request_processor_set_policy_control; 379 + __Request__processor_set_stack_usage_t Request_processor_set_stack_usage; 380 + __Request__processor_set_info_t Request_processor_set_info; 381 + }; 382 + #endif /* !__RequestUnion__processor_set_subsystem__defined */ 383 + /* typedefs for all replies */ 384 + 385 + #ifndef __Reply__processor_set_subsystem__defined 386 + #define __Reply__processor_set_subsystem__defined 387 + 388 + #ifdef __MigPackStructs 389 + #pragma pack(push, 4) 390 + #endif 391 + typedef struct { 392 + mach_msg_header_t Head; 393 + NDR_record_t NDR; 394 + kern_return_t RetCode; 395 + mach_msg_type_number_t info_outCnt; 396 + integer_t info_out[5]; 397 + } __Reply__processor_set_statistics_t __attribute__((unused)); 398 + #ifdef __MigPackStructs 399 + #pragma pack(pop) 400 + #endif 401 + 402 + #ifdef __MigPackStructs 403 + #pragma pack(push, 4) 404 + #endif 405 + typedef struct { 406 + mach_msg_header_t Head; 407 + NDR_record_t NDR; 408 + kern_return_t RetCode; 409 + } __Reply__processor_set_destroy_t __attribute__((unused)); 410 + #ifdef __MigPackStructs 411 + #pragma pack(pop) 412 + #endif 413 + 414 + #ifdef __MigPackStructs 415 + #pragma pack(push, 4) 416 + #endif 417 + typedef struct { 418 + mach_msg_header_t Head; 419 + NDR_record_t NDR; 420 + kern_return_t RetCode; 421 + } __Reply__processor_set_max_priority_t __attribute__((unused)); 422 + #ifdef __MigPackStructs 423 + #pragma pack(pop) 424 + #endif 425 + 426 + #ifdef __MigPackStructs 427 + #pragma pack(push, 4) 428 + #endif 429 + typedef struct { 430 + mach_msg_header_t Head; 431 + NDR_record_t NDR; 432 + kern_return_t RetCode; 433 + } __Reply__processor_set_policy_enable_t __attribute__((unused)); 434 + #ifdef __MigPackStructs 435 + #pragma pack(pop) 436 + #endif 437 + 438 + #ifdef __MigPackStructs 439 + #pragma pack(push, 4) 440 + #endif 441 + typedef struct { 442 + mach_msg_header_t Head; 443 + NDR_record_t NDR; 444 + kern_return_t RetCode; 445 + } __Reply__processor_set_policy_disable_t __attribute__((unused)); 446 + #ifdef __MigPackStructs 447 + #pragma pack(pop) 448 + #endif 449 + 450 + #ifdef __MigPackStructs 451 + #pragma pack(push, 4) 452 + #endif 453 + typedef struct { 454 + mach_msg_header_t Head; 455 + /* start of the kernel processed data */ 456 + mach_msg_body_t msgh_body; 457 + mach_msg_ool_ports_descriptor_t task_list; 458 + /* end of the kernel processed data */ 459 + NDR_record_t NDR; 460 + mach_msg_type_number_t task_listCnt; 461 + } __Reply__processor_set_tasks_t __attribute__((unused)); 462 + #ifdef __MigPackStructs 463 + #pragma pack(pop) 464 + #endif 465 + 466 + #ifdef __MigPackStructs 467 + #pragma pack(push, 4) 468 + #endif 469 + typedef struct { 470 + mach_msg_header_t Head; 471 + /* start of the kernel processed data */ 472 + mach_msg_body_t msgh_body; 473 + mach_msg_ool_ports_descriptor_t thread_list; 474 + /* end of the kernel processed data */ 475 + NDR_record_t NDR; 476 + mach_msg_type_number_t thread_listCnt; 477 + } __Reply__processor_set_threads_t __attribute__((unused)); 478 + #ifdef __MigPackStructs 479 + #pragma pack(pop) 480 + #endif 481 + 482 + #ifdef __MigPackStructs 483 + #pragma pack(push, 4) 484 + #endif 485 + typedef struct { 486 + mach_msg_header_t Head; 487 + NDR_record_t NDR; 488 + kern_return_t RetCode; 489 + } __Reply__processor_set_policy_control_t __attribute__((unused)); 490 + #ifdef __MigPackStructs 491 + #pragma pack(pop) 492 + #endif 493 + 494 + #ifdef __MigPackStructs 495 + #pragma pack(push, 4) 496 + #endif 497 + typedef struct { 498 + mach_msg_header_t Head; 499 + NDR_record_t NDR; 500 + kern_return_t RetCode; 501 + unsigned ltotal; 502 + vm_size_t space; 503 + vm_size_t resident; 504 + vm_size_t maxusage; 505 + vm_offset_t maxstack; 506 + } __Reply__processor_set_stack_usage_t __attribute__((unused)); 507 + #ifdef __MigPackStructs 508 + #pragma pack(pop) 509 + #endif 510 + 511 + #ifdef __MigPackStructs 512 + #pragma pack(push, 4) 513 + #endif 514 + typedef struct { 515 + mach_msg_header_t Head; 516 + /* start of the kernel processed data */ 517 + mach_msg_body_t msgh_body; 518 + mach_msg_port_descriptor_t host; 519 + /* end of the kernel processed data */ 520 + NDR_record_t NDR; 521 + mach_msg_type_number_t info_outCnt; 522 + integer_t info_out[5]; 523 + } __Reply__processor_set_info_t __attribute__((unused)); 524 + #ifdef __MigPackStructs 525 + #pragma pack(pop) 526 + #endif 527 + #endif /* !__Reply__processor_set_subsystem__defined */ 528 + 529 + /* union of all replies */ 530 + 531 + #ifndef __ReplyUnion__processor_set_subsystem__defined 532 + #define __ReplyUnion__processor_set_subsystem__defined 533 + union __ReplyUnion__processor_set_subsystem { 534 + __Reply__processor_set_statistics_t Reply_processor_set_statistics; 535 + __Reply__processor_set_destroy_t Reply_processor_set_destroy; 536 + __Reply__processor_set_max_priority_t Reply_processor_set_max_priority; 537 + __Reply__processor_set_policy_enable_t Reply_processor_set_policy_enable; 538 + __Reply__processor_set_policy_disable_t Reply_processor_set_policy_disable; 539 + __Reply__processor_set_tasks_t Reply_processor_set_tasks; 540 + __Reply__processor_set_threads_t Reply_processor_set_threads; 541 + __Reply__processor_set_policy_control_t Reply_processor_set_policy_control; 542 + __Reply__processor_set_stack_usage_t Reply_processor_set_stack_usage; 543 + __Reply__processor_set_info_t Reply_processor_set_info; 544 + }; 545 + #endif /* !__RequestUnion__processor_set_subsystem__defined */ 546 + 547 + #ifndef subsystem_to_name_map_processor_set 548 + #define subsystem_to_name_map_processor_set \ 549 + { "processor_set_statistics", 4000 },\ 550 + { "processor_set_destroy", 4001 },\ 551 + { "processor_set_max_priority", 4002 },\ 552 + { "processor_set_policy_enable", 4003 },\ 553 + { "processor_set_policy_disable", 4004 },\ 554 + { "processor_set_tasks", 4005 },\ 555 + { "processor_set_threads", 4006 },\ 556 + { "processor_set_policy_control", 4007 },\ 557 + { "processor_set_stack_usage", 4008 },\ 558 + { "processor_set_info", 4009 } 559 + #endif 560 + 561 + #ifdef __AfterMigUserHeader 562 + __AfterMigUserHeader 563 + #endif /* __AfterMigUserHeader */ 564 + 565 + #endif /* _processor_set_user_ */
+322
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/servers/netname.h
··· 1 + #ifndef _netname_user_ 2 + #define _netname_user_ 3 + 4 + /* Module netname */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef netname_MSG_COUNT 77 + #define netname_MSG_COUNT 4 78 + #endif /* netname_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <servers/netname_defs.h> 83 + 84 + #ifdef __BeforeMigUserHeader 85 + __BeforeMigUserHeader 86 + #endif /* __BeforeMigUserHeader */ 87 + 88 + #include <sys/cdefs.h> 89 + __BEGIN_DECLS 90 + 91 + 92 + /* Routine netname_check_in */ 93 + #ifdef mig_external 94 + mig_external 95 + #else 96 + extern 97 + #endif /* mig_external */ 98 + kern_return_t netname_check_in 99 + ( 100 + mach_port_t server_port, 101 + netname_name_t port_name, 102 + mach_port_t signature, 103 + mach_port_t port_id 104 + ); 105 + 106 + /* Routine netname_look_up */ 107 + #ifdef mig_external 108 + mig_external 109 + #else 110 + extern 111 + #endif /* mig_external */ 112 + kern_return_t netname_look_up 113 + ( 114 + mach_port_t server_port, 115 + netname_name_t host_name, 116 + netname_name_t port_name, 117 + mach_port_t *port_id 118 + ); 119 + 120 + /* Routine netname_check_out */ 121 + #ifdef mig_external 122 + mig_external 123 + #else 124 + extern 125 + #endif /* mig_external */ 126 + kern_return_t netname_check_out 127 + ( 128 + mach_port_t server_port, 129 + netname_name_t port_name, 130 + mach_port_t signature 131 + ); 132 + 133 + /* Routine netname_version */ 134 + #ifdef mig_external 135 + mig_external 136 + #else 137 + extern 138 + #endif /* mig_external */ 139 + kern_return_t netname_version 140 + ( 141 + mach_port_t server_port, 142 + netname_name_t version 143 + ); 144 + 145 + __END_DECLS 146 + 147 + /********************** Caution **************************/ 148 + /* The following data types should be used to calculate */ 149 + /* maximum message sizes only. The actual message may be */ 150 + /* smaller, and the position of the arguments within the */ 151 + /* message layout may vary from what is presented here. */ 152 + /* For example, if any of the arguments are variable- */ 153 + /* sized, and less than the maximum is sent, the data */ 154 + /* will be packed tight in the actual message to reduce */ 155 + /* the presence of holes. */ 156 + /********************** Caution **************************/ 157 + 158 + /* typedefs for all requests */ 159 + 160 + #ifndef __Request__netname_subsystem__defined 161 + #define __Request__netname_subsystem__defined 162 + 163 + #ifdef __MigPackStructs 164 + #pragma pack(push, 4) 165 + #endif 166 + typedef struct { 167 + mach_msg_header_t Head; 168 + /* start of the kernel processed data */ 169 + mach_msg_body_t msgh_body; 170 + mach_msg_port_descriptor_t signature; 171 + mach_msg_port_descriptor_t port_id; 172 + /* end of the kernel processed data */ 173 + NDR_record_t NDR; 174 + mach_msg_type_number_t port_nameOffset; /* MiG doesn't use it */ 175 + mach_msg_type_number_t port_nameCnt; 176 + char port_name[80]; 177 + } __Request__netname_check_in_t __attribute__((unused)); 178 + #ifdef __MigPackStructs 179 + #pragma pack(pop) 180 + #endif 181 + 182 + #ifdef __MigPackStructs 183 + #pragma pack(push, 4) 184 + #endif 185 + typedef struct { 186 + mach_msg_header_t Head; 187 + NDR_record_t NDR; 188 + mach_msg_type_number_t host_nameOffset; /* MiG doesn't use it */ 189 + mach_msg_type_number_t host_nameCnt; 190 + char host_name[80]; 191 + mach_msg_type_number_t port_nameOffset; /* MiG doesn't use it */ 192 + mach_msg_type_number_t port_nameCnt; 193 + char port_name[80]; 194 + } __Request__netname_look_up_t __attribute__((unused)); 195 + #ifdef __MigPackStructs 196 + #pragma pack(pop) 197 + #endif 198 + 199 + #ifdef __MigPackStructs 200 + #pragma pack(push, 4) 201 + #endif 202 + typedef struct { 203 + mach_msg_header_t Head; 204 + /* start of the kernel processed data */ 205 + mach_msg_body_t msgh_body; 206 + mach_msg_port_descriptor_t signature; 207 + /* end of the kernel processed data */ 208 + NDR_record_t NDR; 209 + mach_msg_type_number_t port_nameOffset; /* MiG doesn't use it */ 210 + mach_msg_type_number_t port_nameCnt; 211 + char port_name[80]; 212 + } __Request__netname_check_out_t __attribute__((unused)); 213 + #ifdef __MigPackStructs 214 + #pragma pack(pop) 215 + #endif 216 + 217 + #ifdef __MigPackStructs 218 + #pragma pack(push, 4) 219 + #endif 220 + typedef struct { 221 + mach_msg_header_t Head; 222 + } __Request__netname_version_t __attribute__((unused)); 223 + #ifdef __MigPackStructs 224 + #pragma pack(pop) 225 + #endif 226 + #endif /* !__Request__netname_subsystem__defined */ 227 + 228 + /* union of all requests */ 229 + 230 + #ifndef __RequestUnion__netname_subsystem__defined 231 + #define __RequestUnion__netname_subsystem__defined 232 + union __RequestUnion__netname_subsystem { 233 + __Request__netname_check_in_t Request_netname_check_in; 234 + __Request__netname_look_up_t Request_netname_look_up; 235 + __Request__netname_check_out_t Request_netname_check_out; 236 + __Request__netname_version_t Request_netname_version; 237 + }; 238 + #endif /* !__RequestUnion__netname_subsystem__defined */ 239 + /* typedefs for all replies */ 240 + 241 + #ifndef __Reply__netname_subsystem__defined 242 + #define __Reply__netname_subsystem__defined 243 + 244 + #ifdef __MigPackStructs 245 + #pragma pack(push, 4) 246 + #endif 247 + typedef struct { 248 + mach_msg_header_t Head; 249 + NDR_record_t NDR; 250 + kern_return_t RetCode; 251 + } __Reply__netname_check_in_t __attribute__((unused)); 252 + #ifdef __MigPackStructs 253 + #pragma pack(pop) 254 + #endif 255 + 256 + #ifdef __MigPackStructs 257 + #pragma pack(push, 4) 258 + #endif 259 + typedef struct { 260 + mach_msg_header_t Head; 261 + /* start of the kernel processed data */ 262 + mach_msg_body_t msgh_body; 263 + mach_msg_port_descriptor_t port_id; 264 + /* end of the kernel processed data */ 265 + } __Reply__netname_look_up_t __attribute__((unused)); 266 + #ifdef __MigPackStructs 267 + #pragma pack(pop) 268 + #endif 269 + 270 + #ifdef __MigPackStructs 271 + #pragma pack(push, 4) 272 + #endif 273 + typedef struct { 274 + mach_msg_header_t Head; 275 + NDR_record_t NDR; 276 + kern_return_t RetCode; 277 + } __Reply__netname_check_out_t __attribute__((unused)); 278 + #ifdef __MigPackStructs 279 + #pragma pack(pop) 280 + #endif 281 + 282 + #ifdef __MigPackStructs 283 + #pragma pack(push, 4) 284 + #endif 285 + typedef struct { 286 + mach_msg_header_t Head; 287 + NDR_record_t NDR; 288 + kern_return_t RetCode; 289 + mach_msg_type_number_t versionOffset; /* MiG doesn't use it */ 290 + mach_msg_type_number_t versionCnt; 291 + char version[80]; 292 + } __Reply__netname_version_t __attribute__((unused)); 293 + #ifdef __MigPackStructs 294 + #pragma pack(pop) 295 + #endif 296 + #endif /* !__Reply__netname_subsystem__defined */ 297 + 298 + /* union of all replies */ 299 + 300 + #ifndef __ReplyUnion__netname_subsystem__defined 301 + #define __ReplyUnion__netname_subsystem__defined 302 + union __ReplyUnion__netname_subsystem { 303 + __Reply__netname_check_in_t Reply_netname_check_in; 304 + __Reply__netname_look_up_t Reply_netname_look_up; 305 + __Reply__netname_check_out_t Reply_netname_check_out; 306 + __Reply__netname_version_t Reply_netname_version; 307 + }; 308 + #endif /* !__RequestUnion__netname_subsystem__defined */ 309 + 310 + #ifndef subsystem_to_name_map_netname 311 + #define subsystem_to_name_map_netname \ 312 + { "netname_check_in", 1040 },\ 313 + { "netname_look_up", 1041 },\ 314 + { "netname_check_out", 1042 },\ 315 + { "netname_version", 1043 } 316 + #endif 317 + 318 + #ifdef __AfterMigUserHeader 319 + __AfterMigUserHeader 320 + #endif /* __AfterMigUserHeader */ 321 + 322 + #endif /* _netname_user_ */
+2456
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/task.h
··· 1 + #ifndef _task_user_ 2 + #define _task_user_ 3 + 4 + /* Module task */ 5 + 6 + #include <string.h> 7 + #include <mach/ndr.h> 8 + #include <mach/boolean.h> 9 + #include <mach/kern_return.h> 10 + #include <mach/notify.h> 11 + #include <mach/mach_types.h> 12 + #include <mach/message.h> 13 + #include <mach/mig_errors.h> 14 + #include <mach/port.h> 15 + 16 + /* BEGIN VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef task_MSG_COUNT 77 + #define task_MSG_COUNT 54 78 + #endif /* task_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + #include <mach_debug/mach_debug_types.h> 85 + 86 + #ifdef __BeforeMigUserHeader 87 + __BeforeMigUserHeader 88 + #endif /* __BeforeMigUserHeader */ 89 + 90 + #include <sys/cdefs.h> 91 + __BEGIN_DECLS 92 + 93 + 94 + /* Routine task_create */ 95 + #ifdef mig_external 96 + mig_external 97 + #else 98 + extern 99 + #endif /* mig_external */ 100 + kern_return_t task_create 101 + ( 102 + task_t target_task, 103 + ledger_array_t ledgers, 104 + mach_msg_type_number_t ledgersCnt, 105 + boolean_t inherit_memory, 106 + task_t *child_task 107 + ); 108 + 109 + /* Routine task_terminate */ 110 + #ifdef mig_external 111 + mig_external 112 + #else 113 + extern 114 + #endif /* mig_external */ 115 + kern_return_t task_terminate 116 + ( 117 + task_t target_task 118 + ); 119 + 120 + /* Routine task_threads */ 121 + #ifdef mig_external 122 + mig_external 123 + #else 124 + extern 125 + #endif /* mig_external */ 126 + kern_return_t task_threads 127 + ( 128 + task_inspect_t target_task, 129 + thread_act_array_t *act_list, 130 + mach_msg_type_number_t *act_listCnt 131 + ); 132 + 133 + /* Routine mach_ports_register */ 134 + #ifdef mig_external 135 + mig_external 136 + #else 137 + extern 138 + #endif /* mig_external */ 139 + kern_return_t mach_ports_register 140 + ( 141 + task_t target_task, 142 + mach_port_array_t init_port_set, 143 + mach_msg_type_number_t init_port_setCnt 144 + ); 145 + 146 + /* Routine mach_ports_lookup */ 147 + #ifdef mig_external 148 + mig_external 149 + #else 150 + extern 151 + #endif /* mig_external */ 152 + kern_return_t mach_ports_lookup 153 + ( 154 + task_t target_task, 155 + mach_port_array_t *init_port_set, 156 + mach_msg_type_number_t *init_port_setCnt 157 + ); 158 + 159 + /* Routine task_info */ 160 + #ifdef mig_external 161 + mig_external 162 + #else 163 + extern 164 + #endif /* mig_external */ 165 + kern_return_t task_info 166 + ( 167 + task_name_t target_task, 168 + task_flavor_t flavor, 169 + task_info_t task_info_out, 170 + mach_msg_type_number_t *task_info_outCnt 171 + ); 172 + 173 + /* Routine task_set_info */ 174 + #ifdef mig_external 175 + mig_external 176 + #else 177 + extern 178 + #endif /* mig_external */ 179 + kern_return_t task_set_info 180 + ( 181 + task_t target_task, 182 + task_flavor_t flavor, 183 + task_info_t task_info_in, 184 + mach_msg_type_number_t task_info_inCnt 185 + ); 186 + 187 + /* Routine task_suspend */ 188 + #ifdef mig_external 189 + mig_external 190 + #else 191 + extern 192 + #endif /* mig_external */ 193 + kern_return_t task_suspend 194 + ( 195 + task_t target_task 196 + ); 197 + 198 + /* Routine task_resume */ 199 + #ifdef mig_external 200 + mig_external 201 + #else 202 + extern 203 + #endif /* mig_external */ 204 + kern_return_t task_resume 205 + ( 206 + task_t target_task 207 + ); 208 + 209 + /* Routine task_get_special_port */ 210 + #ifdef mig_external 211 + mig_external 212 + #else 213 + extern 214 + #endif /* mig_external */ 215 + kern_return_t task_get_special_port 216 + ( 217 + task_inspect_t task, 218 + int which_port, 219 + mach_port_t *special_port 220 + ); 221 + 222 + /* Routine task_set_special_port */ 223 + #ifdef mig_external 224 + mig_external 225 + #else 226 + extern 227 + #endif /* mig_external */ 228 + kern_return_t task_set_special_port 229 + ( 230 + task_t task, 231 + int which_port, 232 + mach_port_t special_port 233 + ); 234 + 235 + /* Routine thread_create */ 236 + #ifdef mig_external 237 + mig_external 238 + #else 239 + extern 240 + #endif /* mig_external */ 241 + kern_return_t thread_create 242 + ( 243 + task_t parent_task, 244 + thread_act_t *child_act 245 + ); 246 + 247 + /* Routine thread_create_running */ 248 + #ifdef mig_external 249 + mig_external 250 + #else 251 + extern 252 + #endif /* mig_external */ 253 + kern_return_t thread_create_running 254 + ( 255 + task_t parent_task, 256 + thread_state_flavor_t flavor, 257 + thread_state_t new_state, 258 + mach_msg_type_number_t new_stateCnt, 259 + thread_act_t *child_act 260 + ); 261 + 262 + /* Routine task_set_exception_ports */ 263 + #ifdef mig_external 264 + mig_external 265 + #else 266 + extern 267 + #endif /* mig_external */ 268 + kern_return_t task_set_exception_ports 269 + ( 270 + task_t task, 271 + exception_mask_t exception_mask, 272 + mach_port_t new_port, 273 + exception_behavior_t behavior, 274 + thread_state_flavor_t new_flavor 275 + ); 276 + 277 + /* Routine task_get_exception_ports */ 278 + #ifdef mig_external 279 + mig_external 280 + #else 281 + extern 282 + #endif /* mig_external */ 283 + kern_return_t task_get_exception_ports 284 + ( 285 + task_inspect_t task, 286 + exception_mask_t exception_mask, 287 + exception_mask_array_t masks, 288 + mach_msg_type_number_t *masksCnt, 289 + exception_handler_array_t old_handlers, 290 + exception_behavior_array_t old_behaviors, 291 + exception_flavor_array_t old_flavors 292 + ); 293 + 294 + /* Routine task_swap_exception_ports */ 295 + #ifdef mig_external 296 + mig_external 297 + #else 298 + extern 299 + #endif /* mig_external */ 300 + kern_return_t task_swap_exception_ports 301 + ( 302 + task_t task, 303 + exception_mask_t exception_mask, 304 + mach_port_t new_port, 305 + exception_behavior_t behavior, 306 + thread_state_flavor_t new_flavor, 307 + exception_mask_array_t masks, 308 + mach_msg_type_number_t *masksCnt, 309 + exception_handler_array_t old_handlerss, 310 + exception_behavior_array_t old_behaviors, 311 + exception_flavor_array_t old_flavors 312 + ); 313 + 314 + /* Routine lock_set_create */ 315 + #ifdef mig_external 316 + mig_external 317 + #else 318 + extern 319 + #endif /* mig_external */ 320 + kern_return_t lock_set_create 321 + ( 322 + task_t task, 323 + lock_set_t *new_lock_set, 324 + int n_ulocks, 325 + int policy 326 + ); 327 + 328 + /* Routine lock_set_destroy */ 329 + #ifdef mig_external 330 + mig_external 331 + #else 332 + extern 333 + #endif /* mig_external */ 334 + kern_return_t lock_set_destroy 335 + ( 336 + task_t task, 337 + lock_set_t lock_set 338 + ); 339 + 340 + /* Routine semaphore_create */ 341 + #ifdef mig_external 342 + mig_external 343 + #else 344 + extern 345 + #endif /* mig_external */ 346 + kern_return_t semaphore_create 347 + ( 348 + task_t task, 349 + semaphore_t *semaphore, 350 + int policy, 351 + int value 352 + ); 353 + 354 + /* Routine semaphore_destroy */ 355 + #ifdef mig_external 356 + mig_external 357 + #else 358 + extern 359 + #endif /* mig_external */ 360 + kern_return_t semaphore_destroy 361 + ( 362 + task_t task, 363 + semaphore_t semaphore 364 + ); 365 + 366 + /* Routine task_policy_set */ 367 + #ifdef mig_external 368 + mig_external 369 + #else 370 + extern 371 + #endif /* mig_external */ 372 + kern_return_t task_policy_set 373 + ( 374 + task_t task, 375 + task_policy_flavor_t flavor, 376 + task_policy_t policy_info, 377 + mach_msg_type_number_t policy_infoCnt 378 + ); 379 + 380 + /* Routine task_policy_get */ 381 + #ifdef mig_external 382 + mig_external 383 + #else 384 + extern 385 + #endif /* mig_external */ 386 + kern_return_t task_policy_get 387 + ( 388 + task_t task, 389 + task_policy_flavor_t flavor, 390 + task_policy_t policy_info, 391 + mach_msg_type_number_t *policy_infoCnt, 392 + boolean_t *get_default 393 + ); 394 + 395 + /* Routine task_sample */ 396 + #ifdef mig_external 397 + mig_external 398 + #else 399 + extern 400 + #endif /* mig_external */ 401 + kern_return_t task_sample 402 + ( 403 + task_t task, 404 + mach_port_t reply 405 + ); 406 + 407 + /* Routine task_policy */ 408 + #ifdef mig_external 409 + mig_external 410 + #else 411 + extern 412 + #endif /* mig_external */ 413 + kern_return_t task_policy 414 + ( 415 + task_t task, 416 + policy_t policy, 417 + policy_base_t base, 418 + mach_msg_type_number_t baseCnt, 419 + boolean_t set_limit, 420 + boolean_t change 421 + ); 422 + 423 + /* Routine task_set_emulation */ 424 + #ifdef mig_external 425 + mig_external 426 + #else 427 + extern 428 + #endif /* mig_external */ 429 + kern_return_t task_set_emulation 430 + ( 431 + task_t target_port, 432 + vm_address_t routine_entry_pt, 433 + int routine_number 434 + ); 435 + 436 + /* Routine task_get_emulation_vector */ 437 + #ifdef mig_external 438 + mig_external 439 + #else 440 + extern 441 + #endif /* mig_external */ 442 + kern_return_t task_get_emulation_vector 443 + ( 444 + task_t task, 445 + int *vector_start, 446 + emulation_vector_t *emulation_vector, 447 + mach_msg_type_number_t *emulation_vectorCnt 448 + ); 449 + 450 + /* Routine task_set_emulation_vector */ 451 + #ifdef mig_external 452 + mig_external 453 + #else 454 + extern 455 + #endif /* mig_external */ 456 + kern_return_t task_set_emulation_vector 457 + ( 458 + task_t task, 459 + int vector_start, 460 + emulation_vector_t emulation_vector, 461 + mach_msg_type_number_t emulation_vectorCnt 462 + ); 463 + 464 + /* Routine task_set_ras_pc */ 465 + #ifdef mig_external 466 + mig_external 467 + #else 468 + extern 469 + #endif /* mig_external */ 470 + kern_return_t task_set_ras_pc 471 + ( 472 + task_t target_task, 473 + vm_address_t basepc, 474 + vm_address_t boundspc 475 + ); 476 + 477 + /* Routine task_zone_info */ 478 + #ifdef mig_external 479 + mig_external 480 + #else 481 + extern 482 + #endif /* mig_external */ 483 + kern_return_t task_zone_info 484 + ( 485 + task_t target_task, 486 + mach_zone_name_array_t *names, 487 + mach_msg_type_number_t *namesCnt, 488 + task_zone_info_array_t *info, 489 + mach_msg_type_number_t *infoCnt 490 + ); 491 + 492 + /* Routine task_assign */ 493 + #ifdef mig_external 494 + mig_external 495 + #else 496 + extern 497 + #endif /* mig_external */ 498 + kern_return_t task_assign 499 + ( 500 + task_t task, 501 + processor_set_t new_set, 502 + boolean_t assign_threads 503 + ); 504 + 505 + /* Routine task_assign_default */ 506 + #ifdef mig_external 507 + mig_external 508 + #else 509 + extern 510 + #endif /* mig_external */ 511 + kern_return_t task_assign_default 512 + ( 513 + task_t task, 514 + boolean_t assign_threads 515 + ); 516 + 517 + /* Routine task_get_assignment */ 518 + #ifdef mig_external 519 + mig_external 520 + #else 521 + extern 522 + #endif /* mig_external */ 523 + kern_return_t task_get_assignment 524 + ( 525 + task_t task, 526 + processor_set_name_t *assigned_set 527 + ); 528 + 529 + /* Routine task_set_policy */ 530 + #ifdef mig_external 531 + mig_external 532 + #else 533 + extern 534 + #endif /* mig_external */ 535 + kern_return_t task_set_policy 536 + ( 537 + task_t task, 538 + processor_set_t pset, 539 + policy_t policy, 540 + policy_base_t base, 541 + mach_msg_type_number_t baseCnt, 542 + policy_limit_t limit, 543 + mach_msg_type_number_t limitCnt, 544 + boolean_t change 545 + ); 546 + 547 + /* Routine task_get_state */ 548 + #ifdef mig_external 549 + mig_external 550 + #else 551 + extern 552 + #endif /* mig_external */ 553 + kern_return_t task_get_state 554 + ( 555 + task_t task, 556 + thread_state_flavor_t flavor, 557 + thread_state_t old_state, 558 + mach_msg_type_number_t *old_stateCnt 559 + ); 560 + 561 + /* Routine task_set_state */ 562 + #ifdef mig_external 563 + mig_external 564 + #else 565 + extern 566 + #endif /* mig_external */ 567 + kern_return_t task_set_state 568 + ( 569 + task_t task, 570 + thread_state_flavor_t flavor, 571 + thread_state_t new_state, 572 + mach_msg_type_number_t new_stateCnt 573 + ); 574 + 575 + /* Routine task_set_phys_footprint_limit */ 576 + #ifdef mig_external 577 + mig_external 578 + #else 579 + extern 580 + #endif /* mig_external */ 581 + kern_return_t task_set_phys_footprint_limit 582 + ( 583 + task_t task, 584 + int new_limit, 585 + int *old_limit 586 + ); 587 + 588 + /* Routine task_suspend2 */ 589 + #ifdef mig_external 590 + mig_external 591 + #else 592 + extern 593 + #endif /* mig_external */ 594 + kern_return_t task_suspend2 595 + ( 596 + task_t target_task, 597 + task_suspension_token_t *suspend_token 598 + ); 599 + 600 + /* Routine task_resume2 */ 601 + #ifdef mig_external 602 + mig_external 603 + #else 604 + extern 605 + #endif /* mig_external */ 606 + kern_return_t task_resume2 607 + ( 608 + task_suspension_token_t suspend_token 609 + ); 610 + 611 + /* Routine task_purgable_info */ 612 + #ifdef mig_external 613 + mig_external 614 + #else 615 + extern 616 + #endif /* mig_external */ 617 + kern_return_t task_purgable_info 618 + ( 619 + task_t task, 620 + task_purgable_info_t *stats 621 + ); 622 + 623 + /* Routine task_get_mach_voucher */ 624 + #ifdef mig_external 625 + mig_external 626 + #else 627 + extern 628 + #endif /* mig_external */ 629 + kern_return_t task_get_mach_voucher 630 + ( 631 + task_t task, 632 + mach_voucher_selector_t which, 633 + ipc_voucher_t *voucher 634 + ); 635 + 636 + /* Routine task_set_mach_voucher */ 637 + #ifdef mig_external 638 + mig_external 639 + #else 640 + extern 641 + #endif /* mig_external */ 642 + kern_return_t task_set_mach_voucher 643 + ( 644 + task_t task, 645 + ipc_voucher_t voucher 646 + ); 647 + 648 + /* Routine task_swap_mach_voucher */ 649 + #ifdef mig_external 650 + mig_external 651 + #else 652 + extern 653 + #endif /* mig_external */ 654 + kern_return_t task_swap_mach_voucher 655 + ( 656 + task_t task, 657 + ipc_voucher_t new_voucher, 658 + ipc_voucher_t *old_voucher 659 + ); 660 + 661 + /* Routine task_generate_corpse */ 662 + #ifdef mig_external 663 + mig_external 664 + #else 665 + extern 666 + #endif /* mig_external */ 667 + kern_return_t task_generate_corpse 668 + ( 669 + task_t task, 670 + mach_port_t *corpse_task_port 671 + ); 672 + 673 + /* Routine task_map_corpse_info */ 674 + #ifdef mig_external 675 + mig_external 676 + #else 677 + extern 678 + #endif /* mig_external */ 679 + kern_return_t task_map_corpse_info 680 + ( 681 + task_t task, 682 + task_t corspe_task, 683 + vm_address_t *kcd_addr_begin, 684 + uint32_t *kcd_size 685 + ); 686 + 687 + /* Routine task_register_dyld_image_infos */ 688 + #ifdef mig_external 689 + mig_external 690 + #else 691 + extern 692 + #endif /* mig_external */ 693 + kern_return_t task_register_dyld_image_infos 694 + ( 695 + task_t task, 696 + dyld_kernel_image_info_array_t dyld_images, 697 + mach_msg_type_number_t dyld_imagesCnt 698 + ); 699 + 700 + /* Routine task_unregister_dyld_image_infos */ 701 + #ifdef mig_external 702 + mig_external 703 + #else 704 + extern 705 + #endif /* mig_external */ 706 + kern_return_t task_unregister_dyld_image_infos 707 + ( 708 + task_t task, 709 + dyld_kernel_image_info_array_t dyld_images, 710 + mach_msg_type_number_t dyld_imagesCnt 711 + ); 712 + 713 + /* Routine task_get_dyld_image_infos */ 714 + #ifdef mig_external 715 + mig_external 716 + #else 717 + extern 718 + #endif /* mig_external */ 719 + kern_return_t task_get_dyld_image_infos 720 + ( 721 + task_inspect_t task, 722 + dyld_kernel_image_info_array_t *dyld_images, 723 + mach_msg_type_number_t *dyld_imagesCnt 724 + ); 725 + 726 + /* Routine task_register_dyld_shared_cache_image_info */ 727 + #ifdef mig_external 728 + mig_external 729 + #else 730 + extern 731 + #endif /* mig_external */ 732 + kern_return_t task_register_dyld_shared_cache_image_info 733 + ( 734 + task_t task, 735 + dyld_kernel_image_info_t dyld_cache_image, 736 + boolean_t no_cache, 737 + boolean_t private_cache 738 + ); 739 + 740 + /* Routine task_register_dyld_set_dyld_state */ 741 + #ifdef mig_external 742 + mig_external 743 + #else 744 + extern 745 + #endif /* mig_external */ 746 + kern_return_t task_register_dyld_set_dyld_state 747 + ( 748 + task_t task, 749 + uint8_t dyld_state 750 + ); 751 + 752 + /* Routine task_register_dyld_get_process_state */ 753 + #ifdef mig_external 754 + mig_external 755 + #else 756 + extern 757 + #endif /* mig_external */ 758 + kern_return_t task_register_dyld_get_process_state 759 + ( 760 + task_t task, 761 + dyld_kernel_process_info_t *dyld_process_state 762 + ); 763 + 764 + /* Routine task_map_corpse_info_64 */ 765 + #ifdef mig_external 766 + mig_external 767 + #else 768 + extern 769 + #endif /* mig_external */ 770 + kern_return_t task_map_corpse_info_64 771 + ( 772 + task_t task, 773 + task_t corspe_task, 774 + mach_vm_address_t *kcd_addr_begin, 775 + mach_vm_size_t *kcd_size 776 + ); 777 + 778 + /* Routine task_inspect */ 779 + #ifdef mig_external 780 + mig_external 781 + #else 782 + extern 783 + #endif /* mig_external */ 784 + kern_return_t task_inspect 785 + ( 786 + task_inspect_t task, 787 + task_inspect_flavor_t flavor, 788 + task_inspect_info_t info_out, 789 + mach_msg_type_number_t *info_outCnt 790 + ); 791 + 792 + /* Routine task_get_exc_guard_behavior */ 793 + #ifdef mig_external 794 + mig_external 795 + #else 796 + extern 797 + #endif /* mig_external */ 798 + kern_return_t task_get_exc_guard_behavior 799 + ( 800 + task_inspect_t task, 801 + task_exc_guard_behavior_t *behavior 802 + ); 803 + 804 + /* Routine task_set_exc_guard_behavior */ 805 + #ifdef mig_external 806 + mig_external 807 + #else 808 + extern 809 + #endif /* mig_external */ 810 + kern_return_t task_set_exc_guard_behavior 811 + ( 812 + task_t task, 813 + task_exc_guard_behavior_t behavior 814 + ); 815 + 816 + __END_DECLS 817 + 818 + /********************** Caution **************************/ 819 + /* The following data types should be used to calculate */ 820 + /* maximum message sizes only. The actual message may be */ 821 + /* smaller, and the position of the arguments within the */ 822 + /* message layout may vary from what is presented here. */ 823 + /* For example, if any of the arguments are variable- */ 824 + /* sized, and less than the maximum is sent, the data */ 825 + /* will be packed tight in the actual message to reduce */ 826 + /* the presence of holes. */ 827 + /********************** Caution **************************/ 828 + 829 + /* typedefs for all requests */ 830 + 831 + #ifndef __Request__task_subsystem__defined 832 + #define __Request__task_subsystem__defined 833 + 834 + #ifdef __MigPackStructs 835 + #pragma pack(push, 4) 836 + #endif 837 + typedef struct { 838 + mach_msg_header_t Head; 839 + /* start of the kernel processed data */ 840 + mach_msg_body_t msgh_body; 841 + mach_msg_ool_ports_descriptor_t ledgers; 842 + /* end of the kernel processed data */ 843 + NDR_record_t NDR; 844 + mach_msg_type_number_t ledgersCnt; 845 + boolean_t inherit_memory; 846 + } __Request__task_create_t __attribute__((unused)); 847 + #ifdef __MigPackStructs 848 + #pragma pack(pop) 849 + #endif 850 + 851 + #ifdef __MigPackStructs 852 + #pragma pack(push, 4) 853 + #endif 854 + typedef struct { 855 + mach_msg_header_t Head; 856 + } __Request__task_terminate_t __attribute__((unused)); 857 + #ifdef __MigPackStructs 858 + #pragma pack(pop) 859 + #endif 860 + 861 + #ifdef __MigPackStructs 862 + #pragma pack(push, 4) 863 + #endif 864 + typedef struct { 865 + mach_msg_header_t Head; 866 + } __Request__task_threads_t __attribute__((unused)); 867 + #ifdef __MigPackStructs 868 + #pragma pack(pop) 869 + #endif 870 + 871 + #ifdef __MigPackStructs 872 + #pragma pack(push, 4) 873 + #endif 874 + typedef struct { 875 + mach_msg_header_t Head; 876 + /* start of the kernel processed data */ 877 + mach_msg_body_t msgh_body; 878 + mach_msg_ool_ports_descriptor_t init_port_set; 879 + /* end of the kernel processed data */ 880 + NDR_record_t NDR; 881 + mach_msg_type_number_t init_port_setCnt; 882 + } __Request__mach_ports_register_t __attribute__((unused)); 883 + #ifdef __MigPackStructs 884 + #pragma pack(pop) 885 + #endif 886 + 887 + #ifdef __MigPackStructs 888 + #pragma pack(push, 4) 889 + #endif 890 + typedef struct { 891 + mach_msg_header_t Head; 892 + } __Request__mach_ports_lookup_t __attribute__((unused)); 893 + #ifdef __MigPackStructs 894 + #pragma pack(pop) 895 + #endif 896 + 897 + #ifdef __MigPackStructs 898 + #pragma pack(push, 4) 899 + #endif 900 + typedef struct { 901 + mach_msg_header_t Head; 902 + NDR_record_t NDR; 903 + task_flavor_t flavor; 904 + mach_msg_type_number_t task_info_outCnt; 905 + } __Request__task_info_t __attribute__((unused)); 906 + #ifdef __MigPackStructs 907 + #pragma pack(pop) 908 + #endif 909 + 910 + #ifdef __MigPackStructs 911 + #pragma pack(push, 4) 912 + #endif 913 + typedef struct { 914 + mach_msg_header_t Head; 915 + NDR_record_t NDR; 916 + task_flavor_t flavor; 917 + mach_msg_type_number_t task_info_inCnt; 918 + integer_t task_info_in[87]; 919 + } __Request__task_set_info_t __attribute__((unused)); 920 + #ifdef __MigPackStructs 921 + #pragma pack(pop) 922 + #endif 923 + 924 + #ifdef __MigPackStructs 925 + #pragma pack(push, 4) 926 + #endif 927 + typedef struct { 928 + mach_msg_header_t Head; 929 + } __Request__task_suspend_t __attribute__((unused)); 930 + #ifdef __MigPackStructs 931 + #pragma pack(pop) 932 + #endif 933 + 934 + #ifdef __MigPackStructs 935 + #pragma pack(push, 4) 936 + #endif 937 + typedef struct { 938 + mach_msg_header_t Head; 939 + } __Request__task_resume_t __attribute__((unused)); 940 + #ifdef __MigPackStructs 941 + #pragma pack(pop) 942 + #endif 943 + 944 + #ifdef __MigPackStructs 945 + #pragma pack(push, 4) 946 + #endif 947 + typedef struct { 948 + mach_msg_header_t Head; 949 + NDR_record_t NDR; 950 + int which_port; 951 + } __Request__task_get_special_port_t __attribute__((unused)); 952 + #ifdef __MigPackStructs 953 + #pragma pack(pop) 954 + #endif 955 + 956 + #ifdef __MigPackStructs 957 + #pragma pack(push, 4) 958 + #endif 959 + typedef struct { 960 + mach_msg_header_t Head; 961 + /* start of the kernel processed data */ 962 + mach_msg_body_t msgh_body; 963 + mach_msg_port_descriptor_t special_port; 964 + /* end of the kernel processed data */ 965 + NDR_record_t NDR; 966 + int which_port; 967 + } __Request__task_set_special_port_t __attribute__((unused)); 968 + #ifdef __MigPackStructs 969 + #pragma pack(pop) 970 + #endif 971 + 972 + #ifdef __MigPackStructs 973 + #pragma pack(push, 4) 974 + #endif 975 + typedef struct { 976 + mach_msg_header_t Head; 977 + } __Request__thread_create_t __attribute__((unused)); 978 + #ifdef __MigPackStructs 979 + #pragma pack(pop) 980 + #endif 981 + 982 + #ifdef __MigPackStructs 983 + #pragma pack(push, 4) 984 + #endif 985 + typedef struct { 986 + mach_msg_header_t Head; 987 + NDR_record_t NDR; 988 + thread_state_flavor_t flavor; 989 + mach_msg_type_number_t new_stateCnt; 990 + natural_t new_state[614]; 991 + } __Request__thread_create_running_t __attribute__((unused)); 992 + #ifdef __MigPackStructs 993 + #pragma pack(pop) 994 + #endif 995 + 996 + #ifdef __MigPackStructs 997 + #pragma pack(push, 4) 998 + #endif 999 + typedef struct { 1000 + mach_msg_header_t Head; 1001 + /* start of the kernel processed data */ 1002 + mach_msg_body_t msgh_body; 1003 + mach_msg_port_descriptor_t new_port; 1004 + /* end of the kernel processed data */ 1005 + NDR_record_t NDR; 1006 + exception_mask_t exception_mask; 1007 + exception_behavior_t behavior; 1008 + thread_state_flavor_t new_flavor; 1009 + } __Request__task_set_exception_ports_t __attribute__((unused)); 1010 + #ifdef __MigPackStructs 1011 + #pragma pack(pop) 1012 + #endif 1013 + 1014 + #ifdef __MigPackStructs 1015 + #pragma pack(push, 4) 1016 + #endif 1017 + typedef struct { 1018 + mach_msg_header_t Head; 1019 + NDR_record_t NDR; 1020 + exception_mask_t exception_mask; 1021 + } __Request__task_get_exception_ports_t __attribute__((unused)); 1022 + #ifdef __MigPackStructs 1023 + #pragma pack(pop) 1024 + #endif 1025 + 1026 + #ifdef __MigPackStructs 1027 + #pragma pack(push, 4) 1028 + #endif 1029 + typedef struct { 1030 + mach_msg_header_t Head; 1031 + /* start of the kernel processed data */ 1032 + mach_msg_body_t msgh_body; 1033 + mach_msg_port_descriptor_t new_port; 1034 + /* end of the kernel processed data */ 1035 + NDR_record_t NDR; 1036 + exception_mask_t exception_mask; 1037 + exception_behavior_t behavior; 1038 + thread_state_flavor_t new_flavor; 1039 + } __Request__task_swap_exception_ports_t __attribute__((unused)); 1040 + #ifdef __MigPackStructs 1041 + #pragma pack(pop) 1042 + #endif 1043 + 1044 + #ifdef __MigPackStructs 1045 + #pragma pack(push, 4) 1046 + #endif 1047 + typedef struct { 1048 + mach_msg_header_t Head; 1049 + NDR_record_t NDR; 1050 + int n_ulocks; 1051 + int policy; 1052 + } __Request__lock_set_create_t __attribute__((unused)); 1053 + #ifdef __MigPackStructs 1054 + #pragma pack(pop) 1055 + #endif 1056 + 1057 + #ifdef __MigPackStructs 1058 + #pragma pack(push, 4) 1059 + #endif 1060 + typedef struct { 1061 + mach_msg_header_t Head; 1062 + /* start of the kernel processed data */ 1063 + mach_msg_body_t msgh_body; 1064 + mach_msg_port_descriptor_t lock_set; 1065 + /* end of the kernel processed data */ 1066 + } __Request__lock_set_destroy_t __attribute__((unused)); 1067 + #ifdef __MigPackStructs 1068 + #pragma pack(pop) 1069 + #endif 1070 + 1071 + #ifdef __MigPackStructs 1072 + #pragma pack(push, 4) 1073 + #endif 1074 + typedef struct { 1075 + mach_msg_header_t Head; 1076 + NDR_record_t NDR; 1077 + int policy; 1078 + int value; 1079 + } __Request__semaphore_create_t __attribute__((unused)); 1080 + #ifdef __MigPackStructs 1081 + #pragma pack(pop) 1082 + #endif 1083 + 1084 + #ifdef __MigPackStructs 1085 + #pragma pack(push, 4) 1086 + #endif 1087 + typedef struct { 1088 + mach_msg_header_t Head; 1089 + /* start of the kernel processed data */ 1090 + mach_msg_body_t msgh_body; 1091 + mach_msg_port_descriptor_t semaphore; 1092 + /* end of the kernel processed data */ 1093 + } __Request__semaphore_destroy_t __attribute__((unused)); 1094 + #ifdef __MigPackStructs 1095 + #pragma pack(pop) 1096 + #endif 1097 + 1098 + #ifdef __MigPackStructs 1099 + #pragma pack(push, 4) 1100 + #endif 1101 + typedef struct { 1102 + mach_msg_header_t Head; 1103 + NDR_record_t NDR; 1104 + task_policy_flavor_t flavor; 1105 + mach_msg_type_number_t policy_infoCnt; 1106 + integer_t policy_info[16]; 1107 + } __Request__task_policy_set_t __attribute__((unused)); 1108 + #ifdef __MigPackStructs 1109 + #pragma pack(pop) 1110 + #endif 1111 + 1112 + #ifdef __MigPackStructs 1113 + #pragma pack(push, 4) 1114 + #endif 1115 + typedef struct { 1116 + mach_msg_header_t Head; 1117 + NDR_record_t NDR; 1118 + task_policy_flavor_t flavor; 1119 + mach_msg_type_number_t policy_infoCnt; 1120 + boolean_t get_default; 1121 + } __Request__task_policy_get_t __attribute__((unused)); 1122 + #ifdef __MigPackStructs 1123 + #pragma pack(pop) 1124 + #endif 1125 + 1126 + #ifdef __MigPackStructs 1127 + #pragma pack(push, 4) 1128 + #endif 1129 + typedef struct { 1130 + mach_msg_header_t Head; 1131 + /* start of the kernel processed data */ 1132 + mach_msg_body_t msgh_body; 1133 + mach_msg_port_descriptor_t reply; 1134 + /* end of the kernel processed data */ 1135 + } __Request__task_sample_t __attribute__((unused)); 1136 + #ifdef __MigPackStructs 1137 + #pragma pack(pop) 1138 + #endif 1139 + 1140 + #ifdef __MigPackStructs 1141 + #pragma pack(push, 4) 1142 + #endif 1143 + typedef struct { 1144 + mach_msg_header_t Head; 1145 + NDR_record_t NDR; 1146 + policy_t policy; 1147 + mach_msg_type_number_t baseCnt; 1148 + integer_t base[5]; 1149 + boolean_t set_limit; 1150 + boolean_t change; 1151 + } __Request__task_policy_t __attribute__((unused)); 1152 + #ifdef __MigPackStructs 1153 + #pragma pack(pop) 1154 + #endif 1155 + 1156 + #ifdef __MigPackStructs 1157 + #pragma pack(push, 4) 1158 + #endif 1159 + typedef struct { 1160 + mach_msg_header_t Head; 1161 + NDR_record_t NDR; 1162 + vm_address_t routine_entry_pt; 1163 + int routine_number; 1164 + } __Request__task_set_emulation_t __attribute__((unused)); 1165 + #ifdef __MigPackStructs 1166 + #pragma pack(pop) 1167 + #endif 1168 + 1169 + #ifdef __MigPackStructs 1170 + #pragma pack(push, 4) 1171 + #endif 1172 + typedef struct { 1173 + mach_msg_header_t Head; 1174 + } __Request__task_get_emulation_vector_t __attribute__((unused)); 1175 + #ifdef __MigPackStructs 1176 + #pragma pack(pop) 1177 + #endif 1178 + 1179 + #ifdef __MigPackStructs 1180 + #pragma pack(push, 4) 1181 + #endif 1182 + typedef struct { 1183 + mach_msg_header_t Head; 1184 + /* start of the kernel processed data */ 1185 + mach_msg_body_t msgh_body; 1186 + mach_msg_ool_descriptor_t emulation_vector; 1187 + /* end of the kernel processed data */ 1188 + NDR_record_t NDR; 1189 + int vector_start; 1190 + mach_msg_type_number_t emulation_vectorCnt; 1191 + } __Request__task_set_emulation_vector_t __attribute__((unused)); 1192 + #ifdef __MigPackStructs 1193 + #pragma pack(pop) 1194 + #endif 1195 + 1196 + #ifdef __MigPackStructs 1197 + #pragma pack(push, 4) 1198 + #endif 1199 + typedef struct { 1200 + mach_msg_header_t Head; 1201 + NDR_record_t NDR; 1202 + vm_address_t basepc; 1203 + vm_address_t boundspc; 1204 + } __Request__task_set_ras_pc_t __attribute__((unused)); 1205 + #ifdef __MigPackStructs 1206 + #pragma pack(pop) 1207 + #endif 1208 + 1209 + #ifdef __MigPackStructs 1210 + #pragma pack(push, 4) 1211 + #endif 1212 + typedef struct { 1213 + mach_msg_header_t Head; 1214 + } __Request__task_zone_info_t __attribute__((unused)); 1215 + #ifdef __MigPackStructs 1216 + #pragma pack(pop) 1217 + #endif 1218 + 1219 + #ifdef __MigPackStructs 1220 + #pragma pack(push, 4) 1221 + #endif 1222 + typedef struct { 1223 + mach_msg_header_t Head; 1224 + /* start of the kernel processed data */ 1225 + mach_msg_body_t msgh_body; 1226 + mach_msg_port_descriptor_t new_set; 1227 + /* end of the kernel processed data */ 1228 + NDR_record_t NDR; 1229 + boolean_t assign_threads; 1230 + } __Request__task_assign_t __attribute__((unused)); 1231 + #ifdef __MigPackStructs 1232 + #pragma pack(pop) 1233 + #endif 1234 + 1235 + #ifdef __MigPackStructs 1236 + #pragma pack(push, 4) 1237 + #endif 1238 + typedef struct { 1239 + mach_msg_header_t Head; 1240 + NDR_record_t NDR; 1241 + boolean_t assign_threads; 1242 + } __Request__task_assign_default_t __attribute__((unused)); 1243 + #ifdef __MigPackStructs 1244 + #pragma pack(pop) 1245 + #endif 1246 + 1247 + #ifdef __MigPackStructs 1248 + #pragma pack(push, 4) 1249 + #endif 1250 + typedef struct { 1251 + mach_msg_header_t Head; 1252 + } __Request__task_get_assignment_t __attribute__((unused)); 1253 + #ifdef __MigPackStructs 1254 + #pragma pack(pop) 1255 + #endif 1256 + 1257 + #ifdef __MigPackStructs 1258 + #pragma pack(push, 4) 1259 + #endif 1260 + typedef struct { 1261 + mach_msg_header_t Head; 1262 + /* start of the kernel processed data */ 1263 + mach_msg_body_t msgh_body; 1264 + mach_msg_port_descriptor_t pset; 1265 + /* end of the kernel processed data */ 1266 + NDR_record_t NDR; 1267 + policy_t policy; 1268 + mach_msg_type_number_t baseCnt; 1269 + integer_t base[5]; 1270 + mach_msg_type_number_t limitCnt; 1271 + integer_t limit[1]; 1272 + boolean_t change; 1273 + } __Request__task_set_policy_t __attribute__((unused)); 1274 + #ifdef __MigPackStructs 1275 + #pragma pack(pop) 1276 + #endif 1277 + 1278 + #ifdef __MigPackStructs 1279 + #pragma pack(push, 4) 1280 + #endif 1281 + typedef struct { 1282 + mach_msg_header_t Head; 1283 + NDR_record_t NDR; 1284 + thread_state_flavor_t flavor; 1285 + mach_msg_type_number_t old_stateCnt; 1286 + } __Request__task_get_state_t __attribute__((unused)); 1287 + #ifdef __MigPackStructs 1288 + #pragma pack(pop) 1289 + #endif 1290 + 1291 + #ifdef __MigPackStructs 1292 + #pragma pack(push, 4) 1293 + #endif 1294 + typedef struct { 1295 + mach_msg_header_t Head; 1296 + NDR_record_t NDR; 1297 + thread_state_flavor_t flavor; 1298 + mach_msg_type_number_t new_stateCnt; 1299 + natural_t new_state[614]; 1300 + } __Request__task_set_state_t __attribute__((unused)); 1301 + #ifdef __MigPackStructs 1302 + #pragma pack(pop) 1303 + #endif 1304 + 1305 + #ifdef __MigPackStructs 1306 + #pragma pack(push, 4) 1307 + #endif 1308 + typedef struct { 1309 + mach_msg_header_t Head; 1310 + NDR_record_t NDR; 1311 + int new_limit; 1312 + } __Request__task_set_phys_footprint_limit_t __attribute__((unused)); 1313 + #ifdef __MigPackStructs 1314 + #pragma pack(pop) 1315 + #endif 1316 + 1317 + #ifdef __MigPackStructs 1318 + #pragma pack(push, 4) 1319 + #endif 1320 + typedef struct { 1321 + mach_msg_header_t Head; 1322 + } __Request__task_suspend2_t __attribute__((unused)); 1323 + #ifdef __MigPackStructs 1324 + #pragma pack(pop) 1325 + #endif 1326 + 1327 + #ifdef __MigPackStructs 1328 + #pragma pack(push, 4) 1329 + #endif 1330 + typedef struct { 1331 + mach_msg_header_t Head; 1332 + } __Request__task_resume2_t __attribute__((unused)); 1333 + #ifdef __MigPackStructs 1334 + #pragma pack(pop) 1335 + #endif 1336 + 1337 + #ifdef __MigPackStructs 1338 + #pragma pack(push, 4) 1339 + #endif 1340 + typedef struct { 1341 + mach_msg_header_t Head; 1342 + } __Request__task_purgable_info_t __attribute__((unused)); 1343 + #ifdef __MigPackStructs 1344 + #pragma pack(pop) 1345 + #endif 1346 + 1347 + #ifdef __MigPackStructs 1348 + #pragma pack(push, 4) 1349 + #endif 1350 + typedef struct { 1351 + mach_msg_header_t Head; 1352 + NDR_record_t NDR; 1353 + mach_voucher_selector_t which; 1354 + } __Request__task_get_mach_voucher_t __attribute__((unused)); 1355 + #ifdef __MigPackStructs 1356 + #pragma pack(pop) 1357 + #endif 1358 + 1359 + #ifdef __MigPackStructs 1360 + #pragma pack(push, 4) 1361 + #endif 1362 + typedef struct { 1363 + mach_msg_header_t Head; 1364 + /* start of the kernel processed data */ 1365 + mach_msg_body_t msgh_body; 1366 + mach_msg_port_descriptor_t voucher; 1367 + /* end of the kernel processed data */ 1368 + } __Request__task_set_mach_voucher_t __attribute__((unused)); 1369 + #ifdef __MigPackStructs 1370 + #pragma pack(pop) 1371 + #endif 1372 + 1373 + #ifdef __MigPackStructs 1374 + #pragma pack(push, 4) 1375 + #endif 1376 + typedef struct { 1377 + mach_msg_header_t Head; 1378 + /* start of the kernel processed data */ 1379 + mach_msg_body_t msgh_body; 1380 + mach_msg_port_descriptor_t new_voucher; 1381 + mach_msg_port_descriptor_t old_voucher; 1382 + /* end of the kernel processed data */ 1383 + } __Request__task_swap_mach_voucher_t __attribute__((unused)); 1384 + #ifdef __MigPackStructs 1385 + #pragma pack(pop) 1386 + #endif 1387 + 1388 + #ifdef __MigPackStructs 1389 + #pragma pack(push, 4) 1390 + #endif 1391 + typedef struct { 1392 + mach_msg_header_t Head; 1393 + } __Request__task_generate_corpse_t __attribute__((unused)); 1394 + #ifdef __MigPackStructs 1395 + #pragma pack(pop) 1396 + #endif 1397 + 1398 + #ifdef __MigPackStructs 1399 + #pragma pack(push, 4) 1400 + #endif 1401 + typedef struct { 1402 + mach_msg_header_t Head; 1403 + /* start of the kernel processed data */ 1404 + mach_msg_body_t msgh_body; 1405 + mach_msg_port_descriptor_t corspe_task; 1406 + /* end of the kernel processed data */ 1407 + } __Request__task_map_corpse_info_t __attribute__((unused)); 1408 + #ifdef __MigPackStructs 1409 + #pragma pack(pop) 1410 + #endif 1411 + 1412 + #ifdef __MigPackStructs 1413 + #pragma pack(push, 4) 1414 + #endif 1415 + typedef struct { 1416 + mach_msg_header_t Head; 1417 + /* start of the kernel processed data */ 1418 + mach_msg_body_t msgh_body; 1419 + mach_msg_ool_descriptor_t dyld_images; 1420 + /* end of the kernel processed data */ 1421 + NDR_record_t NDR; 1422 + mach_msg_type_number_t dyld_imagesCnt; 1423 + } __Request__task_register_dyld_image_infos_t __attribute__((unused)); 1424 + #ifdef __MigPackStructs 1425 + #pragma pack(pop) 1426 + #endif 1427 + 1428 + #ifdef __MigPackStructs 1429 + #pragma pack(push, 4) 1430 + #endif 1431 + typedef struct { 1432 + mach_msg_header_t Head; 1433 + /* start of the kernel processed data */ 1434 + mach_msg_body_t msgh_body; 1435 + mach_msg_ool_descriptor_t dyld_images; 1436 + /* end of the kernel processed data */ 1437 + NDR_record_t NDR; 1438 + mach_msg_type_number_t dyld_imagesCnt; 1439 + } __Request__task_unregister_dyld_image_infos_t __attribute__((unused)); 1440 + #ifdef __MigPackStructs 1441 + #pragma pack(pop) 1442 + #endif 1443 + 1444 + #ifdef __MigPackStructs 1445 + #pragma pack(push, 4) 1446 + #endif 1447 + typedef struct { 1448 + mach_msg_header_t Head; 1449 + } __Request__task_get_dyld_image_infos_t __attribute__((unused)); 1450 + #ifdef __MigPackStructs 1451 + #pragma pack(pop) 1452 + #endif 1453 + 1454 + #ifdef __MigPackStructs 1455 + #pragma pack(push, 4) 1456 + #endif 1457 + typedef struct { 1458 + mach_msg_header_t Head; 1459 + NDR_record_t NDR; 1460 + dyld_kernel_image_info_t dyld_cache_image; 1461 + boolean_t no_cache; 1462 + boolean_t private_cache; 1463 + } __Request__task_register_dyld_shared_cache_image_info_t __attribute__((unused)); 1464 + #ifdef __MigPackStructs 1465 + #pragma pack(pop) 1466 + #endif 1467 + 1468 + #ifdef __MigPackStructs 1469 + #pragma pack(push, 4) 1470 + #endif 1471 + typedef struct { 1472 + mach_msg_header_t Head; 1473 + NDR_record_t NDR; 1474 + uint8_t dyld_state; 1475 + char dyld_statePad[3]; 1476 + } __Request__task_register_dyld_set_dyld_state_t __attribute__((unused)); 1477 + #ifdef __MigPackStructs 1478 + #pragma pack(pop) 1479 + #endif 1480 + 1481 + #ifdef __MigPackStructs 1482 + #pragma pack(push, 4) 1483 + #endif 1484 + typedef struct { 1485 + mach_msg_header_t Head; 1486 + } __Request__task_register_dyld_get_process_state_t __attribute__((unused)); 1487 + #ifdef __MigPackStructs 1488 + #pragma pack(pop) 1489 + #endif 1490 + 1491 + #ifdef __MigPackStructs 1492 + #pragma pack(push, 4) 1493 + #endif 1494 + typedef struct { 1495 + mach_msg_header_t Head; 1496 + /* start of the kernel processed data */ 1497 + mach_msg_body_t msgh_body; 1498 + mach_msg_port_descriptor_t corspe_task; 1499 + /* end of the kernel processed data */ 1500 + } __Request__task_map_corpse_info_64_t __attribute__((unused)); 1501 + #ifdef __MigPackStructs 1502 + #pragma pack(pop) 1503 + #endif 1504 + 1505 + #ifdef __MigPackStructs 1506 + #pragma pack(push, 4) 1507 + #endif 1508 + typedef struct { 1509 + mach_msg_header_t Head; 1510 + NDR_record_t NDR; 1511 + task_inspect_flavor_t flavor; 1512 + mach_msg_type_number_t info_outCnt; 1513 + } __Request__task_inspect_t __attribute__((unused)); 1514 + #ifdef __MigPackStructs 1515 + #pragma pack(pop) 1516 + #endif 1517 + 1518 + #ifdef __MigPackStructs 1519 + #pragma pack(push, 4) 1520 + #endif 1521 + typedef struct { 1522 + mach_msg_header_t Head; 1523 + } __Request__task_get_exc_guard_behavior_t __attribute__((unused)); 1524 + #ifdef __MigPackStructs 1525 + #pragma pack(pop) 1526 + #endif 1527 + 1528 + #ifdef __MigPackStructs 1529 + #pragma pack(push, 4) 1530 + #endif 1531 + typedef struct { 1532 + mach_msg_header_t Head; 1533 + NDR_record_t NDR; 1534 + task_exc_guard_behavior_t behavior; 1535 + } __Request__task_set_exc_guard_behavior_t __attribute__((unused)); 1536 + #ifdef __MigPackStructs 1537 + #pragma pack(pop) 1538 + #endif 1539 + #endif /* !__Request__task_subsystem__defined */ 1540 + 1541 + /* union of all requests */ 1542 + 1543 + #ifndef __RequestUnion__task_subsystem__defined 1544 + #define __RequestUnion__task_subsystem__defined 1545 + union __RequestUnion__task_subsystem { 1546 + __Request__task_create_t Request_task_create; 1547 + __Request__task_terminate_t Request_task_terminate; 1548 + __Request__task_threads_t Request_task_threads; 1549 + __Request__mach_ports_register_t Request_mach_ports_register; 1550 + __Request__mach_ports_lookup_t Request_mach_ports_lookup; 1551 + __Request__task_info_t Request_task_info; 1552 + __Request__task_set_info_t Request_task_set_info; 1553 + __Request__task_suspend_t Request_task_suspend; 1554 + __Request__task_resume_t Request_task_resume; 1555 + __Request__task_get_special_port_t Request_task_get_special_port; 1556 + __Request__task_set_special_port_t Request_task_set_special_port; 1557 + __Request__thread_create_t Request_thread_create; 1558 + __Request__thread_create_running_t Request_thread_create_running; 1559 + __Request__task_set_exception_ports_t Request_task_set_exception_ports; 1560 + __Request__task_get_exception_ports_t Request_task_get_exception_ports; 1561 + __Request__task_swap_exception_ports_t Request_task_swap_exception_ports; 1562 + __Request__lock_set_create_t Request_lock_set_create; 1563 + __Request__lock_set_destroy_t Request_lock_set_destroy; 1564 + __Request__semaphore_create_t Request_semaphore_create; 1565 + __Request__semaphore_destroy_t Request_semaphore_destroy; 1566 + __Request__task_policy_set_t Request_task_policy_set; 1567 + __Request__task_policy_get_t Request_task_policy_get; 1568 + __Request__task_sample_t Request_task_sample; 1569 + __Request__task_policy_t Request_task_policy; 1570 + __Request__task_set_emulation_t Request_task_set_emulation; 1571 + __Request__task_get_emulation_vector_t Request_task_get_emulation_vector; 1572 + __Request__task_set_emulation_vector_t Request_task_set_emulation_vector; 1573 + __Request__task_set_ras_pc_t Request_task_set_ras_pc; 1574 + __Request__task_zone_info_t Request_task_zone_info; 1575 + __Request__task_assign_t Request_task_assign; 1576 + __Request__task_assign_default_t Request_task_assign_default; 1577 + __Request__task_get_assignment_t Request_task_get_assignment; 1578 + __Request__task_set_policy_t Request_task_set_policy; 1579 + __Request__task_get_state_t Request_task_get_state; 1580 + __Request__task_set_state_t Request_task_set_state; 1581 + __Request__task_set_phys_footprint_limit_t Request_task_set_phys_footprint_limit; 1582 + __Request__task_suspend2_t Request_task_suspend2; 1583 + __Request__task_resume2_t Request_task_resume2; 1584 + __Request__task_purgable_info_t Request_task_purgable_info; 1585 + __Request__task_get_mach_voucher_t Request_task_get_mach_voucher; 1586 + __Request__task_set_mach_voucher_t Request_task_set_mach_voucher; 1587 + __Request__task_swap_mach_voucher_t Request_task_swap_mach_voucher; 1588 + __Request__task_generate_corpse_t Request_task_generate_corpse; 1589 + __Request__task_map_corpse_info_t Request_task_map_corpse_info; 1590 + __Request__task_register_dyld_image_infos_t Request_task_register_dyld_image_infos; 1591 + __Request__task_unregister_dyld_image_infos_t Request_task_unregister_dyld_image_infos; 1592 + __Request__task_get_dyld_image_infos_t Request_task_get_dyld_image_infos; 1593 + __Request__task_register_dyld_shared_cache_image_info_t Request_task_register_dyld_shared_cache_image_info; 1594 + __Request__task_register_dyld_set_dyld_state_t Request_task_register_dyld_set_dyld_state; 1595 + __Request__task_register_dyld_get_process_state_t Request_task_register_dyld_get_process_state; 1596 + __Request__task_map_corpse_info_64_t Request_task_map_corpse_info_64; 1597 + __Request__task_inspect_t Request_task_inspect; 1598 + __Request__task_get_exc_guard_behavior_t Request_task_get_exc_guard_behavior; 1599 + __Request__task_set_exc_guard_behavior_t Request_task_set_exc_guard_behavior; 1600 + }; 1601 + #endif /* !__RequestUnion__task_subsystem__defined */ 1602 + /* typedefs for all replies */ 1603 + 1604 + #ifndef __Reply__task_subsystem__defined 1605 + #define __Reply__task_subsystem__defined 1606 + 1607 + #ifdef __MigPackStructs 1608 + #pragma pack(push, 4) 1609 + #endif 1610 + typedef struct { 1611 + mach_msg_header_t Head; 1612 + /* start of the kernel processed data */ 1613 + mach_msg_body_t msgh_body; 1614 + mach_msg_port_descriptor_t child_task; 1615 + /* end of the kernel processed data */ 1616 + } __Reply__task_create_t __attribute__((unused)); 1617 + #ifdef __MigPackStructs 1618 + #pragma pack(pop) 1619 + #endif 1620 + 1621 + #ifdef __MigPackStructs 1622 + #pragma pack(push, 4) 1623 + #endif 1624 + typedef struct { 1625 + mach_msg_header_t Head; 1626 + NDR_record_t NDR; 1627 + kern_return_t RetCode; 1628 + } __Reply__task_terminate_t __attribute__((unused)); 1629 + #ifdef __MigPackStructs 1630 + #pragma pack(pop) 1631 + #endif 1632 + 1633 + #ifdef __MigPackStructs 1634 + #pragma pack(push, 4) 1635 + #endif 1636 + typedef struct { 1637 + mach_msg_header_t Head; 1638 + /* start of the kernel processed data */ 1639 + mach_msg_body_t msgh_body; 1640 + mach_msg_ool_ports_descriptor_t act_list; 1641 + /* end of the kernel processed data */ 1642 + NDR_record_t NDR; 1643 + mach_msg_type_number_t act_listCnt; 1644 + } __Reply__task_threads_t __attribute__((unused)); 1645 + #ifdef __MigPackStructs 1646 + #pragma pack(pop) 1647 + #endif 1648 + 1649 + #ifdef __MigPackStructs 1650 + #pragma pack(push, 4) 1651 + #endif 1652 + typedef struct { 1653 + mach_msg_header_t Head; 1654 + NDR_record_t NDR; 1655 + kern_return_t RetCode; 1656 + } __Reply__mach_ports_register_t __attribute__((unused)); 1657 + #ifdef __MigPackStructs 1658 + #pragma pack(pop) 1659 + #endif 1660 + 1661 + #ifdef __MigPackStructs 1662 + #pragma pack(push, 4) 1663 + #endif 1664 + typedef struct { 1665 + mach_msg_header_t Head; 1666 + /* start of the kernel processed data */ 1667 + mach_msg_body_t msgh_body; 1668 + mach_msg_ool_ports_descriptor_t init_port_set; 1669 + /* end of the kernel processed data */ 1670 + NDR_record_t NDR; 1671 + mach_msg_type_number_t init_port_setCnt; 1672 + } __Reply__mach_ports_lookup_t __attribute__((unused)); 1673 + #ifdef __MigPackStructs 1674 + #pragma pack(pop) 1675 + #endif 1676 + 1677 + #ifdef __MigPackStructs 1678 + #pragma pack(push, 4) 1679 + #endif 1680 + typedef struct { 1681 + mach_msg_header_t Head; 1682 + NDR_record_t NDR; 1683 + kern_return_t RetCode; 1684 + mach_msg_type_number_t task_info_outCnt; 1685 + integer_t task_info_out[87]; 1686 + } __Reply__task_info_t __attribute__((unused)); 1687 + #ifdef __MigPackStructs 1688 + #pragma pack(pop) 1689 + #endif 1690 + 1691 + #ifdef __MigPackStructs 1692 + #pragma pack(push, 4) 1693 + #endif 1694 + typedef struct { 1695 + mach_msg_header_t Head; 1696 + NDR_record_t NDR; 1697 + kern_return_t RetCode; 1698 + } __Reply__task_set_info_t __attribute__((unused)); 1699 + #ifdef __MigPackStructs 1700 + #pragma pack(pop) 1701 + #endif 1702 + 1703 + #ifdef __MigPackStructs 1704 + #pragma pack(push, 4) 1705 + #endif 1706 + typedef struct { 1707 + mach_msg_header_t Head; 1708 + NDR_record_t NDR; 1709 + kern_return_t RetCode; 1710 + } __Reply__task_suspend_t __attribute__((unused)); 1711 + #ifdef __MigPackStructs 1712 + #pragma pack(pop) 1713 + #endif 1714 + 1715 + #ifdef __MigPackStructs 1716 + #pragma pack(push, 4) 1717 + #endif 1718 + typedef struct { 1719 + mach_msg_header_t Head; 1720 + NDR_record_t NDR; 1721 + kern_return_t RetCode; 1722 + } __Reply__task_resume_t __attribute__((unused)); 1723 + #ifdef __MigPackStructs 1724 + #pragma pack(pop) 1725 + #endif 1726 + 1727 + #ifdef __MigPackStructs 1728 + #pragma pack(push, 4) 1729 + #endif 1730 + typedef struct { 1731 + mach_msg_header_t Head; 1732 + /* start of the kernel processed data */ 1733 + mach_msg_body_t msgh_body; 1734 + mach_msg_port_descriptor_t special_port; 1735 + /* end of the kernel processed data */ 1736 + } __Reply__task_get_special_port_t __attribute__((unused)); 1737 + #ifdef __MigPackStructs 1738 + #pragma pack(pop) 1739 + #endif 1740 + 1741 + #ifdef __MigPackStructs 1742 + #pragma pack(push, 4) 1743 + #endif 1744 + typedef struct { 1745 + mach_msg_header_t Head; 1746 + NDR_record_t NDR; 1747 + kern_return_t RetCode; 1748 + } __Reply__task_set_special_port_t __attribute__((unused)); 1749 + #ifdef __MigPackStructs 1750 + #pragma pack(pop) 1751 + #endif 1752 + 1753 + #ifdef __MigPackStructs 1754 + #pragma pack(push, 4) 1755 + #endif 1756 + typedef struct { 1757 + mach_msg_header_t Head; 1758 + /* start of the kernel processed data */ 1759 + mach_msg_body_t msgh_body; 1760 + mach_msg_port_descriptor_t child_act; 1761 + /* end of the kernel processed data */ 1762 + } __Reply__thread_create_t __attribute__((unused)); 1763 + #ifdef __MigPackStructs 1764 + #pragma pack(pop) 1765 + #endif 1766 + 1767 + #ifdef __MigPackStructs 1768 + #pragma pack(push, 4) 1769 + #endif 1770 + typedef struct { 1771 + mach_msg_header_t Head; 1772 + /* start of the kernel processed data */ 1773 + mach_msg_body_t msgh_body; 1774 + mach_msg_port_descriptor_t child_act; 1775 + /* end of the kernel processed data */ 1776 + } __Reply__thread_create_running_t __attribute__((unused)); 1777 + #ifdef __MigPackStructs 1778 + #pragma pack(pop) 1779 + #endif 1780 + 1781 + #ifdef __MigPackStructs 1782 + #pragma pack(push, 4) 1783 + #endif 1784 + typedef struct { 1785 + mach_msg_header_t Head; 1786 + NDR_record_t NDR; 1787 + kern_return_t RetCode; 1788 + } __Reply__task_set_exception_ports_t __attribute__((unused)); 1789 + #ifdef __MigPackStructs 1790 + #pragma pack(pop) 1791 + #endif 1792 + 1793 + #ifdef __MigPackStructs 1794 + #pragma pack(push, 4) 1795 + #endif 1796 + typedef struct { 1797 + mach_msg_header_t Head; 1798 + /* start of the kernel processed data */ 1799 + mach_msg_body_t msgh_body; 1800 + mach_msg_port_descriptor_t old_handlers[32]; 1801 + /* end of the kernel processed data */ 1802 + NDR_record_t NDR; 1803 + mach_msg_type_number_t masksCnt; 1804 + exception_mask_t masks[32]; 1805 + exception_behavior_t old_behaviors[32]; 1806 + thread_state_flavor_t old_flavors[32]; 1807 + } __Reply__task_get_exception_ports_t __attribute__((unused)); 1808 + #ifdef __MigPackStructs 1809 + #pragma pack(pop) 1810 + #endif 1811 + 1812 + #ifdef __MigPackStructs 1813 + #pragma pack(push, 4) 1814 + #endif 1815 + typedef struct { 1816 + mach_msg_header_t Head; 1817 + /* start of the kernel processed data */ 1818 + mach_msg_body_t msgh_body; 1819 + mach_msg_port_descriptor_t old_handlerss[32]; 1820 + /* end of the kernel processed data */ 1821 + NDR_record_t NDR; 1822 + mach_msg_type_number_t masksCnt; 1823 + exception_mask_t masks[32]; 1824 + exception_behavior_t old_behaviors[32]; 1825 + thread_state_flavor_t old_flavors[32]; 1826 + } __Reply__task_swap_exception_ports_t __attribute__((unused)); 1827 + #ifdef __MigPackStructs 1828 + #pragma pack(pop) 1829 + #endif 1830 + 1831 + #ifdef __MigPackStructs 1832 + #pragma pack(push, 4) 1833 + #endif 1834 + typedef struct { 1835 + mach_msg_header_t Head; 1836 + /* start of the kernel processed data */ 1837 + mach_msg_body_t msgh_body; 1838 + mach_msg_port_descriptor_t new_lock_set; 1839 + /* end of the kernel processed data */ 1840 + } __Reply__lock_set_create_t __attribute__((unused)); 1841 + #ifdef __MigPackStructs 1842 + #pragma pack(pop) 1843 + #endif 1844 + 1845 + #ifdef __MigPackStructs 1846 + #pragma pack(push, 4) 1847 + #endif 1848 + typedef struct { 1849 + mach_msg_header_t Head; 1850 + NDR_record_t NDR; 1851 + kern_return_t RetCode; 1852 + } __Reply__lock_set_destroy_t __attribute__((unused)); 1853 + #ifdef __MigPackStructs 1854 + #pragma pack(pop) 1855 + #endif 1856 + 1857 + #ifdef __MigPackStructs 1858 + #pragma pack(push, 4) 1859 + #endif 1860 + typedef struct { 1861 + mach_msg_header_t Head; 1862 + /* start of the kernel processed data */ 1863 + mach_msg_body_t msgh_body; 1864 + mach_msg_port_descriptor_t semaphore; 1865 + /* end of the kernel processed data */ 1866 + } __Reply__semaphore_create_t __attribute__((unused)); 1867 + #ifdef __MigPackStructs 1868 + #pragma pack(pop) 1869 + #endif 1870 + 1871 + #ifdef __MigPackStructs 1872 + #pragma pack(push, 4) 1873 + #endif 1874 + typedef struct { 1875 + mach_msg_header_t Head; 1876 + NDR_record_t NDR; 1877 + kern_return_t RetCode; 1878 + } __Reply__semaphore_destroy_t __attribute__((unused)); 1879 + #ifdef __MigPackStructs 1880 + #pragma pack(pop) 1881 + #endif 1882 + 1883 + #ifdef __MigPackStructs 1884 + #pragma pack(push, 4) 1885 + #endif 1886 + typedef struct { 1887 + mach_msg_header_t Head; 1888 + NDR_record_t NDR; 1889 + kern_return_t RetCode; 1890 + } __Reply__task_policy_set_t __attribute__((unused)); 1891 + #ifdef __MigPackStructs 1892 + #pragma pack(pop) 1893 + #endif 1894 + 1895 + #ifdef __MigPackStructs 1896 + #pragma pack(push, 4) 1897 + #endif 1898 + typedef struct { 1899 + mach_msg_header_t Head; 1900 + NDR_record_t NDR; 1901 + kern_return_t RetCode; 1902 + mach_msg_type_number_t policy_infoCnt; 1903 + integer_t policy_info[16]; 1904 + boolean_t get_default; 1905 + } __Reply__task_policy_get_t __attribute__((unused)); 1906 + #ifdef __MigPackStructs 1907 + #pragma pack(pop) 1908 + #endif 1909 + 1910 + #ifdef __MigPackStructs 1911 + #pragma pack(push, 4) 1912 + #endif 1913 + typedef struct { 1914 + mach_msg_header_t Head; 1915 + NDR_record_t NDR; 1916 + kern_return_t RetCode; 1917 + } __Reply__task_sample_t __attribute__((unused)); 1918 + #ifdef __MigPackStructs 1919 + #pragma pack(pop) 1920 + #endif 1921 + 1922 + #ifdef __MigPackStructs 1923 + #pragma pack(push, 4) 1924 + #endif 1925 + typedef struct { 1926 + mach_msg_header_t Head; 1927 + NDR_record_t NDR; 1928 + kern_return_t RetCode; 1929 + } __Reply__task_policy_t __attribute__((unused)); 1930 + #ifdef __MigPackStructs 1931 + #pragma pack(pop) 1932 + #endif 1933 + 1934 + #ifdef __MigPackStructs 1935 + #pragma pack(push, 4) 1936 + #endif 1937 + typedef struct { 1938 + mach_msg_header_t Head; 1939 + NDR_record_t NDR; 1940 + kern_return_t RetCode; 1941 + } __Reply__task_set_emulation_t __attribute__((unused)); 1942 + #ifdef __MigPackStructs 1943 + #pragma pack(pop) 1944 + #endif 1945 + 1946 + #ifdef __MigPackStructs 1947 + #pragma pack(push, 4) 1948 + #endif 1949 + typedef struct { 1950 + mach_msg_header_t Head; 1951 + /* start of the kernel processed data */ 1952 + mach_msg_body_t msgh_body; 1953 + mach_msg_ool_descriptor_t emulation_vector; 1954 + /* end of the kernel processed data */ 1955 + NDR_record_t NDR; 1956 + int vector_start; 1957 + mach_msg_type_number_t emulation_vectorCnt; 1958 + } __Reply__task_get_emulation_vector_t __attribute__((unused)); 1959 + #ifdef __MigPackStructs 1960 + #pragma pack(pop) 1961 + #endif 1962 + 1963 + #ifdef __MigPackStructs 1964 + #pragma pack(push, 4) 1965 + #endif 1966 + typedef struct { 1967 + mach_msg_header_t Head; 1968 + NDR_record_t NDR; 1969 + kern_return_t RetCode; 1970 + } __Reply__task_set_emulation_vector_t __attribute__((unused)); 1971 + #ifdef __MigPackStructs 1972 + #pragma pack(pop) 1973 + #endif 1974 + 1975 + #ifdef __MigPackStructs 1976 + #pragma pack(push, 4) 1977 + #endif 1978 + typedef struct { 1979 + mach_msg_header_t Head; 1980 + NDR_record_t NDR; 1981 + kern_return_t RetCode; 1982 + } __Reply__task_set_ras_pc_t __attribute__((unused)); 1983 + #ifdef __MigPackStructs 1984 + #pragma pack(pop) 1985 + #endif 1986 + 1987 + #ifdef __MigPackStructs 1988 + #pragma pack(push, 4) 1989 + #endif 1990 + typedef struct { 1991 + mach_msg_header_t Head; 1992 + /* start of the kernel processed data */ 1993 + mach_msg_body_t msgh_body; 1994 + mach_msg_ool_descriptor_t names; 1995 + mach_msg_ool_descriptor_t info; 1996 + /* end of the kernel processed data */ 1997 + NDR_record_t NDR; 1998 + mach_msg_type_number_t namesCnt; 1999 + mach_msg_type_number_t infoCnt; 2000 + } __Reply__task_zone_info_t __attribute__((unused)); 2001 + #ifdef __MigPackStructs 2002 + #pragma pack(pop) 2003 + #endif 2004 + 2005 + #ifdef __MigPackStructs 2006 + #pragma pack(push, 4) 2007 + #endif 2008 + typedef struct { 2009 + mach_msg_header_t Head; 2010 + NDR_record_t NDR; 2011 + kern_return_t RetCode; 2012 + } __Reply__task_assign_t __attribute__((unused)); 2013 + #ifdef __MigPackStructs 2014 + #pragma pack(pop) 2015 + #endif 2016 + 2017 + #ifdef __MigPackStructs 2018 + #pragma pack(push, 4) 2019 + #endif 2020 + typedef struct { 2021 + mach_msg_header_t Head; 2022 + NDR_record_t NDR; 2023 + kern_return_t RetCode; 2024 + } __Reply__task_assign_default_t __attribute__((unused)); 2025 + #ifdef __MigPackStructs 2026 + #pragma pack(pop) 2027 + #endif 2028 + 2029 + #ifdef __MigPackStructs 2030 + #pragma pack(push, 4) 2031 + #endif 2032 + typedef struct { 2033 + mach_msg_header_t Head; 2034 + /* start of the kernel processed data */ 2035 + mach_msg_body_t msgh_body; 2036 + mach_msg_port_descriptor_t assigned_set; 2037 + /* end of the kernel processed data */ 2038 + } __Reply__task_get_assignment_t __attribute__((unused)); 2039 + #ifdef __MigPackStructs 2040 + #pragma pack(pop) 2041 + #endif 2042 + 2043 + #ifdef __MigPackStructs 2044 + #pragma pack(push, 4) 2045 + #endif 2046 + typedef struct { 2047 + mach_msg_header_t Head; 2048 + NDR_record_t NDR; 2049 + kern_return_t RetCode; 2050 + } __Reply__task_set_policy_t __attribute__((unused)); 2051 + #ifdef __MigPackStructs 2052 + #pragma pack(pop) 2053 + #endif 2054 + 2055 + #ifdef __MigPackStructs 2056 + #pragma pack(push, 4) 2057 + #endif 2058 + typedef struct { 2059 + mach_msg_header_t Head; 2060 + NDR_record_t NDR; 2061 + kern_return_t RetCode; 2062 + mach_msg_type_number_t old_stateCnt; 2063 + natural_t old_state[614]; 2064 + } __Reply__task_get_state_t __attribute__((unused)); 2065 + #ifdef __MigPackStructs 2066 + #pragma pack(pop) 2067 + #endif 2068 + 2069 + #ifdef __MigPackStructs 2070 + #pragma pack(push, 4) 2071 + #endif 2072 + typedef struct { 2073 + mach_msg_header_t Head; 2074 + NDR_record_t NDR; 2075 + kern_return_t RetCode; 2076 + } __Reply__task_set_state_t __attribute__((unused)); 2077 + #ifdef __MigPackStructs 2078 + #pragma pack(pop) 2079 + #endif 2080 + 2081 + #ifdef __MigPackStructs 2082 + #pragma pack(push, 4) 2083 + #endif 2084 + typedef struct { 2085 + mach_msg_header_t Head; 2086 + NDR_record_t NDR; 2087 + kern_return_t RetCode; 2088 + int old_limit; 2089 + } __Reply__task_set_phys_footprint_limit_t __attribute__((unused)); 2090 + #ifdef __MigPackStructs 2091 + #pragma pack(pop) 2092 + #endif 2093 + 2094 + #ifdef __MigPackStructs 2095 + #pragma pack(push, 4) 2096 + #endif 2097 + typedef struct { 2098 + mach_msg_header_t Head; 2099 + /* start of the kernel processed data */ 2100 + mach_msg_body_t msgh_body; 2101 + mach_msg_port_descriptor_t suspend_token; 2102 + /* end of the kernel processed data */ 2103 + } __Reply__task_suspend2_t __attribute__((unused)); 2104 + #ifdef __MigPackStructs 2105 + #pragma pack(pop) 2106 + #endif 2107 + 2108 + #ifdef __MigPackStructs 2109 + #pragma pack(push, 4) 2110 + #endif 2111 + typedef struct { 2112 + mach_msg_header_t Head; 2113 + NDR_record_t NDR; 2114 + kern_return_t RetCode; 2115 + } __Reply__task_resume2_t __attribute__((unused)); 2116 + #ifdef __MigPackStructs 2117 + #pragma pack(pop) 2118 + #endif 2119 + 2120 + #ifdef __MigPackStructs 2121 + #pragma pack(push, 4) 2122 + #endif 2123 + typedef struct { 2124 + mach_msg_header_t Head; 2125 + NDR_record_t NDR; 2126 + kern_return_t RetCode; 2127 + task_purgable_info_t stats; 2128 + } __Reply__task_purgable_info_t __attribute__((unused)); 2129 + #ifdef __MigPackStructs 2130 + #pragma pack(pop) 2131 + #endif 2132 + 2133 + #ifdef __MigPackStructs 2134 + #pragma pack(push, 4) 2135 + #endif 2136 + typedef struct { 2137 + mach_msg_header_t Head; 2138 + /* start of the kernel processed data */ 2139 + mach_msg_body_t msgh_body; 2140 + mach_msg_port_descriptor_t voucher; 2141 + /* end of the kernel processed data */ 2142 + } __Reply__task_get_mach_voucher_t __attribute__((unused)); 2143 + #ifdef __MigPackStructs 2144 + #pragma pack(pop) 2145 + #endif 2146 + 2147 + #ifdef __MigPackStructs 2148 + #pragma pack(push, 4) 2149 + #endif 2150 + typedef struct { 2151 + mach_msg_header_t Head; 2152 + NDR_record_t NDR; 2153 + kern_return_t RetCode; 2154 + } __Reply__task_set_mach_voucher_t __attribute__((unused)); 2155 + #ifdef __MigPackStructs 2156 + #pragma pack(pop) 2157 + #endif 2158 + 2159 + #ifdef __MigPackStructs 2160 + #pragma pack(push, 4) 2161 + #endif 2162 + typedef struct { 2163 + mach_msg_header_t Head; 2164 + /* start of the kernel processed data */ 2165 + mach_msg_body_t msgh_body; 2166 + mach_msg_port_descriptor_t old_voucher; 2167 + /* end of the kernel processed data */ 2168 + } __Reply__task_swap_mach_voucher_t __attribute__((unused)); 2169 + #ifdef __MigPackStructs 2170 + #pragma pack(pop) 2171 + #endif 2172 + 2173 + #ifdef __MigPackStructs 2174 + #pragma pack(push, 4) 2175 + #endif 2176 + typedef struct { 2177 + mach_msg_header_t Head; 2178 + /* start of the kernel processed data */ 2179 + mach_msg_body_t msgh_body; 2180 + mach_msg_port_descriptor_t corpse_task_port; 2181 + /* end of the kernel processed data */ 2182 + } __Reply__task_generate_corpse_t __attribute__((unused)); 2183 + #ifdef __MigPackStructs 2184 + #pragma pack(pop) 2185 + #endif 2186 + 2187 + #ifdef __MigPackStructs 2188 + #pragma pack(push, 4) 2189 + #endif 2190 + typedef struct { 2191 + mach_msg_header_t Head; 2192 + NDR_record_t NDR; 2193 + kern_return_t RetCode; 2194 + vm_address_t kcd_addr_begin; 2195 + uint32_t kcd_size; 2196 + } __Reply__task_map_corpse_info_t __attribute__((unused)); 2197 + #ifdef __MigPackStructs 2198 + #pragma pack(pop) 2199 + #endif 2200 + 2201 + #ifdef __MigPackStructs 2202 + #pragma pack(push, 4) 2203 + #endif 2204 + typedef struct { 2205 + mach_msg_header_t Head; 2206 + NDR_record_t NDR; 2207 + kern_return_t RetCode; 2208 + } __Reply__task_register_dyld_image_infos_t __attribute__((unused)); 2209 + #ifdef __MigPackStructs 2210 + #pragma pack(pop) 2211 + #endif 2212 + 2213 + #ifdef __MigPackStructs 2214 + #pragma pack(push, 4) 2215 + #endif 2216 + typedef struct { 2217 + mach_msg_header_t Head; 2218 + NDR_record_t NDR; 2219 + kern_return_t RetCode; 2220 + } __Reply__task_unregister_dyld_image_infos_t __attribute__((unused)); 2221 + #ifdef __MigPackStructs 2222 + #pragma pack(pop) 2223 + #endif 2224 + 2225 + #ifdef __MigPackStructs 2226 + #pragma pack(push, 4) 2227 + #endif 2228 + typedef struct { 2229 + mach_msg_header_t Head; 2230 + /* start of the kernel processed data */ 2231 + mach_msg_body_t msgh_body; 2232 + mach_msg_ool_descriptor_t dyld_images; 2233 + /* end of the kernel processed data */ 2234 + NDR_record_t NDR; 2235 + mach_msg_type_number_t dyld_imagesCnt; 2236 + } __Reply__task_get_dyld_image_infos_t __attribute__((unused)); 2237 + #ifdef __MigPackStructs 2238 + #pragma pack(pop) 2239 + #endif 2240 + 2241 + #ifdef __MigPackStructs 2242 + #pragma pack(push, 4) 2243 + #endif 2244 + typedef struct { 2245 + mach_msg_header_t Head; 2246 + NDR_record_t NDR; 2247 + kern_return_t RetCode; 2248 + } __Reply__task_register_dyld_shared_cache_image_info_t __attribute__((unused)); 2249 + #ifdef __MigPackStructs 2250 + #pragma pack(pop) 2251 + #endif 2252 + 2253 + #ifdef __MigPackStructs 2254 + #pragma pack(push, 4) 2255 + #endif 2256 + typedef struct { 2257 + mach_msg_header_t Head; 2258 + NDR_record_t NDR; 2259 + kern_return_t RetCode; 2260 + } __Reply__task_register_dyld_set_dyld_state_t __attribute__((unused)); 2261 + #ifdef __MigPackStructs 2262 + #pragma pack(pop) 2263 + #endif 2264 + 2265 + #ifdef __MigPackStructs 2266 + #pragma pack(push, 4) 2267 + #endif 2268 + typedef struct { 2269 + mach_msg_header_t Head; 2270 + NDR_record_t NDR; 2271 + kern_return_t RetCode; 2272 + dyld_kernel_process_info_t dyld_process_state; 2273 + } __Reply__task_register_dyld_get_process_state_t __attribute__((unused)); 2274 + #ifdef __MigPackStructs 2275 + #pragma pack(pop) 2276 + #endif 2277 + 2278 + #ifdef __MigPackStructs 2279 + #pragma pack(push, 4) 2280 + #endif 2281 + typedef struct { 2282 + mach_msg_header_t Head; 2283 + NDR_record_t NDR; 2284 + kern_return_t RetCode; 2285 + mach_vm_address_t kcd_addr_begin; 2286 + mach_vm_size_t kcd_size; 2287 + } __Reply__task_map_corpse_info_64_t __attribute__((unused)); 2288 + #ifdef __MigPackStructs 2289 + #pragma pack(pop) 2290 + #endif 2291 + 2292 + #ifdef __MigPackStructs 2293 + #pragma pack(push, 4) 2294 + #endif 2295 + typedef struct { 2296 + mach_msg_header_t Head; 2297 + NDR_record_t NDR; 2298 + kern_return_t RetCode; 2299 + mach_msg_type_number_t info_outCnt; 2300 + integer_t info_out[4]; 2301 + } __Reply__task_inspect_t __attribute__((unused)); 2302 + #ifdef __MigPackStructs 2303 + #pragma pack(pop) 2304 + #endif 2305 + 2306 + #ifdef __MigPackStructs 2307 + #pragma pack(push, 4) 2308 + #endif 2309 + typedef struct { 2310 + mach_msg_header_t Head; 2311 + NDR_record_t NDR; 2312 + kern_return_t RetCode; 2313 + task_exc_guard_behavior_t behavior; 2314 + } __Reply__task_get_exc_guard_behavior_t __attribute__((unused)); 2315 + #ifdef __MigPackStructs 2316 + #pragma pack(pop) 2317 + #endif 2318 + 2319 + #ifdef __MigPackStructs 2320 + #pragma pack(push, 4) 2321 + #endif 2322 + typedef struct { 2323 + mach_msg_header_t Head; 2324 + NDR_record_t NDR; 2325 + kern_return_t RetCode; 2326 + } __Reply__task_set_exc_guard_behavior_t __attribute__((unused)); 2327 + #ifdef __MigPackStructs 2328 + #pragma pack(pop) 2329 + #endif 2330 + #endif /* !__Reply__task_subsystem__defined */ 2331 + 2332 + /* union of all replies */ 2333 + 2334 + #ifndef __ReplyUnion__task_subsystem__defined 2335 + #define __ReplyUnion__task_subsystem__defined 2336 + union __ReplyUnion__task_subsystem { 2337 + __Reply__task_create_t Reply_task_create; 2338 + __Reply__task_terminate_t Reply_task_terminate; 2339 + __Reply__task_threads_t Reply_task_threads; 2340 + __Reply__mach_ports_register_t Reply_mach_ports_register; 2341 + __Reply__mach_ports_lookup_t Reply_mach_ports_lookup; 2342 + __Reply__task_info_t Reply_task_info; 2343 + __Reply__task_set_info_t Reply_task_set_info; 2344 + __Reply__task_suspend_t Reply_task_suspend; 2345 + __Reply__task_resume_t Reply_task_resume; 2346 + __Reply__task_get_special_port_t Reply_task_get_special_port; 2347 + __Reply__task_set_special_port_t Reply_task_set_special_port; 2348 + __Reply__thread_create_t Reply_thread_create; 2349 + __Reply__thread_create_running_t Reply_thread_create_running; 2350 + __Reply__task_set_exception_ports_t Reply_task_set_exception_ports; 2351 + __Reply__task_get_exception_ports_t Reply_task_get_exception_ports; 2352 + __Reply__task_swap_exception_ports_t Reply_task_swap_exception_ports; 2353 + __Reply__lock_set_create_t Reply_lock_set_create; 2354 + __Reply__lock_set_destroy_t Reply_lock_set_destroy; 2355 + __Reply__semaphore_create_t Reply_semaphore_create; 2356 + __Reply__semaphore_destroy_t Reply_semaphore_destroy; 2357 + __Reply__task_policy_set_t Reply_task_policy_set; 2358 + __Reply__task_policy_get_t Reply_task_policy_get; 2359 + __Reply__task_sample_t Reply_task_sample; 2360 + __Reply__task_policy_t Reply_task_policy; 2361 + __Reply__task_set_emulation_t Reply_task_set_emulation; 2362 + __Reply__task_get_emulation_vector_t Reply_task_get_emulation_vector; 2363 + __Reply__task_set_emulation_vector_t Reply_task_set_emulation_vector; 2364 + __Reply__task_set_ras_pc_t Reply_task_set_ras_pc; 2365 + __Reply__task_zone_info_t Reply_task_zone_info; 2366 + __Reply__task_assign_t Reply_task_assign; 2367 + __Reply__task_assign_default_t Reply_task_assign_default; 2368 + __Reply__task_get_assignment_t Reply_task_get_assignment; 2369 + __Reply__task_set_policy_t Reply_task_set_policy; 2370 + __Reply__task_get_state_t Reply_task_get_state; 2371 + __Reply__task_set_state_t Reply_task_set_state; 2372 + __Reply__task_set_phys_footprint_limit_t Reply_task_set_phys_footprint_limit; 2373 + __Reply__task_suspend2_t Reply_task_suspend2; 2374 + __Reply__task_resume2_t Reply_task_resume2; 2375 + __Reply__task_purgable_info_t Reply_task_purgable_info; 2376 + __Reply__task_get_mach_voucher_t Reply_task_get_mach_voucher; 2377 + __Reply__task_set_mach_voucher_t Reply_task_set_mach_voucher; 2378 + __Reply__task_swap_mach_voucher_t Reply_task_swap_mach_voucher; 2379 + __Reply__task_generate_corpse_t Reply_task_generate_corpse; 2380 + __Reply__task_map_corpse_info_t Reply_task_map_corpse_info; 2381 + __Reply__task_register_dyld_image_infos_t Reply_task_register_dyld_image_infos; 2382 + __Reply__task_unregister_dyld_image_infos_t Reply_task_unregister_dyld_image_infos; 2383 + __Reply__task_get_dyld_image_infos_t Reply_task_get_dyld_image_infos; 2384 + __Reply__task_register_dyld_shared_cache_image_info_t Reply_task_register_dyld_shared_cache_image_info; 2385 + __Reply__task_register_dyld_set_dyld_state_t Reply_task_register_dyld_set_dyld_state; 2386 + __Reply__task_register_dyld_get_process_state_t Reply_task_register_dyld_get_process_state; 2387 + __Reply__task_map_corpse_info_64_t Reply_task_map_corpse_info_64; 2388 + __Reply__task_inspect_t Reply_task_inspect; 2389 + __Reply__task_get_exc_guard_behavior_t Reply_task_get_exc_guard_behavior; 2390 + __Reply__task_set_exc_guard_behavior_t Reply_task_set_exc_guard_behavior; 2391 + }; 2392 + #endif /* !__RequestUnion__task_subsystem__defined */ 2393 + 2394 + #ifndef subsystem_to_name_map_task 2395 + #define subsystem_to_name_map_task \ 2396 + { "task_create", 3400 },\ 2397 + { "task_terminate", 3401 },\ 2398 + { "task_threads", 3402 },\ 2399 + { "mach_ports_register", 3403 },\ 2400 + { "mach_ports_lookup", 3404 },\ 2401 + { "task_info", 3405 },\ 2402 + { "task_set_info", 3406 },\ 2403 + { "task_suspend", 3407 },\ 2404 + { "task_resume", 3408 },\ 2405 + { "task_get_special_port", 3409 },\ 2406 + { "task_set_special_port", 3410 },\ 2407 + { "thread_create", 3411 },\ 2408 + { "thread_create_running", 3412 },\ 2409 + { "task_set_exception_ports", 3413 },\ 2410 + { "task_get_exception_ports", 3414 },\ 2411 + { "task_swap_exception_ports", 3415 },\ 2412 + { "lock_set_create", 3416 },\ 2413 + { "lock_set_destroy", 3417 },\ 2414 + { "semaphore_create", 3418 },\ 2415 + { "semaphore_destroy", 3419 },\ 2416 + { "task_policy_set", 3420 },\ 2417 + { "task_policy_get", 3421 },\ 2418 + { "task_sample", 3422 },\ 2419 + { "task_policy", 3423 },\ 2420 + { "task_set_emulation", 3424 },\ 2421 + { "task_get_emulation_vector", 3425 },\ 2422 + { "task_set_emulation_vector", 3426 },\ 2423 + { "task_set_ras_pc", 3427 },\ 2424 + { "task_zone_info", 3428 },\ 2425 + { "task_assign", 3429 },\ 2426 + { "task_assign_default", 3430 },\ 2427 + { "task_get_assignment", 3431 },\ 2428 + { "task_set_policy", 3432 },\ 2429 + { "task_get_state", 3433 },\ 2430 + { "task_set_state", 3434 },\ 2431 + { "task_set_phys_footprint_limit", 3435 },\ 2432 + { "task_suspend2", 3436 },\ 2433 + { "task_resume2", 3437 },\ 2434 + { "task_purgable_info", 3438 },\ 2435 + { "task_get_mach_voucher", 3439 },\ 2436 + { "task_set_mach_voucher", 3440 },\ 2437 + { "task_swap_mach_voucher", 3441 },\ 2438 + { "task_generate_corpse", 3442 },\ 2439 + { "task_map_corpse_info", 3443 },\ 2440 + { "task_register_dyld_image_infos", 3444 },\ 2441 + { "task_unregister_dyld_image_infos", 3445 },\ 2442 + { "task_get_dyld_image_infos", 3446 },\ 2443 + { "task_register_dyld_shared_cache_image_info", 3447 },\ 2444 + { "task_register_dyld_set_dyld_state", 3448 },\ 2445 + { "task_register_dyld_get_process_state", 3449 },\ 2446 + { "task_map_corpse_info_64", 3450 },\ 2447 + { "task_inspect", 3451 },\ 2448 + { "task_get_exc_guard_behavior", 3452 },\ 2449 + { "task_set_exc_guard_behavior", 3453 } 2450 + #endif 2451 + 2452 + #ifdef __AfterMigUserHeader 2453 + __AfterMigUserHeader 2454 + #endif /* __AfterMigUserHeader */ 2455 + 2456 + #endif /* _task_user_ */
+1331
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/thread_act.h
··· 1 + #ifndef _thread_act_user_ 2 + #define _thread_act_user_ 3 + 4 + /* Module thread_act */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef thread_act_MSG_COUNT 77 + #define thread_act_MSG_COUNT 28 78 + #endif /* thread_act_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + 85 + #ifdef __BeforeMigUserHeader 86 + __BeforeMigUserHeader 87 + #endif /* __BeforeMigUserHeader */ 88 + 89 + #include <sys/cdefs.h> 90 + __BEGIN_DECLS 91 + 92 + 93 + /* Routine thread_terminate */ 94 + #ifdef mig_external 95 + mig_external 96 + #else 97 + extern 98 + #endif /* mig_external */ 99 + kern_return_t thread_terminate 100 + ( 101 + thread_act_t target_act 102 + ); 103 + 104 + /* Routine act_get_state */ 105 + #ifdef mig_external 106 + mig_external 107 + #else 108 + extern 109 + #endif /* mig_external */ 110 + kern_return_t act_get_state 111 + ( 112 + thread_act_t target_act, 113 + int flavor, 114 + thread_state_t old_state, 115 + mach_msg_type_number_t *old_stateCnt 116 + ); 117 + 118 + /* Routine act_set_state */ 119 + #ifdef mig_external 120 + mig_external 121 + #else 122 + extern 123 + #endif /* mig_external */ 124 + kern_return_t act_set_state 125 + ( 126 + thread_act_t target_act, 127 + int flavor, 128 + thread_state_t new_state, 129 + mach_msg_type_number_t new_stateCnt 130 + ); 131 + 132 + /* Routine thread_get_state */ 133 + #ifdef mig_external 134 + mig_external 135 + #else 136 + extern 137 + #endif /* mig_external */ 138 + kern_return_t thread_get_state 139 + ( 140 + thread_act_t target_act, 141 + thread_state_flavor_t flavor, 142 + thread_state_t old_state, 143 + mach_msg_type_number_t *old_stateCnt 144 + ); 145 + 146 + /* Routine thread_set_state */ 147 + #ifdef mig_external 148 + mig_external 149 + #else 150 + extern 151 + #endif /* mig_external */ 152 + kern_return_t thread_set_state 153 + ( 154 + thread_act_t target_act, 155 + thread_state_flavor_t flavor, 156 + thread_state_t new_state, 157 + mach_msg_type_number_t new_stateCnt 158 + ); 159 + 160 + /* Routine thread_suspend */ 161 + #ifdef mig_external 162 + mig_external 163 + #else 164 + extern 165 + #endif /* mig_external */ 166 + kern_return_t thread_suspend 167 + ( 168 + thread_act_t target_act 169 + ); 170 + 171 + /* Routine thread_resume */ 172 + #ifdef mig_external 173 + mig_external 174 + #else 175 + extern 176 + #endif /* mig_external */ 177 + kern_return_t thread_resume 178 + ( 179 + thread_act_t target_act 180 + ); 181 + 182 + /* Routine thread_abort */ 183 + #ifdef mig_external 184 + mig_external 185 + #else 186 + extern 187 + #endif /* mig_external */ 188 + kern_return_t thread_abort 189 + ( 190 + thread_act_t target_act 191 + ); 192 + 193 + /* Routine thread_abort_safely */ 194 + #ifdef mig_external 195 + mig_external 196 + #else 197 + extern 198 + #endif /* mig_external */ 199 + kern_return_t thread_abort_safely 200 + ( 201 + thread_act_t target_act 202 + ); 203 + 204 + /* Routine thread_depress_abort */ 205 + #ifdef mig_external 206 + mig_external 207 + #else 208 + extern 209 + #endif /* mig_external */ 210 + kern_return_t thread_depress_abort 211 + ( 212 + thread_act_t thread 213 + ); 214 + 215 + /* Routine thread_get_special_port */ 216 + #ifdef mig_external 217 + mig_external 218 + #else 219 + extern 220 + #endif /* mig_external */ 221 + kern_return_t thread_get_special_port 222 + ( 223 + thread_act_t thr_act, 224 + int which_port, 225 + mach_port_t *special_port 226 + ); 227 + 228 + /* Routine thread_set_special_port */ 229 + #ifdef mig_external 230 + mig_external 231 + #else 232 + extern 233 + #endif /* mig_external */ 234 + kern_return_t thread_set_special_port 235 + ( 236 + thread_act_t thr_act, 237 + int which_port, 238 + mach_port_t special_port 239 + ); 240 + 241 + /* Routine thread_info */ 242 + #ifdef mig_external 243 + mig_external 244 + #else 245 + extern 246 + #endif /* mig_external */ 247 + kern_return_t thread_info 248 + ( 249 + thread_inspect_t target_act, 250 + thread_flavor_t flavor, 251 + thread_info_t thread_info_out, 252 + mach_msg_type_number_t *thread_info_outCnt 253 + ); 254 + 255 + /* Routine thread_set_exception_ports */ 256 + #ifdef mig_external 257 + mig_external 258 + #else 259 + extern 260 + #endif /* mig_external */ 261 + kern_return_t thread_set_exception_ports 262 + ( 263 + thread_act_t thread, 264 + exception_mask_t exception_mask, 265 + mach_port_t new_port, 266 + exception_behavior_t behavior, 267 + thread_state_flavor_t new_flavor 268 + ); 269 + 270 + /* Routine thread_get_exception_ports */ 271 + #ifdef mig_external 272 + mig_external 273 + #else 274 + extern 275 + #endif /* mig_external */ 276 + kern_return_t thread_get_exception_ports 277 + ( 278 + thread_inspect_t thread, 279 + exception_mask_t exception_mask, 280 + exception_mask_array_t masks, 281 + mach_msg_type_number_t *masksCnt, 282 + exception_handler_array_t old_handlers, 283 + exception_behavior_array_t old_behaviors, 284 + exception_flavor_array_t old_flavors 285 + ); 286 + 287 + /* Routine thread_swap_exception_ports */ 288 + #ifdef mig_external 289 + mig_external 290 + #else 291 + extern 292 + #endif /* mig_external */ 293 + kern_return_t thread_swap_exception_ports 294 + ( 295 + thread_act_t thread, 296 + exception_mask_t exception_mask, 297 + mach_port_t new_port, 298 + exception_behavior_t behavior, 299 + thread_state_flavor_t new_flavor, 300 + exception_mask_array_t masks, 301 + mach_msg_type_number_t *masksCnt, 302 + exception_handler_array_t old_handlers, 303 + exception_behavior_array_t old_behaviors, 304 + exception_flavor_array_t old_flavors 305 + ); 306 + 307 + /* Routine thread_policy */ 308 + #ifdef mig_external 309 + mig_external 310 + #else 311 + extern 312 + #endif /* mig_external */ 313 + kern_return_t thread_policy 314 + ( 315 + thread_act_t thr_act, 316 + policy_t policy, 317 + policy_base_t base, 318 + mach_msg_type_number_t baseCnt, 319 + boolean_t set_limit 320 + ); 321 + 322 + /* Routine thread_policy_set */ 323 + #ifdef mig_external 324 + mig_external 325 + #else 326 + extern 327 + #endif /* mig_external */ 328 + kern_return_t thread_policy_set 329 + ( 330 + thread_act_t thread, 331 + thread_policy_flavor_t flavor, 332 + thread_policy_t policy_info, 333 + mach_msg_type_number_t policy_infoCnt 334 + ); 335 + 336 + /* Routine thread_policy_get */ 337 + #ifdef mig_external 338 + mig_external 339 + #else 340 + extern 341 + #endif /* mig_external */ 342 + kern_return_t thread_policy_get 343 + ( 344 + thread_inspect_t thread, 345 + thread_policy_flavor_t flavor, 346 + thread_policy_t policy_info, 347 + mach_msg_type_number_t *policy_infoCnt, 348 + boolean_t *get_default 349 + ); 350 + 351 + /* Routine thread_sample */ 352 + #ifdef mig_external 353 + mig_external 354 + #else 355 + extern 356 + #endif /* mig_external */ 357 + kern_return_t thread_sample 358 + ( 359 + thread_act_t thread, 360 + mach_port_t reply 361 + ); 362 + 363 + /* Routine etap_trace_thread */ 364 + #ifdef mig_external 365 + mig_external 366 + #else 367 + extern 368 + #endif /* mig_external */ 369 + kern_return_t etap_trace_thread 370 + ( 371 + thread_act_t target_act, 372 + boolean_t trace_status 373 + ); 374 + 375 + /* Routine thread_assign */ 376 + #ifdef mig_external 377 + mig_external 378 + #else 379 + extern 380 + #endif /* mig_external */ 381 + kern_return_t thread_assign 382 + ( 383 + thread_act_t thread, 384 + processor_set_t new_set 385 + ); 386 + 387 + /* Routine thread_assign_default */ 388 + #ifdef mig_external 389 + mig_external 390 + #else 391 + extern 392 + #endif /* mig_external */ 393 + kern_return_t thread_assign_default 394 + ( 395 + thread_act_t thread 396 + ); 397 + 398 + /* Routine thread_get_assignment */ 399 + #ifdef mig_external 400 + mig_external 401 + #else 402 + extern 403 + #endif /* mig_external */ 404 + kern_return_t thread_get_assignment 405 + ( 406 + thread_act_t thread, 407 + processor_set_name_t *assigned_set 408 + ); 409 + 410 + /* Routine thread_set_policy */ 411 + #ifdef mig_external 412 + mig_external 413 + #else 414 + extern 415 + #endif /* mig_external */ 416 + kern_return_t thread_set_policy 417 + ( 418 + thread_act_t thr_act, 419 + processor_set_t pset, 420 + policy_t policy, 421 + policy_base_t base, 422 + mach_msg_type_number_t baseCnt, 423 + policy_limit_t limit, 424 + mach_msg_type_number_t limitCnt 425 + ); 426 + 427 + /* Routine thread_get_mach_voucher */ 428 + #ifdef mig_external 429 + mig_external 430 + #else 431 + extern 432 + #endif /* mig_external */ 433 + kern_return_t thread_get_mach_voucher 434 + ( 435 + thread_act_t thr_act, 436 + mach_voucher_selector_t which, 437 + ipc_voucher_t *voucher 438 + ); 439 + 440 + /* Routine thread_set_mach_voucher */ 441 + #ifdef mig_external 442 + mig_external 443 + #else 444 + extern 445 + #endif /* mig_external */ 446 + kern_return_t thread_set_mach_voucher 447 + ( 448 + thread_act_t thr_act, 449 + ipc_voucher_t voucher 450 + ); 451 + 452 + /* Routine thread_swap_mach_voucher */ 453 + #ifdef mig_external 454 + mig_external 455 + #else 456 + extern 457 + #endif /* mig_external */ 458 + kern_return_t thread_swap_mach_voucher 459 + ( 460 + thread_act_t thr_act, 461 + ipc_voucher_t new_voucher, 462 + ipc_voucher_t *old_voucher 463 + ); 464 + 465 + __END_DECLS 466 + 467 + /********************** Caution **************************/ 468 + /* The following data types should be used to calculate */ 469 + /* maximum message sizes only. The actual message may be */ 470 + /* smaller, and the position of the arguments within the */ 471 + /* message layout may vary from what is presented here. */ 472 + /* For example, if any of the arguments are variable- */ 473 + /* sized, and less than the maximum is sent, the data */ 474 + /* will be packed tight in the actual message to reduce */ 475 + /* the presence of holes. */ 476 + /********************** Caution **************************/ 477 + 478 + /* typedefs for all requests */ 479 + 480 + #ifndef __Request__thread_act_subsystem__defined 481 + #define __Request__thread_act_subsystem__defined 482 + 483 + #ifdef __MigPackStructs 484 + #pragma pack(push, 4) 485 + #endif 486 + typedef struct { 487 + mach_msg_header_t Head; 488 + } __Request__thread_terminate_t __attribute__((unused)); 489 + #ifdef __MigPackStructs 490 + #pragma pack(pop) 491 + #endif 492 + 493 + #ifdef __MigPackStructs 494 + #pragma pack(push, 4) 495 + #endif 496 + typedef struct { 497 + mach_msg_header_t Head; 498 + NDR_record_t NDR; 499 + int flavor; 500 + mach_msg_type_number_t old_stateCnt; 501 + } __Request__act_get_state_t __attribute__((unused)); 502 + #ifdef __MigPackStructs 503 + #pragma pack(pop) 504 + #endif 505 + 506 + #ifdef __MigPackStructs 507 + #pragma pack(push, 4) 508 + #endif 509 + typedef struct { 510 + mach_msg_header_t Head; 511 + NDR_record_t NDR; 512 + int flavor; 513 + mach_msg_type_number_t new_stateCnt; 514 + natural_t new_state[614]; 515 + } __Request__act_set_state_t __attribute__((unused)); 516 + #ifdef __MigPackStructs 517 + #pragma pack(pop) 518 + #endif 519 + 520 + #ifdef __MigPackStructs 521 + #pragma pack(push, 4) 522 + #endif 523 + typedef struct { 524 + mach_msg_header_t Head; 525 + NDR_record_t NDR; 526 + thread_state_flavor_t flavor; 527 + mach_msg_type_number_t old_stateCnt; 528 + } __Request__thread_get_state_t __attribute__((unused)); 529 + #ifdef __MigPackStructs 530 + #pragma pack(pop) 531 + #endif 532 + 533 + #ifdef __MigPackStructs 534 + #pragma pack(push, 4) 535 + #endif 536 + typedef struct { 537 + mach_msg_header_t Head; 538 + NDR_record_t NDR; 539 + thread_state_flavor_t flavor; 540 + mach_msg_type_number_t new_stateCnt; 541 + natural_t new_state[614]; 542 + } __Request__thread_set_state_t __attribute__((unused)); 543 + #ifdef __MigPackStructs 544 + #pragma pack(pop) 545 + #endif 546 + 547 + #ifdef __MigPackStructs 548 + #pragma pack(push, 4) 549 + #endif 550 + typedef struct { 551 + mach_msg_header_t Head; 552 + } __Request__thread_suspend_t __attribute__((unused)); 553 + #ifdef __MigPackStructs 554 + #pragma pack(pop) 555 + #endif 556 + 557 + #ifdef __MigPackStructs 558 + #pragma pack(push, 4) 559 + #endif 560 + typedef struct { 561 + mach_msg_header_t Head; 562 + } __Request__thread_resume_t __attribute__((unused)); 563 + #ifdef __MigPackStructs 564 + #pragma pack(pop) 565 + #endif 566 + 567 + #ifdef __MigPackStructs 568 + #pragma pack(push, 4) 569 + #endif 570 + typedef struct { 571 + mach_msg_header_t Head; 572 + } __Request__thread_abort_t __attribute__((unused)); 573 + #ifdef __MigPackStructs 574 + #pragma pack(pop) 575 + #endif 576 + 577 + #ifdef __MigPackStructs 578 + #pragma pack(push, 4) 579 + #endif 580 + typedef struct { 581 + mach_msg_header_t Head; 582 + } __Request__thread_abort_safely_t __attribute__((unused)); 583 + #ifdef __MigPackStructs 584 + #pragma pack(pop) 585 + #endif 586 + 587 + #ifdef __MigPackStructs 588 + #pragma pack(push, 4) 589 + #endif 590 + typedef struct { 591 + mach_msg_header_t Head; 592 + } __Request__thread_depress_abort_t __attribute__((unused)); 593 + #ifdef __MigPackStructs 594 + #pragma pack(pop) 595 + #endif 596 + 597 + #ifdef __MigPackStructs 598 + #pragma pack(push, 4) 599 + #endif 600 + typedef struct { 601 + mach_msg_header_t Head; 602 + NDR_record_t NDR; 603 + int which_port; 604 + } __Request__thread_get_special_port_t __attribute__((unused)); 605 + #ifdef __MigPackStructs 606 + #pragma pack(pop) 607 + #endif 608 + 609 + #ifdef __MigPackStructs 610 + #pragma pack(push, 4) 611 + #endif 612 + typedef struct { 613 + mach_msg_header_t Head; 614 + /* start of the kernel processed data */ 615 + mach_msg_body_t msgh_body; 616 + mach_msg_port_descriptor_t special_port; 617 + /* end of the kernel processed data */ 618 + NDR_record_t NDR; 619 + int which_port; 620 + } __Request__thread_set_special_port_t __attribute__((unused)); 621 + #ifdef __MigPackStructs 622 + #pragma pack(pop) 623 + #endif 624 + 625 + #ifdef __MigPackStructs 626 + #pragma pack(push, 4) 627 + #endif 628 + typedef struct { 629 + mach_msg_header_t Head; 630 + NDR_record_t NDR; 631 + thread_flavor_t flavor; 632 + mach_msg_type_number_t thread_info_outCnt; 633 + } __Request__thread_info_t __attribute__((unused)); 634 + #ifdef __MigPackStructs 635 + #pragma pack(pop) 636 + #endif 637 + 638 + #ifdef __MigPackStructs 639 + #pragma pack(push, 4) 640 + #endif 641 + typedef struct { 642 + mach_msg_header_t Head; 643 + /* start of the kernel processed data */ 644 + mach_msg_body_t msgh_body; 645 + mach_msg_port_descriptor_t new_port; 646 + /* end of the kernel processed data */ 647 + NDR_record_t NDR; 648 + exception_mask_t exception_mask; 649 + exception_behavior_t behavior; 650 + thread_state_flavor_t new_flavor; 651 + } __Request__thread_set_exception_ports_t __attribute__((unused)); 652 + #ifdef __MigPackStructs 653 + #pragma pack(pop) 654 + #endif 655 + 656 + #ifdef __MigPackStructs 657 + #pragma pack(push, 4) 658 + #endif 659 + typedef struct { 660 + mach_msg_header_t Head; 661 + NDR_record_t NDR; 662 + exception_mask_t exception_mask; 663 + } __Request__thread_get_exception_ports_t __attribute__((unused)); 664 + #ifdef __MigPackStructs 665 + #pragma pack(pop) 666 + #endif 667 + 668 + #ifdef __MigPackStructs 669 + #pragma pack(push, 4) 670 + #endif 671 + typedef struct { 672 + mach_msg_header_t Head; 673 + /* start of the kernel processed data */ 674 + mach_msg_body_t msgh_body; 675 + mach_msg_port_descriptor_t new_port; 676 + /* end of the kernel processed data */ 677 + NDR_record_t NDR; 678 + exception_mask_t exception_mask; 679 + exception_behavior_t behavior; 680 + thread_state_flavor_t new_flavor; 681 + } __Request__thread_swap_exception_ports_t __attribute__((unused)); 682 + #ifdef __MigPackStructs 683 + #pragma pack(pop) 684 + #endif 685 + 686 + #ifdef __MigPackStructs 687 + #pragma pack(push, 4) 688 + #endif 689 + typedef struct { 690 + mach_msg_header_t Head; 691 + NDR_record_t NDR; 692 + policy_t policy; 693 + mach_msg_type_number_t baseCnt; 694 + integer_t base[5]; 695 + boolean_t set_limit; 696 + } __Request__thread_policy_t __attribute__((unused)); 697 + #ifdef __MigPackStructs 698 + #pragma pack(pop) 699 + #endif 700 + 701 + #ifdef __MigPackStructs 702 + #pragma pack(push, 4) 703 + #endif 704 + typedef struct { 705 + mach_msg_header_t Head; 706 + NDR_record_t NDR; 707 + thread_policy_flavor_t flavor; 708 + mach_msg_type_number_t policy_infoCnt; 709 + integer_t policy_info[16]; 710 + } __Request__thread_policy_set_t __attribute__((unused)); 711 + #ifdef __MigPackStructs 712 + #pragma pack(pop) 713 + #endif 714 + 715 + #ifdef __MigPackStructs 716 + #pragma pack(push, 4) 717 + #endif 718 + typedef struct { 719 + mach_msg_header_t Head; 720 + NDR_record_t NDR; 721 + thread_policy_flavor_t flavor; 722 + mach_msg_type_number_t policy_infoCnt; 723 + boolean_t get_default; 724 + } __Request__thread_policy_get_t __attribute__((unused)); 725 + #ifdef __MigPackStructs 726 + #pragma pack(pop) 727 + #endif 728 + 729 + #ifdef __MigPackStructs 730 + #pragma pack(push, 4) 731 + #endif 732 + typedef struct { 733 + mach_msg_header_t Head; 734 + /* start of the kernel processed data */ 735 + mach_msg_body_t msgh_body; 736 + mach_msg_port_descriptor_t reply; 737 + /* end of the kernel processed data */ 738 + } __Request__thread_sample_t __attribute__((unused)); 739 + #ifdef __MigPackStructs 740 + #pragma pack(pop) 741 + #endif 742 + 743 + #ifdef __MigPackStructs 744 + #pragma pack(push, 4) 745 + #endif 746 + typedef struct { 747 + mach_msg_header_t Head; 748 + NDR_record_t NDR; 749 + boolean_t trace_status; 750 + } __Request__etap_trace_thread_t __attribute__((unused)); 751 + #ifdef __MigPackStructs 752 + #pragma pack(pop) 753 + #endif 754 + 755 + #ifdef __MigPackStructs 756 + #pragma pack(push, 4) 757 + #endif 758 + typedef struct { 759 + mach_msg_header_t Head; 760 + /* start of the kernel processed data */ 761 + mach_msg_body_t msgh_body; 762 + mach_msg_port_descriptor_t new_set; 763 + /* end of the kernel processed data */ 764 + } __Request__thread_assign_t __attribute__((unused)); 765 + #ifdef __MigPackStructs 766 + #pragma pack(pop) 767 + #endif 768 + 769 + #ifdef __MigPackStructs 770 + #pragma pack(push, 4) 771 + #endif 772 + typedef struct { 773 + mach_msg_header_t Head; 774 + } __Request__thread_assign_default_t __attribute__((unused)); 775 + #ifdef __MigPackStructs 776 + #pragma pack(pop) 777 + #endif 778 + 779 + #ifdef __MigPackStructs 780 + #pragma pack(push, 4) 781 + #endif 782 + typedef struct { 783 + mach_msg_header_t Head; 784 + } __Request__thread_get_assignment_t __attribute__((unused)); 785 + #ifdef __MigPackStructs 786 + #pragma pack(pop) 787 + #endif 788 + 789 + #ifdef __MigPackStructs 790 + #pragma pack(push, 4) 791 + #endif 792 + typedef struct { 793 + mach_msg_header_t Head; 794 + /* start of the kernel processed data */ 795 + mach_msg_body_t msgh_body; 796 + mach_msg_port_descriptor_t pset; 797 + /* end of the kernel processed data */ 798 + NDR_record_t NDR; 799 + policy_t policy; 800 + mach_msg_type_number_t baseCnt; 801 + integer_t base[5]; 802 + mach_msg_type_number_t limitCnt; 803 + integer_t limit[1]; 804 + } __Request__thread_set_policy_t __attribute__((unused)); 805 + #ifdef __MigPackStructs 806 + #pragma pack(pop) 807 + #endif 808 + 809 + #ifdef __MigPackStructs 810 + #pragma pack(push, 4) 811 + #endif 812 + typedef struct { 813 + mach_msg_header_t Head; 814 + NDR_record_t NDR; 815 + mach_voucher_selector_t which; 816 + } __Request__thread_get_mach_voucher_t __attribute__((unused)); 817 + #ifdef __MigPackStructs 818 + #pragma pack(pop) 819 + #endif 820 + 821 + #ifdef __MigPackStructs 822 + #pragma pack(push, 4) 823 + #endif 824 + typedef struct { 825 + mach_msg_header_t Head; 826 + /* start of the kernel processed data */ 827 + mach_msg_body_t msgh_body; 828 + mach_msg_port_descriptor_t voucher; 829 + /* end of the kernel processed data */ 830 + } __Request__thread_set_mach_voucher_t __attribute__((unused)); 831 + #ifdef __MigPackStructs 832 + #pragma pack(pop) 833 + #endif 834 + 835 + #ifdef __MigPackStructs 836 + #pragma pack(push, 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_port_descriptor_t new_voucher; 843 + mach_msg_port_descriptor_t old_voucher; 844 + /* end of the kernel processed data */ 845 + } __Request__thread_swap_mach_voucher_t __attribute__((unused)); 846 + #ifdef __MigPackStructs 847 + #pragma pack(pop) 848 + #endif 849 + #endif /* !__Request__thread_act_subsystem__defined */ 850 + 851 + /* union of all requests */ 852 + 853 + #ifndef __RequestUnion__thread_act_subsystem__defined 854 + #define __RequestUnion__thread_act_subsystem__defined 855 + union __RequestUnion__thread_act_subsystem { 856 + __Request__thread_terminate_t Request_thread_terminate; 857 + __Request__act_get_state_t Request_act_get_state; 858 + __Request__act_set_state_t Request_act_set_state; 859 + __Request__thread_get_state_t Request_thread_get_state; 860 + __Request__thread_set_state_t Request_thread_set_state; 861 + __Request__thread_suspend_t Request_thread_suspend; 862 + __Request__thread_resume_t Request_thread_resume; 863 + __Request__thread_abort_t Request_thread_abort; 864 + __Request__thread_abort_safely_t Request_thread_abort_safely; 865 + __Request__thread_depress_abort_t Request_thread_depress_abort; 866 + __Request__thread_get_special_port_t Request_thread_get_special_port; 867 + __Request__thread_set_special_port_t Request_thread_set_special_port; 868 + __Request__thread_info_t Request_thread_info; 869 + __Request__thread_set_exception_ports_t Request_thread_set_exception_ports; 870 + __Request__thread_get_exception_ports_t Request_thread_get_exception_ports; 871 + __Request__thread_swap_exception_ports_t Request_thread_swap_exception_ports; 872 + __Request__thread_policy_t Request_thread_policy; 873 + __Request__thread_policy_set_t Request_thread_policy_set; 874 + __Request__thread_policy_get_t Request_thread_policy_get; 875 + __Request__thread_sample_t Request_thread_sample; 876 + __Request__etap_trace_thread_t Request_etap_trace_thread; 877 + __Request__thread_assign_t Request_thread_assign; 878 + __Request__thread_assign_default_t Request_thread_assign_default; 879 + __Request__thread_get_assignment_t Request_thread_get_assignment; 880 + __Request__thread_set_policy_t Request_thread_set_policy; 881 + __Request__thread_get_mach_voucher_t Request_thread_get_mach_voucher; 882 + __Request__thread_set_mach_voucher_t Request_thread_set_mach_voucher; 883 + __Request__thread_swap_mach_voucher_t Request_thread_swap_mach_voucher; 884 + }; 885 + #endif /* !__RequestUnion__thread_act_subsystem__defined */ 886 + /* typedefs for all replies */ 887 + 888 + #ifndef __Reply__thread_act_subsystem__defined 889 + #define __Reply__thread_act_subsystem__defined 890 + 891 + #ifdef __MigPackStructs 892 + #pragma pack(push, 4) 893 + #endif 894 + typedef struct { 895 + mach_msg_header_t Head; 896 + NDR_record_t NDR; 897 + kern_return_t RetCode; 898 + } __Reply__thread_terminate_t __attribute__((unused)); 899 + #ifdef __MigPackStructs 900 + #pragma pack(pop) 901 + #endif 902 + 903 + #ifdef __MigPackStructs 904 + #pragma pack(push, 4) 905 + #endif 906 + typedef struct { 907 + mach_msg_header_t Head; 908 + NDR_record_t NDR; 909 + kern_return_t RetCode; 910 + mach_msg_type_number_t old_stateCnt; 911 + natural_t old_state[614]; 912 + } __Reply__act_get_state_t __attribute__((unused)); 913 + #ifdef __MigPackStructs 914 + #pragma pack(pop) 915 + #endif 916 + 917 + #ifdef __MigPackStructs 918 + #pragma pack(push, 4) 919 + #endif 920 + typedef struct { 921 + mach_msg_header_t Head; 922 + NDR_record_t NDR; 923 + kern_return_t RetCode; 924 + } __Reply__act_set_state_t __attribute__((unused)); 925 + #ifdef __MigPackStructs 926 + #pragma pack(pop) 927 + #endif 928 + 929 + #ifdef __MigPackStructs 930 + #pragma pack(push, 4) 931 + #endif 932 + typedef struct { 933 + mach_msg_header_t Head; 934 + NDR_record_t NDR; 935 + kern_return_t RetCode; 936 + mach_msg_type_number_t old_stateCnt; 937 + natural_t old_state[614]; 938 + } __Reply__thread_get_state_t __attribute__((unused)); 939 + #ifdef __MigPackStructs 940 + #pragma pack(pop) 941 + #endif 942 + 943 + #ifdef __MigPackStructs 944 + #pragma pack(push, 4) 945 + #endif 946 + typedef struct { 947 + mach_msg_header_t Head; 948 + NDR_record_t NDR; 949 + kern_return_t RetCode; 950 + } __Reply__thread_set_state_t __attribute__((unused)); 951 + #ifdef __MigPackStructs 952 + #pragma pack(pop) 953 + #endif 954 + 955 + #ifdef __MigPackStructs 956 + #pragma pack(push, 4) 957 + #endif 958 + typedef struct { 959 + mach_msg_header_t Head; 960 + NDR_record_t NDR; 961 + kern_return_t RetCode; 962 + } __Reply__thread_suspend_t __attribute__((unused)); 963 + #ifdef __MigPackStructs 964 + #pragma pack(pop) 965 + #endif 966 + 967 + #ifdef __MigPackStructs 968 + #pragma pack(push, 4) 969 + #endif 970 + typedef struct { 971 + mach_msg_header_t Head; 972 + NDR_record_t NDR; 973 + kern_return_t RetCode; 974 + } __Reply__thread_resume_t __attribute__((unused)); 975 + #ifdef __MigPackStructs 976 + #pragma pack(pop) 977 + #endif 978 + 979 + #ifdef __MigPackStructs 980 + #pragma pack(push, 4) 981 + #endif 982 + typedef struct { 983 + mach_msg_header_t Head; 984 + NDR_record_t NDR; 985 + kern_return_t RetCode; 986 + } __Reply__thread_abort_t __attribute__((unused)); 987 + #ifdef __MigPackStructs 988 + #pragma pack(pop) 989 + #endif 990 + 991 + #ifdef __MigPackStructs 992 + #pragma pack(push, 4) 993 + #endif 994 + typedef struct { 995 + mach_msg_header_t Head; 996 + NDR_record_t NDR; 997 + kern_return_t RetCode; 998 + } __Reply__thread_abort_safely_t __attribute__((unused)); 999 + #ifdef __MigPackStructs 1000 + #pragma pack(pop) 1001 + #endif 1002 + 1003 + #ifdef __MigPackStructs 1004 + #pragma pack(push, 4) 1005 + #endif 1006 + typedef struct { 1007 + mach_msg_header_t Head; 1008 + NDR_record_t NDR; 1009 + kern_return_t RetCode; 1010 + } __Reply__thread_depress_abort_t __attribute__((unused)); 1011 + #ifdef __MigPackStructs 1012 + #pragma pack(pop) 1013 + #endif 1014 + 1015 + #ifdef __MigPackStructs 1016 + #pragma pack(push, 4) 1017 + #endif 1018 + typedef struct { 1019 + mach_msg_header_t Head; 1020 + /* start of the kernel processed data */ 1021 + mach_msg_body_t msgh_body; 1022 + mach_msg_port_descriptor_t special_port; 1023 + /* end of the kernel processed data */ 1024 + } __Reply__thread_get_special_port_t __attribute__((unused)); 1025 + #ifdef __MigPackStructs 1026 + #pragma pack(pop) 1027 + #endif 1028 + 1029 + #ifdef __MigPackStructs 1030 + #pragma pack(push, 4) 1031 + #endif 1032 + typedef struct { 1033 + mach_msg_header_t Head; 1034 + NDR_record_t NDR; 1035 + kern_return_t RetCode; 1036 + } __Reply__thread_set_special_port_t __attribute__((unused)); 1037 + #ifdef __MigPackStructs 1038 + #pragma pack(pop) 1039 + #endif 1040 + 1041 + #ifdef __MigPackStructs 1042 + #pragma pack(push, 4) 1043 + #endif 1044 + typedef struct { 1045 + mach_msg_header_t Head; 1046 + NDR_record_t NDR; 1047 + kern_return_t RetCode; 1048 + mach_msg_type_number_t thread_info_outCnt; 1049 + integer_t thread_info_out[32]; 1050 + } __Reply__thread_info_t __attribute__((unused)); 1051 + #ifdef __MigPackStructs 1052 + #pragma pack(pop) 1053 + #endif 1054 + 1055 + #ifdef __MigPackStructs 1056 + #pragma pack(push, 4) 1057 + #endif 1058 + typedef struct { 1059 + mach_msg_header_t Head; 1060 + NDR_record_t NDR; 1061 + kern_return_t RetCode; 1062 + } __Reply__thread_set_exception_ports_t __attribute__((unused)); 1063 + #ifdef __MigPackStructs 1064 + #pragma pack(pop) 1065 + #endif 1066 + 1067 + #ifdef __MigPackStructs 1068 + #pragma pack(push, 4) 1069 + #endif 1070 + typedef struct { 1071 + mach_msg_header_t Head; 1072 + /* start of the kernel processed data */ 1073 + mach_msg_body_t msgh_body; 1074 + mach_msg_port_descriptor_t old_handlers[32]; 1075 + /* end of the kernel processed data */ 1076 + NDR_record_t NDR; 1077 + mach_msg_type_number_t masksCnt; 1078 + exception_mask_t masks[32]; 1079 + exception_behavior_t old_behaviors[32]; 1080 + thread_state_flavor_t old_flavors[32]; 1081 + } __Reply__thread_get_exception_ports_t __attribute__((unused)); 1082 + #ifdef __MigPackStructs 1083 + #pragma pack(pop) 1084 + #endif 1085 + 1086 + #ifdef __MigPackStructs 1087 + #pragma pack(push, 4) 1088 + #endif 1089 + typedef struct { 1090 + mach_msg_header_t Head; 1091 + /* start of the kernel processed data */ 1092 + mach_msg_body_t msgh_body; 1093 + mach_msg_port_descriptor_t old_handlers[32]; 1094 + /* end of the kernel processed data */ 1095 + NDR_record_t NDR; 1096 + mach_msg_type_number_t masksCnt; 1097 + exception_mask_t masks[32]; 1098 + exception_behavior_t old_behaviors[32]; 1099 + thread_state_flavor_t old_flavors[32]; 1100 + } __Reply__thread_swap_exception_ports_t __attribute__((unused)); 1101 + #ifdef __MigPackStructs 1102 + #pragma pack(pop) 1103 + #endif 1104 + 1105 + #ifdef __MigPackStructs 1106 + #pragma pack(push, 4) 1107 + #endif 1108 + typedef struct { 1109 + mach_msg_header_t Head; 1110 + NDR_record_t NDR; 1111 + kern_return_t RetCode; 1112 + } __Reply__thread_policy_t __attribute__((unused)); 1113 + #ifdef __MigPackStructs 1114 + #pragma pack(pop) 1115 + #endif 1116 + 1117 + #ifdef __MigPackStructs 1118 + #pragma pack(push, 4) 1119 + #endif 1120 + typedef struct { 1121 + mach_msg_header_t Head; 1122 + NDR_record_t NDR; 1123 + kern_return_t RetCode; 1124 + } __Reply__thread_policy_set_t __attribute__((unused)); 1125 + #ifdef __MigPackStructs 1126 + #pragma pack(pop) 1127 + #endif 1128 + 1129 + #ifdef __MigPackStructs 1130 + #pragma pack(push, 4) 1131 + #endif 1132 + typedef struct { 1133 + mach_msg_header_t Head; 1134 + NDR_record_t NDR; 1135 + kern_return_t RetCode; 1136 + mach_msg_type_number_t policy_infoCnt; 1137 + integer_t policy_info[16]; 1138 + boolean_t get_default; 1139 + } __Reply__thread_policy_get_t __attribute__((unused)); 1140 + #ifdef __MigPackStructs 1141 + #pragma pack(pop) 1142 + #endif 1143 + 1144 + #ifdef __MigPackStructs 1145 + #pragma pack(push, 4) 1146 + #endif 1147 + typedef struct { 1148 + mach_msg_header_t Head; 1149 + NDR_record_t NDR; 1150 + kern_return_t RetCode; 1151 + } __Reply__thread_sample_t __attribute__((unused)); 1152 + #ifdef __MigPackStructs 1153 + #pragma pack(pop) 1154 + #endif 1155 + 1156 + #ifdef __MigPackStructs 1157 + #pragma pack(push, 4) 1158 + #endif 1159 + typedef struct { 1160 + mach_msg_header_t Head; 1161 + NDR_record_t NDR; 1162 + kern_return_t RetCode; 1163 + } __Reply__etap_trace_thread_t __attribute__((unused)); 1164 + #ifdef __MigPackStructs 1165 + #pragma pack(pop) 1166 + #endif 1167 + 1168 + #ifdef __MigPackStructs 1169 + #pragma pack(push, 4) 1170 + #endif 1171 + typedef struct { 1172 + mach_msg_header_t Head; 1173 + NDR_record_t NDR; 1174 + kern_return_t RetCode; 1175 + } __Reply__thread_assign_t __attribute__((unused)); 1176 + #ifdef __MigPackStructs 1177 + #pragma pack(pop) 1178 + #endif 1179 + 1180 + #ifdef __MigPackStructs 1181 + #pragma pack(push, 4) 1182 + #endif 1183 + typedef struct { 1184 + mach_msg_header_t Head; 1185 + NDR_record_t NDR; 1186 + kern_return_t RetCode; 1187 + } __Reply__thread_assign_default_t __attribute__((unused)); 1188 + #ifdef __MigPackStructs 1189 + #pragma pack(pop) 1190 + #endif 1191 + 1192 + #ifdef __MigPackStructs 1193 + #pragma pack(push, 4) 1194 + #endif 1195 + typedef struct { 1196 + mach_msg_header_t Head; 1197 + /* start of the kernel processed data */ 1198 + mach_msg_body_t msgh_body; 1199 + mach_msg_port_descriptor_t assigned_set; 1200 + /* end of the kernel processed data */ 1201 + } __Reply__thread_get_assignment_t __attribute__((unused)); 1202 + #ifdef __MigPackStructs 1203 + #pragma pack(pop) 1204 + #endif 1205 + 1206 + #ifdef __MigPackStructs 1207 + #pragma pack(push, 4) 1208 + #endif 1209 + typedef struct { 1210 + mach_msg_header_t Head; 1211 + NDR_record_t NDR; 1212 + kern_return_t RetCode; 1213 + } __Reply__thread_set_policy_t __attribute__((unused)); 1214 + #ifdef __MigPackStructs 1215 + #pragma pack(pop) 1216 + #endif 1217 + 1218 + #ifdef __MigPackStructs 1219 + #pragma pack(push, 4) 1220 + #endif 1221 + typedef struct { 1222 + mach_msg_header_t Head; 1223 + /* start of the kernel processed data */ 1224 + mach_msg_body_t msgh_body; 1225 + mach_msg_port_descriptor_t voucher; 1226 + /* end of the kernel processed data */ 1227 + } __Reply__thread_get_mach_voucher_t __attribute__((unused)); 1228 + #ifdef __MigPackStructs 1229 + #pragma pack(pop) 1230 + #endif 1231 + 1232 + #ifdef __MigPackStructs 1233 + #pragma pack(push, 4) 1234 + #endif 1235 + typedef struct { 1236 + mach_msg_header_t Head; 1237 + NDR_record_t NDR; 1238 + kern_return_t RetCode; 1239 + } __Reply__thread_set_mach_voucher_t __attribute__((unused)); 1240 + #ifdef __MigPackStructs 1241 + #pragma pack(pop) 1242 + #endif 1243 + 1244 + #ifdef __MigPackStructs 1245 + #pragma pack(push, 4) 1246 + #endif 1247 + typedef struct { 1248 + mach_msg_header_t Head; 1249 + /* start of the kernel processed data */ 1250 + mach_msg_body_t msgh_body; 1251 + mach_msg_port_descriptor_t old_voucher; 1252 + /* end of the kernel processed data */ 1253 + } __Reply__thread_swap_mach_voucher_t __attribute__((unused)); 1254 + #ifdef __MigPackStructs 1255 + #pragma pack(pop) 1256 + #endif 1257 + #endif /* !__Reply__thread_act_subsystem__defined */ 1258 + 1259 + /* union of all replies */ 1260 + 1261 + #ifndef __ReplyUnion__thread_act_subsystem__defined 1262 + #define __ReplyUnion__thread_act_subsystem__defined 1263 + union __ReplyUnion__thread_act_subsystem { 1264 + __Reply__thread_terminate_t Reply_thread_terminate; 1265 + __Reply__act_get_state_t Reply_act_get_state; 1266 + __Reply__act_set_state_t Reply_act_set_state; 1267 + __Reply__thread_get_state_t Reply_thread_get_state; 1268 + __Reply__thread_set_state_t Reply_thread_set_state; 1269 + __Reply__thread_suspend_t Reply_thread_suspend; 1270 + __Reply__thread_resume_t Reply_thread_resume; 1271 + __Reply__thread_abort_t Reply_thread_abort; 1272 + __Reply__thread_abort_safely_t Reply_thread_abort_safely; 1273 + __Reply__thread_depress_abort_t Reply_thread_depress_abort; 1274 + __Reply__thread_get_special_port_t Reply_thread_get_special_port; 1275 + __Reply__thread_set_special_port_t Reply_thread_set_special_port; 1276 + __Reply__thread_info_t Reply_thread_info; 1277 + __Reply__thread_set_exception_ports_t Reply_thread_set_exception_ports; 1278 + __Reply__thread_get_exception_ports_t Reply_thread_get_exception_ports; 1279 + __Reply__thread_swap_exception_ports_t Reply_thread_swap_exception_ports; 1280 + __Reply__thread_policy_t Reply_thread_policy; 1281 + __Reply__thread_policy_set_t Reply_thread_policy_set; 1282 + __Reply__thread_policy_get_t Reply_thread_policy_get; 1283 + __Reply__thread_sample_t Reply_thread_sample; 1284 + __Reply__etap_trace_thread_t Reply_etap_trace_thread; 1285 + __Reply__thread_assign_t Reply_thread_assign; 1286 + __Reply__thread_assign_default_t Reply_thread_assign_default; 1287 + __Reply__thread_get_assignment_t Reply_thread_get_assignment; 1288 + __Reply__thread_set_policy_t Reply_thread_set_policy; 1289 + __Reply__thread_get_mach_voucher_t Reply_thread_get_mach_voucher; 1290 + __Reply__thread_set_mach_voucher_t Reply_thread_set_mach_voucher; 1291 + __Reply__thread_swap_mach_voucher_t Reply_thread_swap_mach_voucher; 1292 + }; 1293 + #endif /* !__RequestUnion__thread_act_subsystem__defined */ 1294 + 1295 + #ifndef subsystem_to_name_map_thread_act 1296 + #define subsystem_to_name_map_thread_act \ 1297 + { "thread_terminate", 3600 },\ 1298 + { "act_get_state", 3601 },\ 1299 + { "act_set_state", 3602 },\ 1300 + { "thread_get_state", 3603 },\ 1301 + { "thread_set_state", 3604 },\ 1302 + { "thread_suspend", 3605 },\ 1303 + { "thread_resume", 3606 },\ 1304 + { "thread_abort", 3607 },\ 1305 + { "thread_abort_safely", 3608 },\ 1306 + { "thread_depress_abort", 3609 },\ 1307 + { "thread_get_special_port", 3610 },\ 1308 + { "thread_set_special_port", 3611 },\ 1309 + { "thread_info", 3612 },\ 1310 + { "thread_set_exception_ports", 3613 },\ 1311 + { "thread_get_exception_ports", 3614 },\ 1312 + { "thread_swap_exception_ports", 3615 },\ 1313 + { "thread_policy", 3616 },\ 1314 + { "thread_policy_set", 3617 },\ 1315 + { "thread_policy_get", 3618 },\ 1316 + { "thread_sample", 3619 },\ 1317 + { "etap_trace_thread", 3620 },\ 1318 + { "thread_assign", 3621 },\ 1319 + { "thread_assign_default", 3622 },\ 1320 + { "thread_get_assignment", 3623 },\ 1321 + { "thread_set_policy", 3624 },\ 1322 + { "thread_get_mach_voucher", 3625 },\ 1323 + { "thread_set_mach_voucher", 3626 },\ 1324 + { "thread_swap_mach_voucher", 3627 } 1325 + #endif 1326 + 1327 + #ifdef __AfterMigUserHeader 1328 + __AfterMigUserHeader 1329 + #endif /* __AfterMigUserHeader */ 1330 + 1331 + #endif /* _thread_act_user_ */
+1463
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/vm_map.h
··· 1 + #ifndef _vm_map_user_ 2 + #define _vm_map_user_ 3 + 4 + /* Module vm_map */ 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 VOUCHER CODE */ 17 + 18 + #ifndef KERNEL 19 + #if defined(__has_include) 20 + #if __has_include(<mach/mig_voucher_support.h>) 21 + #ifndef USING_VOUCHERS 22 + #define USING_VOUCHERS 23 + #endif 24 + #ifndef __VOUCHER_FORWARD_TYPE_DECLS__ 25 + #define __VOUCHER_FORWARD_TYPE_DECLS__ 26 + #ifdef __cplusplus 27 + extern "C" { 28 + #endif 29 + extern boolean_t voucher_mach_msg_set(mach_msg_header_t *msg) __attribute__((weak_import)); 30 + #ifdef __cplusplus 31 + } 32 + #endif 33 + #endif // __VOUCHER_FORWARD_TYPE_DECLS__ 34 + #endif // __has_include(<mach/mach_voucher_types.h>) 35 + #endif // __has_include 36 + #endif // !KERNEL 37 + 38 + /* END VOUCHER CODE */ 39 + 40 + 41 + /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ 42 + 43 + #if defined(__has_include) 44 + #if __has_include(<mach/mig_strncpy_zerofill_support.h>) 45 + #ifndef USING_MIG_STRNCPY_ZEROFILL 46 + #define USING_MIG_STRNCPY_ZEROFILL 47 + #endif 48 + #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 49 + #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ 50 + #ifdef __cplusplus 51 + extern "C" { 52 + #endif 53 + extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); 54 + #ifdef __cplusplus 55 + } 56 + #endif 57 + #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ 58 + #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ 59 + #endif /* __has_include */ 60 + 61 + /* END MIG_STRNCPY_ZEROFILL CODE */ 62 + 63 + 64 + #ifdef AUTOTEST 65 + #ifndef FUNCTION_PTR_T 66 + #define FUNCTION_PTR_T 67 + typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); 68 + typedef struct { 69 + char *name; 70 + function_ptr_t function; 71 + } function_table_entry; 72 + typedef function_table_entry *function_table_t; 73 + #endif /* FUNCTION_PTR_T */ 74 + #endif /* AUTOTEST */ 75 + 76 + #ifndef vm_map_MSG_COUNT 77 + #define vm_map_MSG_COUNT 32 78 + #endif /* vm_map_MSG_COUNT */ 79 + 80 + #include <mach/std_types.h> 81 + #include <mach/mig.h> 82 + #include <mach/mig.h> 83 + #include <mach/mach_types.h> 84 + #include <mach_debug/mach_debug_types.h> 85 + 86 + #ifdef __BeforeMigUserHeader 87 + __BeforeMigUserHeader 88 + #endif /* __BeforeMigUserHeader */ 89 + 90 + #include <sys/cdefs.h> 91 + __BEGIN_DECLS 92 + 93 + 94 + /* Routine vm_region */ 95 + #ifdef mig_external 96 + mig_external 97 + #else 98 + extern 99 + #endif /* mig_external */ 100 + kern_return_t vm_region 101 + ( 102 + vm_map_t target_task, 103 + vm_address_t *address, 104 + vm_size_t *size, 105 + vm_region_flavor_t flavor, 106 + vm_region_info_t info, 107 + mach_msg_type_number_t *infoCnt, 108 + mach_port_t *object_name 109 + ); 110 + 111 + /* Routine vm_allocate */ 112 + #ifdef mig_external 113 + mig_external 114 + #else 115 + extern 116 + #endif /* mig_external */ 117 + kern_return_t vm_allocate 118 + ( 119 + vm_map_t target_task, 120 + vm_address_t *address, 121 + vm_size_t size, 122 + int flags 123 + ); 124 + 125 + /* Routine vm_deallocate */ 126 + #ifdef mig_external 127 + mig_external 128 + #else 129 + extern 130 + #endif /* mig_external */ 131 + kern_return_t vm_deallocate 132 + ( 133 + vm_map_t target_task, 134 + vm_address_t address, 135 + vm_size_t size 136 + ); 137 + 138 + /* Routine vm_protect */ 139 + #ifdef mig_external 140 + mig_external 141 + #else 142 + extern 143 + #endif /* mig_external */ 144 + kern_return_t vm_protect 145 + ( 146 + vm_map_t target_task, 147 + vm_address_t address, 148 + vm_size_t size, 149 + boolean_t set_maximum, 150 + vm_prot_t new_protection 151 + ); 152 + 153 + /* Routine vm_inherit */ 154 + #ifdef mig_external 155 + mig_external 156 + #else 157 + extern 158 + #endif /* mig_external */ 159 + kern_return_t vm_inherit 160 + ( 161 + vm_map_t target_task, 162 + vm_address_t address, 163 + vm_size_t size, 164 + vm_inherit_t new_inheritance 165 + ); 166 + 167 + /* Routine vm_read */ 168 + #ifdef mig_external 169 + mig_external 170 + #else 171 + extern 172 + #endif /* mig_external */ 173 + kern_return_t vm_read 174 + ( 175 + vm_map_t target_task, 176 + vm_address_t address, 177 + vm_size_t size, 178 + vm_offset_t *data, 179 + mach_msg_type_number_t *dataCnt 180 + ); 181 + 182 + /* Routine vm_read_list */ 183 + #ifdef mig_external 184 + mig_external 185 + #else 186 + extern 187 + #endif /* mig_external */ 188 + kern_return_t vm_read_list 189 + ( 190 + vm_map_t target_task, 191 + vm_read_entry_t data_list, 192 + natural_t count 193 + ); 194 + 195 + /* Routine vm_write */ 196 + #ifdef mig_external 197 + mig_external 198 + #else 199 + extern 200 + #endif /* mig_external */ 201 + kern_return_t vm_write 202 + ( 203 + vm_map_t target_task, 204 + vm_address_t address, 205 + vm_offset_t data, 206 + mach_msg_type_number_t dataCnt 207 + ); 208 + 209 + /* Routine vm_copy */ 210 + #ifdef mig_external 211 + mig_external 212 + #else 213 + extern 214 + #endif /* mig_external */ 215 + kern_return_t vm_copy 216 + ( 217 + vm_map_t target_task, 218 + vm_address_t source_address, 219 + vm_size_t size, 220 + vm_address_t dest_address 221 + ); 222 + 223 + /* Routine vm_read_overwrite */ 224 + #ifdef mig_external 225 + mig_external 226 + #else 227 + extern 228 + #endif /* mig_external */ 229 + kern_return_t vm_read_overwrite 230 + ( 231 + vm_map_t target_task, 232 + vm_address_t address, 233 + vm_size_t size, 234 + vm_address_t data, 235 + vm_size_t *outsize 236 + ); 237 + 238 + /* Routine vm_msync */ 239 + #ifdef mig_external 240 + mig_external 241 + #else 242 + extern 243 + #endif /* mig_external */ 244 + kern_return_t vm_msync 245 + ( 246 + vm_map_t target_task, 247 + vm_address_t address, 248 + vm_size_t size, 249 + vm_sync_t sync_flags 250 + ); 251 + 252 + /* Routine vm_behavior_set */ 253 + #ifdef mig_external 254 + mig_external 255 + #else 256 + extern 257 + #endif /* mig_external */ 258 + kern_return_t vm_behavior_set 259 + ( 260 + vm_map_t target_task, 261 + vm_address_t address, 262 + vm_size_t size, 263 + vm_behavior_t new_behavior 264 + ); 265 + 266 + /* Routine vm_map */ 267 + #ifdef mig_external 268 + mig_external 269 + #else 270 + extern 271 + #endif /* mig_external */ 272 + kern_return_t vm_map 273 + ( 274 + vm_map_t target_task, 275 + vm_address_t *address, 276 + vm_size_t size, 277 + vm_address_t mask, 278 + int flags, 279 + mem_entry_name_port_t object, 280 + vm_offset_t offset, 281 + boolean_t copy, 282 + vm_prot_t cur_protection, 283 + vm_prot_t max_protection, 284 + vm_inherit_t inheritance 285 + ); 286 + 287 + /* Routine vm_machine_attribute */ 288 + #ifdef mig_external 289 + mig_external 290 + #else 291 + extern 292 + #endif /* mig_external */ 293 + kern_return_t vm_machine_attribute 294 + ( 295 + vm_map_t target_task, 296 + vm_address_t address, 297 + vm_size_t size, 298 + vm_machine_attribute_t attribute, 299 + vm_machine_attribute_val_t *value 300 + ); 301 + 302 + /* Routine vm_remap */ 303 + #ifdef mig_external 304 + mig_external 305 + #else 306 + extern 307 + #endif /* mig_external */ 308 + kern_return_t vm_remap 309 + ( 310 + vm_map_t target_task, 311 + vm_address_t *target_address, 312 + vm_size_t size, 313 + vm_address_t mask, 314 + int flags, 315 + vm_map_t src_task, 316 + vm_address_t src_address, 317 + boolean_t copy, 318 + vm_prot_t *cur_protection, 319 + vm_prot_t *max_protection, 320 + vm_inherit_t inheritance 321 + ); 322 + 323 + /* Routine task_wire */ 324 + #ifdef mig_external 325 + mig_external 326 + #else 327 + extern 328 + #endif /* mig_external */ 329 + kern_return_t task_wire 330 + ( 331 + vm_map_t target_task, 332 + boolean_t must_wire 333 + ); 334 + 335 + /* Routine mach_make_memory_entry */ 336 + #ifdef mig_external 337 + mig_external 338 + #else 339 + extern 340 + #endif /* mig_external */ 341 + kern_return_t mach_make_memory_entry 342 + ( 343 + vm_map_t target_task, 344 + vm_size_t *size, 345 + vm_offset_t offset, 346 + vm_prot_t permission, 347 + mem_entry_name_port_t *object_handle, 348 + mem_entry_name_port_t parent_entry 349 + ); 350 + 351 + /* Routine vm_map_page_query */ 352 + #ifdef mig_external 353 + mig_external 354 + #else 355 + extern 356 + #endif /* mig_external */ 357 + kern_return_t vm_map_page_query 358 + ( 359 + vm_map_t target_map, 360 + vm_offset_t offset, 361 + integer_t *disposition, 362 + integer_t *ref_count 363 + ); 364 + 365 + /* Routine mach_vm_region_info */ 366 + #ifdef mig_external 367 + mig_external 368 + #else 369 + extern 370 + #endif /* mig_external */ 371 + kern_return_t mach_vm_region_info 372 + ( 373 + vm_map_t task, 374 + vm_address_t address, 375 + vm_info_region_t *region, 376 + vm_info_object_array_t *objects, 377 + mach_msg_type_number_t *objectsCnt 378 + ); 379 + 380 + /* Routine vm_mapped_pages_info */ 381 + #ifdef mig_external 382 + mig_external 383 + #else 384 + extern 385 + #endif /* mig_external */ 386 + kern_return_t vm_mapped_pages_info 387 + ( 388 + vm_map_t task, 389 + page_address_array_t *pages, 390 + mach_msg_type_number_t *pagesCnt 391 + ); 392 + 393 + /* Routine vm_region_recurse */ 394 + #ifdef mig_external 395 + mig_external 396 + #else 397 + extern 398 + #endif /* mig_external */ 399 + kern_return_t vm_region_recurse 400 + ( 401 + vm_map_t target_task, 402 + vm_address_t *address, 403 + vm_size_t *size, 404 + natural_t *nesting_depth, 405 + vm_region_recurse_info_t info, 406 + mach_msg_type_number_t *infoCnt 407 + ); 408 + 409 + /* Routine vm_region_recurse_64 */ 410 + #ifdef mig_external 411 + mig_external 412 + #else 413 + extern 414 + #endif /* mig_external */ 415 + kern_return_t vm_region_recurse_64 416 + ( 417 + vm_map_t target_task, 418 + vm_address_t *address, 419 + vm_size_t *size, 420 + natural_t *nesting_depth, 421 + vm_region_recurse_info_t info, 422 + mach_msg_type_number_t *infoCnt 423 + ); 424 + 425 + /* Routine mach_vm_region_info_64 */ 426 + #ifdef mig_external 427 + mig_external 428 + #else 429 + extern 430 + #endif /* mig_external */ 431 + kern_return_t mach_vm_region_info_64 432 + ( 433 + vm_map_t task, 434 + vm_address_t address, 435 + vm_info_region_64_t *region, 436 + vm_info_object_array_t *objects, 437 + mach_msg_type_number_t *objectsCnt 438 + ); 439 + 440 + /* Routine vm_region_64 */ 441 + #ifdef mig_external 442 + mig_external 443 + #else 444 + extern 445 + #endif /* mig_external */ 446 + kern_return_t vm_region_64 447 + ( 448 + vm_map_t target_task, 449 + vm_address_t *address, 450 + vm_size_t *size, 451 + vm_region_flavor_t flavor, 452 + vm_region_info_t info, 453 + mach_msg_type_number_t *infoCnt, 454 + mach_port_t *object_name 455 + ); 456 + 457 + /* Routine mach_make_memory_entry_64 */ 458 + #ifdef mig_external 459 + mig_external 460 + #else 461 + extern 462 + #endif /* mig_external */ 463 + kern_return_t mach_make_memory_entry_64 464 + ( 465 + vm_map_t target_task, 466 + memory_object_size_t *size, 467 + memory_object_offset_t offset, 468 + vm_prot_t permission, 469 + mach_port_t *object_handle, 470 + mem_entry_name_port_t parent_entry 471 + ); 472 + 473 + /* Routine vm_map_64 */ 474 + #ifdef mig_external 475 + mig_external 476 + #else 477 + extern 478 + #endif /* mig_external */ 479 + kern_return_t vm_map_64 480 + ( 481 + vm_map_t target_task, 482 + vm_address_t *address, 483 + vm_size_t size, 484 + vm_address_t mask, 485 + int flags, 486 + mem_entry_name_port_t object, 487 + memory_object_offset_t offset, 488 + boolean_t copy, 489 + vm_prot_t cur_protection, 490 + vm_prot_t max_protection, 491 + vm_inherit_t inheritance 492 + ); 493 + 494 + /* Routine vm_purgable_control */ 495 + #ifdef mig_external 496 + mig_external 497 + #else 498 + extern 499 + #endif /* mig_external */ 500 + kern_return_t vm_purgable_control 501 + ( 502 + vm_map_t target_task, 503 + vm_address_t address, 504 + vm_purgable_t control, 505 + int *state 506 + ); 507 + 508 + /* Routine vm_map_exec_lockdown */ 509 + #ifdef mig_external 510 + mig_external 511 + #else 512 + extern 513 + #endif /* mig_external */ 514 + kern_return_t vm_map_exec_lockdown 515 + ( 516 + vm_map_t target_task 517 + ); 518 + 519 + __END_DECLS 520 + 521 + /********************** Caution **************************/ 522 + /* The following data types should be used to calculate */ 523 + /* maximum message sizes only. The actual message may be */ 524 + /* smaller, and the position of the arguments within the */ 525 + /* message layout may vary from what is presented here. */ 526 + /* For example, if any of the arguments are variable- */ 527 + /* sized, and less than the maximum is sent, the data */ 528 + /* will be packed tight in the actual message to reduce */ 529 + /* the presence of holes. */ 530 + /********************** Caution **************************/ 531 + 532 + /* typedefs for all requests */ 533 + 534 + #ifndef __Request__vm_map_subsystem__defined 535 + #define __Request__vm_map_subsystem__defined 536 + 537 + #ifdef __MigPackStructs 538 + #pragma pack(push, 4) 539 + #endif 540 + typedef struct { 541 + mach_msg_header_t Head; 542 + NDR_record_t NDR; 543 + vm_address_t address; 544 + vm_region_flavor_t flavor; 545 + mach_msg_type_number_t infoCnt; 546 + } __Request__vm_region_t __attribute__((unused)); 547 + #ifdef __MigPackStructs 548 + #pragma pack(pop) 549 + #endif 550 + 551 + #ifdef __MigPackStructs 552 + #pragma pack(push, 4) 553 + #endif 554 + typedef struct { 555 + mach_msg_header_t Head; 556 + NDR_record_t NDR; 557 + vm_address_t address; 558 + vm_size_t size; 559 + int flags; 560 + } __Request__vm_allocate_t __attribute__((unused)); 561 + #ifdef __MigPackStructs 562 + #pragma pack(pop) 563 + #endif 564 + 565 + #ifdef __MigPackStructs 566 + #pragma pack(push, 4) 567 + #endif 568 + typedef struct { 569 + mach_msg_header_t Head; 570 + NDR_record_t NDR; 571 + vm_address_t address; 572 + vm_size_t size; 573 + } __Request__vm_deallocate_t __attribute__((unused)); 574 + #ifdef __MigPackStructs 575 + #pragma pack(pop) 576 + #endif 577 + 578 + #ifdef __MigPackStructs 579 + #pragma pack(push, 4) 580 + #endif 581 + typedef struct { 582 + mach_msg_header_t Head; 583 + NDR_record_t NDR; 584 + vm_address_t address; 585 + vm_size_t size; 586 + boolean_t set_maximum; 587 + vm_prot_t new_protection; 588 + } __Request__vm_protect_t __attribute__((unused)); 589 + #ifdef __MigPackStructs 590 + #pragma pack(pop) 591 + #endif 592 + 593 + #ifdef __MigPackStructs 594 + #pragma pack(push, 4) 595 + #endif 596 + typedef struct { 597 + mach_msg_header_t Head; 598 + NDR_record_t NDR; 599 + vm_address_t address; 600 + vm_size_t size; 601 + vm_inherit_t new_inheritance; 602 + } __Request__vm_inherit_t __attribute__((unused)); 603 + #ifdef __MigPackStructs 604 + #pragma pack(pop) 605 + #endif 606 + 607 + #ifdef __MigPackStructs 608 + #pragma pack(push, 4) 609 + #endif 610 + typedef struct { 611 + mach_msg_header_t Head; 612 + NDR_record_t NDR; 613 + vm_address_t address; 614 + vm_size_t size; 615 + } __Request__vm_read_t __attribute__((unused)); 616 + #ifdef __MigPackStructs 617 + #pragma pack(pop) 618 + #endif 619 + 620 + #ifdef __MigPackStructs 621 + #pragma pack(push, 4) 622 + #endif 623 + typedef struct { 624 + mach_msg_header_t Head; 625 + NDR_record_t NDR; 626 + vm_read_entry_t data_list; 627 + natural_t count; 628 + } __Request__vm_read_list_t __attribute__((unused)); 629 + #ifdef __MigPackStructs 630 + #pragma pack(pop) 631 + #endif 632 + 633 + #ifdef __MigPackStructs 634 + #pragma pack(push, 4) 635 + #endif 636 + typedef struct { 637 + mach_msg_header_t Head; 638 + /* start of the kernel processed data */ 639 + mach_msg_body_t msgh_body; 640 + mach_msg_ool_descriptor_t data; 641 + /* end of the kernel processed data */ 642 + NDR_record_t NDR; 643 + vm_address_t address; 644 + mach_msg_type_number_t dataCnt; 645 + } __Request__vm_write_t __attribute__((unused)); 646 + #ifdef __MigPackStructs 647 + #pragma pack(pop) 648 + #endif 649 + 650 + #ifdef __MigPackStructs 651 + #pragma pack(push, 4) 652 + #endif 653 + typedef struct { 654 + mach_msg_header_t Head; 655 + NDR_record_t NDR; 656 + vm_address_t source_address; 657 + vm_size_t size; 658 + vm_address_t dest_address; 659 + } __Request__vm_copy_t __attribute__((unused)); 660 + #ifdef __MigPackStructs 661 + #pragma pack(pop) 662 + #endif 663 + 664 + #ifdef __MigPackStructs 665 + #pragma pack(push, 4) 666 + #endif 667 + typedef struct { 668 + mach_msg_header_t Head; 669 + NDR_record_t NDR; 670 + vm_address_t address; 671 + vm_size_t size; 672 + vm_address_t data; 673 + } __Request__vm_read_overwrite_t __attribute__((unused)); 674 + #ifdef __MigPackStructs 675 + #pragma pack(pop) 676 + #endif 677 + 678 + #ifdef __MigPackStructs 679 + #pragma pack(push, 4) 680 + #endif 681 + typedef struct { 682 + mach_msg_header_t Head; 683 + NDR_record_t NDR; 684 + vm_address_t address; 685 + vm_size_t size; 686 + vm_sync_t sync_flags; 687 + } __Request__vm_msync_t __attribute__((unused)); 688 + #ifdef __MigPackStructs 689 + #pragma pack(pop) 690 + #endif 691 + 692 + #ifdef __MigPackStructs 693 + #pragma pack(push, 4) 694 + #endif 695 + typedef struct { 696 + mach_msg_header_t Head; 697 + NDR_record_t NDR; 698 + vm_address_t address; 699 + vm_size_t size; 700 + vm_behavior_t new_behavior; 701 + } __Request__vm_behavior_set_t __attribute__((unused)); 702 + #ifdef __MigPackStructs 703 + #pragma pack(pop) 704 + #endif 705 + 706 + #ifdef __MigPackStructs 707 + #pragma pack(push, 4) 708 + #endif 709 + typedef struct { 710 + mach_msg_header_t Head; 711 + /* start of the kernel processed data */ 712 + mach_msg_body_t msgh_body; 713 + mach_msg_port_descriptor_t object; 714 + /* end of the kernel processed data */ 715 + NDR_record_t NDR; 716 + vm_address_t address; 717 + vm_size_t size; 718 + vm_address_t mask; 719 + int flags; 720 + vm_offset_t offset; 721 + boolean_t copy; 722 + vm_prot_t cur_protection; 723 + vm_prot_t max_protection; 724 + vm_inherit_t inheritance; 725 + } __Request__vm_map_t __attribute__((unused)); 726 + #ifdef __MigPackStructs 727 + #pragma pack(pop) 728 + #endif 729 + 730 + #ifdef __MigPackStructs 731 + #pragma pack(push, 4) 732 + #endif 733 + typedef struct { 734 + mach_msg_header_t Head; 735 + NDR_record_t NDR; 736 + vm_address_t address; 737 + vm_size_t size; 738 + vm_machine_attribute_t attribute; 739 + vm_machine_attribute_val_t value; 740 + } __Request__vm_machine_attribute_t __attribute__((unused)); 741 + #ifdef __MigPackStructs 742 + #pragma pack(pop) 743 + #endif 744 + 745 + #ifdef __MigPackStructs 746 + #pragma pack(push, 4) 747 + #endif 748 + typedef struct { 749 + mach_msg_header_t Head; 750 + /* start of the kernel processed data */ 751 + mach_msg_body_t msgh_body; 752 + mach_msg_port_descriptor_t src_task; 753 + /* end of the kernel processed data */ 754 + NDR_record_t NDR; 755 + vm_address_t target_address; 756 + vm_size_t size; 757 + vm_address_t mask; 758 + int flags; 759 + vm_address_t src_address; 760 + boolean_t copy; 761 + vm_inherit_t inheritance; 762 + } __Request__vm_remap_t __attribute__((unused)); 763 + #ifdef __MigPackStructs 764 + #pragma pack(pop) 765 + #endif 766 + 767 + #ifdef __MigPackStructs 768 + #pragma pack(push, 4) 769 + #endif 770 + typedef struct { 771 + mach_msg_header_t Head; 772 + NDR_record_t NDR; 773 + boolean_t must_wire; 774 + } __Request__task_wire_t __attribute__((unused)); 775 + #ifdef __MigPackStructs 776 + #pragma pack(pop) 777 + #endif 778 + 779 + #ifdef __MigPackStructs 780 + #pragma pack(push, 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 parent_entry; 787 + /* end of the kernel processed data */ 788 + NDR_record_t NDR; 789 + vm_size_t size; 790 + vm_offset_t offset; 791 + vm_prot_t permission; 792 + } __Request__mach_make_memory_entry_t __attribute__((unused)); 793 + #ifdef __MigPackStructs 794 + #pragma pack(pop) 795 + #endif 796 + 797 + #ifdef __MigPackStructs 798 + #pragma pack(push, 4) 799 + #endif 800 + typedef struct { 801 + mach_msg_header_t Head; 802 + NDR_record_t NDR; 803 + vm_offset_t offset; 804 + } __Request__vm_map_page_query_t __attribute__((unused)); 805 + #ifdef __MigPackStructs 806 + #pragma pack(pop) 807 + #endif 808 + 809 + #ifdef __MigPackStructs 810 + #pragma pack(push, 4) 811 + #endif 812 + typedef struct { 813 + mach_msg_header_t Head; 814 + NDR_record_t NDR; 815 + vm_address_t address; 816 + } __Request__mach_vm_region_info_t __attribute__((unused)); 817 + #ifdef __MigPackStructs 818 + #pragma pack(pop) 819 + #endif 820 + 821 + #ifdef __MigPackStructs 822 + #pragma pack(push, 4) 823 + #endif 824 + typedef struct { 825 + mach_msg_header_t Head; 826 + } __Request__vm_mapped_pages_info_t __attribute__((unused)); 827 + #ifdef __MigPackStructs 828 + #pragma pack(pop) 829 + #endif 830 + 831 + #ifdef __MigPackStructs 832 + #pragma pack(push, 4) 833 + #endif 834 + typedef struct { 835 + mach_msg_header_t Head; 836 + NDR_record_t NDR; 837 + vm_address_t address; 838 + natural_t nesting_depth; 839 + mach_msg_type_number_t infoCnt; 840 + } __Request__vm_region_recurse_t __attribute__((unused)); 841 + #ifdef __MigPackStructs 842 + #pragma pack(pop) 843 + #endif 844 + 845 + #ifdef __MigPackStructs 846 + #pragma pack(push, 4) 847 + #endif 848 + typedef struct { 849 + mach_msg_header_t Head; 850 + NDR_record_t NDR; 851 + vm_address_t address; 852 + natural_t nesting_depth; 853 + mach_msg_type_number_t infoCnt; 854 + } __Request__vm_region_recurse_64_t __attribute__((unused)); 855 + #ifdef __MigPackStructs 856 + #pragma pack(pop) 857 + #endif 858 + 859 + #ifdef __MigPackStructs 860 + #pragma pack(push, 4) 861 + #endif 862 + typedef struct { 863 + mach_msg_header_t Head; 864 + NDR_record_t NDR; 865 + vm_address_t address; 866 + } __Request__mach_vm_region_info_64_t __attribute__((unused)); 867 + #ifdef __MigPackStructs 868 + #pragma pack(pop) 869 + #endif 870 + 871 + #ifdef __MigPackStructs 872 + #pragma pack(push, 4) 873 + #endif 874 + typedef struct { 875 + mach_msg_header_t Head; 876 + NDR_record_t NDR; 877 + vm_address_t address; 878 + vm_region_flavor_t flavor; 879 + mach_msg_type_number_t infoCnt; 880 + } __Request__vm_region_64_t __attribute__((unused)); 881 + #ifdef __MigPackStructs 882 + #pragma pack(pop) 883 + #endif 884 + 885 + #ifdef __MigPackStructs 886 + #pragma pack(push, 4) 887 + #endif 888 + typedef struct { 889 + mach_msg_header_t Head; 890 + /* start of the kernel processed data */ 891 + mach_msg_body_t msgh_body; 892 + mach_msg_port_descriptor_t parent_entry; 893 + /* end of the kernel processed data */ 894 + NDR_record_t NDR; 895 + memory_object_size_t size; 896 + memory_object_offset_t offset; 897 + vm_prot_t permission; 898 + } __Request__mach_make_memory_entry_64_t __attribute__((unused)); 899 + #ifdef __MigPackStructs 900 + #pragma pack(pop) 901 + #endif 902 + 903 + #ifdef __MigPackStructs 904 + #pragma pack(push, 4) 905 + #endif 906 + typedef struct { 907 + mach_msg_header_t Head; 908 + /* start of the kernel processed data */ 909 + mach_msg_body_t msgh_body; 910 + mach_msg_port_descriptor_t object; 911 + /* end of the kernel processed data */ 912 + NDR_record_t NDR; 913 + vm_address_t address; 914 + vm_size_t size; 915 + vm_address_t mask; 916 + int flags; 917 + memory_object_offset_t offset; 918 + boolean_t copy; 919 + vm_prot_t cur_protection; 920 + vm_prot_t max_protection; 921 + vm_inherit_t inheritance; 922 + } __Request__vm_map_64_t __attribute__((unused)); 923 + #ifdef __MigPackStructs 924 + #pragma pack(pop) 925 + #endif 926 + 927 + #ifdef __MigPackStructs 928 + #pragma pack(push, 4) 929 + #endif 930 + typedef struct { 931 + mach_msg_header_t Head; 932 + NDR_record_t NDR; 933 + vm_address_t address; 934 + vm_purgable_t control; 935 + int state; 936 + } __Request__vm_purgable_control_t __attribute__((unused)); 937 + #ifdef __MigPackStructs 938 + #pragma pack(pop) 939 + #endif 940 + 941 + #ifdef __MigPackStructs 942 + #pragma pack(push, 4) 943 + #endif 944 + typedef struct { 945 + mach_msg_header_t Head; 946 + } __Request__vm_map_exec_lockdown_t __attribute__((unused)); 947 + #ifdef __MigPackStructs 948 + #pragma pack(pop) 949 + #endif 950 + #endif /* !__Request__vm_map_subsystem__defined */ 951 + 952 + /* union of all requests */ 953 + 954 + #ifndef __RequestUnion__vm_map_subsystem__defined 955 + #define __RequestUnion__vm_map_subsystem__defined 956 + union __RequestUnion__vm_map_subsystem { 957 + __Request__vm_region_t Request_vm_region; 958 + __Request__vm_allocate_t Request_vm_allocate; 959 + __Request__vm_deallocate_t Request_vm_deallocate; 960 + __Request__vm_protect_t Request_vm_protect; 961 + __Request__vm_inherit_t Request_vm_inherit; 962 + __Request__vm_read_t Request_vm_read; 963 + __Request__vm_read_list_t Request_vm_read_list; 964 + __Request__vm_write_t Request_vm_write; 965 + __Request__vm_copy_t Request_vm_copy; 966 + __Request__vm_read_overwrite_t Request_vm_read_overwrite; 967 + __Request__vm_msync_t Request_vm_msync; 968 + __Request__vm_behavior_set_t Request_vm_behavior_set; 969 + __Request__vm_map_t Request_vm_map; 970 + __Request__vm_machine_attribute_t Request_vm_machine_attribute; 971 + __Request__vm_remap_t Request_vm_remap; 972 + __Request__task_wire_t Request_task_wire; 973 + __Request__mach_make_memory_entry_t Request_mach_make_memory_entry; 974 + __Request__vm_map_page_query_t Request_vm_map_page_query; 975 + __Request__mach_vm_region_info_t Request_mach_vm_region_info; 976 + __Request__vm_mapped_pages_info_t Request_vm_mapped_pages_info; 977 + __Request__vm_region_recurse_t Request_vm_region_recurse; 978 + __Request__vm_region_recurse_64_t Request_vm_region_recurse_64; 979 + __Request__mach_vm_region_info_64_t Request_mach_vm_region_info_64; 980 + __Request__vm_region_64_t Request_vm_region_64; 981 + __Request__mach_make_memory_entry_64_t Request_mach_make_memory_entry_64; 982 + __Request__vm_map_64_t Request_vm_map_64; 983 + __Request__vm_purgable_control_t Request_vm_purgable_control; 984 + __Request__vm_map_exec_lockdown_t Request_vm_map_exec_lockdown; 985 + }; 986 + #endif /* !__RequestUnion__vm_map_subsystem__defined */ 987 + /* typedefs for all replies */ 988 + 989 + #ifndef __Reply__vm_map_subsystem__defined 990 + #define __Reply__vm_map_subsystem__defined 991 + 992 + #ifdef __MigPackStructs 993 + #pragma pack(push, 4) 994 + #endif 995 + typedef struct { 996 + mach_msg_header_t Head; 997 + /* start of the kernel processed data */ 998 + mach_msg_body_t msgh_body; 999 + mach_msg_port_descriptor_t object_name; 1000 + /* end of the kernel processed data */ 1001 + NDR_record_t NDR; 1002 + vm_address_t address; 1003 + vm_size_t size; 1004 + mach_msg_type_number_t infoCnt; 1005 + int info[10]; 1006 + } __Reply__vm_region_t __attribute__((unused)); 1007 + #ifdef __MigPackStructs 1008 + #pragma pack(pop) 1009 + #endif 1010 + 1011 + #ifdef __MigPackStructs 1012 + #pragma pack(push, 4) 1013 + #endif 1014 + typedef struct { 1015 + mach_msg_header_t Head; 1016 + NDR_record_t NDR; 1017 + kern_return_t RetCode; 1018 + vm_address_t address; 1019 + } __Reply__vm_allocate_t __attribute__((unused)); 1020 + #ifdef __MigPackStructs 1021 + #pragma pack(pop) 1022 + #endif 1023 + 1024 + #ifdef __MigPackStructs 1025 + #pragma pack(push, 4) 1026 + #endif 1027 + typedef struct { 1028 + mach_msg_header_t Head; 1029 + NDR_record_t NDR; 1030 + kern_return_t RetCode; 1031 + } __Reply__vm_deallocate_t __attribute__((unused)); 1032 + #ifdef __MigPackStructs 1033 + #pragma pack(pop) 1034 + #endif 1035 + 1036 + #ifdef __MigPackStructs 1037 + #pragma pack(push, 4) 1038 + #endif 1039 + typedef struct { 1040 + mach_msg_header_t Head; 1041 + NDR_record_t NDR; 1042 + kern_return_t RetCode; 1043 + } __Reply__vm_protect_t __attribute__((unused)); 1044 + #ifdef __MigPackStructs 1045 + #pragma pack(pop) 1046 + #endif 1047 + 1048 + #ifdef __MigPackStructs 1049 + #pragma pack(push, 4) 1050 + #endif 1051 + typedef struct { 1052 + mach_msg_header_t Head; 1053 + NDR_record_t NDR; 1054 + kern_return_t RetCode; 1055 + } __Reply__vm_inherit_t __attribute__((unused)); 1056 + #ifdef __MigPackStructs 1057 + #pragma pack(pop) 1058 + #endif 1059 + 1060 + #ifdef __MigPackStructs 1061 + #pragma pack(push, 4) 1062 + #endif 1063 + typedef struct { 1064 + mach_msg_header_t Head; 1065 + /* start of the kernel processed data */ 1066 + mach_msg_body_t msgh_body; 1067 + mach_msg_ool_descriptor_t data; 1068 + /* end of the kernel processed data */ 1069 + NDR_record_t NDR; 1070 + mach_msg_type_number_t dataCnt; 1071 + } __Reply__vm_read_t __attribute__((unused)); 1072 + #ifdef __MigPackStructs 1073 + #pragma pack(pop) 1074 + #endif 1075 + 1076 + #ifdef __MigPackStructs 1077 + #pragma pack(push, 4) 1078 + #endif 1079 + typedef struct { 1080 + mach_msg_header_t Head; 1081 + NDR_record_t NDR; 1082 + kern_return_t RetCode; 1083 + vm_read_entry_t data_list; 1084 + } __Reply__vm_read_list_t __attribute__((unused)); 1085 + #ifdef __MigPackStructs 1086 + #pragma pack(pop) 1087 + #endif 1088 + 1089 + #ifdef __MigPackStructs 1090 + #pragma pack(push, 4) 1091 + #endif 1092 + typedef struct { 1093 + mach_msg_header_t Head; 1094 + NDR_record_t NDR; 1095 + kern_return_t RetCode; 1096 + } __Reply__vm_write_t __attribute__((unused)); 1097 + #ifdef __MigPackStructs 1098 + #pragma pack(pop) 1099 + #endif 1100 + 1101 + #ifdef __MigPackStructs 1102 + #pragma pack(push, 4) 1103 + #endif 1104 + typedef struct { 1105 + mach_msg_header_t Head; 1106 + NDR_record_t NDR; 1107 + kern_return_t RetCode; 1108 + } __Reply__vm_copy_t __attribute__((unused)); 1109 + #ifdef __MigPackStructs 1110 + #pragma pack(pop) 1111 + #endif 1112 + 1113 + #ifdef __MigPackStructs 1114 + #pragma pack(push, 4) 1115 + #endif 1116 + typedef struct { 1117 + mach_msg_header_t Head; 1118 + NDR_record_t NDR; 1119 + kern_return_t RetCode; 1120 + vm_size_t outsize; 1121 + } __Reply__vm_read_overwrite_t __attribute__((unused)); 1122 + #ifdef __MigPackStructs 1123 + #pragma pack(pop) 1124 + #endif 1125 + 1126 + #ifdef __MigPackStructs 1127 + #pragma pack(push, 4) 1128 + #endif 1129 + typedef struct { 1130 + mach_msg_header_t Head; 1131 + NDR_record_t NDR; 1132 + kern_return_t RetCode; 1133 + } __Reply__vm_msync_t __attribute__((unused)); 1134 + #ifdef __MigPackStructs 1135 + #pragma pack(pop) 1136 + #endif 1137 + 1138 + #ifdef __MigPackStructs 1139 + #pragma pack(push, 4) 1140 + #endif 1141 + typedef struct { 1142 + mach_msg_header_t Head; 1143 + NDR_record_t NDR; 1144 + kern_return_t RetCode; 1145 + } __Reply__vm_behavior_set_t __attribute__((unused)); 1146 + #ifdef __MigPackStructs 1147 + #pragma pack(pop) 1148 + #endif 1149 + 1150 + #ifdef __MigPackStructs 1151 + #pragma pack(push, 4) 1152 + #endif 1153 + typedef struct { 1154 + mach_msg_header_t Head; 1155 + NDR_record_t NDR; 1156 + kern_return_t RetCode; 1157 + vm_address_t address; 1158 + } __Reply__vm_map_t __attribute__((unused)); 1159 + #ifdef __MigPackStructs 1160 + #pragma pack(pop) 1161 + #endif 1162 + 1163 + #ifdef __MigPackStructs 1164 + #pragma pack(push, 4) 1165 + #endif 1166 + typedef struct { 1167 + mach_msg_header_t Head; 1168 + NDR_record_t NDR; 1169 + kern_return_t RetCode; 1170 + vm_machine_attribute_val_t value; 1171 + } __Reply__vm_machine_attribute_t __attribute__((unused)); 1172 + #ifdef __MigPackStructs 1173 + #pragma pack(pop) 1174 + #endif 1175 + 1176 + #ifdef __MigPackStructs 1177 + #pragma pack(push, 4) 1178 + #endif 1179 + typedef struct { 1180 + mach_msg_header_t Head; 1181 + NDR_record_t NDR; 1182 + kern_return_t RetCode; 1183 + vm_address_t target_address; 1184 + vm_prot_t cur_protection; 1185 + vm_prot_t max_protection; 1186 + } __Reply__vm_remap_t __attribute__((unused)); 1187 + #ifdef __MigPackStructs 1188 + #pragma pack(pop) 1189 + #endif 1190 + 1191 + #ifdef __MigPackStructs 1192 + #pragma pack(push, 4) 1193 + #endif 1194 + typedef struct { 1195 + mach_msg_header_t Head; 1196 + NDR_record_t NDR; 1197 + kern_return_t RetCode; 1198 + } __Reply__task_wire_t __attribute__((unused)); 1199 + #ifdef __MigPackStructs 1200 + #pragma pack(pop) 1201 + #endif 1202 + 1203 + #ifdef __MigPackStructs 1204 + #pragma pack(push, 4) 1205 + #endif 1206 + typedef struct { 1207 + mach_msg_header_t Head; 1208 + /* start of the kernel processed data */ 1209 + mach_msg_body_t msgh_body; 1210 + mach_msg_port_descriptor_t object_handle; 1211 + /* end of the kernel processed data */ 1212 + NDR_record_t NDR; 1213 + vm_size_t size; 1214 + } __Reply__mach_make_memory_entry_t __attribute__((unused)); 1215 + #ifdef __MigPackStructs 1216 + #pragma pack(pop) 1217 + #endif 1218 + 1219 + #ifdef __MigPackStructs 1220 + #pragma pack(push, 4) 1221 + #endif 1222 + typedef struct { 1223 + mach_msg_header_t Head; 1224 + NDR_record_t NDR; 1225 + kern_return_t RetCode; 1226 + integer_t disposition; 1227 + integer_t ref_count; 1228 + } __Reply__vm_map_page_query_t __attribute__((unused)); 1229 + #ifdef __MigPackStructs 1230 + #pragma pack(pop) 1231 + #endif 1232 + 1233 + #ifdef __MigPackStructs 1234 + #pragma pack(push, 4) 1235 + #endif 1236 + typedef struct { 1237 + mach_msg_header_t Head; 1238 + /* start of the kernel processed data */ 1239 + mach_msg_body_t msgh_body; 1240 + mach_msg_ool_descriptor_t objects; 1241 + /* end of the kernel processed data */ 1242 + NDR_record_t NDR; 1243 + vm_info_region_t region; 1244 + mach_msg_type_number_t objectsCnt; 1245 + } __Reply__mach_vm_region_info_t __attribute__((unused)); 1246 + #ifdef __MigPackStructs 1247 + #pragma pack(pop) 1248 + #endif 1249 + 1250 + #ifdef __MigPackStructs 1251 + #pragma pack(push, 4) 1252 + #endif 1253 + typedef struct { 1254 + mach_msg_header_t Head; 1255 + /* start of the kernel processed data */ 1256 + mach_msg_body_t msgh_body; 1257 + mach_msg_ool_descriptor_t pages; 1258 + /* end of the kernel processed data */ 1259 + NDR_record_t NDR; 1260 + mach_msg_type_number_t pagesCnt; 1261 + } __Reply__vm_mapped_pages_info_t __attribute__((unused)); 1262 + #ifdef __MigPackStructs 1263 + #pragma pack(pop) 1264 + #endif 1265 + 1266 + #ifdef __MigPackStructs 1267 + #pragma pack(push, 4) 1268 + #endif 1269 + typedef struct { 1270 + mach_msg_header_t Head; 1271 + NDR_record_t NDR; 1272 + kern_return_t RetCode; 1273 + vm_address_t address; 1274 + vm_size_t size; 1275 + natural_t nesting_depth; 1276 + mach_msg_type_number_t infoCnt; 1277 + int info[19]; 1278 + } __Reply__vm_region_recurse_t __attribute__((unused)); 1279 + #ifdef __MigPackStructs 1280 + #pragma pack(pop) 1281 + #endif 1282 + 1283 + #ifdef __MigPackStructs 1284 + #pragma pack(push, 4) 1285 + #endif 1286 + typedef struct { 1287 + mach_msg_header_t Head; 1288 + NDR_record_t NDR; 1289 + kern_return_t RetCode; 1290 + vm_address_t address; 1291 + vm_size_t size; 1292 + natural_t nesting_depth; 1293 + mach_msg_type_number_t infoCnt; 1294 + int info[19]; 1295 + } __Reply__vm_region_recurse_64_t __attribute__((unused)); 1296 + #ifdef __MigPackStructs 1297 + #pragma pack(pop) 1298 + #endif 1299 + 1300 + #ifdef __MigPackStructs 1301 + #pragma pack(push, 4) 1302 + #endif 1303 + typedef struct { 1304 + mach_msg_header_t Head; 1305 + /* start of the kernel processed data */ 1306 + mach_msg_body_t msgh_body; 1307 + mach_msg_ool_descriptor_t objects; 1308 + /* end of the kernel processed data */ 1309 + NDR_record_t NDR; 1310 + vm_info_region_64_t region; 1311 + mach_msg_type_number_t objectsCnt; 1312 + } __Reply__mach_vm_region_info_64_t __attribute__((unused)); 1313 + #ifdef __MigPackStructs 1314 + #pragma pack(pop) 1315 + #endif 1316 + 1317 + #ifdef __MigPackStructs 1318 + #pragma pack(push, 4) 1319 + #endif 1320 + typedef struct { 1321 + mach_msg_header_t Head; 1322 + /* start of the kernel processed data */ 1323 + mach_msg_body_t msgh_body; 1324 + mach_msg_port_descriptor_t object_name; 1325 + /* end of the kernel processed data */ 1326 + NDR_record_t NDR; 1327 + vm_address_t address; 1328 + vm_size_t size; 1329 + mach_msg_type_number_t infoCnt; 1330 + int info[10]; 1331 + } __Reply__vm_region_64_t __attribute__((unused)); 1332 + #ifdef __MigPackStructs 1333 + #pragma pack(pop) 1334 + #endif 1335 + 1336 + #ifdef __MigPackStructs 1337 + #pragma pack(push, 4) 1338 + #endif 1339 + typedef struct { 1340 + mach_msg_header_t Head; 1341 + /* start of the kernel processed data */ 1342 + mach_msg_body_t msgh_body; 1343 + mach_msg_port_descriptor_t object_handle; 1344 + /* end of the kernel processed data */ 1345 + NDR_record_t NDR; 1346 + memory_object_size_t size; 1347 + } __Reply__mach_make_memory_entry_64_t __attribute__((unused)); 1348 + #ifdef __MigPackStructs 1349 + #pragma pack(pop) 1350 + #endif 1351 + 1352 + #ifdef __MigPackStructs 1353 + #pragma pack(push, 4) 1354 + #endif 1355 + typedef struct { 1356 + mach_msg_header_t Head; 1357 + NDR_record_t NDR; 1358 + kern_return_t RetCode; 1359 + vm_address_t address; 1360 + } __Reply__vm_map_64_t __attribute__((unused)); 1361 + #ifdef __MigPackStructs 1362 + #pragma pack(pop) 1363 + #endif 1364 + 1365 + #ifdef __MigPackStructs 1366 + #pragma pack(push, 4) 1367 + #endif 1368 + typedef struct { 1369 + mach_msg_header_t Head; 1370 + NDR_record_t NDR; 1371 + kern_return_t RetCode; 1372 + int state; 1373 + } __Reply__vm_purgable_control_t __attribute__((unused)); 1374 + #ifdef __MigPackStructs 1375 + #pragma pack(pop) 1376 + #endif 1377 + 1378 + #ifdef __MigPackStructs 1379 + #pragma pack(push, 4) 1380 + #endif 1381 + typedef struct { 1382 + mach_msg_header_t Head; 1383 + NDR_record_t NDR; 1384 + kern_return_t RetCode; 1385 + } __Reply__vm_map_exec_lockdown_t __attribute__((unused)); 1386 + #ifdef __MigPackStructs 1387 + #pragma pack(pop) 1388 + #endif 1389 + #endif /* !__Reply__vm_map_subsystem__defined */ 1390 + 1391 + /* union of all replies */ 1392 + 1393 + #ifndef __ReplyUnion__vm_map_subsystem__defined 1394 + #define __ReplyUnion__vm_map_subsystem__defined 1395 + union __ReplyUnion__vm_map_subsystem { 1396 + __Reply__vm_region_t Reply_vm_region; 1397 + __Reply__vm_allocate_t Reply_vm_allocate; 1398 + __Reply__vm_deallocate_t Reply_vm_deallocate; 1399 + __Reply__vm_protect_t Reply_vm_protect; 1400 + __Reply__vm_inherit_t Reply_vm_inherit; 1401 + __Reply__vm_read_t Reply_vm_read; 1402 + __Reply__vm_read_list_t Reply_vm_read_list; 1403 + __Reply__vm_write_t Reply_vm_write; 1404 + __Reply__vm_copy_t Reply_vm_copy; 1405 + __Reply__vm_read_overwrite_t Reply_vm_read_overwrite; 1406 + __Reply__vm_msync_t Reply_vm_msync; 1407 + __Reply__vm_behavior_set_t Reply_vm_behavior_set; 1408 + __Reply__vm_map_t Reply_vm_map; 1409 + __Reply__vm_machine_attribute_t Reply_vm_machine_attribute; 1410 + __Reply__vm_remap_t Reply_vm_remap; 1411 + __Reply__task_wire_t Reply_task_wire; 1412 + __Reply__mach_make_memory_entry_t Reply_mach_make_memory_entry; 1413 + __Reply__vm_map_page_query_t Reply_vm_map_page_query; 1414 + __Reply__mach_vm_region_info_t Reply_mach_vm_region_info; 1415 + __Reply__vm_mapped_pages_info_t Reply_vm_mapped_pages_info; 1416 + __Reply__vm_region_recurse_t Reply_vm_region_recurse; 1417 + __Reply__vm_region_recurse_64_t Reply_vm_region_recurse_64; 1418 + __Reply__mach_vm_region_info_64_t Reply_mach_vm_region_info_64; 1419 + __Reply__vm_region_64_t Reply_vm_region_64; 1420 + __Reply__mach_make_memory_entry_64_t Reply_mach_make_memory_entry_64; 1421 + __Reply__vm_map_64_t Reply_vm_map_64; 1422 + __Reply__vm_purgable_control_t Reply_vm_purgable_control; 1423 + __Reply__vm_map_exec_lockdown_t Reply_vm_map_exec_lockdown; 1424 + }; 1425 + #endif /* !__RequestUnion__vm_map_subsystem__defined */ 1426 + 1427 + #ifndef subsystem_to_name_map_vm_map 1428 + #define subsystem_to_name_map_vm_map \ 1429 + { "vm_region", 3800 },\ 1430 + { "vm_allocate", 3801 },\ 1431 + { "vm_deallocate", 3802 },\ 1432 + { "vm_protect", 3803 },\ 1433 + { "vm_inherit", 3804 },\ 1434 + { "vm_read", 3805 },\ 1435 + { "vm_read_list", 3806 },\ 1436 + { "vm_write", 3807 },\ 1437 + { "vm_copy", 3808 },\ 1438 + { "vm_read_overwrite", 3809 },\ 1439 + { "vm_msync", 3810 },\ 1440 + { "vm_behavior_set", 3811 },\ 1441 + { "vm_map", 3812 },\ 1442 + { "vm_machine_attribute", 3813 },\ 1443 + { "vm_remap", 3814 },\ 1444 + { "task_wire", 3815 },\ 1445 + { "mach_make_memory_entry", 3816 },\ 1446 + { "vm_map_page_query", 3817 },\ 1447 + { "mach_vm_region_info", 3818 },\ 1448 + { "vm_mapped_pages_info", 3819 },\ 1449 + { "vm_region_recurse", 3821 },\ 1450 + { "vm_region_recurse_64", 3822 },\ 1451 + { "mach_vm_region_info_64", 3823 },\ 1452 + { "vm_region_64", 3824 },\ 1453 + { "mach_make_memory_entry_64", 3825 },\ 1454 + { "vm_map_64", 3826 },\ 1455 + { "vm_purgable_control", 3830 },\ 1456 + { "vm_map_exec_lockdown", 3831 } 1457 + #endif 1458 + 1459 + #ifdef __AfterMigUserHeader 1460 + __AfterMigUserHeader 1461 + #endif /* __AfterMigUserHeader */ 1462 + 1463 + #endif /* _vm_map_user_ */