Root/
Source at commit 1808 created 12 years 4 months ago. By blackosx, Revise layout of package installer 'Welcome' file so it looks cleaner. Change the copyright notice to begin from 2009 as seen in the Chameleon 2.0 r431 installer. Should this date be set earlier? | |
---|---|
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/mach_types.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 clock_set_time */␊ |
46 | #ifdef␉mig_external␊ |
47 | mig_external␊ |
48 | #else␊ |
49 | extern␊ |
50 | #endif␉/* mig_external */␊ |
51 | kern_return_t clock_set_time␊ |
52 | (␊ |
53 | ␉clock_ctrl_t clock_ctrl,␊ |
54 | ␉mach_timespec_t new_time␊ |
55 | );␊ |
56 | ␊ |
57 | /* Routine clock_set_attributes */␊ |
58 | #ifdef␉mig_external␊ |
59 | mig_external␊ |
60 | #else␊ |
61 | extern␊ |
62 | #endif␉/* mig_external */␊ |
63 | kern_return_t clock_set_attributes␊ |
64 | (␊ |
65 | ␉clock_ctrl_t clock_ctrl,␊ |
66 | ␉clock_flavor_t flavor,␊ |
67 | ␉clock_attr_t clock_attr,␊ |
68 | ␉mach_msg_type_number_t clock_attrCnt␊ |
69 | );␊ |
70 | ␊ |
71 | __END_DECLS␊ |
72 | ␊ |
73 | /********************** Caution **************************/␊ |
74 | /* The following data types should be used to calculate */␊ |
75 | /* maximum message sizes only. The actual message may be */␊ |
76 | /* smaller, and the position of the arguments within the */␊ |
77 | /* message layout may vary from what is presented here. */␊ |
78 | /* For example, if any of the arguments are variable- */␊ |
79 | /* sized, and less than the maximum is sent, the data */␊ |
80 | /* will be packed tight in the actual message to reduce */␊ |
81 | /* the presence of holes. */␊ |
82 | /********************** Caution **************************/␊ |
83 | ␊ |
84 | /* typedefs for all requests */␊ |
85 | ␊ |
86 | #ifndef __Request__clock_priv_subsystem__defined␊ |
87 | #define __Request__clock_priv_subsystem__defined␊ |
88 | ␊ |
89 | #ifdef __MigPackStructs␊ |
90 | #pragma pack(4)␊ |
91 | #endif␊ |
92 | ␉typedef struct {␊ |
93 | ␉␉mach_msg_header_t Head;␊ |
94 | ␉␉NDR_record_t NDR;␊ |
95 | ␉␉mach_timespec_t new_time;␊ |
96 | ␉} __Request__clock_set_time_t;␊ |
97 | #ifdef __MigPackStructs␊ |
98 | #pragma pack()␊ |
99 | #endif␊ |
100 | ␊ |
101 | #ifdef __MigPackStructs␊ |
102 | #pragma pack(4)␊ |
103 | #endif␊ |
104 | ␉typedef struct {␊ |
105 | ␉␉mach_msg_header_t Head;␊ |
106 | ␉␉NDR_record_t NDR;␊ |
107 | ␉␉clock_flavor_t flavor;␊ |
108 | ␉␉mach_msg_type_number_t clock_attrCnt;␊ |
109 | ␉␉int clock_attr[1];␊ |
110 | ␉} __Request__clock_set_attributes_t;␊ |
111 | #ifdef __MigPackStructs␊ |
112 | #pragma pack()␊ |
113 | #endif␊ |
114 | #endif /* !__Request__clock_priv_subsystem__defined */␊ |
115 | ␊ |
116 | /* union of all requests */␊ |
117 | ␊ |
118 | #ifndef __RequestUnion__clock_priv_subsystem__defined␊ |
119 | #define __RequestUnion__clock_priv_subsystem__defined␊ |
120 | union __RequestUnion__clock_priv_subsystem {␊ |
121 | ␉__Request__clock_set_time_t Request_clock_set_time;␊ |
122 | ␉__Request__clock_set_attributes_t Request_clock_set_attributes;␊ |
123 | };␊ |
124 | #endif /* !__RequestUnion__clock_priv_subsystem__defined */␊ |
125 | /* typedefs for all replies */␊ |
126 | ␊ |
127 | #ifndef __Reply__clock_priv_subsystem__defined␊ |
128 | #define __Reply__clock_priv_subsystem__defined␊ |
129 | ␊ |
130 | #ifdef __MigPackStructs␊ |
131 | #pragma pack(4)␊ |
132 | #endif␊ |
133 | ␉typedef struct {␊ |
134 | ␉␉mach_msg_header_t Head;␊ |
135 | ␉␉NDR_record_t NDR;␊ |
136 | ␉␉kern_return_t RetCode;␊ |
137 | ␉} __Reply__clock_set_time_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 | ␉␉NDR_record_t NDR;␊ |
148 | ␉␉kern_return_t RetCode;␊ |
149 | ␉} __Reply__clock_set_attributes_t;␊ |
150 | #ifdef __MigPackStructs␊ |
151 | #pragma pack()␊ |
152 | #endif␊ |
153 | #endif /* !__Reply__clock_priv_subsystem__defined */␊ |
154 | ␊ |
155 | /* union of all replies */␊ |
156 | ␊ |
157 | #ifndef __ReplyUnion__clock_priv_subsystem__defined␊ |
158 | #define __ReplyUnion__clock_priv_subsystem__defined␊ |
159 | union __ReplyUnion__clock_priv_subsystem {␊ |
160 | ␉__Reply__clock_set_time_t Reply_clock_set_time;␊ |
161 | ␉__Reply__clock_set_attributes_t Reply_clock_set_attributes;␊ |
162 | };␊ |
163 | #endif /* !__RequestUnion__clock_priv_subsystem__defined */␊ |
164 | ␊ |
165 | #ifndef subsystem_to_name_map_clock_priv␊ |
166 | #define subsystem_to_name_map_clock_priv \␊ |
167 | { "clock_set_time", 1200 },\␊ |
168 | { "clock_set_attributes", 1201 }␊ |
169 | #endif␊ |
170 | ␊ |
171 | #ifdef __AfterMigUserHeader␊ |
172 | __AfterMigUserHeader␊ |
173 | #endif /* __AfterMigUserHeader */␊ |
174 | ␊ |
175 | #endif␉ /* _clock_priv_user_ */␊ |
176 |