From e2e50a2471af7c8708d49323a3f000042a032b59 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 7 Feb 2016 20:08:58 -0500 Subject: Cast kernel server port arguments to the correct type. * server.c: Add cast for ipc_port_t arguments that are handled differently. * type.c: Set itKernelPort when the mach_port_t is treated as a ipc_port_t. * type.h: Add itKernelPort to struct ipc_type. --- type.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'type.h') diff --git a/type.h b/type.h index 50de063..6cf5d63 100644 --- a/type.h +++ b/type.h @@ -129,6 +129,10 @@ typedef enum dealloc { * * itElement points to any substructure that the type may have. * It is only used with variable-sized array types. + * + * itKernelPort is used only on kernel interfaces and is set to TRUE when + * the initial type is mach_port_t, which in turn is actually translated to + * internal port pointers (ipc_port_t). */ typedef struct ipc_type @@ -158,6 +162,7 @@ typedef struct ipc_type boolean_t itString; boolean_t itVarArray; boolean_t itIndefinite; + boolean_t itKernelPort; struct ipc_type *itElement; /* may be NULL */ -- cgit v1.2.3