33 references to Error
System.IO.FileSystem.Watcher (33)
src\libraries\Common\src\Interop\Linux\System.Native\Interop.INotify.cs (2)
27Error hr = GetLastError(); 28if (hr == Error.EINVAL)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (7)
118private readonly Error _error; 127internal ErrorInfo(Error error) 133internal Error Error 156internal static Error GetLastError() 197internal static partial Error ConvertErrorPlatformToPal(int platformErrno); 201internal static partial int ConvertErrorPalToPlatform(Error error); 219public static Interop.ErrorInfo Info(this Interop.Error error)
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: 136case Error.EACCES: 137case Error.EBADF: 138case Error.EPERM: 144case Error.ENAMETOOLONG: 149case Error.EWOULDBLOCK: 154case Error.ECANCELED: 157case Error.EFBIG: 160case Error.EEXIST:
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);
System\IO\FileSystemWatcher.Linux.cs (6)
43case Interop.Error.EMFILE: 49case Interop.Error.ENFILE: 382if (hasParent && (error.Error == Interop.Error.ENOENT || 383error.Error == Interop.Error.ENOTDIR)) 389if (error.Error == Interop.Error.ENOSPC) 475catch (IOException ex) when (ex.HResult == Interop.Error.ENOTDIR.Info().RawErrno)