22 references to OpenFlags
System.Private.CoreLib (22)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Open.cs (1)
12internal static partial SafeFileHandle Open(string filename, OpenFlags flags, int mode);
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (20)
91private static SafeFileHandle Open(string path, Interop.Sys.OpenFlags flags, int mode, bool failForSymlink, out bool wasSymlink, 92Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException) 174Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 180Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 187Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 190Interop.Sys.OpenFlags openFlags = PreOpenConfigurationFromOptions(mode, access, share, options, failForSymlink); 233private static Interop.Sys.OpenFlags PreOpenConfigurationFromOptions(FileMode mode, FileAccess access, FileShare share, FileOptions options, bool failForSymlink) 236Interop.Sys.OpenFlags flags = default; 239flags |= Interop.Sys.OpenFlags.O_NOFOLLOW; 251flags |= Interop.Sys.OpenFlags.O_TRUNC; 257flags |= Interop.Sys.OpenFlags.O_CREAT; 261flags |= Interop.Sys.OpenFlags.O_CREAT; 264flags |= Interop.Sys.OpenFlags.O_TRUNC; 269flags |= (Interop.Sys.OpenFlags.O_CREAT | Interop.Sys.OpenFlags.O_EXCL); 277flags |= Interop.Sys.OpenFlags.O_RDONLY; 281flags |= Interop.Sys.OpenFlags.O_RDWR; 285flags |= Interop.Sys.OpenFlags.O_WRONLY; 292flags |= Interop.Sys.OpenFlags.O_CLOEXEC; 304flags |= Interop.Sys.OpenFlags.O_SYNC;
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (1)
54private static Exception? CreateOpenExceptionForCopyFile(Interop.ErrorInfo error, Interop.Sys.OpenFlags flags, string path)