internal static extern IntPtr mmap(IntPtr addr, int length, MemoryMappedProtections prot, MemoryMappedFlags flags, int fd, int offset);
Exemple #2
0
 internal static extern IntPtr MMap(
     IntPtr addr, ulong len,
     MemoryMappedProtections prot, MemoryMappedFlags flags,
     int fd, long offset);
Exemple #3
0
 internal static extern IntPtr mmap(
     IntPtr addr, size_t len, 
     MemoryMappedProtections prot, MemoryMappedFlags flags,
     int fd, off_t offset);
Exemple #4
0
 internal static extern IntPtr mmap(
     IntPtr addr, size_t len,
     MemoryMappedProtections prot, MemoryMappedFlags flags,
     int fd, off_t offset);
Exemple #5
0
 internal static extern IntPtr MMap(
     IntPtr addr, ulong len, 
     MemoryMappedProtections prot, MemoryMappedFlags flags,
     int fd, long offset);
Exemple #6
0
        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);
        }
Exemple #7
0
 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);
Exemple #10
0
 internal static extern IntPtr mmap(
     IntPtr __addr, size_t __len,
     MemoryMappedProtections __prot, MemoryMappedFlags __flags,
     int __fd, off_t __offset);
Exemple #11
0
 internal static partial IntPtr MMap(
     IntPtr addr, ulong len,
     MemoryMappedProtections prot, MemoryMappedFlags flags,
     SafeFileHandle fd, long offset);
Exemple #12
0
 internal static extern IntPtr mmap(
     IntPtr __addr, size_t __len, 
     MemoryMappedProtections __prot, MemoryMappedFlags __flags, 
     int __fd, off_t __offset);