internal static extern IntPtr mmap(IntPtr addr, int length, MemoryMappedProtections prot, MemoryMappedFlags flags, int fd, int offset);
internal static extern IntPtr MMap( IntPtr addr, ulong len, MemoryMappedProtections prot, MemoryMappedFlags flags, int fd, long offset);
internal static extern IntPtr mmap( IntPtr addr, size_t len, MemoryMappedProtections prot, MemoryMappedFlags flags, int fd, off_t offset);
public static unsafe IntPtr?Create(IntPtr addr, uint length, MemoryMappedProtections protections, MemoryMappedFlags flags, IntPtr fd, int offset) { var result = mmap(addr, length, (int)protections, (int)flags, (int)fd, offset); if ((long)result == MAP_FAILED) { return(null); } return(result); }
public static extern IntPtr MMap(IntPtr addr, ulong length, MemoryMappedProtections prot, MemoryMappedFlags flags, FileDescriptor fd, ulong offset);
internal unsafe static extern IntPtr MMap(IntPtr addr, long length, MemoryMappedProtections prot, MemoryMappedFlags flags, int fd, UIntPtr offset);
private static extern IntPtr mmap(IntPtr addr, IntPtr length, MemoryMappedProtections prot, MemoryMappedFlags flags, int fd, IntPtr offset);
internal static extern IntPtr mmap( IntPtr __addr, size_t __len, MemoryMappedProtections __prot, MemoryMappedFlags __flags, int __fd, off_t __offset);
internal static partial IntPtr MMap( IntPtr addr, ulong len, MemoryMappedProtections prot, MemoryMappedFlags flags, SafeFileHandle fd, long offset);