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)
118
private readonly
Error
_error;
127
internal ErrorInfo(
Error
error)
133
internal
Error
Error
156
internal static
Error
GetLastError()
197
internal static partial
Error
ConvertErrorPlatformToPal(int platformErrno);
201
internal static partial int ConvertErrorPalToPlatform(
Error
error);
219
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)
43
case Interop.
Error
.EMFILE:
49
case Interop.
Error
.ENFILE:
382
if (hasParent && (error.Error == Interop.
Error
.ENOENT ||
383
error.Error == Interop.
Error
.ENOTDIR))
389
if (error.Error == Interop.
Error
.ENOSPC)
475
catch (IOException ex) when (ex.HResult == Interop.
Error
.ENOTDIR.Info().RawErrno)