mach_sys/
vm_types.rs

1//! This module roughly corresponds to `mach/i386/vm_types.h` (on amd64)
2//! and `mach/arm/vm_types.h` (on aarch64).
3
4use crate::ffi::{c_uint, c_int, uintptr_t};
5
6use crate::port::mach_port_t;
7
8pub type natural_t = c_uint;
9pub type integer_t = c_int;
10
11pub type vm_map_t            = mach_port_t;
12
13pub type user_addr_t         = u64;
14pub type mach_vm_address_t   = u64;
15pub type vm_map_address_t    = u64;
16pub type vm_address_t        = vm_offset_t;
17
18pub type mach_vm_offset_t    = u64;
19pub type vm_map_offset_t     = u64;
20pub type vm_offset_t         = uintptr_t;
21
22pub type mach_vm_size_t      = u64;
23pub type vm_map_size_t       = u64;
24pub type vm_size_t           = uintptr_t;
25
26pub type mach_port_context_t = mach_vm_address_t;
27