31 references to OpenFlags
System.Private.CoreLib (31)
LibraryImports.g.cs (2)
6943
internal static partial global::Microsoft.Win32.SafeHandles.SafeFileHandle Open(string filename, global::Interop.Sys.
OpenFlags
flags, int mode)
6987
static extern unsafe nint __PInvoke(byte* __filename_native, global::Interop.Sys.
OpenFlags
__flags_native, int __mode_native);
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\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (20)
91
private static SafeFileHandle Open(string path, Interop.Sys.
OpenFlags
flags, int mode, bool failForSymlink, out bool wasSymlink,
92
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException)
174
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException = null)
180
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException = null)
187
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException = null)
190
Interop.Sys.
OpenFlags
openFlags = PreOpenConfigurationFromOptions(mode, access, share, options, failForSymlink);
233
private static Interop.Sys.
OpenFlags
PreOpenConfigurationFromOptions(FileMode mode, FileAccess access, FileShare share, FileOptions options, bool failForSymlink)
236
Interop.Sys.
OpenFlags
flags = default;
239
flags |= Interop.Sys.
OpenFlags
.O_NOFOLLOW;
251
flags |= Interop.Sys.
OpenFlags
.O_TRUNC;
257
flags |= Interop.Sys.
OpenFlags
.O_CREAT;
261
flags |= Interop.Sys.
OpenFlags
.O_CREAT;
264
flags |= Interop.Sys.
OpenFlags
.O_TRUNC;
269
flags |= (Interop.Sys.
OpenFlags
.O_CREAT | Interop.Sys.
OpenFlags
.O_EXCL);
277
flags |= Interop.Sys.
OpenFlags
.O_RDONLY;
281
flags |= Interop.Sys.
OpenFlags
.O_RDWR;
285
flags |= Interop.Sys.
OpenFlags
.O_WRONLY;
292
flags |= Interop.Sys.
OpenFlags
.O_CLOEXEC;
304
flags |= Interop.Sys.
OpenFlags
.O_SYNC;
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\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (7)
421
SafeFileHandle fd = Interop.Sys.Open(sharedMemoryFilePath, Interop.Sys.
OpenFlags
.O_RDWR | Interop.Sys.
OpenFlags
.O_CLOEXEC, 0);
469
Interop.Sys.
OpenFlags
.O_RDWR | Interop.Sys.
OpenFlags
.O_CLOEXEC | Interop.Sys.
OpenFlags
.O_CREAT | Interop.Sys.
OpenFlags
.O_EXCL,
776
fd = Interop.Sys.Open(sharedMemoryDirectory, Interop.Sys.
OpenFlags
.O_RDONLY, 0);