38 references to MemoryMappedProtections
System.IO.MemoryMappedFiles (38)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (4)
288internal static partial nint MMap(nint addr, ulong len, global::Interop.Sys.MemoryMappedProtections prot, global::Interop.Sys.MemoryMappedFlags flags, global::Microsoft.Win32.SafeHandles.SafeFileHandle fd, long offset) 318static extern unsafe nint __PInvoke(nint __addr_native, ulong __len_native, global::Interop.Sys.MemoryMappedProtections __prot_native, global::Interop.Sys.MemoryMappedFlags __flags_native, nint __fd_native, long __offset_native); 328internal static partial nint MMap(nint addr, ulong len, global::Interop.Sys.MemoryMappedProtections prot, global::Interop.Sys.MemoryMappedFlags flags, nint fd, long offset) 343static extern unsafe nint __PInvoke(nint __addr_native, ulong __len_native, global::Interop.Sys.MemoryMappedProtections __prot_native, global::Interop.Sys.MemoryMappedFlags __flags_native, nint __fd_native, long __offset_native);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MMap.cs (2)
34MemoryMappedProtections prot, MemoryMappedFlags flags, 41MemoryMappedProtections prot, MemoryMappedFlags flags,
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (16)
95Interop.Sys.MemoryMappedProtections protections = MemoryMappedView.GetProtections(access, forVerification: false); 96if ((protections & Interop.Sys.MemoryMappedProtections.PROT_WRITE) != 0 && capacity > 0) 149private static FileAccess TranslateProtectionsToFileAccess(Interop.Sys.MemoryMappedProtections protections) 152(protections & (Interop.Sys.MemoryMappedProtections.PROT_READ | Interop.Sys.MemoryMappedProtections.PROT_WRITE)) != 0 ? FileAccess.ReadWrite : 153(protections & (Interop.Sys.MemoryMappedProtections.PROT_WRITE)) != 0 ? FileAccess.Write : 157private static SafeFileHandle CreateSharedBackingObject(Interop.Sys.MemoryMappedProtections protections, long capacity, HandleInheritability inheritability) 166Interop.Sys.MemoryMappedProtections protections, long capacity, HandleInheritability inheritability) 169Interop.Sys.OpenFlags flags = (protections & Interop.Sys.MemoryMappedProtections.PROT_WRITE) != 0 ? 176if ((protections & Interop.Sys.MemoryMappedProtections.PROT_READ) != 0) 178if ((protections & Interop.Sys.MemoryMappedProtections.PROT_WRITE) != 0) 180if ((protections & Interop.Sys.MemoryMappedProtections.PROT_EXEC) != 0) 268Interop.Sys.MemoryMappedProtections protections, long capacity, HandleInheritability inheritability) 270int isReadonly = ((protections & Interop.Sys.MemoryMappedProtections.PROT_READ) != 0 && 271(protections & Interop.Sys.MemoryMappedProtections.PROT_WRITE) == 0) ? 1 : 0; 306private static SafeFileHandle CreateSharedBackingObjectUsingFile(Interop.Sys.MemoryMappedProtections protections, long capacity, HandleInheritability inheritability)
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (16)
69Interop.Sys.MemoryMappedProtections viewProtForVerification = GetProtections(access, forVerification: true); 70Interop.Sys.MemoryMappedProtections mapProtForVerification = GetProtections(memMappedFileHandle._access, forVerification: true); 77Interop.Sys.MemoryMappedProtections viewProtForCreation = GetProtections(access, forVerification: false); 175internal static Interop.Sys.MemoryMappedProtections GetProtections( 182return Interop.Sys.MemoryMappedProtections.PROT_READ; 185return Interop.Sys.MemoryMappedProtections.PROT_WRITE; 189Interop.Sys.MemoryMappedProtections.PROT_READ | 190Interop.Sys.MemoryMappedProtections.PROT_WRITE; 194Interop.Sys.MemoryMappedProtections.PROT_READ | 195Interop.Sys.MemoryMappedProtections.PROT_EXEC; 199Interop.Sys.MemoryMappedProtections.PROT_READ | 200Interop.Sys.MemoryMappedProtections.PROT_WRITE | 201Interop.Sys.MemoryMappedProtections.PROT_EXEC; 205Interop.Sys.MemoryMappedProtections.PROT_READ : 206Interop.Sys.MemoryMappedProtections.PROT_READ | Interop.Sys.MemoryMappedProtections.PROT_WRITE;