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