| 1 | #ifndef _clock_reply_server_ |
| 2 | #define _clock_reply_server_ |
| 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 | #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 | |
| 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 <Availability.h> |
| 59 | #include <mach/std_types.h> |
| 60 | #include <mach/mig.h> |
| 61 | #include <mach/mach_types.h> |
| 62 | |
| 63 | #ifdef __BeforeMigServerHeader |
| 64 | __BeforeMigServerHeader |
| 65 | #endif /* __BeforeMigServerHeader */ |
| 66 | |
| 67 | #ifndef MIG_SERVER_ROUTINE |
| 68 | #define MIG_SERVER_ROUTINE |
| 69 | #endif |
| 70 | |
| 71 | |
| 72 | /* SimpleRoutine clock_alarm_reply */ |
| 73 | #ifdef mig_external |
| 74 | mig_external |
| 75 | #else |
| 76 | extern |
| 77 | #endif /* mig_external */ |
| 78 | MIG_SERVER_ROUTINE |
| 79 | kern_return_t clock_alarm_reply |
| 80 | ( |
| 81 | clock_reply_t alarm_port, |
| 82 | kern_return_t alarm_code, |
| 83 | alarm_type_t alarm_type, |
| 84 | mach_timespec_t alarm_time |
| 85 | ); |
| 86 | |
| 87 | #ifdef mig_external |
| 88 | mig_external |
| 89 | #else |
| 90 | extern |
| 91 | #endif /* mig_external */ |
| 92 | boolean_t clock_reply_server( |
| 93 | mach_msg_header_t *InHeadP, |
| 94 | mach_msg_header_t *OutHeadP); |
| 95 | |
| 96 | #ifdef mig_external |
| 97 | mig_external |
| 98 | #else |
| 99 | extern |
| 100 | #endif /* mig_external */ |
| 101 | mig_routine_t clock_reply_server_routine( |
| 102 | mach_msg_header_t *InHeadP); |
| 103 | |
| 104 | |
| 105 | /* Description of this subsystem, for use in direct RPC */ |
| 106 | extern const struct clock_reply_subsystem { |
| 107 | mig_server_routine_t server; /* Server routine */ |
| 108 | mach_msg_id_t start; /* Min routine number */ |
| 109 | mach_msg_id_t end; /* Max routine number + 1 */ |
| 110 | unsigned int maxsize; /* Max msg size */ |
| 111 | vm_address_t reserved; /* Reserved */ |
| 112 | struct routine_descriptor /* Array of routine descriptors */ |
| 113 | routine[1]; |
| 114 | } clock_reply_subsystem; |
| 115 | |
| 116 | /* typedefs for all requests */ |
| 117 | |
| 118 | #ifndef __Request__clock_reply_subsystem__defined |
| 119 | #define __Request__clock_reply_subsystem__defined |
| 120 | |
| 121 | #ifdef __MigPackStructs |
| 122 | #pragma pack(push, 4) |
| 123 | #endif |
| 124 | typedef struct { |
| 125 | mach_msg_header_t Head; |
| 126 | NDR_record_t NDR; |
| 127 | kern_return_t alarm_code; |
| 128 | alarm_type_t alarm_type; |
| 129 | mach_timespec_t alarm_time; |
| 130 | } __Request__clock_alarm_reply_t __attribute__((unused)); |
| 131 | #ifdef __MigPackStructs |
| 132 | #pragma pack(pop) |
| 133 | #endif |
| 134 | #endif /* !__Request__clock_reply_subsystem__defined */ |
| 135 | |
| 136 | |
| 137 | /* union of all requests */ |
| 138 | |
| 139 | #ifndef __RequestUnion__clock_reply_subsystem__defined |
| 140 | #define __RequestUnion__clock_reply_subsystem__defined |
| 141 | union __RequestUnion__clock_reply_subsystem { |
| 142 | __Request__clock_alarm_reply_t Request_clock_alarm_reply; |
| 143 | }; |
| 144 | #endif /* __RequestUnion__clock_reply_subsystem__defined */ |
| 145 | /* typedefs for all replies */ |
| 146 | |
| 147 | #ifndef __Reply__clock_reply_subsystem__defined |
| 148 | #define __Reply__clock_reply_subsystem__defined |
| 149 | |
| 150 | #ifdef __MigPackStructs |
| 151 | #pragma pack(push, 4) |
| 152 | #endif |
| 153 | typedef struct { |
| 154 | mach_msg_header_t Head; |
| 155 | NDR_record_t NDR; |
| 156 | kern_return_t RetCode; |
| 157 | } __Reply__clock_alarm_reply_t __attribute__((unused)); |
| 158 | #ifdef __MigPackStructs |
| 159 | #pragma pack(pop) |
| 160 | #endif |
| 161 | #endif /* !__Reply__clock_reply_subsystem__defined */ |
| 162 | |
| 163 | |
| 164 | /* union of all replies */ |
| 165 | |
| 166 | #ifndef __ReplyUnion__clock_reply_subsystem__defined |
| 167 | #define __ReplyUnion__clock_reply_subsystem__defined |
| 168 | union __ReplyUnion__clock_reply_subsystem { |
| 169 | __Reply__clock_alarm_reply_t Reply_clock_alarm_reply; |
| 170 | }; |
| 171 | #endif /* __ReplyUnion__clock_reply_subsystem__defined */ |
| 172 | |
| 173 | #ifndef subsystem_to_name_map_clock_reply |
| 174 | #define subsystem_to_name_map_clock_reply \ |
| 175 | { "clock_alarm_reply", 3125107 } |
| 176 | #endif |
| 177 | |
| 178 | #ifdef __AfterMigServerHeader |
| 179 | __AfterMigServerHeader |
| 180 | #endif /* __AfterMigServerHeader */ |
| 181 | |
| 182 | #endif /* _clock_reply_server_ */ |
| 183 | |