diff options
Diffstat (limited to 'include/mach/mach_types.defs')
-rw-r--r-- | include/mach/mach_types.defs | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/include/mach/mach_types.defs b/include/mach/mach_types.defs index a0e9241c..a271d597 100644 --- a/include/mach/mach_types.defs +++ b/include/mach/mach_types.defs @@ -110,9 +110,34 @@ type ipc_space_t = mach_port_t #endif /* KERNEL_SERVER */ ; -type vm_address_t = natural_t; -type vm_offset_t = natural_t; -type vm_size_t = natural_t; +#if defined(KERNEL_SERVER) && defined(USER32) +type rpc_vm_size_t = uint32_t; +#else /* KERNEL_SERVER and USER32 */ +#if defined(__x86_64__) +type rpc_vm_size_t = uint64_t; +#else /* __x86_64__ */ +type rpc_vm_size_t = uint32_t; +#endif /* __x86_64__ */ +#endif /* KERNEL_SERVER and USER32 */ + +type vm_address_t = rpc_vm_size_t +#if defined(KERNEL_SERVER) || defined(KERNEL_USER) + intran: vm_address_t convert_vm_from_user(rpc_vm_address_t) + outtran: rpc_vm_address_t convert_vm_to_user(vm_address_t) +#endif + ; +type vm_offset_t = rpc_vm_size_t +#if defined(KERNEL_SERVER) || defined(KERNEL_USER) + intran: vm_offset_t convert_vm_from_user(rpc_vm_offset_t) + outtran: rpc_vm_offset_t convert_vm_to_user(vm_offset_t) +#endif + ; +type vm_size_t = rpc_vm_size_t +#if defined(KERNEL_SERVER) || defined(KERNEL_USER) + intran: vm_size_t convert_vm_from_user(rpc_vm_size_t) + outtran: rpc_vm_size_t convert_vm_to_user(vm_size_t) +#endif +; type vm_prot_t = int; type vm_inherit_t = int; type vm_statistics_data_t = struct[13] of integer_t; |