1 | #ifndef _ktrace_background_user_ |
2 | #define _ktrace_background_user_ |
3 | |
4 | /* Module ktrace_background */ |
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 | |
39 | #ifdef AUTOTEST |
40 | #ifndef FUNCTION_PTR_T |
41 | #define FUNCTION_PTR_T |
42 | typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); |
43 | typedef struct { |
44 | char *name; |
45 | function_ptr_t function; |
46 | } function_table_entry; |
47 | typedef function_table_entry *function_table_t; |
48 | #endif /* FUNCTION_PTR_T */ |
49 | #endif /* AUTOTEST */ |
50 | |
51 | #ifndef ktrace_background_MSG_COUNT |
52 | #define ktrace_background_MSG_COUNT 1 |
53 | #endif /* ktrace_background_MSG_COUNT */ |
54 | |
55 | #include <mach/std_types.h> |
56 | #include <mach/mig.h> |
57 | #include <mach/mig.h> |
58 | #include <mach/mach_types.h> |
59 | |
60 | #ifdef __BeforeMigUserHeader |
61 | __BeforeMigUserHeader |
62 | #endif /* __BeforeMigUserHeader */ |
63 | |
64 | #include <sys/cdefs.h> |
65 | __BEGIN_DECLS |
66 | |
67 | |
68 | /* SimpleRoutine ktrace_background_available */ |
69 | #ifdef mig_external |
70 | mig_external |
71 | #else |
72 | extern |
73 | #endif /* mig_external */ |
74 | kern_return_t send_ktrace_background_available |
75 | ( |
76 | mach_port_t ktrace_background_port |
77 | ); |
78 | |
79 | __END_DECLS |
80 | |
81 | /********************** Caution **************************/ |
82 | /* The following data types should be used to calculate */ |
83 | /* maximum message sizes only. The actual message may be */ |
84 | /* smaller, and the position of the arguments within the */ |
85 | /* message layout may vary from what is presented here. */ |
86 | /* For example, if any of the arguments are variable- */ |
87 | /* sized, and less than the maximum is sent, the data */ |
88 | /* will be packed tight in the actual message to reduce */ |
89 | /* the presence of holes. */ |
90 | /********************** Caution **************************/ |
91 | |
92 | /* typedefs for all requests */ |
93 | |
94 | #ifndef __Request__ktrace_background_subsystem__defined |
95 | #define __Request__ktrace_background_subsystem__defined |
96 | |
97 | #ifdef __MigPackStructs |
98 | #pragma pack(4) |
99 | #endif |
100 | typedef struct { |
101 | mach_msg_header_t Head; |
102 | } __Request__ktrace_background_available_t __attribute__((unused)); |
103 | #ifdef __MigPackStructs |
104 | #pragma pack() |
105 | #endif |
106 | #endif /* !__Request__ktrace_background_subsystem__defined */ |
107 | |
108 | /* union of all requests */ |
109 | |
110 | #ifndef __RequestUnion__send_ktrace_background_subsystem__defined |
111 | #define __RequestUnion__send_ktrace_background_subsystem__defined |
112 | union __RequestUnion__send_ktrace_background_subsystem { |
113 | __Request__ktrace_background_available_t Request_send_ktrace_background_available; |
114 | }; |
115 | #endif /* !__RequestUnion__send_ktrace_background_subsystem__defined */ |
116 | /* typedefs for all replies */ |
117 | |
118 | #ifndef __Reply__ktrace_background_subsystem__defined |
119 | #define __Reply__ktrace_background_subsystem__defined |
120 | |
121 | #ifdef __MigPackStructs |
122 | #pragma pack(4) |
123 | #endif |
124 | typedef struct { |
125 | mach_msg_header_t Head; |
126 | NDR_record_t NDR; |
127 | kern_return_t RetCode; |
128 | } __Reply__ktrace_background_available_t __attribute__((unused)); |
129 | #ifdef __MigPackStructs |
130 | #pragma pack() |
131 | #endif |
132 | #endif /* !__Reply__ktrace_background_subsystem__defined */ |
133 | |
134 | /* union of all replies */ |
135 | |
136 | #ifndef __ReplyUnion__send_ktrace_background_subsystem__defined |
137 | #define __ReplyUnion__send_ktrace_background_subsystem__defined |
138 | union __ReplyUnion__send_ktrace_background_subsystem { |
139 | __Reply__ktrace_background_available_t Reply_send_ktrace_background_available; |
140 | }; |
141 | #endif /* !__RequestUnion__send_ktrace_background_subsystem__defined */ |
142 | |
143 | #ifndef subsystem_to_name_map_ktrace_background |
144 | #define subsystem_to_name_map_ktrace_background \ |
145 | { "ktrace_background_available", 670 } |
146 | #endif |
147 | |
148 | #ifdef __AfterMigUserHeader |
149 | __AfterMigUserHeader |
150 | #endif /* __AfterMigUserHeader */ |
151 | |
152 | #endif /* _ktrace_background_user_ */ |
153 | |