22 references to OpenFlags
System.Private.CoreLib (22)
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)
185
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException = null)
191
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException = null)
198
Func<Interop.ErrorInfo, Interop.Sys.
OpenFlags
, string, Exception?>? createOpenException = null)
201
Interop.Sys.
OpenFlags
openFlags = PreOpenConfigurationFromOptions(mode, access, share, options, failForSymlink);
244
private static Interop.Sys.
OpenFlags
PreOpenConfigurationFromOptions(FileMode mode, FileAccess access, FileShare share, FileOptions options, bool failForSymlink)
247
Interop.Sys.
OpenFlags
flags = default;
250
flags |= Interop.Sys.
OpenFlags
.O_NOFOLLOW;
262
flags |= Interop.Sys.
OpenFlags
.O_TRUNC;
268
flags |= Interop.Sys.
OpenFlags
.O_CREAT;
272
flags |= Interop.Sys.
OpenFlags
.O_CREAT;
275
flags |= Interop.Sys.
OpenFlags
.O_TRUNC;
280
flags |= (Interop.Sys.
OpenFlags
.O_CREAT | Interop.Sys.
OpenFlags
.O_EXCL);
288
flags |= Interop.Sys.
OpenFlags
.O_RDONLY;
292
flags |= Interop.Sys.
OpenFlags
.O_RDWR;
296
flags |= Interop.Sys.
OpenFlags
.O_WRONLY;
303
flags |= Interop.Sys.
OpenFlags
.O_CLOEXEC;
315
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)