Chameleon

Chameleon Svn Source Tree

Root/tags/2.0/i386/include/mach/x86_64/thread_act.h

Source at commit 1733 created 12 years 6 months ago.
By blackosx, Use the result from an intitial check to find if the target volume has an EFI system partition, later on in the installation process before checking for previous Chameleon installations. Add some feedback to the installer log.
1#ifndef_thread_act_user_
2#define_thread_act_user_
3
4/* Module thread_act */
5
6#include <string.h>
7#include <mach/ndr.h>
8#include <mach/boolean.h>
9#include <mach/kern_return.h>
10#include <mach/notify.h>
11#include <mach/mach_types.h>
12#include <mach/message.h>
13#include <mach/mig_errors.h>
14#include <mach/port.h>
15
16#ifdef AUTOTEST
17#ifndef FUNCTION_PTR_T
18#define FUNCTION_PTR_T
19typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
20typedef struct {
21 char *name;
22 function_ptr_t function;
23} function_table_entry;
24typedef function_table_entry *function_table_t;
25#endif /* FUNCTION_PTR_T */
26#endif /* AUTOTEST */
27
28#ifndefthread_act_MSG_COUNT
29#definethread_act_MSG_COUNT25
30#endif/* thread_act_MSG_COUNT */
31
32#include <mach/std_types.h>
33#include <mach/mig.h>
34#include <mach/mig.h>
35#include <mach/mach_types.h>
36
37#ifdef __BeforeMigUserHeader
38__BeforeMigUserHeader
39#endif /* __BeforeMigUserHeader */
40
41#include <sys/cdefs.h>
42__BEGIN_DECLS
43
44
45/* Routine thread_terminate */
46#ifdefmig_external
47mig_external
48#else
49extern
50#endif/* mig_external */
51kern_return_t thread_terminate
52(
53thread_act_t target_act
54);
55
56/* Routine act_get_state */
57#ifdefmig_external
58mig_external
59#else
60extern
61#endif/* mig_external */
62kern_return_t act_get_state
63(
64thread_act_t target_act,
65int flavor,
66thread_state_t old_state,
67mach_msg_type_number_t *old_stateCnt
68);
69
70/* Routine act_set_state */
71#ifdefmig_external
72mig_external
73#else
74extern
75#endif/* mig_external */
76kern_return_t act_set_state
77(
78thread_act_t target_act,
79int flavor,
80thread_state_t new_state,
81mach_msg_type_number_t new_stateCnt
82);
83
84/* Routine thread_get_state */
85#ifdefmig_external
86mig_external
87#else
88extern
89#endif/* mig_external */
90kern_return_t thread_get_state
91(
92thread_act_t target_act,
93thread_state_flavor_t flavor,
94thread_state_t old_state,
95mach_msg_type_number_t *old_stateCnt
96);
97
98/* Routine thread_set_state */
99#ifdefmig_external
100mig_external
101#else
102extern
103#endif/* mig_external */
104kern_return_t thread_set_state
105(
106thread_act_t target_act,
107thread_state_flavor_t flavor,
108thread_state_t new_state,
109mach_msg_type_number_t new_stateCnt
110);
111
112/* Routine thread_suspend */
113#ifdefmig_external
114mig_external
115#else
116extern
117#endif/* mig_external */
118kern_return_t thread_suspend
119(
120thread_act_t target_act
121);
122
123/* Routine thread_resume */
124#ifdefmig_external
125mig_external
126#else
127extern
128#endif/* mig_external */
129kern_return_t thread_resume
130(
131thread_act_t target_act
132);
133
134/* Routine thread_abort */
135#ifdefmig_external
136mig_external
137#else
138extern
139#endif/* mig_external */
140kern_return_t thread_abort
141(
142thread_act_t target_act
143);
144
145/* Routine thread_abort_safely */
146#ifdefmig_external
147mig_external
148#else
149extern
150#endif/* mig_external */
151kern_return_t thread_abort_safely
152(
153thread_act_t target_act
154);
155
156/* Routine thread_depress_abort */
157#ifdefmig_external
158mig_external
159#else
160extern
161#endif/* mig_external */
162kern_return_t thread_depress_abort
163(
164thread_act_t thread
165);
166
167/* Routine thread_get_special_port */
168#ifdefmig_external
169mig_external
170#else
171extern
172#endif/* mig_external */
173kern_return_t thread_get_special_port
174(
175thread_act_t thr_act,
176int which_port,
177mach_port_t *special_port
178);
179
180/* Routine thread_set_special_port */
181#ifdefmig_external
182mig_external
183#else
184extern
185#endif/* mig_external */
186kern_return_t thread_set_special_port
187(
188thread_act_t thr_act,
189int which_port,
190mach_port_t special_port
191);
192
193/* Routine thread_info */
194#ifdefmig_external
195mig_external
196#else
197extern
198#endif/* mig_external */
199kern_return_t thread_info
200(
201thread_act_t target_act,
202thread_flavor_t flavor,
203thread_info_t thread_info_out,
204mach_msg_type_number_t *thread_info_outCnt
205);
206
207/* Routine thread_set_exception_ports */
208#ifdefmig_external
209mig_external
210#else
211extern
212#endif/* mig_external */
213kern_return_t thread_set_exception_ports
214(
215thread_act_t thread,
216exception_mask_t exception_mask,
217mach_port_t new_port,
218exception_behavior_t behavior,
219thread_state_flavor_t new_flavor
220);
221
222/* Routine thread_get_exception_ports */
223#ifdefmig_external
224mig_external
225#else
226extern
227#endif/* mig_external */
228kern_return_t thread_get_exception_ports
229(
230thread_act_t thread,
231exception_mask_t exception_mask,
232exception_mask_array_t masks,
233mach_msg_type_number_t *masksCnt,
234exception_handler_array_t old_handlers,
235exception_behavior_array_t old_behaviors,
236exception_flavor_array_t old_flavors
237);
238
239/* Routine thread_swap_exception_ports */
240#ifdefmig_external
241mig_external
242#else
243extern
244#endif/* mig_external */
245kern_return_t thread_swap_exception_ports
246(
247thread_act_t thread,
248exception_mask_t exception_mask,
249mach_port_t new_port,
250exception_behavior_t behavior,
251thread_state_flavor_t new_flavor,
252exception_mask_array_t masks,
253mach_msg_type_number_t *masksCnt,
254exception_handler_array_t old_handlers,
255exception_behavior_array_t old_behaviors,
256exception_flavor_array_t old_flavors
257);
258
259/* Routine thread_policy */
260#ifdefmig_external
261mig_external
262#else
263extern
264#endif/* mig_external */
265kern_return_t thread_policy
266(
267thread_act_t thr_act,
268policy_t policy,
269policy_base_t base,
270mach_msg_type_number_t baseCnt,
271boolean_t set_limit
272);
273
274/* Routine thread_policy_set */
275#ifdefmig_external
276mig_external
277#else
278extern
279#endif/* mig_external */
280kern_return_t thread_policy_set
281(
282thread_act_t thread,
283thread_policy_flavor_t flavor,
284thread_policy_t policy_info,
285mach_msg_type_number_t policy_infoCnt
286);
287
288/* Routine thread_policy_get */
289#ifdefmig_external
290mig_external
291#else
292extern
293#endif/* mig_external */
294kern_return_t thread_policy_get
295(
296thread_act_t thread,
297thread_policy_flavor_t flavor,
298thread_policy_t policy_info,
299mach_msg_type_number_t *policy_infoCnt,
300boolean_t *get_default
301);
302
303/* Routine thread_sample */
304#ifdefmig_external
305mig_external
306#else
307extern
308#endif/* mig_external */
309kern_return_t thread_sample
310(
311thread_act_t thread,
312mach_port_t reply
313);
314
315/* Routine etap_trace_thread */
316#ifdefmig_external
317mig_external
318#else
319extern
320#endif/* mig_external */
321kern_return_t etap_trace_thread
322(
323thread_act_t target_act,
324boolean_t trace_status
325);
326
327/* Routine thread_assign */
328#ifdefmig_external
329mig_external
330#else
331extern
332#endif/* mig_external */
333kern_return_t thread_assign
334(
335thread_act_t thread,
336processor_set_t new_set
337);
338
339/* Routine thread_assign_default */
340#ifdefmig_external
341mig_external
342#else
343extern
344#endif/* mig_external */
345kern_return_t thread_assign_default
346(
347thread_act_t thread
348);
349
350/* Routine thread_get_assignment */
351#ifdefmig_external
352mig_external
353#else
354extern
355#endif/* mig_external */
356kern_return_t thread_get_assignment
357(
358thread_act_t thread,
359processor_set_name_t *assigned_set
360);
361
362/* Routine thread_set_policy */
363#ifdefmig_external
364mig_external
365#else
366extern
367#endif/* mig_external */
368kern_return_t thread_set_policy
369(
370thread_act_t thr_act,
371processor_set_t pset,
372policy_t policy,
373policy_base_t base,
374mach_msg_type_number_t baseCnt,
375policy_limit_t limit,
376mach_msg_type_number_t limitCnt
377);
378
379__END_DECLS
380
381/********************** Caution **************************/
382/* The following data types should be used to calculate */
383/* maximum message sizes only. The actual message may be */
384/* smaller, and the position of the arguments within the */
385/* message layout may vary from what is presented here. */
386/* For example, if any of the arguments are variable- */
387/* sized, and less than the maximum is sent, the data */
388/* will be packed tight in the actual message to reduce */
389/* the presence of holes. */
390/********************** Caution **************************/
391
392/* typedefs for all requests */
393
394#ifndef __Request__thread_act_subsystem__defined
395#define __Request__thread_act_subsystem__defined
396
397#ifdef __MigPackStructs
398#pragma pack(4)
399#endif
400typedef struct {
401mach_msg_header_t Head;
402} __Request__thread_terminate_t;
403#ifdef __MigPackStructs
404#pragma pack()
405#endif
406
407#ifdef __MigPackStructs
408#pragma pack(4)
409#endif
410typedef struct {
411mach_msg_header_t Head;
412NDR_record_t NDR;
413int flavor;
414mach_msg_type_number_t old_stateCnt;
415} __Request__act_get_state_t;
416#ifdef __MigPackStructs
417#pragma pack()
418#endif
419
420#ifdef __MigPackStructs
421#pragma pack(4)
422#endif
423typedef struct {
424mach_msg_header_t Head;
425NDR_record_t NDR;
426int flavor;
427mach_msg_type_number_t new_stateCnt;
428natural_t new_state[144];
429} __Request__act_set_state_t;
430#ifdef __MigPackStructs
431#pragma pack()
432#endif
433
434#ifdef __MigPackStructs
435#pragma pack(4)
436#endif
437typedef struct {
438mach_msg_header_t Head;
439NDR_record_t NDR;
440thread_state_flavor_t flavor;
441mach_msg_type_number_t old_stateCnt;
442} __Request__thread_get_state_t;
443#ifdef __MigPackStructs
444#pragma pack()
445#endif
446
447#ifdef __MigPackStructs
448#pragma pack(4)
449#endif
450typedef struct {
451mach_msg_header_t Head;
452NDR_record_t NDR;
453thread_state_flavor_t flavor;
454mach_msg_type_number_t new_stateCnt;
455natural_t new_state[144];
456} __Request__thread_set_state_t;
457#ifdef __MigPackStructs
458#pragma pack()
459#endif
460
461#ifdef __MigPackStructs
462#pragma pack(4)
463#endif
464typedef struct {
465mach_msg_header_t Head;
466} __Request__thread_suspend_t;
467#ifdef __MigPackStructs
468#pragma pack()
469#endif
470
471#ifdef __MigPackStructs
472#pragma pack(4)
473#endif
474typedef struct {
475mach_msg_header_t Head;
476} __Request__thread_resume_t;
477#ifdef __MigPackStructs
478#pragma pack()
479#endif
480
481#ifdef __MigPackStructs
482#pragma pack(4)
483#endif
484typedef struct {
485mach_msg_header_t Head;
486} __Request__thread_abort_t;
487#ifdef __MigPackStructs
488#pragma pack()
489#endif
490
491#ifdef __MigPackStructs
492#pragma pack(4)
493#endif
494typedef struct {
495mach_msg_header_t Head;
496} __Request__thread_abort_safely_t;
497#ifdef __MigPackStructs
498#pragma pack()
499#endif
500
501#ifdef __MigPackStructs
502#pragma pack(4)
503#endif
504typedef struct {
505mach_msg_header_t Head;
506} __Request__thread_depress_abort_t;
507#ifdef __MigPackStructs
508#pragma pack()
509#endif
510
511#ifdef __MigPackStructs
512#pragma pack(4)
513#endif
514typedef struct {
515mach_msg_header_t Head;
516NDR_record_t NDR;
517int which_port;
518} __Request__thread_get_special_port_t;
519#ifdef __MigPackStructs
520#pragma pack()
521#endif
522
523#ifdef __MigPackStructs
524#pragma pack(4)
525#endif
526typedef struct {
527mach_msg_header_t Head;
528/* start of the kernel processed data */
529mach_msg_body_t msgh_body;
530mach_msg_port_descriptor_t special_port;
531/* end of the kernel processed data */
532NDR_record_t NDR;
533int which_port;
534} __Request__thread_set_special_port_t;
535#ifdef __MigPackStructs
536#pragma pack()
537#endif
538
539#ifdef __MigPackStructs
540#pragma pack(4)
541#endif
542typedef struct {
543mach_msg_header_t Head;
544NDR_record_t NDR;
545thread_flavor_t flavor;
546mach_msg_type_number_t thread_info_outCnt;
547} __Request__thread_info_t;
548#ifdef __MigPackStructs
549#pragma pack()
550#endif
551
552#ifdef __MigPackStructs
553#pragma pack(4)
554#endif
555typedef struct {
556mach_msg_header_t Head;
557/* start of the kernel processed data */
558mach_msg_body_t msgh_body;
559mach_msg_port_descriptor_t new_port;
560/* end of the kernel processed data */
561NDR_record_t NDR;
562exception_mask_t exception_mask;
563exception_behavior_t behavior;
564thread_state_flavor_t new_flavor;
565} __Request__thread_set_exception_ports_t;
566#ifdef __MigPackStructs
567#pragma pack()
568#endif
569
570#ifdef __MigPackStructs
571#pragma pack(4)
572#endif
573typedef struct {
574mach_msg_header_t Head;
575NDR_record_t NDR;
576exception_mask_t exception_mask;
577} __Request__thread_get_exception_ports_t;
578#ifdef __MigPackStructs
579#pragma pack()
580#endif
581
582#ifdef __MigPackStructs
583#pragma pack(4)
584#endif
585typedef struct {
586mach_msg_header_t Head;
587/* start of the kernel processed data */
588mach_msg_body_t msgh_body;
589mach_msg_port_descriptor_t new_port;
590/* end of the kernel processed data */
591NDR_record_t NDR;
592exception_mask_t exception_mask;
593exception_behavior_t behavior;
594thread_state_flavor_t new_flavor;
595} __Request__thread_swap_exception_ports_t;
596#ifdef __MigPackStructs
597#pragma pack()
598#endif
599
600#ifdef __MigPackStructs
601#pragma pack(4)
602#endif
603typedef struct {
604mach_msg_header_t Head;
605NDR_record_t NDR;
606policy_t policy;
607mach_msg_type_number_t baseCnt;
608integer_t base[5];
609boolean_t set_limit;
610} __Request__thread_policy_t;
611#ifdef __MigPackStructs
612#pragma pack()
613#endif
614
615#ifdef __MigPackStructs
616#pragma pack(4)
617#endif
618typedef struct {
619mach_msg_header_t Head;
620NDR_record_t NDR;
621thread_policy_flavor_t flavor;
622mach_msg_type_number_t policy_infoCnt;
623integer_t policy_info[16];
624} __Request__thread_policy_set_t;
625#ifdef __MigPackStructs
626#pragma pack()
627#endif
628
629#ifdef __MigPackStructs
630#pragma pack(4)
631#endif
632typedef struct {
633mach_msg_header_t Head;
634NDR_record_t NDR;
635thread_policy_flavor_t flavor;
636mach_msg_type_number_t policy_infoCnt;
637boolean_t get_default;
638} __Request__thread_policy_get_t;
639#ifdef __MigPackStructs
640#pragma pack()
641#endif
642
643#ifdef __MigPackStructs
644#pragma pack(4)
645#endif
646typedef struct {
647mach_msg_header_t Head;
648/* start of the kernel processed data */
649mach_msg_body_t msgh_body;
650mach_msg_port_descriptor_t reply;
651/* end of the kernel processed data */
652} __Request__thread_sample_t;
653#ifdef __MigPackStructs
654#pragma pack()
655#endif
656
657#ifdef __MigPackStructs
658#pragma pack(4)
659#endif
660typedef struct {
661mach_msg_header_t Head;
662NDR_record_t NDR;
663boolean_t trace_status;
664} __Request__etap_trace_thread_t;
665#ifdef __MigPackStructs
666#pragma pack()
667#endif
668
669#ifdef __MigPackStructs
670#pragma pack(4)
671#endif
672typedef struct {
673mach_msg_header_t Head;
674/* start of the kernel processed data */
675mach_msg_body_t msgh_body;
676mach_msg_port_descriptor_t new_set;
677/* end of the kernel processed data */
678} __Request__thread_assign_t;
679#ifdef __MigPackStructs
680#pragma pack()
681#endif
682
683#ifdef __MigPackStructs
684#pragma pack(4)
685#endif
686typedef struct {
687mach_msg_header_t Head;
688} __Request__thread_assign_default_t;
689#ifdef __MigPackStructs
690#pragma pack()
691#endif
692
693#ifdef __MigPackStructs
694#pragma pack(4)
695#endif
696typedef struct {
697mach_msg_header_t Head;
698} __Request__thread_get_assignment_t;
699#ifdef __MigPackStructs
700#pragma pack()
701#endif
702
703#ifdef __MigPackStructs
704#pragma pack(4)
705#endif
706typedef struct {
707mach_msg_header_t Head;
708/* start of the kernel processed data */
709mach_msg_body_t msgh_body;
710mach_msg_port_descriptor_t pset;
711/* end of the kernel processed data */
712NDR_record_t NDR;
713policy_t policy;
714mach_msg_type_number_t baseCnt;
715integer_t base[5];
716mach_msg_type_number_t limitCnt;
717integer_t limit[1];
718} __Request__thread_set_policy_t;
719#ifdef __MigPackStructs
720#pragma pack()
721#endif
722#endif /* !__Request__thread_act_subsystem__defined */
723
724/* union of all requests */
725
726#ifndef __RequestUnion__thread_act_subsystem__defined
727#define __RequestUnion__thread_act_subsystem__defined
728union __RequestUnion__thread_act_subsystem {
729__Request__thread_terminate_t Request_thread_terminate;
730__Request__act_get_state_t Request_act_get_state;
731__Request__act_set_state_t Request_act_set_state;
732__Request__thread_get_state_t Request_thread_get_state;
733__Request__thread_set_state_t Request_thread_set_state;
734__Request__thread_suspend_t Request_thread_suspend;
735__Request__thread_resume_t Request_thread_resume;
736__Request__thread_abort_t Request_thread_abort;
737__Request__thread_abort_safely_t Request_thread_abort_safely;
738__Request__thread_depress_abort_t Request_thread_depress_abort;
739__Request__thread_get_special_port_t Request_thread_get_special_port;
740__Request__thread_set_special_port_t Request_thread_set_special_port;
741__Request__thread_info_t Request_thread_info;
742__Request__thread_set_exception_ports_t Request_thread_set_exception_ports;
743__Request__thread_get_exception_ports_t Request_thread_get_exception_ports;
744__Request__thread_swap_exception_ports_t Request_thread_swap_exception_ports;
745__Request__thread_policy_t Request_thread_policy;
746__Request__thread_policy_set_t Request_thread_policy_set;
747__Request__thread_policy_get_t Request_thread_policy_get;
748__Request__thread_sample_t Request_thread_sample;
749__Request__etap_trace_thread_t Request_etap_trace_thread;
750__Request__thread_assign_t Request_thread_assign;
751__Request__thread_assign_default_t Request_thread_assign_default;
752__Request__thread_get_assignment_t Request_thread_get_assignment;
753__Request__thread_set_policy_t Request_thread_set_policy;
754};
755#endif /* !__RequestUnion__thread_act_subsystem__defined */
756/* typedefs for all replies */
757
758#ifndef __Reply__thread_act_subsystem__defined
759#define __Reply__thread_act_subsystem__defined
760
761#ifdef __MigPackStructs
762#pragma pack(4)
763#endif
764typedef struct {
765mach_msg_header_t Head;
766NDR_record_t NDR;
767kern_return_t RetCode;
768} __Reply__thread_terminate_t;
769#ifdef __MigPackStructs
770#pragma pack()
771#endif
772
773#ifdef __MigPackStructs
774#pragma pack(4)
775#endif
776typedef struct {
777mach_msg_header_t Head;
778NDR_record_t NDR;
779kern_return_t RetCode;
780mach_msg_type_number_t old_stateCnt;
781natural_t old_state[144];
782} __Reply__act_get_state_t;
783#ifdef __MigPackStructs
784#pragma pack()
785#endif
786
787#ifdef __MigPackStructs
788#pragma pack(4)
789#endif
790typedef struct {
791mach_msg_header_t Head;
792NDR_record_t NDR;
793kern_return_t RetCode;
794} __Reply__act_set_state_t;
795#ifdef __MigPackStructs
796#pragma pack()
797#endif
798
799#ifdef __MigPackStructs
800#pragma pack(4)
801#endif
802typedef struct {
803mach_msg_header_t Head;
804NDR_record_t NDR;
805kern_return_t RetCode;
806mach_msg_type_number_t old_stateCnt;
807natural_t old_state[144];
808} __Reply__thread_get_state_t;
809#ifdef __MigPackStructs
810#pragma pack()
811#endif
812
813#ifdef __MigPackStructs
814#pragma pack(4)
815#endif
816typedef struct {
817mach_msg_header_t Head;
818NDR_record_t NDR;
819kern_return_t RetCode;
820} __Reply__thread_set_state_t;
821#ifdef __MigPackStructs
822#pragma pack()
823#endif
824
825#ifdef __MigPackStructs
826#pragma pack(4)
827#endif
828typedef struct {
829mach_msg_header_t Head;
830NDR_record_t NDR;
831kern_return_t RetCode;
832} __Reply__thread_suspend_t;
833#ifdef __MigPackStructs
834#pragma pack()
835#endif
836
837#ifdef __MigPackStructs
838#pragma pack(4)
839#endif
840typedef struct {
841mach_msg_header_t Head;
842NDR_record_t NDR;
843kern_return_t RetCode;
844} __Reply__thread_resume_t;
845#ifdef __MigPackStructs
846#pragma pack()
847#endif
848
849#ifdef __MigPackStructs
850#pragma pack(4)
851#endif
852typedef struct {
853mach_msg_header_t Head;
854NDR_record_t NDR;
855kern_return_t RetCode;
856} __Reply__thread_abort_t;
857#ifdef __MigPackStructs
858#pragma pack()
859#endif
860
861#ifdef __MigPackStructs
862#pragma pack(4)
863#endif
864typedef struct {
865mach_msg_header_t Head;
866NDR_record_t NDR;
867kern_return_t RetCode;
868} __Reply__thread_abort_safely_t;
869#ifdef __MigPackStructs
870#pragma pack()
871#endif
872
873#ifdef __MigPackStructs
874#pragma pack(4)
875#endif
876typedef struct {
877mach_msg_header_t Head;
878NDR_record_t NDR;
879kern_return_t RetCode;
880} __Reply__thread_depress_abort_t;
881#ifdef __MigPackStructs
882#pragma pack()
883#endif
884
885#ifdef __MigPackStructs
886#pragma pack(4)
887#endif
888typedef struct {
889mach_msg_header_t Head;
890/* start of the kernel processed data */
891mach_msg_body_t msgh_body;
892mach_msg_port_descriptor_t special_port;
893/* end of the kernel processed data */
894} __Reply__thread_get_special_port_t;
895#ifdef __MigPackStructs
896#pragma pack()
897#endif
898
899#ifdef __MigPackStructs
900#pragma pack(4)
901#endif
902typedef struct {
903mach_msg_header_t Head;
904NDR_record_t NDR;
905kern_return_t RetCode;
906} __Reply__thread_set_special_port_t;
907#ifdef __MigPackStructs
908#pragma pack()
909#endif
910
911#ifdef __MigPackStructs
912#pragma pack(4)
913#endif
914typedef struct {
915mach_msg_header_t Head;
916NDR_record_t NDR;
917kern_return_t RetCode;
918mach_msg_type_number_t thread_info_outCnt;
919integer_t thread_info_out[12];
920} __Reply__thread_info_t;
921#ifdef __MigPackStructs
922#pragma pack()
923#endif
924
925#ifdef __MigPackStructs
926#pragma pack(4)
927#endif
928typedef struct {
929mach_msg_header_t Head;
930NDR_record_t NDR;
931kern_return_t RetCode;
932} __Reply__thread_set_exception_ports_t;
933#ifdef __MigPackStructs
934#pragma pack()
935#endif
936
937#ifdef __MigPackStructs
938#pragma pack(4)
939#endif
940typedef struct {
941mach_msg_header_t Head;
942/* start of the kernel processed data */
943mach_msg_body_t msgh_body;
944mach_msg_port_descriptor_t old_handlers[32];
945/* end of the kernel processed data */
946NDR_record_t NDR;
947mach_msg_type_number_t masksCnt;
948exception_mask_t masks[32];
949exception_behavior_t old_behaviors[32];
950thread_state_flavor_t old_flavors[32];
951} __Reply__thread_get_exception_ports_t;
952#ifdef __MigPackStructs
953#pragma pack()
954#endif
955
956#ifdef __MigPackStructs
957#pragma pack(4)
958#endif
959typedef struct {
960mach_msg_header_t Head;
961/* start of the kernel processed data */
962mach_msg_body_t msgh_body;
963mach_msg_port_descriptor_t old_handlers[32];
964/* end of the kernel processed data */
965NDR_record_t NDR;
966mach_msg_type_number_t masksCnt;
967exception_mask_t masks[32];
968exception_behavior_t old_behaviors[32];
969thread_state_flavor_t old_flavors[32];
970} __Reply__thread_swap_exception_ports_t;
971#ifdef __MigPackStructs
972#pragma pack()
973#endif
974
975#ifdef __MigPackStructs
976#pragma pack(4)
977#endif
978typedef struct {
979mach_msg_header_t Head;
980NDR_record_t NDR;
981kern_return_t RetCode;
982} __Reply__thread_policy_t;
983#ifdef __MigPackStructs
984#pragma pack()
985#endif
986
987#ifdef __MigPackStructs
988#pragma pack(4)
989#endif
990typedef struct {
991mach_msg_header_t Head;
992NDR_record_t NDR;
993kern_return_t RetCode;
994} __Reply__thread_policy_set_t;
995#ifdef __MigPackStructs
996#pragma pack()
997#endif
998
999#ifdef __MigPackStructs
1000#pragma pack(4)
1001#endif
1002typedef struct {
1003mach_msg_header_t Head;
1004NDR_record_t NDR;
1005kern_return_t RetCode;
1006mach_msg_type_number_t policy_infoCnt;
1007integer_t policy_info[16];
1008boolean_t get_default;
1009} __Reply__thread_policy_get_t;
1010#ifdef __MigPackStructs
1011#pragma pack()
1012#endif
1013
1014#ifdef __MigPackStructs
1015#pragma pack(4)
1016#endif
1017typedef struct {
1018mach_msg_header_t Head;
1019NDR_record_t NDR;
1020kern_return_t RetCode;
1021} __Reply__thread_sample_t;
1022#ifdef __MigPackStructs
1023#pragma pack()
1024#endif
1025
1026#ifdef __MigPackStructs
1027#pragma pack(4)
1028#endif
1029typedef struct {
1030mach_msg_header_t Head;
1031NDR_record_t NDR;
1032kern_return_t RetCode;
1033} __Reply__etap_trace_thread_t;
1034#ifdef __MigPackStructs
1035#pragma pack()
1036#endif
1037
1038#ifdef __MigPackStructs
1039#pragma pack(4)
1040#endif
1041typedef struct {
1042mach_msg_header_t Head;
1043NDR_record_t NDR;
1044kern_return_t RetCode;
1045} __Reply__thread_assign_t;
1046#ifdef __MigPackStructs
1047#pragma pack()
1048#endif
1049
1050#ifdef __MigPackStructs
1051#pragma pack(4)
1052#endif
1053typedef struct {
1054mach_msg_header_t Head;
1055NDR_record_t NDR;
1056kern_return_t RetCode;
1057} __Reply__thread_assign_default_t;
1058#ifdef __MigPackStructs
1059#pragma pack()
1060#endif
1061
1062#ifdef __MigPackStructs
1063#pragma pack(4)
1064#endif
1065typedef struct {
1066mach_msg_header_t Head;
1067/* start of the kernel processed data */
1068mach_msg_body_t msgh_body;
1069mach_msg_port_descriptor_t assigned_set;
1070/* end of the kernel processed data */
1071} __Reply__thread_get_assignment_t;
1072#ifdef __MigPackStructs
1073#pragma pack()
1074#endif
1075
1076#ifdef __MigPackStructs
1077#pragma pack(4)
1078#endif
1079typedef struct {
1080mach_msg_header_t Head;
1081NDR_record_t NDR;
1082kern_return_t RetCode;
1083} __Reply__thread_set_policy_t;
1084#ifdef __MigPackStructs
1085#pragma pack()
1086#endif
1087#endif /* !__Reply__thread_act_subsystem__defined */
1088
1089/* union of all replies */
1090
1091#ifndef __ReplyUnion__thread_act_subsystem__defined
1092#define __ReplyUnion__thread_act_subsystem__defined
1093union __ReplyUnion__thread_act_subsystem {
1094__Reply__thread_terminate_t Reply_thread_terminate;
1095__Reply__act_get_state_t Reply_act_get_state;
1096__Reply__act_set_state_t Reply_act_set_state;
1097__Reply__thread_get_state_t Reply_thread_get_state;
1098__Reply__thread_set_state_t Reply_thread_set_state;
1099__Reply__thread_suspend_t Reply_thread_suspend;
1100__Reply__thread_resume_t Reply_thread_resume;
1101__Reply__thread_abort_t Reply_thread_abort;
1102__Reply__thread_abort_safely_t Reply_thread_abort_safely;
1103__Reply__thread_depress_abort_t Reply_thread_depress_abort;
1104__Reply__thread_get_special_port_t Reply_thread_get_special_port;
1105__Reply__thread_set_special_port_t Reply_thread_set_special_port;
1106__Reply__thread_info_t Reply_thread_info;
1107__Reply__thread_set_exception_ports_t Reply_thread_set_exception_ports;
1108__Reply__thread_get_exception_ports_t Reply_thread_get_exception_ports;
1109__Reply__thread_swap_exception_ports_t Reply_thread_swap_exception_ports;
1110__Reply__thread_policy_t Reply_thread_policy;
1111__Reply__thread_policy_set_t Reply_thread_policy_set;
1112__Reply__thread_policy_get_t Reply_thread_policy_get;
1113__Reply__thread_sample_t Reply_thread_sample;
1114__Reply__etap_trace_thread_t Reply_etap_trace_thread;
1115__Reply__thread_assign_t Reply_thread_assign;
1116__Reply__thread_assign_default_t Reply_thread_assign_default;
1117__Reply__thread_get_assignment_t Reply_thread_get_assignment;
1118__Reply__thread_set_policy_t Reply_thread_set_policy;
1119};
1120#endif /* !__RequestUnion__thread_act_subsystem__defined */
1121
1122#ifndef subsystem_to_name_map_thread_act
1123#define subsystem_to_name_map_thread_act \
1124 { "thread_terminate", 3600 },\
1125 { "act_get_state", 3601 },\
1126 { "act_set_state", 3602 },\
1127 { "thread_get_state", 3603 },\
1128 { "thread_set_state", 3604 },\
1129 { "thread_suspend", 3605 },\
1130 { "thread_resume", 3606 },\
1131 { "thread_abort", 3607 },\
1132 { "thread_abort_safely", 3608 },\
1133 { "thread_depress_abort", 3609 },\
1134 { "thread_get_special_port", 3610 },\
1135 { "thread_set_special_port", 3611 },\
1136 { "thread_info", 3612 },\
1137 { "thread_set_exception_ports", 3613 },\
1138 { "thread_get_exception_ports", 3614 },\
1139 { "thread_swap_exception_ports", 3615 },\
1140 { "thread_policy", 3616 },\
1141 { "thread_policy_set", 3617 },\
1142 { "thread_policy_get", 3618 },\
1143 { "thread_sample", 3619 },\
1144 { "etap_trace_thread", 3620 },\
1145 { "thread_assign", 3621 },\
1146 { "thread_assign_default", 3622 },\
1147 { "thread_get_assignment", 3623 },\
1148 { "thread_set_policy", 3624 }
1149#endif
1150
1151#ifdef __AfterMigUserHeader
1152__AfterMigUserHeader
1153#endif /* __AfterMigUserHeader */
1154
1155#endif /* _thread_act_user_ */
1156

Archive Download this file

Revision: 1733