diff options
author | Jay Freeman <saurik@saurik.com> | 2008-01-01 05:58:43 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-01-01 05:58:43 +0000 |
commit | ea2670c18699e514ee1d65dfd35ad22c296a74e7 (patch) | |
tree | 6826a5266d78c22210c194772a8daed06ef0a19c /data/system-cmds | |
parent | a45e85d54e8df7a333946cc52fec519fc6aa4d87 (diff) |
Initial commit.
git-svn-id: http://svn.telesphoreo.org/trunk@2 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/system-cmds')
-rw-r--r-- | data/system-cmds/_metadata/description | 2 | ||||
l--------- | data/system-cmds/_metadata/license | 1 | ||||
l--------- | data/system-cmds/_metadata/maintainer | 1 | ||||
-rw-r--r-- | data/system-cmds/_metadata/priority | 1 | ||||
-rw-r--r-- | data/system-cmds/_metadata/section | 1 | ||||
-rw-r--r-- | data/system-cmds/_metadata/version | 1 | ||||
-rw-r--r-- | data/system-cmds/kextmanager.h | 615 | ||||
-rw-r--r-- | data/system-cmds/kextmanagerServer.c | 2756 | ||||
-rw-r--r-- | data/system-cmds/kextmanagerUser.c | 2844 | ||||
-rw-r--r-- | data/system-cmds/make.sh | 16 | ||||
-rw-r--r-- | data/system-cmds/system_cmds-431.tar.gz | bin | 0 -> 453106 bytes |
11 files changed, 6238 insertions, 0 deletions
diff --git a/data/system-cmds/_metadata/description b/data/system-cmds/_metadata/description new file mode 100644 index 000000000..005d9a0c9 --- /dev/null +++ b/data/system-cmds/_metadata/description @@ -0,0 +1,2 @@ +this package isn't described yet +This package, which I'm certain is incredibly interesting, has yet to be described. This is probably because Jay has spent days getting all kinds of bookkeeping issues, like copyright notifications, all in their correct places, and descriptions just aren't the most important thing he could be working on. If this is a problem, please come back later. diff --git a/data/system-cmds/_metadata/license b/data/system-cmds/_metadata/license new file mode 120000 index 000000000..9e5e5e89d --- /dev/null +++ b/data/system-cmds/_metadata/license @@ -0,0 +1 @@ +../../../licenses/apsl-2.0
\ No newline at end of file diff --git a/data/system-cmds/_metadata/maintainer b/data/system-cmds/_metadata/maintainer new file mode 120000 index 000000000..0fa66e077 --- /dev/null +++ b/data/system-cmds/_metadata/maintainer @@ -0,0 +1 @@ +../../../people/saurik
\ No newline at end of file diff --git a/data/system-cmds/_metadata/priority b/data/system-cmds/_metadata/priority new file mode 100644 index 000000000..ea5b3d7ee --- /dev/null +++ b/data/system-cmds/_metadata/priority @@ -0,0 +1 @@ +important diff --git a/data/system-cmds/_metadata/section b/data/system-cmds/_metadata/section new file mode 100644 index 000000000..7fbe952b7 --- /dev/null +++ b/data/system-cmds/_metadata/section @@ -0,0 +1 @@ +admin diff --git a/data/system-cmds/_metadata/version b/data/system-cmds/_metadata/version new file mode 100644 index 000000000..ed4f16201 --- /dev/null +++ b/data/system-cmds/_metadata/version @@ -0,0 +1 @@ +431 diff --git a/data/system-cmds/kextmanager.h b/data/system-cmds/kextmanager.h new file mode 100644 index 000000000..92050fe49 --- /dev/null +++ b/data/system-cmds/kextmanager.h @@ -0,0 +1,615 @@ +#ifndef _kextmanager_user_ +#define _kextmanager_user_ + +/* Module kextmanager */ + +#include <string.h> +#include <mach/ndr.h> +#include <mach/boolean.h> +#include <mach/kern_return.h> +#include <mach/notify.h> +#include <mach/mach_types.h> +#include <mach/message.h> +#include <mach/mig_errors.h> +#include <mach/port.h> + +#ifdef AUTOTEST +#ifndef FUNCTION_PTR_T +#define FUNCTION_PTR_T +typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); +typedef struct { + char *name; + function_ptr_t function; +} function_table_entry; +typedef function_table_entry *function_table_t; +#endif /* FUNCTION_PTR_T */ +#endif /* AUTOTEST */ + +#ifndef kextmanager_MSG_COUNT +#define kextmanager_MSG_COUNT 12 +#endif /* kextmanager_MSG_COUNT */ + +#include <mach/std_types.h> +#include <mach/mig.h> +#include <mach/mig.h> +#include <mach/mach_types.h> +#include <Security/Authorization.h> +#include <IOKit/kext/kextmanager_types.h> +#include <mach/kmod.h> +#include <sys/param.h> + +#ifdef __BeforeMigUserHeader +__BeforeMigUserHeader +#endif /* __BeforeMigUserHeader */ + +#include <sys/cdefs.h> +__BEGIN_DECLS + + +/* Routine kextmanager_path_for_bundle_id */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_path_for_bundle_id +( + mach_port_t server, + kext_bundle_id_t bundle_id, + posix_path_t path, + kext_result_t *kext_result +); + +/* Routine kextmanager_create_property_value_array */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_create_property_value_array +( + mach_port_t server, + property_key_t prop_key, + xmlDataOut_t *data, + mach_msg_type_number_t *dataCnt +); + +/* Routine kextmanager_user_did_log_in */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_user_did_log_in +( + mach_port_t server, + uint32_t euid, + AuthorizationExternalForm authref +); + +/* Routine kextmanager_user_will_log_out */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_user_will_log_out +( + mach_port_t server, + uint32_t euid +); + +/* Routine kextmanager_get_logged_in_userid */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_get_logged_in_userid +( + mach_port_t server, + uint32_t *euid +); + +/* Routine kextmanager_record_nonsecure_kextload */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_record_nonsecure_kextload +( + mach_port_t server, + xmlDataIn_t load_data, + mach_msg_type_number_t load_dataCnt +); + +/* Routine kextmanager_lock_reboot */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_lock_reboot +( + mach_port_t server, + mach_port_t reaper, + int waitForLock, + mountpoint_t busyVol, + int *busyStatus +); + +/* Routine kextmanager_lock_volume */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_lock_volume +( + mach_port_t server, + mach_port_t reaper, + uuid_t vol_uuid, + int waitForLock, + int *lockStatus +); + +/* Routine kextmanager_unlock_volume */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_unlock_volume +( + mach_port_t server, + mach_port_t clientIdent, + uuid_t vol_uuid, + int exitStatus +); + +/* Routine kextmanager_lock_kextload */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_lock_kextload +( + mach_port_t server, + mach_port_t clientPort, + int *lockstatus +); + +/* Routine kextmanager_unlock_kextload */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_unlock_kextload +( + mach_port_t server, + mach_port_t clientPort +); + +/* Routine kextmanager_record_path_for_bundle_id */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t kextmanager_record_path_for_bundle_id +( + mach_port_t server, + kext_bundle_id_t bundle_id, + posix_path_t path +); + +__END_DECLS + +/********************** Caution **************************/ +/* The following data types should be used to calculate */ +/* maximum message sizes only. The actual message may be */ +/* smaller, and the position of the arguments within the */ +/* message layout may vary from what is presented here. */ +/* For example, if any of the arguments are variable- */ +/* sized, and less than the maximum is sent, the data */ +/* will be packed tight in the actual message to reduce */ +/* the presence of holes. */ +/********************** Caution **************************/ + +/* typedefs for all requests */ + +#ifndef __Request__kextmanager_subsystem__defined +#define __Request__kextmanager_subsystem__defined + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kext_bundle_id_t bundle_id; + } __Request__kextmanager_path_for_bundle_id_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + property_key_t prop_key; + } __Request__kextmanager_create_property_value_array_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + uint32_t euid; + AuthorizationExternalForm authref; + } __Request__kextmanager_user_did_log_in_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + uint32_t euid; + } __Request__kextmanager_user_will_log_out_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + } __Request__kextmanager_get_logged_in_userid_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_ool_descriptor_t load_data; + /* end of the kernel processed data */ + NDR_record_t NDR; + mach_msg_type_number_t load_dataCnt; + } __Request__kextmanager_record_nonsecure_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t reaper; + /* end of the kernel processed data */ + NDR_record_t NDR; + int waitForLock; + } __Request__kextmanager_lock_reboot_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t reaper; + /* end of the kernel processed data */ + NDR_record_t NDR; + uuid_t vol_uuid; + int waitForLock; + } __Request__kextmanager_lock_volume_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientIdent; + /* end of the kernel processed data */ + NDR_record_t NDR; + uuid_t vol_uuid; + int exitStatus; + } __Request__kextmanager_unlock_volume_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientPort; + /* end of the kernel processed data */ + } __Request__kextmanager_lock_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientPort; + /* end of the kernel processed data */ + } __Request__kextmanager_unlock_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kext_bundle_id_t bundle_id; + posix_path_t path; + } __Request__kextmanager_record_path_for_bundle_id_t; +#ifdef __MigPackStructs +#pragma pack() +#endif +#endif /* !__Request__kextmanager_subsystem__defined */ + +/* union of all requests */ + +#ifndef __RequestUnion__kextmanager_subsystem__defined +#define __RequestUnion__kextmanager_subsystem__defined +union __RequestUnion__kextmanager_subsystem { + __Request__kextmanager_path_for_bundle_id_t Request_kextmanager_path_for_bundle_id; + __Request__kextmanager_create_property_value_array_t Request_kextmanager_create_property_value_array; + __Request__kextmanager_user_did_log_in_t Request_kextmanager_user_did_log_in; + __Request__kextmanager_user_will_log_out_t Request_kextmanager_user_will_log_out; + __Request__kextmanager_get_logged_in_userid_t Request_kextmanager_get_logged_in_userid; + __Request__kextmanager_record_nonsecure_kextload_t Request_kextmanager_record_nonsecure_kextload; + __Request__kextmanager_lock_reboot_t Request_kextmanager_lock_reboot; + __Request__kextmanager_lock_volume_t Request_kextmanager_lock_volume; + __Request__kextmanager_unlock_volume_t Request_kextmanager_unlock_volume; + __Request__kextmanager_lock_kextload_t Request_kextmanager_lock_kextload; + __Request__kextmanager_unlock_kextload_t Request_kextmanager_unlock_kextload; + __Request__kextmanager_record_path_for_bundle_id_t Request_kextmanager_record_path_for_bundle_id; +}; +#endif /* !__RequestUnion__kextmanager_subsystem__defined */ +/* typedefs for all replies */ + +#ifndef __Reply__kextmanager_subsystem__defined +#define __Reply__kextmanager_subsystem__defined + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + posix_path_t path; + kext_result_t kext_result; + } __Reply__kextmanager_path_for_bundle_id_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_ool_descriptor_t data; + /* end of the kernel processed data */ + NDR_record_t NDR; + mach_msg_type_number_t dataCnt; + } __Reply__kextmanager_create_property_value_array_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_user_did_log_in_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_user_will_log_out_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + uint32_t euid; + } __Reply__kextmanager_get_logged_in_userid_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_record_nonsecure_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + mountpoint_t busyVol; + char busyVolPad[2]; + int busyStatus; + } __Reply__kextmanager_lock_reboot_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + int lockStatus; + } __Reply__kextmanager_lock_volume_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_unlock_volume_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + int lockstatus; + } __Reply__kextmanager_lock_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_unlock_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_record_path_for_bundle_id_t; +#ifdef __MigPackStructs +#pragma pack() +#endif +#endif /* !__Reply__kextmanager_subsystem__defined */ + +/* union of all replies */ + +#ifndef __ReplyUnion__kextmanager_subsystem__defined +#define __ReplyUnion__kextmanager_subsystem__defined +union __ReplyUnion__kextmanager_subsystem { + __Reply__kextmanager_path_for_bundle_id_t Reply_kextmanager_path_for_bundle_id; + __Reply__kextmanager_create_property_value_array_t Reply_kextmanager_create_property_value_array; + __Reply__kextmanager_user_did_log_in_t Reply_kextmanager_user_did_log_in; + __Reply__kextmanager_user_will_log_out_t Reply_kextmanager_user_will_log_out; + __Reply__kextmanager_get_logged_in_userid_t Reply_kextmanager_get_logged_in_userid; + __Reply__kextmanager_record_nonsecure_kextload_t Reply_kextmanager_record_nonsecure_kextload; + __Reply__kextmanager_lock_reboot_t Reply_kextmanager_lock_reboot; + __Reply__kextmanager_lock_volume_t Reply_kextmanager_lock_volume; + __Reply__kextmanager_unlock_volume_t Reply_kextmanager_unlock_volume; + __Reply__kextmanager_lock_kextload_t Reply_kextmanager_lock_kextload; + __Reply__kextmanager_unlock_kextload_t Reply_kextmanager_unlock_kextload; + __Reply__kextmanager_record_path_for_bundle_id_t Reply_kextmanager_record_path_for_bundle_id; +}; +#endif /* !__RequestUnion__kextmanager_subsystem__defined */ + +#ifndef subsystem_to_name_map_kextmanager +#define subsystem_to_name_map_kextmanager \ + { "kextmanager_path_for_bundle_id", 70000 },\ + { "kextmanager_create_property_value_array", 70001 },\ + { "kextmanager_user_did_log_in", 70002 },\ + { "kextmanager_user_will_log_out", 70003 },\ + { "kextmanager_get_logged_in_userid", 70004 },\ + { "kextmanager_record_nonsecure_kextload", 70005 },\ + { "kextmanager_lock_reboot", 70006 },\ + { "kextmanager_lock_volume", 70007 },\ + { "kextmanager_unlock_volume", 70008 },\ + { "kextmanager_lock_kextload", 70009 },\ + { "kextmanager_unlock_kextload", 70010 },\ + { "kextmanager_record_path_for_bundle_id", 70011 } +#endif + +#ifdef __AfterMigUserHeader +__AfterMigUserHeader +#endif /* __AfterMigUserHeader */ + +#endif /* _kextmanager_user_ */ diff --git a/data/system-cmds/kextmanagerServer.c b/data/system-cmds/kextmanagerServer.c new file mode 100644 index 000000000..401fe5874 --- /dev/null +++ b/data/system-cmds/kextmanagerServer.c @@ -0,0 +1,2756 @@ +/* + * IDENTIFICATION: + * stub generated Mon Dec 31 12:08:43 2007 + * with a MiG generated Mon Sep 11 19:11:05 PDT 2006 by root@b09.apple.com + * OPTIONS: + */ + +/* Module kextmanager */ + +#define __MIG_check__Request__kextmanager_subsystem__ 1 +#define __NDR_convert__Request__kextmanager_subsystem__ 1 + +#include <string.h> +#include <mach/ndr.h> +#include <mach/boolean.h> +#include <mach/kern_return.h> +#include <mach/notify.h> +#include <mach/mach_types.h> +#include <mach/message.h> +#include <mach/mig_errors.h> +#include <mach/port.h> + +#include <mach/std_types.h> +#include <mach/mig.h> +#include <mach/mig.h> +#include <mach/mach_types.h> +#include <Security/Authorization.h> +#include <IOKit/kext/kextmanager_types.h> +#include <mach/kmod.h> +#include <sys/param.h> + +#ifndef mig_internal +#define mig_internal static __inline__ +#endif /* mig_internal */ + +#ifndef mig_external +#define mig_external +#endif /* mig_external */ + +#if !defined(__MigTypeCheck) && defined(TypeCheck) +#define __MigTypeCheck TypeCheck /* Legacy setting */ +#endif /* !defined(__MigTypeCheck) */ + +#if !defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_) +#define __MigKernelSpecificCode _MIG_KERNEL_SPECIFIC_CODE_ /* Legacy setting */ +#endif /* !defined(__MigKernelSpecificCode) */ + +#ifndef LimitCheck +#define LimitCheck 0 +#endif /* LimitCheck */ + +#ifndef min +#define min(a,b) ( ((a) < (b))? (a): (b) ) +#endif /* min */ + +#if !defined(_WALIGN_) +#define _WALIGN_(x) (((x) + 3) & ~3) +#endif /* !defined(_WALIGN_) */ + +#if !defined(_WALIGNSZ_) +#define _WALIGNSZ_(x) _WALIGN_(sizeof(x)) +#endif /* !defined(_WALIGNSZ_) */ + +#ifndef UseStaticTemplates +#define UseStaticTemplates 0 +#endif /* UseStaticTemplates */ + +#ifndef __DeclareRcvRpc +#define __DeclareRcvRpc(_NUM_, _NAME_) +#endif /* __DeclareRcvRpc */ + +#ifndef __BeforeRcvRpc +#define __BeforeRcvRpc(_NUM_, _NAME_) +#endif /* __BeforeRcvRpc */ + +#ifndef __AfterRcvRpc +#define __AfterRcvRpc(_NUM_, _NAME_) +#endif /* __AfterRcvRpc */ + +#ifndef __DeclareRcvSimple +#define __DeclareRcvSimple(_NUM_, _NAME_) +#endif /* __DeclareRcvSimple */ + +#ifndef __BeforeRcvSimple +#define __BeforeRcvSimple(_NUM_, _NAME_) +#endif /* __BeforeRcvSimple */ + +#ifndef __AfterRcvSimple +#define __AfterRcvSimple(_NUM_, _NAME_) +#endif /* __AfterRcvSimple */ + +#define novalue void + +#define msgh_request_port msgh_local_port +#define MACH_MSGH_BITS_REQUEST(bits) MACH_MSGH_BITS_LOCAL(bits) +#define msgh_reply_port msgh_remote_port +#define MACH_MSGH_BITS_REPLY(bits) MACH_MSGH_BITS_REMOTE(bits) + +#define MIG_RETURN_ERROR(X, code) {\ + ((mig_reply_error_t *)X)->RetCode = code;\ + ((mig_reply_error_t *)X)->NDR = NDR_record;\ + return;\ + } + +/* typedefs for all requests */ + +#ifndef __Request__kextmanager_subsystem__defined +#define __Request__kextmanager_subsystem__defined + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kext_bundle_id_t bundle_id; + } __Request__kextmanager_path_for_bundle_id_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + property_key_t prop_key; + } __Request__kextmanager_create_property_value_array_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + uint32_t euid; + AuthorizationExternalForm authref; + } __Request__kextmanager_user_did_log_in_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + uint32_t euid; + } __Request__kextmanager_user_will_log_out_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + } __Request__kextmanager_get_logged_in_userid_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_ool_descriptor_t load_data; + /* end of the kernel processed data */ + NDR_record_t NDR; + mach_msg_type_number_t load_dataCnt; + } __Request__kextmanager_record_nonsecure_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t reaper; + /* end of the kernel processed data */ + NDR_record_t NDR; + int waitForLock; + } __Request__kextmanager_lock_reboot_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t reaper; + /* end of the kernel processed data */ + NDR_record_t NDR; + uuid_t vol_uuid; + int waitForLock; + } __Request__kextmanager_lock_volume_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientIdent; + /* end of the kernel processed data */ + NDR_record_t NDR; + uuid_t vol_uuid; + int exitStatus; + } __Request__kextmanager_unlock_volume_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientPort; + /* end of the kernel processed data */ + } __Request__kextmanager_lock_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientPort; + /* end of the kernel processed data */ + } __Request__kextmanager_unlock_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kext_bundle_id_t bundle_id; + posix_path_t path; + } __Request__kextmanager_record_path_for_bundle_id_t; +#ifdef __MigPackStructs +#pragma pack() +#endif +#endif /* !__Request__kextmanager_subsystem__defined */ + +/* typedefs for all replies */ + +#ifndef __Reply__kextmanager_subsystem__defined +#define __Reply__kextmanager_subsystem__defined + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + posix_path_t path; + kext_result_t kext_result; + } __Reply__kextmanager_path_for_bundle_id_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_ool_descriptor_t data; + /* end of the kernel processed data */ + NDR_record_t NDR; + mach_msg_type_number_t dataCnt; + } __Reply__kextmanager_create_property_value_array_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_user_did_log_in_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_user_will_log_out_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + uint32_t euid; + } __Reply__kextmanager_get_logged_in_userid_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_record_nonsecure_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + mountpoint_t busyVol; + char busyVolPad[2]; + int busyStatus; + } __Reply__kextmanager_lock_reboot_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + int lockStatus; + } __Reply__kextmanager_lock_volume_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_unlock_volume_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + int lockstatus; + } __Reply__kextmanager_lock_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_unlock_kextload_t; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply__kextmanager_record_path_for_bundle_id_t; +#ifdef __MigPackStructs +#pragma pack() +#endif +#endif /* !__Reply__kextmanager_subsystem__defined */ + + +/* union of all replies */ + +#ifndef __ReplyUnion___kextmanager_subsystem__defined +#define __ReplyUnion___kextmanager_subsystem__defined +union __ReplyUnion___kextmanager_subsystem { + __Reply__kextmanager_path_for_bundle_id_t Reply_kextmanager_path_for_bundle_id; + __Reply__kextmanager_create_property_value_array_t Reply_kextmanager_create_property_value_array; + __Reply__kextmanager_user_did_log_in_t Reply_kextmanager_user_did_log_in; + __Reply__kextmanager_user_will_log_out_t Reply_kextmanager_user_will_log_out; + __Reply__kextmanager_get_logged_in_userid_t Reply_kextmanager_get_logged_in_userid; + __Reply__kextmanager_record_nonsecure_kextload_t Reply_kextmanager_record_nonsecure_kextload; + __Reply__kextmanager_lock_reboot_t Reply_kextmanager_lock_reboot; + __Reply__kextmanager_lock_volume_t Reply_kextmanager_lock_volume; + __Reply__kextmanager_unlock_volume_t Reply_kextmanager_unlock_volume; + __Reply__kextmanager_lock_kextload_t Reply_kextmanager_lock_kextload; + __Reply__kextmanager_unlock_kextload_t Reply_kextmanager_unlock_kextload; + __Reply__kextmanager_record_path_for_bundle_id_t Reply_kextmanager_record_path_for_bundle_id; +}; +#endif /* __RequestUnion___kextmanager_subsystem__defined */ +/* Forward Declarations */ + + +mig_internal novalue _Xkextmanager_path_for_bundle_id + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_create_property_value_array + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_user_did_log_in + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_user_will_log_out + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_get_logged_in_userid + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_record_nonsecure_kextload + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_lock_reboot + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_lock_volume + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_unlock_volume + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_lock_kextload + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_unlock_kextload + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + +mig_internal novalue _Xkextmanager_record_path_for_bundle_id + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); + + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_path_for_bundle_id_t__defined) +#define __MIG_check__Request__kextmanager_path_for_bundle_id_t__defined +#ifndef __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#if defined(__NDR_convert__int_rep__kextmanager__kext_bundle_id_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__int_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kext_bundle_id_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__int_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__char__defined) +#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__int_rep__kextmanager__char) +#elif defined(__NDR_convert__int_rep__char__defined) +#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__int_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#if defined(__NDR_convert__char_rep__kextmanager__kext_bundle_id_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__char_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kext_bundle_id_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__char_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__char__defined) +#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__char_rep__kextmanager__char) +#elif defined(__NDR_convert__char_rep__char__defined) +#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__char_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#if defined(__NDR_convert__float_rep__kextmanager__kext_bundle_id_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__float_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kext_bundle_id_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__float_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__char__defined) +#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__float_rep__kextmanager__char) +#elif defined(__NDR_convert__float_rep__char__defined) +#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__float_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */ + + +mig_internal kern_return_t __MIG_check__Request__kextmanager_path_for_bundle_id_t(__Request__kextmanager_path_for_bundle_id_t *In0P) +{ + + typedef __Request__kextmanager_path_for_bundle_id_t __Request; +#if __MigTypeCheck + if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined) + if (In0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined) + __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if defined(__NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined) + if (In0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined) + __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if defined(__NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined) + if (In0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined) + __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_path_for_bundle_id_t__bundle_id__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_path_for_bundle_id_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_path_for_bundle_id */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_path_for_bundle_id +( + mach_port_t server, + kext_bundle_id_t bundle_id, + posix_path_t path, + kext_result_t *kext_result +); + +/* Routine kextmanager_path_for_bundle_id */ +mig_internal novalue _Xkextmanager_path_for_bundle_id + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kext_bundle_id_t bundle_id; + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_path_for_bundle_id_t __Request; + typedef __Reply__kextmanager_path_for_bundle_id_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_path_for_bundle_id_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_path_for_bundle_id_t__defined */ + + __DeclareRcvRpc(70000, "kextmanager_path_for_bundle_id") + __BeforeRcvRpc(70000, "kextmanager_path_for_bundle_id") + +#if defined(__MIG_check__Request__kextmanager_path_for_bundle_id_t__defined) + check_result = __MIG_check__Request__kextmanager_path_for_bundle_id_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_path_for_bundle_id_t__defined) */ + + OutP->RetCode = _kextmanager_path_for_bundle_id(In0P->Head.msgh_request_port, In0P->bundle_id, OutP->path, &OutP->kext_result); + if (OutP->RetCode != KERN_SUCCESS) { + MIG_RETURN_ERROR(OutP, OutP->RetCode); + } + + OutP->NDR = NDR_record; + + + OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply)); + __AfterRcvRpc(70000, "kextmanager_path_for_bundle_id") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_create_property_value_array_t__defined) +#define __MIG_check__Request__kextmanager_create_property_value_array_t__defined +#ifndef __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#if defined(__NDR_convert__int_rep__kextmanager__property_key_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__int_rep__kextmanager__property_key_t((property_key_t *)(a), f) +#elif defined(__NDR_convert__int_rep__property_key_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__int_rep__property_key_t((property_key_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__char__defined) +#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__int_rep__kextmanager__char) +#elif defined(__NDR_convert__int_rep__char__defined) +#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__int_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#if defined(__NDR_convert__char_rep__kextmanager__property_key_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__char_rep__kextmanager__property_key_t((property_key_t *)(a), f) +#elif defined(__NDR_convert__char_rep__property_key_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__char_rep__property_key_t((property_key_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__char__defined) +#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__char_rep__kextmanager__char) +#elif defined(__NDR_convert__char_rep__char__defined) +#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__char_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#if defined(__NDR_convert__float_rep__kextmanager__property_key_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__float_rep__kextmanager__property_key_t((property_key_t *)(a), f) +#elif defined(__NDR_convert__float_rep__property_key_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__float_rep__property_key_t((property_key_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__char__defined) +#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__float_rep__kextmanager__char) +#elif defined(__NDR_convert__float_rep__char__defined) +#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined +#define __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 128, __NDR_convert__float_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */ + + +mig_internal kern_return_t __MIG_check__Request__kextmanager_create_property_value_array_t(__Request__kextmanager_create_property_value_array_t *In0P) +{ + + typedef __Request__kextmanager_create_property_value_array_t __Request; +#if __MigTypeCheck + if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined) + if (In0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined) + __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key(&In0P->prop_key, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if defined(__NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined) + if (In0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined) + __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key(&In0P->prop_key, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if defined(__NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined) + if (In0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined) + __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key(&In0P->prop_key, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_create_property_value_array_t__prop_key__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_create_property_value_array_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_create_property_value_array */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_create_property_value_array +( + mach_port_t server, + property_key_t prop_key, + xmlDataOut_t *data, + mach_msg_type_number_t *dataCnt +); + +/* Routine kextmanager_create_property_value_array */ +mig_internal novalue _Xkextmanager_create_property_value_array + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + property_key_t prop_key; + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_create_property_value_array_t __Request; + typedef __Reply__kextmanager_create_property_value_array_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_create_property_value_array_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_create_property_value_array_t__defined */ + +#if UseStaticTemplates + const static mach_msg_ool_descriptor_t dataTemplate = { + /* addr = */ (void *)0, + /* size = */ 0, + /* deal = */ TRUE, + /* copy = */ MACH_MSG_VIRTUAL_COPY, + /* pad2 = */ 0, + /* type = */ MACH_MSG_OOL_DESCRIPTOR, + }; +#endif /* UseStaticTemplates */ + + kern_return_t RetCode; + __DeclareRcvRpc(70001, "kextmanager_create_property_value_array") + __BeforeRcvRpc(70001, "kextmanager_create_property_value_array") + +#if defined(__MIG_check__Request__kextmanager_create_property_value_array_t__defined) + check_result = __MIG_check__Request__kextmanager_create_property_value_array_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_create_property_value_array_t__defined) */ + +#if UseStaticTemplates + OutP->data = dataTemplate; +#else /* UseStaticTemplates */ + OutP->data.deallocate = TRUE; + OutP->data.copy = MACH_MSG_VIRTUAL_COPY; + OutP->data.type = MACH_MSG_OOL_DESCRIPTOR; +#endif /* UseStaticTemplates */ + + + RetCode = _kextmanager_create_property_value_array(In0P->Head.msgh_request_port, In0P->prop_key, (xmlDataOut_t *)&(OutP->data.address), &OutP->dataCnt); + if (RetCode != KERN_SUCCESS) { + MIG_RETURN_ERROR(OutP, RetCode); + } + OutP->data.size = OutP->dataCnt; + + + OutP->NDR = NDR_record; + + + OutP->Head.msgh_bits |= MACH_MSGH_BITS_COMPLEX; + OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply)); + OutP->msgh_body.msgh_descriptor_count = 1; + __AfterRcvRpc(70001, "kextmanager_create_property_value_array") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_user_did_log_in_t__defined) +#define __MIG_check__Request__kextmanager_user_did_log_in_t__defined +#ifndef __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined +#if defined(__NDR_convert__int_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \ + __NDR_convert__int_rep__kextmanager__uint32_t((uint32_t *)(a), f) +#elif defined(__NDR_convert__int_rep__uint32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \ + __NDR_convert__int_rep__uint32_t((uint32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined */ + +#ifndef __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#if defined(__NDR_convert__int_rep__kextmanager__AuthorizationExternalForm__defined) +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__int_rep__kextmanager__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f) +#elif defined(__NDR_convert__int_rep__AuthorizationExternalForm__defined) +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__int_rep__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__unsigned32__defined) +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__int_rep__kextmanager__unsigned32) +#elif defined(__NDR_convert__int_rep__unsigned32__defined) +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__int_rep__unsigned32) +#elif defined(__NDR_convert__int_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__int_rep__kextmanager__uint32_t) +#elif defined(__NDR_convert__int_rep__uint32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__int_rep__uint32_t) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined +#if defined(__NDR_convert__char_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \ + __NDR_convert__char_rep__kextmanager__uint32_t((uint32_t *)(a), f) +#elif defined(__NDR_convert__char_rep__uint32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \ + __NDR_convert__char_rep__uint32_t((uint32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#if defined(__NDR_convert__char_rep__kextmanager__AuthorizationExternalForm__defined) +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__char_rep__kextmanager__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f) +#elif defined(__NDR_convert__char_rep__AuthorizationExternalForm__defined) +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__char_rep__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__unsigned32__defined) +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__char_rep__kextmanager__unsigned32) +#elif defined(__NDR_convert__char_rep__unsigned32__defined) +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__char_rep__unsigned32) +#elif defined(__NDR_convert__char_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__char_rep__kextmanager__uint32_t) +#elif defined(__NDR_convert__char_rep__uint32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__char_rep__uint32_t) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined +#if defined(__NDR_convert__float_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \ + __NDR_convert__float_rep__kextmanager__uint32_t((uint32_t *)(a), f) +#elif defined(__NDR_convert__float_rep__uint32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid(a, f) \ + __NDR_convert__float_rep__uint32_t((uint32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#if defined(__NDR_convert__float_rep__kextmanager__AuthorizationExternalForm__defined) +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__float_rep__kextmanager__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f) +#elif defined(__NDR_convert__float_rep__AuthorizationExternalForm__defined) +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__float_rep__AuthorizationExternalForm((AuthorizationExternalForm *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__unsigned32__defined) +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__float_rep__kextmanager__unsigned32) +#elif defined(__NDR_convert__float_rep__unsigned32__defined) +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((unsigned32 *)(a), f, 8, __NDR_convert__float_rep__unsigned32) +#elif defined(__NDR_convert__float_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__float_rep__kextmanager__uint32_t) +#elif defined(__NDR_convert__float_rep__uint32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined +#define __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(a, f) \ + __NDR_convert__ARRAY((uint32_t *)(a), f, 8, __NDR_convert__float_rep__uint32_t) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined */ + + +mig_internal kern_return_t __MIG_check__Request__kextmanager_user_did_log_in_t(__Request__kextmanager_user_did_log_in_t *In0P) +{ + + typedef __Request__kextmanager_user_did_log_in_t __Request; +#if __MigTypeCheck + if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined) || \ + defined(__NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined) + if (In0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined) + __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid(&In0P->euid, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__euid__defined */ +#if defined(__NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined) + __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref(&In0P->authref, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_user_did_log_in_t__authref__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if defined(__NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined) || \ + defined(__NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined) + if (In0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined) + __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid(&In0P->euid, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__euid__defined */ +#if defined(__NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined) + __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref(&In0P->authref, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_user_did_log_in_t__authref__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if defined(__NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined) || \ + defined(__NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined) + if (In0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined) + __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid(&In0P->euid, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__euid__defined */ +#if defined(__NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined) + __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref(&In0P->authref, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_user_did_log_in_t__authref__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_user_did_log_in_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_user_did_log_in */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_user_did_log_in +( + mach_port_t server, + uint32_t euid, + AuthorizationExternalForm authref +); + +/* Routine kextmanager_user_did_log_in */ +mig_internal novalue _Xkextmanager_user_did_log_in + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + uint32_t euid; + AuthorizationExternalForm authref; + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_user_did_log_in_t __Request; + typedef __Reply__kextmanager_user_did_log_in_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_user_did_log_in_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_user_did_log_in_t__defined */ + + __DeclareRcvRpc(70002, "kextmanager_user_did_log_in") + __BeforeRcvRpc(70002, "kextmanager_user_did_log_in") + +#if defined(__MIG_check__Request__kextmanager_user_did_log_in_t__defined) + check_result = __MIG_check__Request__kextmanager_user_did_log_in_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_user_did_log_in_t__defined) */ + + OutP->RetCode = _kextmanager_user_did_log_in(In0P->Head.msgh_request_port, In0P->euid, In0P->authref); + + OutP->NDR = NDR_record; + + + __AfterRcvRpc(70002, "kextmanager_user_did_log_in") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_user_will_log_out_t__defined) +#define __MIG_check__Request__kextmanager_user_will_log_out_t__defined +#ifndef __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined +#if defined(__NDR_convert__int_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined +#define __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \ + __NDR_convert__int_rep__kextmanager__uint32_t((uint32_t *)(a), f) +#elif defined(__NDR_convert__int_rep__uint32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined +#define __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \ + __NDR_convert__int_rep__uint32_t((uint32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined +#if defined(__NDR_convert__char_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined +#define __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \ + __NDR_convert__char_rep__kextmanager__uint32_t((uint32_t *)(a), f) +#elif defined(__NDR_convert__char_rep__uint32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined +#define __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \ + __NDR_convert__char_rep__uint32_t((uint32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined +#if defined(__NDR_convert__float_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined +#define __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \ + __NDR_convert__float_rep__kextmanager__uint32_t((uint32_t *)(a), f) +#elif defined(__NDR_convert__float_rep__uint32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined +#define __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid(a, f) \ + __NDR_convert__float_rep__uint32_t((uint32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined */ + + +mig_internal kern_return_t __MIG_check__Request__kextmanager_user_will_log_out_t(__Request__kextmanager_user_will_log_out_t *In0P) +{ + + typedef __Request__kextmanager_user_will_log_out_t __Request; +#if __MigTypeCheck + if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined) + if (In0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined) + __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid(&In0P->euid, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_user_will_log_out_t__euid__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if defined(__NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined) + if (In0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined) + __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid(&In0P->euid, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_user_will_log_out_t__euid__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if defined(__NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined) + if (In0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined) + __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid(&In0P->euid, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_user_will_log_out_t__euid__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_user_will_log_out_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_user_will_log_out */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_user_will_log_out +( + mach_port_t server, + uint32_t euid +); + +/* Routine kextmanager_user_will_log_out */ +mig_internal novalue _Xkextmanager_user_will_log_out + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + uint32_t euid; + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_user_will_log_out_t __Request; + typedef __Reply__kextmanager_user_will_log_out_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_user_will_log_out_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_user_will_log_out_t__defined */ + + __DeclareRcvRpc(70003, "kextmanager_user_will_log_out") + __BeforeRcvRpc(70003, "kextmanager_user_will_log_out") + +#if defined(__MIG_check__Request__kextmanager_user_will_log_out_t__defined) + check_result = __MIG_check__Request__kextmanager_user_will_log_out_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_user_will_log_out_t__defined) */ + + OutP->RetCode = _kextmanager_user_will_log_out(In0P->Head.msgh_request_port, In0P->euid); + + OutP->NDR = NDR_record; + + + __AfterRcvRpc(70003, "kextmanager_user_will_log_out") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_get_logged_in_userid_t__defined) +#define __MIG_check__Request__kextmanager_get_logged_in_userid_t__defined + +mig_internal kern_return_t __MIG_check__Request__kextmanager_get_logged_in_userid_t(__Request__kextmanager_get_logged_in_userid_t *In0P) +{ + + typedef __Request__kextmanager_get_logged_in_userid_t __Request; +#if __MigTypeCheck + if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_get_logged_in_userid_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_get_logged_in_userid */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_get_logged_in_userid +( + mach_port_t server, + uint32_t *euid +); + +/* Routine kextmanager_get_logged_in_userid */ +mig_internal novalue _Xkextmanager_get_logged_in_userid + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_get_logged_in_userid_t __Request; + typedef __Reply__kextmanager_get_logged_in_userid_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_get_logged_in_userid_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_get_logged_in_userid_t__defined */ + + __DeclareRcvRpc(70004, "kextmanager_get_logged_in_userid") + __BeforeRcvRpc(70004, "kextmanager_get_logged_in_userid") + +#if defined(__MIG_check__Request__kextmanager_get_logged_in_userid_t__defined) + check_result = __MIG_check__Request__kextmanager_get_logged_in_userid_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_get_logged_in_userid_t__defined) */ + + OutP->RetCode = _kextmanager_get_logged_in_userid(In0P->Head.msgh_request_port, &OutP->euid); + if (OutP->RetCode != KERN_SUCCESS) { + MIG_RETURN_ERROR(OutP, OutP->RetCode); + } + + OutP->NDR = NDR_record; + + + OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply)); + __AfterRcvRpc(70004, "kextmanager_get_logged_in_userid") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined) +#define __MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined +#ifndef __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined +#if defined(__NDR_convert__int_rep__kextmanager__xmlDataIn_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \ + __NDR_convert__int_rep__kextmanager__xmlDataIn_t((xmlDataIn_t *)(a), f, c) +#elif defined(__NDR_convert__int_rep__xmlDataIn_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \ + __NDR_convert__int_rep__xmlDataIn_t((xmlDataIn_t *)(a), f, c) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */ + +#ifndef __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined +#if defined(__NDR_convert__int_rep__kextmanager__mach_msg_type_number_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt(a, f) \ + __NDR_convert__int_rep__kextmanager__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f) +#elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt(a, f) \ + __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined +#if defined(__NDR_convert__char_rep__kextmanager__xmlDataIn_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined +#define __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \ + __NDR_convert__char_rep__kextmanager__xmlDataIn_t((xmlDataIn_t *)(a), f, c) +#elif defined(__NDR_convert__char_rep__xmlDataIn_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined +#define __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \ + __NDR_convert__char_rep__xmlDataIn_t((xmlDataIn_t *)(a), f, c) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined +#if defined(__NDR_convert__float_rep__kextmanager__xmlDataIn_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined +#define __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \ + __NDR_convert__float_rep__kextmanager__xmlDataIn_t((xmlDataIn_t *)(a), f, c) +#elif defined(__NDR_convert__float_rep__xmlDataIn_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined +#define __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data(a, f, c) \ + __NDR_convert__float_rep__xmlDataIn_t((xmlDataIn_t *)(a), f, c) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */ + + +mig_internal kern_return_t __MIG_check__Request__kextmanager_record_nonsecure_kextload_t(__Request__kextmanager_record_nonsecure_kextload_t *In0P) +{ + + typedef __Request__kextmanager_record_nonsecure_kextload_t __Request; +#if __MigTypeCheck + if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->msgh_body.msgh_descriptor_count != 1) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if __MigTypeCheck + if (In0P->load_data.type != MACH_MSG_OOL_DESCRIPTOR) + return MIG_TYPE_ERROR; +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined) || \ + defined(__NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined) + if (In0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined) + __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt(&In0P->load_dataCnt, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_dataCnt__defined */ +#if defined(__NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined) + __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data((xmlDataIn_t)(In0P->load_data.address), In0P->NDR.int_rep, In0P->load_dataCnt); +#endif /* __NDR_convert__int_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if defined(__NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined) || \ + 0 + if (In0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined) + __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data((xmlDataIn_t)(In0P->load_data.address), In0P->NDR.char_rep, In0P->load_dataCnt); +#endif /* __NDR_convert__char_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if defined(__NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined) || \ + 0 + if (In0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined) + __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data((xmlDataIn_t)(In0P->load_data.address), In0P->NDR.float_rep, In0P->load_dataCnt); +#endif /* __NDR_convert__float_rep__Request__kextmanager_record_nonsecure_kextload_t__load_data__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_record_nonsecure_kextload */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_record_nonsecure_kextload +( + mach_port_t server, + xmlDataIn_t load_data, + mach_msg_type_number_t load_dataCnt +); + +/* Routine kextmanager_record_nonsecure_kextload */ +mig_internal novalue _Xkextmanager_record_nonsecure_kextload + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_ool_descriptor_t load_data; + /* end of the kernel processed data */ + NDR_record_t NDR; + mach_msg_type_number_t load_dataCnt; + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_record_nonsecure_kextload_t __Request; + typedef __Reply__kextmanager_record_nonsecure_kextload_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined */ + + __DeclareRcvRpc(70005, "kextmanager_record_nonsecure_kextload") + __BeforeRcvRpc(70005, "kextmanager_record_nonsecure_kextload") + +#if defined(__MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined) + check_result = __MIG_check__Request__kextmanager_record_nonsecure_kextload_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_record_nonsecure_kextload_t__defined) */ + + OutP->RetCode = _kextmanager_record_nonsecure_kextload(In0P->Head.msgh_request_port, (xmlDataIn_t)(In0P->load_data.address), In0P->load_dataCnt); + + OutP->NDR = NDR_record; + + + __AfterRcvRpc(70005, "kextmanager_record_nonsecure_kextload") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_lock_reboot_t__defined) +#define __MIG_check__Request__kextmanager_lock_reboot_t__defined +#ifndef __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#if defined(__NDR_convert__int_rep__kextmanager__int__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__int_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__int__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__int_rep__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__int_rep__int32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__int_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#if defined(__NDR_convert__char_rep__kextmanager__int__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__char_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__int__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__char_rep__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__char_rep__int32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__char_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#if defined(__NDR_convert__float_rep__kextmanager__int__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__float_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__int__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__float_rep__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__float_rep__int32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock(a, f) \ + __NDR_convert__float_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */ + + +mig_internal kern_return_t __MIG_check__Request__kextmanager_lock_reboot_t(__Request__kextmanager_lock_reboot_t *In0P) +{ + + typedef __Request__kextmanager_lock_reboot_t __Request; +#if __MigTypeCheck + if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->msgh_body.msgh_descriptor_count != 1) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if __MigTypeCheck + if (In0P->reaper.type != MACH_MSG_PORT_DESCRIPTOR || + In0P->reaper.disposition != 17) + return MIG_TYPE_ERROR; +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined) + if (In0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined) + __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock(&In0P->waitForLock, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if defined(__NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined) + if (In0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined) + __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock(&In0P->waitForLock, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if defined(__NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined) + if (In0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined) + __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock(&In0P->waitForLock, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_reboot_t__waitForLock__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_lock_reboot_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_lock_reboot */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_lock_reboot +( + mach_port_t server, + mach_port_t reply, + mach_port_t reaper, + int waitForLock, + mountpoint_t busyVol, + int *busyStatus +); + +/* Routine kextmanager_lock_reboot */ +mig_internal novalue _Xkextmanager_lock_reboot + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t reaper; + /* end of the kernel processed data */ + NDR_record_t NDR; + int waitForLock; + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_lock_reboot_t __Request; + typedef __Reply__kextmanager_lock_reboot_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_lock_reboot_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_lock_reboot_t__defined */ + + __DeclareRcvRpc(70006, "kextmanager_lock_reboot") + __BeforeRcvRpc(70006, "kextmanager_lock_reboot") + +#if defined(__MIG_check__Request__kextmanager_lock_reboot_t__defined) + check_result = __MIG_check__Request__kextmanager_lock_reboot_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_lock_reboot_t__defined) */ + + OutP->RetCode = _kextmanager_lock_reboot(In0P->Head.msgh_request_port, In0P->Head.msgh_reply_port, In0P->reaper.name, In0P->waitForLock, OutP->busyVol, &OutP->busyStatus); + if (OutP->RetCode != KERN_SUCCESS) { + MIG_RETURN_ERROR(OutP, OutP->RetCode); + } + + OutP->NDR = NDR_record; + + + OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply)); + __AfterRcvRpc(70006, "kextmanager_lock_reboot") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_lock_volume_t__defined) +#define __MIG_check__Request__kextmanager_lock_volume_t__defined +#ifndef __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#if defined(__NDR_convert__int_rep__kextmanager__uuid_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__int_rep__kextmanager__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__int_rep__uuid_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__int_rep__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__uint8_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__int_rep__kextmanager__uint8_t) +#elif defined(__NDR_convert__int_rep__uint8_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__int_rep__uint8_t) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */ + +#ifndef __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#if defined(__NDR_convert__int_rep__kextmanager__int__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__int_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__int__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__int_rep__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__int_rep__int32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__int_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#if defined(__NDR_convert__char_rep__kextmanager__uuid_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__char_rep__kextmanager__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__char_rep__uuid_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__char_rep__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__uint8_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__char_rep__kextmanager__uint8_t) +#elif defined(__NDR_convert__char_rep__uint8_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__char_rep__uint8_t) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#if defined(__NDR_convert__char_rep__kextmanager__int__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__char_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__int__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__char_rep__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__char_rep__int32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__char_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#if defined(__NDR_convert__float_rep__kextmanager__uuid_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__float_rep__kextmanager__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__float_rep__uuid_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__float_rep__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__uint8_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__float_rep__kextmanager__uint8_t) +#elif defined(__NDR_convert__float_rep__uint8_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__float_rep__uint8_t) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#if defined(__NDR_convert__float_rep__kextmanager__int__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__float_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__int__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__float_rep__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__float_rep__int32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined +#define __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock(a, f) \ + __NDR_convert__float_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */ + + +mig_internal kern_return_t __MIG_check__Request__kextmanager_lock_volume_t(__Request__kextmanager_lock_volume_t *In0P) +{ + + typedef __Request__kextmanager_lock_volume_t __Request; +#if __MigTypeCheck + if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->msgh_body.msgh_descriptor_count != 1) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if __MigTypeCheck + if (In0P->reaper.type != MACH_MSG_PORT_DESCRIPTOR || + In0P->reaper.disposition != 17) + return MIG_TYPE_ERROR; +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined) || \ + defined(__NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined) + if (In0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined) + __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */ +#if defined(__NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined) + __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock(&In0P->waitForLock, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if defined(__NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined) || \ + defined(__NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined) + if (In0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined) + __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */ +#if defined(__NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined) + __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock(&In0P->waitForLock, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if defined(__NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined) || \ + defined(__NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined) + if (In0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined) + __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__vol_uuid__defined */ +#if defined(__NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined) + __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock(&In0P->waitForLock, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_lock_volume_t__waitForLock__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_lock_volume_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_lock_volume */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_lock_volume +( + mach_port_t server, + mach_port_t reply, + mach_port_t reaper, + uuid_t vol_uuid, + int waitForLock, + int *lockStatus +); + +/* Routine kextmanager_lock_volume */ +mig_internal novalue _Xkextmanager_lock_volume + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t reaper; + /* end of the kernel processed data */ + NDR_record_t NDR; + uuid_t vol_uuid; + int waitForLock; + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_lock_volume_t __Request; + typedef __Reply__kextmanager_lock_volume_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_lock_volume_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_lock_volume_t__defined */ + + __DeclareRcvRpc(70007, "kextmanager_lock_volume") + __BeforeRcvRpc(70007, "kextmanager_lock_volume") + +#if defined(__MIG_check__Request__kextmanager_lock_volume_t__defined) + check_result = __MIG_check__Request__kextmanager_lock_volume_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_lock_volume_t__defined) */ + + OutP->RetCode = _kextmanager_lock_volume(In0P->Head.msgh_request_port, In0P->Head.msgh_reply_port, In0P->reaper.name, In0P->vol_uuid, In0P->waitForLock, &OutP->lockStatus); + if (OutP->RetCode != KERN_SUCCESS) { + MIG_RETURN_ERROR(OutP, OutP->RetCode); + } + + OutP->NDR = NDR_record; + + + OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply)); + __AfterRcvRpc(70007, "kextmanager_lock_volume") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_unlock_volume_t__defined) +#define __MIG_check__Request__kextmanager_unlock_volume_t__defined +#ifndef __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#if defined(__NDR_convert__int_rep__kextmanager__uuid_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__int_rep__kextmanager__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__int_rep__uuid_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__int_rep__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__uint8_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__int_rep__kextmanager__uint8_t) +#elif defined(__NDR_convert__int_rep__uint8_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__int_rep__uint8_t) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */ + +#ifndef __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#if defined(__NDR_convert__int_rep__kextmanager__int__defined) +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__int_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__int__defined) +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__int_rep__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__int_rep__int32_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__int_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#if defined(__NDR_convert__char_rep__kextmanager__uuid_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__char_rep__kextmanager__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__char_rep__uuid_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__char_rep__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__uint8_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__char_rep__kextmanager__uint8_t) +#elif defined(__NDR_convert__char_rep__uint8_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__char_rep__uint8_t) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#if defined(__NDR_convert__char_rep__kextmanager__int__defined) +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__char_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__int__defined) +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__char_rep__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__char_rep__int32_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__char_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#if defined(__NDR_convert__float_rep__kextmanager__uuid_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__float_rep__kextmanager__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__float_rep__uuid_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__float_rep__uuid_t((uuid_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__uint8_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__float_rep__kextmanager__uint8_t) +#elif defined(__NDR_convert__float_rep__uint8_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid(a, f) \ + __NDR_convert__ARRAY((uint8_t *)(a), f, 16, __NDR_convert__float_rep__uint8_t) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#if defined(__NDR_convert__float_rep__kextmanager__int__defined) +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__float_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__int__defined) +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__float_rep__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__float_rep__int32_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined +#define __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus(a, f) \ + __NDR_convert__float_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */ + + +mig_internal kern_return_t __MIG_check__Request__kextmanager_unlock_volume_t(__Request__kextmanager_unlock_volume_t *In0P) +{ + + typedef __Request__kextmanager_unlock_volume_t __Request; +#if __MigTypeCheck + if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->msgh_body.msgh_descriptor_count != 1) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if __MigTypeCheck + if (In0P->clientIdent.type != MACH_MSG_PORT_DESCRIPTOR || + In0P->clientIdent.disposition != 17) + return MIG_TYPE_ERROR; +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined) || \ + defined(__NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined) + if (In0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined) + __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */ +#if defined(__NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined) + __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus(&In0P->exitStatus, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if defined(__NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined) || \ + defined(__NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined) + if (In0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined) + __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */ +#if defined(__NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined) + __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus(&In0P->exitStatus, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if defined(__NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined) || \ + defined(__NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined) + if (In0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined) + __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid(&In0P->vol_uuid, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__vol_uuid__defined */ +#if defined(__NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined) + __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus(&In0P->exitStatus, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_unlock_volume_t__exitStatus__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_unlock_volume_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_unlock_volume */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_unlock_volume +( + mach_port_t server, + mach_port_t clientIdent, + uuid_t vol_uuid, + int exitStatus +); + +/* Routine kextmanager_unlock_volume */ +mig_internal novalue _Xkextmanager_unlock_volume + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientIdent; + /* end of the kernel processed data */ + NDR_record_t NDR; + uuid_t vol_uuid; + int exitStatus; + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_unlock_volume_t __Request; + typedef __Reply__kextmanager_unlock_volume_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_unlock_volume_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_unlock_volume_t__defined */ + + __DeclareRcvRpc(70008, "kextmanager_unlock_volume") + __BeforeRcvRpc(70008, "kextmanager_unlock_volume") + +#if defined(__MIG_check__Request__kextmanager_unlock_volume_t__defined) + check_result = __MIG_check__Request__kextmanager_unlock_volume_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_unlock_volume_t__defined) */ + + OutP->RetCode = _kextmanager_unlock_volume(In0P->Head.msgh_request_port, In0P->clientIdent.name, In0P->vol_uuid, In0P->exitStatus); + + OutP->NDR = NDR_record; + + + __AfterRcvRpc(70008, "kextmanager_unlock_volume") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_lock_kextload_t__defined) +#define __MIG_check__Request__kextmanager_lock_kextload_t__defined + +mig_internal kern_return_t __MIG_check__Request__kextmanager_lock_kextload_t(__Request__kextmanager_lock_kextload_t *In0P) +{ + + typedef __Request__kextmanager_lock_kextload_t __Request; +#if __MigTypeCheck + if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->msgh_body.msgh_descriptor_count != 1) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if __MigTypeCheck + if (In0P->clientPort.type != MACH_MSG_PORT_DESCRIPTOR || + In0P->clientPort.disposition != 17) + return MIG_TYPE_ERROR; +#endif /* __MigTypeCheck */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_lock_kextload_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_lock_kextload */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_lock_kextload +( + mach_port_t server, + mach_port_t clientPort, + int *lockstatus +); + +/* Routine kextmanager_lock_kextload */ +mig_internal novalue _Xkextmanager_lock_kextload + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientPort; + /* end of the kernel processed data */ + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_lock_kextload_t __Request; + typedef __Reply__kextmanager_lock_kextload_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_lock_kextload_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_lock_kextload_t__defined */ + + __DeclareRcvRpc(70009, "kextmanager_lock_kextload") + __BeforeRcvRpc(70009, "kextmanager_lock_kextload") + +#if defined(__MIG_check__Request__kextmanager_lock_kextload_t__defined) + check_result = __MIG_check__Request__kextmanager_lock_kextload_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_lock_kextload_t__defined) */ + + OutP->RetCode = _kextmanager_lock_kextload(In0P->Head.msgh_request_port, In0P->clientPort.name, &OutP->lockstatus); + if (OutP->RetCode != KERN_SUCCESS) { + MIG_RETURN_ERROR(OutP, OutP->RetCode); + } + + OutP->NDR = NDR_record; + + + OutP->Head.msgh_size = (mach_msg_size_t)(sizeof(Reply)); + __AfterRcvRpc(70009, "kextmanager_lock_kextload") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_unlock_kextload_t__defined) +#define __MIG_check__Request__kextmanager_unlock_kextload_t__defined + +mig_internal kern_return_t __MIG_check__Request__kextmanager_unlock_kextload_t(__Request__kextmanager_unlock_kextload_t *In0P) +{ + + typedef __Request__kextmanager_unlock_kextload_t __Request; +#if __MigTypeCheck + if (!(In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->msgh_body.msgh_descriptor_count != 1) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if __MigTypeCheck + if (In0P->clientPort.type != MACH_MSG_PORT_DESCRIPTOR || + In0P->clientPort.disposition != 17) + return MIG_TYPE_ERROR; +#endif /* __MigTypeCheck */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_unlock_kextload_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_unlock_kextload */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_unlock_kextload +( + mach_port_t server, + mach_port_t clientPort +); + +/* Routine kextmanager_unlock_kextload */ +mig_internal novalue _Xkextmanager_unlock_kextload + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientPort; + /* end of the kernel processed data */ + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_unlock_kextload_t __Request; + typedef __Reply__kextmanager_unlock_kextload_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_unlock_kextload_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_unlock_kextload_t__defined */ + + __DeclareRcvRpc(70010, "kextmanager_unlock_kextload") + __BeforeRcvRpc(70010, "kextmanager_unlock_kextload") + +#if defined(__MIG_check__Request__kextmanager_unlock_kextload_t__defined) + check_result = __MIG_check__Request__kextmanager_unlock_kextload_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_unlock_kextload_t__defined) */ + + OutP->RetCode = _kextmanager_unlock_kextload(In0P->Head.msgh_request_port, In0P->clientPort.name); + + OutP->NDR = NDR_record; + + + __AfterRcvRpc(70010, "kextmanager_unlock_kextload") +} + +#if (__MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Request__kextmanager_subsystem__ +#if !defined(__MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined) +#define __MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined +#ifndef __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#if defined(__NDR_convert__int_rep__kextmanager__kext_bundle_id_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__int_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kext_bundle_id_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__int_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__char__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__int_rep__kextmanager__char) +#elif defined(__NDR_convert__int_rep__char__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__int_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */ + +#ifndef __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#if defined(__NDR_convert__int_rep__kextmanager__posix_path_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__int_rep__kextmanager__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__int_rep__posix_path_t__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__int_rep__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__char__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__int_rep__kextmanager__char) +#elif defined(__NDR_convert__int_rep__char__defined) +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__int_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#if defined(__NDR_convert__char_rep__kextmanager__kext_bundle_id_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__char_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kext_bundle_id_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__char_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__char__defined) +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__char_rep__kextmanager__char) +#elif defined(__NDR_convert__char_rep__char__defined) +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__char_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */ + +#ifndef __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#if defined(__NDR_convert__char_rep__kextmanager__posix_path_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__char_rep__kextmanager__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__char_rep__posix_path_t__defined) +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__char_rep__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__char__defined) +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__char_rep__kextmanager__char) +#elif defined(__NDR_convert__char_rep__char__defined) +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__char_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#if defined(__NDR_convert__float_rep__kextmanager__kext_bundle_id_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__float_rep__kextmanager__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kext_bundle_id_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__float_rep__kext_bundle_id_t((kext_bundle_id_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__char__defined) +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__float_rep__kextmanager__char) +#elif defined(__NDR_convert__float_rep__char__defined) +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 64, __NDR_convert__float_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */ + +#ifndef __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#if defined(__NDR_convert__float_rep__kextmanager__posix_path_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__float_rep__kextmanager__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__float_rep__posix_path_t__defined) +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__float_rep__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__char__defined) +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__float_rep__kextmanager__char) +#elif defined(__NDR_convert__float_rep__char__defined) +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined +#define __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__float_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */ + + +mig_internal kern_return_t __MIG_check__Request__kextmanager_record_path_for_bundle_id_t(__Request__kextmanager_record_path_for_bundle_id_t *In0P) +{ + + typedef __Request__kextmanager_record_path_for_bundle_id_t __Request; +#if __MigTypeCheck + if ((In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (In0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Request))) + return MIG_BAD_ARGUMENTS; +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined) || \ + defined(__NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined) + if (In0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined) + __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */ +#if defined(__NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined) + __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path(&In0P->path, In0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if defined(__NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined) || \ + defined(__NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined) + if (In0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined) + __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */ +#if defined(__NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined) + __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path(&In0P->path, In0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if defined(__NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined) || \ + defined(__NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined) + if (In0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined) + __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id(&In0P->bundle_id, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__bundle_id__defined */ +#if defined(__NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined) + __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path(&In0P->path, In0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Request__kextmanager_record_path_for_bundle_id_t__path__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined) */ +#endif /* __MIG_check__Request__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_record_path_for_bundle_id */ +#ifdef mig_external +mig_external +#else +extern +#endif /* mig_external */ +kern_return_t _kextmanager_record_path_for_bundle_id +( + mach_port_t server, + kext_bundle_id_t bundle_id, + posix_path_t path +); + +/* Routine kextmanager_record_path_for_bundle_id */ +mig_internal novalue _Xkextmanager_record_path_for_bundle_id + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kext_bundle_id_t bundle_id; + posix_path_t path; + mach_msg_trailer_t trailer; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + typedef __Request__kextmanager_record_path_for_bundle_id_t __Request; + typedef __Reply__kextmanager_record_path_for_bundle_id_t Reply; + + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + Request *In0P = (Request *) InHeadP; + Reply *OutP = (Reply *) OutHeadP; +#ifdef __MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined */ + + __DeclareRcvRpc(70011, "kextmanager_record_path_for_bundle_id") + __BeforeRcvRpc(70011, "kextmanager_record_path_for_bundle_id") + +#if defined(__MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined) + check_result = __MIG_check__Request__kextmanager_record_path_for_bundle_id_t((__Request *)In0P); + if (check_result != MACH_MSG_SUCCESS) + { MIG_RETURN_ERROR(OutP, check_result); } +#endif /* defined(__MIG_check__Request__kextmanager_record_path_for_bundle_id_t__defined) */ + + OutP->RetCode = _kextmanager_record_path_for_bundle_id(In0P->Head.msgh_request_port, In0P->bundle_id, In0P->path); + + OutP->NDR = NDR_record; + + + __AfterRcvRpc(70011, "kextmanager_record_path_for_bundle_id") +} + + +extern boolean_t kextmanager_server( + mach_msg_header_t *InHeadP, + mach_msg_header_t *OutHeadP); + +extern mig_routine_t kextmanager_server_routine( + mach_msg_header_t *InHeadP); + + +/* Description of this subsystem, for use in direct RPC */ +const struct _kextmanager_subsystem { + mig_server_routine_t server; /* Server routine */ + mach_msg_id_t start; /* Min routine number */ + mach_msg_id_t end; /* Max routine number + 1 */ + unsigned int maxsize; /* Max msg size */ + vm_address_t reserved; /* Reserved */ + struct routine_descriptor /*Array of routine descriptors */ + routine[12]; +} _kextmanager_subsystem = { + kextmanager_server_routine, + 70000, + 70012, + (mach_msg_size_t)sizeof(union __ReplyUnion___kextmanager_subsystem), + (vm_address_t)0, + { + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_path_for_bundle_id, 4, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_path_for_bundle_id_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_create_property_value_array, 4, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_create_property_value_array_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_user_did_log_in, 10, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_user_did_log_in_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_user_will_log_out, 2, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_user_will_log_out_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_get_logged_in_userid, 2, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_get_logged_in_userid_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_record_nonsecure_kextload, 3, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_record_nonsecure_kextload_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_lock_reboot, 6, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_lock_reboot_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_lock_volume, 6, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_lock_volume_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_unlock_volume, 4, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_unlock_volume_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_lock_kextload, 3, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_lock_kextload_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_unlock_kextload, 2, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_unlock_kextload_t)}, + { (mig_impl_routine_t) 0, + (mig_stub_routine_t) _Xkextmanager_record_path_for_bundle_id, 3, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__kextmanager_record_path_for_bundle_id_t)}, + } +}; + +mig_external boolean_t kextmanager_server + (mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP) +{ + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + register mig_routine_t routine; + + OutHeadP->msgh_bits = MACH_MSGH_BITS(MACH_MSGH_BITS_REPLY(InHeadP->msgh_bits), 0); + OutHeadP->msgh_remote_port = InHeadP->msgh_reply_port; + /* Minimal size: routine() will update it if different */ + OutHeadP->msgh_size = (mach_msg_size_t)sizeof(mig_reply_error_t); + OutHeadP->msgh_local_port = MACH_PORT_NULL; + OutHeadP->msgh_id = InHeadP->msgh_id + 100; + + if ((InHeadP->msgh_id > 70011) || (InHeadP->msgh_id < 70000) || + ((routine = _kextmanager_subsystem.routine[InHeadP->msgh_id - 70000].stub_routine) == 0)) { + ((mig_reply_error_t *)OutHeadP)->NDR = NDR_record; + ((mig_reply_error_t *)OutHeadP)->RetCode = MIG_BAD_ID; + return FALSE; + } + (*routine) (InHeadP, OutHeadP); + return TRUE; +} + +mig_external mig_routine_t kextmanager_server_routine + (mach_msg_header_t *InHeadP) +{ + register int msgh_id; + + msgh_id = InHeadP->msgh_id - 70000; + + if ((msgh_id > 11) || (msgh_id < 0)) + return 0; + + return _kextmanager_subsystem.routine[msgh_id].stub_routine; +} diff --git a/data/system-cmds/kextmanagerUser.c b/data/system-cmds/kextmanagerUser.c new file mode 100644 index 000000000..13dc65461 --- /dev/null +++ b/data/system-cmds/kextmanagerUser.c @@ -0,0 +1,2844 @@ +/* + * IDENTIFICATION: + * stub generated Mon Dec 31 12:08:43 2007 + * with a MiG generated Mon Sep 11 19:11:05 PDT 2006 by root@b09.apple.com + * OPTIONS: + */ +#define __MIG_check__Reply__kextmanager_subsystem__ 1 +#define __NDR_convert__Reply__kextmanager_subsystem__ 1 +#define __NDR_convert__mig_reply_error_subsystem__ 1 + +#include "kextmanager.h" + + +#ifndef mig_internal +#define mig_internal static __inline__ +#endif /* mig_internal */ + +#ifndef mig_external +#define mig_external +#endif /* mig_external */ + +#if !defined(__MigTypeCheck) && defined(TypeCheck) +#define __MigTypeCheck TypeCheck /* Legacy setting */ +#endif /* !defined(__MigTypeCheck) */ + +#if !defined(__MigKernelSpecificCode) && defined(_MIG_KERNEL_SPECIFIC_CODE_) +#define __MigKernelSpecificCode _MIG_KERNEL_SPECIFIC_CODE_ /* Legacy setting */ +#endif /* !defined(__MigKernelSpecificCode) */ + +#ifndef LimitCheck +#define LimitCheck 0 +#endif /* LimitCheck */ + +#ifndef min +#define min(a,b) ( ((a) < (b))? (a): (b) ) +#endif /* min */ + +#if !defined(_WALIGN_) +#define _WALIGN_(x) (((x) + 3) & ~3) +#endif /* !defined(_WALIGN_) */ + +#if !defined(_WALIGNSZ_) +#define _WALIGNSZ_(x) _WALIGN_(sizeof(x)) +#endif /* !defined(_WALIGNSZ_) */ + +#ifndef UseStaticTemplates +#define UseStaticTemplates 0 +#endif /* UseStaticTemplates */ + +#ifndef __MachMsgErrorWithTimeout +#define __MachMsgErrorWithTimeout(_R_) { \ + switch (_R_) { \ + case MACH_SEND_INVALID_REPLY: \ + case MACH_RCV_INVALID_NAME: \ + case MACH_RCV_PORT_DIED: \ + case MACH_RCV_PORT_CHANGED: \ + case MACH_RCV_TIMED_OUT: \ + mig_dealloc_reply_port(InP->Head.msgh_reply_port); \ + break; \ + default: \ + mig_put_reply_port(InP->Head.msgh_reply_port); \ + } \ +} +#endif /* __MachMsgErrorWithTimeout */ + +#ifndef __MachMsgErrorWithoutTimeout +#define __MachMsgErrorWithoutTimeout(_R_) { \ + switch (_R_) { \ + case MACH_SEND_INVALID_REPLY: \ + case MACH_RCV_INVALID_NAME: \ + case MACH_RCV_PORT_DIED: \ + case MACH_RCV_PORT_CHANGED: \ + mig_dealloc_reply_port(InP->Head.msgh_reply_port); \ + break; \ + default: \ + mig_put_reply_port(InP->Head.msgh_reply_port); \ + } \ +} +#endif /* __MachMsgErrorWithoutTimeout */ + +#ifndef __DeclareSendRpc +#define __DeclareSendRpc(_NUM_, _NAME_) +#endif /* __DeclareSendRpc */ + +#ifndef __BeforeSendRpc +#define __BeforeSendRpc(_NUM_, _NAME_) +#endif /* __BeforeSendRpc */ + +#ifndef __AfterSendRpc +#define __AfterSendRpc(_NUM_, _NAME_) +#endif /* __AfterSendRpc */ + +#ifndef __DeclareSendSimple +#define __DeclareSendSimple(_NUM_, _NAME_) +#endif /* __DeclareSendSimple */ + +#ifndef __BeforeSendSimple +#define __BeforeSendSimple(_NUM_, _NAME_) +#endif /* __BeforeSendSimple */ + +#ifndef __AfterSendSimple +#define __AfterSendSimple(_NUM_, _NAME_) +#endif /* __AfterSendSimple */ + +#define msgh_request_port msgh_remote_port +#define msgh_reply_port msgh_local_port + + + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined) +#define __MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined */ + + +#ifndef __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#if defined(__NDR_convert__int_rep__kextmanager__posix_path_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__int_rep__kextmanager__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__int_rep__posix_path_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__int_rep__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__char__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__int_rep__kextmanager__char) +#elif defined(__NDR_convert__int_rep__char__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__int_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */ + + +#ifndef __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#if defined(__NDR_convert__int_rep__kextmanager__kext_result_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__int_rep__kextmanager__kext_result_t((kext_result_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kext_result_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__int_rep__kext_result_t((kext_result_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__int__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__int_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__int__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__int_rep__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__int_rep__int32_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__int_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */ + + + +#ifndef __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#if defined(__NDR_convert__char_rep__kextmanager__posix_path_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__char_rep__kextmanager__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__char_rep__posix_path_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__char_rep__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__char__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__char_rep__kextmanager__char) +#elif defined(__NDR_convert__char_rep__char__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__char_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */ + + +#ifndef __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#if defined(__NDR_convert__char_rep__kextmanager__kext_result_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__char_rep__kextmanager__kext_result_t((kext_result_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kext_result_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__char_rep__kext_result_t((kext_result_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__int__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__char_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__int__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__char_rep__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__char_rep__int32_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__char_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */ + + + +#ifndef __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#if defined(__NDR_convert__float_rep__kextmanager__posix_path_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__float_rep__kextmanager__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__float_rep__posix_path_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__float_rep__posix_path_t((posix_path_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__char__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__float_rep__kextmanager__char) +#elif defined(__NDR_convert__float_rep__char__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 1024, __NDR_convert__float_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */ + + +#ifndef __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#if defined(__NDR_convert__float_rep__kextmanager__kext_result_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__float_rep__kextmanager__kext_result_t((kext_result_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kext_result_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__float_rep__kext_result_t((kext_result_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__int__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__float_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__int__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__float_rep__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__float_rep__int32_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined +#define __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(a, f) \ + __NDR_convert__float_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */ + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_path_for_bundle_id_t(__Reply__kextmanager_path_for_bundle_id_t *Out0P) +{ + + typedef __Reply__kextmanager_path_for_bundle_id_t __Reply; +#if __MigTypeCheck + unsigned int msgh_size; +#endif /* __MigTypeCheck */ + if (Out0P->Head.msgh_id != 70100) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + msgh_size = Out0P->Head.msgh_size; + + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) && + (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) || + Out0P->RetCode == KERN_SUCCESS))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + + if (Out0P->RetCode != KERN_SUCCESS) { +#ifdef __NDR_convert__mig_reply_error_t__defined + __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P); +#endif /* __NDR_convert__mig_reply_error_t__defined */ + return ((mig_reply_error_t *)Out0P)->RetCode; + } + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined) || \ + defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined) || \ + defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined) + __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__RetCode__defined */ +#if defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined) + __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path(&Out0P->path, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */ +#if defined(__NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined) + __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(&Out0P->kext_result, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if 0 || \ + defined(__NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined) || \ + defined(__NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined) + if (Out0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined) + __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path(&Out0P->path, Out0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */ +#if defined(__NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined) + __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(&Out0P->kext_result, Out0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if 0 || \ + defined(__NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined) || \ + defined(__NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined) + if (Out0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined) + __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path(&Out0P->path, Out0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__path__defined */ +#if defined(__NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined) + __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result(&Out0P->kext_result, Out0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Reply__kextmanager_path_for_bundle_id_t__kext_result__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_path_for_bundle_id */ +mig_external kern_return_t kextmanager_path_for_bundle_id +( + mach_port_t server, + kext_bundle_id_t bundle_id, + posix_path_t path, + kext_result_t *kext_result +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kext_bundle_id_t bundle_id; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + posix_path_t path; + kext_result_t kext_result; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + posix_path_t path; + kext_result_t kext_result; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined */ + + __DeclareSendRpc(70000, "kextmanager_path_for_bundle_id") + + InP->NDR = NDR_record; + + { typedef struct { char data[64]; } *sp; + * (sp) InP->bundle_id = * (sp) bundle_id; + } + + InP->Head.msgh_bits = + MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70000; + + __BeforeSendRpc(70000, "kextmanager_path_for_bundle_id") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70000, "kextmanager_path_for_bundle_id") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined) + check_result = __MIG_check__Reply__kextmanager_path_for_bundle_id_t((__Reply__kextmanager_path_for_bundle_id_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_path_for_bundle_id_t__defined) */ + + { typedef struct { char data[1024]; } *sp; + * (sp) path = * (sp) Out0P->path; + } + + *kext_result = Out0P->kext_result; + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_create_property_value_array_t__defined) +#define __MIG_check__Reply__kextmanager_create_property_value_array_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined +#if defined(__NDR_convert__int_rep__kextmanager__xmlDataOut_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined +#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \ + __NDR_convert__int_rep__kextmanager__xmlDataOut_t((xmlDataOut_t *)(a), f, c) +#elif defined(__NDR_convert__int_rep__xmlDataOut_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined +#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \ + __NDR_convert__int_rep__xmlDataOut_t((xmlDataOut_t *)(a), f, c) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined */ + + +#ifndef __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined +#if defined(__NDR_convert__int_rep__kextmanager__mach_msg_type_number_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined +#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt(a, f) \ + __NDR_convert__int_rep__kextmanager__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f) +#elif defined(__NDR_convert__int_rep__mach_msg_type_number_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined +#define __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt(a, f) \ + __NDR_convert__int_rep__mach_msg_type_number_t((mach_msg_type_number_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined */ + + +#ifndef __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined +#if defined(__NDR_convert__char_rep__kextmanager__xmlDataOut_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined +#define __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \ + __NDR_convert__char_rep__kextmanager__xmlDataOut_t((xmlDataOut_t *)(a), f, c) +#elif defined(__NDR_convert__char_rep__xmlDataOut_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined +#define __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \ + __NDR_convert__char_rep__xmlDataOut_t((xmlDataOut_t *)(a), f, c) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined */ + + + +#ifndef __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined +#if defined(__NDR_convert__float_rep__kextmanager__xmlDataOut_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined +#define __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \ + __NDR_convert__float_rep__kextmanager__xmlDataOut_t((xmlDataOut_t *)(a), f, c) +#elif defined(__NDR_convert__float_rep__xmlDataOut_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined +#define __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data(a, f, c) \ + __NDR_convert__float_rep__xmlDataOut_t((xmlDataOut_t *)(a), f, c) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined */ + + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_create_property_value_array_t(__Reply__kextmanager_create_property_value_array_t *Out0P) +{ + + typedef __Reply__kextmanager_create_property_value_array_t __Reply; + boolean_t msgh_simple; +#if __MigTypeCheck + unsigned int msgh_size; +#endif /* __MigTypeCheck */ + if (Out0P->Head.msgh_id != 70101) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + + msgh_simple = !(Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX); +#if __MigTypeCheck + msgh_size = Out0P->Head.msgh_size; + + if ((msgh_simple || Out0P->msgh_body.msgh_descriptor_count != 1 || + msgh_size != (mach_msg_size_t)sizeof(__Reply)) && + (!msgh_simple || msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) || + ((mig_reply_error_t *)Out0P)->RetCode == KERN_SUCCESS)) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + + if (msgh_simple) { +#ifdef __NDR_convert__mig_reply_error_t__defined + __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P); +#endif /* __NDR_convert__mig_reply_error_t__defined */ + return ((mig_reply_error_t *)Out0P)->RetCode; + } + +#if __MigTypeCheck + if (Out0P->data.type != MACH_MSG_OOL_DESCRIPTOR) + { return MIG_TYPE_ERROR; } +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined) || \ + defined(__NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined) + __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt(&Out0P->dataCnt, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__dataCnt__defined */ +#if defined(__NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined) + __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data((xmlDataOut_t)(Out0P->data.address), Out0P->NDR.int_rep, Out0P->dataCnt); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_create_property_value_array_t__data__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if defined(__NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined) || \ + 0 + if (Out0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined) + __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data((xmlDataOut_t)(Out0P->data.address), Out0P->NDR.char_rep, Out0P->dataCnt); +#endif /* __NDR_convert__char_rep__Reply__kextmanager_create_property_value_array_t__data__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if defined(__NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined) || \ + 0 + if (Out0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined) + __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data((xmlDataOut_t)(Out0P->data.address), Out0P->NDR.float_rep, Out0P->dataCnt); +#endif /* __NDR_convert__float_rep__Reply__kextmanager_create_property_value_array_t__data__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Reply__kextmanager_create_property_value_array_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_create_property_value_array */ +mig_external kern_return_t kextmanager_create_property_value_array +( + mach_port_t server, + property_key_t prop_key, + xmlDataOut_t *data, + mach_msg_type_number_t *dataCnt +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + property_key_t prop_key; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_ool_descriptor_t data; + /* end of the kernel processed data */ + NDR_record_t NDR; + mach_msg_type_number_t dataCnt; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_ool_descriptor_t data; + /* end of the kernel processed data */ + NDR_record_t NDR; + mach_msg_type_number_t dataCnt; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_create_property_value_array_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_create_property_value_array_t__defined */ + + __DeclareSendRpc(70001, "kextmanager_create_property_value_array") + + InP->NDR = NDR_record; + + { typedef struct { char data[128]; } *sp; + * (sp) InP->prop_key = * (sp) prop_key; + } + + InP->Head.msgh_bits = + MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70001; + + __BeforeSendRpc(70001, "kextmanager_create_property_value_array") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70001, "kextmanager_create_property_value_array") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_create_property_value_array_t__defined) + check_result = __MIG_check__Reply__kextmanager_create_property_value_array_t((__Reply__kextmanager_create_property_value_array_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_create_property_value_array_t__defined) */ + + *data = (xmlDataOut_t)(Out0P->data.address); + *dataCnt = Out0P->dataCnt; + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_user_did_log_in_t__defined) +#define __MIG_check__Reply__kextmanager_user_did_log_in_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined */ + + + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_user_did_log_in_t(__Reply__kextmanager_user_did_log_in_t *Out0P) +{ + + typedef __Reply__kextmanager_user_did_log_in_t __Reply; + if (Out0P->Head.msgh_id != 70102) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) + __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_user_did_log_in_t__RetCode__defined */ + { return Out0P->RetCode; + } +} +#endif /* !defined(__MIG_check__Reply__kextmanager_user_did_log_in_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_user_did_log_in */ +mig_external kern_return_t kextmanager_user_did_log_in +( + mach_port_t server, + uint32_t euid, + AuthorizationExternalForm authref +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + uint32_t euid; + AuthorizationExternalForm authref; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_user_did_log_in_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_user_did_log_in_t__defined */ + + __DeclareSendRpc(70002, "kextmanager_user_did_log_in") + + InP->NDR = NDR_record; + + InP->euid = euid; + + InP->authref = authref; + + InP->Head.msgh_bits = + MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70002; + + __BeforeSendRpc(70002, "kextmanager_user_did_log_in") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70002, "kextmanager_user_did_log_in") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_user_did_log_in_t__defined) + check_result = __MIG_check__Reply__kextmanager_user_did_log_in_t((__Reply__kextmanager_user_did_log_in_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_user_did_log_in_t__defined) */ + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_user_will_log_out_t__defined) +#define __MIG_check__Reply__kextmanager_user_will_log_out_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined */ + + + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_user_will_log_out_t(__Reply__kextmanager_user_will_log_out_t *Out0P) +{ + + typedef __Reply__kextmanager_user_will_log_out_t __Reply; + if (Out0P->Head.msgh_id != 70103) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) + __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_user_will_log_out_t__RetCode__defined */ + { return Out0P->RetCode; + } +} +#endif /* !defined(__MIG_check__Reply__kextmanager_user_will_log_out_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_user_will_log_out */ +mig_external kern_return_t kextmanager_user_will_log_out +( + mach_port_t server, + uint32_t euid +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + uint32_t euid; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_user_will_log_out_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_user_will_log_out_t__defined */ + + __DeclareSendRpc(70003, "kextmanager_user_will_log_out") + + InP->NDR = NDR_record; + + InP->euid = euid; + + InP->Head.msgh_bits = + MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70003; + + __BeforeSendRpc(70003, "kextmanager_user_will_log_out") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70003, "kextmanager_user_will_log_out") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_user_will_log_out_t__defined) + check_result = __MIG_check__Reply__kextmanager_user_will_log_out_t((__Reply__kextmanager_user_will_log_out_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_user_will_log_out_t__defined) */ + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined) +#define __MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined */ + + +#ifndef __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined +#if defined(__NDR_convert__int_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined +#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \ + __NDR_convert__int_rep__kextmanager__uint32_t((uint32_t *)(a), f) +#elif defined(__NDR_convert__int_rep__uint32_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined +#define __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \ + __NDR_convert__int_rep__uint32_t((uint32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */ + + + +#ifndef __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined +#if defined(__NDR_convert__char_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined +#define __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \ + __NDR_convert__char_rep__kextmanager__uint32_t((uint32_t *)(a), f) +#elif defined(__NDR_convert__char_rep__uint32_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined +#define __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \ + __NDR_convert__char_rep__uint32_t((uint32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */ + + + +#ifndef __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined +#if defined(__NDR_convert__float_rep__kextmanager__uint32_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined +#define __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \ + __NDR_convert__float_rep__kextmanager__uint32_t((uint32_t *)(a), f) +#elif defined(__NDR_convert__float_rep__uint32_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined +#define __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid(a, f) \ + __NDR_convert__float_rep__uint32_t((uint32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */ + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_get_logged_in_userid_t(__Reply__kextmanager_get_logged_in_userid_t *Out0P) +{ + + typedef __Reply__kextmanager_get_logged_in_userid_t __Reply; +#if __MigTypeCheck + unsigned int msgh_size; +#endif /* __MigTypeCheck */ + if (Out0P->Head.msgh_id != 70104) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + msgh_size = Out0P->Head.msgh_size; + + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) && + (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) || + Out0P->RetCode == KERN_SUCCESS))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + + if (Out0P->RetCode != KERN_SUCCESS) { +#ifdef __NDR_convert__mig_reply_error_t__defined + __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P); +#endif /* __NDR_convert__mig_reply_error_t__defined */ + return ((mig_reply_error_t *)Out0P)->RetCode; + } + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined) || \ + defined(__NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined) + __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__RetCode__defined */ +#if defined(__NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined) + __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid(&Out0P->euid, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if 0 || \ + defined(__NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined) + if (Out0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined) + __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid(&Out0P->euid, Out0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if 0 || \ + defined(__NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined) + if (Out0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined) + __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid(&Out0P->euid, Out0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Reply__kextmanager_get_logged_in_userid_t__euid__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_get_logged_in_userid */ +mig_external kern_return_t kextmanager_get_logged_in_userid +( + mach_port_t server, + uint32_t *euid +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + uint32_t euid; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + uint32_t euid; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined */ + + __DeclareSendRpc(70004, "kextmanager_get_logged_in_userid") + + InP->Head.msgh_bits = + MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70004; + + __BeforeSendRpc(70004, "kextmanager_get_logged_in_userid") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70004, "kextmanager_get_logged_in_userid") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined) + check_result = __MIG_check__Reply__kextmanager_get_logged_in_userid_t((__Reply__kextmanager_get_logged_in_userid_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_get_logged_in_userid_t__defined) */ + + *euid = Out0P->euid; + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined) +#define __MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined */ + + + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_record_nonsecure_kextload_t(__Reply__kextmanager_record_nonsecure_kextload_t *Out0P) +{ + + typedef __Reply__kextmanager_record_nonsecure_kextload_t __Reply; + if (Out0P->Head.msgh_id != 70105) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) + __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_record_nonsecure_kextload_t__RetCode__defined */ + { return Out0P->RetCode; + } +} +#endif /* !defined(__MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_record_nonsecure_kextload */ +mig_external kern_return_t kextmanager_record_nonsecure_kextload +( + mach_port_t server, + xmlDataIn_t load_data, + mach_msg_type_number_t load_dataCnt +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_ool_descriptor_t load_data; + /* end of the kernel processed data */ + NDR_record_t NDR; + mach_msg_type_number_t load_dataCnt; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined */ + + __DeclareSendRpc(70005, "kextmanager_record_nonsecure_kextload") + +#if UseStaticTemplates + const static mach_msg_ool_descriptor_t load_dataTemplate = { + /* addr = */ (void *)0, + /* size = */ 0, + /* deal = */ FALSE, + /* copy = */ MACH_MSG_VIRTUAL_COPY, + /* pad2 = */ 0, + /* type = */ MACH_MSG_OOL_DESCRIPTOR, + }; +#endif /* UseStaticTemplates */ + + InP->msgh_body.msgh_descriptor_count = 1; +#if UseStaticTemplates + InP->load_data = load_dataTemplate; + InP->load_data.address = (void *)(load_data); + InP->load_data.size = load_dataCnt; +#else /* UseStaticTemplates */ + InP->load_data.address = (void *)(load_data); + InP->load_data.size = load_dataCnt; + InP->load_data.deallocate = FALSE; + InP->load_data.copy = MACH_MSG_VIRTUAL_COPY; + InP->load_data.type = MACH_MSG_OOL_DESCRIPTOR; +#endif /* UseStaticTemplates */ + + InP->NDR = NDR_record; + + InP->load_dataCnt = load_dataCnt; + + InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX| + MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70005; + + __BeforeSendRpc(70005, "kextmanager_record_nonsecure_kextload") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70005, "kextmanager_record_nonsecure_kextload") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined) + check_result = __MIG_check__Reply__kextmanager_record_nonsecure_kextload_t((__Reply__kextmanager_record_nonsecure_kextload_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_record_nonsecure_kextload_t__defined) */ + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_lock_reboot_t__defined) +#define __MIG_check__Reply__kextmanager_lock_reboot_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined */ + + +#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#if defined(__NDR_convert__int_rep__kextmanager__mountpoint_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__int_rep__kextmanager__mountpoint_t((mountpoint_t *)(a), f) +#elif defined(__NDR_convert__int_rep__mountpoint_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__int_rep__mountpoint_t((mountpoint_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__char__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__int_rep__kextmanager__char) +#elif defined(__NDR_convert__int_rep__char__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__int_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */ + + +#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#if defined(__NDR_convert__int_rep__kextmanager__int__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__int_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__int__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__int_rep__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__int_rep__int32_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__int_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */ + + + +#ifndef __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#if defined(__NDR_convert__char_rep__kextmanager__mountpoint_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__char_rep__kextmanager__mountpoint_t((mountpoint_t *)(a), f) +#elif defined(__NDR_convert__char_rep__mountpoint_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__char_rep__mountpoint_t((mountpoint_t *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__char__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__char_rep__kextmanager__char) +#elif defined(__NDR_convert__char_rep__char__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__char_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */ + + +#ifndef __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#if defined(__NDR_convert__char_rep__kextmanager__int__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__char_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__int__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__char_rep__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__char_rep__int32_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__char_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */ + + + +#ifndef __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#if defined(__NDR_convert__float_rep__kextmanager__mountpoint_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__float_rep__kextmanager__mountpoint_t((mountpoint_t *)(a), f) +#elif defined(__NDR_convert__float_rep__mountpoint_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__float_rep__mountpoint_t((mountpoint_t *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__char__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__float_rep__kextmanager__char) +#elif defined(__NDR_convert__float_rep__char__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol(a, f) \ + __NDR_convert__ARRAY((char *)(a), f, 90, __NDR_convert__float_rep__char) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */ + + +#ifndef __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#if defined(__NDR_convert__float_rep__kextmanager__int__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__float_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__int__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__float_rep__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__float_rep__int32_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus(a, f) \ + __NDR_convert__float_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */ + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_lock_reboot_t(__Reply__kextmanager_lock_reboot_t *Out0P) +{ + + typedef __Reply__kextmanager_lock_reboot_t __Reply; +#if __MigTypeCheck + unsigned int msgh_size; +#endif /* __MigTypeCheck */ + if (Out0P->Head.msgh_id != 70106) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + msgh_size = Out0P->Head.msgh_size; + + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) && + (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) || + Out0P->RetCode == KERN_SUCCESS))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + + if (Out0P->RetCode != KERN_SUCCESS) { +#ifdef __NDR_convert__mig_reply_error_t__defined + __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P); +#endif /* __NDR_convert__mig_reply_error_t__defined */ + return ((mig_reply_error_t *)Out0P)->RetCode; + } + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined) || \ + defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined) || \ + defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined) + __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__RetCode__defined */ +#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined) + __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol(&Out0P->busyVol, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */ +#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined) + __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus(&Out0P->busyStatus, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if 0 || \ + defined(__NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined) || \ + defined(__NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined) + if (Out0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined) + __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol(&Out0P->busyVol, Out0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */ +#if defined(__NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined) + __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus(&Out0P->busyStatus, Out0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if 0 || \ + defined(__NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined) || \ + defined(__NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined) + if (Out0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined) + __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol(&Out0P->busyVol, Out0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyVol__defined */ +#if defined(__NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined) + __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus(&Out0P->busyStatus, Out0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_reboot_t__busyStatus__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Reply__kextmanager_lock_reboot_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_lock_reboot */ +mig_external kern_return_t kextmanager_lock_reboot +( + mach_port_t server, + mach_port_t reaper, + int waitForLock, + mountpoint_t busyVol, + int *busyStatus +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t reaper; + /* end of the kernel processed data */ + NDR_record_t NDR; + int waitForLock; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + mountpoint_t busyVol; + char busyVolPad[2]; + int busyStatus; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + mountpoint_t busyVol; + char busyVolPad[2]; + int busyStatus; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_lock_reboot_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_lock_reboot_t__defined */ + + __DeclareSendRpc(70006, "kextmanager_lock_reboot") + +#if UseStaticTemplates + const static mach_msg_port_descriptor_t reaperTemplate = { + /* name = */ MACH_PORT_NULL, + /* pad1 = */ 0, + /* pad2 = */ 0, + /* disp = */ 20, + /* type = */ MACH_MSG_PORT_DESCRIPTOR, + }; +#endif /* UseStaticTemplates */ + + InP->msgh_body.msgh_descriptor_count = 1; +#if UseStaticTemplates + InP->reaper = reaperTemplate; + InP->reaper.name = reaper; +#else /* UseStaticTemplates */ + InP->reaper.name = reaper; + InP->reaper.disposition = 20; + InP->reaper.type = MACH_MSG_PORT_DESCRIPTOR; +#endif /* UseStaticTemplates */ + + InP->NDR = NDR_record; + + InP->waitForLock = waitForLock; + + InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX| + MACH_MSGH_BITS(19, 21); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70006; + + __BeforeSendRpc(70006, "kextmanager_lock_reboot") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70006, "kextmanager_lock_reboot") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_lock_reboot_t__defined) + check_result = __MIG_check__Reply__kextmanager_lock_reboot_t((__Reply__kextmanager_lock_reboot_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_lock_reboot_t__defined) */ + + { typedef struct { char data[90]; } *sp; + * (sp) busyVol = * (sp) Out0P->busyVol; + } + + *busyStatus = Out0P->busyStatus; + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_lock_volume_t__defined) +#define __MIG_check__Reply__kextmanager_lock_volume_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined */ + + +#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#if defined(__NDR_convert__int_rep__kextmanager__int__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__int_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__int__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__int_rep__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__int_rep__int32_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__int_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */ + + + +#ifndef __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#if defined(__NDR_convert__char_rep__kextmanager__int__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__char_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__int__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__char_rep__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__char_rep__int32_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__char_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */ + + + +#ifndef __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#if defined(__NDR_convert__float_rep__kextmanager__int__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__float_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__int__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__float_rep__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__float_rep__int32_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus(a, f) \ + __NDR_convert__float_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */ + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_lock_volume_t(__Reply__kextmanager_lock_volume_t *Out0P) +{ + + typedef __Reply__kextmanager_lock_volume_t __Reply; +#if __MigTypeCheck + unsigned int msgh_size; +#endif /* __MigTypeCheck */ + if (Out0P->Head.msgh_id != 70107) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + msgh_size = Out0P->Head.msgh_size; + + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) && + (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) || + Out0P->RetCode == KERN_SUCCESS))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + + if (Out0P->RetCode != KERN_SUCCESS) { +#ifdef __NDR_convert__mig_reply_error_t__defined + __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P); +#endif /* __NDR_convert__mig_reply_error_t__defined */ + return ((mig_reply_error_t *)Out0P)->RetCode; + } + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined) || \ + defined(__NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined) + __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__RetCode__defined */ +#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined) + __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus(&Out0P->lockStatus, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if 0 || \ + defined(__NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined) + if (Out0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined) + __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus(&Out0P->lockStatus, Out0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if 0 || \ + defined(__NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined) + if (Out0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined) + __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus(&Out0P->lockStatus, Out0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_volume_t__lockStatus__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Reply__kextmanager_lock_volume_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_lock_volume */ +mig_external kern_return_t kextmanager_lock_volume +( + mach_port_t server, + mach_port_t reaper, + uuid_t vol_uuid, + int waitForLock, + int *lockStatus +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t reaper; + /* end of the kernel processed data */ + NDR_record_t NDR; + uuid_t vol_uuid; + int waitForLock; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + int lockStatus; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + int lockStatus; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_lock_volume_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_lock_volume_t__defined */ + + __DeclareSendRpc(70007, "kextmanager_lock_volume") + +#if UseStaticTemplates + const static mach_msg_port_descriptor_t reaperTemplate = { + /* name = */ MACH_PORT_NULL, + /* pad1 = */ 0, + /* pad2 = */ 0, + /* disp = */ 20, + /* type = */ MACH_MSG_PORT_DESCRIPTOR, + }; +#endif /* UseStaticTemplates */ + + InP->msgh_body.msgh_descriptor_count = 1; +#if UseStaticTemplates + InP->reaper = reaperTemplate; + InP->reaper.name = reaper; +#else /* UseStaticTemplates */ + InP->reaper.name = reaper; + InP->reaper.disposition = 20; + InP->reaper.type = MACH_MSG_PORT_DESCRIPTOR; +#endif /* UseStaticTemplates */ + + InP->NDR = NDR_record; + + { typedef struct { char data[16]; } *sp; + * (sp) InP->vol_uuid = * (sp) vol_uuid; + } + + InP->waitForLock = waitForLock; + + InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX| + MACH_MSGH_BITS(19, 21); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70007; + + __BeforeSendRpc(70007, "kextmanager_lock_volume") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70007, "kextmanager_lock_volume") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_lock_volume_t__defined) + check_result = __MIG_check__Reply__kextmanager_lock_volume_t((__Reply__kextmanager_lock_volume_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_lock_volume_t__defined) */ + + *lockStatus = Out0P->lockStatus; + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_unlock_volume_t__defined) +#define __MIG_check__Reply__kextmanager_unlock_volume_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined */ + + + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_unlock_volume_t(__Reply__kextmanager_unlock_volume_t *Out0P) +{ + + typedef __Reply__kextmanager_unlock_volume_t __Reply; + if (Out0P->Head.msgh_id != 70108) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) + __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_unlock_volume_t__RetCode__defined */ + { return Out0P->RetCode; + } +} +#endif /* !defined(__MIG_check__Reply__kextmanager_unlock_volume_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_unlock_volume */ +mig_external kern_return_t kextmanager_unlock_volume +( + mach_port_t server, + mach_port_t clientIdent, + uuid_t vol_uuid, + int exitStatus +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientIdent; + /* end of the kernel processed data */ + NDR_record_t NDR; + uuid_t vol_uuid; + int exitStatus; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_unlock_volume_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_unlock_volume_t__defined */ + + __DeclareSendRpc(70008, "kextmanager_unlock_volume") + +#if UseStaticTemplates + const static mach_msg_port_descriptor_t clientIdentTemplate = { + /* name = */ MACH_PORT_NULL, + /* pad1 = */ 0, + /* pad2 = */ 0, + /* disp = */ 20, + /* type = */ MACH_MSG_PORT_DESCRIPTOR, + }; +#endif /* UseStaticTemplates */ + + InP->msgh_body.msgh_descriptor_count = 1; +#if UseStaticTemplates + InP->clientIdent = clientIdentTemplate; + InP->clientIdent.name = clientIdent; +#else /* UseStaticTemplates */ + InP->clientIdent.name = clientIdent; + InP->clientIdent.disposition = 20; + InP->clientIdent.type = MACH_MSG_PORT_DESCRIPTOR; +#endif /* UseStaticTemplates */ + + InP->NDR = NDR_record; + + { typedef struct { char data[16]; } *sp; + * (sp) InP->vol_uuid = * (sp) vol_uuid; + } + + InP->exitStatus = exitStatus; + + InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX| + MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70008; + + __BeforeSendRpc(70008, "kextmanager_unlock_volume") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70008, "kextmanager_unlock_volume") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_unlock_volume_t__defined) + check_result = __MIG_check__Reply__kextmanager_unlock_volume_t((__Reply__kextmanager_unlock_volume_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_unlock_volume_t__defined) */ + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_lock_kextload_t__defined) +#define __MIG_check__Reply__kextmanager_lock_kextload_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined */ + + +#ifndef __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#if defined(__NDR_convert__int_rep__kextmanager__int__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__int_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__int__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__int_rep__int((int *)(a), f) +#elif defined(__NDR_convert__int_rep__kextmanager__int32_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__int_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__int_rep__int32_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__int_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */ + + + +#ifndef __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#if defined(__NDR_convert__char_rep__kextmanager__int__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__char_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__int__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__char_rep__int((int *)(a), f) +#elif defined(__NDR_convert__char_rep__kextmanager__int32_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__char_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__char_rep__int32_t__defined) +#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__char_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */ + + + +#ifndef __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#if defined(__NDR_convert__float_rep__kextmanager__int__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__float_rep__kextmanager__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__int__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__float_rep__int((int *)(a), f) +#elif defined(__NDR_convert__float_rep__kextmanager__int32_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__float_rep__kextmanager__int32_t((int32_t *)(a), f) +#elif defined(__NDR_convert__float_rep__int32_t__defined) +#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined +#define __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus(a, f) \ + __NDR_convert__float_rep__int32_t((int32_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */ + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_lock_kextload_t(__Reply__kextmanager_lock_kextload_t *Out0P) +{ + + typedef __Reply__kextmanager_lock_kextload_t __Reply; +#if __MigTypeCheck + unsigned int msgh_size; +#endif /* __MigTypeCheck */ + if (Out0P->Head.msgh_id != 70109) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + msgh_size = Out0P->Head.msgh_size; + + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + ((msgh_size != (mach_msg_size_t)sizeof(__Reply)) && + (msgh_size != (mach_msg_size_t)sizeof(mig_reply_error_t) || + Out0P->RetCode == KERN_SUCCESS))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + + if (Out0P->RetCode != KERN_SUCCESS) { +#ifdef __NDR_convert__mig_reply_error_t__defined + __NDR_convert__mig_reply_error_t((mig_reply_error_t *)Out0P); +#endif /* __NDR_convert__mig_reply_error_t__defined */ + return ((mig_reply_error_t *)Out0P)->RetCode; + } + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined) || \ + defined(__NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) { +#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined) + __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__RetCode__defined */ +#if defined(__NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined) + __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus(&Out0P->lockstatus, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */ + } +#endif /* defined(__NDR_convert__int_rep...) */ + +#if 0 || \ + defined(__NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined) + if (Out0P->NDR.char_rep != NDR_record.char_rep) { +#if defined(__NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined) + __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus(&Out0P->lockstatus, Out0P->NDR.char_rep); +#endif /* __NDR_convert__char_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */ + } +#endif /* defined(__NDR_convert__char_rep...) */ + +#if 0 || \ + defined(__NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined) + if (Out0P->NDR.float_rep != NDR_record.float_rep) { +#if defined(__NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined) + __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus(&Out0P->lockstatus, Out0P->NDR.float_rep); +#endif /* __NDR_convert__float_rep__Reply__kextmanager_lock_kextload_t__lockstatus__defined */ + } +#endif /* defined(__NDR_convert__float_rep...) */ + + return MACH_MSG_SUCCESS; +} +#endif /* !defined(__MIG_check__Reply__kextmanager_lock_kextload_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_lock_kextload */ +mig_external kern_return_t kextmanager_lock_kextload +( + mach_port_t server, + mach_port_t clientPort, + int *lockstatus +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientPort; + /* end of the kernel processed data */ + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + int lockstatus; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + int lockstatus; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_lock_kextload_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_lock_kextload_t__defined */ + + __DeclareSendRpc(70009, "kextmanager_lock_kextload") + +#if UseStaticTemplates + const static mach_msg_port_descriptor_t clientPortTemplate = { + /* name = */ MACH_PORT_NULL, + /* pad1 = */ 0, + /* pad2 = */ 0, + /* disp = */ 20, + /* type = */ MACH_MSG_PORT_DESCRIPTOR, + }; +#endif /* UseStaticTemplates */ + + InP->msgh_body.msgh_descriptor_count = 1; +#if UseStaticTemplates + InP->clientPort = clientPortTemplate; + InP->clientPort.name = clientPort; +#else /* UseStaticTemplates */ + InP->clientPort.name = clientPort; + InP->clientPort.disposition = 20; + InP->clientPort.type = MACH_MSG_PORT_DESCRIPTOR; +#endif /* UseStaticTemplates */ + + InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX| + MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70009; + + __BeforeSendRpc(70009, "kextmanager_lock_kextload") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70009, "kextmanager_lock_kextload") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_lock_kextload_t__defined) + check_result = __MIG_check__Reply__kextmanager_lock_kextload_t((__Reply__kextmanager_lock_kextload_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_lock_kextload_t__defined) */ + + *lockstatus = Out0P->lockstatus; + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_unlock_kextload_t__defined) +#define __MIG_check__Reply__kextmanager_unlock_kextload_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined */ + + + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_unlock_kextload_t(__Reply__kextmanager_unlock_kextload_t *Out0P) +{ + + typedef __Reply__kextmanager_unlock_kextload_t __Reply; + if (Out0P->Head.msgh_id != 70110) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) + __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_unlock_kextload_t__RetCode__defined */ + { return Out0P->RetCode; + } +} +#endif /* !defined(__MIG_check__Reply__kextmanager_unlock_kextload_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_unlock_kextload */ +mig_external kern_return_t kextmanager_unlock_kextload +( + mach_port_t server, + mach_port_t clientPort +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + /* start of the kernel processed data */ + mach_msg_body_t msgh_body; + mach_msg_port_descriptor_t clientPort; + /* end of the kernel processed data */ + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_unlock_kextload_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_unlock_kextload_t__defined */ + + __DeclareSendRpc(70010, "kextmanager_unlock_kextload") + +#if UseStaticTemplates + const static mach_msg_port_descriptor_t clientPortTemplate = { + /* name = */ MACH_PORT_NULL, + /* pad1 = */ 0, + /* pad2 = */ 0, + /* disp = */ 20, + /* type = */ MACH_MSG_PORT_DESCRIPTOR, + }; +#endif /* UseStaticTemplates */ + + InP->msgh_body.msgh_descriptor_count = 1; +#if UseStaticTemplates + InP->clientPort = clientPortTemplate; + InP->clientPort.name = clientPort; +#else /* UseStaticTemplates */ + InP->clientPort.name = clientPort; + InP->clientPort.disposition = 20; + InP->clientPort.type = MACH_MSG_PORT_DESCRIPTOR; +#endif /* UseStaticTemplates */ + + InP->Head.msgh_bits = MACH_MSGH_BITS_COMPLEX| + MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70010; + + __BeforeSendRpc(70010, "kextmanager_unlock_kextload") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70010, "kextmanager_unlock_kextload") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_unlock_kextload_t__defined) + check_result = __MIG_check__Reply__kextmanager_unlock_kextload_t((__Reply__kextmanager_unlock_kextload_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_unlock_kextload_t__defined) */ + + return KERN_SUCCESS; + } +} + +#if ( __MigTypeCheck || __NDR_convert__ ) +#if __MIG_check__Reply__kextmanager_subsystem__ +#if !defined(__MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined) +#define __MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined +#ifndef __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined +#if defined(__NDR_convert__int_rep__kextmanager__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode(a, f) \ + __NDR_convert__int_rep__kextmanager__kern_return_t((kern_return_t *)(a), f) +#elif defined(__NDR_convert__int_rep__kern_return_t__defined) +#define __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined +#define __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode(a, f) \ + __NDR_convert__int_rep__kern_return_t((kern_return_t *)(a), f) +#endif /* defined(__NDR_convert__*__defined) */ +#endif /* __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined */ + + + + + +mig_internal kern_return_t __MIG_check__Reply__kextmanager_record_path_for_bundle_id_t(__Reply__kextmanager_record_path_for_bundle_id_t *Out0P) +{ + + typedef __Reply__kextmanager_record_path_for_bundle_id_t __Reply; + if (Out0P->Head.msgh_id != 70111) { + if (Out0P->Head.msgh_id == MACH_NOTIFY_SEND_ONCE) + { return MIG_SERVER_DIED; } + else + { return MIG_REPLY_MISMATCH; } + } + +#if __MigTypeCheck + if ((Out0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) || + (Out0P->Head.msgh_size != (mach_msg_size_t)sizeof(__Reply))) + { return MIG_TYPE_ERROR ; } +#endif /* __MigTypeCheck */ + +#if defined(__NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined) + if (Out0P->NDR.int_rep != NDR_record.int_rep) + __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode(&Out0P->RetCode, Out0P->NDR.int_rep); +#endif /* __NDR_convert__int_rep__Reply__kextmanager_record_path_for_bundle_id_t__RetCode__defined */ + { return Out0P->RetCode; + } +} +#endif /* !defined(__MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined) */ +#endif /* __MIG_check__Reply__kextmanager_subsystem__ */ +#endif /* ( __MigTypeCheck || __NDR_convert__ ) */ + + +/* Routine kextmanager_record_path_for_bundle_id */ +mig_external kern_return_t kextmanager_record_path_for_bundle_id +( + mach_port_t server, + kext_bundle_id_t bundle_id, + posix_path_t path +) +{ + { + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kext_bundle_id_t bundle_id; + posix_path_t path; + } Request; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + mach_msg_trailer_t trailer; + } Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + +#ifdef __MigPackStructs +#pragma pack(4) +#endif + typedef struct { + mach_msg_header_t Head; + NDR_record_t NDR; + kern_return_t RetCode; + } __Reply; +#ifdef __MigPackStructs +#pragma pack() +#endif + /* + * typedef struct { + * mach_msg_header_t Head; + * NDR_record_t NDR; + * kern_return_t RetCode; + * } mig_reply_error_t; + */ + + union { + Request In; + Reply Out; + } Mess; + + Request *InP = &Mess.In; + Reply *Out0P = &Mess.Out; + + mach_msg_return_t msg_result; + +#ifdef __MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined + kern_return_t check_result; +#endif /* __MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined */ + + __DeclareSendRpc(70011, "kextmanager_record_path_for_bundle_id") + + InP->NDR = NDR_record; + + { typedef struct { char data[64]; } *sp; + * (sp) InP->bundle_id = * (sp) bundle_id; + } + + { typedef struct { char data[1024]; } *sp; + * (sp) InP->path = * (sp) path; + } + + InP->Head.msgh_bits = + MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE); + /* msgh_size passed as argument */ + InP->Head.msgh_request_port = server; + InP->Head.msgh_reply_port = mig_get_reply_port(); + InP->Head.msgh_id = 70011; + + __BeforeSendRpc(70011, "kextmanager_record_path_for_bundle_id") + msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_RCV_MSG|MACH_MSG_OPTION_NONE, (mach_msg_size_t)sizeof(Request), (mach_msg_size_t)sizeof(Reply), InP->Head.msgh_reply_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); + __AfterSendRpc(70011, "kextmanager_record_path_for_bundle_id") + if (msg_result != MACH_MSG_SUCCESS) { + __MachMsgErrorWithoutTimeout(msg_result); + { return msg_result; } + } + + +#if defined(__MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined) + check_result = __MIG_check__Reply__kextmanager_record_path_for_bundle_id_t((__Reply__kextmanager_record_path_for_bundle_id_t *)Out0P); + if (check_result != MACH_MSG_SUCCESS) + { return check_result; } +#endif /* defined(__MIG_check__Reply__kextmanager_record_path_for_bundle_id_t__defined) */ + + return KERN_SUCCESS; + } +} diff --git a/data/system-cmds/make.sh b/data/system-cmds/make.sh new file mode 100644 index 000000000..7a200fe3b --- /dev/null +++ b/data/system-cmds/make.sh @@ -0,0 +1,16 @@ +shopt -s extglob +tar -zxvf "${PKG_DATA}/system_cmds-431.tar.gz" +cd system_cmds-431 +mkdir -p "${PKG_DEST}/usr/bin" +cd getconf.tproj +for gperf in *.gperf; do + LC_ALL=C awk -f fake-gperf.awk <"${gperf}" >"$(basename "${gperf}" .gperf).c" +done +cd .. +cp -va "${PKG_DATA}"/kextmanager* . +# dmesg reboot shutdown +for tproj in getconf getty hostinfo iostat login nvram passwd sync sysctl vipw zprint; do + echo "${tproj}" + arm-apple-darwin-gcc -o "${tproj}" "${tproj}.tproj"/!(od_passwd).c -I. -D'__FBSDID(x)=' -DTARGET_OS_EMBEDDED -framework CoreFoundation -framework IOKit kextmanagerUser.c + cp -a "${tproj}" "${PKG_DEST}/usr/bin" +done diff --git a/data/system-cmds/system_cmds-431.tar.gz b/data/system-cmds/system_cmds-431.tar.gz Binary files differnew file mode 100644 index 000000000..a58079d9e --- /dev/null +++ b/data/system-cmds/system_cmds-431.tar.gz |