Chameleon

Chameleon Svn Source Tree

Root/branches/slice/trunkM/i386/include/mach/clock_priv.h

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
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#ifndefclock_priv_MSG_COUNT
29#defineclock_priv_MSG_COUNT2
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#ifdefmig_external
47mig_external
48#else
49extern
50#endif/* mig_external */
51kern_return_t clock_set_time
52(
53clock_ctrl_t clock_ctrl,
54mach_timespec_t new_time
55);
56
57/* Routine clock_set_attributes */
58#ifdefmig_external
59mig_external
60#else
61extern
62#endif/* mig_external */
63kern_return_t clock_set_attributes
64(
65clock_ctrl_t clock_ctrl,
66clock_flavor_t flavor,
67clock_attr_t clock_attr,
68mach_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
92typedef struct {
93mach_msg_header_t Head;
94NDR_record_t NDR;
95mach_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
104typedef struct {
105mach_msg_header_t Head;
106NDR_record_t NDR;
107clock_flavor_t flavor;
108mach_msg_type_number_t clock_attrCnt;
109int 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
120union __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
133typedef struct {
134mach_msg_header_t Head;
135NDR_record_t NDR;
136kern_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
145typedef struct {
146mach_msg_header_t Head;
147NDR_record_t NDR;
148kern_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
159union __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

Archive Download this file

Revision: 1171