1 | #ifndef _clock_reply_user_ |
2 | #define _clock_reply_user_ |
3 | |
4 | /* Module clock_reply */ |
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 | /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ |
17 | |
18 | #if defined(__has_include) |
19 | #if __has_include(<mach/mig_strncpy_zerofill_support.h>) |
20 | #ifndef USING_MIG_STRNCPY_ZEROFILL |
21 | #define USING_MIG_STRNCPY_ZEROFILL |
22 | #endif |
23 | #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ |
24 | #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ |
25 | #ifdef __cplusplus |
26 | extern "C" { |
27 | #endif |
28 | extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); |
29 | #ifdef __cplusplus |
30 | } |
31 | #endif |
32 | #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ |
33 | #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ |
34 | #endif /* __has_include */ |
35 | |
36 | /* END MIG_STRNCPY_ZEROFILL CODE */ |
37 | |
38 | #if (__MigKernelSpecificCode) || (_MIG_KERNEL_SPECIFIC_CODE_) |
39 | #include <kern/ipc_mig.h> |
40 | #endif /* __MigKernelSpecificCode */ |
41 | |
42 | #ifdef AUTOTEST |
43 | #ifndef FUNCTION_PTR_T |
44 | #define FUNCTION_PTR_T |
45 | typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); |
46 | typedef struct { |
47 | char *name; |
48 | function_ptr_t function; |
49 | } function_table_entry; |
50 | typedef function_table_entry *function_table_t; |
51 | #endif /* FUNCTION_PTR_T */ |
52 | #endif /* AUTOTEST */ |
53 | |
54 | #ifndef clock_reply_MSG_COUNT |
55 | #define clock_reply_MSG_COUNT 1 |
56 | #endif /* clock_reply_MSG_COUNT */ |
57 | |
58 | #include <mach/std_types.h> |
59 | #include <mach/mig.h> |
60 | #include <mach/mach_types.h> |
61 | |
62 | #ifdef __BeforeMigUserHeader |
63 | __BeforeMigUserHeader |
64 | #endif /* __BeforeMigUserHeader */ |
65 | |
66 | #include <sys/cdefs.h> |
67 | __BEGIN_DECLS |
68 | |
69 | |
70 | /* SimpleRoutine clock_alarm_reply */ |
71 | #ifdef mig_external |
72 | mig_external |
73 | #else |
74 | extern |
75 | #endif /* mig_external */ |
76 | kern_return_t clock_alarm_reply |
77 | ( |
78 | clock_reply_t alarm_port, |
79 | mach_msg_type_name_t alarm_portPoly, |
80 | kern_return_t alarm_code, |
81 | alarm_type_t alarm_type, |
82 | mach_timespec_t alarm_time |
83 | ); |
84 | |
85 | __END_DECLS |
86 | |
87 | /********************** Caution **************************/ |
88 | /* The following data types should be used to calculate */ |
89 | /* maximum message sizes only. The actual message may be */ |
90 | /* smaller, and the position of the arguments within the */ |
91 | /* message layout may vary from what is presented here. */ |
92 | /* For example, if any of the arguments are variable- */ |
93 | /* sized, and less than the maximum is sent, the data */ |
94 | /* will be packed tight in the actual message to reduce */ |
95 | /* the presence of holes. */ |
96 | /********************** Caution **************************/ |
97 | |
98 | /* typedefs for all requests */ |
99 | |
100 | #ifndef __Request__clock_reply_subsystem__defined |
101 | #define __Request__clock_reply_subsystem__defined |
102 | |
103 | #ifdef __MigPackStructs |
104 | #pragma pack(4) |
105 | #endif |
106 | typedef struct { |
107 | mach_msg_header_t Head; |
108 | NDR_record_t NDR; |
109 | kern_return_t alarm_code; |
110 | alarm_type_t alarm_type; |
111 | mach_timespec_t alarm_time; |
112 | } __Request__clock_alarm_reply_t __attribute__((unused)); |
113 | #ifdef __MigPackStructs |
114 | #pragma pack() |
115 | #endif |
116 | #endif /* !__Request__clock_reply_subsystem__defined */ |
117 | |
118 | /* union of all requests */ |
119 | |
120 | #ifndef __RequestUnion__clock_reply_subsystem__defined |
121 | #define __RequestUnion__clock_reply_subsystem__defined |
122 | union __RequestUnion__clock_reply_subsystem { |
123 | __Request__clock_alarm_reply_t Request_clock_alarm_reply; |
124 | }; |
125 | #endif /* !__RequestUnion__clock_reply_subsystem__defined */ |
126 | /* typedefs for all replies */ |
127 | |
128 | #ifndef __Reply__clock_reply_subsystem__defined |
129 | #define __Reply__clock_reply_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_alarm_reply_t __attribute__((unused)); |
139 | #ifdef __MigPackStructs |
140 | #pragma pack() |
141 | #endif |
142 | #endif /* !__Reply__clock_reply_subsystem__defined */ |
143 | |
144 | /* union of all replies */ |
145 | |
146 | #ifndef __ReplyUnion__clock_reply_subsystem__defined |
147 | #define __ReplyUnion__clock_reply_subsystem__defined |
148 | union __ReplyUnion__clock_reply_subsystem { |
149 | __Reply__clock_alarm_reply_t Reply_clock_alarm_reply; |
150 | }; |
151 | #endif /* !__RequestUnion__clock_reply_subsystem__defined */ |
152 | |
153 | #ifndef subsystem_to_name_map_clock_reply |
154 | #define subsystem_to_name_map_clock_reply \ |
155 | { "clock_alarm_reply", 3125107 } |
156 | #endif |
157 | |
158 | #ifdef __AfterMigUserHeader |
159 | __AfterMigUserHeader |
160 | #endif /* __AfterMigUserHeader */ |
161 | |
162 | #endif /* _clock_reply_user_ */ |
163 | |