32 references to Error
System.Console (32)
_generated\0\LibraryImports.g.cs (3)
7internal static extern partial global::Interop.Error ConvertErrorPlatformToPal(int platformErrno); 15internal static extern partial int ConvertErrorPalToPlatform(global::Interop.Error error); 269internal static unsafe extern partial global::Interop.Error Poll(global::Interop.PollEvent* pollEvents, uint eventCount, int timeout, uint* triggered);
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.GetPwUid.cs (1)
87if (errorInfo.Error == Interop.Error.ERANGE)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Poll.cs (3)
21internal static unsafe partial Error Poll(PollEvent* pollEvents, uint eventCount, int timeout, uint* triggered); 31internal static unsafe Error Poll(SafeHandle fd, PollEvents events, int timeout, out PollEvents triggered) 45Error err = Poll(&pollEvent, 1, timeout, &unused);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
125if (errorInfo.Error == Interop.Error.ERANGE)
System\ConsolePal.Unix.cs (2)
995if (errorInfo.Error == Interop.Error.EPIPE) 1001else if (errorInfo.Error == Interop.Error.EAGAIN) // aka EWOULDBLOCK