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