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