1/*
2 * IDENTIFICATION:
3 * stub generated Tue Apr 9 11:33:39 2019
4 * with a MiG generated by bootstrap_cmds-96.20.2.200.4
5 * OPTIONS:
6 * KernelUser
7 */
8#define __MIG_check__Reply__UNDRequest_subsystem__ 1
9
10#include "UNDRequest.h"
11
12
13#ifndef mig_internal
14#define mig_internal static __inline__
15#endif /* mig_internal */
16
17#ifndef mig_external
18#define mig_external
19#endif /* mig_external */
20
21#if !defined(__MigTypeCheck) && defined(TypeCheck)
22#define __MigTypeCheck TypeCheck /* Legacy setting */
23#endif /* !defined(__MigTypeCheck) */
24
25#if !defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_)
26#define __MigKernelSpecificCode _MIG_KERNEL_SPECIFIC_CODE_ /* Legacy setting */
27#endif /* !defined(__MigKernelSpecificCode) */
28
29#ifndef LimitCheck
30#define LimitCheck 0
31#endif /* LimitCheck */
32
33#ifndef min
34#define min(a,b) ( ((a) < (b))? (a): (b) )
35#endif /* min */
36
37#if !defined(_WALIGN_)
38#define _WALIGN_(x) (((x) + 3) & ~3)
39#endif /* !defined(_WALIGN_) */
40
41#if !defined(_WALIGNSZ_)
42#define _WALIGNSZ_(x) _WALIGN_(sizeof(x))
43#endif /* !defined(_WALIGNSZ_) */
44
45#ifndef UseStaticTemplates
46#define UseStaticTemplates 0
47#endif /* UseStaticTemplates */
48
49#ifndef __MachMsgErrorWithTimeout
50#define __MachMsgErrorWithTimeout(_R_) { \
51 switch (_R_) { \
52 case MACH_SEND_INVALID_DATA: \
53 case MACH_SEND_INVALID_DEST: \
54 case MACH_SEND_INVALID_HEADER: \
55 mig_put_reply_port(InP->Head.msgh_reply_port); \
56 break; \
57 case MACH_SEND_TIMED_OUT: \
58 case MACH_RCV_TIMED_OUT: \
59 default: \
60 mig_dealloc_reply_port(InP->Head.msgh_reply_port); \
61 } \
62}
63#endif /* __MachMsgErrorWithTimeout */
64
65#ifndef __MachMsgErrorWithoutTimeout
66#define __MachMsgErrorWithoutTimeout(_R_) { \
67 switch (_R_) { \
68 case MACH_SEND_INVALID_DATA: \
69 case MACH_SEND_INVALID_DEST: \
70 case MACH_SEND_INVALID_HEADER: \
71 mig_put_reply_port(InP->Head.msgh_reply_port); \
72 break; \
73 default: \
74 mig_dealloc_reply_port(InP->Head.msgh_reply_port); \
75 } \
76}
77#endif /* __MachMsgErrorWithoutTimeout */
78
79#ifndef __DeclareSendRpc
80#define __DeclareSendRpc(_NUM_, _NAME_)
81#endif /* __DeclareSendRpc */
82
83#ifndef __BeforeSendRpc
84#define __BeforeSendRpc(_NUM_, _NAME_)
85#endif /* __BeforeSendRpc */
86
87#ifndef __AfterSendRpc
88#define __AfterSendRpc(_NUM_, _NAME_)
89#endif /* __AfterSendRpc */
90
91#ifndef __DeclareSendSimple
92#define __DeclareSendSimple(_NUM_, _NAME_)
93#endif /* __DeclareSendSimple */
94
95#ifndef __BeforeSendSimple
96#define __BeforeSendSimple(_NUM_, _NAME_)
97#endif /* __BeforeSendSimple */
98
99#ifndef __AfterSendSimple
100#define __AfterSendSimple(_NUM_, _NAME_)
101#endif /* __AfterSendSimple */
102
103#define msgh_request_port msgh_remote_port
104#define msgh_reply_port msgh_local_port
105
106
107
108/* SimpleRoutine UNDExecute_rpc */
109mig_external kern_return_t UNDExecute_rpc
110(
111 UNDServerRef server,
112 UNDPath executionPath,
113 int uid,
114 int gid
115)
116{
117
118#ifdef __MigPackStructs
119#pragma pack(4)
120#endif
121 typedef struct {
122 mach_msg_header_t Head;
123 NDR_record_t NDR;
124 mach_msg_type_number_t executionPathOffset; /* MiG doesn't use it */
125 mach_msg_type_number_t executionPathCnt;
126 char executionPath[1024];
127 int uid;
128 int gid;
129 } Request __attribute__((unused));
130#ifdef __MigPackStructs
131#pragma pack()
132#endif
133 /*
134 * typedef struct {
135 * mach_msg_header_t Head;
136 * NDR_record_t NDR;
137 * kern_return_t RetCode;
138 * } mig_reply_error_t;
139 */
140
141 union UNDExecute_rpcMessU {
142 Request In;
143 } *Mess = (union UNDExecute_rpcMessU *) mig_user_allocate(sizeof(*Mess));
144
145 Request *InP = &Mess->In;
146
147 mach_msg_return_t msg_result;
148 unsigned int msgh_size;
149 unsigned int msgh_size_delta;
150
151
152#ifdef __MIG_check__Reply__UNDExecute_rpc_t__defined
153 kern_return_t check_result;
154#endif /* __MIG_check__Reply__UNDExecute_rpc_t__defined */
155
156 __DeclareSendSimple(6000, "UNDExecute_rpc")
157
158 InP->NDR = NDR_record;
159
160#ifdef USING_MIG_STRNCPY_ZEROFILL
161 if (mig_strncpy_zerofill != NULL) {
162 InP->executionPathCnt = mig_strncpy_zerofill(InP->executionPath, executionPath, 1024);
163 } else {
164#endif /* USING_MIG_STRNCPY_ZEROFILL */
165 InP->executionPathCnt = mig_strncpy(InP->executionPath, executionPath, 1024);
166#ifdef USING_MIG_STRNCPY_ZEROFILL
167 }
168#endif /* USING_MIG_STRNCPY_ZEROFILL */
169
170 msgh_size_delta = _WALIGN_(InP->executionPathCnt);
171 msgh_size = (mach_msg_size_t)(sizeof(Request) - 1024) + msgh_size_delta;
172 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024);
173
174 InP->uid = uid;
175
176 InP->gid = gid;
177
178 InP = &Mess->In;
179 InP->Head.msgh_bits =
180 MACH_MSGH_BITS(19, 0);
181 /* msgh_size passed as argument */
182 InP->Head.msgh_request_port = server;
183 InP->Head.msgh_reply_port = MACH_PORT_NULL;
184 InP->Head.msgh_id = 6000;
185 InP->Head.msgh_reserved = 0;
186
187 __BeforeSendSimple(6000, "UNDExecute_rpc")
188#if __MigKernelSpecificCode
189 msg_result = mach_msg_send_from_kernel(&InP->Head, msgh_size);
190#else
191 msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_MSG_OPTION_NONE, msgh_size, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
192#endif /* __MigKernelSpecificCode */
193 __AfterSendSimple(6000, "UNDExecute_rpc")
194 { mig_user_deallocate((char *) Mess, sizeof(*Mess)); return msg_result; }
195}
196
197/* SimpleRoutine UNDDisplayNoticeFromBundle_rpc */
198mig_external kern_return_t UNDDisplayNoticeFromBundle_rpc
199(
200 UNDServerRef server,
201 mach_port_t reply,
202 UNDPath bundlePath,
203 UNDPath fileName,
204 UNDPath fileExtension,
205 UNDKey messageKey
206)
207{
208
209#ifdef __MigPackStructs
210#pragma pack(4)
211#endif
212 typedef struct {
213 mach_msg_header_t Head;
214 /* start of the kernel processed data */
215 mach_msg_body_t msgh_body;
216 mach_msg_port_descriptor_t reply;
217 /* end of the kernel processed data */
218 NDR_record_t NDR;
219 mach_msg_type_number_t bundlePathOffset; /* MiG doesn't use it */
220 mach_msg_type_number_t bundlePathCnt;
221 char bundlePath[1024];
222 mach_msg_type_number_t fileNameOffset; /* MiG doesn't use it */
223 mach_msg_type_number_t fileNameCnt;
224 char fileName[1024];
225 mach_msg_type_number_t fileExtensionOffset; /* MiG doesn't use it */
226 mach_msg_type_number_t fileExtensionCnt;
227 char fileExtension[1024];
228 mach_msg_type_number_t messageKeyOffset; /* MiG doesn't use it */
229 mach_msg_type_number_t messageKeyCnt;
230 char messageKey[128];
231 } Request __attribute__((unused));
232#ifdef __MigPackStructs
233#pragma pack()
234#endif
235 /*
236 * typedef struct {
237 * mach_msg_header_t Head;
238 * NDR_record_t NDR;
239 * kern_return_t RetCode;
240 * } mig_reply_error_t;
241 */
242
243 union UNDDisplayNoticeFromBundle_rpcMessU {
244 Request In;
245 } *Mess = (union UNDDisplayNoticeFromBundle_rpcMessU *) mig_user_allocate(sizeof(*Mess));
246
247 Request *InP = &Mess->In;
248
249 mach_msg_return_t msg_result;
250 unsigned int msgh_size;
251 unsigned int msgh_size_delta;
252
253
254#ifdef __MIG_check__Reply__UNDDisplayNoticeFromBundle_rpc_t__defined
255 kern_return_t check_result;
256#endif /* __MIG_check__Reply__UNDDisplayNoticeFromBundle_rpc_t__defined */
257
258 __DeclareSendSimple(6001, "UNDDisplayNoticeFromBundle_rpc")
259
260#if UseStaticTemplates
261 const static mach_msg_port_descriptor_t replyTemplate = {
262 /* name = */ MACH_PORT_NULL,
263 /* pad1 = */ 0,
264 /* pad2 = */ 0,
265 /* disp = */ 19,
266 /* type = */ MACH_MSG_PORT_DESCRIPTOR,
267 };
268#endif /* UseStaticTemplates */
269
270 InP->msgh_body.msgh_descriptor_count = 1;
271#if UseStaticTemplates
272 InP->reply = replyTemplate;
273 InP->reply.name = reply;
274#else /* UseStaticTemplates */
275 InP->reply.name = reply;
276 InP->reply.disposition = 19;
277 InP->reply.type = MACH_MSG_PORT_DESCRIPTOR;
278#endif /* UseStaticTemplates */
279
280 InP->NDR = NDR_record;
281
282#ifdef USING_MIG_STRNCPY_ZEROFILL
283 if (mig_strncpy_zerofill != NULL) {
284 InP->bundlePathCnt = mig_strncpy_zerofill(InP->bundlePath, bundlePath, 1024);
285 } else {
286#endif /* USING_MIG_STRNCPY_ZEROFILL */
287 InP->bundlePathCnt = mig_strncpy(InP->bundlePath, bundlePath, 1024);
288#ifdef USING_MIG_STRNCPY_ZEROFILL
289 }
290#endif /* USING_MIG_STRNCPY_ZEROFILL */
291
292 msgh_size_delta = _WALIGN_(InP->bundlePathCnt);
293 msgh_size = (mach_msg_size_t)(sizeof(Request) - 3200) + msgh_size_delta;
294 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024);
295
296#ifdef USING_MIG_STRNCPY_ZEROFILL
297 if (mig_strncpy_zerofill != NULL) {
298 InP->fileNameCnt = mig_strncpy_zerofill(InP->fileName, fileName, 1024);
299 } else {
300#endif /* USING_MIG_STRNCPY_ZEROFILL */
301 InP->fileNameCnt = mig_strncpy(InP->fileName, fileName, 1024);
302#ifdef USING_MIG_STRNCPY_ZEROFILL
303 }
304#endif /* USING_MIG_STRNCPY_ZEROFILL */
305
306 msgh_size_delta = _WALIGN_(InP->fileNameCnt);
307 msgh_size += msgh_size_delta;
308 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024);
309
310#ifdef USING_MIG_STRNCPY_ZEROFILL
311 if (mig_strncpy_zerofill != NULL) {
312 InP->fileExtensionCnt = mig_strncpy_zerofill(InP->fileExtension, fileExtension, 1024);
313 } else {
314#endif /* USING_MIG_STRNCPY_ZEROFILL */
315 InP->fileExtensionCnt = mig_strncpy(InP->fileExtension, fileExtension, 1024);
316#ifdef USING_MIG_STRNCPY_ZEROFILL
317 }
318#endif /* USING_MIG_STRNCPY_ZEROFILL */
319
320 msgh_size_delta = _WALIGN_(InP->fileExtensionCnt);
321 msgh_size += msgh_size_delta;
322 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024);
323
324#ifdef USING_MIG_STRNCPY_ZEROFILL
325 if (mig_strncpy_zerofill != NULL) {
326 InP->messageKeyCnt = mig_strncpy_zerofill(InP->messageKey, messageKey, 128);
327 } else {
328#endif /* USING_MIG_STRNCPY_ZEROFILL */
329 InP->messageKeyCnt = mig_strncpy(InP->messageKey, messageKey, 128);
330#ifdef USING_MIG_STRNCPY_ZEROFILL
331 }
332#endif /* USING_MIG_STRNCPY_ZEROFILL */
333
334 msgh_size += _WALIGN_(InP->messageKeyCnt);
335 InP = &Mess->In;
336 InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
337 MACH_MSGH_BITS(19, 0);
338 /* msgh_size passed as argument */
339 InP->Head.msgh_request_port = server;
340 InP->Head.msgh_reply_port = MACH_PORT_NULL;
341 InP->Head.msgh_id = 6001;
342 InP->Head.msgh_reserved = 0;
343
344 __BeforeSendSimple(6001, "UNDDisplayNoticeFromBundle_rpc")
345#if __MigKernelSpecificCode
346 msg_result = mach_msg_send_from_kernel(&InP->Head, msgh_size);
347#else
348 msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_MSG_OPTION_NONE, msgh_size, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
349#endif /* __MigKernelSpecificCode */
350 __AfterSendSimple(6001, "UNDDisplayNoticeFromBundle_rpc")
351 { mig_user_deallocate((char *) Mess, sizeof(*Mess)); return msg_result; }
352}
353
354/* SimpleRoutine UNDDisplayAlertFromBundle_rpc */
355mig_external kern_return_t UNDDisplayAlertFromBundle_rpc
356(
357 UNDServerRef server,
358 mach_port_t reply,
359 UNDPath bundlePath,
360 UNDKey fileName,
361 UNDKey fileExtension,
362 UNDKey messageKey
363)
364{
365
366#ifdef __MigPackStructs
367#pragma pack(4)
368#endif
369 typedef struct {
370 mach_msg_header_t Head;
371 /* start of the kernel processed data */
372 mach_msg_body_t msgh_body;
373 mach_msg_port_descriptor_t reply;
374 /* end of the kernel processed data */
375 NDR_record_t NDR;
376 mach_msg_type_number_t bundlePathOffset; /* MiG doesn't use it */
377 mach_msg_type_number_t bundlePathCnt;
378 char bundlePath[1024];
379 mach_msg_type_number_t fileNameOffset; /* MiG doesn't use it */
380 mach_msg_type_number_t fileNameCnt;
381 char fileName[128];
382 mach_msg_type_number_t fileExtensionOffset; /* MiG doesn't use it */
383 mach_msg_type_number_t fileExtensionCnt;
384 char fileExtension[128];
385 mach_msg_type_number_t messageKeyOffset; /* MiG doesn't use it */
386 mach_msg_type_number_t messageKeyCnt;
387 char messageKey[128];
388 } Request __attribute__((unused));
389#ifdef __MigPackStructs
390#pragma pack()
391#endif
392 /*
393 * typedef struct {
394 * mach_msg_header_t Head;
395 * NDR_record_t NDR;
396 * kern_return_t RetCode;
397 * } mig_reply_error_t;
398 */
399
400 union UNDDisplayAlertFromBundle_rpcMessU {
401 Request In;
402 } *Mess = (union UNDDisplayAlertFromBundle_rpcMessU *) mig_user_allocate(sizeof(*Mess));
403
404 Request *InP = &Mess->In;
405
406 mach_msg_return_t msg_result;
407 unsigned int msgh_size;
408 unsigned int msgh_size_delta;
409
410
411#ifdef __MIG_check__Reply__UNDDisplayAlertFromBundle_rpc_t__defined
412 kern_return_t check_result;
413#endif /* __MIG_check__Reply__UNDDisplayAlertFromBundle_rpc_t__defined */
414
415 __DeclareSendSimple(6002, "UNDDisplayAlertFromBundle_rpc")
416
417#if UseStaticTemplates
418 const static mach_msg_port_descriptor_t replyTemplate = {
419 /* name = */ MACH_PORT_NULL,
420 /* pad1 = */ 0,
421 /* pad2 = */ 0,
422 /* disp = */ 19,
423 /* type = */ MACH_MSG_PORT_DESCRIPTOR,
424 };
425#endif /* UseStaticTemplates */
426
427 InP->msgh_body.msgh_descriptor_count = 1;
428#if UseStaticTemplates
429 InP->reply = replyTemplate;
430 InP->reply.name = reply;
431#else /* UseStaticTemplates */
432 InP->reply.name = reply;
433 InP->reply.disposition = 19;
434 InP->reply.type = MACH_MSG_PORT_DESCRIPTOR;
435#endif /* UseStaticTemplates */
436
437 InP->NDR = NDR_record;
438
439#ifdef USING_MIG_STRNCPY_ZEROFILL
440 if (mig_strncpy_zerofill != NULL) {
441 InP->bundlePathCnt = mig_strncpy_zerofill(InP->bundlePath, bundlePath, 1024);
442 } else {
443#endif /* USING_MIG_STRNCPY_ZEROFILL */
444 InP->bundlePathCnt = mig_strncpy(InP->bundlePath, bundlePath, 1024);
445#ifdef USING_MIG_STRNCPY_ZEROFILL
446 }
447#endif /* USING_MIG_STRNCPY_ZEROFILL */
448
449 msgh_size_delta = _WALIGN_(InP->bundlePathCnt);
450 msgh_size = (mach_msg_size_t)(sizeof(Request) - 1408) + msgh_size_delta;
451 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024);
452
453#ifdef USING_MIG_STRNCPY_ZEROFILL
454 if (mig_strncpy_zerofill != NULL) {
455 InP->fileNameCnt = mig_strncpy_zerofill(InP->fileName, fileName, 128);
456 } else {
457#endif /* USING_MIG_STRNCPY_ZEROFILL */
458 InP->fileNameCnt = mig_strncpy(InP->fileName, fileName, 128);
459#ifdef USING_MIG_STRNCPY_ZEROFILL
460 }
461#endif /* USING_MIG_STRNCPY_ZEROFILL */
462
463 msgh_size_delta = _WALIGN_(InP->fileNameCnt);
464 msgh_size += msgh_size_delta;
465 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
466
467#ifdef USING_MIG_STRNCPY_ZEROFILL
468 if (mig_strncpy_zerofill != NULL) {
469 InP->fileExtensionCnt = mig_strncpy_zerofill(InP->fileExtension, fileExtension, 128);
470 } else {
471#endif /* USING_MIG_STRNCPY_ZEROFILL */
472 InP->fileExtensionCnt = mig_strncpy(InP->fileExtension, fileExtension, 128);
473#ifdef USING_MIG_STRNCPY_ZEROFILL
474 }
475#endif /* USING_MIG_STRNCPY_ZEROFILL */
476
477 msgh_size_delta = _WALIGN_(InP->fileExtensionCnt);
478 msgh_size += msgh_size_delta;
479 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
480
481#ifdef USING_MIG_STRNCPY_ZEROFILL
482 if (mig_strncpy_zerofill != NULL) {
483 InP->messageKeyCnt = mig_strncpy_zerofill(InP->messageKey, messageKey, 128);
484 } else {
485#endif /* USING_MIG_STRNCPY_ZEROFILL */
486 InP->messageKeyCnt = mig_strncpy(InP->messageKey, messageKey, 128);
487#ifdef USING_MIG_STRNCPY_ZEROFILL
488 }
489#endif /* USING_MIG_STRNCPY_ZEROFILL */
490
491 msgh_size += _WALIGN_(InP->messageKeyCnt);
492 InP = &Mess->In;
493 InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
494 MACH_MSGH_BITS(19, 0);
495 /* msgh_size passed as argument */
496 InP->Head.msgh_request_port = server;
497 InP->Head.msgh_reply_port = MACH_PORT_NULL;
498 InP->Head.msgh_id = 6002;
499 InP->Head.msgh_reserved = 0;
500
501 __BeforeSendSimple(6002, "UNDDisplayAlertFromBundle_rpc")
502#if __MigKernelSpecificCode
503 msg_result = mach_msg_send_from_kernel(&InP->Head, msgh_size);
504#else
505 msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_MSG_OPTION_NONE, msgh_size, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
506#endif /* __MigKernelSpecificCode */
507 __AfterSendSimple(6002, "UNDDisplayAlertFromBundle_rpc")
508 { mig_user_deallocate((char *) Mess, sizeof(*Mess)); return msg_result; }
509}
510
511/* SimpleRoutine UNDDisplayCustomFromBundle_rpc */
512mig_external kern_return_t UNDDisplayCustomFromBundle_rpc
513(
514 UNDServerRef server,
515 mach_port_t reply,
516 UNDPath bundlePath,
517 UNDKey fileName,
518 UNDKey fileExtension,
519 UNDKey messageKey,
520 UNDPath tokenKey
521)
522{
523
524#ifdef __MigPackStructs
525#pragma pack(4)
526#endif
527 typedef struct {
528 mach_msg_header_t Head;
529 /* start of the kernel processed data */
530 mach_msg_body_t msgh_body;
531 mach_msg_port_descriptor_t reply;
532 /* end of the kernel processed data */
533 NDR_record_t NDR;
534 mach_msg_type_number_t bundlePathOffset; /* MiG doesn't use it */
535 mach_msg_type_number_t bundlePathCnt;
536 char bundlePath[1024];
537 mach_msg_type_number_t fileNameOffset; /* MiG doesn't use it */
538 mach_msg_type_number_t fileNameCnt;
539 char fileName[128];
540 mach_msg_type_number_t fileExtensionOffset; /* MiG doesn't use it */
541 mach_msg_type_number_t fileExtensionCnt;
542 char fileExtension[128];
543 mach_msg_type_number_t messageKeyOffset; /* MiG doesn't use it */
544 mach_msg_type_number_t messageKeyCnt;
545 char messageKey[128];
546 mach_msg_type_number_t tokenKeyOffset; /* MiG doesn't use it */
547 mach_msg_type_number_t tokenKeyCnt;
548 char tokenKey[1024];
549 } Request __attribute__((unused));
550#ifdef __MigPackStructs
551#pragma pack()
552#endif
553 /*
554 * typedef struct {
555 * mach_msg_header_t Head;
556 * NDR_record_t NDR;
557 * kern_return_t RetCode;
558 * } mig_reply_error_t;
559 */
560
561 union UNDDisplayCustomFromBundle_rpcMessU {
562 Request In;
563 } *Mess = (union UNDDisplayCustomFromBundle_rpcMessU *) mig_user_allocate(sizeof(*Mess));
564
565 Request *InP = &Mess->In;
566
567 mach_msg_return_t msg_result;
568 unsigned int msgh_size;
569 unsigned int msgh_size_delta;
570
571
572#ifdef __MIG_check__Reply__UNDDisplayCustomFromBundle_rpc_t__defined
573 kern_return_t check_result;
574#endif /* __MIG_check__Reply__UNDDisplayCustomFromBundle_rpc_t__defined */
575
576 __DeclareSendSimple(6003, "UNDDisplayCustomFromBundle_rpc")
577
578#if UseStaticTemplates
579 const static mach_msg_port_descriptor_t replyTemplate = {
580 /* name = */ MACH_PORT_NULL,
581 /* pad1 = */ 0,
582 /* pad2 = */ 0,
583 /* disp = */ 19,
584 /* type = */ MACH_MSG_PORT_DESCRIPTOR,
585 };
586#endif /* UseStaticTemplates */
587
588 InP->msgh_body.msgh_descriptor_count = 1;
589#if UseStaticTemplates
590 InP->reply = replyTemplate;
591 InP->reply.name = reply;
592#else /* UseStaticTemplates */
593 InP->reply.name = reply;
594 InP->reply.disposition = 19;
595 InP->reply.type = MACH_MSG_PORT_DESCRIPTOR;
596#endif /* UseStaticTemplates */
597
598 InP->NDR = NDR_record;
599
600#ifdef USING_MIG_STRNCPY_ZEROFILL
601 if (mig_strncpy_zerofill != NULL) {
602 InP->bundlePathCnt = mig_strncpy_zerofill(InP->bundlePath, bundlePath, 1024);
603 } else {
604#endif /* USING_MIG_STRNCPY_ZEROFILL */
605 InP->bundlePathCnt = mig_strncpy(InP->bundlePath, bundlePath, 1024);
606#ifdef USING_MIG_STRNCPY_ZEROFILL
607 }
608#endif /* USING_MIG_STRNCPY_ZEROFILL */
609
610 msgh_size_delta = _WALIGN_(InP->bundlePathCnt);
611 msgh_size = (mach_msg_size_t)(sizeof(Request) - 2432) + msgh_size_delta;
612 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024);
613
614#ifdef USING_MIG_STRNCPY_ZEROFILL
615 if (mig_strncpy_zerofill != NULL) {
616 InP->fileNameCnt = mig_strncpy_zerofill(InP->fileName, fileName, 128);
617 } else {
618#endif /* USING_MIG_STRNCPY_ZEROFILL */
619 InP->fileNameCnt = mig_strncpy(InP->fileName, fileName, 128);
620#ifdef USING_MIG_STRNCPY_ZEROFILL
621 }
622#endif /* USING_MIG_STRNCPY_ZEROFILL */
623
624 msgh_size_delta = _WALIGN_(InP->fileNameCnt);
625 msgh_size += msgh_size_delta;
626 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
627
628#ifdef USING_MIG_STRNCPY_ZEROFILL
629 if (mig_strncpy_zerofill != NULL) {
630 InP->fileExtensionCnt = mig_strncpy_zerofill(InP->fileExtension, fileExtension, 128);
631 } else {
632#endif /* USING_MIG_STRNCPY_ZEROFILL */
633 InP->fileExtensionCnt = mig_strncpy(InP->fileExtension, fileExtension, 128);
634#ifdef USING_MIG_STRNCPY_ZEROFILL
635 }
636#endif /* USING_MIG_STRNCPY_ZEROFILL */
637
638 msgh_size_delta = _WALIGN_(InP->fileExtensionCnt);
639 msgh_size += msgh_size_delta;
640 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
641
642#ifdef USING_MIG_STRNCPY_ZEROFILL
643 if (mig_strncpy_zerofill != NULL) {
644 InP->messageKeyCnt = mig_strncpy_zerofill(InP->messageKey, messageKey, 128);
645 } else {
646#endif /* USING_MIG_STRNCPY_ZEROFILL */
647 InP->messageKeyCnt = mig_strncpy(InP->messageKey, messageKey, 128);
648#ifdef USING_MIG_STRNCPY_ZEROFILL
649 }
650#endif /* USING_MIG_STRNCPY_ZEROFILL */
651
652 msgh_size_delta = _WALIGN_(InP->messageKeyCnt);
653 msgh_size += msgh_size_delta;
654 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
655
656#ifdef USING_MIG_STRNCPY_ZEROFILL
657 if (mig_strncpy_zerofill != NULL) {
658 InP->tokenKeyCnt = mig_strncpy_zerofill(InP->tokenKey, tokenKey, 1024);
659 } else {
660#endif /* USING_MIG_STRNCPY_ZEROFILL */
661 InP->tokenKeyCnt = mig_strncpy(InP->tokenKey, tokenKey, 1024);
662#ifdef USING_MIG_STRNCPY_ZEROFILL
663 }
664#endif /* USING_MIG_STRNCPY_ZEROFILL */
665
666 msgh_size += _WALIGN_(InP->tokenKeyCnt);
667 InP = &Mess->In;
668 InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX|
669 MACH_MSGH_BITS(19, 0);
670 /* msgh_size passed as argument */
671 InP->Head.msgh_request_port = server;
672 InP->Head.msgh_reply_port = MACH_PORT_NULL;
673 InP->Head.msgh_id = 6003;
674 InP->Head.msgh_reserved = 0;
675
676 __BeforeSendSimple(6003, "UNDDisplayCustomFromBundle_rpc")
677#if __MigKernelSpecificCode
678 msg_result = mach_msg_send_from_kernel(&InP->Head, msgh_size);
679#else
680 msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_MSG_OPTION_NONE, msgh_size, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
681#endif /* __MigKernelSpecificCode */
682 __AfterSendSimple(6003, "UNDDisplayCustomFromBundle_rpc")
683 { mig_user_deallocate((char *) Mess, sizeof(*Mess)); return msg_result; }
684}
685
686/* SimpleRoutine UNDCancelNotification_rpc */
687mig_external kern_return_t UNDCancelNotification_rpc
688(
689 UNDServerRef server,
690 int userLandNotificationKey
691)
692{
693
694#ifdef __MigPackStructs
695#pragma pack(4)
696#endif
697 typedef struct {
698 mach_msg_header_t Head;
699 NDR_record_t NDR;
700 int userLandNotificationKey;
701 } Request __attribute__((unused));
702#ifdef __MigPackStructs
703#pragma pack()
704#endif
705 /*
706 * typedef struct {
707 * mach_msg_header_t Head;
708 * NDR_record_t NDR;
709 * kern_return_t RetCode;
710 * } mig_reply_error_t;
711 */
712
713 union {
714 Request In;
715 } Mess;
716
717 Request *InP = &Mess.In;
718
719 mach_msg_return_t msg_result;
720
721#ifdef __MIG_check__Reply__UNDCancelNotification_rpc_t__defined
722 kern_return_t check_result;
723#endif /* __MIG_check__Reply__UNDCancelNotification_rpc_t__defined */
724
725 __DeclareSendSimple(6005, "UNDCancelNotification_rpc")
726
727 InP->NDR = NDR_record;
728
729 InP->userLandNotificationKey = userLandNotificationKey;
730
731 InP->Head.msgh_bits =
732 MACH_MSGH_BITS(19, 0);
733 /* msgh_size passed as argument */
734 InP->Head.msgh_request_port = server;
735 InP->Head.msgh_reply_port = MACH_PORT_NULL;
736 InP->Head.msgh_id = 6005;
737 InP->Head.msgh_reserved = 0;
738
739 __BeforeSendSimple(6005, "UNDCancelNotification_rpc")
740#if __MigKernelSpecificCode
741 msg_result = mach_msg_send_from_kernel(&InP->Head, (mach_msg_size_t)sizeof(Request));
742#else
743 msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
744#endif /* __MigKernelSpecificCode */
745 __AfterSendSimple(6005, "UNDCancelNotification_rpc")
746 return msg_result;
747}
748
749/* SimpleRoutine UNDDisplayNoticeSimple_rpc */
750mig_external kern_return_t UNDDisplayNoticeSimple_rpc
751(
752 UNDServerRef server,
753 int rpctimeout,
754 unsigned flags,
755 UNDLabel iconPath,
756 UNDLabel soundPath,
757 UNDLabel localizationPath,
758 UNDLabel header,
759 UNDMessage message,
760 UNDLabel defaultButtonTitle
761)
762{
763
764#ifdef __MigPackStructs
765#pragma pack(4)
766#endif
767 typedef struct {
768 mach_msg_header_t Head;
769 NDR_record_t NDR;
770 int rpctimeout;
771 unsigned flags;
772 mach_msg_type_number_t iconPathOffset; /* MiG doesn't use it */
773 mach_msg_type_number_t iconPathCnt;
774 char iconPath[128];
775 mach_msg_type_number_t soundPathOffset; /* MiG doesn't use it */
776 mach_msg_type_number_t soundPathCnt;
777 char soundPath[128];
778 mach_msg_type_number_t localizationPathOffset; /* MiG doesn't use it */
779 mach_msg_type_number_t localizationPathCnt;
780 char localizationPath[128];
781 mach_msg_type_number_t headerOffset; /* MiG doesn't use it */
782 mach_msg_type_number_t headerCnt;
783 char header[128];
784 mach_msg_type_number_t messageOffset; /* MiG doesn't use it */
785 mach_msg_type_number_t messageCnt;
786 char message[1024];
787 mach_msg_type_number_t defaultButtonTitleOffset; /* MiG doesn't use it */
788 mach_msg_type_number_t defaultButtonTitleCnt;
789 char defaultButtonTitle[128];
790 } Request __attribute__((unused));
791#ifdef __MigPackStructs
792#pragma pack()
793#endif
794 /*
795 * typedef struct {
796 * mach_msg_header_t Head;
797 * NDR_record_t NDR;
798 * kern_return_t RetCode;
799 * } mig_reply_error_t;
800 */
801
802 union UNDDisplayNoticeSimple_rpcMessU {
803 Request In;
804 } *Mess = (union UNDDisplayNoticeSimple_rpcMessU *) mig_user_allocate(sizeof(*Mess));
805
806 Request *InP = &Mess->In;
807
808 mach_msg_return_t msg_result;
809 unsigned int msgh_size;
810 unsigned int msgh_size_delta;
811
812
813#ifdef __MIG_check__Reply__UNDDisplayNoticeSimple_rpc_t__defined
814 kern_return_t check_result;
815#endif /* __MIG_check__Reply__UNDDisplayNoticeSimple_rpc_t__defined */
816
817 __DeclareSendSimple(6006, "UNDDisplayNoticeSimple_rpc")
818
819 InP->NDR = NDR_record;
820
821 InP->rpctimeout = rpctimeout;
822
823 InP->flags = flags;
824
825#ifdef USING_MIG_STRNCPY_ZEROFILL
826 if (mig_strncpy_zerofill != NULL) {
827 InP->iconPathCnt = mig_strncpy_zerofill(InP->iconPath, iconPath, 128);
828 } else {
829#endif /* USING_MIG_STRNCPY_ZEROFILL */
830 InP->iconPathCnt = mig_strncpy(InP->iconPath, iconPath, 128);
831#ifdef USING_MIG_STRNCPY_ZEROFILL
832 }
833#endif /* USING_MIG_STRNCPY_ZEROFILL */
834
835 msgh_size_delta = _WALIGN_(InP->iconPathCnt);
836 msgh_size = (mach_msg_size_t)(sizeof(Request) - 1664) + msgh_size_delta;
837 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
838
839#ifdef USING_MIG_STRNCPY_ZEROFILL
840 if (mig_strncpy_zerofill != NULL) {
841 InP->soundPathCnt = mig_strncpy_zerofill(InP->soundPath, soundPath, 128);
842 } else {
843#endif /* USING_MIG_STRNCPY_ZEROFILL */
844 InP->soundPathCnt = mig_strncpy(InP->soundPath, soundPath, 128);
845#ifdef USING_MIG_STRNCPY_ZEROFILL
846 }
847#endif /* USING_MIG_STRNCPY_ZEROFILL */
848
849 msgh_size_delta = _WALIGN_(InP->soundPathCnt);
850 msgh_size += msgh_size_delta;
851 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
852
853#ifdef USING_MIG_STRNCPY_ZEROFILL
854 if (mig_strncpy_zerofill != NULL) {
855 InP->localizationPathCnt = mig_strncpy_zerofill(InP->localizationPath, localizationPath, 128);
856 } else {
857#endif /* USING_MIG_STRNCPY_ZEROFILL */
858 InP->localizationPathCnt = mig_strncpy(InP->localizationPath, localizationPath, 128);
859#ifdef USING_MIG_STRNCPY_ZEROFILL
860 }
861#endif /* USING_MIG_STRNCPY_ZEROFILL */
862
863 msgh_size_delta = _WALIGN_(InP->localizationPathCnt);
864 msgh_size += msgh_size_delta;
865 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
866
867#ifdef USING_MIG_STRNCPY_ZEROFILL
868 if (mig_strncpy_zerofill != NULL) {
869 InP->headerCnt = mig_strncpy_zerofill(InP->header, header, 128);
870 } else {
871#endif /* USING_MIG_STRNCPY_ZEROFILL */
872 InP->headerCnt = mig_strncpy(InP->header, header, 128);
873#ifdef USING_MIG_STRNCPY_ZEROFILL
874 }
875#endif /* USING_MIG_STRNCPY_ZEROFILL */
876
877 msgh_size_delta = _WALIGN_(InP->headerCnt);
878 msgh_size += msgh_size_delta;
879 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
880
881#ifdef USING_MIG_STRNCPY_ZEROFILL
882 if (mig_strncpy_zerofill != NULL) {
883 InP->messageCnt = mig_strncpy_zerofill(InP->message, message, 1024);
884 } else {
885#endif /* USING_MIG_STRNCPY_ZEROFILL */
886 InP->messageCnt = mig_strncpy(InP->message, message, 1024);
887#ifdef USING_MIG_STRNCPY_ZEROFILL
888 }
889#endif /* USING_MIG_STRNCPY_ZEROFILL */
890
891 msgh_size_delta = _WALIGN_(InP->messageCnt);
892 msgh_size += msgh_size_delta;
893 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024);
894
895#ifdef USING_MIG_STRNCPY_ZEROFILL
896 if (mig_strncpy_zerofill != NULL) {
897 InP->defaultButtonTitleCnt = mig_strncpy_zerofill(InP->defaultButtonTitle, defaultButtonTitle, 128);
898 } else {
899#endif /* USING_MIG_STRNCPY_ZEROFILL */
900 InP->defaultButtonTitleCnt = mig_strncpy(InP->defaultButtonTitle, defaultButtonTitle, 128);
901#ifdef USING_MIG_STRNCPY_ZEROFILL
902 }
903#endif /* USING_MIG_STRNCPY_ZEROFILL */
904
905 msgh_size += _WALIGN_(InP->defaultButtonTitleCnt);
906 InP = &Mess->In;
907 InP->Head.msgh_bits =
908 MACH_MSGH_BITS(19, 0);
909 /* msgh_size passed as argument */
910 InP->Head.msgh_request_port = server;
911 InP->Head.msgh_reply_port = MACH_PORT_NULL;
912 InP->Head.msgh_id = 6006;
913 InP->Head.msgh_reserved = 0;
914
915 __BeforeSendSimple(6006, "UNDDisplayNoticeSimple_rpc")
916#if __MigKernelSpecificCode
917 msg_result = mach_msg_send_from_kernel(&InP->Head, msgh_size);
918#else
919 msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_MSG_OPTION_NONE, msgh_size, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
920#endif /* __MigKernelSpecificCode */
921 __AfterSendSimple(6006, "UNDDisplayNoticeSimple_rpc")
922 { mig_user_deallocate((char *) Mess, sizeof(*Mess)); return msg_result; }
923}
924
925#if ( __MigTypeCheck )
926#if __MIG_check__Reply__UNDRequest_subsystem__
927#if !defined(__MIG_check__Reply__UNDDisplayAlertSimple_rpc_t__defined)
928#define __MIG_check__Reply__UNDDisplayAlertSimple_rpc_t__defined
929
930mig_internal kern_return_t __MIG_check__Reply__UNDDisplayAlertSimple_rpc_t(__Reply__UNDDisplayAlertSimple_rpc_t *Out0P)
931{
932
933 typedef __Reply__UNDDisplayAlertSimple_rpc_t __Reply __attribute__((unused));
934#if __MigTypeCheck
935 unsigned int msgh_size;
936#endif /* __MigTypeCheck */
937 if (Out0P->Head.msgh_id != 6107) {
938 if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE)
939 { return MIG_SERVER_DIED; }
940 else
941 { return MIG_REPLY_MISMATCH; }
942 }
943
944#if __MigTypeCheck
945 msgh_size = Out0P->Head.msgh_size;
946
947 if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) ||
948 ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) &&
949 (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) ||
950 Out0P->RetCode == KERN_SUCCESS)))
951 { return MIG_TYPE_ERROR ; }
952#endif /* __MigTypeCheck */
953
954 if (Out0P->RetCode != KERN_SUCCESS) {
955 return ((mig_reply_error_t *)Out0P)->RetCode;
956 }
957
958 return MACH_MSG_SUCCESS;
959}
960#endif /* !defined(__MIG_check__Reply__UNDDisplayAlertSimple_rpc_t__defined) */
961#endif /* __MIG_check__Reply__UNDRequest_subsystem__ */
962#endif /* ( __MigTypeCheck ) */
963
964
965/* Routine UNDDisplayAlertSimple_rpc */
966mig_external kern_return_t UNDDisplayAlertSimple_rpc
967(
968 UNDServerRef server,
969 int rpctimeout,
970 unsigned flags,
971 UNDLabel iconPath,
972 UNDLabel soundPath,
973 UNDLabel localizationPath,
974 UNDLabel header,
975 UNDMessage message,
976 UNDLabel defaultButtonTitle,
977 UNDLabel alternateButtonTitle,
978 UNDLabel otherButtonTitle,
979 unsigned *response
980)
981{
982
983#ifdef __MigPackStructs
984#pragma pack(4)
985#endif
986 typedef struct {
987 mach_msg_header_t Head;
988 NDR_record_t NDR;
989 int rpctimeout;
990 unsigned flags;
991 mach_msg_type_number_t iconPathOffset; /* MiG doesn't use it */
992 mach_msg_type_number_t iconPathCnt;
993 char iconPath[128];
994 mach_msg_type_number_t soundPathOffset; /* MiG doesn't use it */
995 mach_msg_type_number_t soundPathCnt;
996 char soundPath[128];
997 mach_msg_type_number_t localizationPathOffset; /* MiG doesn't use it */
998 mach_msg_type_number_t localizationPathCnt;
999 char localizationPath[128];
1000 mach_msg_type_number_t headerOffset; /* MiG doesn't use it */
1001 mach_msg_type_number_t headerCnt;
1002 char header[128];
1003 mach_msg_type_number_t messageOffset; /* MiG doesn't use it */
1004 mach_msg_type_number_t messageCnt;
1005 char message[1024];
1006 mach_msg_type_number_t defaultButtonTitleOffset; /* MiG doesn't use it */
1007 mach_msg_type_number_t defaultButtonTitleCnt;
1008 char defaultButtonTitle[128];
1009 mach_msg_type_number_t alternateButtonTitleOffset; /* MiG doesn't use it */
1010 mach_msg_type_number_t alternateButtonTitleCnt;
1011 char alternateButtonTitle[128];
1012 mach_msg_type_number_t otherButtonTitleOffset; /* MiG doesn't use it */
1013 mach_msg_type_number_t otherButtonTitleCnt;
1014 char otherButtonTitle[128];
1015 } Request __attribute__((unused));
1016#ifdef __MigPackStructs
1017#pragma pack()
1018#endif
1019
1020#ifdef __MigPackStructs
1021#pragma pack(4)
1022#endif
1023 typedef struct {
1024 mach_msg_header_t Head;
1025 NDR_record_t NDR;
1026 kern_return_t RetCode;
1027 unsigned response;
1028 mach_msg_trailer_t trailer;
1029 } Reply __attribute__((unused));
1030#ifdef __MigPackStructs
1031#pragma pack()
1032#endif
1033
1034#ifdef __MigPackStructs
1035#pragma pack(4)
1036#endif
1037 typedef struct {
1038 mach_msg_header_t Head;
1039 NDR_record_t NDR;
1040 kern_return_t RetCode;
1041 unsigned response;
1042 } __Reply __attribute__((unused));
1043#ifdef __MigPackStructs
1044#pragma pack()
1045#endif
1046 /*
1047 * typedef struct {
1048 * mach_msg_header_t Head;
1049 * NDR_record_t NDR;
1050 * kern_return_t RetCode;
1051 * } mig_reply_error_t;
1052 */
1053
1054 union UNDDisplayAlertSimple_rpcMessU {
1055 Request In;
1056 Reply Out;
1057 } *Mess = (union UNDDisplayAlertSimple_rpcMessU *) mig_user_allocate(sizeof(*Mess));
1058
1059 Request *InP = &Mess->In;
1060 Reply *Out0P = &Mess->Out;
1061
1062 mach_msg_return_t msg_result;
1063 unsigned int msgh_size;
1064 unsigned int msgh_size_delta;
1065
1066
1067#ifdef __MIG_check__Reply__UNDDisplayAlertSimple_rpc_t__defined
1068 kern_return_t check_result;
1069#endif /* __MIG_check__Reply__UNDDisplayAlertSimple_rpc_t__defined */
1070
1071 __DeclareSendRpc(6007, "UNDDisplayAlertSimple_rpc")
1072
1073 InP->NDR = NDR_record;
1074
1075 InP->rpctimeout = rpctimeout;
1076
1077 InP->flags = flags;
1078
1079#ifdef USING_MIG_STRNCPY_ZEROFILL
1080 if (mig_strncpy_zerofill != NULL) {
1081 InP->iconPathCnt = mig_strncpy_zerofill(InP->iconPath, iconPath, 128);
1082 } else {
1083#endif /* USING_MIG_STRNCPY_ZEROFILL */
1084 InP->iconPathCnt = mig_strncpy(InP->iconPath, iconPath, 128);
1085#ifdef USING_MIG_STRNCPY_ZEROFILL
1086 }
1087#endif /* USING_MIG_STRNCPY_ZEROFILL */
1088
1089 msgh_size_delta = _WALIGN_(InP->iconPathCnt);
1090 msgh_size = (mach_msg_size_t)(sizeof(Request) - 1920) + msgh_size_delta;
1091 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
1092
1093#ifdef USING_MIG_STRNCPY_ZEROFILL
1094 if (mig_strncpy_zerofill != NULL) {
1095 InP->soundPathCnt = mig_strncpy_zerofill(InP->soundPath, soundPath, 128);
1096 } else {
1097#endif /* USING_MIG_STRNCPY_ZEROFILL */
1098 InP->soundPathCnt = mig_strncpy(InP->soundPath, soundPath, 128);
1099#ifdef USING_MIG_STRNCPY_ZEROFILL
1100 }
1101#endif /* USING_MIG_STRNCPY_ZEROFILL */
1102
1103 msgh_size_delta = _WALIGN_(InP->soundPathCnt);
1104 msgh_size += msgh_size_delta;
1105 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
1106
1107#ifdef USING_MIG_STRNCPY_ZEROFILL
1108 if (mig_strncpy_zerofill != NULL) {
1109 InP->localizationPathCnt = mig_strncpy_zerofill(InP->localizationPath, localizationPath, 128);
1110 } else {
1111#endif /* USING_MIG_STRNCPY_ZEROFILL */
1112 InP->localizationPathCnt = mig_strncpy(InP->localizationPath, localizationPath, 128);
1113#ifdef USING_MIG_STRNCPY_ZEROFILL
1114 }
1115#endif /* USING_MIG_STRNCPY_ZEROFILL */
1116
1117 msgh_size_delta = _WALIGN_(InP->localizationPathCnt);
1118 msgh_size += msgh_size_delta;
1119 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
1120
1121#ifdef USING_MIG_STRNCPY_ZEROFILL
1122 if (mig_strncpy_zerofill != NULL) {
1123 InP->headerCnt = mig_strncpy_zerofill(InP->header, header, 128);
1124 } else {
1125#endif /* USING_MIG_STRNCPY_ZEROFILL */
1126 InP->headerCnt = mig_strncpy(InP->header, header, 128);
1127#ifdef USING_MIG_STRNCPY_ZEROFILL
1128 }
1129#endif /* USING_MIG_STRNCPY_ZEROFILL */
1130
1131 msgh_size_delta = _WALIGN_(InP->headerCnt);
1132 msgh_size += msgh_size_delta;
1133 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
1134
1135#ifdef USING_MIG_STRNCPY_ZEROFILL
1136 if (mig_strncpy_zerofill != NULL) {
1137 InP->messageCnt = mig_strncpy_zerofill(InP->message, message, 1024);
1138 } else {
1139#endif /* USING_MIG_STRNCPY_ZEROFILL */
1140 InP->messageCnt = mig_strncpy(InP->message, message, 1024);
1141#ifdef USING_MIG_STRNCPY_ZEROFILL
1142 }
1143#endif /* USING_MIG_STRNCPY_ZEROFILL */
1144
1145 msgh_size_delta = _WALIGN_(InP->messageCnt);
1146 msgh_size += msgh_size_delta;
1147 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024);
1148
1149#ifdef USING_MIG_STRNCPY_ZEROFILL
1150 if (mig_strncpy_zerofill != NULL) {
1151 InP->defaultButtonTitleCnt = mig_strncpy_zerofill(InP->defaultButtonTitle, defaultButtonTitle, 128);
1152 } else {
1153#endif /* USING_MIG_STRNCPY_ZEROFILL */
1154 InP->defaultButtonTitleCnt = mig_strncpy(InP->defaultButtonTitle, defaultButtonTitle, 128);
1155#ifdef USING_MIG_STRNCPY_ZEROFILL
1156 }
1157#endif /* USING_MIG_STRNCPY_ZEROFILL */
1158
1159 msgh_size_delta = _WALIGN_(InP->defaultButtonTitleCnt);
1160 msgh_size += msgh_size_delta;
1161 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
1162
1163#ifdef USING_MIG_STRNCPY_ZEROFILL
1164 if (mig_strncpy_zerofill != NULL) {
1165 InP->alternateButtonTitleCnt = mig_strncpy_zerofill(InP->alternateButtonTitle, alternateButtonTitle, 128);
1166 } else {
1167#endif /* USING_MIG_STRNCPY_ZEROFILL */
1168 InP->alternateButtonTitleCnt = mig_strncpy(InP->alternateButtonTitle, alternateButtonTitle, 128);
1169#ifdef USING_MIG_STRNCPY_ZEROFILL
1170 }
1171#endif /* USING_MIG_STRNCPY_ZEROFILL */
1172
1173 msgh_size_delta = _WALIGN_(InP->alternateButtonTitleCnt);
1174 msgh_size += msgh_size_delta;
1175 InP = (Request *) ((pointer_t) InP + msgh_size_delta - 128);
1176
1177#ifdef USING_MIG_STRNCPY_ZEROFILL
1178 if (mig_strncpy_zerofill != NULL) {
1179 InP->otherButtonTitleCnt = mig_strncpy_zerofill(InP->otherButtonTitle, otherButtonTitle, 128);
1180 } else {
1181#endif /* USING_MIG_STRNCPY_ZEROFILL */
1182 InP->otherButtonTitleCnt = mig_strncpy(InP->otherButtonTitle, otherButtonTitle, 128);
1183#ifdef USING_MIG_STRNCPY_ZEROFILL
1184 }
1185#endif /* USING_MIG_STRNCPY_ZEROFILL */
1186
1187 msgh_size += _WALIGN_(InP->otherButtonTitleCnt);
1188 InP = &Mess->In;
1189 InP->Head.msgh_bits =
1190 MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
1191 /* msgh_size passed as argument */
1192 InP->Head.msgh_request_port = server;
1193 InP->Head.msgh_reply_port = mig_get_reply_port();
1194 InP->Head.msgh_id = 6007;
1195 InP->Head.msgh_reserved = 0;
1196
1197 __BeforeSendRpc(6007, "UNDDisplayAlertSimple_rpc")
1198#if (__MigKernelSpecificCode) || (_MIG_KERNELSPECIFIC_CODE_)
1199 msg_result = mach_msg_rpc_from_kernel(&InP->Head, msgh_size, (mach_msg_size_t)sizeof(Reply));
1200#else
1201 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);
1202#endif /* __MigKernelSpecificCode */
1203 __AfterSendRpc(6007, "UNDDisplayAlertSimple_rpc")
1204 if (msg_result != MACH_MSG_SUCCESS) {
1205 __MachMsgErrorWithoutTimeout(msg_result);
1206 { mig_user_deallocate((char *) Mess, (mach_msg_size_t)sizeof(*Mess)); return msg_result; }
1207 }
1208
1209
1210#if defined(__MIG_check__Reply__UNDDisplayAlertSimple_rpc_t__defined)
1211 check_result = __MIG_check__Reply__UNDDisplayAlertSimple_rpc_t((__Reply__UNDDisplayAlertSimple_rpc_t *)Out0P);
1212 if (check_result != MACH_MSG_SUCCESS)
1213 { mig_user_deallocate((char *) Mess, (mach_msg_size_t)sizeof(*Mess)); return check_result; }
1214#endif /* defined(__MIG_check__Reply__UNDDisplayAlertSimple_rpc_t__defined) */
1215
1216 *response = Out0P->response;
1217
1218 { mig_user_deallocate((char *) Mess, sizeof(*Mess)); return KERN_SUCCESS; }
1219}
1220