45 references to Error
System.IO.FileSystem.DriveInfo (45)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (2)
7internal static extern partial global::Interop.Error ConvertErrorPlatformToPal(int platformErrno); 15internal static extern partial int ConvertErrorPalToPlatform(global::Interop.Error error);
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (4)
14internal static Error GetFileSystemTypeForRealPath(string path, out string format) 61return Error.SUCCESS; 63return Error.ENOENT; 71return Error.ENOTSUP;
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (7)
119private readonly Error _error; 128internal ErrorInfo(Error error) 134internal Error Error 157internal static Error GetLastError() 198internal static partial Error ConvertErrorPlatformToPal(int platformErrno); 202internal static partial int ConvertErrorPalToPlatform(Error error); 220public static Interop.ErrorInfo Info(this Interop.Error error)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (15)
13Debug.Assert(errorInfo.Error != Error.SUCCESS); 14Debug.Assert(errorInfo.Error != Error.EINTR, "EINTR errors should be handled by the native shim and never bubble up to managed code"); 19internal static void CheckIo(Error error, string? path = null, bool isDirError = false) 21if (error != Interop.Error.SUCCESS) 120case Error.ENOENT: 129goto case Error.ENOTDIR; 131case Error.ENOTDIR: 140case Error.EACCES: 141case Error.EBADF: 142case Error.EPERM: 148case Error.ENAMETOOLONG: 153case Error.EWOULDBLOCK: 158case Error.ECANCELED: 161case Error.EFBIG: 164case Error.EEXIST:
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (7)
26internal static unsafe Error GetFileSystemTypeNameForMountPoint(string name, out string format) 38Error error = procfs.GetFileSystemTypeForRealPath(path, out format); 41if (error != Error.ENOTSUP) 53return Error.SUCCESS; 62internal static Error GetDriveTypeForMountPoint(string name, out DriveType type) 64Error error = GetFileSystemTypeNameForMountPoint(name, out string format); 65type = error == Error.SUCCESS ? GetDriveType(format) : DriveType.Unknown;
System\IO\DriveInfo.Unix.cs (10)
18Interop.Error error = Interop.Sys.GetDriveTypeForMountPoint(Name, out type); 24case Interop.Error.SUCCESS: 27case Interop.Error.ELOOP: 28case Interop.Error.ENAMETOOLONG: 29case Interop.Error.ENOENT: 30case Interop.Error.ENOTDIR: 78private void CheckStatfsResultAndThrowIfNecessary(Interop.Error error) 80if (error != Interop.Error.SUCCESS) 94private void ThrowForError(Interop.Error error) 96if (error == Interop.Error.ENOENT)