38 references to MemoryMappedProtections
System.IO.MemoryMappedFiles (38)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (4)
288
internal 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)
318
static 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);
328
internal static partial nint MMap(nint addr, ulong len, global::Interop.Sys.
MemoryMappedProtections
prot, global::Interop.Sys.MemoryMappedFlags flags, nint fd, long offset)
343
static 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)
34
MemoryMappedProtections
prot, MemoryMappedFlags flags,
41
MemoryMappedProtections
prot, MemoryMappedFlags flags,
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (16)
95
Interop.Sys.
MemoryMappedProtections
protections = MemoryMappedView.GetProtections(access, forVerification: false);
96
if ((protections & Interop.Sys.
MemoryMappedProtections
.PROT_WRITE) != 0 && capacity > 0)
149
private 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 :
157
private static SafeFileHandle CreateSharedBackingObject(Interop.Sys.
MemoryMappedProtections
protections, long capacity, HandleInheritability inheritability)
166
Interop.Sys.
MemoryMappedProtections
protections, long capacity, HandleInheritability inheritability)
169
Interop.Sys.OpenFlags flags = (protections & Interop.Sys.
MemoryMappedProtections
.PROT_WRITE) != 0 ?
176
if ((protections & Interop.Sys.
MemoryMappedProtections
.PROT_READ) != 0)
178
if ((protections & Interop.Sys.
MemoryMappedProtections
.PROT_WRITE) != 0)
180
if ((protections & Interop.Sys.
MemoryMappedProtections
.PROT_EXEC) != 0)
268
Interop.Sys.
MemoryMappedProtections
protections, long capacity, HandleInheritability inheritability)
270
int isReadonly = ((protections & Interop.Sys.
MemoryMappedProtections
.PROT_READ) != 0 &&
271
(protections & Interop.Sys.
MemoryMappedProtections
.PROT_WRITE) == 0) ? 1 : 0;
306
private static SafeFileHandle CreateSharedBackingObjectUsingFile(Interop.Sys.
MemoryMappedProtections
protections, long capacity, HandleInheritability inheritability)
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (16)
69
Interop.Sys.
MemoryMappedProtections
viewProtForVerification = GetProtections(access, forVerification: true);
70
Interop.Sys.
MemoryMappedProtections
mapProtForVerification = GetProtections(memMappedFileHandle._access, forVerification: true);
77
Interop.Sys.
MemoryMappedProtections
viewProtForCreation = GetProtections(access, forVerification: false);
175
internal static Interop.Sys.
MemoryMappedProtections
GetProtections(
182
return Interop.Sys.
MemoryMappedProtections
.PROT_READ;
185
return Interop.Sys.
MemoryMappedProtections
.PROT_WRITE;
189
Interop.Sys.
MemoryMappedProtections
.PROT_READ |
190
Interop.Sys.
MemoryMappedProtections
.PROT_WRITE;
194
Interop.Sys.
MemoryMappedProtections
.PROT_READ |
195
Interop.Sys.
MemoryMappedProtections
.PROT_EXEC;
199
Interop.Sys.
MemoryMappedProtections
.PROT_READ |
200
Interop.Sys.
MemoryMappedProtections
.PROT_WRITE |
201
Interop.Sys.
MemoryMappedProtections
.PROT_EXEC;
205
Interop.Sys.
MemoryMappedProtections
.PROT_READ :
206
Interop.Sys.
MemoryMappedProtections
.PROT_READ | Interop.Sys.
MemoryMappedProtections
.PROT_WRITE;