12 instantiations of ErrorInfo
System.Private.CoreLib (12)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
164return new ErrorInfo(Marshal.GetLastPInvokeError()); 222return new Interop.ErrorInfo(error);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
83var errorInfo = new Interop.ErrorInfo(error);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.Unix.cs (2)
192if (InternalContinueOnError(new Interop.ErrorInfo(result))) 199throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(result), _currentPath, isDirError: true);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (2)
572throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(errno), new string(path)); 584throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(error), path);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (3)
587throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(Interop.Error.ENOENT), fullPath); 606throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(Interop.Error.ENOENT), fullPath); 691throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(error), linkPath, isDirectory);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
121var errorInfo = new Interop.ErrorInfo(error);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.Unix.cs (1)
37throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(Interop.Error.EINVAL), handle.Path);
59 references to ErrorInfo
System.Private.CoreLib (59)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
162internal static ErrorInfo GetLastErrorInfo() 220public static Interop.ErrorInfo Info(this Interop.Error error)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (3)
11private static void ThrowExceptionForIoErrno(ErrorInfo errorInfo, string? path, bool isDirError) 114internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? path = null, bool isDirError = false) 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetCwd.cs (1)
63ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
83var errorInfo = new Interop.ErrorInfo(error);
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (12)
108Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException) 117Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 203Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 233Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 239Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 246Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 420Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 446Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 484Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 497Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 537Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 552Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
66Interop.ErrorInfo errno = Interop.Sys.GetLastErrorInfo();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.Unix.cs (4)
68private bool InternalContinueOnError(Interop.ErrorInfo info, bool ignoreNotFound = false) 71private static bool IsDirectoryNotFound(Interop.ErrorInfo info) 74private static bool IsAccessError(Interop.ErrorInfo info) 83Interop.ErrorInfo info = Interop.Sys.GetLastErrorInfo();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (1)
504Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Exists.Unix.cs (4)
16private static bool DirectoryExists(ReadOnlySpan<char> fullPath, out Interop.ErrorInfo errorInfo) 19errorInfo = default(Interop.ErrorInfo); 35private static bool FileExists(ReadOnlySpan<char> fullPath, out Interop.ErrorInfo errorInfo) 38errorInfo = default(Interop.ErrorInfo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (13)
54private static Exception? CreateOpenExceptionForCopyFile(Interop.ErrorInfo error, Interop.Sys.OpenFlags flags, string path) 87Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 156Interop.ErrorInfo errno = Interop.Sys.GetLastErrorInfo(); 172Interop.ErrorInfo errno = Interop.Sys.GetLastErrorInfo(); 197Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 243Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 259Interop.ErrorInfo fileExistsError; 302Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 346Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 376Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 451Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 529Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 546else if (DirectoryExists(fullPath, out Interop.ErrorInfo existErr))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
121var errorInfo = new Interop.ErrorInfo(error);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (1)
280private static bool ShouldFallBackToNonOffsetSyscall(Interop.ErrorInfo lastError)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (11)
224Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 232Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 243Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 255Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 427Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 587Interop.ErrorInfo mkdirError = Interop.Sys.GetLastErrorInfo(); 598Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 721Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 742Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 821Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 839Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.Unix.cs (2)
23Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 44Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\UnixFileStreamStrategy.cs (1)
33Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\NamedMutex.Unix.cs (1)
271Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo();