31 references to OpenFlags
System.Private.CoreLib (31)
_generated\2\LibraryImports.g.cs (2)
3716
internal static partial global::Microsoft.Win32.SafeHandles.SafeFileHandle Open(string filename, global::Interop.Sys.
OpenFlags
flags, int mode)
3762
static extern unsafe nint __PInvoke(byte* __filename_native, global::Interop.Sys.
OpenFlags
__flags_native, int __mode_native);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Open.cs (1)
12
internal static partial SafeFileHandle Open(string filename,
OpenFlags
flags, int mode);
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (20)
107
private static SafeFileHandle Open(string path, Interop.Sys.
OpenFlags
flags, int mode, bool failForSymlink, out bool wasSymlink,
108
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException)
233
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException = null)
239
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException = null)
246
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException = null)
249
Interop.Sys.
OpenFlags
openFlags = PreOpenConfigurationFromOptions(mode, access, share, options, failForSymlink);
292
private static Interop.Sys.
OpenFlags
PreOpenConfigurationFromOptions(FileMode mode, FileAccess access, FileShare share, FileOptions options, bool failForSymlink)
295
Interop.Sys.
OpenFlags
flags = default;
298
flags |= Interop.Sys.
OpenFlags
.O_NOFOLLOW;
310
flags |= Interop.Sys.
OpenFlags
.O_TRUNC;
316
flags |= Interop.Sys.
OpenFlags
.O_CREAT;
320
flags |= Interop.Sys.
OpenFlags
.O_CREAT;
323
flags |= Interop.Sys.
OpenFlags
.O_TRUNC;
328
flags |= (Interop.Sys.
OpenFlags
.O_CREAT | Interop.Sys.
OpenFlags
.O_EXCL);
336
flags |= Interop.Sys.
OpenFlags
.O_RDONLY;
340
flags |= Interop.Sys.
OpenFlags
.O_RDWR;
344
flags |= Interop.Sys.
OpenFlags
.O_WRONLY;
351
flags |= Interop.Sys.
OpenFlags
.O_CLOEXEC;
363
flags |= Interop.Sys.
OpenFlags
.O_SYNC;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (1)
54
private static Exception? CreateOpenExceptionForCopyFile(Interop.ErrorInfo error, Interop.Sys.
OpenFlags
flags, string path)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (7)
426
SafeFileHandle fd = Interop.Sys.Open(sharedMemoryFilePath, Interop.Sys.
OpenFlags
.O_RDWR | Interop.Sys.
OpenFlags
.O_CLOEXEC, 0);
493
Interop.Sys.
OpenFlags
.O_RDWR | Interop.Sys.
OpenFlags
.O_CLOEXEC | Interop.Sys.
OpenFlags
.O_CREAT | Interop.Sys.
OpenFlags
.O_EXCL,
836
fd = Interop.Sys.Open(sharedMemoryDirectory, Interop.Sys.
OpenFlags
.O_RDONLY, 0);