PageRenderTime 60ms CodeModel.GetById 2ms app.highlight 49ms RepoModel.GetById 1ms app.codeStats 1ms

/thirdparty/breakpad/client/mac/handler/breakpad_exc_server.c

http://github.com/tomahawk-player/tomahawk
C | 1212 lines | 1063 code | 114 blank | 35 comment | 66 complexity | d6f82029c6bc34a1ee89b8bf40666501 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1/*
  2 * IDENTIFICATION:
  3 * stub generated Mon Jun 16 18:08:10 2008
  4 * with a MiG generated Tue Feb 19 02:01:43 PST 2008 by root@b75.local
  5 * OPTIONS: 
  6 */
  7
  8/* Module exc */
  9
 10#define	__MIG_check__Request__exc_subsystem__ 1
 11#define	__NDR_convert__Request__exc_subsystem__ 1
 12
 13#include <string.h>
 14#include <mach/ndr.h>
 15#include <mach/boolean.h>
 16#include <mach/kern_return.h>
 17#include <mach/notify.h>
 18#include <mach/mach_types.h>
 19#include <mach/message.h>
 20#include <mach/mig_errors.h>
 21#include <mach/port.h>
 22
 23#include <mach/std_types.h>
 24#include <mach/mig.h>
 25#include <mach/mig.h>
 26#include <mach/mach_types.h>
 27
 28#ifndef	mig_internal
 29#define	mig_internal	static __inline__
 30#endif	/* mig_internal */
 31
 32#ifndef	mig_external
 33#define mig_external
 34#endif	/* mig_external */
 35
 36#if	!defined(__MigTypeCheck) && defined(TypeCheck)
 37#define	__MigTypeCheck		TypeCheck	/* Legacy setting */
 38#endif	/* !defined(__MigTypeCheck) */
 39
 40#if	!defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_)
 41#define	__MigKernelSpecificCode	_MIG_KERNEL_SPECIFIC_CODE_	/* Legacy setting */
 42#endif	/* !defined(__MigKernelSpecificCode) */
 43
 44#ifndef	LimitCheck
 45#define	LimitCheck 0
 46#endif	/* LimitCheck */
 47
 48#ifndef	min
 49#define	min(a,b)  ( ((a) < (b))? (a): (b) )
 50#endif	/* min */
 51
 52#if !defined(_WALIGN_)
 53#define _WALIGN_(x) (((x) + 3) & ~3)
 54#endif /* !defined(_WALIGN_) */
 55
 56#if !defined(_WALIGNSZ_)
 57#define _WALIGNSZ_(x) _WALIGN_(sizeof(x))
 58#endif /* !defined(_WALIGNSZ_) */
 59
 60#ifndef	UseStaticTemplates
 61#define	UseStaticTemplates	0
 62#endif	/* UseStaticTemplates */
 63
 64#ifndef	__DeclareRcvRpc
 65#define	__DeclareRcvRpc(_NUM_, _NAME_)
 66#endif	/* __DeclareRcvRpc */
 67
 68#ifndef	__BeforeRcvRpc
 69#define	__BeforeRcvRpc(_NUM_, _NAME_)
 70#endif	/* __BeforeRcvRpc */
 71
 72#ifndef	__AfterRcvRpc
 73#define	__AfterRcvRpc(_NUM_, _NAME_)
 74#endif	/* __AfterRcvRpc */
 75
 76#ifndef	__DeclareRcvSimple
 77#define	__DeclareRcvSimple(_NUM_, _NAME_)
 78#endif	/* __DeclareRcvSimple */
 79
 80#ifndef	__BeforeRcvSimple
 81#define	__BeforeRcvSimple(_NUM_, _NAME_)
 82#endif	/* __BeforeRcvSimple */
 83
 84#ifndef	__AfterRcvSimple
 85#define	__AfterRcvSimple(_NUM_, _NAME_)
 86#endif	/* __AfterRcvSimple */
 87
 88#define novalue void
 89
 90#define msgh_request_port	msgh_local_port
 91#define MACH_MSGH_BITS_REQUEST(bits)	MACH_MSGH_BITS_LOCAL(bits)
 92#define msgh_reply_port		msgh_remote_port
 93#define MACH_MSGH_BITS_REPLY(bits)	MACH_MSGH_BITS_REMOTE(bits)
 94
 95#define MIG_RETURN_ERROR(X, code)	{\
 96				((mig_reply_error_t *)X)->RetCode = code;\
 97				((mig_reply_error_t *)X)->NDR = NDR_record;\
 98				return;\
 99				}
