pub unsafe fn mmap_anonymous( ptr: *mut c_void, len: usize, prot: ProtFlags, flags: MapFlags, ) -> Result<*mut c_void>
mmap(ptr, len, prot, MAP_ANONYMOUS | flags, -1, 0)—Create an anonymous memory mapping.
mmap(ptr, len, prot, MAP_ANONYMOUS | flags, -1, 0)
For file-backed mappings, see mmap.
mmap
Raw pointers and lots of special semantics.