OVR_mach_exc_OSX.c 153 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961
  1. /* This file was generated by the MIG utility with:
  2. mig /usr/include/mach/mach_exc.defs
  3. We pre-generate them instead of generate them at compile-time because we
  4. need to rename some of the functions to append _OVR so we don't get conflicts
  5. with any other versions of these functions the application may have.
  6. */
  7. /* Begin mach_excUser.c */
  8. #if defined(__APPLE__)
  9. #define __MIG_check__Reply__mach_exc_subsystem__ 1
  10. #define __NDR_convert__Reply__mach_exc_subsystem__ 1
  11. #define __NDR_convert__mig_reply_error_subsystem__ 1
  12. #include "OVR_mach_exc_OSX.h"
  13. #if defined(__cplusplus)
  14. extern "C" {
  15. #endif
  16. #ifndef mig_internal
  17. #define mig_internal static __inline__
  18. #endif /* mig_internal */
  19. #ifndef mig_external
  20. #define mig_external
  21. #endif /* mig_external */
  22. #if !defined(__MigTypeCheck) && defined(TypeCheck)
  23. #define __MigTypeCheck TypeCheck /* Legacy setting */
  24. #endif /* !defined(__MigTypeCheck) */
  25. #if !defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_)
  26. #define __MigKernelSpecificCode _MIG_KERNEL_SPECIFIC_CODE_ /* Legacy setting */
  27. #endif /* !defined(__MigKernelSpecificCode) */
  28. #ifndef LimitCheck
  29. #define LimitCheck 0
  30. #endif /* LimitCheck */
  31. #ifndef min
  32. #define min(a,b) ( ((a) < (b))? (a): (b) )
  33. #endif /* min */
  34. #if !defined(_WALIGN_)
  35. #define _WALIGN_(x) (((x) + 3) & ~3)
  36. #endif /* !defined(_WALIGN_) */
  37. #if !defined(_WALIGNSZ_)
  38. #define _WALIGNSZ_(x) _WALIGN_(sizeof(x))
  39. #endif /* !defined(_WALIGNSZ_) */
  40. #ifndef UseStaticTemplates
  41. #define UseStaticTemplates 0
  42. #endif /* UseStaticTemplates */
  43. #ifndef __MachMsgErrorWithTimeout
  44. #define __MachMsgErrorWithTimeout(_R_) { \
  45. switch (_R_) { \
  46. case MACH_SEND_INVALID_DATA: \
  47. case MACH_SEND_INVALID_DEST: \
  48. case MACH_SEND_INVALID_HEADER: \
  49. mig_put_reply_port(InP->Head.msgh_reply_port); \
  50. break; \
  51. case MACH_SEND_TIMED_OUT: \
  52. case MACH_RCV_TIMED_OUT: \
  53. default: \
  54. mig_dealloc_reply_port(InP->Head.msgh_reply_port); \
  55. } \
  56. }
  57. #endif /* __MachMsgErrorWithTimeout */
  58. #ifndef __MachMsgErrorWithoutTimeout
  59. #define __MachMsgErrorWithoutTimeout(_R_) { \
  60. switch (_R_) { \
  61. case MACH_SEND_INVALID_DATA: \
  62. case MACH_SEND_INVALID_DEST: \
  63. case MACH_SEND_INVALID_HEADER: \
  64. mig_put_reply_port(InP->Head.msgh_reply_port); \
  65. break; \
  66. default: \
  67. mig_dealloc_reply_port(InP->Head.msgh_reply_port); \
  68. } \
  69. }
  70. #endif /* __MachMsgErrorWithoutTimeout */
  71. #ifndef __DeclareSendRpc
  72. #define __DeclareSendRpc(_NUM_, _NAME_)
  73. #endif /* __DeclareSendRpc */
  74. #ifndef __BeforeSendRpc
  75. #define __BeforeSendRpc(_NUM_, _NAME_)
  76. #endif /* __BeforeSendRpc */
  77. #ifndef __AfterSendRpc
  78. #define __AfterSendRpc(_NUM_, _NAME_)
  79. #endif /* __AfterSendRpc */
  80. #ifndef __DeclareSendSimple
  81. #define __DeclareSendSimple(_NUM_, _NAME_)
  82. #endif /* __DeclareSendSimple */
  83. #ifndef __BeforeSendSimple
  84. #define __BeforeSendSimple(_NUM_, _NAME_)
  85. #endif /* __BeforeSendSimple */
  86. #ifndef __AfterSendSimple
  87. #define __AfterSendSimple(_NUM_, _NAME_)
  88. #endif /* __AfterSendSimple */
  89. #ifndef msgh_request_port
  90. #define msgh_request_port msgh_remote_port
  91. #endif
  92. #ifndef msgh_reply_port
  93. #define msgh_reply_port msgh_local_port
  94. #endif
  95. #if ( __MigTypeCheck || __NDR_convert__ )
  96. #if __MIG_check__Reply__mach_exc_subsystem__
  97. #if !defined(__MIG_check__Reply__mach_exception_raise_t__defined)
  98. #define __MIG_check__Reply__mach_exception_raise_t__defined
  99. #ifndef __NDR_convert__int_rep__Reply__mach_exception_raise_t__RetCode__defined
  100. #if defined(__NDR_convert__int_rep__mach_exc__kern_return_t__defined)
  101. #define __NDR_convert__int_rep__Reply__mach_exception_raise_t__RetCode__defined
  102. #define __NDR_convert__int_rep__Reply__mach_exception_raise_t__RetCode(a, f) \
  103. __NDR_convert__int_rep__mach_exc__kern_return_t((kern_return_t *)(a), f)
  104. #elif defined(__NDR_convert__int_rep__kern_return_t__defined)
  105. #define __NDR_convert__int_rep__Reply__mach_exception_raise_t__RetCode__defined
  106. #define __NDR_convert__int_rep__Reply__mach_exception_raise_t__RetCode(a, f) \
  107. __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
  108. #endif /* defined(__NDR_convert__*__defined) */
  109. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_t__RetCode__defined */
  110. mig_internal kern_return_t __MIG_check__Reply__mach_exception_raise_t_OVR(__Reply__mach_exception_raise_t *Out0P)
  111. {
  112. typedef __Reply__mach_exception_raise_t __Reply;
  113. if (Out0P->Head.msgh_id != 2505) {
  114. if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
  115. { return MIG_SERVER_DIED; }
  116. else
  117. { return MIG_REPLY_MISMATCH; }
  118. }
  119. #if __MigTypeCheck
  120. if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
  121. (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply)))
  122. { return MIG_TYPE_ERROR ; }
  123. #endif /* __MigTypeCheck */
  124. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_t__RetCode__defined)
  125. if (Out0P->NDR.int_rep != NDR_record.int_rep)
  126. __NDR_convert__int_rep__Reply__mach_exception_raise_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
  127. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_t__RetCode__defined */
  128. {
  129. return Out0P->RetCode;
  130. }
  131. }
  132. #endif /* !defined(__MIG_check__Reply__mach_exception_raise_t__defined) */
  133. #endif /* __MIG_check__Reply__mach_exc_subsystem__ */
  134. #endif /* ( __MigTypeCheck || __NDR_convert__ ) */
  135. /* Routine mach_exception_raise_OVR */
  136. mig_external kern_return_t mach_exception_raise_OVR
  137. (
  138. mach_port_t exception_port,
  139. mach_port_t thread,
  140. mach_port_t task,
  141. exception_type_t exception,
  142. mach_exception_data_t code,
  143. mach_msg_type_number_t codeCnt
  144. )
  145. {
  146. #ifdef __MigPackStructs
  147. #pragma pack(4)
  148. #endif
  149. typedef struct {
  150. mach_msg_header_t Head;
  151. /* start of the kernel processed data */
  152. mach_msg_body_t msgh_body;
  153. mach_msg_port_descriptor_t thread;
  154. mach_msg_port_descriptor_t task;
  155. /* end of the kernel processed data */
  156. NDR_record_t NDR;
  157. exception_type_t exception;
  158. mach_msg_type_number_t codeCnt;
  159. int64_t code[2];
  160. } Request;
  161. #ifdef __MigPackStructs
  162. #pragma pack()
  163. #endif
  164. #ifdef __MigPackStructs
  165. #pragma pack(4)
  166. #endif
  167. typedef struct {
  168. mach_msg_header_t Head;
  169. NDR_record_t NDR;
  170. kern_return_t RetCode;
  171. mach_msg_trailer_t trailer;
  172. } Reply;
  173. #ifdef __MigPackStructs
  174. #pragma pack()
  175. #endif
  176. #ifdef __MigPackStructs
  177. #pragma pack(4)
  178. #endif
  179. typedef struct {
  180. mach_msg_header_t Head;
  181. NDR_record_t NDR;
  182. kern_return_t RetCode;
  183. } __Reply;
  184. #ifdef __MigPackStructs
  185. #pragma pack()
  186. #endif
  187. /*
  188. * typedef struct {
  189. * mach_msg_header_t Head;
  190. * NDR_record_t NDR;
  191. * kern_return_t RetCode;
  192. * } mig_reply_error_t;
  193. */
  194. union {
  195. Request In;
  196. Reply Out;
  197. } Mess;
  198. Request *InP = &Mess.In;
  199. Reply *Out0P = &Mess.Out;
  200. mach_msg_return_t msg_result;
  201. unsigned int msgh_size;
  202. #ifdef __MIG_check__Reply__mach_exception_raise_t__defined
  203. kern_return_t check_result;
  204. #endif /* __MIG_check__Reply__mach_exception_raise_t__defined */
  205. __DeclareSendRpc(2405, "mach_exception_raise_OVR")
  206. #if UseStaticTemplates
  207. const static mach_msg_port_descriptor_t threadTemplate = {
  208. /* name = */ MACH_PORT_NULL,
  209. /* pad1 = */ 0,
  210. /* pad2 = */ 0,
  211. /* disp = */ 19,
  212. /* type = */ MACH_MSG_PORT_DESCRIPTOR,
  213. };
  214. #endif /* UseStaticTemplates */
  215. #if UseStaticTemplates
  216. const static mach_msg_port_descriptor_t taskTemplate = {
  217. /* name = */ MACH_PORT_NULL,
  218. /* pad1 = */ 0,
  219. /* pad2 = */ 0,
  220. /* disp = */ 19,
  221. /* type = */ MACH_MSG_PORT_DESCRIPTOR,
  222. };
  223. #endif /* UseStaticTemplates */
  224. InP->msgh_body.msgh_descriptor_count = 2;
  225. #if UseStaticTemplates
  226. InP->thread = threadTemplate;
  227. InP->thread.name = thread;
  228. #else /* UseStaticTemplates */
  229. InP->thread.name = thread;
  230. InP->thread.disposition = 19;
  231. InP->thread.type = MACH_MSG_PORT_DESCRIPTOR;
  232. #endif /* UseStaticTemplates */
  233. #if UseStaticTemplates
  234. InP->task = taskTemplate;
  235. InP->task.name = task;
  236. #else /* UseStaticTemplates */
  237. InP->task.name = task;
  238. InP->task.disposition = 19;
  239. InP->task.type = MACH_MSG_PORT_DESCRIPTOR;
  240. #endif /* UseStaticTemplates */
  241. InP->NDR = NDR_record;
  242. InP->exception = exception;
  243. if (codeCnt > 2) {
  244. { return MIG_ARRAY_TOO_LARGE; }
  245. }
  246. (void)memcpy((char *) InP->code, (const char *) code, 8 * codeCnt);
  247. InP->codeCnt = codeCnt;
  248. msgh_size = (mach_msg_size_t)(sizeof(Request) - 16) + ((8 * codeCnt));
  249. InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
  250. MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
  251. /* msgh_size passed as argument */
  252. InP->Head.msgh_request_port = exception_port;
  253. InP->Head.msgh_reply_port = mig_get_reply_port();
  254. InP->Head.msgh_id = 2405;
  255. __BeforeSendRpc(2405, "mach_exception_raise_OVR")
  256. msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, msgh_size, (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
  257. __AfterSendRpc(2405, "mach_exception_raise_OVR")
  258. if (msg_result != MACH_MSG_SUCCESS) {
  259. __MachMsgErrorWithoutTimeout(msg_result);
  260. { return msg_result; }
  261. }
  262. #if defined(__MIG_check__Reply__mach_exception_raise_t__defined)
  263. check_result = __MIG_check__Reply__mach_exception_raise_t_OVR((__Reply__mach_exception_raise_t *)Out0P);
  264. if (check_result != MACH_MSG_SUCCESS)
  265. { return check_result; }
  266. #endif /* defined(__MIG_check__Reply__mach_exception_raise_t__defined) */
  267. return KERN_SUCCESS;
  268. }
  269. #if ( __MigTypeCheck || __NDR_convert__ )
  270. #if __MIG_check__Reply__mach_exc_subsystem__
  271. #if !defined(__MIG_check__Reply__mach_exception_raise_state_t__defined)
  272. #define __MIG_check__Reply__mach_exception_raise_state_t__defined
  273. #ifndef __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__RetCode__defined
  274. #if defined(__NDR_convert__int_rep__mach_exc__kern_return_t__defined)
  275. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__RetCode__defined
  276. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__RetCode(a, f) \
  277. __NDR_convert__int_rep__mach_exc__kern_return_t((kern_return_t *)(a), f)
  278. #elif defined(__NDR_convert__int_rep__kern_return_t__defined)
  279. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__RetCode__defined
  280. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__RetCode(a, f) \
  281. __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
  282. #endif /* defined(__NDR_convert__*__defined) */
  283. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__RetCode__defined */
  284. #ifndef __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor__defined
  285. #if defined(__NDR_convert__int_rep__mach_exc__int__defined)
  286. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor__defined
  287. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  288. __NDR_convert__int_rep__mach_exc__int((int *)(a), f)
  289. #elif defined(__NDR_convert__int_rep__int__defined)
  290. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor__defined
  291. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  292. __NDR_convert__int_rep__int((int *)(a), f)
  293. #elif defined(__NDR_convert__int_rep__mach_exc__int32_t__defined)
  294. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor__defined
  295. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  296. __NDR_convert__int_rep__mach_exc__int32_t((int32_t *)(a), f)
  297. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  298. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor__defined
  299. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  300. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  301. #endif /* defined(__NDR_convert__*__defined) */
  302. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor__defined */
  303. #ifndef __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined
  304. #if defined(__NDR_convert__int_rep__mach_exc__thread_state_t__defined)
  305. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined
  306. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  307. __NDR_convert__int_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  308. #elif defined(__NDR_convert__int_rep__thread_state_t__defined)
  309. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined
  310. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  311. __NDR_convert__int_rep__thread_state_t((thread_state_t *)(a), f, c)
  312. #elif defined(__NDR_convert__int_rep__mach_exc__natural_t__defined)
  313. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined
  314. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  315. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__natural_t)
  316. #elif defined(__NDR_convert__int_rep__natural_t__defined)
  317. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined
  318. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  319. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__int_rep__natural_t)
  320. #elif defined(__NDR_convert__int_rep__mach_exc__uint32_t__defined)
  321. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined
  322. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  323. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__uint32_t)
  324. #elif defined(__NDR_convert__int_rep__uint32_t__defined)
  325. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined
  326. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  327. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__int_rep__uint32_t)
  328. #endif /* defined(__NDR_convert__*__defined) */
  329. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined */
  330. #ifndef __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_stateCnt__defined
  331. #if defined(__NDR_convert__int_rep__mach_exc__mach_msg_type_number_t__defined)
  332. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_stateCnt__defined
  333. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_stateCnt(a, f) \
  334. __NDR_convert__int_rep__mach_exc__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  335. #elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
  336. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_stateCnt__defined
  337. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_stateCnt(a, f) \
  338. __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  339. #endif /* defined(__NDR_convert__*__defined) */
  340. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_stateCnt__defined */
  341. #ifndef __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor__defined
  342. #if defined(__NDR_convert__char_rep__mach_exc__int__defined)
  343. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor__defined
  344. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  345. __NDR_convert__char_rep__mach_exc__int((int *)(a), f)
  346. #elif defined(__NDR_convert__char_rep__int__defined)
  347. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor__defined
  348. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  349. __NDR_convert__char_rep__int((int *)(a), f)
  350. #elif defined(__NDR_convert__char_rep__mach_exc__int32_t__defined)
  351. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor__defined
  352. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  353. __NDR_convert__char_rep__mach_exc__int32_t((int32_t *)(a), f)
  354. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  355. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor__defined
  356. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  357. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  358. #endif /* defined(__NDR_convert__*__defined) */
  359. #endif /* __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor__defined */
  360. #ifndef __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined
  361. #if defined(__NDR_convert__char_rep__mach_exc__thread_state_t__defined)
  362. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined
  363. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  364. __NDR_convert__char_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  365. #elif defined(__NDR_convert__char_rep__thread_state_t__defined)
  366. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined
  367. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  368. __NDR_convert__char_rep__thread_state_t((thread_state_t *)(a), f, c)
  369. #elif defined(__NDR_convert__char_rep__mach_exc__natural_t__defined)
  370. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined
  371. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  372. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__natural_t)
  373. #elif defined(__NDR_convert__char_rep__natural_t__defined)
  374. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined
  375. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  376. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__char_rep__natural_t)
  377. #elif defined(__NDR_convert__char_rep__mach_exc__uint32_t__defined)
  378. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined
  379. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  380. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__uint32_t)
  381. #elif defined(__NDR_convert__char_rep__uint32_t__defined)
  382. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined
  383. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  384. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__char_rep__uint32_t)
  385. #endif /* defined(__NDR_convert__*__defined) */
  386. #endif /* __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined */
  387. #ifndef __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor__defined
  388. #if defined(__NDR_convert__float_rep__mach_exc__int__defined)
  389. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor__defined
  390. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  391. __NDR_convert__float_rep__mach_exc__int((int *)(a), f)
  392. #elif defined(__NDR_convert__float_rep__int__defined)
  393. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor__defined
  394. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  395. __NDR_convert__float_rep__int((int *)(a), f)
  396. #elif defined(__NDR_convert__float_rep__mach_exc__int32_t__defined)
  397. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor__defined
  398. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  399. __NDR_convert__float_rep__mach_exc__int32_t((int32_t *)(a), f)
  400. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  401. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor__defined
  402. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor(a, f) \
  403. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  404. #endif /* defined(__NDR_convert__*__defined) */
  405. #endif /* __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor__defined */
  406. #ifndef __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined
  407. #if defined(__NDR_convert__float_rep__mach_exc__thread_state_t__defined)
  408. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined
  409. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  410. __NDR_convert__float_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  411. #elif defined(__NDR_convert__float_rep__thread_state_t__defined)
  412. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined
  413. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  414. __NDR_convert__float_rep__thread_state_t((thread_state_t *)(a), f, c)
  415. #elif defined(__NDR_convert__float_rep__mach_exc__natural_t__defined)
  416. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined
  417. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  418. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__natural_t)
  419. #elif defined(__NDR_convert__float_rep__natural_t__defined)
  420. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined
  421. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  422. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__float_rep__natural_t)
  423. #elif defined(__NDR_convert__float_rep__mach_exc__uint32_t__defined)
  424. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined
  425. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  426. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__uint32_t)
  427. #elif defined(__NDR_convert__float_rep__uint32_t__defined)
  428. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined
  429. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state(a, f, c) \
  430. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__float_rep__uint32_t)
  431. #endif /* defined(__NDR_convert__*__defined) */
  432. #endif /* __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined */
  433. mig_internal kern_return_t __MIG_check__Reply__mach_exception_raise_state_t_OVR(__Reply__mach_exception_raise_state_t *Out0P)
  434. {
  435. typedef __Reply__mach_exception_raise_state_t __Reply;
  436. #if __MigTypeCheck
  437. unsigned int msgh_size;
  438. #endif /* __MigTypeCheck */
  439. if (Out0P->Head.msgh_id != 2506) {
  440. if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
  441. { return MIG_SERVER_DIED; }
  442. else
  443. { return MIG_REPLY_MISMATCH; }
  444. }
  445. #if __MigTypeCheck
  446. msgh_size = Out0P->Head.msgh_size;
  447. if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
  448. ((msgh_size > (mach_msg_size_t)sizeof(__Reply) || msgh_size < (mach_msg_size_t)(sizeof(__Reply) - 576)) &&
  449. (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) ||
  450. Out0P->RetCode == KERN_SUCCESS)))
  451. { return MIG_TYPE_ERROR ; }
  452. #endif /* __MigTypeCheck */
  453. if (Out0P->RetCode != KERN_SUCCESS) {
  454. #ifdef __NDR_convert__mig_reply_error_t__defined
  455. __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P);
  456. #endif /* __NDR_convert__mig_reply_error_t__defined */
  457. return ((mig_reply_error_t *)Out0P)->RetCode;
  458. }
  459. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_stateCnt__defined)
  460. if (Out0P->NDR.int_rep != NDR_record.int_rep)
  461. __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_stateCnt(&Out0P->new_stateCnt, Out0P->NDR.int_rep);
  462. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_stateCnt__defined */
  463. #if __MigTypeCheck
  464. if ( Out0P->new_stateCnt > 144 )
  465. return MIG_TYPE_ERROR;
  466. if (((msgh_size - (mach_msg_size_t)(sizeof(__Reply) - 576)) / 4 != Out0P->new_stateCnt) ||
  467. (msgh_size != (mach_msg_size_t)(sizeof(__Reply) - 576) + Out0P->new_stateCnt * 4))
  468. { return MIG_TYPE_ERROR ; }
  469. #endif /* __MigTypeCheck */
  470. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_t__RetCode__defined) || \
  471. defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor__defined) || \
  472. defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined) || \
  473. defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_stateCnt__defined)
  474. if (Out0P->NDR.int_rep != NDR_record.int_rep) {
  475. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_t__RetCode__defined)
  476. __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
  477. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__RetCode__defined */
  478. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor__defined)
  479. __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor(&Out0P->flavor, Out0P->NDR.int_rep);
  480. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__flavor__defined */
  481. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined)
  482. __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state(&Out0P->new_state, Out0P->NDR.int_rep, Out0P->new_stateCnt);
  483. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_t__new_state__defined */
  484. }
  485. #endif /* defined(__NDR_convert__int_rep...) */
  486. #if 0 || \
  487. defined(__NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor__defined) || \
  488. defined(__NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined) || \
  489. 0
  490. if (Out0P->NDR.char_rep != NDR_record.char_rep) {
  491. #if defined(__NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor__defined)
  492. __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor(&Out0P->flavor, Out0P->NDR.char_rep);
  493. #endif /* __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__flavor__defined */
  494. #if defined(__NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined)
  495. __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state(&Out0P->new_state, Out0P->NDR.char_rep, Out0P->new_stateCnt);
  496. #endif /* __NDR_convert__char_rep__Reply__mach_exception_raise_state_t__new_state__defined */
  497. }
  498. #endif /* defined(__NDR_convert__char_rep...) */
  499. #if 0 || \
  500. defined(__NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor__defined) || \
  501. defined(__NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined) || \
  502. 0
  503. if (Out0P->NDR.float_rep != NDR_record.float_rep) {
  504. #if defined(__NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor__defined)
  505. __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor(&Out0P->flavor, Out0P->NDR.float_rep);
  506. #endif /* __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__flavor__defined */
  507. #if defined(__NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined)
  508. __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state(&Out0P->new_state, Out0P->NDR.float_rep, Out0P->new_stateCnt);
  509. #endif /* __NDR_convert__float_rep__Reply__mach_exception_raise_state_t__new_state__defined */
  510. }
  511. #endif /* defined(__NDR_convert__float_rep...) */
  512. return MACH_MSG_SUCCESS;
  513. }
  514. #endif /* !defined(__MIG_check__Reply__mach_exception_raise_state_t__defined) */
  515. #endif /* __MIG_check__Reply__mach_exc_subsystem__ */
  516. #endif /* ( __MigTypeCheck || __NDR_convert__ ) */
  517. /* Routine mach_exception_raise_state_OVR */
  518. mig_external kern_return_t mach_exception_raise_state_OVR
  519. (
  520. mach_port_t exception_port,
  521. exception_type_t exception,
  522. const mach_exception_data_t code,
  523. mach_msg_type_number_t codeCnt,
  524. int *flavor,
  525. const thread_state_t old_state,
  526. mach_msg_type_number_t old_stateCnt,
  527. thread_state_t new_state,
  528. mach_msg_type_number_t *new_stateCnt
  529. )
  530. {
  531. #ifdef __MigPackStructs
  532. #pragma pack(4)
  533. #endif
  534. typedef struct {
  535. mach_msg_header_t Head;
  536. NDR_record_t NDR;
  537. exception_type_t exception;
  538. mach_msg_type_number_t codeCnt;
  539. int64_t code[2];
  540. int flavor;
  541. mach_msg_type_number_t old_stateCnt;
  542. natural_t old_state[144];
  543. } Request;
  544. #ifdef __MigPackStructs
  545. #pragma pack()
  546. #endif
  547. #ifdef __MigPackStructs
  548. #pragma pack(4)
  549. #endif
  550. typedef struct {
  551. mach_msg_header_t Head;
  552. NDR_record_t NDR;
  553. kern_return_t RetCode;
  554. int flavor;
  555. mach_msg_type_number_t new_stateCnt;
  556. natural_t new_state[144];
  557. mach_msg_trailer_t trailer;
  558. } Reply;
  559. #ifdef __MigPackStructs
  560. #pragma pack()
  561. #endif
  562. #ifdef __MigPackStructs
  563. #pragma pack(4)
  564. #endif
  565. typedef struct {
  566. mach_msg_header_t Head;
  567. NDR_record_t NDR;
  568. kern_return_t RetCode;
  569. int flavor;
  570. mach_msg_type_number_t new_stateCnt;
  571. natural_t new_state[144];
  572. } __Reply;
  573. #ifdef __MigPackStructs
  574. #pragma pack()
  575. #endif
  576. /*
  577. * typedef struct {
  578. * mach_msg_header_t Head;
  579. * NDR_record_t NDR;
  580. * kern_return_t RetCode;
  581. * } mig_reply_error_t;
  582. */
  583. union {
  584. Request In;
  585. Reply Out;
  586. } Mess;
  587. Request *InP = &Mess.In;
  588. Reply *Out0P = &Mess.Out;
  589. mach_msg_return_t msg_result;
  590. unsigned int msgh_size;
  591. unsigned int msgh_size_delta;
  592. #ifdef __MIG_check__Reply__mach_exception_raise_state_t__defined
  593. kern_return_t check_result;
  594. #endif /* __MIG_check__Reply__mach_exception_raise_state_t__defined */
  595. __DeclareSendRpc(2406, "mach_exception_raise_state_OVR")
  596. InP->NDR = NDR_record;
  597. InP->exception = exception;
  598. if (codeCnt > 2) {
  599. { return MIG_ARRAY_TOO_LARGE; }
  600. }
  601. (void)memcpy((char *) InP->code, (const char *) code, 8 * codeCnt);
  602. InP->codeCnt = codeCnt;
  603. msgh_size_delta = (8 * codeCnt);
  604. msgh_size = (mach_msg_size_t)(sizeof(Request) - 592) + msgh_size_delta;
  605. InP = (Request *) ((pointer_t) InP + msgh_size_delta - 16);
  606. InP->flavor = *flavor;
  607. if (old_stateCnt > 144) {
  608. { return MIG_ARRAY_TOO_LARGE; }
  609. }
  610. (void)memcpy((char *) InP->old_state, (const char *) old_state, 4 * old_stateCnt);
  611. InP->old_stateCnt = old_stateCnt;
  612. msgh_size += (4 * old_stateCnt);
  613. InP = &Mess.In;
  614. InP->Head.msgh_bits =
  615. MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
  616. /* msgh_size passed as argument */
  617. InP->Head.msgh_request_port = exception_port;
  618. InP->Head.msgh_reply_port = mig_get_reply_port();
  619. InP->Head.msgh_id = 2406;
  620. __BeforeSendRpc(2406, "mach_exception_raise_state_OVR")
  621. msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, msgh_size, (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
  622. __AfterSendRpc(2406, "mach_exception_raise_state_OVR")
  623. if (msg_result != MACH_MSG_SUCCESS) {
  624. __MachMsgErrorWithoutTimeout(msg_result);
  625. { return msg_result; }
  626. }
  627. #if defined(__MIG_check__Reply__mach_exception_raise_state_t__defined)
  628. check_result = __MIG_check__Reply__mach_exception_raise_state_t_OVR((__Reply__mach_exception_raise_state_t *)Out0P);
  629. if (check_result != MACH_MSG_SUCCESS)
  630. { return check_result; }
  631. #endif /* defined(__MIG_check__Reply__mach_exception_raise_state_t__defined) */
  632. *flavor = Out0P->flavor;
  633. if (Out0P->new_stateCnt > 144) {
  634. (void)memcpy((char *) new_state, (const char *) Out0P->new_state, 4 * 144);
  635. *new_stateCnt = Out0P->new_stateCnt;
  636. { return MIG_ARRAY_TOO_LARGE; }
  637. }
  638. (void)memcpy((char *) new_state, (const char *) Out0P->new_state, 4 * Out0P->new_stateCnt);
  639. *new_stateCnt = Out0P->new_stateCnt;
  640. return KERN_SUCCESS;
  641. }
  642. #if ( __MigTypeCheck || __NDR_convert__ )
  643. #if __MIG_check__Reply__mach_exc_subsystem__
  644. #if !defined(__MIG_check__Reply__mach_exception_raise_state_identity_t__defined)
  645. #define __MIG_check__Reply__mach_exception_raise_state_identity_t__defined
  646. #ifndef __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__RetCode__defined
  647. #if defined(__NDR_convert__int_rep__mach_exc__kern_return_t__defined)
  648. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__RetCode__defined
  649. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__RetCode(a, f) \
  650. __NDR_convert__int_rep__mach_exc__kern_return_t((kern_return_t *)(a), f)
  651. #elif defined(__NDR_convert__int_rep__kern_return_t__defined)
  652. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__RetCode__defined
  653. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__RetCode(a, f) \
  654. __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f)
  655. #endif /* defined(__NDR_convert__*__defined) */
  656. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__RetCode__defined */
  657. #ifndef __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  658. #if defined(__NDR_convert__int_rep__mach_exc__int__defined)
  659. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  660. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  661. __NDR_convert__int_rep__mach_exc__int((int *)(a), f)
  662. #elif defined(__NDR_convert__int_rep__int__defined)
  663. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  664. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  665. __NDR_convert__int_rep__int((int *)(a), f)
  666. #elif defined(__NDR_convert__int_rep__mach_exc__int32_t__defined)
  667. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  668. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  669. __NDR_convert__int_rep__mach_exc__int32_t((int32_t *)(a), f)
  670. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  671. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  672. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  673. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  674. #endif /* defined(__NDR_convert__*__defined) */
  675. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined */
  676. #ifndef __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  677. #if defined(__NDR_convert__int_rep__mach_exc__thread_state_t__defined)
  678. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  679. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  680. __NDR_convert__int_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  681. #elif defined(__NDR_convert__int_rep__thread_state_t__defined)
  682. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  683. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  684. __NDR_convert__int_rep__thread_state_t((thread_state_t *)(a), f, c)
  685. #elif defined(__NDR_convert__int_rep__mach_exc__natural_t__defined)
  686. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  687. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  688. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__natural_t)
  689. #elif defined(__NDR_convert__int_rep__natural_t__defined)
  690. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  691. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  692. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__int_rep__natural_t)
  693. #elif defined(__NDR_convert__int_rep__mach_exc__uint32_t__defined)
  694. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  695. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  696. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__uint32_t)
  697. #elif defined(__NDR_convert__int_rep__uint32_t__defined)
  698. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  699. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  700. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__int_rep__uint32_t)
  701. #endif /* defined(__NDR_convert__*__defined) */
  702. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined */
  703. #ifndef __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_stateCnt__defined
  704. #if defined(__NDR_convert__int_rep__mach_exc__mach_msg_type_number_t__defined)
  705. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_stateCnt__defined
  706. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_stateCnt(a, f) \
  707. __NDR_convert__int_rep__mach_exc__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  708. #elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
  709. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_stateCnt__defined
  710. #define __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_stateCnt(a, f) \
  711. __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  712. #endif /* defined(__NDR_convert__*__defined) */
  713. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_stateCnt__defined */
  714. #ifndef __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  715. #if defined(__NDR_convert__char_rep__mach_exc__int__defined)
  716. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  717. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  718. __NDR_convert__char_rep__mach_exc__int((int *)(a), f)
  719. #elif defined(__NDR_convert__char_rep__int__defined)
  720. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  721. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  722. __NDR_convert__char_rep__int((int *)(a), f)
  723. #elif defined(__NDR_convert__char_rep__mach_exc__int32_t__defined)
  724. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  725. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  726. __NDR_convert__char_rep__mach_exc__int32_t((int32_t *)(a), f)
  727. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  728. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  729. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  730. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  731. #endif /* defined(__NDR_convert__*__defined) */
  732. #endif /* __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined */
  733. #ifndef __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  734. #if defined(__NDR_convert__char_rep__mach_exc__thread_state_t__defined)
  735. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  736. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  737. __NDR_convert__char_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  738. #elif defined(__NDR_convert__char_rep__thread_state_t__defined)
  739. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  740. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  741. __NDR_convert__char_rep__thread_state_t((thread_state_t *)(a), f, c)
  742. #elif defined(__NDR_convert__char_rep__mach_exc__natural_t__defined)
  743. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  744. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  745. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__natural_t)
  746. #elif defined(__NDR_convert__char_rep__natural_t__defined)
  747. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  748. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  749. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__char_rep__natural_t)
  750. #elif defined(__NDR_convert__char_rep__mach_exc__uint32_t__defined)
  751. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  752. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  753. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__uint32_t)
  754. #elif defined(__NDR_convert__char_rep__uint32_t__defined)
  755. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  756. #define __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  757. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__char_rep__uint32_t)
  758. #endif /* defined(__NDR_convert__*__defined) */
  759. #endif /* __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined */
  760. #ifndef __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  761. #if defined(__NDR_convert__float_rep__mach_exc__int__defined)
  762. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  763. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  764. __NDR_convert__float_rep__mach_exc__int((int *)(a), f)
  765. #elif defined(__NDR_convert__float_rep__int__defined)
  766. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  767. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  768. __NDR_convert__float_rep__int((int *)(a), f)
  769. #elif defined(__NDR_convert__float_rep__mach_exc__int32_t__defined)
  770. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  771. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  772. __NDR_convert__float_rep__mach_exc__int32_t((int32_t *)(a), f)
  773. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  774. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined
  775. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor(a, f) \
  776. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  777. #endif /* defined(__NDR_convert__*__defined) */
  778. #endif /* __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined */
  779. #ifndef __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  780. #if defined(__NDR_convert__float_rep__mach_exc__thread_state_t__defined)
  781. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  782. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  783. __NDR_convert__float_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  784. #elif defined(__NDR_convert__float_rep__thread_state_t__defined)
  785. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  786. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  787. __NDR_convert__float_rep__thread_state_t((thread_state_t *)(a), f, c)
  788. #elif defined(__NDR_convert__float_rep__mach_exc__natural_t__defined)
  789. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  790. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  791. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__natural_t)
  792. #elif defined(__NDR_convert__float_rep__natural_t__defined)
  793. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  794. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  795. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__float_rep__natural_t)
  796. #elif defined(__NDR_convert__float_rep__mach_exc__uint32_t__defined)
  797. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  798. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  799. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__uint32_t)
  800. #elif defined(__NDR_convert__float_rep__uint32_t__defined)
  801. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined
  802. #define __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state(a, f, c) \
  803. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__float_rep__uint32_t)
  804. #endif /* defined(__NDR_convert__*__defined) */
  805. #endif /* __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined */
  806. mig_internal kern_return_t __MIG_check__Reply__mach_exception_raise_state_identity_t(__Reply__mach_exception_raise_state_identity_t *Out0P)
  807. {
  808. typedef __Reply__mach_exception_raise_state_identity_t __Reply;
  809. #if __MigTypeCheck
  810. unsigned int msgh_size;
  811. #endif /* __MigTypeCheck */
  812. if (Out0P->Head.msgh_id != 2507) {
  813. if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
  814. { return MIG_SERVER_DIED; }
  815. else
  816. { return MIG_REPLY_MISMATCH; }
  817. }
  818. #if __MigTypeCheck
  819. msgh_size = Out0P->Head.msgh_size;
  820. if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
  821. ((msgh_size > (mach_msg_size_t)sizeof(__Reply) || msgh_size < (mach_msg_size_t)(sizeof(__Reply) - 576)) &&
  822. (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) ||
  823. Out0P->RetCode == KERN_SUCCESS)))
  824. { return MIG_TYPE_ERROR ; }
  825. #endif /* __MigTypeCheck */
  826. if (Out0P->RetCode != KERN_SUCCESS) {
  827. #ifdef __NDR_convert__mig_reply_error_t__defined
  828. __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P);
  829. #endif /* __NDR_convert__mig_reply_error_t__defined */
  830. return ((mig_reply_error_t *)Out0P)->RetCode;
  831. }
  832. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_stateCnt__defined)
  833. if (Out0P->NDR.int_rep != NDR_record.int_rep)
  834. __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_stateCnt(&Out0P->new_stateCnt, Out0P->NDR.int_rep);
  835. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_stateCnt__defined */
  836. #if __MigTypeCheck
  837. if ( Out0P->new_stateCnt > 144 )
  838. return MIG_TYPE_ERROR;
  839. if (((msgh_size - (mach_msg_size_t)(sizeof(__Reply) - 576)) / 4 != Out0P->new_stateCnt) ||
  840. (msgh_size != (mach_msg_size_t)(sizeof(__Reply) - 576) + Out0P->new_stateCnt * 4))
  841. { return MIG_TYPE_ERROR ; }
  842. #endif /* __MigTypeCheck */
  843. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__RetCode__defined) || \
  844. defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined) || \
  845. defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined) || \
  846. defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_stateCnt__defined)
  847. if (Out0P->NDR.int_rep != NDR_record.int_rep) {
  848. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__RetCode__defined)
  849. __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep);
  850. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__RetCode__defined */
  851. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined)
  852. __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor(&Out0P->flavor, Out0P->NDR.int_rep);
  853. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined */
  854. #if defined(__NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined)
  855. __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state(&Out0P->new_state, Out0P->NDR.int_rep, Out0P->new_stateCnt);
  856. #endif /* __NDR_convert__int_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined */
  857. }
  858. #endif /* defined(__NDR_convert__int_rep...) */
  859. #if 0 || \
  860. defined(__NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined) || \
  861. defined(__NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined) || \
  862. 0
  863. if (Out0P->NDR.char_rep != NDR_record.char_rep) {
  864. #if defined(__NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined)
  865. __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor(&Out0P->flavor, Out0P->NDR.char_rep);
  866. #endif /* __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined */
  867. #if defined(__NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined)
  868. __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state(&Out0P->new_state, Out0P->NDR.char_rep, Out0P->new_stateCnt);
  869. #endif /* __NDR_convert__char_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined */
  870. }
  871. #endif /* defined(__NDR_convert__char_rep...) */
  872. #if 0 || \
  873. defined(__NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined) || \
  874. defined(__NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined) || \
  875. 0
  876. if (Out0P->NDR.float_rep != NDR_record.float_rep) {
  877. #if defined(__NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined)
  878. __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor(&Out0P->flavor, Out0P->NDR.float_rep);
  879. #endif /* __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__flavor__defined */
  880. #if defined(__NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined)
  881. __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state(&Out0P->new_state, Out0P->NDR.float_rep, Out0P->new_stateCnt);
  882. #endif /* __NDR_convert__float_rep__Reply__mach_exception_raise_state_identity_t__new_state__defined */
  883. }
  884. #endif /* defined(__NDR_convert__float_rep...) */
  885. return MACH_MSG_SUCCESS;
  886. }
  887. #endif /* !defined(__MIG_check__Reply__mach_exception_raise_state_identity_t__defined) */
  888. #endif /* __MIG_check__Reply__mach_exc_subsystem__ */
  889. #endif /* ( __MigTypeCheck || __NDR_convert__ ) */
  890. /* Routine mach_exception_raise_state_identity_OVR */
  891. mig_external kern_return_t mach_exception_raise_state_identity_OVR
  892. (
  893. mach_port_t exception_port,
  894. mach_port_t thread,
  895. mach_port_t task,
  896. exception_type_t exception,
  897. mach_exception_data_t code,
  898. mach_msg_type_number_t codeCnt,
  899. int *flavor,
  900. thread_state_t old_state,
  901. mach_msg_type_number_t old_stateCnt,
  902. thread_state_t new_state,
  903. mach_msg_type_number_t *new_stateCnt
  904. )
  905. {
  906. #ifdef __MigPackStructs
  907. #pragma pack(4)
  908. #endif
  909. typedef struct {
  910. mach_msg_header_t Head;
  911. /* start of the kernel processed data */
  912. mach_msg_body_t msgh_body;
  913. mach_msg_port_descriptor_t thread;
  914. mach_msg_port_descriptor_t task;
  915. /* end of the kernel processed data */
  916. NDR_record_t NDR;
  917. exception_type_t exception;
  918. mach_msg_type_number_t codeCnt;
  919. int64_t code[2];
  920. int flavor;
  921. mach_msg_type_number_t old_stateCnt;
  922. natural_t old_state[144];
  923. } Request;
  924. #ifdef __MigPackStructs
  925. #pragma pack()
  926. #endif
  927. #ifdef __MigPackStructs
  928. #pragma pack(4)
  929. #endif
  930. typedef struct {
  931. mach_msg_header_t Head;
  932. NDR_record_t NDR;
  933. kern_return_t RetCode;
  934. int flavor;
  935. mach_msg_type_number_t new_stateCnt;
  936. natural_t new_state[144];
  937. mach_msg_trailer_t trailer;
  938. } Reply;
  939. #ifdef __MigPackStructs
  940. #pragma pack()
  941. #endif
  942. #ifdef __MigPackStructs
  943. #pragma pack(4)
  944. #endif
  945. typedef struct {
  946. mach_msg_header_t Head;
  947. NDR_record_t NDR;
  948. kern_return_t RetCode;
  949. int flavor;
  950. mach_msg_type_number_t new_stateCnt;
  951. natural_t new_state[144];
  952. } __Reply;
  953. #ifdef __MigPackStructs
  954. #pragma pack()
  955. #endif
  956. /*
  957. * typedef struct {
  958. * mach_msg_header_t Head;
  959. * NDR_record_t NDR;
  960. * kern_return_t RetCode;
  961. * } mig_reply_error_t;
  962. */
  963. union {
  964. Request In;
  965. Reply Out;
  966. } Mess;
  967. Request *InP = &Mess.In;
  968. Reply *Out0P = &Mess.Out;
  969. mach_msg_return_t msg_result;
  970. unsigned int msgh_size;
  971. unsigned int msgh_size_delta;
  972. #ifdef __MIG_check__Reply__mach_exception_raise_state_identity_t__defined
  973. kern_return_t check_result;
  974. #endif /* __MIG_check__Reply__mach_exception_raise_state_identity_t__defined */
  975. __DeclareSendRpc(2407, "mach_exception_raise_state_identity_OVR")
  976. #if UseStaticTemplates
  977. const static mach_msg_port_descriptor_t threadTemplate = {
  978. /* name = */ MACH_PORT_NULL,
  979. /* pad1 = */ 0,
  980. /* pad2 = */ 0,
  981. /* disp = */ 19,
  982. /* type = */ MACH_MSG_PORT_DESCRIPTOR,
  983. };
  984. #endif /* UseStaticTemplates */
  985. #if UseStaticTemplates
  986. const static mach_msg_port_descriptor_t taskTemplate = {
  987. /* name = */ MACH_PORT_NULL,
  988. /* pad1 = */ 0,
  989. /* pad2 = */ 0,
  990. /* disp = */ 19,
  991. /* type = */ MACH_MSG_PORT_DESCRIPTOR,
  992. };
  993. #endif /* UseStaticTemplates */
  994. InP->msgh_body.msgh_descriptor_count = 2;
  995. #if UseStaticTemplates
  996. InP->thread = threadTemplate;
  997. InP->thread.name = thread;
  998. #else /* UseStaticTemplates */
  999. InP->thread.name = thread;
  1000. InP->thread.disposition = 19;
  1001. InP->thread.type = MACH_MSG_PORT_DESCRIPTOR;
  1002. #endif /* UseStaticTemplates */
  1003. #if UseStaticTemplates
  1004. InP->task = taskTemplate;
  1005. InP->task.name = task;
  1006. #else /* UseStaticTemplates */
  1007. InP->task.name = task;
  1008. InP->task.disposition = 19;
  1009. InP->task.type = MACH_MSG_PORT_DESCRIPTOR;
  1010. #endif /* UseStaticTemplates */
  1011. InP->NDR = NDR_record;
  1012. InP->exception = exception;
  1013. if (codeCnt > 2) {
  1014. { return MIG_ARRAY_TOO_LARGE; }
  1015. }
  1016. (void)memcpy((char *) InP->code, (const char *) code, 8 * codeCnt);
  1017. InP->codeCnt = codeCnt;
  1018. msgh_size_delta = (8 * codeCnt);
  1019. msgh_size = (mach_msg_size_t)(sizeof(Request) - 592) + msgh_size_delta;
  1020. InP = (Request *) ((pointer_t) InP + msgh_size_delta - 16);
  1021. InP->flavor = *flavor;
  1022. if (old_stateCnt > 144) {
  1023. { return MIG_ARRAY_TOO_LARGE; }
  1024. }
  1025. (void)memcpy((char *) InP->old_state, (const char *) old_state, 4 * old_stateCnt);
  1026. InP->old_stateCnt = old_stateCnt;
  1027. msgh_size += (4 * old_stateCnt);
  1028. InP = &Mess.In;
  1029. InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
  1030. MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
  1031. /* msgh_size passed as argument */
  1032. InP->Head.msgh_request_port = exception_port;
  1033. InP->Head.msgh_reply_port = mig_get_reply_port();
  1034. InP->Head.msgh_id = 2407;
  1035. __BeforeSendRpc(2407, "mach_exception_raise_state_identity_OVR")
  1036. msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, msgh_size, (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
  1037. __AfterSendRpc(2407, "mach_exception_raise_state_identity_OVR")
  1038. if (msg_result != MACH_MSG_SUCCESS) {
  1039. __MachMsgErrorWithoutTimeout(msg_result);
  1040. { return msg_result; }
  1041. }
  1042. #if defined(__MIG_check__Reply__mach_exception_raise_state_identity_t__defined)
  1043. check_result = __MIG_check__Reply__mach_exception_raise_state_identity_t((__Reply__mach_exception_raise_state_identity_t *)Out0P);
  1044. if (check_result != MACH_MSG_SUCCESS)
  1045. { return check_result; }
  1046. #endif /* defined(__MIG_check__Reply__mach_exception_raise_state_identity_t__defined) */
  1047. *flavor = Out0P->flavor;
  1048. if (Out0P->new_stateCnt > 144) {
  1049. (void)memcpy((char *) new_state, (const char *) Out0P->new_state, 4 * 144);
  1050. *new_stateCnt = Out0P->new_stateCnt;
  1051. { return MIG_ARRAY_TOO_LARGE; }
  1052. }
  1053. (void)memcpy((char *) new_state, (const char *) Out0P->new_state, 4 * Out0P->new_stateCnt);
  1054. *new_stateCnt = Out0P->new_stateCnt;
  1055. return KERN_SUCCESS;
  1056. }
  1057. #if defined(__cplusplus)
  1058. } /* extern "C" */
  1059. #endif
  1060. /* End mach_excUser.c */
  1061. /* Begin mach_excServer.c */
  1062. /* Module mach_exc */
  1063. #define __MIG_check__Request__mach_exc_subsystem__ 1
  1064. #define __NDR_convert__Request__mach_exc_subsystem__ 1
  1065. #include <string.h>
  1066. #include <mach/ndr.h>
  1067. #include <mach/boolean.h>
  1068. #include <mach/kern_return.h>
  1069. #include <mach/notify.h>
  1070. #include <mach/mach_types.h>
  1071. #include <mach/message.h>
  1072. #include <mach/mig_errors.h>
  1073. #include <mach/port.h>
  1074. #include <mach/std_types.h>
  1075. #include <mach/mig.h>
  1076. #include <mach/mig.h>
  1077. #include <mach/mach_types.h>
  1078. #if defined(__cplusplus)
  1079. extern "C" {
  1080. #endif
  1081. #ifndef mig_internal
  1082. #define mig_internal static __inline__
  1083. #endif /* mig_internal */
  1084. #ifndef mig_external
  1085. #define mig_external
  1086. #endif /* mig_external */
  1087. #if !defined(__MigTypeCheck) && defined(TypeCheck)
  1088. #define __MigTypeCheck TypeCheck /* Legacy setting */
  1089. #endif /* !defined(__MigTypeCheck) */
  1090. #if !defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_)
  1091. #define __MigKernelSpecificCode _MIG_KERNEL_SPECIFIC_CODE_ /* Legacy setting */
  1092. #endif /* !defined(__MigKernelSpecificCode) */
  1093. #ifndef LimitCheck
  1094. #define LimitCheck 0
  1095. #endif /* LimitCheck */
  1096. #ifndef min
  1097. #define min(a,b) ( ((a) < (b))? (a): (b) )
  1098. #endif /* min */
  1099. #if !defined(_WALIGN_)
  1100. #define _WALIGN_(x) (((x) + 3) & ~3)
  1101. #endif /* !defined(_WALIGN_) */
  1102. #if !defined(_WALIGNSZ_)
  1103. #define _WALIGNSZ_(x) _WALIGN_(sizeof(x))
  1104. #endif /* !defined(_WALIGNSZ_) */
  1105. #ifndef UseStaticTemplates
  1106. #define UseStaticTemplates 0
  1107. #endif /* UseStaticTemplates */
  1108. #ifndef __DeclareRcvRpc
  1109. #define __DeclareRcvRpc(_NUM_, _NAME_)
  1110. #endif /* __DeclareRcvRpc */
  1111. #ifndef __BeforeRcvRpc
  1112. #define __BeforeRcvRpc(_NUM_, _NAME_)
  1113. #endif /* __BeforeRcvRpc */
  1114. #ifndef __AfterRcvRpc
  1115. #define __AfterRcvRpc(_NUM_, _NAME_)
  1116. #endif /* __AfterRcvRpc */
  1117. #ifndef __DeclareRcvSimple
  1118. #define __DeclareRcvSimple(_NUM_, _NAME_)
  1119. #endif /* __DeclareRcvSimple */
  1120. #ifndef __BeforeRcvSimple
  1121. #define __BeforeRcvSimple(_NUM_, _NAME_)
  1122. #endif /* __BeforeRcvSimple */
  1123. #ifndef __AfterRcvSimple
  1124. #define __AfterRcvSimple(_NUM_, _NAME_)
  1125. #endif /* __AfterRcvSimple */
  1126. #define novalue void
  1127. #ifndef msgh_request_port
  1128. #define msgh_request_port msgh_local_port
  1129. #endif
  1130. #define MACH_MSGH_BITS_REQUEST(bits) MACH_MSGH_BITS_LOCAL(bits)
  1131. #ifndef msgh_reply_port
  1132. #define msgh_reply_port msgh_remote_port
  1133. #endif
  1134. #define MACH_MSGH_BITS_REPLY(bits) MACH_MSGH_BITS_REMOTE(bits)
  1135. #define MIG_RETURN_ERROR(X, code) {\
  1136. ((mig_reply_error_t *)X)->RetCode = code;\
  1137. ((mig_reply_error_t *)X)->NDR = NDR_record;\
  1138. return;\
  1139. }
  1140. /* typedefs for all requests */
  1141. #ifndef __Request__mach_exc_subsystem__defined
  1142. #define __Request__mach_exc_subsystem__defined
  1143. #ifdef __MigPackStructs
  1144. #pragma pack(4)
  1145. #endif
  1146. typedef struct {
  1147. mach_msg_header_t Head;
  1148. /* start of the kernel processed data */
  1149. mach_msg_body_t msgh_body;
  1150. mach_msg_port_descriptor_t thread;
  1151. mach_msg_port_descriptor_t task;
  1152. /* end of the kernel processed data */
  1153. NDR_record_t NDR;
  1154. exception_type_t exception;
  1155. mach_msg_type_number_t codeCnt;
  1156. int64_t code[2];
  1157. } __Request__mach_exception_raise_t;
  1158. #ifdef __MigPackStructs
  1159. #pragma pack()
  1160. #endif
  1161. #ifdef __MigPackStructs
  1162. #pragma pack(4)
  1163. #endif
  1164. typedef struct {
  1165. mach_msg_header_t Head;
  1166. NDR_record_t NDR;
  1167. exception_type_t exception;
  1168. mach_msg_type_number_t codeCnt;
  1169. int64_t code[2];
  1170. int flavor;
  1171. mach_msg_type_number_t old_stateCnt;
  1172. natural_t old_state[144];
  1173. } __Request__mach_exception_raise_state_t;
  1174. #ifdef __MigPackStructs
  1175. #pragma pack()
  1176. #endif
  1177. #ifdef __MigPackStructs
  1178. #pragma pack(4)
  1179. #endif
  1180. typedef struct {
  1181. mach_msg_header_t Head;
  1182. /* start of the kernel processed data */
  1183. mach_msg_body_t msgh_body;
  1184. mach_msg_port_descriptor_t thread;
  1185. mach_msg_port_descriptor_t task;
  1186. /* end of the kernel processed data */
  1187. NDR_record_t NDR;
  1188. exception_type_t exception;
  1189. mach_msg_type_number_t codeCnt;
  1190. int64_t code[2];
  1191. int flavor;
  1192. mach_msg_type_number_t old_stateCnt;
  1193. natural_t old_state[144];
  1194. } __Request__mach_exception_raise_state_identity_t;
  1195. #ifdef __MigPackStructs
  1196. #pragma pack()
  1197. #endif
  1198. #endif /* !__Request__mach_exc_subsystem__defined */
  1199. /* typedefs for all replies */
  1200. #ifndef __Reply__mach_exc_subsystem__defined
  1201. #define __Reply__mach_exc_subsystem__defined
  1202. #ifdef __MigPackStructs
  1203. #pragma pack(4)
  1204. #endif
  1205. typedef struct {
  1206. mach_msg_header_t Head;
  1207. NDR_record_t NDR;
  1208. kern_return_t RetCode;
  1209. } __Reply__mach_exception_raise_t;
  1210. #ifdef __MigPackStructs
  1211. #pragma pack()
  1212. #endif
  1213. #ifdef __MigPackStructs
  1214. #pragma pack(4)
  1215. #endif
  1216. typedef struct {
  1217. mach_msg_header_t Head;
  1218. NDR_record_t NDR;
  1219. kern_return_t RetCode;
  1220. int flavor;
  1221. mach_msg_type_number_t new_stateCnt;
  1222. natural_t new_state[144];
  1223. } __Reply__mach_exception_raise_state_t;
  1224. #ifdef __MigPackStructs
  1225. #pragma pack()
  1226. #endif
  1227. #ifdef __MigPackStructs
  1228. #pragma pack(4)
  1229. #endif
  1230. typedef struct {
  1231. mach_msg_header_t Head;
  1232. NDR_record_t NDR;
  1233. kern_return_t RetCode;
  1234. int flavor;
  1235. mach_msg_type_number_t new_stateCnt;
  1236. natural_t new_state[144];
  1237. } __Reply__mach_exception_raise_state_identity_t;
  1238. #ifdef __MigPackStructs
  1239. #pragma pack()
  1240. #endif
  1241. #endif /* !__Reply__mach_exc_subsystem__defined */
  1242. /* union of all replies */
  1243. #ifndef __ReplyUnion__catch_mach_exc_subsystem__defined
  1244. #define __ReplyUnion__catch_mach_exc_subsystem__defined
  1245. union __ReplyUnion__catch_mach_exc_subsystem {
  1246. __Reply__mach_exception_raise_t Reply_mach_exception_raise;
  1247. __Reply__mach_exception_raise_state_t Reply_mach_exception_raise_state;
  1248. __Reply__mach_exception_raise_state_identity_t Reply_mach_exception_raise_state_identity;
  1249. };
  1250. #endif /* __RequestUnion__catch_mach_exc_subsystem__defined */
  1251. /* Forward Declarations */
  1252. mig_internal novalue _Xmach_exception_raise_OVR
  1253. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
  1254. mig_internal novalue _Xmach_exception_raise_state_OVR
  1255. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
  1256. mig_internal novalue _Xmach_exception_raise_state_identity_OVR
  1257. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
  1258. #if ( __MigTypeCheck || __NDR_convert__ )
  1259. #if __MIG_check__Request__mach_exc_subsystem__
  1260. #if !defined(__MIG_check__Request__mach_exception_raise_t__defined)
  1261. #define __MIG_check__Request__mach_exception_raise_t__defined
  1262. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined
  1263. #if defined(__NDR_convert__int_rep__mach_exc__exception_type_t__defined)
  1264. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined
  1265. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception(a, f) \
  1266. __NDR_convert__int_rep__mach_exc__exception_type_t((exception_type_t *)(a), f)
  1267. #elif defined(__NDR_convert__int_rep__exception_type_t__defined)
  1268. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined
  1269. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception(a, f) \
  1270. __NDR_convert__int_rep__exception_type_t((exception_type_t *)(a), f)
  1271. #elif defined(__NDR_convert__int_rep__mach_exc__int__defined)
  1272. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined
  1273. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception(a, f) \
  1274. __NDR_convert__int_rep__mach_exc__int((int *)(a), f)
  1275. #elif defined(__NDR_convert__int_rep__int__defined)
  1276. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined
  1277. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception(a, f) \
  1278. __NDR_convert__int_rep__int((int *)(a), f)
  1279. #elif defined(__NDR_convert__int_rep__mach_exc__int32_t__defined)
  1280. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined
  1281. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception(a, f) \
  1282. __NDR_convert__int_rep__mach_exc__int32_t((int32_t *)(a), f)
  1283. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  1284. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined
  1285. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__exception(a, f) \
  1286. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  1287. #endif /* defined(__NDR_convert__*__defined) */
  1288. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined */
  1289. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_t__code__defined
  1290. #if defined(__NDR_convert__int_rep__mach_exc__mach_exception_data_t__defined)
  1291. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__code__defined
  1292. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1293. __NDR_convert__int_rep__mach_exc__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1294. #elif defined(__NDR_convert__int_rep__mach_exception_data_t__defined)
  1295. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__code__defined
  1296. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1297. __NDR_convert__int_rep__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1298. #elif defined(__NDR_convert__int_rep__mach_exc__int64_t__defined)
  1299. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__code__defined
  1300. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1301. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__int64_t)
  1302. #elif defined(__NDR_convert__int_rep__int64_t__defined)
  1303. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__code__defined
  1304. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1305. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__int_rep__int64_t)
  1306. #endif /* defined(__NDR_convert__*__defined) */
  1307. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_t__code__defined */
  1308. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt__defined
  1309. #if defined(__NDR_convert__int_rep__mach_exc__mach_msg_type_number_t__defined)
  1310. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt__defined
  1311. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt(a, f) \
  1312. __NDR_convert__int_rep__mach_exc__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  1313. #elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
  1314. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt__defined
  1315. #define __NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt(a, f) \
  1316. __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  1317. #endif /* defined(__NDR_convert__*__defined) */
  1318. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt__defined */
  1319. #ifndef __NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined
  1320. #if defined(__NDR_convert__char_rep__mach_exc__exception_type_t__defined)
  1321. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined
  1322. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception(a, f) \
  1323. __NDR_convert__char_rep__mach_exc__exception_type_t((exception_type_t *)(a), f)
  1324. #elif defined(__NDR_convert__char_rep__exception_type_t__defined)
  1325. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined
  1326. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception(a, f) \
  1327. __NDR_convert__char_rep__exception_type_t((exception_type_t *)(a), f)
  1328. #elif defined(__NDR_convert__char_rep__mach_exc__int__defined)
  1329. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined
  1330. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception(a, f) \
  1331. __NDR_convert__char_rep__mach_exc__int((int *)(a), f)
  1332. #elif defined(__NDR_convert__char_rep__int__defined)
  1333. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined
  1334. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception(a, f) \
  1335. __NDR_convert__char_rep__int((int *)(a), f)
  1336. #elif defined(__NDR_convert__char_rep__mach_exc__int32_t__defined)
  1337. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined
  1338. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception(a, f) \
  1339. __NDR_convert__char_rep__mach_exc__int32_t((int32_t *)(a), f)
  1340. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  1341. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined
  1342. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__exception(a, f) \
  1343. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  1344. #endif /* defined(__NDR_convert__*__defined) */
  1345. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined */
  1346. #ifndef __NDR_convert__char_rep__Request__mach_exception_raise_t__code__defined
  1347. #if defined(__NDR_convert__char_rep__mach_exc__mach_exception_data_t__defined)
  1348. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__code__defined
  1349. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1350. __NDR_convert__char_rep__mach_exc__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1351. #elif defined(__NDR_convert__char_rep__mach_exception_data_t__defined)
  1352. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__code__defined
  1353. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1354. __NDR_convert__char_rep__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1355. #elif defined(__NDR_convert__char_rep__mach_exc__int64_t__defined)
  1356. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__code__defined
  1357. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1358. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__int64_t)
  1359. #elif defined(__NDR_convert__char_rep__int64_t__defined)
  1360. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__code__defined
  1361. #define __NDR_convert__char_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1362. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__char_rep__int64_t)
  1363. #endif /* defined(__NDR_convert__*__defined) */
  1364. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_t__code__defined */
  1365. #ifndef __NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined
  1366. #if defined(__NDR_convert__float_rep__mach_exc__exception_type_t__defined)
  1367. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined
  1368. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception(a, f) \
  1369. __NDR_convert__float_rep__mach_exc__exception_type_t((exception_type_t *)(a), f)
  1370. #elif defined(__NDR_convert__float_rep__exception_type_t__defined)
  1371. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined
  1372. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception(a, f) \
  1373. __NDR_convert__float_rep__exception_type_t((exception_type_t *)(a), f)
  1374. #elif defined(__NDR_convert__float_rep__mach_exc__int__defined)
  1375. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined
  1376. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception(a, f) \
  1377. __NDR_convert__float_rep__mach_exc__int((int *)(a), f)
  1378. #elif defined(__NDR_convert__float_rep__int__defined)
  1379. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined
  1380. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception(a, f) \
  1381. __NDR_convert__float_rep__int((int *)(a), f)
  1382. #elif defined(__NDR_convert__float_rep__mach_exc__int32_t__defined)
  1383. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined
  1384. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception(a, f) \
  1385. __NDR_convert__float_rep__mach_exc__int32_t((int32_t *)(a), f)
  1386. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  1387. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined
  1388. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__exception(a, f) \
  1389. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  1390. #endif /* defined(__NDR_convert__*__defined) */
  1391. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined */
  1392. #ifndef __NDR_convert__float_rep__Request__mach_exception_raise_t__code__defined
  1393. #if defined(__NDR_convert__float_rep__mach_exc__mach_exception_data_t__defined)
  1394. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__code__defined
  1395. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1396. __NDR_convert__float_rep__mach_exc__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1397. #elif defined(__NDR_convert__float_rep__mach_exception_data_t__defined)
  1398. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__code__defined
  1399. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1400. __NDR_convert__float_rep__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1401. #elif defined(__NDR_convert__float_rep__mach_exc__int64_t__defined)
  1402. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__code__defined
  1403. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1404. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__int64_t)
  1405. #elif defined(__NDR_convert__float_rep__int64_t__defined)
  1406. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__code__defined
  1407. #define __NDR_convert__float_rep__Request__mach_exception_raise_t__code(a, f, c) \
  1408. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__float_rep__int64_t)
  1409. #endif /* defined(__NDR_convert__*__defined) */
  1410. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_t__code__defined */
  1411. mig_internal kern_return_t __MIG_check__Request__mach_exception_raise_t_OVR(__attribute__((__unused__)) __Request__mach_exception_raise_t *In0P)
  1412. {
  1413. const size_t sizeofRequest = sizeof(__Request__mach_exception_raise_t);
  1414. typedef __Request__mach_exception_raise_t __Request;
  1415. #if __MigTypeCheck
  1416. unsigned int msgh_size;
  1417. #endif /* __MigTypeCheck */
  1418. #if __MigTypeCheck
  1419. msgh_size = In0P->Head.msgh_size;
  1420. if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
  1421. (In0P->msgh_body.msgh_descriptor_count != 2) ||
  1422. (msgh_size < (mach_msg_size_t)(sizeofRequest - 16)) || (msgh_size > (mach_msg_size_t)sizeofRequest))
  1423. return MIG_BAD_ARGUMENTS;
  1424. #endif /* __MigTypeCheck */
  1425. #if __MigTypeCheck
  1426. if (In0P->thread.type != MACH_MSG_PORT_DESCRIPTOR ||
  1427. In0P->thread.disposition != 17)
  1428. return MIG_TYPE_ERROR;
  1429. #endif /* __MigTypeCheck */
  1430. #if __MigTypeCheck
  1431. if (In0P->task.type != MACH_MSG_PORT_DESCRIPTOR ||
  1432. In0P->task.disposition != 17)
  1433. return MIG_TYPE_ERROR;
  1434. #endif /* __MigTypeCheck */
  1435. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt__defined)
  1436. if (In0P->NDR.int_rep != NDR_record.int_rep)
  1437. __NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt(&In0P->codeCnt, In0P->NDR.int_rep);
  1438. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt__defined */
  1439. #if __MigTypeCheck
  1440. if ( In0P->codeCnt > 2 )
  1441. return MIG_BAD_ARGUMENTS;
  1442. if (((msgh_size - (mach_msg_size_t)(sizeofRequest - 16)) / 8 != In0P->codeCnt) ||
  1443. (msgh_size != (mach_msg_size_t)(sizeofRequest - 16) + (8 * In0P->codeCnt)))
  1444. return MIG_BAD_ARGUMENTS;
  1445. #endif /* __MigTypeCheck */
  1446. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined) || \
  1447. defined(__NDR_convert__int_rep__Request__mach_exception_raise_t__code__defined) || \
  1448. defined(__NDR_convert__int_rep__Request__mach_exception_raise_t__codeCnt__defined)
  1449. if (In0P->NDR.int_rep != NDR_record.int_rep) {
  1450. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined)
  1451. __NDR_convert__int_rep__Request__mach_exception_raise_t__exception(&In0P->exception, In0P->NDR.int_rep);
  1452. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_t__exception__defined */
  1453. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_t__code__defined)
  1454. __NDR_convert__int_rep__Request__mach_exception_raise_t__code(&In0P->code, In0P->NDR.int_rep, In0P->codeCnt);
  1455. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_t__code__defined */
  1456. }
  1457. #endif /* defined(__NDR_convert__int_rep...) */
  1458. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined) || \
  1459. defined(__NDR_convert__char_rep__Request__mach_exception_raise_t__code__defined) || \
  1460. 0
  1461. if (In0P->NDR.char_rep != NDR_record.char_rep) {
  1462. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined)
  1463. __NDR_convert__char_rep__Request__mach_exception_raise_t__exception(&In0P->exception, In0P->NDR.char_rep);
  1464. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_t__exception__defined */
  1465. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_t__code__defined)
  1466. __NDR_convert__char_rep__Request__mach_exception_raise_t__code(&In0P->code, In0P->NDR.char_rep, In0P->codeCnt);
  1467. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_t__code__defined */
  1468. }
  1469. #endif /* defined(__NDR_convert__char_rep...) */
  1470. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined) || \
  1471. defined(__NDR_convert__float_rep__Request__mach_exception_raise_t__code__defined) || \
  1472. 0
  1473. if (In0P->NDR.float_rep != NDR_record.float_rep) {
  1474. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined)
  1475. __NDR_convert__float_rep__Request__mach_exception_raise_t__exception(&In0P->exception, In0P->NDR.float_rep);
  1476. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_t__exception__defined */
  1477. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_t__code__defined)
  1478. __NDR_convert__float_rep__Request__mach_exception_raise_t__code(&In0P->code, In0P->NDR.float_rep, In0P->codeCnt);
  1479. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_t__code__defined */
  1480. }
  1481. #endif /* defined(__NDR_convert__float_rep...) */
  1482. return MACH_MSG_SUCCESS;
  1483. }
  1484. #endif /* !defined(__MIG_check__Request__mach_exception_raise_t__defined) */
  1485. #endif /* __MIG_check__Request__mach_exc_subsystem__ */
  1486. #endif /* ( __MigTypeCheck || __NDR_convert__ ) */
  1487. /* Routine catch_mach_exception_raise_OVR */
  1488. #ifdef mig_external
  1489. mig_external
  1490. #else
  1491. extern
  1492. #endif /* mig_external */
  1493. kern_return_t catch_mach_exception_raise_OVR
  1494. (
  1495. mach_port_t exception_port,
  1496. mach_port_t thread,
  1497. mach_port_t task,
  1498. exception_type_t exception,
  1499. mach_exception_data_t code,
  1500. mach_msg_type_number_t codeCnt
  1501. );
  1502. /* Routine _Xmach_exception_raise_OVR */
  1503. mig_internal novalue _Xmach_exception_raise_OVR
  1504. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
  1505. {
  1506. #ifdef __MigPackStructs
  1507. #pragma pack(4)
  1508. #endif
  1509. typedef struct {
  1510. mach_msg_header_t Head;
  1511. /* start of the kernel processed data */
  1512. mach_msg_body_t msgh_body;
  1513. mach_msg_port_descriptor_t thread;
  1514. mach_msg_port_descriptor_t task;
  1515. /* end of the kernel processed data */
  1516. NDR_record_t NDR;
  1517. exception_type_t exception;
  1518. mach_msg_type_number_t codeCnt;
  1519. int64_t code[2];
  1520. mach_msg_trailer_t trailer;
  1521. } Request;
  1522. #ifdef __MigPackStructs
  1523. #pragma pack()
  1524. #endif
  1525. typedef __Request__mach_exception_raise_t __Request;
  1526. typedef __Reply__mach_exception_raise_t Reply;
  1527. /*
  1528. * typedef struct {
  1529. * mach_msg_header_t Head;
  1530. * NDR_record_t NDR;
  1531. * kern_return_t RetCode;
  1532. * } mig_reply_error_t;
  1533. */
  1534. Request *In0P = (Request *) InHeadP;
  1535. Reply *OutP = (Reply *) OutHeadP;
  1536. #ifdef __MIG_check__Request__mach_exception_raise_t__defined
  1537. kern_return_t check_result;
  1538. #endif /* __MIG_check__Request__mach_exception_raise_t__defined */
  1539. __DeclareRcvRpc(2405, "mach_exception_raise_OVR")
  1540. __BeforeRcvRpc(2405, "mach_exception_raise_OVR")
  1541. #if defined(__MIG_check__Request__mach_exception_raise_t__defined)
  1542. check_result = __MIG_check__Request__mach_exception_raise_t_OVR((__Request *)In0P);
  1543. if (check_result != MACH_MSG_SUCCESS)
  1544. { MIG_RETURN_ERROR(OutP, check_result); }
  1545. #endif /* defined(__MIG_check__Request__mach_exception_raise_t__defined) */
  1546. OutP->RetCode = catch_mach_exception_raise_OVR(In0P->Head.msgh_request_port, In0P->thread.name, In0P->task.name, In0P->exception, In0P->code, In0P->codeCnt);
  1547. OutP->NDR = NDR_record;
  1548. __AfterRcvRpc(2405, "mach_exception_raise_OVR")
  1549. }
  1550. #if ( __MigTypeCheck || __NDR_convert__ )
  1551. #if __MIG_check__Request__mach_exc_subsystem__
  1552. #if !defined(__MIG_check__Request__mach_exception_raise_state_t__defined)
  1553. #define __MIG_check__Request__mach_exception_raise_state_t__defined
  1554. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined
  1555. #if defined(__NDR_convert__int_rep__mach_exc__exception_type_t__defined)
  1556. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined
  1557. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1558. __NDR_convert__int_rep__mach_exc__exception_type_t((exception_type_t *)(a), f)
  1559. #elif defined(__NDR_convert__int_rep__exception_type_t__defined)
  1560. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined
  1561. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1562. __NDR_convert__int_rep__exception_type_t((exception_type_t *)(a), f)
  1563. #elif defined(__NDR_convert__int_rep__mach_exc__int__defined)
  1564. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined
  1565. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1566. __NDR_convert__int_rep__mach_exc__int((int *)(a), f)
  1567. #elif defined(__NDR_convert__int_rep__int__defined)
  1568. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined
  1569. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1570. __NDR_convert__int_rep__int((int *)(a), f)
  1571. #elif defined(__NDR_convert__int_rep__mach_exc__int32_t__defined)
  1572. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined
  1573. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1574. __NDR_convert__int_rep__mach_exc__int32_t((int32_t *)(a), f)
  1575. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  1576. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined
  1577. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1578. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  1579. #endif /* defined(__NDR_convert__*__defined) */
  1580. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined */
  1581. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code__defined
  1582. #if defined(__NDR_convert__int_rep__mach_exc__mach_exception_data_t__defined)
  1583. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code__defined
  1584. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1585. __NDR_convert__int_rep__mach_exc__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1586. #elif defined(__NDR_convert__int_rep__mach_exception_data_t__defined)
  1587. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code__defined
  1588. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1589. __NDR_convert__int_rep__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1590. #elif defined(__NDR_convert__int_rep__mach_exc__int64_t__defined)
  1591. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code__defined
  1592. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1593. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__int64_t)
  1594. #elif defined(__NDR_convert__int_rep__int64_t__defined)
  1595. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code__defined
  1596. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1597. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__int_rep__int64_t)
  1598. #endif /* defined(__NDR_convert__*__defined) */
  1599. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code__defined */
  1600. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt__defined
  1601. #if defined(__NDR_convert__int_rep__mach_exc__mach_msg_type_number_t__defined)
  1602. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt__defined
  1603. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt(a, f) \
  1604. __NDR_convert__int_rep__mach_exc__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  1605. #elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
  1606. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt__defined
  1607. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt(a, f) \
  1608. __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  1609. #endif /* defined(__NDR_convert__*__defined) */
  1610. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt__defined */
  1611. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor__defined
  1612. #if defined(__NDR_convert__int_rep__mach_exc__int__defined)
  1613. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor__defined
  1614. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1615. __NDR_convert__int_rep__mach_exc__int((int *)(a), f)
  1616. #elif defined(__NDR_convert__int_rep__int__defined)
  1617. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor__defined
  1618. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1619. __NDR_convert__int_rep__int((int *)(a), f)
  1620. #elif defined(__NDR_convert__int_rep__mach_exc__int32_t__defined)
  1621. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor__defined
  1622. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1623. __NDR_convert__int_rep__mach_exc__int32_t((int32_t *)(a), f)
  1624. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  1625. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor__defined
  1626. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1627. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  1628. #endif /* defined(__NDR_convert__*__defined) */
  1629. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor__defined */
  1630. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined
  1631. #if defined(__NDR_convert__int_rep__mach_exc__thread_state_t__defined)
  1632. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined
  1633. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1634. __NDR_convert__int_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  1635. #elif defined(__NDR_convert__int_rep__thread_state_t__defined)
  1636. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined
  1637. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1638. __NDR_convert__int_rep__thread_state_t((thread_state_t *)(a), f, c)
  1639. #elif defined(__NDR_convert__int_rep__mach_exc__natural_t__defined)
  1640. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined
  1641. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1642. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__natural_t)
  1643. #elif defined(__NDR_convert__int_rep__natural_t__defined)
  1644. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined
  1645. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1646. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__int_rep__natural_t)
  1647. #elif defined(__NDR_convert__int_rep__mach_exc__uint32_t__defined)
  1648. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined
  1649. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1650. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__uint32_t)
  1651. #elif defined(__NDR_convert__int_rep__uint32_t__defined)
  1652. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined
  1653. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1654. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__int_rep__uint32_t)
  1655. #endif /* defined(__NDR_convert__*__defined) */
  1656. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined */
  1657. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt__defined
  1658. #if defined(__NDR_convert__int_rep__mach_exc__mach_msg_type_number_t__defined)
  1659. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt__defined
  1660. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt(a, f) \
  1661. __NDR_convert__int_rep__mach_exc__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  1662. #elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
  1663. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt__defined
  1664. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt(a, f) \
  1665. __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  1666. #endif /* defined(__NDR_convert__*__defined) */
  1667. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt__defined */
  1668. #ifndef __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined
  1669. #if defined(__NDR_convert__char_rep__mach_exc__exception_type_t__defined)
  1670. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined
  1671. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1672. __NDR_convert__char_rep__mach_exc__exception_type_t((exception_type_t *)(a), f)
  1673. #elif defined(__NDR_convert__char_rep__exception_type_t__defined)
  1674. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined
  1675. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1676. __NDR_convert__char_rep__exception_type_t((exception_type_t *)(a), f)
  1677. #elif defined(__NDR_convert__char_rep__mach_exc__int__defined)
  1678. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined
  1679. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1680. __NDR_convert__char_rep__mach_exc__int((int *)(a), f)
  1681. #elif defined(__NDR_convert__char_rep__int__defined)
  1682. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined
  1683. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1684. __NDR_convert__char_rep__int((int *)(a), f)
  1685. #elif defined(__NDR_convert__char_rep__mach_exc__int32_t__defined)
  1686. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined
  1687. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1688. __NDR_convert__char_rep__mach_exc__int32_t((int32_t *)(a), f)
  1689. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  1690. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined
  1691. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1692. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  1693. #endif /* defined(__NDR_convert__*__defined) */
  1694. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined */
  1695. #ifndef __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code__defined
  1696. #if defined(__NDR_convert__char_rep__mach_exc__mach_exception_data_t__defined)
  1697. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code__defined
  1698. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1699. __NDR_convert__char_rep__mach_exc__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1700. #elif defined(__NDR_convert__char_rep__mach_exception_data_t__defined)
  1701. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code__defined
  1702. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1703. __NDR_convert__char_rep__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1704. #elif defined(__NDR_convert__char_rep__mach_exc__int64_t__defined)
  1705. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code__defined
  1706. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1707. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__int64_t)
  1708. #elif defined(__NDR_convert__char_rep__int64_t__defined)
  1709. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code__defined
  1710. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1711. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__char_rep__int64_t)
  1712. #endif /* defined(__NDR_convert__*__defined) */
  1713. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code__defined */
  1714. #ifndef __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor__defined
  1715. #if defined(__NDR_convert__char_rep__mach_exc__int__defined)
  1716. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor__defined
  1717. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1718. __NDR_convert__char_rep__mach_exc__int((int *)(a), f)
  1719. #elif defined(__NDR_convert__char_rep__int__defined)
  1720. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor__defined
  1721. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1722. __NDR_convert__char_rep__int((int *)(a), f)
  1723. #elif defined(__NDR_convert__char_rep__mach_exc__int32_t__defined)
  1724. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor__defined
  1725. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1726. __NDR_convert__char_rep__mach_exc__int32_t((int32_t *)(a), f)
  1727. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  1728. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor__defined
  1729. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1730. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  1731. #endif /* defined(__NDR_convert__*__defined) */
  1732. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor__defined */
  1733. #ifndef __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined
  1734. #if defined(__NDR_convert__char_rep__mach_exc__thread_state_t__defined)
  1735. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined
  1736. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1737. __NDR_convert__char_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  1738. #elif defined(__NDR_convert__char_rep__thread_state_t__defined)
  1739. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined
  1740. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1741. __NDR_convert__char_rep__thread_state_t((thread_state_t *)(a), f, c)
  1742. #elif defined(__NDR_convert__char_rep__mach_exc__natural_t__defined)
  1743. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined
  1744. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1745. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__natural_t)
  1746. #elif defined(__NDR_convert__char_rep__natural_t__defined)
  1747. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined
  1748. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1749. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__char_rep__natural_t)
  1750. #elif defined(__NDR_convert__char_rep__mach_exc__uint32_t__defined)
  1751. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined
  1752. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1753. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__uint32_t)
  1754. #elif defined(__NDR_convert__char_rep__uint32_t__defined)
  1755. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined
  1756. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1757. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__char_rep__uint32_t)
  1758. #endif /* defined(__NDR_convert__*__defined) */
  1759. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined */
  1760. #ifndef __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined
  1761. #if defined(__NDR_convert__float_rep__mach_exc__exception_type_t__defined)
  1762. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined
  1763. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1764. __NDR_convert__float_rep__mach_exc__exception_type_t((exception_type_t *)(a), f)
  1765. #elif defined(__NDR_convert__float_rep__exception_type_t__defined)
  1766. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined
  1767. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1768. __NDR_convert__float_rep__exception_type_t((exception_type_t *)(a), f)
  1769. #elif defined(__NDR_convert__float_rep__mach_exc__int__defined)
  1770. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined
  1771. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1772. __NDR_convert__float_rep__mach_exc__int((int *)(a), f)
  1773. #elif defined(__NDR_convert__float_rep__int__defined)
  1774. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined
  1775. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1776. __NDR_convert__float_rep__int((int *)(a), f)
  1777. #elif defined(__NDR_convert__float_rep__mach_exc__int32_t__defined)
  1778. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined
  1779. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1780. __NDR_convert__float_rep__mach_exc__int32_t((int32_t *)(a), f)
  1781. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  1782. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined
  1783. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception(a, f) \
  1784. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  1785. #endif /* defined(__NDR_convert__*__defined) */
  1786. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined */
  1787. #ifndef __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code__defined
  1788. #if defined(__NDR_convert__float_rep__mach_exc__mach_exception_data_t__defined)
  1789. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code__defined
  1790. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1791. __NDR_convert__float_rep__mach_exc__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1792. #elif defined(__NDR_convert__float_rep__mach_exception_data_t__defined)
  1793. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code__defined
  1794. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1795. __NDR_convert__float_rep__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  1796. #elif defined(__NDR_convert__float_rep__mach_exc__int64_t__defined)
  1797. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code__defined
  1798. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1799. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__int64_t)
  1800. #elif defined(__NDR_convert__float_rep__int64_t__defined)
  1801. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code__defined
  1802. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code(a, f, c) \
  1803. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__float_rep__int64_t)
  1804. #endif /* defined(__NDR_convert__*__defined) */
  1805. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code__defined */
  1806. #ifndef __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor__defined
  1807. #if defined(__NDR_convert__float_rep__mach_exc__int__defined)
  1808. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor__defined
  1809. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1810. __NDR_convert__float_rep__mach_exc__int((int *)(a), f)
  1811. #elif defined(__NDR_convert__float_rep__int__defined)
  1812. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor__defined
  1813. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1814. __NDR_convert__float_rep__int((int *)(a), f)
  1815. #elif defined(__NDR_convert__float_rep__mach_exc__int32_t__defined)
  1816. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor__defined
  1817. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1818. __NDR_convert__float_rep__mach_exc__int32_t((int32_t *)(a), f)
  1819. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  1820. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor__defined
  1821. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor(a, f) \
  1822. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  1823. #endif /* defined(__NDR_convert__*__defined) */
  1824. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor__defined */
  1825. #ifndef __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined
  1826. #if defined(__NDR_convert__float_rep__mach_exc__thread_state_t__defined)
  1827. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined
  1828. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1829. __NDR_convert__float_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  1830. #elif defined(__NDR_convert__float_rep__thread_state_t__defined)
  1831. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined
  1832. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1833. __NDR_convert__float_rep__thread_state_t((thread_state_t *)(a), f, c)
  1834. #elif defined(__NDR_convert__float_rep__mach_exc__natural_t__defined)
  1835. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined
  1836. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1837. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__natural_t)
  1838. #elif defined(__NDR_convert__float_rep__natural_t__defined)
  1839. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined
  1840. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1841. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__float_rep__natural_t)
  1842. #elif defined(__NDR_convert__float_rep__mach_exc__uint32_t__defined)
  1843. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined
  1844. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1845. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__uint32_t)
  1846. #elif defined(__NDR_convert__float_rep__uint32_t__defined)
  1847. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined
  1848. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state(a, f, c) \
  1849. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__float_rep__uint32_t)
  1850. #endif /* defined(__NDR_convert__*__defined) */
  1851. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined */
  1852. mig_internal kern_return_t __MIG_check__Request__mach_exception_raise_state_t_OVR(__attribute__((__unused__)) __Request__mach_exception_raise_state_t *In0P, __attribute__((__unused__)) __Request__mach_exception_raise_state_t **In1PP)
  1853. {
  1854. typedef __Request__mach_exception_raise_state_t __Request;
  1855. __Request *In1P;
  1856. #if __MigTypeCheck
  1857. unsigned int msgh_size;
  1858. #endif /* __MigTypeCheck */
  1859. unsigned int msgh_size_delta;
  1860. #if __MigTypeCheck
  1861. msgh_size = In0P->Head.msgh_size;
  1862. if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
  1863. (msgh_size < (mach_msg_size_t)(sizeof(__Request) - 592)) || (msgh_size > (mach_msg_size_t)sizeof(__Request)))
  1864. return MIG_BAD_ARGUMENTS;
  1865. #endif /* __MigTypeCheck */
  1866. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt__defined)
  1867. if (In0P->NDR.int_rep != NDR_record.int_rep)
  1868. __NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt(&In0P->codeCnt, In0P->NDR.int_rep);
  1869. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt__defined */
  1870. msgh_size_delta = (8 * In0P->codeCnt);
  1871. #if __MigTypeCheck
  1872. if ( In0P->codeCnt > 2 )
  1873. return MIG_BAD_ARGUMENTS;
  1874. if (((msgh_size - (mach_msg_size_t)(sizeof(__Request) - 592)) / 8 < In0P->codeCnt) ||
  1875. (msgh_size < (mach_msg_size_t)(sizeof(__Request) - 592) + (8 * In0P->codeCnt)))
  1876. return MIG_BAD_ARGUMENTS;
  1877. msgh_size -= msgh_size_delta;
  1878. #endif /* __MigTypeCheck */
  1879. *In1PP = In1P = (__Request *) ((pointer_t) In0P + msgh_size_delta - 16);
  1880. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt__defined)
  1881. if (In0P->NDR.int_rep != NDR_record.int_rep)
  1882. __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt(&In1P->old_stateCnt, In1P->NDR.int_rep);
  1883. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt__defined */
  1884. #if __MigTypeCheck
  1885. if ( In1P->old_stateCnt > 144 )
  1886. return MIG_BAD_ARGUMENTS;
  1887. if (((msgh_size - (mach_msg_size_t)(sizeof(__Request) - 592)) / 4 != In1P->old_stateCnt) ||
  1888. (msgh_size != (mach_msg_size_t)(sizeof(__Request) - 592) + (4 * In1P->old_stateCnt)))
  1889. return MIG_BAD_ARGUMENTS;
  1890. #endif /* __MigTypeCheck */
  1891. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined) || \
  1892. defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__code__defined) || \
  1893. defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__codeCnt__defined) || \
  1894. defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor__defined) || \
  1895. defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined) || \
  1896. defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_stateCnt__defined)
  1897. if (In0P->NDR.int_rep != NDR_record.int_rep) {
  1898. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined)
  1899. __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception(&In0P->exception, In0P->NDR.int_rep);
  1900. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__exception__defined */
  1901. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__code__defined)
  1902. __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code(&In0P->code, In0P->NDR.int_rep, In0P->codeCnt);
  1903. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__code__defined */
  1904. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor__defined)
  1905. __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor(&In1P->flavor, In0P->NDR.int_rep);
  1906. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__flavor__defined */
  1907. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined)
  1908. __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state(&In1P->old_state, In0P->NDR.int_rep, In1P->old_stateCnt);
  1909. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_t__old_state__defined */
  1910. }
  1911. #endif /* defined(__NDR_convert__int_rep...) */
  1912. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined) || \
  1913. defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_t__code__defined) || \
  1914. 0 || \
  1915. defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor__defined) || \
  1916. defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined) || \
  1917. 0
  1918. if (In0P->NDR.char_rep != NDR_record.char_rep) {
  1919. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined)
  1920. __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception(&In0P->exception, In0P->NDR.char_rep);
  1921. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_t__exception__defined */
  1922. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_t__code__defined)
  1923. __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code(&In0P->code, In0P->NDR.char_rep, In0P->codeCnt);
  1924. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_t__code__defined */
  1925. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor__defined)
  1926. __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor(&In1P->flavor, In0P->NDR.char_rep);
  1927. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_t__flavor__defined */
  1928. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined)
  1929. __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state(&In1P->old_state, In0P->NDR.char_rep, In1P->old_stateCnt);
  1930. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_t__old_state__defined */
  1931. }
  1932. #endif /* defined(__NDR_convert__char_rep...) */
  1933. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined) || \
  1934. defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_t__code__defined) || \
  1935. 0 || \
  1936. defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor__defined) || \
  1937. defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined) || \
  1938. 0
  1939. if (In0P->NDR.float_rep != NDR_record.float_rep) {
  1940. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined)
  1941. __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception(&In0P->exception, In0P->NDR.float_rep);
  1942. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_t__exception__defined */
  1943. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_t__code__defined)
  1944. __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code(&In0P->code, In0P->NDR.float_rep, In0P->codeCnt);
  1945. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_t__code__defined */
  1946. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor__defined)
  1947. __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor(&In1P->flavor, In0P->NDR.float_rep);
  1948. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_t__flavor__defined */
  1949. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined)
  1950. __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state(&In1P->old_state, In0P->NDR.float_rep, In1P->old_stateCnt);
  1951. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_t__old_state__defined */
  1952. }
  1953. #endif /* defined(__NDR_convert__float_rep...) */
  1954. return MACH_MSG_SUCCESS;
  1955. }
  1956. #endif /* !defined(__MIG_check__Request__mach_exception_raise_state_t__defined) */
  1957. #endif /* __MIG_check__Request__mach_exc_subsystem__ */
  1958. #endif /* ( __MigTypeCheck || __NDR_convert__ ) */
  1959. /* Routine mach_exception_raise_state_OVR */
  1960. #ifdef mig_external
  1961. mig_external
  1962. #else
  1963. extern
  1964. #endif /* mig_external */
  1965. kern_return_t catch_mach_exception_raise_state_OVR
  1966. (
  1967. mach_port_t exception_port,
  1968. exception_type_t exception,
  1969. const mach_exception_data_t code,
  1970. mach_msg_type_number_t codeCnt,
  1971. int *flavor,
  1972. const thread_state_t old_state,
  1973. mach_msg_type_number_t old_stateCnt,
  1974. thread_state_t new_state,
  1975. mach_msg_type_number_t *new_stateCnt
  1976. );
  1977. /* Routine _Xmach_exception_raise_state_OVR */
  1978. mig_internal novalue _Xmach_exception_raise_state_OVR
  1979. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
  1980. {
  1981. #ifdef __MigPackStructs
  1982. #pragma pack(4)
  1983. #endif
  1984. typedef struct {
  1985. mach_msg_header_t Head;
  1986. NDR_record_t NDR;
  1987. exception_type_t exception;
  1988. mach_msg_type_number_t codeCnt;
  1989. int64_t code[2];
  1990. int flavor;
  1991. mach_msg_type_number_t old_stateCnt;
  1992. natural_t old_state[144];
  1993. mach_msg_trailer_t trailer;
  1994. } Request;
  1995. #ifdef __MigPackStructs
  1996. #pragma pack()
  1997. #endif
  1998. typedef __Request__mach_exception_raise_state_t __Request;
  1999. typedef __Reply__mach_exception_raise_state_t Reply;
  2000. /*
  2001. * typedef struct {
  2002. * mach_msg_header_t Head;
  2003. * NDR_record_t NDR;
  2004. * kern_return_t RetCode;
  2005. * } mig_reply_error_t;
  2006. */
  2007. Request *In0P = (Request *) InHeadP;
  2008. Request *In1P;
  2009. Reply *OutP = (Reply *) OutHeadP;
  2010. #ifdef __MIG_check__Request__mach_exception_raise_state_t__defined
  2011. kern_return_t check_result;
  2012. #endif /* __MIG_check__Request__mach_exception_raise_state_t__defined */
  2013. __DeclareRcvRpc(2406, "mach_exception_raise_state_OVR")
  2014. __BeforeRcvRpc(2406, "mach_exception_raise_state_OVR")
  2015. #if defined(__MIG_check__Request__mach_exception_raise_state_t__defined)
  2016. check_result = __MIG_check__Request__mach_exception_raise_state_t_OVR((__Request *)In0P, (__Request **)&In1P);
  2017. if (check_result != MACH_MSG_SUCCESS)
  2018. { MIG_RETURN_ERROR(OutP, check_result); }
  2019. #endif /* defined(__MIG_check__Request__mach_exception_raise_state_t__defined) */
  2020. OutP->new_stateCnt = 144;
  2021. OutP->RetCode = catch_mach_exception_raise_state_OVR(In0P->Head.msgh_request_port, In0P->exception, In0P->code, In0P->codeCnt, &In1P->flavor, In1P->old_state, In1P->old_stateCnt, OutP->new_state, &OutP->new_stateCnt);
  2022. if (OutP->RetCode != KERN_SUCCESS) {
  2023. MIG_RETURN_ERROR(OutP, OutP->RetCode);
  2024. }
  2025. OutP->NDR = NDR_record;
  2026. OutP->flavor = In1P->flavor;
  2027. OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply) - 576) + (((4 * OutP->new_stateCnt)));
  2028. __AfterRcvRpc(2406, "mach_exception_raise_state_OVR")
  2029. }
  2030. #if ( __MigTypeCheck || __NDR_convert__ )
  2031. #if __MIG_check__Request__mach_exc_subsystem__
  2032. #if !defined(__MIG_check__Request__mach_exception_raise_state_identity_t__defined)
  2033. #define __MIG_check__Request__mach_exception_raise_state_identity_t__defined
  2034. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2035. #if defined(__NDR_convert__int_rep__mach_exc__exception_type_t__defined)
  2036. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2037. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2038. __NDR_convert__int_rep__mach_exc__exception_type_t((exception_type_t *)(a), f)
  2039. #elif defined(__NDR_convert__int_rep__exception_type_t__defined)
  2040. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2041. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2042. __NDR_convert__int_rep__exception_type_t((exception_type_t *)(a), f)
  2043. #elif defined(__NDR_convert__int_rep__mach_exc__int__defined)
  2044. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2045. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2046. __NDR_convert__int_rep__mach_exc__int((int *)(a), f)
  2047. #elif defined(__NDR_convert__int_rep__int__defined)
  2048. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2049. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2050. __NDR_convert__int_rep__int((int *)(a), f)
  2051. #elif defined(__NDR_convert__int_rep__mach_exc__int32_t__defined)
  2052. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2053. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2054. __NDR_convert__int_rep__mach_exc__int32_t((int32_t *)(a), f)
  2055. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  2056. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2057. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2058. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  2059. #endif /* defined(__NDR_convert__*__defined) */
  2060. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined */
  2061. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2062. #if defined(__NDR_convert__int_rep__mach_exc__mach_exception_data_t__defined)
  2063. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2064. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2065. __NDR_convert__int_rep__mach_exc__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  2066. #elif defined(__NDR_convert__int_rep__mach_exception_data_t__defined)
  2067. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2068. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2069. __NDR_convert__int_rep__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  2070. #elif defined(__NDR_convert__int_rep__mach_exc__int64_t__defined)
  2071. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2072. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2073. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__int64_t)
  2074. #elif defined(__NDR_convert__int_rep__int64_t__defined)
  2075. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2076. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2077. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__int_rep__int64_t)
  2078. #endif /* defined(__NDR_convert__*__defined) */
  2079. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code__defined */
  2080. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt__defined
  2081. #if defined(__NDR_convert__int_rep__mach_exc__mach_msg_type_number_t__defined)
  2082. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt__defined
  2083. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt(a, f) \
  2084. __NDR_convert__int_rep__mach_exc__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  2085. #elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
  2086. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt__defined
  2087. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt(a, f) \
  2088. __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  2089. #endif /* defined(__NDR_convert__*__defined) */
  2090. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt__defined */
  2091. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2092. #if defined(__NDR_convert__int_rep__mach_exc__int__defined)
  2093. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2094. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2095. __NDR_convert__int_rep__mach_exc__int((int *)(a), f)
  2096. #elif defined(__NDR_convert__int_rep__int__defined)
  2097. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2098. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2099. __NDR_convert__int_rep__int((int *)(a), f)
  2100. #elif defined(__NDR_convert__int_rep__mach_exc__int32_t__defined)
  2101. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2102. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2103. __NDR_convert__int_rep__mach_exc__int32_t((int32_t *)(a), f)
  2104. #elif defined(__NDR_convert__int_rep__int32_t__defined)
  2105. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2106. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2107. __NDR_convert__int_rep__int32_t((int32_t *)(a), f)
  2108. #endif /* defined(__NDR_convert__*__defined) */
  2109. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor__defined */
  2110. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2111. #if defined(__NDR_convert__int_rep__mach_exc__thread_state_t__defined)
  2112. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2113. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2114. __NDR_convert__int_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  2115. #elif defined(__NDR_convert__int_rep__thread_state_t__defined)
  2116. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2117. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2118. __NDR_convert__int_rep__thread_state_t((thread_state_t *)(a), f, c)
  2119. #elif defined(__NDR_convert__int_rep__mach_exc__natural_t__defined)
  2120. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2121. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2122. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__natural_t)
  2123. #elif defined(__NDR_convert__int_rep__natural_t__defined)
  2124. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2125. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2126. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__int_rep__natural_t)
  2127. #elif defined(__NDR_convert__int_rep__mach_exc__uint32_t__defined)
  2128. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2129. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2130. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__int_rep__mach_exc__uint32_t)
  2131. #elif defined(__NDR_convert__int_rep__uint32_t__defined)
  2132. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2133. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2134. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__int_rep__uint32_t)
  2135. #endif /* defined(__NDR_convert__*__defined) */
  2136. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined */
  2137. #ifndef __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt__defined
  2138. #if defined(__NDR_convert__int_rep__mach_exc__mach_msg_type_number_t__defined)
  2139. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt__defined
  2140. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt(a, f) \
  2141. __NDR_convert__int_rep__mach_exc__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  2142. #elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
  2143. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt__defined
  2144. #define __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt(a, f) \
  2145. __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
  2146. #endif /* defined(__NDR_convert__*__defined) */
  2147. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt__defined */
  2148. #ifndef __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2149. #if defined(__NDR_convert__char_rep__mach_exc__exception_type_t__defined)
  2150. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2151. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2152. __NDR_convert__char_rep__mach_exc__exception_type_t((exception_type_t *)(a), f)
  2153. #elif defined(__NDR_convert__char_rep__exception_type_t__defined)
  2154. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2155. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2156. __NDR_convert__char_rep__exception_type_t((exception_type_t *)(a), f)
  2157. #elif defined(__NDR_convert__char_rep__mach_exc__int__defined)
  2158. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2159. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2160. __NDR_convert__char_rep__mach_exc__int((int *)(a), f)
  2161. #elif defined(__NDR_convert__char_rep__int__defined)
  2162. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2163. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2164. __NDR_convert__char_rep__int((int *)(a), f)
  2165. #elif defined(__NDR_convert__char_rep__mach_exc__int32_t__defined)
  2166. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2167. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2168. __NDR_convert__char_rep__mach_exc__int32_t((int32_t *)(a), f)
  2169. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  2170. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2171. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2172. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  2173. #endif /* defined(__NDR_convert__*__defined) */
  2174. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined */
  2175. #ifndef __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2176. #if defined(__NDR_convert__char_rep__mach_exc__mach_exception_data_t__defined)
  2177. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2178. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2179. __NDR_convert__char_rep__mach_exc__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  2180. #elif defined(__NDR_convert__char_rep__mach_exception_data_t__defined)
  2181. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2182. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2183. __NDR_convert__char_rep__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  2184. #elif defined(__NDR_convert__char_rep__mach_exc__int64_t__defined)
  2185. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2186. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2187. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__int64_t)
  2188. #elif defined(__NDR_convert__char_rep__int64_t__defined)
  2189. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2190. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2191. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__char_rep__int64_t)
  2192. #endif /* defined(__NDR_convert__*__defined) */
  2193. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code__defined */
  2194. #ifndef __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2195. #if defined(__NDR_convert__char_rep__mach_exc__int__defined)
  2196. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2197. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2198. __NDR_convert__char_rep__mach_exc__int((int *)(a), f)
  2199. #elif defined(__NDR_convert__char_rep__int__defined)
  2200. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2201. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2202. __NDR_convert__char_rep__int((int *)(a), f)
  2203. #elif defined(__NDR_convert__char_rep__mach_exc__int32_t__defined)
  2204. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2205. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2206. __NDR_convert__char_rep__mach_exc__int32_t((int32_t *)(a), f)
  2207. #elif defined(__NDR_convert__char_rep__int32_t__defined)
  2208. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2209. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2210. __NDR_convert__char_rep__int32_t((int32_t *)(a), f)
  2211. #endif /* defined(__NDR_convert__*__defined) */
  2212. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor__defined */
  2213. #ifndef __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2214. #if defined(__NDR_convert__char_rep__mach_exc__thread_state_t__defined)
  2215. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2216. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2217. __NDR_convert__char_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  2218. #elif defined(__NDR_convert__char_rep__thread_state_t__defined)
  2219. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2220. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2221. __NDR_convert__char_rep__thread_state_t((thread_state_t *)(a), f, c)
  2222. #elif defined(__NDR_convert__char_rep__mach_exc__natural_t__defined)
  2223. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2224. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2225. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__natural_t)
  2226. #elif defined(__NDR_convert__char_rep__natural_t__defined)
  2227. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2228. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2229. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__char_rep__natural_t)
  2230. #elif defined(__NDR_convert__char_rep__mach_exc__uint32_t__defined)
  2231. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2232. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2233. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__char_rep__mach_exc__uint32_t)
  2234. #elif defined(__NDR_convert__char_rep__uint32_t__defined)
  2235. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2236. #define __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2237. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__char_rep__uint32_t)
  2238. #endif /* defined(__NDR_convert__*__defined) */
  2239. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined */
  2240. #ifndef __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2241. #if defined(__NDR_convert__float_rep__mach_exc__exception_type_t__defined)
  2242. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2243. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2244. __NDR_convert__float_rep__mach_exc__exception_type_t((exception_type_t *)(a), f)
  2245. #elif defined(__NDR_convert__float_rep__exception_type_t__defined)
  2246. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2247. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2248. __NDR_convert__float_rep__exception_type_t((exception_type_t *)(a), f)
  2249. #elif defined(__NDR_convert__float_rep__mach_exc__int__defined)
  2250. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2251. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2252. __NDR_convert__float_rep__mach_exc__int((int *)(a), f)
  2253. #elif defined(__NDR_convert__float_rep__int__defined)
  2254. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2255. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2256. __NDR_convert__float_rep__int((int *)(a), f)
  2257. #elif defined(__NDR_convert__float_rep__mach_exc__int32_t__defined)
  2258. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2259. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2260. __NDR_convert__float_rep__mach_exc__int32_t((int32_t *)(a), f)
  2261. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  2262. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined
  2263. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception(a, f) \
  2264. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  2265. #endif /* defined(__NDR_convert__*__defined) */
  2266. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined */
  2267. #ifndef __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2268. #if defined(__NDR_convert__float_rep__mach_exc__mach_exception_data_t__defined)
  2269. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2270. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2271. __NDR_convert__float_rep__mach_exc__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  2272. #elif defined(__NDR_convert__float_rep__mach_exception_data_t__defined)
  2273. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2274. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2275. __NDR_convert__float_rep__mach_exception_data_t((mach_exception_data_t *)(a), f, c)
  2276. #elif defined(__NDR_convert__float_rep__mach_exc__int64_t__defined)
  2277. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2278. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2279. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__int64_t)
  2280. #elif defined(__NDR_convert__float_rep__int64_t__defined)
  2281. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code__defined
  2282. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code(a, f, c) \
  2283. __NDR_convert__ARRAY((int64_t *)(a), f, c, __NDR_convert__float_rep__int64_t)
  2284. #endif /* defined(__NDR_convert__*__defined) */
  2285. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code__defined */
  2286. #ifndef __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2287. #if defined(__NDR_convert__float_rep__mach_exc__int__defined)
  2288. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2289. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2290. __NDR_convert__float_rep__mach_exc__int((int *)(a), f)
  2291. #elif defined(__NDR_convert__float_rep__int__defined)
  2292. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2293. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2294. __NDR_convert__float_rep__int((int *)(a), f)
  2295. #elif defined(__NDR_convert__float_rep__mach_exc__int32_t__defined)
  2296. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2297. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2298. __NDR_convert__float_rep__mach_exc__int32_t((int32_t *)(a), f)
  2299. #elif defined(__NDR_convert__float_rep__int32_t__defined)
  2300. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor__defined
  2301. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor(a, f) \
  2302. __NDR_convert__float_rep__int32_t((int32_t *)(a), f)
  2303. #endif /* defined(__NDR_convert__*__defined) */
  2304. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor__defined */
  2305. #ifndef __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2306. #if defined(__NDR_convert__float_rep__mach_exc__thread_state_t__defined)
  2307. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2308. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2309. __NDR_convert__float_rep__mach_exc__thread_state_t((thread_state_t *)(a), f, c)
  2310. #elif defined(__NDR_convert__float_rep__thread_state_t__defined)
  2311. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2312. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2313. __NDR_convert__float_rep__thread_state_t((thread_state_t *)(a), f, c)
  2314. #elif defined(__NDR_convert__float_rep__mach_exc__natural_t__defined)
  2315. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2316. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2317. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__natural_t)
  2318. #elif defined(__NDR_convert__float_rep__natural_t__defined)
  2319. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2320. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2321. __NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__float_rep__natural_t)
  2322. #elif defined(__NDR_convert__float_rep__mach_exc__uint32_t__defined)
  2323. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2324. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2325. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__float_rep__mach_exc__uint32_t)
  2326. #elif defined(__NDR_convert__float_rep__uint32_t__defined)
  2327. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined
  2328. #define __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state(a, f, c) \
  2329. __NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__float_rep__uint32_t)
  2330. #endif /* defined(__NDR_convert__*__defined) */
  2331. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined */
  2332. mig_internal kern_return_t __MIG_check__Request__mach_exception_raise_state_identity_t_OVR(__attribute__((__unused__)) __Request__mach_exception_raise_state_identity_t *In0P, __attribute__((__unused__)) __Request__mach_exception_raise_state_identity_t **In1PP)
  2333. {
  2334. const size_t sizeofRequest = sizeof(__Request__mach_exception_raise_state_identity_t);
  2335. typedef __Request__mach_exception_raise_state_identity_t __Request;
  2336. __Request *In1P;
  2337. #if __MigTypeCheck
  2338. unsigned int msgh_size;
  2339. #endif /* __MigTypeCheck */
  2340. unsigned int msgh_size_delta;
  2341. #if __MigTypeCheck
  2342. msgh_size = In0P->Head.msgh_size;
  2343. if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
  2344. (In0P->msgh_body.msgh_descriptor_count != 2) ||
  2345. (msgh_size < (mach_msg_size_t)(sizeofRequest - 592)) || (msgh_size > (mach_msg_size_t)sizeofRequest))
  2346. return MIG_BAD_ARGUMENTS;
  2347. #endif /* __MigTypeCheck */
  2348. #if __MigTypeCheck
  2349. if (In0P->thread.type != MACH_MSG_PORT_DESCRIPTOR ||
  2350. In0P->thread.disposition != 17)
  2351. return MIG_TYPE_ERROR;
  2352. #endif /* __MigTypeCheck */
  2353. #if __MigTypeCheck
  2354. if (In0P->task.type != MACH_MSG_PORT_DESCRIPTOR ||
  2355. In0P->task.disposition != 17)
  2356. return MIG_TYPE_ERROR;
  2357. #endif /* __MigTypeCheck */
  2358. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt__defined)
  2359. if (In0P->NDR.int_rep != NDR_record.int_rep)
  2360. __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt(&In0P->codeCnt, In0P->NDR.int_rep);
  2361. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt__defined */
  2362. msgh_size_delta = (8 * In0P->codeCnt);
  2363. #if __MigTypeCheck
  2364. if ( In0P->codeCnt > 2 )
  2365. return MIG_BAD_ARGUMENTS;
  2366. if (((msgh_size - (mach_msg_size_t)(sizeofRequest - 592)) / 8 < In0P->codeCnt) ||
  2367. (msgh_size < (mach_msg_size_t)(sizeofRequest - 592) + (8 * In0P->codeCnt)))
  2368. return MIG_BAD_ARGUMENTS;
  2369. msgh_size -= msgh_size_delta;
  2370. #endif /* __MigTypeCheck */
  2371. *In1PP = In1P = (__Request *) ((pointer_t) In0P + msgh_size_delta - 16);
  2372. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt__defined)
  2373. if (In0P->NDR.int_rep != NDR_record.int_rep)
  2374. __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt(&In1P->old_stateCnt, In1P->NDR.int_rep);
  2375. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt__defined */
  2376. #if __MigTypeCheck
  2377. if ( In1P->old_stateCnt > 144 )
  2378. return MIG_BAD_ARGUMENTS;
  2379. if (((msgh_size - (mach_msg_size_t)(sizeofRequest - 592)) / 4 != In1P->old_stateCnt) ||
  2380. (msgh_size != (mach_msg_size_t)(sizeofRequest - 592) + (4 * In1P->old_stateCnt)))
  2381. return MIG_BAD_ARGUMENTS;
  2382. #endif /* __MigTypeCheck */
  2383. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined) || \
  2384. defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code__defined) || \
  2385. defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__codeCnt__defined) || \
  2386. defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor__defined) || \
  2387. defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined) || \
  2388. defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_stateCnt__defined)
  2389. if (In0P->NDR.int_rep != NDR_record.int_rep) {
  2390. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined)
  2391. __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception(&In0P->exception, In0P->NDR.int_rep);
  2392. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__exception__defined */
  2393. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code__defined)
  2394. __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code(&In0P->code, In0P->NDR.int_rep, In0P->codeCnt);
  2395. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__code__defined */
  2396. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor__defined)
  2397. __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor(&In1P->flavor, In0P->NDR.int_rep);
  2398. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__flavor__defined */
  2399. #if defined(__NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined)
  2400. __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state(&In1P->old_state, In0P->NDR.int_rep, In1P->old_stateCnt);
  2401. #endif /* __NDR_convert__int_rep__Request__mach_exception_raise_state_identity_t__old_state__defined */
  2402. }
  2403. #endif /* defined(__NDR_convert__int_rep...) */
  2404. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined) || \
  2405. defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code__defined) || \
  2406. 0 || \
  2407. defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor__defined) || \
  2408. defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined) || \
  2409. 0
  2410. if (In0P->NDR.char_rep != NDR_record.char_rep) {
  2411. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined)
  2412. __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception(&In0P->exception, In0P->NDR.char_rep);
  2413. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__exception__defined */
  2414. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code__defined)
  2415. __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code(&In0P->code, In0P->NDR.char_rep, In0P->codeCnt);
  2416. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__code__defined */
  2417. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor__defined)
  2418. __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor(&In1P->flavor, In0P->NDR.char_rep);
  2419. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__flavor__defined */
  2420. #if defined(__NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined)
  2421. __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state(&In1P->old_state, In0P->NDR.char_rep, In1P->old_stateCnt);
  2422. #endif /* __NDR_convert__char_rep__Request__mach_exception_raise_state_identity_t__old_state__defined */
  2423. }
  2424. #endif /* defined(__NDR_convert__char_rep...) */
  2425. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined) || \
  2426. defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code__defined) || \
  2427. 0 || \
  2428. defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor__defined) || \
  2429. defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined) || \
  2430. 0
  2431. if (In0P->NDR.float_rep != NDR_record.float_rep) {
  2432. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined)
  2433. __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception(&In0P->exception, In0P->NDR.float_rep);
  2434. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__exception__defined */
  2435. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code__defined)
  2436. __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code(&In0P->code, In0P->NDR.float_rep, In0P->codeCnt);
  2437. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__code__defined */
  2438. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor__defined)
  2439. __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor(&In1P->flavor, In0P->NDR.float_rep);
  2440. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__flavor__defined */
  2441. #if defined(__NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined)
  2442. __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state(&In1P->old_state, In0P->NDR.float_rep, In1P->old_stateCnt);
  2443. #endif /* __NDR_convert__float_rep__Request__mach_exception_raise_state_identity_t__old_state__defined */
  2444. }
  2445. #endif /* defined(__NDR_convert__float_rep...) */
  2446. return MACH_MSG_SUCCESS;
  2447. }
  2448. #endif /* !defined(__MIG_check__Request__mach_exception_raise_state_identity_t__defined) */
  2449. #endif /* __MIG_check__Request__mach_exc_subsystem__ */
  2450. #endif /* ( __MigTypeCheck || __NDR_convert__ ) */
  2451. /* Routine catch_mach_exception_raise_state_identity_OVR */
  2452. #ifdef mig_external
  2453. mig_external
  2454. #else
  2455. extern
  2456. #endif /* mig_external */
  2457. kern_return_t catch_mach_exception_raise_state_identity_OVR
  2458. (
  2459. mach_port_t exception_port,
  2460. mach_port_t thread,
  2461. mach_port_t task,
  2462. exception_type_t exception,
  2463. mach_exception_data_t code,
  2464. mach_msg_type_number_t codeCnt,
  2465. int *flavor,
  2466. thread_state_t old_state,
  2467. mach_msg_type_number_t old_stateCnt,
  2468. thread_state_t new_state,
  2469. mach_msg_type_number_t *new_stateCnt
  2470. );
  2471. /* Routine mach_exception_raise_state_identity_OVR */
  2472. mig_internal novalue _Xmach_exception_raise_state_identity_OVR
  2473. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
  2474. {
  2475. #ifdef __MigPackStructs
  2476. #pragma pack(4)
  2477. #endif
  2478. typedef struct {
  2479. mach_msg_header_t Head;
  2480. /* start of the kernel processed data */
  2481. mach_msg_body_t msgh_body;
  2482. mach_msg_port_descriptor_t thread;
  2483. mach_msg_port_descriptor_t task;
  2484. /* end of the kernel processed data */
  2485. NDR_record_t NDR;
  2486. exception_type_t exception;
  2487. mach_msg_type_number_t codeCnt;
  2488. int64_t code[2];
  2489. int flavor;
  2490. mach_msg_type_number_t old_stateCnt;
  2491. natural_t old_state[144];
  2492. mach_msg_trailer_t trailer;
  2493. } Request;
  2494. #ifdef __MigPackStructs
  2495. #pragma pack()
  2496. #endif
  2497. typedef __Request__mach_exception_raise_state_identity_t __Request;
  2498. typedef __Reply__mach_exception_raise_state_identity_t Reply;
  2499. /*
  2500. * typedef struct {
  2501. * mach_msg_header_t Head;
  2502. * NDR_record_t NDR;
  2503. * kern_return_t RetCode;
  2504. * } mig_reply_error_t;
  2505. */
  2506. Request *In0P = (Request *) InHeadP;
  2507. Request *In1P;
  2508. Reply *OutP = (Reply *) OutHeadP;
  2509. #ifdef __MIG_check__Request__mach_exception_raise_state_identity_t__defined
  2510. kern_return_t check_result;
  2511. #endif /* __MIG_check__Request__mach_exception_raise_state_identity_t__defined */
  2512. __DeclareRcvRpc(2407, "mach_exception_raise_state_identity_OVR")
  2513. __BeforeRcvRpc(2407, "mach_exception_raise_state_identity_OVR")
  2514. #if defined(__MIG_check__Request__mach_exception_raise_state_identity_t__defined)
  2515. check_result = __MIG_check__Request__mach_exception_raise_state_identity_t_OVR((__Request *)In0P, (__Request **)&In1P);
  2516. if (check_result != MACH_MSG_SUCCESS)
  2517. { MIG_RETURN_ERROR(OutP, check_result); }
  2518. #endif /* defined(__MIG_check__Request__mach_exception_raise_state_identity_t__defined) */
  2519. OutP->new_stateCnt = 144;
  2520. OutP->RetCode = catch_mach_exception_raise_state_identity_OVR(In0P->Head.msgh_request_port, In0P->thread.name, In0P->task.name, In0P->exception, In0P->code, In0P->codeCnt, &In1P->flavor, In1P->old_state, In1P->old_stateCnt, OutP->new_state, &OutP->new_stateCnt);
  2521. if (OutP->RetCode != KERN_SUCCESS) {
  2522. MIG_RETURN_ERROR(OutP, OutP->RetCode);
  2523. }
  2524. OutP->NDR = NDR_record;
  2525. OutP->flavor = In1P->flavor;
  2526. OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply) - 576) + (((4 * OutP->new_stateCnt)));
  2527. __AfterRcvRpc(2407, "mach_exception_raise_state_identity_OVR")
  2528. }
  2529. #ifdef mig_external
  2530. mig_external
  2531. #else
  2532. extern
  2533. #endif /* mig_external */
  2534. boolean_t mach_exc_server_OVR(mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
  2535. #ifdef mig_external
  2536. mig_external
  2537. #else
  2538. extern
  2539. #endif /* mig_external */
  2540. mig_routine_t mach_exc_server_routine_OVR(mach_msg_header_t *InHeadP);
  2541. /* Description of this subsystem, for use in direct RPC */
  2542. const struct catch_mach_exc_subsystem_OVR {
  2543. mig_server_routine_t server; /* Server routine */
  2544. mach_msg_id_t start; /* Min routine number */
  2545. mach_msg_id_t end; /* Max routine number + 1 */
  2546. unsigned int maxsize; /* Max msg size */
  2547. vm_address_t reserved; /* Reserved */
  2548. struct routine_descriptor /*Array of routine descriptors */
  2549. routine[3];
  2550. } catch_mach_exc_subsystem_OVR = {
  2551. mach_exc_server_routine_OVR,
  2552. 2405,
  2553. 2408,
  2554. (mach_msg_size_t)sizeof(union __ReplyUnion__catch_mach_exc_subsystem),
  2555. (vm_address_t)0,
  2556. {
  2557. { (mig_impl_routine_t) 0,
  2558. (mig_stub_routine_t) _Xmach_exception_raise_OVR, 6, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__mach_exception_raise_t)},
  2559. { (mig_impl_routine_t) 0,
  2560. (mig_stub_routine_t) _Xmach_exception_raise_state_OVR, 9, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__mach_exception_raise_state_t)},
  2561. { (mig_impl_routine_t) 0,
  2562. (mig_stub_routine_t) _Xmach_exception_raise_state_identity_OVR, 11, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__mach_exception_raise_state_identity_t)},
  2563. }
  2564. };
  2565. mig_external boolean_t mach_exc_server_OVR
  2566. (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
  2567. {
  2568. /*
  2569. * typedef struct {
  2570. * mach_msg_header_t Head;
  2571. * NDR_record_t NDR;
  2572. * kern_return_t RetCode;
  2573. * } mig_reply_error_t;
  2574. */
  2575. register mig_routine_t routine;
  2576. OutHeadP->msgh_bits = MACH_MSGH_BITS(MACH_MSGH_BITS_REPLY(InHeadP->msgh_bits), 0);
  2577. OutHeadP->msgh_remote_port = InHeadP->msgh_reply_port;
  2578. /* Minimal size: routine() will update it if different */
  2579. OutHeadP->msgh_size = (mach_msg_size_t)sizeof(mig_reply_error_t);
  2580. OutHeadP->msgh_local_port = MACH_PORT_NULL;
  2581. OutHeadP->msgh_id = InHeadP->msgh_id + 100;
  2582. if ((InHeadP->msgh_id > 2407) || (InHeadP->msgh_id < 2405) ||
  2583. ((routine = catch_mach_exc_subsystem_OVR.routine[InHeadP->msgh_id - 2405].stub_routine) == 0))
  2584. {
  2585. ((mig_reply_error_t *)OutHeadP)->NDR = NDR_record;
  2586. ((mig_reply_error_t *)OutHeadP)->RetCode = MIG_BAD_ID;
  2587. return FALSE;
  2588. }
  2589. (*routine) (InHeadP, OutHeadP);
  2590. return TRUE;
  2591. }
  2592. mig_external mig_routine_t mach_exc_server_routine_OVR
  2593. (mach_msg_header_t *InHeadP)
  2594. {
  2595. register int msgh_id;
  2596. msgh_id = InHeadP->msgh_id - 2405;
  2597. if ((msgh_id > 2) || (msgh_id < 0))
  2598. return 0;
  2599. return catch_mach_exc_subsystem_OVR.routine[msgh_id].stub_routine;
  2600. }
  2601. #if defined(__cplusplus)
  2602. } /* extern "C" */
  2603. #endif
  2604. /* End mach_excServer.c */
  2605. #elif defined(_MSC_VER)
  2606. #pragma warning(disable: 4206) // nonstandard extension used : translation unit is empty
  2607. #endif // __APPLE__