1 | #ifndef␉_clock_priv_user_␊ |
2 | #define␉_clock_priv_user_␊ |
3 | ␊ |
4 | /* Module clock_priv */␊ |
5 | ␊ |
6 | #include <string.h>␊ |
7 | #include <mach/ndr.h>␊ |
8 | #include <mach/boolean.h>␊ |
9 | #include <mach/kern_return.h>␊ |
10 | #include <mach/notify.h>␊ |
11 | #include <mach/mach_types.h>␊ |
12 | #include <mach/message.h>␊ |
13 | #include <mach/mig_errors.h>␊ |
14 | #include <mach/port.h>␊ |
15 | ␊ |
16 | #ifdef AUTOTEST␊ |
17 | #ifndef FUNCTION_PTR_T␊ |
18 | #define FUNCTION_PTR_T␊ |
19 | typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);␊ |
20 | typedef struct {␊ |
21 | char *name;␊ |
22 | function_ptr_t function;␊ |
23 | } function_table_entry;␊ |
24 | typedef function_table_entry *function_table_t;␊ |
25 | #endif /* FUNCTION_PTR_T */␊ |
26 | #endif /* AUTOTEST */␊ |
27 | ␊ |
28 | #ifndef␉clock_priv_MSG_COUNT␊ |
29 | #define␉clock_priv_MSG_COUNT␉2␊ |
30 | #endif␉/* clock_priv_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 | #include <mach/mach_types.h>␊ |
37 | ␊ |
38 | #ifdef __BeforeMigUserHeader␊ |
39 | __BeforeMigUserHeader␊ |
40 | #endif /* __BeforeMigUserHeader */␊ |
41 | ␊ |
42 | #include <sys/cdefs.h>␊ |
43 | __BEGIN_DECLS␊ |
44 | ␊ |
45 | ␊ |
46 | /* Routine clock_set_time */␊ |
47 | #ifdef␉mig_external␊ |
48 | mig_external␊ |
49 | #else␊ |
50 | extern␊ |
51 | #endif␉/* mig_external */␊ |
52 | kern_return_t clock_set_time␊ |
53 | (␊ |
54 | ␉clock_ctrl_t clock_ctrl,␊ |
55 | ␉mach_timespec_t new_time␊ |
56 | );␊ |
57 | ␊ |
58 | /* Routine clock_set_attributes */␊ |
59 | #ifdef␉mig_external␊ |
60 | mig_external␊ |
61 | #else␊ |
62 | extern␊ |
63 | #endif␉/* mig_external */␊ |
64 | kern_return_t clock_set_attributes␊ |
65 | (␊ |
66 | ␉clock_ctrl_t clock_ctrl,␊ |
67 | ␉clock_flavor_t flavor,␊ |
68 | ␉clock_attr_t clock_attr,␊ |
69 | ␉mach_msg_type_number_t clock_attrCnt␊ |
70 | );␊ |
71 | ␊ |
72 | __END_DECLS␊ |
73 | ␊ |
74 | /********************** Caution **************************/␊ |
75 | /* The following data types should be used to calculate */␊ |
76 | /* maximum message sizes only. The actual message may be */␊ |
77 | /* smaller, and the position of the arguments within the */␊ |
78 | /* message layout may vary from what is presented here. */␊ |
79 | /* For example, if any of the arguments are variable- */␊ |
80 | /* sized, and less than the maximum is sent, the data */␊ |
81 | /* will be packed tight in the actual message to reduce */␊ |
82 | /* the presence of holes. */␊ |
83 | /********************** Caution **************************/␊ |
84 | ␊ |
85 | /* typedefs for all requests */␊ |
86 | ␊ |
87 | #ifndef __Request__clock_priv_subsystem__defined␊ |
88 | #define __Request__clock_priv_subsystem__defined␊ |
89 | ␊ |
90 | #ifdef __MigPackStructs␊ |
91 | #pragma pack(4)␊ |
92 | #endif␊ |
93 | ␉typedef struct {␊ |
94 | ␉␉mach_msg_header_t Head;␊ |
95 | ␉␉NDR_record_t NDR;␊ |
96 | ␉␉mach_timespec_t new_time;␊ |
97 | ␉} __Request__clock_set_time_t;␊ |
98 | #ifdef __MigPackStructs␊ |
99 | #pragma pack()␊ |
100 | #endif␊ |
101 | ␊ |
102 | #ifdef __MigPackStructs␊ |
103 | #pragma pack(4)␊ |
104 | #endif␊ |
105 | ␉typedef struct {␊ |
106 | ␉␉mach_msg_header_t Head;␊ |
107 | ␉␉NDR_record_t NDR;␊ |
108 | ␉␉clock_flavor_t flavor;␊ |
109 | ␉␉mach_msg_type_number_t clock_attrCnt;␊ |
110 | ␉␉int clock_attr[1];␊ |
111 | ␉} __Request__clock_set_attributes_t;␊ |
112 | #ifdef __MigPackStructs␊ |
113 | #pragma pack()␊ |
114 | #endif␊ |
115 | #endif /* !__Request__clock_priv_subsystem__defined */␊ |
116 | ␊ |
117 | /* union of all requests */␊ |
118 | ␊ |
119 | #ifndef __RequestUnion__clock_priv_subsystem__defined␊ |
120 | #define __RequestUnion__clock_priv_subsystem__defined␊ |
121 | union __RequestUnion__clock_priv_subsystem {␊ |
122 | ␉__Request__clock_set_time_t Request_clock_set_time;␊ |
123 | ␉__Request__clock_set_attributes_t Request_clock_set_attributes;␊ |
124 | };␊ |
125 | #endif /* !__RequestUnion__clock_priv_subsystem__defined */␊ |
126 | /* typedefs for all replies */␊ |
127 | ␊ |
128 | #ifndef __Reply__clock_priv_subsystem__defined␊ |
129 | #define __Reply__clock_priv_subsystem__defined␊ |
130 | ␊ |
131 | #ifdef __MigPackStructs␊ |
132 | #pragma pack(4)␊ |
133 | #endif␊ |
134 | ␉typedef struct {␊ |
135 | ␉␉mach_msg_header_t Head;␊ |
136 | ␉␉NDR_record_t NDR;␊ |
137 | ␉␉kern_return_t RetCode;␊ |
138 | ␉} __Reply__clock_set_time_t;␊ |
139 | #ifdef __MigPackStructs␊ |
140 | #pragma pack()␊ |
141 | #endif␊ |
142 | ␊ |
143 | #ifdef __MigPackStructs␊ |
144 | #pragma pack(4)␊ |
145 | #endif␊ |
146 | ␉typedef struct {␊ |
147 | ␉␉mach_msg_header_t Head;␊ |
148 | ␉␉NDR_record_t NDR;␊ |
149 | ␉␉kern_return_t RetCode;␊ |
150 | ␉} __Reply__clock_set_attributes_t;␊ |
151 | #ifdef __MigPackStructs␊ |
152 | #pragma pack()␊ |
153 | #endif␊ |
154 | #endif /* !__Reply__clock_priv_subsystem__defined */␊ |
155 | ␊ |
156 | /* union of all replies */␊ |
157 | ␊ |
158 | #ifndef __ReplyUnion__clock_priv_subsystem__defined␊ |
159 | #define __ReplyUnion__clock_priv_subsystem__defined␊ |
160 | union __ReplyUnion__clock_priv_subsystem {␊ |
161 | ␉__Reply__clock_set_time_t Reply_clock_set_time;␊ |
162 | ␉__Reply__clock_set_attributes_t Reply_clock_set_attributes;␊ |
163 | };␊ |
164 | #endif /* !__RequestUnion__clock_priv_subsystem__defined */␊ |
165 | ␊ |
166 | #ifndef subsystem_to_name_map_clock_priv␊ |
167 | #define subsystem_to_name_map_clock_priv \␊ |
168 | { "clock_set_time", 1200 },\␊ |
169 | { "clock_set_attributes", 1201 }␊ |
170 | #endif␊ |
171 | ␊ |
172 | #ifdef __AfterMigUserHeader␊ |
173 | __AfterMigUserHeader␊ |
174 | #endif /* __AfterMigUserHeader */␊ |
175 | ␊ |
176 | #endif␉ /* _clock_priv_user_ */␊ |
177 | |