100
101/* typedefs for all requests */
102
103#ifndef __Request__exc_subsystem__defined
104#define __Request__exc_subsystem__defined
105
106#ifdef  __MigPackStructs
107#pragma pack(4)
108#endif
109	typedef struct {
110		mach_msg_header_t Head;
111		/* start of the kernel processed data */
112		mach_msg_body_t msgh_body;
113		mach_msg_port_descriptor_t thread;
114		mach_msg_port_descriptor_t task;
115		/* end of the kernel processed data */
116		NDR_record_t NDR;
117		exception_type_t exception;
118		mach_msg_type_number_t codeCnt;
119		integer_t code[2];
120	} __Request__exception_raise_t;
121#ifdef  __MigPackStructs
122#pragma pack()
123#endif
124
125#ifdef  __MigPackStructs
126#pragma pack(4)
127#endif
128	typedef struct {
129		mach_msg_header_t Head;
130		NDR_record_t NDR;
131		exception_type_t exception;
132		mach_msg_type_number_t codeCnt;
133		integer_t code[2];
134		int flavor;
135		mach_msg_type_number_t old_stateCnt;
136		natural_t old_state[144];
137	} __Request__exception_raise_state_t;
138#ifdef  __MigPackStructs
139#pragma pack()
140#endif
141
142#ifdef  __MigPackStructs
143#pragma pack(4)
144#endif
145	typedef struct {
146		mach_msg_header_t Head;
147		/* start of the kernel processed data */
148		mach_msg_body_t msgh_body;
149		mach_msg_port_descriptor_t thread;
150		mach_msg_port_descriptor_t task;
151		/* end of the kernel processed data */
152		NDR_record_t NDR;
153		exception_type_t exception;
154		mach_msg_type_number_t codeCnt;
155		integer_t code[2];
156		int flavor;
157		mach_msg_type_number_t old_stateCnt;
158		natural_t old_state[144];
159	} __Request__exception_raise_state_identity_t;
160#ifdef  __MigPackStructs
161#pragma pack()
162#endif
163#endif /* !__Request__exc_subsystem__defined */
164
165/* typedefs for all replies */
166
167#ifndef __Reply__exc_subsystem__defined
168#define __Reply__exc_subsystem__defined
169
170#ifdef  __MigPackStructs
171#pragma pack(4)
172#endif
173	typedef struct {
174		mach_msg_header_t Head;
175		NDR_record_t NDR;
176		kern_return_t RetCode;
177	} __Reply__exception_raise_t;
178#ifdef  __MigPackStructs
179#pragma pack()
180#endif
181
182#ifdef  __MigPackStructs
183#pragma pack(4)
184#endif
185	typedef struct {
186		mach_msg_header_t Head;
187		NDR_record_t NDR;
188		kern_return_t RetCode;
189		int flavor;
190		mach_msg_type_number_t new_stateCnt;
191		natural_t new_state[144];
192	} __Reply__exception_raise_state_t;
193#ifdef  __MigPackStructs
194#pragma pack()
195#endif
196
197#ifdef  __MigPackStructs
198#pragma pack(4)
199#endif
200	typedef struct {
201		mach_msg_header_t Head;
202		NDR_record_t NDR;
203		kern_return_t RetCode;
204		int flavor;
205		mach_msg_type_number_t new_stateCnt;
206		natural_t new_state[144];
207	} __Reply__exception_raise_state_identity_t;
208#ifdef  __MigPackStructs
209#pragma pack()
210#endif
211#endif /* !__Reply__exc_subsystem__defined */
212
213
214/* union of all replies */
215
216#ifndef __ReplyUnion__breakpad_exc_subsystem__defined
217#define __ReplyUnion__breakpad_exc_subsystem__defined
218union __ReplyUnion__breakpad_exc_subsystem {
219	__Reply__exception_raise_t Reply_exception_raise;
220	__Reply__exception_raise_state_t Reply_exception_raise_state;
221	__Reply__exception_raise_state_identity_t Reply_exception_raise_state_identity;
222};
223#endif /* __RequestUnion__breakpad_exc_subsystem__defined */
224/* Forward Declarations */
225
226
227mig_internal novalue _Xexception_raise
228	(mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
229
230mig_internal novalue _Xexception_raise_state
231	(mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
232
233mig_internal novalue _Xexception_raise_state_identity
234	(mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP);
235
236
237#if ( __MigTypeCheck || __NDR_convert__ )
238#if __MIG_check__Request__exc_subsystem__
239#if !defined(__MIG_check__Request__exception_raise_t__defined)
240#define __MIG_check__Request__exception_raise_t__defined
241#ifndef __NDR_convert__int_rep__Request__exception_raise_t__exception__defined
242#if	defined(__NDR_convert__int_rep__exc__exception_type_t__defined)
243#define	__NDR_convert__int_rep__Request__exception_raise_t__exception__defined
244#define	__NDR_convert__int_rep__Request__exception_raise_t__exception(a, f) \
245	__NDR_convert__int_rep__exc__exception_type_t((exception_type_t *)(a), f)
246#elif	defined(__NDR_convert__int_rep__exception_type_t__defined)
247#define	__NDR_convert__int_rep__Request__exception_raise_t__exception__defined
248#define	__NDR_convert__int_rep__Request__exception_raise_t__exception(a, f) \
249	__NDR_convert__int_rep__exception_type_t((exception_type_t *)(a), f)
250#elif	defined(__NDR_convert__int_rep__exc__int__defined)
251#define	__NDR_convert__int_rep__Request__exception_raise_t__exception__defined
252#define	__NDR_convert__int_rep__Request__exception_raise_t__exception(a, f) \
253	__NDR_convert__int_rep__exc__int((int *)(a), f)
254#elif	defined(__NDR_convert__int_rep__int__defined)
255#define	__NDR_convert__int_rep__Request__exception_raise_t__exception__defined
256#define	__NDR_convert__int_rep__Request__exception_raise_t__exception(a, f) \
257	__NDR_convert__int_rep__int((int *)(a), f)
258#elif	defined(__NDR_convert__int_rep__exc__int32_t__defined)
259#define	__NDR_convert__int_rep__Request__exception_raise_t__exception__defined
260#define	__NDR_convert__int_rep__Request__exception_raise_t__exception(a, f) \
261	__NDR_convert__int_rep__exc__int32_t((int32_t *)(a), f)
262#elif	defined(__NDR_convert__int_rep__int32_t__defined)
263#define	__NDR_convert__int_rep__Request__exception_raise_t__exception__defined
264#define	__NDR_convert__int_rep__Request__exception_raise_t__exception(a, f) \
265	__NDR_convert__int_rep__int32_t((int32_t *)(a), f)
266#endif /* defined(__NDR_convert__*__defined) */
267#endif /* __NDR_convert__int_rep__Request__exception_raise_t__exception__defined */
268
269#ifndef __NDR_convert__int_rep__Request__exception_raise_t__code__defined
270#if	defined(__NDR_convert__int_rep__exc__exception_data_t__defined)
271#define	__NDR_convert__int_rep__Request__exception_raise_t__code__defined
272#define	__NDR_convert__int_rep__Request__exception_raise_t__code(a, f, c) \
273	__NDR_convert__int_rep__exc__exception_data_t((exception_data_t *)(a), f, c)
274#elif	defined(__NDR_convert__int_rep__exception_data_t__defined)
275#define	__NDR_convert__int_rep__Request__exception_raise_t__code__defined
276#define	__NDR_convert__int_rep__Request__exception_raise_t__code(a, f, c) \
277	__NDR_convert__int_rep__exception_data_t((exception_data_t *)(a), f, c)
278#elif	defined(__NDR_convert__int_rep__exc__integer_t__defined)
279#define	__NDR_convert__int_rep__Request__exception_raise_t__code__defined
280#define	__NDR_convert__int_rep__Request__exception_raise_t__code(a, f, c) \
281	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__int_rep__exc__integer_t)
282#elif	defined(__NDR_convert__int_rep__integer_t__defined)
283#define	__NDR_convert__int_rep__Request__exception_raise_t__code__defined
284#define	__NDR_convert__int_rep__Request__exception_raise_t__code(a, f, c) \
285	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__int_rep__integer_t)
286#elif	defined(__NDR_convert__int_rep__exc__int32_t__defined)
287#define	__NDR_convert__int_rep__Request__exception_raise_t__code__defined
288#define	__NDR_convert__int_rep__Request__exception_raise_t__code(a, f, c) \
289	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__int_rep__exc__int32_t)
290#elif	defined(__NDR_convert__int_rep__int32_t__defined)
291#define	__NDR_convert__int_rep__Request__exception_raise_t__code__defined
292#define	__NDR_convert__int_rep__Request__exception_raise_t__code(a, f, c) \
293	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__int_rep__int32_t)
294#endif /* defined(__NDR_convert__*__defined) */
295#endif /* __NDR_convert__int_rep__Request__exception_raise_t__code__defined */
296
297#ifndef __NDR_convert__int_rep__Request__exception_raise_t__codeCnt__defined
298#if	defined(__NDR_convert__int_rep__exc__mach_msg_type_number_t__defined)
299#define	__NDR_convert__int_rep__Request__exception_raise_t__codeCnt__defined
300#define	__NDR_convert__int_rep__Request__exception_raise_t__codeCnt(a, f) \
301	__NDR_convert__int_rep__exc__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
302#elif	defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
303#define	__NDR_convert__int_rep__Request__exception_raise_t__codeCnt__defined
304#define	__NDR_convert__int_rep__Request__exception_raise_t__codeCnt(a, f) \
305	__NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
306#endif /* defined(__NDR_convert__*__defined) */
307#endif /* __NDR_convert__int_rep__Request__exception_raise_t__codeCnt__defined */
308
309#ifndef __NDR_convert__char_rep__Request__exception_raise_t__exception__defined
310#if	defined(__NDR_convert__char_rep__exc__exception_type_t__defined)
311#define	__NDR_convert__char_rep__Request__exception_raise_t__exception__defined
312#define	__NDR_convert__char_rep__Request__exception_raise_t__exception(a, f) \
313	__NDR_convert__char_rep__exc__exception_type_t((exception_type_t *)(a), f)
314#elif	defined(__NDR_convert__char_rep__exception_type_t__defined)
315#define	__NDR_convert__char_rep__Request__exception_raise_t__exception__defined
316#define	__NDR_convert__char_rep__Request__exception_raise_t__exception(a, f) \
317	__NDR_convert__char_rep__exception_type_t((exception_type_t *)(a), f)
318#elif	defined(__NDR_convert__char_rep__exc__int__defined)
319#define	__NDR_convert__char_rep__Request__exception_raise_t__exception__defined
320#define	__NDR_convert__char_rep__Request__exception_raise_t__exception(a, f) \
321	__NDR_convert__char_rep__exc__int((int *)(a), f)
322#elif	defined(__NDR_convert__char_rep__int__defined)
323#define	__NDR_convert__char_rep__Request__exception_raise_t__exception__defined
324#define	__NDR_convert__char_rep__Request__exception_raise_t__exception(a, f) \
325	__NDR_convert__char_rep__int((int *)(a), f)
326#elif	defined(__NDR_convert__char_rep__exc__int32_t__defined)
327#define	__NDR_convert__char_rep__Request__exception_raise_t__exception__defined
328#define	__NDR_convert__char_rep__Request__exception_raise_t__exception(a, f) \
329	__NDR_convert__char_rep__exc__int32_t((int32_t *)(a), f)
330#elif	defined(__NDR_convert__char_rep__int32_t__defined)
331#define	__NDR_convert__char_rep__Request__exception_raise_t__exception__defined
332#define	__NDR_convert__char_rep__Request__exception_raise_t__exception(a, f) \
333	__NDR_convert__char_rep__int32_t((int32_t *)(a), f)
334#endif /* defined(__NDR_convert__*__defined) */
335#endif /* __NDR_convert__char_rep__Request__exception_raise_t__exception__defined */
336
337#ifndef __NDR_convert__char_rep__Request__exception_raise_t__code__defined
338#if	defined(__NDR_convert__char_rep__exc__exception_data_t__defined)
339#define	__NDR_convert__char_rep__Request__exception_raise_t__code__defined
340#define	__NDR_convert__char_rep__Request__exception_raise_t__code(a, f, c) \
341	__NDR_convert__char_rep__exc__exception_data_t((exception_data_t *)(a), f, c)
342#elif	defined(__NDR_convert__char_rep__exception_data_t__defined)
343#define	__NDR_convert__char_rep__Request__exception_raise_t__code__defined
344#define	__NDR_convert__char_rep__Request__exception_raise_t__code(a, f, c) \
345	__NDR_convert__char_rep__exception_data_t((exception_data_t *)(a), f, c)
346#elif	defined(__NDR_convert__char_rep__exc__integer_t__defined)
347#define	__NDR_convert__char_rep__Request__exception_raise_t__code__defined
348#define	__NDR_convert__char_rep__Request__exception_raise_t__code(a, f, c) \
349	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__char_rep__exc__integer_t)
350#elif	defined(__NDR_convert__char_rep__integer_t__defined)
351#define	__NDR_convert__char_rep__Request__exception_raise_t__code__defined
352#define	__NDR_convert__char_rep__Request__exception_raise_t__code(a, f, c) \
353	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__char_rep__integer_t)
354#elif	defined(__NDR_convert__char_rep__exc__int32_t__defined)
355#define	__NDR_convert__char_rep__Request__exception_raise_t__code__defined
356#define	__NDR_convert__char_rep__Request__exception_raise_t__code(a, f, c) \
357	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__char_rep__exc__int32_t)
358#elif	defined(__NDR_convert__char_rep__int32_t__defined)
359#define	__NDR_convert__char_rep__Request__exception_raise_t__code__defined
360#define	__NDR_convert__char_rep__Request__exception_raise_t__code(a, f, c) \
361	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__char_rep__int32_t)
362#endif /* defined(__NDR_convert__*__defined) */
363#endif /* __NDR_convert__char_rep__Request__exception_raise_t__code__defined */
364
365#ifndef __NDR_convert__float_rep__Request__exception_raise_t__exception__defined
366#if	defined(__NDR_convert__float_rep__exc__exception_type_t__defined)
367#define	__NDR_convert__float_rep__Request__exception_raise_t__exception__defined
368#define	__NDR_convert__float_rep__Request__exception_raise_t__exception(a, f) \
369	__NDR_convert__float_rep__exc__exception_type_t((exception_type_t *)(a), f)
370#elif	defined(__NDR_convert__float_rep__exception_type_t__defined)
371#define	__NDR_convert__float_rep__Request__exception_raise_t__exception__defined
372#define	__NDR_convert__float_rep__Request__exception_raise_t__exception(a, f) \
373	__NDR_convert__float_rep__exception_type_t((exception_type_t *)(a), f)
374#elif	defined(__NDR_convert__float_rep__exc__int__defined)
375#define	__NDR_convert__float_rep__Request__exception_raise_t__exception__defined
376#define	__NDR_convert__float_rep__Request__exception_raise_t__exception(a, f) \
377	__NDR_convert__float_rep__exc__int((int *)(a), f)
378#elif	defined(__NDR_convert__float_rep__int__defined)
379#define	__NDR_convert__float_rep__Request__exception_raise_t__exception__defined
380#define	__NDR_convert__float_rep__Request__exception_raise_t__exception(a, f) \
381	__NDR_convert__float_rep__int((int *)(a), f)
382#elif	defined(__NDR_convert__float_rep__exc__int32_t__defined)
383#define	__NDR_convert__float_rep__Request__exception_raise_t__exception__defined
384#define	__NDR_convert__float_rep__Request__exception_raise_t__exception(a, f) \
385	__NDR_convert__float_rep__exc__int32_t((int32_t *)(a), f)
386#elif	defined(__NDR_convert__float_rep__int32_t__defined)
387#define	__NDR_convert__float_rep__Request__exception_raise_t__exception__defined
388#define	__NDR_convert__float_rep__Request__exception_raise_t__exception(a, f) \
389	__NDR_convert__float_rep__int32_t((int32_t *)(a), f)
390#endif /* defined(__NDR_convert__*__defined) */
391#endif /* __NDR_convert__float_rep__Request__exception_raise_t__exception__defined */
392
393#ifndef __NDR_convert__float_rep__Request__exception_raise_t__code__defined
394#if	defined(__NDR_convert__float_rep__exc__exception_data_t__defined)
395#define	__NDR_convert__float_rep__Request__exception_raise_t__code__defined
396#define	__NDR_convert__float_rep__Request__exception_raise_t__code(a, f, c) \
397	__NDR_convert__float_rep__exc__exception_data_t((exception_data_t *)(a), f, c)
398#elif	defined(__NDR_convert__float_rep__exception_data_t__defined)
399#define	__NDR_convert__float_rep__Request__exception_raise_t__code__defined
400#define	__NDR_convert__float_rep__Request__exception_raise_t__code(a, f, c) \
401	__NDR_convert__float_rep__exception_data_t((exception_data_t *)(a), f, c)
402#elif	defined(__NDR_convert__float_rep__exc__integer_t__defined)
403#define	__NDR_convert__float_rep__Request__exception_raise_t__code__defined
404#define	__NDR_convert__float_rep__Request__exception_raise_t__code(a, f, c) \
405	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__float_rep__exc__integer_t)
406#elif	defined(__NDR_convert__float_rep__integer_t__defined)
407#define	__NDR_convert__float_rep__Request__exception_raise_t__code__defined
408#define	__NDR_convert__float_rep__Request__exception_raise_t__code(a, f, c) \
409	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__float_rep__integer_t)
410#elif	defined(__NDR_convert__float_rep__exc__int32_t__defined)
411#define	__NDR_convert__float_rep__Request__exception_raise_t__code__defined
412#define	__NDR_convert__float_rep__Request__exception_raise_t__code(a, f, c) \
413	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__float_rep__exc__int32_t)
414#elif	defined(__NDR_convert__float_rep__int32_t__defined)
415#define	__NDR_convert__float_rep__Request__exception_raise_t__code__defined
416#define	__NDR_convert__float_rep__Request__exception_raise_t__code(a, f, c) \
417	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__float_rep__int32_t)
418#endif /* defined(__NDR_convert__*__defined) */
419#endif /* __NDR_convert__float_rep__Request__exception_raise_t__code__defined */
420
421
422mig_internal kern_return_t __MIG_check__Request__exception_raise_t(__attribute__((__unused__)) __Request__exception_raise_t *In0P)
423{
424
425	typedef __Request__exception_raise_t __Request;
426#if	__MigTypeCheck
427	unsigned int msgh_size;
428#endif	/* __MigTypeCheck */
429
430#if	__MigTypeCheck
431	msgh_size = In0P->Head.msgh_size;
432	if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
433	    (In0P->msgh_body.msgh_descriptor_count != 2) ||
434	    (msgh_size < (mach_msg_size_t)(sizeof(__Request) - 8)) ||  (msgh_size > (mach_msg_size_t)sizeof(__Request))
435)
436		return MIG_BAD_ARGUMENTS;
437#endif	/* __MigTypeCheck */
438
439#if	__MigTypeCheck
440	if (In0P->thread.type != MACH_MSG_PORT_DESCRIPTOR ||
441	    In0P->thread.disposition != 17)
442		return MIG_TYPE_ERROR;
443#endif	/* __MigTypeCheck */
444
445#if	__MigTypeCheck
446	if (In0P->task.type != MACH_MSG_PORT_DESCRIPTOR ||
447	    In0P->task.disposition != 17)
448		return MIG_TYPE_ERROR;
449#endif	/* __MigTypeCheck */
450
451#if defined(__NDR_convert__int_rep__Request__exception_raise_t__codeCnt__defined)
452	if (In0P->NDR.int_rep != NDR_record.int_rep)
453		__NDR_convert__int_rep__Request__exception_raise_t__codeCnt(&In0P->codeCnt, In0P->NDR.int_rep);
454#endif	/* __NDR_convert__int_rep__Request__exception_raise_t__codeCnt__defined */
455#if	__MigTypeCheck
456	if (msgh_size != (mach_msg_size_t)(sizeof(__Request) - 8) + ((4 * In0P->codeCnt)))
457		return MIG_BAD_ARGUMENTS;
458#endif	/* __MigTypeCheck */
459
460#if	defined(__NDR_convert__int_rep__Request__exception_raise_t__exception__defined) || \
461	defined(__NDR_convert__int_rep__Request__exception_raise_t__code__defined) || \
462	defined(__NDR_convert__int_rep__Request__exception_raise_t__codeCnt__defined)
463	if (In0P->NDR.int_rep != NDR_record.int_rep) {
464#if defined(__NDR_convert__int_rep__Request__exception_raise_t__exception__defined)
465		__NDR_convert__int_rep__Request__exception_raise_t__exception(&In0P->exception, In0P->NDR.int_rep);
466#endif	/* __NDR_convert__int_rep__Request__exception_raise_t__exception__defined */
467#if defined(__NDR_convert__int_rep__Request__exception_raise_t__code__defined)
468		__NDR_convert__int_rep__Request__exception_raise_t__code(&In0P->code, In0P->NDR.int_rep, In0P->codeCnt);
469#endif	/* __NDR_convert__int_rep__Request__exception_raise_t__code__defined */
470	}
471#endif	/* defined(__NDR_convert__int_rep...) */
472
473#if	defined(__NDR_convert__char_rep__Request__exception_raise_t__exception__defined) || \
474	defined(__NDR_convert__char_rep__Request__exception_raise_t__code__defined) || \
475	0
476	if (In0P->NDR.char_rep != NDR_record.char_rep) {
477#if defined(__NDR_convert__char_rep__Request__exception_raise_t__exception__defined)
478		__NDR_convert__char_rep__Request__exception_raise_t__exception(&In0P->exception, In0P->NDR.char_rep);
479#endif	/* __NDR_convert__char_rep__Request__exception_raise_t__exception__defined */
480#if defined(__NDR_convert__char_rep__Request__exception_raise_t__code__defined)
481		__NDR_convert__char_rep__Request__exception_raise_t__code(&In0P->code, In0P->NDR.char_rep, In0P->codeCnt);
482#endif	/* __NDR_convert__char_rep__Request__exception_raise_t__code__defined */
483	}
484#endif	/* defined(__NDR_convert__char_rep...) */
485
486#if	defined(__NDR_convert__float_rep__Request__exception_raise_t__exception__defined) || \
487	defined(__NDR_convert__float_rep__Request__exception_raise_t__code__defined) || \
488	0
489	if (In0P->NDR.float_rep != NDR_record.float_rep) {
490#if defined(__NDR_convert__float_rep__Request__exception_raise_t__exception__defined)
491		__NDR_convert__float_rep__Request__exception_raise_t__exception(&In0P->exception, In0P->NDR.float_rep);
492#endif	/* __NDR_convert__float_rep__Request__exception_raise_t__exception__defined */
493#if defined(__NDR_convert__float_rep__Request__exception_raise_t__code__defined)
494		__NDR_convert__float_rep__Request__exception_raise_t__code(&In0P->code, In0P->NDR.float_rep, In0P->codeCnt);
495#endif	/* __NDR_convert__float_rep__Request__exception_raise_t__code__defined */
496	}
497#endif	/* defined(__NDR_convert__float_rep...) */
498
499	return MACH_MSG_SUCCESS;
500}
501#endif /* !defined(__MIG_check__Request__exception_raise_t__defined) */
502#endif /* __MIG_check__Request__exc_subsystem__ */
503#endif /* ( __MigTypeCheck || __NDR_convert__ ) */
504
505
506/* Routine exception_raise */
507#ifdef	mig_external
508mig_external
509#else
510extern
511#endif	/* mig_external */
512kern_return_t breakpad_exception_raise
513(
514	mach_port_t exception_port,
515	mach_port_t thread,
516	mach_port_t task,
517	exception_type_t exception,
518	exception_data_t code,
519	mach_msg_type_number_t codeCnt
520);
521
522/* Routine exception_raise */
523mig_internal novalue _Xexception_raise
524	(mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP)
525{
526
527#ifdef  __MigPackStructs
528#pragma pack(4)
529#endif
530	typedef struct {
531		mach_msg_header_t Head;
532		/* start of the kernel processed data */
533		mach_msg_body_t msgh_body;
534		mach_msg_port_descriptor_t thread;
535		mach_msg_port_descriptor_t task;
536		/* end of the kernel processed data */
537		NDR_record_t NDR;
538		exception_type_t exception;
539		mach_msg_type_number_t codeCnt;
540		integer_t code[2];
541		mach_msg_trailer_t trailer;
542	} Request;
543#ifdef  __MigPackStructs
544#pragma pack()
545#endif
546	typedef __Request__exception_raise_t __Request;
547	typedef __Reply__exception_raise_t Reply;
548
549	/*
550	 * typedef struct {
551	 * 	mach_msg_header_t Head;
552	 * 	NDR_record_t NDR;
553	 * 	kern_return_t RetCode;
554	 * } mig_reply_error_t;
555	 */
556
557	Request *In0P = (Request *) InHeadP;
558	Reply *OutP = (Reply *) OutHeadP;
559#ifdef	__MIG_check__Request__exception_raise_t__defined
560	kern_return_t check_result;
561#endif	/* __MIG_check__Request__exception_raise_t__defined */
562
563	__DeclareRcvRpc(2401, "exception_raise")
564	__BeforeRcvRpc(2401, "exception_raise")
565
566#if	defined(__MIG_check__Request__exception_raise_t__defined)
567	check_result = __MIG_check__Request__exception_raise_t((__Request *)In0P);
568	if (check_result != MACH_MSG_SUCCESS)
569		{ MIG_RETURN_ERROR(OutP, check_result); }
570#endif	/* defined(__MIG_check__Request__exception_raise_t__defined) */
571
572	OutP->RetCode = breakpad_exception_raise(In0P->Head.msgh_request_port, In0P->thread.name, In0P->task.name, In0P->exception, In0P->code, In0P->codeCnt);
573
574	OutP->NDR = NDR_record;
575
576
577	__AfterRcvRpc(2401, "exception_raise")
578}
579
580#if ( __MigTypeCheck || __NDR_convert__ )
581#if __MIG_check__Request__exc_subsystem__
582#if !defined(__MIG_check__Request__exception_raise_state_t__defined)
583#define __MIG_check__Request__exception_raise_state_t__defined
584#ifndef __NDR_convert__int_rep__Request__exception_raise_state_t__exception__defined
585#if	defined(__NDR_convert__int_rep__exc__exception_type_t__defined)
586#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception__defined
587#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception(a, f) \
588	__NDR_convert__int_rep__exc__exception_type_t((exception_type_t *)(a), f)
589#elif	defined(__NDR_convert__int_rep__exception_type_t__defined)
590#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception__defined
591#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception(a, f) \
592	__NDR_convert__int_rep__exception_type_t((exception_type_t *)(a), f)
593#elif	defined(__NDR_convert__int_rep__exc__int__defined)
594#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception__defined
595#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception(a, f) \
596	__NDR_convert__int_rep__exc__int((int *)(a), f)
597#elif	defined(__NDR_convert__int_rep__int__defined)
598#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception__defined
599#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception(a, f) \
600	__NDR_convert__int_rep__int((int *)(a), f)
601#elif	defined(__NDR_convert__int_rep__exc__int32_t__defined)
602#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception__defined
603#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception(a, f) \
604	__NDR_convert__int_rep__exc__int32_t((int32_t *)(a), f)
605#elif	defined(__NDR_convert__int_rep__int32_t__defined)
606#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception__defined
607#define	__NDR_convert__int_rep__Request__exception_raise_state_t__exception(a, f) \
608	__NDR_convert__int_rep__int32_t((int32_t *)(a), f)
609#endif /* defined(__NDR_convert__*__defined) */
610#endif /* __NDR_convert__int_rep__Request__exception_raise_state_t__exception__defined */
611
612#ifndef __NDR_convert__int_rep__Request__exception_raise_state_t__code__defined
613#if	defined(__NDR_convert__int_rep__exc__exception_data_t__defined)
614#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code__defined
615#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code(a, f, c) \
616	__NDR_convert__int_rep__exc__exception_data_t((exception_data_t *)(a), f, c)
617#elif	defined(__NDR_convert__int_rep__exception_data_t__defined)
618#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code__defined
619#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code(a, f, c) \
620	__NDR_convert__int_rep__exception_data_t((exception_data_t *)(a), f, c)
621#elif	defined(__NDR_convert__int_rep__exc__integer_t__defined)
622#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code__defined
623#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code(a, f, c) \
624	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__int_rep__exc__integer_t)
625#elif	defined(__NDR_convert__int_rep__integer_t__defined)
626#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code__defined
627#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code(a, f, c) \
628	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__int_rep__integer_t)
629#elif	defined(__NDR_convert__int_rep__exc__int32_t__defined)
630#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code__defined
631#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code(a, f, c) \
632	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__int_rep__exc__int32_t)
633#elif	defined(__NDR_convert__int_rep__int32_t__defined)
634#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code__defined
635#define	__NDR_convert__int_rep__Request__exception_raise_state_t__code(a, f, c) \
636	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__int_rep__int32_t)
637#endif /* defined(__NDR_convert__*__defined) */
638#endif /* __NDR_convert__int_rep__Request__exception_raise_state_t__code__defined */
639
640#ifndef __NDR_convert__int_rep__Request__exception_raise_state_t__codeCnt__defined
641#if	defined(__NDR_convert__int_rep__exc__mach_msg_type_number_t__defined)
642#define	__NDR_convert__int_rep__Request__exception_raise_state_t__codeCnt__defined
643#define	__NDR_convert__int_rep__Request__exception_raise_state_t__codeCnt(a, f) \
644	__NDR_convert__int_rep__exc__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
645#elif	defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
646#define	__NDR_convert__int_rep__Request__exception_raise_state_t__codeCnt__defined
647#define	__NDR_convert__int_rep__Request__exception_raise_state_t__codeCnt(a, f) \
648	__NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
649#endif /* defined(__NDR_convert__*__defined) */
650#endif /* __NDR_convert__int_rep__Request__exception_raise_state_t__codeCnt__defined */
651
652#ifndef __NDR_convert__int_rep__Request__exception_raise_state_t__flavor__defined
653#if	defined(__NDR_convert__int_rep__exc__int__defined)
654#define	__NDR_convert__int_rep__Request__exception_raise_state_t__flavor__defined
655#define	__NDR_convert__int_rep__Request__exception_raise_state_t__flavor(a, f) \
656	__NDR_convert__int_rep__exc__int((int *)(a), f)
657#elif	defined(__NDR_convert__int_rep__int__defined)
658#define	__NDR_convert__int_rep__Request__exception_raise_state_t__flavor__defined
659#define	__NDR_convert__int_rep__Request__exception_raise_state_t__flavor(a, f) \
660	__NDR_convert__int_rep__int((int *)(a), f)
661#elif	defined(__NDR_convert__int_rep__exc__int32_t__defined)
662#define	__NDR_convert__int_rep__Request__exception_raise_state_t__flavor__defined
663#define	__NDR_convert__int_rep__Request__exception_raise_state_t__flavor(a, f) \
664	__NDR_convert__int_rep__exc__int32_t((int32_t *)(a), f)
665#elif	defined(__NDR_convert__int_rep__int32_t__defined)
666#define	__NDR_convert__int_rep__Request__exception_raise_state_t__flavor__defined
667#define	__NDR_convert__int_rep__Request__exception_raise_state_t__flavor(a, f) \
668	__NDR_convert__int_rep__int32_t((int32_t *)(a), f)
669#endif /* defined(__NDR_convert__*__defined) */
670#endif /* __NDR_convert__int_rep__Request__exception_raise_state_t__flavor__defined */
671
672#ifndef __NDR_convert__int_rep__Request__exception_raise_state_t__old_state__defined
673#if	defined(__NDR_convert__int_rep__exc__thread_state_t__defined)
674#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state__defined
675#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state(a, f, c) \
676	__NDR_convert__int_rep__exc__thread_state_t((thread_state_t *)(a), f, c)
677#elif	defined(__NDR_convert__int_rep__thread_state_t__defined)
678#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state__defined
679#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state(a, f, c) \
680	__NDR_convert__int_rep__thread_state_t((thread_state_t *)(a), f, c)
681#elif	defined(__NDR_convert__int_rep__exc__natural_t__defined)
682#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state__defined
683#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state(a, f, c) \
684	__NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__int_rep__exc__natural_t)
685#elif	defined(__NDR_convert__int_rep__natural_t__defined)
686#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state__defined
687#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state(a, f, c) \
688	__NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__int_rep__natural_t)
689#elif	defined(__NDR_convert__int_rep__exc__uint32_t__defined)
690#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state__defined
691#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state(a, f, c) \
692	__NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__int_rep__exc__uint32_t)
693#elif	defined(__NDR_convert__int_rep__uint32_t__defined)
694#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state__defined
695#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_state(a, f, c) \
696	__NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__int_rep__uint32_t)
697#endif /* defined(__NDR_convert__*__defined) */
698#endif /* __NDR_convert__int_rep__Request__exception_raise_state_t__old_state__defined */
699
700#ifndef __NDR_convert__int_rep__Request__exception_raise_state_t__old_stateCnt__defined
701#if	defined(__NDR_convert__int_rep__exc__mach_msg_type_number_t__defined)
702#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_stateCnt__defined
703#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_stateCnt(a, f) \
704	__NDR_convert__int_rep__exc__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
705#elif	defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined)
706#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_stateCnt__defined
707#define	__NDR_convert__int_rep__Request__exception_raise_state_t__old_stateCnt(a, f) \
708	__NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f)
709#endif /* defined(__NDR_convert__*__defined) */
710#endif /* __NDR_convert__int_rep__Request__exception_raise_state_t__old_stateCnt__defined */
711
712#ifndef __NDR_convert__char_rep__Request__exception_raise_state_t__exception__defined
713#if	defined(__NDR_convert__char_rep__exc__exception_type_t__defined)
714#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception__defined
715#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception(a, f) \
716	__NDR_convert__char_rep__exc__exception_type_t((exception_type_t *)(a), f)
717#elif	defined(__NDR_convert__char_rep__exception_type_t__defined)
718#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception__defined
719#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception(a, f) \
720	__NDR_convert__char_rep__exception_type_t((exception_type_t *)(a), f)
721#elif	defined(__NDR_convert__char_rep__exc__int__defined)
722#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception__defined
723#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception(a, f) \
724	__NDR_convert__char_rep__exc__int((int *)(a), f)
725#elif	defined(__NDR_convert__char_rep__int__defined)
726#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception__defined
727#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception(a, f) \
728	__NDR_convert__char_rep__int((int *)(a), f)
729#elif	defined(__NDR_convert__char_rep__exc__int32_t__defined)
730#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception__defined
731#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception(a, f) \
732	__NDR_convert__char_rep__exc__int32_t((int32_t *)(a), f)
733#elif	defined(__NDR_convert__char_rep__int32_t__defined)
734#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception__defined
735#define	__NDR_convert__char_rep__Request__exception_raise_state_t__exception(a, f) \
736	__NDR_convert__char_rep__int32_t((int32_t *)(a), f)
737#endif /* defined(__NDR_convert__*__defined) */
738#endif /* __NDR_convert__char_rep__Request__exception_raise_state_t__exception__defined */
739
740#ifndef __NDR_convert__char_rep__Request__exception_raise_state_t__code__defined
741#if	defined(__NDR_convert__char_rep__exc__exception_data_t__defined)
742#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code__defined
743#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code(a, f, c) \
744	__NDR_convert__char_rep__exc__exception_data_t((exception_data_t *)(a), f, c)
745#elif	defined(__NDR_convert__char_rep__exception_data_t__defined)
746#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code__defined
747#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code(a, f, c) \
748	__NDR_convert__char_rep__exception_data_t((exception_data_t *)(a), f, c)
749#elif	defined(__NDR_convert__char_rep__exc__integer_t__defined)
750#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code__defined
751#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code(a, f, c) \
752	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__char_rep__exc__integer_t)
753#elif	defined(__NDR_convert__char_rep__integer_t__defined)
754#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code__defined
755#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code(a, f, c) \
756	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__char_rep__integer_t)
757#elif	defined(__NDR_convert__char_rep__exc__int32_t__defined)
758#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code__defined
759#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code(a, f, c) \
760	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__char_rep__exc__int32_t)
761#elif	defined(__NDR_convert__char_rep__int32_t__defined)
762#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code__defined
763#define	__NDR_convert__char_rep__Request__exception_raise_state_t__code(a, f, c) \
764	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__char_rep__int32_t)
765#endif /* defined(__NDR_convert__*__defined) */
766#endif /* __NDR_convert__char_rep__Request__exception_raise_state_t__code__defined */
767
768#ifndef __NDR_convert__char_rep__Request__exception_raise_state_t__flavor__defined
769#if	defined(__NDR_convert__char_rep__exc__int__defined)
770#define	__NDR_convert__char_rep__Request__exception_raise_state_t__flavor__defined
771#define	__NDR_convert__char_rep__Request__exception_raise_state_t__flavor(a, f) \
772	__NDR_convert__char_rep__exc__int((int *)(a), f)
773#elif	defined(__NDR_convert__char_rep__int__defined)
774#define	__NDR_convert__char_rep__Request__exception_raise_state_t__flavor__defined
775#define	__NDR_convert__char_rep__Request__exception_raise_state_t__flavor(a, f) \
776	__NDR_convert__char_rep__int((int *)(a), f)
777#elif	defined(__NDR_convert__char_rep__exc__int32_t__defined)
778#define	__NDR_convert__char_rep__Request__exception_raise_state_t__flavor__defined
779#define	__NDR_convert__char_rep__Request__exception_raise_state_t__flavor(a, f) \
780	__NDR_convert__char_rep__exc__int32_t((int32_t *)(a), f)
781#elif	defined(__NDR_convert__char_rep__int32_t__defined)
782#define	__NDR_convert__char_rep__Request__exception_raise_state_t__flavor__defined
783#define	__NDR_convert__char_rep__Request__exception_raise_state_t__flavor(a, f) \
784	__NDR_convert__char_rep__int32_t((int32_t *)(a), f)
785#endif /* defined(__NDR_convert__*__defined) */
786#endif /* __NDR_convert__char_rep__Request__exception_raise_state_t__flavor__defined */
787
788#ifndef __NDR_convert__char_rep__Request__exception_raise_state_t__old_state__defined
789#if	defined(__NDR_convert__char_rep__exc__thread_state_t__defined)
790#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state__defined
791#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state(a, f, c) \
792	__NDR_convert__char_rep__exc__thread_state_t((thread_state_t *)(a), f, c)
793#elif	defined(__NDR_convert__char_rep__thread_state_t__defined)
794#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state__defined
795#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state(a, f, c) \
796	__NDR_convert__char_rep__thread_state_t((thread_state_t *)(a), f, c)
797#elif	defined(__NDR_convert__char_rep__exc__natural_t__defined)
798#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state__defined
799#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state(a, f, c) \
800	__NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__char_rep__exc__natural_t)
801#elif	defined(__NDR_convert__char_rep__natural_t__defined)
802#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state__defined
803#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state(a, f, c) \
804	__NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__char_rep__natural_t)
805#elif	defined(__NDR_convert__char_rep__exc__uint32_t__defined)
806#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state__defined
807#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state(a, f, c) \
808	__NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__char_rep__exc__uint32_t)
809#elif	defined(__NDR_convert__char_rep__uint32_t__defined)
810#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state__defined
811#define	__NDR_convert__char_rep__Request__exception_raise_state_t__old_state(a, f, c) \
812	__NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__char_rep__uint32_t)
813#endif /* defined(__NDR_convert__*__defined) */
814#endif /* __NDR_convert__char_rep__Request__exception_raise_state_t__old_state__defined */
815
816#ifndef __NDR_convert__float_rep__Request__exception_raise_state_t__exception__defined
817#if	defined(__NDR_convert__float_rep__exc__exception_type_t__defined)
818#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception__defined
819#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception(a, f) \
820	__NDR_convert__float_rep__exc__exception_type_t((exception_type_t *)(a), f)
821#elif	defined(__NDR_convert__float_rep__exception_type_t__defined)
822#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception__defined
823#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception(a, f) \
824	__NDR_convert__float_rep__exception_type_t((exception_type_t *)(a), f)
825#elif	defined(__NDR_convert__float_rep__exc__int__defined)
826#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception__defined
827#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception(a, f) \
828	__NDR_convert__float_rep__exc__int((int *)(a), f)
829#elif	defined(__NDR_convert__float_rep__int__defined)
830#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception__defined
831#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception(a, f) \
832	__NDR_convert__float_rep__int((int *)(a), f)
833#elif	defined(__NDR_convert__float_rep__exc__int32_t__defined)
834#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception__defined
835#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception(a, f) \
836	__NDR_convert__float_rep__exc__int32_t((int32_t *)(a), f)
837#elif	defined(__NDR_convert__float_rep__int32_t__defined)
838#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception__defined
839#define	__NDR_convert__float_rep__Request__exception_raise_state_t__exception(a, f) \
840	__NDR_convert__float_rep__int32_t((int32_t *)(a), f)
841#endif /* defined(__NDR_convert__*__defined) */
842#endif /* __NDR_convert__float_rep__Request__exception_raise_state_t__exception__defined */
843
844#ifndef __NDR_convert__float_rep__Request__exception_raise_state_t__code__defined
845#if	defined(__NDR_convert__float_rep__exc__exception_data_t__defined)
846#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code__defined
847#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code(a, f, c) \
848	__NDR_convert__float_rep__exc__exception_data_t((exception_data_t *)(a), f, c)
849#elif	defined(__NDR_convert__float_rep__exception_data_t__defined)
850#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code__defined
851#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code(a, f, c) \
852	__NDR_convert__float_rep__exception_data_t((exception_data_t *)(a), f, c)
853#elif	defined(__NDR_convert__float_rep__exc__integer_t__defined)
854#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code__defined
855#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code(a, f, c) \
856	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__float_rep__exc__integer_t)
857#elif	defined(__NDR_convert__float_rep__integer_t__defined)
858#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code__defined
859#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code(a, f, c) \
860	__NDR_convert__ARRAY((integer_t *)(a), f, c, __NDR_convert__float_rep__integer_t)
861#elif	defined(__NDR_convert__float_rep__exc__int32_t__defined)
862#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code__defined
863#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code(a, f, c) \
864	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__float_rep__exc__int32_t)
865#elif	defined(__NDR_convert__float_rep__int32_t__defined)
866#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code__defined
867#define	__NDR_convert__float_rep__Request__exception_raise_state_t__code(a, f, c) \
868	__NDR_convert__ARRAY((int32_t *)(a), f, c, __NDR_convert__float_rep__int32_t)
869#endif /* defined(__NDR_convert__*__defined) */
870#endif /* __NDR_convert__float_rep__Request__exception_raise_state_t__code__defined */
871
872#ifndef __NDR_convert__float_rep__Request__exception_raise_state_t__flavor__defined
873#if	defined(__NDR_convert__float_rep__exc__int__defined)
874#define	__NDR_convert__float_rep__Request__exception_raise_state_t__flavor__defined
875#define	__NDR_convert__float_rep__Request__exception_raise_state_t__flavor(a, f) \
876	__NDR_convert__float_rep__exc__int((int *)(a), f)
877#elif	defined(__NDR_convert__float_rep__int__defined)
878#define	__NDR_convert__float_rep__Request__exception_raise_state_t__flavor__defined
879#define	__NDR_convert__float_rep__Request__exception_raise_state_t__flavor(a, f) \
880	__NDR_convert__float_rep__int((int *)(a), f)
881#elif	defined(__NDR_convert__float_rep__exc__int32_t__defined)
882#define	__NDR_convert__float_rep__Request__exception_raise_state_t__flavor__defined
883#define	__NDR_convert__float_rep__Request__exception_raise_state_t__flavor(a, f) \
884	__NDR_convert__float_rep__exc__int32_t((int32_t *)(a), f)
885#elif	defined(__NDR_convert__float_rep__int32_t__defined)
886#define	__NDR_convert__float_rep__Request__exception_raise_state_t__flavor__defined
887#define	__NDR_convert__float_rep__Request__exception_raise_state_t__flavor(a, f) \
888	__NDR_convert__float_rep__int32_t((int32_t *)(a), f)
889#endif /* defined(__NDR_convert__*__defined) */
890#endif /* __NDR_convert__float_rep__Request__exception_raise_state_t__flavor__defined */
891
892#ifndef __NDR_convert__float_rep__Request__exception_raise_state_t__old_state__defined
893#if	defined(__NDR_convert__float_rep__exc__thread_state_t__defined)
894#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state__defined
895#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state(a, f, c) \
896	__NDR_convert__float_rep__exc__thread_state_t((thread_state_t *)(a), f, c)
897#elif	defined(__NDR_convert__float_rep__thread_state_t__defined)
898#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state__defined
899#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state(a, f, c) \
900	__NDR_convert__float_rep__thread_state_t((thread_state_t *)(a), f, c)
901#elif	defined(__NDR_convert__float_rep__exc__natural_t__defined)
902#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state__defined
903#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state(a, f, c) \
904	__NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__float_rep__exc__natural_t)
905#elif	defined(__NDR_convert__float_rep__natural_t__defined)
906#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state__defined
907#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state(a, f, c) \
908	__NDR_convert__ARRAY((natural_t *)(a), f, c, __NDR_convert__float_rep__natural_t)
909#elif	defined(__NDR_convert__float_rep__exc__uint32_t__defined)
910#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state__defined
911#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state(a, f, c) \
912	__NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__float_rep__exc__uint32_t)
913#elif	defined(__NDR_convert__float_rep__uint32_t__defined)
914#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state__defined
915#define	__NDR_convert__float_rep__Request__exception_raise_state_t__old_state(a, f, c) \
916	__NDR_convert__ARRAY((uint32_t *)(a), f, c, __NDR_convert__float_rep__uint32_t)
917#endif /* defined(__NDR_convert__*__defined) */
918#endif /* __NDR_convert__float_rep__Request__exception_raise_state_t__old_state__defined */
919
920
921mig_internal kern_return_t __MIG_check__Request__exception_raise_state_t(__attribute__((__unused__)) __Request__exception_raise_state_t *In0P, __attribute__((__unused__)) __Request__exception_raise_state_t **In1PP)
922{
923
924	typedef __Request__exception_raise_state_t __Request;
925	__Request *In1P;
926#if	__MigTypeCheck
927	unsigned int msgh_size;
928#endif	/* __MigTypeCheck */
929	unsigned int msgh_size_delta;
930
931#if	__MigTypeCheck
932	msgh_size = In0P->Head.msgh_size;
933	if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
934	    (msgh_size < (mach_msg_size_t)(sizeof(__Request) - 584)) ||  (msgh_size > (mach_msg_size_t)sizeof(__Request)))
935		return MIG_BAD_ARGUMENTS;
936#endif	/* __MigTypeCheck */
937
938#if defined(__NDR_convert__int_rep__Request__exception_raise_state_t__codeCnt__defined)
939	if (In0P->NDR.int_rep != NDR_record.int_rep)
940		__NDR_convert__int_rep__Request__exception_raise_state_t__codeCnt(&In0P->codeCnt, In0P->NDR.int_rep);
941#endif	/* __NDR_convert__int_rep__Request__exception_raise_state_t__codeCnt__defined */
942	msgh_size_delta = (4 * In0P->codeCnt);
943#if	__MigTypeCheck
944	if (msgh_size < (mach_msg_size_t)(s

Large files files are truncated, but you can click here to view the full file