33 references to Error
System.IO.FileSystem.Watcher (33)
src\libraries\Common\src\Interop\Linux\System.Native\Interop.INotify.cs (2)
27
Error
hr = GetLastError();
28
if (hr ==
Error
.EINVAL)
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\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:
136
case
Error
.EACCES:
137
case
Error
.EBADF:
138
case
Error
.EPERM:
144
case
Error
.ENAMETOOLONG:
149
case
Error
.EWOULDBLOCK:
154
case
Error
.ECANCELED:
157
case
Error
.EFBIG:
160
case
Error
.EEXIST:
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Poll.cs (3)
21
internal static unsafe partial
Error
Poll(PollEvent* pollEvents, uint eventCount, int timeout, uint* triggered);
31
internal static unsafe
Error
Poll(SafeHandle fd, PollEvents events, int timeout, out PollEvents triggered)
45
Error
err = Poll(&pollEvent, 1, timeout, &unused);
System\IO\FileSystemWatcher.Linux.cs (6)
156
case Interop.
Error
.EMFILE:
162
case Interop.
Error
.ENFILE:
266
if (ignoreMissing && (error.Error == Interop.
Error
.ENOENT || error.Error == Interop.
Error
.ENOTDIR))
272
if (error.Error == Interop.
Error
.ENOSPC)
1198
catch (IOException ex) when (ex.HResult == Interop.
Error
.ENOTDIR.Info().RawErrno)